summaryrefslogtreecommitdiff
path: root/test/built-ins
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins')
-rw-r--r--test/built-ins/Array/15.4.5-1.js4
-rw-r--r--test/built-ins/Array/15.4.5.1-5-1.js4
-rw-r--r--test/built-ins/Array/15.4.5.1-5-2.js4
-rw-r--r--test/built-ins/Array/S15.4.1_A1.1_T2.js4
-rw-r--r--test/built-ins/Array/S15.4.1_A1.2_T1.js4
-rw-r--r--test/built-ins/Array/S15.4.1_A2.1_T1.js4
-rw-r--r--test/built-ins/Array/S15.4.1_A2.2_T1.js20
-rw-r--r--test/built-ins/Array/S15.4.1_A3.1_T1.js2
-rw-r--r--test/built-ins/Array/S15.4.2.1_A1.1_T1.js2
-rw-r--r--test/built-ins/Array/S15.4.2.1_A1.1_T2.js4
-rw-r--r--test/built-ins/Array/S15.4.2.1_A1.2_T1.js4
-rw-r--r--test/built-ins/Array/S15.4.2.1_A2.1_T1.js4
-rw-r--r--test/built-ins/Array/S15.4.2.1_A2.2_T1.js20
-rw-r--r--test/built-ins/Array/S15.4.5.1_A1.2_T2.js10
-rw-r--r--test/built-ins/Array/S15.4.5.1_A2.1_T1.js24
-rw-r--r--test/built-ins/Array/S15.4.5.1_A2.2_T1.js12
-rw-r--r--test/built-ins/Array/S15.4.5.1_A2.3_T1.js8
-rw-r--r--test/built-ins/Array/S15.4.5.2_A1_T1.js12
-rw-r--r--test/built-ins/Array/S15.4.5.2_A1_T2.js8
-rw-r--r--test/built-ins/Array/S15.4.5.2_A2_T1.js10
-rw-r--r--test/built-ins/Array/S15.4.5.2_A3_T1.js8
-rw-r--r--test/built-ins/Array/S15.4.5.2_A3_T2.js14
-rw-r--r--test/built-ins/Array/S15.4.5.2_A3_T3.js8
-rw-r--r--test/built-ins/Array/S15.4_A1.1_T10.js4
-rw-r--r--test/built-ins/Array/S15.4_A1.1_T4.js6
-rw-r--r--test/built-ins/Array/S15.4_A1.1_T5.js8
-rw-r--r--test/built-ins/Array/S15.4_A1.1_T6.js8
-rw-r--r--test/built-ins/Array/S15.4_A1.1_T7.js8
-rw-r--r--test/built-ins/Array/S15.4_A1.1_T8.js8
-rw-r--r--test/built-ins/Array/S15.4_A1.1_T9.js80
-rw-r--r--test/built-ins/Array/from/Array.from_forwards-length-for-array-likes.js4
-rw-r--r--test/built-ins/Array/from/calling-from-valid-1-noStrict.js2
-rw-r--r--test/built-ins/Array/from/calling-from-valid-1-onlyStrict.js2
-rw-r--r--test/built-ins/Array/from/calling-from-valid-2.js2
-rw-r--r--test/built-ins/Array/from/elements-added-after.js31
-rw-r--r--test/built-ins/Array/from/elements-deleted-after.js17
-rw-r--r--test/built-ins/Array/from/elements-updated-after.js19
-rw-r--r--test/built-ins/Array/from/iter-cstm-ctor.js4
-rw-r--r--test/built-ins/Array/from/iter-map-fn-args.js14
-rw-r--r--test/built-ins/Array/from/iter-map-fn-return.js14
-rw-r--r--test/built-ins/Array/from/iter-map-fn-this-arg.js14
-rw-r--r--test/built-ins/Array/from/iter-map-fn-this-non-strict.js18
-rw-r--r--test/built-ins/Array/from/iter-map-fn-this-strict.js14
-rw-r--r--test/built-ins/Array/from/iter-set-elem-prop-err.js12
-rw-r--r--test/built-ins/Array/from/iter-set-elem-prop.js15
-rw-r--r--test/built-ins/Array/from/iter-set-length-err.js6
-rw-r--r--test/built-ins/Array/from/iter-set-length.js12
-rw-r--r--test/built-ins/Array/from/mapfn-throws-exception.js9
-rw-r--r--test/built-ins/Array/from/source-array-boundary.js11
-rw-r--r--test/built-ins/Array/from/source-object-iterator-1.js38
-rw-r--r--test/built-ins/Array/from/source-object-iterator-2.js38
-rw-r--r--test/built-ins/Array/from/source-object-length.js12
-rw-r--r--test/built-ins/Array/from/source-object-missing.js10
-rw-r--r--test/built-ins/Array/from/source-object-without.js8
-rw-r--r--test/built-ins/Array/isArray/15.4.3.2-0-4.js10
-rw-r--r--test/built-ins/Array/isArray/15.4.3.2-1-13.js2
-rw-r--r--test/built-ins/Array/isArray/15.4.3.2-1-7.js2
-rw-r--r--test/built-ins/Array/isArray/15.4.3.2-2-1.js2
-rw-r--r--test/built-ins/Array/isArray/15.4.3.2-2-2.js8
-rw-r--r--test/built-ins/Array/isArray/15.4.3.2-2-3.js6
-rw-r--r--test/built-ins/Array/length/15.4.5.1-3.d-1.js2
-rw-r--r--test/built-ins/Array/length/15.4.5.1-3.d-2.js2
-rw-r--r--test/built-ins/Array/length/15.4.5.1-3.d-3.js4
-rw-r--r--test/built-ins/Array/length/S15.4.2.2_A2.2_T1.js6
-rw-r--r--test/built-ins/Array/length/S15.4.2.2_A2.2_T2.js6
-rw-r--r--test/built-ins/Array/length/S15.4.2.2_A2.2_T3.js6
-rw-r--r--test/built-ins/Array/length/S15.4.5.1_A1.1_T1.js6
-rw-r--r--test/built-ins/Array/length/S15.4.5.1_A1.1_T2.js8
-rw-r--r--test/built-ins/Array/length/S15.4.5.1_A1.2_T1.js2
-rw-r--r--test/built-ins/Array/length/S15.4.5.1_A1.2_T3.js2
-rw-r--r--test/built-ins/Array/length/S15.4.5.1_A1.3_T2.js66
-rw-r--r--test/built-ins/Array/length/S15.4.5.2_A3_T4.js2
-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
-rw-r--r--test/built-ins/ArrayBuffer/data-allocation-after-object-creation.js4
-rw-r--r--test/built-ins/ArrayBuffer/newtarget-prototype-is-not-object.js2
-rw-r--r--test/built-ins/ArrayBuffer/prototype-from-newtarget.js2
-rw-r--r--test/built-ins/ArrayBuffer/prototype/slice/end-default-if-undefined.js3
-rw-r--r--test/built-ins/ArrayBuffer/prototype/slice/end-exceeds-length.js9
-rw-r--r--test/built-ins/ArrayBuffer/prototype/slice/negative-end.js9
-rw-r--r--test/built-ins/ArrayBuffer/prototype/slice/negative-start.js9
-rw-r--r--test/built-ins/ArrayBuffer/prototype/slice/nonconstructor.js4
-rw-r--r--test/built-ins/ArrayBuffer/prototype/slice/species-constructor-is-not-object.js4
-rw-r--r--test/built-ins/ArrayBuffer/prototype/slice/species-is-not-constructor.js4
-rw-r--r--test/built-ins/ArrayBuffer/prototype/slice/species-is-not-object.js4
-rw-r--r--test/built-ins/ArrayBuffer/prototype/slice/start-default-if-undefined.js3
-rw-r--r--test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-end.js3
-rw-r--r--test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-length.js9
-rw-r--r--test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-end.js6
-rw-r--r--test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-start.js6
-rw-r--r--test/built-ins/AsyncFunction/AsyncFunction-construct.js2
-rw-r--r--test/built-ins/AsyncFunction/AsyncFunction-is-extensible.js2
-rw-r--r--test/built-ins/AsyncFunction/AsyncFunction-is-subclass.js3
-rw-r--r--test/built-ins/AsyncFunction/AsyncFunction-length.js2
-rw-r--r--test/built-ins/AsyncFunction/AsyncFunction-name.js2
-rw-r--r--test/built-ins/AsyncFunction/AsyncFunction-prototype.js2
-rw-r--r--test/built-ins/AsyncFunction/AsyncFunction.js2
-rw-r--r--test/built-ins/AsyncFunction/AsyncFunctionPrototype-is-extensible.js3
-rw-r--r--test/built-ins/AsyncFunction/AsyncFunctionPrototype-prototype.js2
-rw-r--r--test/built-ins/AsyncFunction/AsyncFunctionPrototype-to-string.js2
-rw-r--r--test/built-ins/AsyncFunction/instance-construct-throws.js2
-rw-r--r--test/built-ins/AsyncFunction/instance-has-name.js2
-rw-r--r--test/built-ins/AsyncFunction/instance-length.js6
-rw-r--r--test/built-ins/AsyncFunction/instance-prototype-property.js2
-rw-r--r--test/built-ins/AsyncFunction/is-not-a-global.js2
-rw-r--r--test/built-ins/Atomics/add/bad-range.js10
-rw-r--r--test/built-ins/Atomics/add/good-views.js76
-rw-r--r--test/built-ins/Atomics/add/non-views.js2
-rw-r--r--test/built-ins/Atomics/add/nonshared-int-views.js4
-rw-r--r--test/built-ins/Atomics/add/shared-nonint-views.js4
-rw-r--r--test/built-ins/Atomics/and/bad-range.js10
-rw-r--r--test/built-ins/Atomics/and/good-views.js90
-rw-r--r--test/built-ins/Atomics/and/non-views.js2
-rw-r--r--test/built-ins/Atomics/and/nonshared-int-views.js4
-rw-r--r--test/built-ins/Atomics/and/shared-nonint-views.js4
-rw-r--r--test/built-ins/Atomics/compareExchange/bad-range.js10
-rw-r--r--test/built-ins/Atomics/compareExchange/good-views.js97
-rw-r--r--test/built-ins/Atomics/compareExchange/non-views.js2
-rw-r--r--test/built-ins/Atomics/compareExchange/nonshared-int-views.js4
-rw-r--r--test/built-ins/Atomics/compareExchange/shared-nonint-views.js4
-rw-r--r--test/built-ins/Atomics/exchange/bad-range.js10
-rw-r--r--test/built-ins/Atomics/exchange/good-views.js78
-rw-r--r--test/built-ins/Atomics/exchange/non-views.js2
-rw-r--r--test/built-ins/Atomics/exchange/nonshared-int-views.js4
-rw-r--r--test/built-ins/Atomics/exchange/shared-nonint-views.js4
-rw-r--r--test/built-ins/Atomics/isLockFree/corner-cases.js23
-rw-r--r--test/built-ins/Atomics/isLockFree/value.js68
-rw-r--r--test/built-ins/Atomics/load/bad-range.js10
-rw-r--r--test/built-ins/Atomics/load/good-views.js58
-rw-r--r--test/built-ins/Atomics/load/non-views.js2
-rw-r--r--test/built-ins/Atomics/load/nonshared-int-views.js4
-rw-r--r--test/built-ins/Atomics/load/shared-nonint-views.js4
-rw-r--r--test/built-ins/Atomics/or/bad-range.js10
-rw-r--r--test/built-ins/Atomics/or/good-views.js90
-rw-r--r--test/built-ins/Atomics/or/non-views.js2
-rw-r--r--test/built-ins/Atomics/or/nonshared-int-views.js4
-rw-r--r--test/built-ins/Atomics/or/shared-nonint-views.js4
-rw-r--r--test/built-ins/Atomics/store/bad-range.js10
-rw-r--r--test/built-ins/Atomics/store/good-views.js74
-rw-r--r--test/built-ins/Atomics/store/non-views.js2
-rw-r--r--test/built-ins/Atomics/store/nonshared-int-views.js4
-rw-r--r--test/built-ins/Atomics/store/shared-nonint-views.js4
-rw-r--r--test/built-ins/Atomics/sub/bad-range.js10
-rw-r--r--test/built-ins/Atomics/sub/good-views.js76
-rw-r--r--test/built-ins/Atomics/sub/non-views.js2
-rw-r--r--test/built-ins/Atomics/sub/nonshared-int-views.js4
-rw-r--r--test/built-ins/Atomics/sub/shared-nonint-views.js4
-rw-r--r--test/built-ins/Atomics/wait/did-timeout.js12
-rw-r--r--test/built-ins/Atomics/wait/good-views.js12
-rw-r--r--test/built-ins/Atomics/wait/nan-timeout.js12
-rw-r--r--test/built-ins/Atomics/wait/negative-timeout.js10
-rw-r--r--test/built-ins/Atomics/wait/no-spurious-wakeup.js20
-rw-r--r--test/built-ins/Atomics/wait/non-views.js2
-rw-r--r--test/built-ins/Atomics/wait/nonshared-int-views.js4
-rw-r--r--test/built-ins/Atomics/wait/shared-nonint-views.js9
-rw-r--r--test/built-ins/Atomics/wait/was-woken.js13
-rw-r--r--test/built-ins/Atomics/wake/counts.js4
-rw-r--r--test/built-ins/Atomics/wake/good-views.js12
-rw-r--r--test/built-ins/Atomics/wake/non-views.js2
-rw-r--r--test/built-ins/Atomics/wake/nonshared-int-views.js4
-rw-r--r--test/built-ins/Atomics/wake/shared-nonint-views.js9
-rw-r--r--test/built-ins/Atomics/wake/wake-all-on-loc.js44
-rw-r--r--test/built-ins/Atomics/wake/wake-all.js44
-rw-r--r--test/built-ins/Atomics/wake/wake-in-order.js36
-rw-r--r--test/built-ins/Atomics/wake/wake-nan.js14
-rw-r--r--test/built-ins/Atomics/wake/wake-negative.js14
-rw-r--r--test/built-ins/Atomics/wake/wake-one.js42
-rw-r--r--test/built-ins/Atomics/wake/wake-two.js42
-rw-r--r--test/built-ins/Atomics/wake/wake-zero.js42
-rw-r--r--test/built-ins/Atomics/xor/bad-range.js10
-rw-r--r--test/built-ins/Atomics/xor/good-views.js92
-rw-r--r--test/built-ins/Atomics/xor/non-views.js2
-rw-r--r--test/built-ins/Atomics/xor/nonshared-int-views.js4
-rw-r--r--test/built-ins/Atomics/xor/shared-nonint-views.js4
-rw-r--r--test/built-ins/BigInt/asIntN/arithmetic.js56
-rw-r--r--test/built-ins/BigInt/asIntN/bigint-tobigint-toprimitive.js20
-rw-r--r--test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js30
-rw-r--r--test/built-ins/BigInt/asIntN/bits-toindex-errors.js38
-rw-r--r--test/built-ins/BigInt/asIntN/bits-toindex-toprimitive.js44
-rw-r--r--test/built-ins/BigInt/asIntN/bits-toindex-wrapped-values.js44
-rw-r--r--test/built-ins/BigInt/asIntN/bits-toindex.js2
-rw-r--r--test/built-ins/BigInt/asUintN/arithmetic.js40
-rw-r--r--test/built-ins/BigInt/asUintN/bigint-tobigint-toprimitive.js20
-rw-r--r--test/built-ins/BigInt/asUintN/bigint-tobigint-wrapped-values.js30
-rw-r--r--test/built-ins/BigInt/asUintN/bits-toindex-errors.js38
-rw-r--r--test/built-ins/BigInt/asUintN/bits-toindex-toprimitive.js44
-rw-r--r--test/built-ins/BigInt/asUintN/bits-toindex-wrapped-values.js44
-rw-r--r--test/built-ins/BigInt/asUintN/bits-toindex.js2
-rw-r--r--test/built-ins/BigInt/call-value-of-when-to-string-present.js1
-rw-r--r--test/built-ins/BigInt/constructor-empty-string.js1
-rw-r--r--test/built-ins/BigInt/constructor-from-binary-string.js5
-rw-r--r--test/built-ins/BigInt/constructor-from-decimal-string.js1
-rw-r--r--test/built-ins/BigInt/constructor-from-hex-string.js1
-rw-r--r--test/built-ins/BigInt/constructor-from-octal-string.js1
-rw-r--r--test/built-ins/BigInt/constructor-trailing-leading-spaces.js1
-rw-r--r--test/built-ins/BigInt/new-target-throws.js4
-rw-r--r--test/built-ins/BigInt/prototype/Symbol.toStringTag.js8
-rw-r--r--test/built-ins/BigInt/prototype/toString/thisbigintvalue-not-valid-throws.js18
-rw-r--r--test/built-ins/BigInt/prototype/valueOf/return.js2
-rw-r--r--test/built-ins/BigInt/value-of-throws.js9
-rw-r--r--test/built-ins/Boolean/S15.6.1.1_A1_T1.js16
-rw-r--r--test/built-ins/Boolean/S15.6.1.1_A1_T2.js32
-rw-r--r--test/built-ins/Boolean/S15.6.1.1_A1_T3.js30
-rw-r--r--test/built-ins/Boolean/S15.6.1.1_A1_T4.js30
-rw-r--r--test/built-ins/Boolean/S15.6.1.1_A1_T5.js30
-rw-r--r--test/built-ins/Boolean/S15.6.1.1_A2.js6
-rw-r--r--test/built-ins/Boolean/S15.6.2.1_A1.js8
-rw-r--r--test/built-ins/Boolean/S15.6.3_A1.js2
-rw-r--r--test/built-ins/Boolean/S15.6.3_A3.js2
-rw-r--r--test/built-ins/Boolean/prototype/S15.6.3.1_A4.js4
-rw-r--r--test/built-ins/Boolean/prototype/constructor/S15.6.4.1_A1.js2
-rw-r--r--test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T1.js14
-rw-r--r--test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T2.js14
-rw-r--r--test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T1.js16
-rw-r--r--test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T2.js16
-rw-r--r--test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T3.js16
-rw-r--r--test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T4.js16
-rw-r--r--test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T5.js24
-rw-r--r--test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T1.js12
-rw-r--r--test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T2.js12
-rw-r--r--test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T1.js16
-rw-r--r--test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T2.js16
-rw-r--r--test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T3.js16
-rw-r--r--test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T4.js16
-rw-r--r--test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T5.js24
-rw-r--r--test/built-ins/DataView/prototype/getBigInt64/detached-buffer-after-toindex-byteoffset.js4
-rw-r--r--test/built-ins/DataView/prototype/getBigInt64/detached-buffer-before-outofrange-byteoffset.js2
-rw-r--r--test/built-ins/DataView/prototype/getBigInt64/detached-buffer.js2
-rw-r--r--test/built-ins/DataView/prototype/getBigInt64/index-is-out-of-range.js14
-rw-r--r--test/built-ins/DataView/prototype/getBigInt64/negative-byteoffset-throws.js4
-rw-r--r--test/built-ins/DataView/prototype/getBigInt64/return-abrupt-from-tonumber-byteoffset.js12
-rw-r--r--test/built-ins/DataView/prototype/getBigInt64/return-value-clean-arraybuffer.js20
-rw-r--r--test/built-ins/DataView/prototype/getBigInt64/return-values-custom-offset.js20
-rw-r--r--test/built-ins/DataView/prototype/getBigInt64/return-values.js36
-rw-r--r--test/built-ins/DataView/prototype/getBigInt64/this-is-not-object.js2
-rw-r--r--test/built-ins/DataView/prototype/getBigInt64/to-boolean-littleendian.js44
-rw-r--r--test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-errors.js10
-rw-r--r--test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-toprimitive.js20
-rw-r--r--test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-wrapped-values.js44
-rw-r--r--test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset.js52
-rw-r--r--test/built-ins/DataView/prototype/getBigUint64/detached-buffer-after-toindex-byteoffset.js4
-rw-r--r--test/built-ins/DataView/prototype/getBigUint64/detached-buffer-before-outofrange-byteoffset.js2
-rw-r--r--test/built-ins/DataView/prototype/getBigUint64/detached-buffer.js2
-rw-r--r--test/built-ins/DataView/prototype/getBigUint64/index-is-out-of-range.js14
-rw-r--r--test/built-ins/DataView/prototype/getBigUint64/negative-byteoffset-throws.js4
-rw-r--r--test/built-ins/DataView/prototype/getBigUint64/return-abrupt-from-tonumber-byteoffset.js12
-rw-r--r--test/built-ins/DataView/prototype/getBigUint64/return-value-clean-arraybuffer.js20
-rw-r--r--test/built-ins/DataView/prototype/getBigUint64/return-values-custom-offset.js20
-rw-r--r--test/built-ins/DataView/prototype/getBigUint64/return-values.js36
-rw-r--r--test/built-ins/DataView/prototype/getBigUint64/this-is-not-object.js2
-rw-r--r--test/built-ins/DataView/prototype/getBigUint64/to-boolean-littleendian.js44
-rw-r--r--test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-errors.js10
-rw-r--r--test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-toprimitive.js20
-rw-r--r--test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-wrapped-values.js44
-rw-r--r--test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset.js52
-rw-r--r--test/built-ins/DataView/prototype/setBigInt64/detached-buffer-after-bigint-value.js6
-rw-r--r--test/built-ins/DataView/prototype/setBigInt64/detached-buffer.js2
-rw-r--r--test/built-ins/DataView/prototype/setBigInt64/index-check-before-value-conversion.js4
-rw-r--r--test/built-ins/DataView/prototype/setBigInt64/index-is-out-of-range.js36
-rw-r--r--test/built-ins/DataView/prototype/setBigInt64/negative-byteoffset-throws.js8
-rw-r--r--test/built-ins/DataView/prototype/setBigInt64/range-check-after-value-conversion.js6
-rw-r--r--test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tobigint-value.js12
-rw-r--r--test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset-symbol.js2
-rw-r--r--test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset.js16
-rw-r--r--test/built-ins/DataView/prototype/setBigInt64/set-values-little-endian-order.js24
-rw-r--r--test/built-ins/DataView/prototype/setBigInt64/set-values-return-undefined.js8
-rw-r--r--test/built-ins/DataView/prototype/setBigInt64/to-boolean-littleendian.js36
-rw-r--r--test/built-ins/DataView/prototype/setBigInt64/toindex-byteoffset.js148
-rw-r--r--test/built-ins/DataView/prototype/setInt32/toindex-byteoffset.js2
-rw-r--r--test/built-ins/Date/15.9.1.15-1.js10
-rw-r--r--test/built-ins/Date/S15.9.2.1_A1.js56
-rw-r--r--test/built-ins/Date/S15.9.2.1_A2.js28
-rw-r--r--test/built-ins/Date/S15.9.3.1_A1_T1.js48
-rw-r--r--test/built-ins/Date/S15.9.3.1_A1_T2.js48
-rw-r--r--test/built-ins/Date/S15.9.3.1_A1_T3.js48
-rw-r--r--test/built-ins/Date/S15.9.3.1_A1_T4.js48
-rw-r--r--test/built-ins/Date/S15.9.3.1_A1_T5.js48
-rw-r--r--test/built-ins/Date/S15.9.3.1_A1_T6.js48
-rw-r--r--test/built-ins/Date/S15.9.3.1_A2_T1.js24
-rw-r--r--test/built-ins/Date/S15.9.3.1_A2_T2.js24
-rw-r--r--test/built-ins/Date/S15.9.3.1_A2_T3.js24
-rw-r--r--test/built-ins/Date/S15.9.3.1_A2_T4.js24
-rw-r--r--test/built-ins/Date/S15.9.3.1_A2_T5.js24
-rw-r--r--test/built-ins/Date/S15.9.3.1_A2_T6.js24
-rw-r--r--test/built-ins/Date/S15.9.3.1_A4_T1.js22
-rw-r--r--test/built-ins/Date/S15.9.3.1_A4_T2.js28
-rw-r--r--test/built-ins/Date/S15.9.3.1_A4_T3.js34
-rw-r--r--test/built-ins/Date/S15.9.3.1_A4_T4.js40
-rw-r--r--test/built-ins/Date/S15.9.3.1_A4_T5.js46
-rw-r--r--test/built-ins/Date/S15.9.3.1_A4_T6.js52
-rw-r--r--test/built-ins/Date/S15.9.3.1_A5_T1.js2
-rw-r--r--test/built-ins/Date/S15.9.3.1_A6_T1.js2
-rw-r--r--test/built-ins/Date/S15.9.3.1_A6_T2.js2
-rw-r--r--test/built-ins/Date/S15.9.3.1_A6_T3.js2
-rw-r--r--test/built-ins/Date/S15.9.3.1_A6_T4.js2
-rw-r--r--test/built-ins/Date/S15.9.3.1_A6_T5.js2
-rw-r--r--test/built-ins/Date/S15.9.3.2_A1_T1.js32
-rw-r--r--test/built-ins/Date/S15.9.3.2_A2_T1.js16
-rw-r--r--test/built-ins/Date/S15.9.4_A1.js2
-rw-r--r--test/built-ins/Date/S15.9.4_A2.js2
-rw-r--r--test/built-ins/Date/S15.9.4_A3.js2
-rw-r--r--test/built-ins/Date/S15.9.4_A5.js2
-rw-r--r--test/built-ins/Date/UTC/S15.9.4.3_A1_T1.js2
-rw-r--r--test/built-ins/Date/UTC/S15.9.4.3_A1_T2.js2
-rw-r--r--test/built-ins/Date/UTC/S15.9.4.3_A1_T3.js4
-rw-r--r--test/built-ins/Date/UTC/S15.9.4.3_A2_T1.js4
-rw-r--r--test/built-ins/Date/UTC/S15.9.4.3_A3_T2.js2
-rw-r--r--test/built-ins/Date/UTC/S15.9.4.3_A3_T3.js4
-rw-r--r--test/built-ins/Date/UTC/coercion-errors.js12
-rw-r--r--test/built-ins/Date/UTC/coercion-order.js51
-rw-r--r--test/built-ins/Date/UTC/infinity-make-day.js1
-rw-r--r--test/built-ins/Date/coercion-errors.js12
-rw-r--r--test/built-ins/Date/coercion-order.js51
-rw-r--r--test/built-ins/Date/now/15.9.4.4-0-3.js4
-rw-r--r--test/built-ins/Date/parse/S15.9.4.2_A1_T1.js2
-rw-r--r--test/built-ins/Date/parse/S15.9.4.2_A1_T2.js2
-rw-r--r--test/built-ins/Date/parse/S15.9.4.2_A1_T3.js4
-rw-r--r--test/built-ins/Date/parse/S15.9.4.2_A2_T1.js4
-rw-r--r--test/built-ins/Date/parse/S15.9.4.2_A3_T2.js2
-rw-r--r--test/built-ins/Date/parse/S15.9.4.2_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/S15.9.4.1_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A01_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A02_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A03_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A04_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A05_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A06_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A07_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A08_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A09_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A10_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A11_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A12_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A13_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A14_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A15_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A16_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A17_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A18_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A19_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A20_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A21_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A22_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A23_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A24_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A25_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A26_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A27_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A28_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A29_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A30_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A31_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A32_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A33_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A34_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A35_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A36_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A37_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A38_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A39_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A40_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A41_T1.js2
-rw-r--r--test/built-ins/Date/prototype/S15.9.5_A42_T1.js2
-rw-r--r--test/built-ins/Date/prototype/Symbol.toPrimitive/hint-invalid.js6
-rw-r--r--test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/constructor/S15.9.5.1_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getDate/S15.9.5.14_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getDate/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getDay/S15.9.5.16_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getDay/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getFullYear/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getHours/S15.9.5.18_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getHours/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getMilliseconds/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getMinutes/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getMonth/S15.9.5.12_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getMonth/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getSeconds/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getTime/S15.9.5.9_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getTime/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getTimezoneOffset/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCDate/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCDay/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCFullYear/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCHours/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCMilliseconds/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCMinutes/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCMonth/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/getUTCSeconds/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setDate/S15.9.5.36_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setDate/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/setFullYear/15.9.5.40_1.js2
-rw-r--r--test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setFullYear/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setHours/S15.9.5.34_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setHours/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setMilliseconds/arg-to-number.js2
-rw-r--r--test/built-ins/Date/prototype/setMilliseconds/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setMinutes/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setMonth/S15.9.5.38_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setMonth/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setSeconds/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setTime/S15.9.5.27_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setTime/this-value-non-date.js4
-rw-r--r--test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/toDateString/S15.9.5.3_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/toDateString/invalid-date.js2
-rw-r--r--test/built-ins/Date/prototype/toISOString/15.9.5.43-0-10.js24
-rw-r--r--test/built-ins/Date/prototype/toISOString/15.9.5.43-0-11.js8
-rw-r--r--test/built-ins/Date/prototype/toISOString/15.9.5.43-0-12.js8
-rw-r--r--test/built-ins/Date/prototype/toISOString/15.9.5.43-0-13.js6
-rw-r--r--test/built-ins/Date/prototype/toISOString/15.9.5.43-0-14.js4
-rw-r--r--test/built-ins/Date/prototype/toISOString/15.9.5.43-0-15.js4
-rw-r--r--test/built-ins/Date/prototype/toISOString/15.9.5.43-0-16.js4
-rw-r--r--test/built-ins/Date/prototype/toISOString/15.9.5.43-0-3.js2
-rw-r--r--test/built-ins/Date/prototype/toISOString/15.9.5.43-0-4.js4
-rw-r--r--test/built-ins/Date/prototype/toISOString/15.9.5.43-0-5.js2
-rw-r--r--test/built-ins/Date/prototype/toISOString/15.9.5.43-0-6.js2
-rw-r--r--test/built-ins/Date/prototype/toISOString/15.9.5.43-0-7.js2
-rw-r--r--test/built-ins/Date/prototype/toISOString/15.9.5.43-0-8.js16
-rw-r--r--test/built-ins/Date/prototype/toISOString/15.9.5.43-0-9.js24
-rw-r--r--test/built-ins/Date/prototype/toJSON/15.9.5.44-0-1.js2
-rw-r--r--test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/toString/S15.9.5.2_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/toString/non-date-receiver.js4
-rw-r--r--test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/toTimeString/invalid-date.js2
-rw-r--r--test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T3.js4
-rw-r--r--test/built-ins/Date/prototype/toUTCString/day-names.js14
-rw-r--r--test/built-ins/Date/prototype/toUTCString/invalid-date.js1
-rw-r--r--test/built-ins/Date/prototype/toUTCString/month-names.js24
-rw-r--r--test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T1.js2
-rw-r--r--test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T2.js2
-rw-r--r--test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T3.js4
-rw-r--r--test/built-ins/Date/prototype/valueOf/S15.9.5.8_A2_T1.js4
-rw-r--r--test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T2.js2
-rw-r--r--test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T3.js4
-rw-r--r--test/built-ins/Date/value-symbol-to-prim-return-obj.js4
-rw-r--r--test/built-ins/Date/value-to-primitive-result-faulty.js4
-rw-r--r--test/built-ins/Error/S15.11.1.1_A1_T1.js24
-rw-r--r--test/built-ins/Error/S15.11.1.1_A2_T1.js6
-rw-r--r--test/built-ins/Error/S15.11.1.1_A3_T1.js8
-rw-r--r--test/built-ins/Error/S15.11.1_A1_T1.js8
-rw-r--r--test/built-ins/Error/S15.11.2.1_A1_T1.js24
-rw-r--r--test/built-ins/Error/S15.11.2.1_A2_T1.js6
-rw-r--r--test/built-ins/Error/S15.11.2.1_A3_T1.js8
-rw-r--r--test/built-ins/Error/S15.11.3_A1_T1.js10
-rw-r--r--test/built-ins/Error/S15.11.3_A2_T1.js10
-rw-r--r--test/built-ins/Error/prototype/S15.11.3.1_A1_T1.js6
-rw-r--r--test/built-ins/Error/prototype/S15.11.3.1_A2_T1.js12
-rw-r--r--test/built-ins/Error/prototype/S15.11.3.1_A3_T1.js8
-rw-r--r--test/built-ins/Error/prototype/S15.11.3.1_A4_T1.js2
-rw-r--r--test/built-ins/Error/prototype/S15.11.4_A1.js2
-rw-r--r--test/built-ins/Error/prototype/S15.11.4_A2.js4
-rw-r--r--test/built-ins/Error/prototype/S15.11.4_A3.js6
-rw-r--r--test/built-ins/Error/prototype/S15.11.4_A4.js6
-rw-r--r--test/built-ins/Error/prototype/constructor/S15.11.4.1_A1_T1.js2
-rw-r--r--test/built-ins/Error/prototype/constructor/S15.11.4.1_A1_T2.js14
-rw-r--r--test/built-ins/Error/prototype/message/15.11.4.3-1.js6
-rw-r--r--test/built-ins/Error/prototype/message/S15.11.4.3_A1.js2
-rw-r--r--test/built-ins/Error/prototype/name/15.11.4.2-1.js6
-rw-r--r--test/built-ins/Error/prototype/name/S15.11.4.2_A1.js2
-rw-r--r--test/built-ins/Error/prototype/name/S15.11.4.2_A2.js4
-rw-r--r--test/built-ins/Error/prototype/toString/15.11.4.4-10-1.js4
-rw-r--r--test/built-ins/Error/prototype/toString/15.11.4.4-6-1.js2
-rw-r--r--test/built-ins/Error/prototype/toString/15.11.4.4-6-2.js2
-rw-r--r--test/built-ins/Error/prototype/toString/15.11.4.4-8-1.js4
-rw-r--r--test/built-ins/Error/prototype/toString/15.11.4.4-8-2.js4
-rw-r--r--test/built-ins/Error/prototype/toString/15.11.4.4-9-1.js4
-rw-r--r--test/built-ins/Error/prototype/toString/S15.11.4.4_A1.js2
-rw-r--r--test/built-ins/Error/prototype/toString/S15.11.4.4_A2.js14
-rw-r--r--test/built-ins/Function/15.3.2.1-11-1-s.js4
-rw-r--r--test/built-ins/Function/15.3.2.1-11-1.js2
-rw-r--r--test/built-ins/Function/15.3.2.1-11-2-s.js2
-rw-r--r--test/built-ins/Function/15.3.2.1-11-3-s.js2
-rw-r--r--test/built-ins/Function/15.3.2.1-11-3.js2
-rw-r--r--test/built-ins/Function/15.3.2.1-11-4-s.js2
-rw-r--r--test/built-ins/Function/15.3.2.1-11-5-s.js4
-rw-r--r--test/built-ins/Function/15.3.2.1-11-5.js2
-rw-r--r--test/built-ins/Function/15.3.2.1-11-6-s.js2
-rw-r--r--test/built-ins/Function/15.3.2.1-11-7-s.js2
-rw-r--r--test/built-ins/Function/15.3.2.1-11-8-s.js2
-rw-r--r--test/built-ins/Function/15.3.2.1-11-9-s.js2
-rw-r--r--test/built-ins/Function/15.3.5-1gs.js1
-rw-r--r--test/built-ins/Function/15.3.5.4_2-10gs.js4
-rw-r--r--test/built-ins/Function/15.3.5.4_2-11gs.js4
-rw-r--r--test/built-ins/Function/15.3.5.4_2-12gs.js2
-rw-r--r--test/built-ins/Function/15.3.5.4_2-13gs.js4
-rw-r--r--test/built-ins/Function/15.3.5.4_2-14gs.js2
-rw-r--r--test/built-ins/Function/15.3.5.4_2-15gs.js6
-rw-r--r--test/built-ins/Function/15.3.5.4_2-16gs.js8
-rw-r--r--test/built-ins/Function/15.3.5.4_2-17gs.js8
-rw-r--r--test/built-ins/Function/15.3.5.4_2-18gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-19gs.js8
-rw-r--r--test/built-ins/Function/15.3.5.4_2-1gs.js6
-rw-r--r--test/built-ins/Function/15.3.5.4_2-20gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-21gs.js12
-rw-r--r--test/built-ins/Function/15.3.5.4_2-22gs.js12
-rw-r--r--test/built-ins/Function/15.3.5.4_2-23gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-24gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-25gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-26gs.js12
-rw-r--r--test/built-ins/Function/15.3.5.4_2-27gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-28gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-29gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-2gs.js8
-rw-r--r--test/built-ins/Function/15.3.5.4_2-30gs.js15
-rw-r--r--test/built-ins/Function/15.3.5.4_2-31gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-32gs.js12
-rw-r--r--test/built-ins/Function/15.3.5.4_2-33gs.js17
-rw-r--r--test/built-ins/Function/15.3.5.4_2-34gs.js16
-rw-r--r--test/built-ins/Function/15.3.5.4_2-35gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-36gs.js17
-rw-r--r--test/built-ins/Function/15.3.5.4_2-37gs.js16
-rw-r--r--test/built-ins/Function/15.3.5.4_2-38gs.js12
-rw-r--r--test/built-ins/Function/15.3.5.4_2-39gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-3gs.js8
-rw-r--r--test/built-ins/Function/15.3.5.4_2-40gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-41gs.js12
-rw-r--r--test/built-ins/Function/15.3.5.4_2-42gs.js16
-rw-r--r--test/built-ins/Function/15.3.5.4_2-43gs.js16
-rw-r--r--test/built-ins/Function/15.3.5.4_2-44gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-45gs.js16
-rw-r--r--test/built-ins/Function/15.3.5.4_2-46gs.js16
-rw-r--r--test/built-ins/Function/15.3.5.4_2-47gs.js12
-rw-r--r--test/built-ins/Function/15.3.5.4_2-48gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-49gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-4gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-50gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-51gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-52gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-53gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-54gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-55gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-56gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-57gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-58gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-59gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-5gs.js8
-rw-r--r--test/built-ins/Function/15.3.5.4_2-60gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-61gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-62gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-63gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-64gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-65gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-66gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-67gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-68gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-69gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-6gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-70gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-71gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-72gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-73gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-74gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-75gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-76gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-77gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-78gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-79gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-7gs.js4
-rw-r--r--test/built-ins/Function/15.3.5.4_2-80gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-81gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-82gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-83gs.js12
-rw-r--r--test/built-ins/Function/15.3.5.4_2-84gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-85gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-86gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-87gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-88gs.js12
-rw-r--r--test/built-ins/Function/15.3.5.4_2-89gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-8gs.js4
-rw-r--r--test/built-ins/Function/15.3.5.4_2-90gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-91gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-92gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-93gs.js12
-rw-r--r--test/built-ins/Function/15.3.5.4_2-94gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-95gs.js6
-rw-r--r--test/built-ins/Function/15.3.5.4_2-96gs.js16
-rw-r--r--test/built-ins/Function/15.3.5.4_2-97gs.js8
-rw-r--r--test/built-ins/Function/15.3.5.4_2-9gs.js4
-rw-r--r--test/built-ins/Function/S10.1.1_A1_T3.js6
-rw-r--r--test/built-ins/Function/S15.3.1_A1_T1.js2
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T1.js8
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T10.js2
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T11.js2
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T12.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T13.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T2.js12
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T3.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T4.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T5.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T6.js2
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T7.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T8.js2
-rw-r--r--test/built-ins/Function/S15.3.2.1_A2_T1.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A2_T2.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A2_T3.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A2_T4.js12
-rw-r--r--test/built-ins/Function/S15.3.2.1_A2_T5.js14
-rw-r--r--test/built-ins/Function/S15.3.2.1_A2_T6.js14
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T1.js16
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T10.js10
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T11.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T12.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T13.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T14.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T15.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T2.js12
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T3.js17
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T4.js6
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T5.js6
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T6.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T7.js6
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T8.js6
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T9.js6
-rw-r--r--test/built-ins/Function/S15.3.3_A1.js2
-rw-r--r--test/built-ins/Function/S15.3.3_A3.js2
-rw-r--r--test/built-ins/Function/S15.3.5_A2_T2.js2
-rw-r--r--test/built-ins/Function/S15.3.5_A3_T2.js4
-rw-r--r--test/built-ins/Function/S15.3_A2_T1.js6
-rw-r--r--test/built-ins/Function/S15.3_A2_T2.js6
-rw-r--r--test/built-ins/Function/S15.3_A3_T1.js8
-rw-r--r--test/built-ins/Function/S15.3_A3_T2.js4
-rw-r--r--test/built-ins/Function/S15.3_A3_T3.js18
-rw-r--r--test/built-ins/Function/S15.3_A3_T4.js6
-rw-r--r--test/built-ins/Function/S15.3_A3_T5.js10
-rw-r--r--test/built-ins/Function/S15.3_A3_T6.js6
-rw-r--r--test/built-ins/Function/length/15.3.3.2-1.js2
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A1_T2.js2
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A1_T3.js2
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A2_T1.js2
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A2_T2.js2
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A2_T3.js2
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A3_T1.js4
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A3_T2.js4
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A3_T3.js4
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A4_T1.js8
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A4_T2.js10
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A4_T3.js10
-rw-r--r--test/built-ins/Function/prototype/S15.3.3.1_A1.js10
-rw-r--r--test/built-ins/Function/prototype/S15.3.3.1_A2.js6
-rw-r--r--test/built-ins/Function/prototype/S15.3.3.1_A4.js6
-rw-r--r--test/built-ins/Function/prototype/S15.3.4_A1.js2
-rw-r--r--test/built-ins/Function/prototype/S15.3.4_A2_T1.js2
-rw-r--r--test/built-ins/Function/prototype/S15.3.4_A2_T2.js4
-rw-r--r--test/built-ins/Function/prototype/S15.3.4_A2_T3.js2
-rw-r--r--test/built-ins/Function/prototype/S15.3.4_A3_T1.js4
-rw-r--r--test/built-ins/Function/prototype/S15.3.4_A3_T2.js2
-rw-r--r--test/built-ins/Function/prototype/Symbol.hasInstance/this-val-poisoned-prototype.js4
-rw-r--r--test/built-ins/Function/prototype/apply/15.3.4.3-1-s.js6
-rw-r--r--test/built-ins/Function/prototype/apply/15.3.4.3-2-s.js6
-rw-r--r--test/built-ins/Function/prototype/apply/15.3.4.3-3-s.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A10.js4
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A11.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A12.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A16.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T1.js8
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T2.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A2_T2.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T5.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T6.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T7.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T8.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T9.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T1.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T2.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T3.js7
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js5
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T7.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T8.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T2.js4
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T3.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T1.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T10.js8
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T2.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T3.js12
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js14
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T5.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T6.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T7.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T8.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T9.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T4.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T6.js4
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-0-1.js2
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-10-1.js4
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-11-1.js6
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-13.b-1.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-13.b-2.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-13.b-3.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-13.b-4.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-13.b-5.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-13.b-6.js6
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-15-1.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-15-2.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-15-3.js2
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-15-4.js21
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js15
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-16-1.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-16-2.js6
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-1.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-10.js2
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-11.js2
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-12.js2
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-13.js2
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-14.js2
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-15.js2
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-16.js4
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-2.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-3.js4
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-4.js4
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-5.js4
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-6.js4
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-7.js2
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-8.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-9.js4
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-20-2.js6
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-20-3.js6
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-21-2.js6
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-21-3.js6
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-3-1.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-1.js6
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-10.js24
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-11.js14
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-12.js6
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-2.js6
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-3.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-4.js24
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-5.js14
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-6.js16
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-7.js16
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-8.js26
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-9.js12
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-8-1.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-8-2.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-9-1.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-9-2.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-1.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-10.js12
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js12
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js14
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js14
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js14
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js14
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js12
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-3.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-4.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-5.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-6.js12
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js12
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js12
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js12
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-1.js16
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-10.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-11.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-12.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-13.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-14.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-2.js16
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-3.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-4.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-5.js18
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-6.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-7.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-8.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-9.js10
-rw-r--r--test/built-ins/Function/prototype/bind/S15.3.4.5_A1.js9
-rw-r--r--test/built-ins/Function/prototype/bind/S15.3.4.5_A16.js2
-rw-r--r--test/built-ins/Function/prototype/bind/S15.3.4.5_A2.js9
-rw-r--r--test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget-bound.js1
-rw-r--r--test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget.js1
-rw-r--r--test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-new.js1
-rw-r--r--test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-reflect.js1
-rw-r--r--test/built-ins/Function/prototype/bind/instance-name-chained.js4
-rw-r--r--test/built-ins/Function/prototype/bind/instance-name-non-string.js24
-rw-r--r--test/built-ins/Function/prototype/bind/instance-name.js4
-rw-r--r--test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js2
-rw-r--r--test/built-ins/Function/prototype/call/15.3.4.4-1-s.js6
-rw-r--r--test/built-ins/Function/prototype/call/15.3.4.4-2-s.js6
-rw-r--r--test/built-ins/Function/prototype/call/15.3.4.4-3-s.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A10.js4
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A11.js4
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A12.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A16.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A1_T1.js8
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A1_T2.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A2_T2.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A3_T5.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A3_T6.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A3_T7.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A3_T8.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A3_T9.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A5_T1.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A5_T2.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A5_T3.js7
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js5
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A5_T7.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A5_T8.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A6_T1.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A6_T10.js8
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A6_T2.js4
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A6_T3.js14
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js14
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A6_T5.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A6_T6.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A6_T7.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A6_T8.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A6_T9.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A7_T4.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A7_T6.js4
-rw-r--r--test/built-ins/Function/prototype/restricted-property-arguments.js2
-rw-r--r--test/built-ins/Function/prototype/restricted-property-caller.js2
-rw-r--r--test/built-ins/Function/prototype/toString/AsyncFunction.js2
-rw-r--r--test/built-ins/Function/prototype/toString/AsyncGenerator.js2
-rw-r--r--test/built-ins/Function/prototype/toString/Function.js2
-rw-r--r--test/built-ins/Function/prototype/toString/GeneratorFunction.js4
-rw-r--r--test/built-ins/Function/prototype/toString/S15.3.4.2_A10.js4
-rw-r--r--test/built-ins/Function/prototype/toString/S15.3.4.2_A16.js4
-rw-r--r--test/built-ins/Function/prototype/toString/S15.3.4.2_A6.js2
-rw-r--r--test/built-ins/Function/prototype/toString/S15.3.4.2_A8.js6
-rw-r--r--test/built-ins/Function/prototype/toString/arrow-function.js7
-rw-r--r--test/built-ins/Function/prototype/toString/async-arrow-function.js7
-rw-r--r--test/built-ins/Function/prototype/toString/async-function-declaration.js4
-rw-r--r--test/built-ins/Function/prototype/toString/async-function-expression.js6
-rw-r--r--test/built-ins/Function/prototype/toString/async-generator-declaration.js4
-rw-r--r--test/built-ins/Function/prototype/toString/async-generator-expression.js6
-rw-r--r--test/built-ins/Function/prototype/toString/async-generator-method-class-expression-static.js12
-rw-r--r--test/built-ins/Function/prototype/toString/async-generator-method-class-expression.js12
-rw-r--r--test/built-ins/Function/prototype/toString/async-generator-method-class-statement-static.js12
-rw-r--r--test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js12
-rw-r--r--test/built-ins/Function/prototype/toString/async-generator-method-object.js12
-rw-r--r--test/built-ins/Function/prototype/toString/async-method-class-expression-static.js12
-rw-r--r--test/built-ins/Function/prototype/toString/async-method-class-expression.js12
-rw-r--r--test/built-ins/Function/prototype/toString/async-method-class-statement-static.js12
-rw-r--r--test/built-ins/Function/prototype/toString/async-method-class-statement.js12
-rw-r--r--test/built-ins/Function/prototype/toString/async-method-object.js12
-rw-r--r--test/built-ins/Function/prototype/toString/bound-function.js2
-rw-r--r--test/built-ins/Function/prototype/toString/class-declaration-complex-heritage.js3
-rw-r--r--test/built-ins/Function/prototype/toString/class-declaration-explicit-ctor.js9
-rw-r--r--test/built-ins/Function/prototype/toString/class-declaration-implicit-ctor.js11
-rw-r--r--test/built-ins/Function/prototype/toString/class-expression-explicit-ctor.js8
-rw-r--r--test/built-ins/Function/prototype/toString/class-expression-implicit-ctor.js8
-rw-r--r--test/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js5
-rw-r--r--test/built-ins/Function/prototype/toString/function-declaration.js4
-rw-r--r--test/built-ins/Function/prototype/toString/function-expression.js6
-rw-r--r--test/built-ins/Function/prototype/toString/generator-function-declaration.js4
-rw-r--r--test/built-ins/Function/prototype/toString/generator-function-expression.js6
-rw-r--r--test/built-ins/Function/prototype/toString/generator-method.js9
-rw-r--r--test/built-ins/Function/prototype/toString/getter-class-expression-static.js12
-rw-r--r--test/built-ins/Function/prototype/toString/getter-class-expression.js12
-rw-r--r--test/built-ins/Function/prototype/toString/getter-class-statement-static.js12
-rw-r--r--test/built-ins/Function/prototype/toString/getter-class-statement.js12
-rw-r--r--test/built-ins/Function/prototype/toString/getter-object.js12
-rw-r--r--test/built-ins/Function/prototype/toString/intrinsics.js47
-rw-r--r--test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR-LF.js72
-rw-r--r--test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR.js37
-rw-r--r--test/built-ins/Function/prototype/toString/line-terminator-normalisation-LF.js24
-rw-r--r--test/built-ins/Function/prototype/toString/method-class-expression-static.js12
-rw-r--r--test/built-ins/Function/prototype/toString/method-class-expression.js12
-rw-r--r--test/built-ins/Function/prototype/toString/method-class-statement-static.js12
-rw-r--r--test/built-ins/Function/prototype/toString/method-class-statement.js12
-rw-r--r--test/built-ins/Function/prototype/toString/method-computed-property-name.js10
-rw-r--r--test/built-ins/Function/prototype/toString/method-object.js4
-rw-r--r--test/built-ins/Function/prototype/toString/setter-class-expression-static.js12
-rw-r--r--test/built-ins/Function/prototype/toString/setter-class-expression.js12
-rw-r--r--test/built-ins/Function/prototype/toString/setter-class-statement-static.js12
-rw-r--r--test/built-ins/Function/prototype/toString/setter-class-statement.js12
-rw-r--r--test/built-ins/Function/prototype/toString/setter-object.js12
-rw-r--r--test/built-ins/Function/prototype/toString/unicode.js9
-rw-r--r--test/built-ins/GeneratorFunction/extensibility.js2
-rw-r--r--test/built-ins/GeneratorFunction/has-instance.js4
-rw-r--r--test/built-ins/GeneratorFunction/instance-construct-throws.js4
-rw-r--r--test/built-ins/GeneratorFunction/instance-length.js2
-rw-r--r--test/built-ins/GeneratorFunction/instance-name.js2
-rw-r--r--test/built-ins/GeneratorFunction/instance-prototype.js2
-rw-r--r--test/built-ins/GeneratorFunction/instance-yield-expr-in-param.js2
-rw-r--r--test/built-ins/GeneratorFunction/invoked-as-constructor-no-arguments.js2
-rw-r--r--test/built-ins/GeneratorFunction/invoked-as-function-multiple-arguments.js2
-rw-r--r--test/built-ins/GeneratorFunction/invoked-as-function-no-arguments.js2
-rw-r--r--test/built-ins/GeneratorFunction/invoked-as-function-single-argument.js2
-rw-r--r--test/built-ins/GeneratorFunction/length.js2
-rw-r--r--test/built-ins/GeneratorFunction/name.js2
-rw-r--r--test/built-ins/GeneratorFunction/proto-from-ctor-realm.js4
-rw-r--r--test/built-ins/GeneratorFunction/prototype/constructor.js2
-rw-r--r--test/built-ins/GeneratorFunction/prototype/extensibility.js2
-rw-r--r--test/built-ins/GeneratorFunction/prototype/prop-desc.js2
-rw-r--r--test/built-ins/GeneratorPrototype/next/consecutive-yields.js5
-rw-r--r--test/built-ins/GeneratorPrototype/next/context-method-invocation.js9
-rw-r--r--test/built-ins/GeneratorPrototype/next/from-state-executing.js2
-rw-r--r--test/built-ins/GeneratorPrototype/next/lone-return.js4
-rw-r--r--test/built-ins/GeneratorPrototype/next/lone-yield.js4
-rw-r--r--test/built-ins/GeneratorPrototype/next/this-val-not-generator.js32
-rw-r--r--test/built-ins/GeneratorPrototype/next/this-val-not-object.js48
-rw-r--r--test/built-ins/GeneratorPrototype/return/from-state-executing.js1
-rw-r--r--test/built-ins/GeneratorPrototype/return/from-state-suspended-start.js1
-rw-r--r--test/built-ins/GeneratorPrototype/return/this-val-not-generator.js32
-rw-r--r--test/built-ins/GeneratorPrototype/return/this-val-not-object.js48
-rw-r--r--test/built-ins/GeneratorPrototype/return/try-catch-before-try.js1
-rw-r--r--test/built-ins/GeneratorPrototype/return/try-catch-following-catch.js1
-rw-r--r--test/built-ins/GeneratorPrototype/return/try-catch-within-catch.js1
-rw-r--r--test/built-ins/GeneratorPrototype/return/try-catch-within-try.js1
-rw-r--r--test/built-ins/GeneratorPrototype/return/try-finally-before-try.js5
-rw-r--r--test/built-ins/GeneratorPrototype/return/try-finally-following-finally.js4
-rw-r--r--test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-catch.js1
-rw-r--r--test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-finally.js4
-rw-r--r--test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-inner-try.js1
-rw-r--r--test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-after-nested.js3
-rw-r--r--test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-before-nested.js1
-rw-r--r--test/built-ins/GeneratorPrototype/return/try-finally-within-finally.js4
-rw-r--r--test/built-ins/GeneratorPrototype/return/try-finally-within-try.js1
-rw-r--r--test/built-ins/GeneratorPrototype/throw/from-state-completed.js5
-rw-r--r--test/built-ins/GeneratorPrototype/throw/from-state-executing.js1
-rw-r--r--test/built-ins/GeneratorPrototype/throw/from-state-suspended-start.js5
-rw-r--r--test/built-ins/GeneratorPrototype/throw/this-val-not-generator.js32
-rw-r--r--test/built-ins/GeneratorPrototype/throw/this-val-not-object.js48
-rw-r--r--test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js5
-rw-r--r--test/built-ins/GeneratorPrototype/throw/try-catch-following-catch.js5
-rw-r--r--test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js5
-rw-r--r--test/built-ins/GeneratorPrototype/throw/try-catch-within-try.js1
-rw-r--r--test/built-ins/GeneratorPrototype/throw/try-finally-before-try.js7
-rw-r--r--test/built-ins/GeneratorPrototype/throw/try-finally-following-finally.js5
-rw-r--r--test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-catch.js5
-rw-r--r--test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-finally.js5
-rw-r--r--test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-inner-try.js1
-rw-r--r--test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-after-nested.js5
-rw-r--r--test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-before-nested.js5
-rw-r--r--test/built-ins/GeneratorPrototype/throw/try-finally-within-finally.js5
-rw-r--r--test/built-ins/GeneratorPrototype/throw/try-finally-within-try.js5
-rw-r--r--test/built-ins/Infinity/15.1.1.2-0.js2
-rw-r--r--test/built-ins/Infinity/S15.1.1.2_A1.js8
-rw-r--r--test/built-ins/Infinity/S15.1.1.2_A2_T1.js2
-rw-r--r--test/built-ins/Infinity/S15.1.1.2_A2_T2.js2
-rw-r--r--test/built-ins/Infinity/S15.1.1.2_A3_T2.js2
-rw-r--r--test/built-ins/Infinity/S15.1.1.2_A4.js2
-rw-r--r--test/built-ins/JSON/15.12-0-1.js2
-rw-r--r--test/built-ins/JSON/15.12-0-2.js4
-rw-r--r--test/built-ins/JSON/15.12-0-3.js4
-rw-r--r--test/built-ins/JSON/15.12-0-4.js12
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-0-1.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-0-2.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-0-3.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-0-4.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-0-5.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-0-6.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-0-8.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-0-9.js10
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-g1-1.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-g1-2.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-g1-3.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-g1-4.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-g2-4.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-g4-1.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-g4-2.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-g4-3.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-g4-4.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-g5-2.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-g5-3.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.2-0-1.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.2-0-2.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.2-0-3.js4
-rw-r--r--test/built-ins/JSON/parse/15.12.2-2-1.js76
-rw-r--r--test/built-ins/JSON/parse/15.12.2-2-10.js76
-rw-r--r--test/built-ins/JSON/parse/15.12.2-2-2.js76
-rw-r--r--test/built-ins/JSON/parse/15.12.2-2-3.js76
-rw-r--r--test/built-ins/JSON/parse/15.12.2-2-4.js76
-rw-r--r--test/built-ins/JSON/parse/15.12.2-2-5.js76
-rw-r--r--test/built-ins/JSON/parse/15.12.2-2-6.js76
-rw-r--r--test/built-ins/JSON/parse/15.12.2-2-7.js76
-rw-r--r--test/built-ins/JSON/parse/15.12.2-2-8.js76
-rw-r--r--test/built-ins/JSON/parse/15.12.2-2-9.js76
-rw-r--r--test/built-ins/JSON/parse/revived-proxy.js5
-rw-r--r--test/built-ins/JSON/parse/reviver-object-define-prop-err.js4
-rw-r--r--test/built-ins/JSON/parse/reviver-object-delete-err.js4
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-0-1.js2
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-0-2.js2
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-0-3.js4
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-10.js4
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-11.js6
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-12.js4
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-13.js6
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-15.js4
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-16.js78
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-17.js78
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-18.js78
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-19.js78
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-2.js4
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-20.js78
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-21.js78
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-22.js78
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-23.js78
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-24.js78
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-25.js78
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-26.js10
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-4-1.js2
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-5-a-i-1.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-5-b-i-1.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-6-a-1.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-6-a-2.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-6-b-1.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-6-b-2.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-6-b-3.js15
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-6-b-4.js17
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-7-a-1.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-8-a-1.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-8-a-2.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-8-a-3.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-8-a-4.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-8-a-5.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3_2-2-b-i-1.js10
-rw-r--r--test/built-ins/JSON/stringify/15.12.3_2-2-b-i-2.js10
-rw-r--r--test/built-ins/JSON/stringify/15.12.3_2-2-b-i-3.js10
-rw-r--r--test/built-ins/JSON/stringify/15.12.3_2-3-a-1.js4
-rw-r--r--test/built-ins/JSON/stringify/15.12.3_2-3-a-2.js4
-rw-r--r--test/built-ins/JSON/stringify/15.12.3_2-3-a-3.js4
-rw-r--r--test/built-ins/JSON/stringify/15.12.3_4-1-1.js6
-rw-r--r--test/built-ins/JSON/stringify/15.12.3_4-1-2.js6
-rw-r--r--test/built-ins/JSON/stringify/15.12.3_4-1-3.js10
-rw-r--r--test/built-ins/JSON/stringify/bigint-order.js11
-rw-r--r--test/built-ins/JSON/stringify/bigint-replacer.js12
-rw-r--r--test/built-ins/JSON/stringify/bigint-tojson.js4
-rw-r--r--test/built-ins/JSON/stringify/bigint.js4
-rw-r--r--test/built-ins/JSON/stringify/replacer-proxy.js8
-rw-r--r--test/built-ins/JSON/stringify/value-proxy-revoked.js6
-rw-r--r--test/built-ins/Map/iterable-calls-set.js5
-rw-r--r--test/built-ins/Map/iterator-close-after-set-failure.js9
-rw-r--r--test/built-ins/Map/iterator-items-are-not-object-close-iterator.js5
-rw-r--r--test/built-ins/Map/iterator-items-are-not-object.js4
-rw-r--r--test/built-ins/Map/map-iterable-throws-when-set-is-not-callable.js5
-rw-r--r--test/built-ins/Map/map-iterable.js4
-rw-r--r--test/built-ins/Map/newtarget.js5
-rw-r--r--test/built-ins/Map/prototype/clear/clear-map.js7
-rw-r--r--test/built-ins/Map/prototype/clear/clear.js6
-rw-r--r--test/built-ins/Map/prototype/clear/map-data-list-is-preserved.js6
-rw-r--r--test/built-ins/Map/prototype/clear/returns-undefined.js5
-rw-r--r--test/built-ins/Map/prototype/delete/delete.js6
-rw-r--r--test/built-ins/Map/prototype/delete/does-not-break-iterators.js6
-rw-r--r--test/built-ins/Map/prototype/delete/returns-false.js5
-rw-r--r--test/built-ins/Map/prototype/delete/returns-true-for-deleted-entry.js5
-rw-r--r--test/built-ins/Map/prototype/entries/returns-iterator.js6
-rw-r--r--test/built-ins/Map/prototype/forEach/callback-result-is-abrupt.js4
-rw-r--r--test/built-ins/Map/prototype/get/returns-undefined.js2
-rw-r--r--test/built-ins/Map/prototype/has/return-false-different-key-types.js2
-rw-r--r--test/built-ins/Map/prototype/has/return-true-different-key-types.js2
-rw-r--r--test/built-ins/Map/prototype/set/append-new-values-return-map.js2
-rw-r--r--test/built-ins/Map/prototype/set/append-new-values.js6
-rw-r--r--test/built-ins/Map/prototype/set/replaces-a-value-normalizes-zero-key.js8
-rw-r--r--test/built-ins/Map/prototype/set/replaces-a-value-returns-map.js4
-rw-r--r--test/built-ins/Map/prototype/set/replaces-a-value.js4
-rw-r--r--test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots-map.js5
-rw-r--r--test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots.js5
-rw-r--r--test/built-ins/MapIteratorPrototype/next/this-not-object-throw-entries.js5
-rw-r--r--test/built-ins/MapIteratorPrototype/next/this-not-object-throw-keys.js5
-rw-r--r--test/built-ins/MapIteratorPrototype/next/this-not-object-throw-prototype-iterator.js5
-rw-r--r--test/built-ins/MapIteratorPrototype/next/this-not-object-throw-values.js5
-rw-r--r--test/built-ins/Math/abs/S15.8.2.1_A3.js2
-rw-r--r--test/built-ins/Math/acosh/nan-returns.js36
-rw-r--r--test/built-ins/Math/asinh/asinh-specialVals.js36
-rw-r--r--test/built-ins/Math/atan2/S15.8.2.5_A1.js20
-rw-r--r--test/built-ins/Math/atan2/S15.8.2.5_A16.js3
-rw-r--r--test/built-ins/Math/atan2/S15.8.2.5_A4.js2
-rw-r--r--test/built-ins/Math/atan2/S15.8.2.5_A8.js5
-rw-r--r--test/built-ins/Math/atanh/atanh-specialVals.js62
-rw-r--r--test/built-ins/Math/cbrt/cbrt-specialValues.js36
-rw-r--r--test/built-ins/Math/cbrt/prop-desc.js24
-rw-r--r--test/built-ins/Math/ceil/S15.8.2.6_A4.js2
-rw-r--r--test/built-ins/Math/ceil/S15.8.2.6_A5.js2
-rw-r--r--test/built-ins/Math/ceil/S15.8.2.6_A7.js12
-rw-r--r--test/built-ins/Math/cos/S15.8.2.7_A2.js2
-rw-r--r--test/built-ins/Math/cos/S15.8.2.7_A3.js2
-rw-r--r--test/built-ins/Math/cosh/cosh-specialVals.js32
-rw-r--r--test/built-ins/Math/exp/S15.8.2.8_A2.js2
-rw-r--r--test/built-ins/Math/exp/S15.8.2.8_A3.js2
-rw-r--r--test/built-ins/Math/exp/S15.8.2.8_A4.js2
-rw-r--r--test/built-ins/Math/expm1/expm1-specialVals.js36
-rw-r--r--test/built-ins/Math/floor/S15.8.2.9_A4.js2
-rw-r--r--test/built-ins/Math/floor/S15.8.2.9_A5.js2
-rw-r--r--test/built-ins/Math/floor/S15.8.2.9_A7.js12
-rw-r--r--test/built-ins/Math/hypot/Math.hypot_Success_2.js2
-rw-r--r--test/built-ins/Math/log/S15.8.2.10_A3.js4
-rw-r--r--test/built-ins/Math/log/S15.8.2.10_A5.js2
-rw-r--r--test/built-ins/Math/log10/Log10-specialVals.js65
-rw-r--r--test/built-ins/Math/log2/log2-basicTests.js68
-rw-r--r--test/built-ins/Math/max/S15.8.2.11_A1.js2
-rw-r--r--test/built-ins/Math/max/S15.8.2.11_A2.js62
-rw-r--r--test/built-ins/Math/max/S15.8.2.11_A4.js6
-rw-r--r--test/built-ins/Math/min/S15.8.2.12_A1.js2
-rw-r--r--test/built-ins/Math/min/S15.8.2.12_A2.js62
-rw-r--r--test/built-ins/Math/min/S15.8.2.12_A4.js6
-rw-r--r--test/built-ins/Math/pow/applying-the-exp-operator_A10.js8
-rw-r--r--test/built-ins/Math/pow/applying-the-exp-operator_A11.js8
-rw-r--r--test/built-ins/Math/pow/applying-the-exp-operator_A13.js8
-rw-r--r--test/built-ins/Math/pow/applying-the-exp-operator_A14.js8
-rw-r--r--test/built-ins/Math/pow/applying-the-exp-operator_A18.js8
-rw-r--r--test/built-ins/Math/pow/applying-the-exp-operator_A2.js8
-rw-r--r--test/built-ins/Math/pow/applying-the-exp-operator_A21.js8
-rw-r--r--test/built-ins/Math/pow/applying-the-exp-operator_A22.js8
-rw-r--r--test/built-ins/Math/pow/applying-the-exp-operator_A23.js2
-rw-r--r--test/built-ins/Math/pow/applying-the-exp-operator_A3.js8
-rw-r--r--test/built-ins/Math/pow/applying-the-exp-operator_A5.js8
-rw-r--r--test/built-ins/Math/random/S15.8.2.14_A1.js18
-rw-r--r--test/built-ins/Math/round/S15.8.2.15_A4.js2
-rw-r--r--test/built-ins/Math/round/S15.8.2.15_A5.js2
-rw-r--r--test/built-ins/Math/round/S15.8.2.15_A6.js34
-rw-r--r--test/built-ins/Math/round/S15.8.2.15_A7.js2
-rw-r--r--test/built-ins/Math/sign/sign-specialVals.js40
-rw-r--r--test/built-ins/Math/sinh/sinh-specialVals.js36
-rw-r--r--test/built-ins/Math/sqrt/S15.8.2.17_A5.js2
-rw-r--r--test/built-ins/Math/tanh/tanh-specialVals.js36
-rw-r--r--test/built-ins/Math/trunc/trunc-sampleTests.js94
-rw-r--r--test/built-ins/Math/trunc/trunc-specialVals.js32
-rw-r--r--test/built-ins/NaN/15.1.1.1-0.js2
-rw-r--r--test/built-ins/NaN/S15.1.1.1_A2_T1.js2
-rw-r--r--test/built-ins/NaN/S15.1.1.1_A2_T2.js2
-rw-r--r--test/built-ins/NaN/S15.1.1.1_A3_T2.js2
-rw-r--r--test/built-ins/NaN/S15.1.1.1_A4.js2
-rw-r--r--test/built-ins/Number/15.7.3-2.js2
-rw-r--r--test/built-ins/Number/15.7.4-1.js4
-rw-r--r--test/built-ins/Number/MAX_VALUE/S15.7.3.2_A4.js4
-rw-r--r--test/built-ins/Number/MIN_VALUE/S15.7.3.3_A4.js4
-rw-r--r--test/built-ins/Number/NEGATIVE_INFINITY/S15.7.3.5_A2.js2
-rw-r--r--test/built-ins/Number/POSITIVE_INFINITY/S15.7.3.6_A2.js2
-rw-r--r--test/built-ins/Number/S15.7.1.1_A1.js16
-rw-r--r--test/built-ins/Number/S15.7.1.1_A2.js12
-rw-r--r--test/built-ins/Number/S15.7.2.1_A1.js8
-rw-r--r--test/built-ins/Number/S15.7.2.1_A3.js2
-rw-r--r--test/built-ins/Number/S15.7.3_A1.js2
-rw-r--r--test/built-ins/Number/S15.7.3_A2.js2
-rw-r--r--test/built-ins/Number/S15.7.3_A3.js2
-rw-r--r--test/built-ins/Number/S15.7.3_A4.js2
-rw-r--r--test/built-ins/Number/S15.7.3_A5.js2
-rw-r--r--test/built-ins/Number/S15.7.3_A6.js2
-rw-r--r--test/built-ins/Number/S15.7.3_A8.js2
-rw-r--r--test/built-ins/Number/S15.7.5_A1_T01.js4
-rw-r--r--test/built-ins/Number/S15.7.5_A1_T02.js4
-rw-r--r--test/built-ins/Number/S15.7.5_A1_T03.js4
-rw-r--r--test/built-ins/Number/S15.7.5_A1_T04.js4
-rw-r--r--test/built-ins/Number/S15.7.5_A1_T05.js4
-rw-r--r--test/built-ins/Number/S15.7.5_A1_T06.js4
-rw-r--r--test/built-ins/Number/S15.7.5_A1_T07.js4
-rw-r--r--test/built-ins/Number/S8.12.8_A3.js11
-rw-r--r--test/built-ins/Number/S8.12.8_A4.js11
-rw-r--r--test/built-ins/Number/S9.1_A1_T1.js18
-rw-r--r--test/built-ins/Number/S9.3.1_A1.js2
-rw-r--r--test/built-ins/Number/S9.3.1_A10.js2
-rw-r--r--test/built-ins/Number/S9.3.1_A11.js4
-rw-r--r--test/built-ins/Number/S9.3.1_A12.js4
-rw-r--r--test/built-ins/Number/S9.3.1_A13.js6
-rw-r--r--test/built-ins/Number/S9.3.1_A14.js2
-rw-r--r--test/built-ins/Number/S9.3.1_A15.js2
-rw-r--r--test/built-ins/Number/S9.3.1_A17.js6
-rw-r--r--test/built-ins/Number/S9.3.1_A18.js6
-rw-r--r--test/built-ins/Number/S9.3.1_A19.js6
-rw-r--r--test/built-ins/Number/S9.3.1_A2.js60
-rw-r--r--test/built-ins/Number/S9.3.1_A20.js6
-rw-r--r--test/built-ins/Number/S9.3.1_A21.js6
-rw-r--r--test/built-ins/Number/S9.3.1_A22.js6
-rw-r--r--test/built-ins/Number/S9.3.1_A23.js6
-rw-r--r--test/built-ins/Number/S9.3.1_A24.js6
-rw-r--r--test/built-ins/Number/S9.3.1_A25.js6
-rw-r--r--test/built-ins/Number/S9.3.1_A26.js8
-rw-r--r--test/built-ins/Number/S9.3.1_A27.js8
-rw-r--r--test/built-ins/Number/S9.3.1_A28.js8
-rw-r--r--test/built-ins/Number/S9.3.1_A29.js8
-rw-r--r--test/built-ins/Number/S9.3.1_A30.js8
-rw-r--r--test/built-ins/Number/S9.3.1_A31.js8
-rw-r--r--test/built-ins/Number/S9.3.1_A32.js8
-rw-r--r--test/built-ins/Number/S9.3.1_A3_T2.js4
-rw-r--r--test/built-ins/Number/S9.3.1_A3_T2_U180E.js2
-rw-r--r--test/built-ins/Number/S9.3.1_A4_T1.js2
-rw-r--r--test/built-ins/Number/S9.3.1_A4_T2.js6
-rw-r--r--test/built-ins/Number/S9.3.1_A5_T1.js2
-rw-r--r--test/built-ins/Number/S9.3.1_A5_T3.js6
-rw-r--r--test/built-ins/Number/S9.3.1_A6_T2.js4
-rw-r--r--test/built-ins/Number/S9.3.1_A7.js2
-rw-r--r--test/built-ins/Number/S9.3.1_A8.js4
-rw-r--r--test/built-ins/Number/S9.3.1_A9.js4
-rw-r--r--test/built-ins/Number/S9.3_A2_T1.js6
-rw-r--r--test/built-ins/Number/S9.3_A3_T1.js4
-rw-r--r--test/built-ins/Number/S9.3_A4.1_T1.js2
-rw-r--r--test/built-ins/Number/S9.3_A4.2_T1.js4
-rw-r--r--test/built-ins/Number/S9.3_A5_T1.js66
-rw-r--r--test/built-ins/Number/prototype/15.7.3.1-2.js2
-rw-r--r--test/built-ins/Number/prototype/S15.7.3.1_A3.js2
-rw-r--r--test/built-ins/Number/prototype/S15.7.4_A1.js2
-rw-r--r--test/built-ins/Number/prototype/S15.7.4_A3.1.js2
-rw-r--r--test/built-ins/Number/prototype/S15.7.4_A3.2.js2
-rw-r--r--test/built-ins/Number/prototype/S15.7.4_A3.3.js2
-rw-r--r--test/built-ins/Number/prototype/S15.7.4_A3.4.js2
-rw-r--r--test/built-ins/Number/prototype/S15.7.4_A3.5.js2
-rw-r--r--test/built-ins/Number/prototype/S15.7.4_A3.6.js2
-rw-r--r--test/built-ins/Number/prototype/S15.7.4_A3.7.js2
-rw-r--r--test/built-ins/Number/prototype/toExponential/range.js2
-rw-r--r--test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T01.js28
-rw-r--r--test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T02.js28
-rw-r--r--test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T01.js28
-rw-r--r--test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T02.js28
-rw-r--r--test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.4_T01.js28
-rw-r--r--test/built-ins/Number/prototype/toFixed/S15.7.4.5_A2_T01.js4
-rw-r--r--test/built-ins/Number/prototype/toFixed/return-type.js2
-rw-r--r--test/built-ins/Number/prototype/toPrecision/range.js1
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T01.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T02.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T03.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T01.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T02.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T03.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T04.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T05.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T06.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T07.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T08.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T09.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T10.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T11.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T12.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T13.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T14.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T15.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T16.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T17.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T18.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T19.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T20.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T21.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T22.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T23.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T24.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T25.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T26.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T27.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T28.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T29.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T30.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T31.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T32.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T33.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T34.js16
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js48
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T02.js56
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T03.js40
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T04.js40
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T01.js20
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T02.js20
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T03.js20
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T04.js20
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T05.js28
-rw-r--r--test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T01.js14
-rw-r--r--test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T02.js14
-rw-r--r--test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T01.js20
-rw-r--r--test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T02.js20
-rw-r--r--test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T03.js20
-rw-r--r--test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T04.js20
-rw-r--r--test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T05.js28
-rw-r--r--test/built-ins/Number/string-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js1
-rw-r--r--test/built-ins/Number/string-numeric-separator-literal-nzd-nsl-dd-one-of.js2
-rw-r--r--test/built-ins/Object/S15.2.1.1_A1_T1.js16
-rw-r--r--test/built-ins/Object/S15.2.1.1_A1_T2.js14
-rw-r--r--test/built-ins/Object/S15.2.1.1_A1_T3.js16
-rw-r--r--test/built-ins/Object/S15.2.1.1_A1_T4.js16
-rw-r--r--test/built-ins/Object/S15.2.1.1_A1_T5.js16
-rw-r--r--test/built-ins/Object/S15.2.1.1_A2_T1.js2
-rw-r--r--test/built-ins/Object/S15.2.1.1_A2_T10.js4
-rw-r--r--test/built-ins/Object/S15.2.1.1_A2_T11.js6
-rw-r--r--test/built-ins/Object/S15.2.1.1_A2_T12.js6
-rw-r--r--test/built-ins/Object/S15.2.1.1_A2_T13.js4
-rw-r--r--test/built-ins/Object/S15.2.1.1_A2_T14.js4
-rw-r--r--test/built-ins/Object/S15.2.1.1_A2_T2.js4
-rw-r--r--test/built-ins/Object/S15.2.1.1_A2_T3.js4
-rw-r--r--test/built-ins/Object/S15.2.1.1_A2_T4.js6
-rw-r--r--test/built-ins/Object/S15.2.1.1_A2_T5.js4
-rw-r--r--test/built-ins/Object/S15.2.1.1_A2_T6.js6
-rw-r--r--test/built-ins/Object/S15.2.1.1_A2_T7.js2
-rw-r--r--test/built-ins/Object/S15.2.1.1_A2_T8.js6
-rw-r--r--test/built-ins/Object/S15.2.1.1_A2_T9.js6
-rw-r--r--test/built-ins/Object/S15.2.1.1_A3_T1.js4
-rw-r--r--test/built-ins/Object/S15.2.1.1_A3_T2.js2
-rw-r--r--test/built-ins/Object/S15.2.1.1_A3_T3.js4
-rw-r--r--test/built-ins/Object/S15.2.2.1_A1_T1.js2
-rw-r--r--test/built-ins/Object/S15.2.2.1_A1_T2.js2
-rw-r--r--test/built-ins/Object/S15.2.2.1_A1_T3.js2
-rw-r--r--test/built-ins/Object/S15.2.2.1_A1_T4.js2
-rw-r--r--test/built-ins/Object/S15.2.2.1_A1_T5.js2
-rw-r--r--test/built-ins/Object/S15.2.2.1_A2_T1.js4
-rw-r--r--test/built-ins/Object/S15.2.2.1_A2_T2.js4
-rw-r--r--test/built-ins/Object/S15.2.2.1_A2_T3.js2
-rw-r--r--test/built-ins/Object/S15.2.2.1_A2_T5.js4
-rw-r--r--test/built-ins/Object/S15.2.2.1_A2_T6.js4
-rw-r--r--test/built-ins/Object/S15.2.2.1_A2_T7.js4
-rw-r--r--test/built-ins/Object/S15.2.2.1_A3_T1.js6
-rw-r--r--test/built-ins/Object/S15.2.2.1_A3_T2.js6
-rw-r--r--test/built-ins/Object/S15.2.2.1_A3_T3.js6
-rw-r--r--test/built-ins/Object/S15.2.2.1_A4_T1.js6
-rw-r--r--test/built-ins/Object/S15.2.2.1_A4_T2.js6
-rw-r--r--test/built-ins/Object/S15.2.2.1_A4_T3.js6
-rw-r--r--test/built-ins/Object/S15.2.2.1_A5_T1.js6
-rw-r--r--test/built-ins/Object/S15.2.2.1_A5_T2.js2
-rw-r--r--test/built-ins/Object/S15.2.2.1_A5_T3.js6
-rw-r--r--test/built-ins/Object/S15.2.2.1_A5_T4.js8
-rw-r--r--test/built-ins/Object/S15.2.2.1_A6_T1.js4
-rw-r--r--test/built-ins/Object/S15.2.2.1_A6_T2.js2
-rw-r--r--test/built-ins/Object/S15.2.2.1_A6_T3.js4
-rw-r--r--test/built-ins/Object/S15.2.3_A1.js2
-rw-r--r--test/built-ins/Object/S15.2.3_A3.js2
-rw-r--r--test/built-ins/Object/S15.2_A1.js6
-rw-r--r--test/built-ins/Object/S9.9_A3.js12
-rw-r--r--test/built-ins/Object/S9.9_A4.js66
-rw-r--r--test/built-ins/Object/S9.9_A5.js24
-rw-r--r--test/built-ins/Object/S9.9_A6.js16
-rw-r--r--test/built-ins/Object/assign/ObjectOverride-sameproperty.js10
-rw-r--r--test/built-ins/Object/assign/Override-notstringtarget.js4
-rw-r--r--test/built-ins/Object/assign/Override.js14
-rw-r--r--test/built-ins/Object/assign/Source-Null-Undefined.js2
-rw-r--r--test/built-ins/Object/assign/Source-Number-Boolen-Symbol.js2
-rw-r--r--test/built-ins/Object/assign/Source-String.js2
-rw-r--r--test/built-ins/Object/assign/Target-Boolean.js4
-rw-r--r--test/built-ins/Object/assign/Target-Null.js6
-rw-r--r--test/built-ins/Object/assign/Target-Number.js4
-rw-r--r--test/built-ins/Object/assign/Target-Object.js8
-rw-r--r--test/built-ins/Object/assign/Target-String.js4
-rw-r--r--test/built-ins/Object/assign/Target-Symbol.js4
-rw-r--r--test/built-ins/Object/assign/Target-Undefined.js6
-rw-r--r--test/built-ins/Object/assign/name.js1
-rw-r--r--test/built-ins/Object/assign/source-own-prop-error.js4
-rw-r--r--test/built-ins/Object/assign/target-set-not-writable.js4
-rw-r--r--test/built-ins/Object/assign/target-set-user-error.js4
-rw-r--r--test/built-ins/Object/create/15.2.3.5-1-1.js2
-rw-r--r--test/built-ins/Object/create/15.2.3.5-1-2.js2
-rw-r--r--test/built-ins/Object/create/15.2.3.5-1-3.js2
-rw-r--r--test/built-ins/Object/create/15.2.3.5-1-4.js2
-rw-r--r--test/built-ins/Object/create/15.2.3.5-1.js2
-rw-r--r--test/built-ins/Object/create/15.2.3.5-2-1.js8
-rw-r--r--test/built-ins/Object/create/15.2.3.5-2-2.js2
-rw-r--r--test/built-ins/Object/create/15.2.3.5-3-1.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-1.js18
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-10.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-100.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-101.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-102.js24
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-103.js9
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-104.js12
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-105.js24
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-106.js30
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-107.js13
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-108.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-109.js4
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-11.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-110.js12
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-111.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-112.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-113.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-114.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-115.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-116.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-117.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-118.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-119.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-12.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-120.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-121.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-122.js18
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-124.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-125.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-126.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-127.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-128.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-129.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-13.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-130.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-131.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-132.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-133.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-134.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-135.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-136.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-137.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-138.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-139.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-14.js29
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-140.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-141.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-142.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-143.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-144.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-145.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-146.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-147.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-149.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-15.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-150.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-151.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-152.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-153.js8
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-154.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-155.js18
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-156.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-157.js34
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-158.js18
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-159.js24
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-16.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-160.js28
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-161.js34
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-162.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-163.js32
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-164.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-165.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-166.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-167.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-168.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-169.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-17.js12
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-170.js8
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-171.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-172.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-173.js8
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-174.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-175.js12
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-177.js8
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-178.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-179.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-18.js12
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-180.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-181.js24
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-182.js26
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-183.js36
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-184.js24
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-185.js30
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-186.js34
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-187.js40
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-188.js8
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-189.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-19.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-190.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-191.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-192.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-193.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-194.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-195.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-196.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-197.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-198.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-199.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-2.js2
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-20.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-200.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-201.js18
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-203.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-204.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-205.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-206.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-207.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-208.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-209.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-21.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-210.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-211.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-212.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-213.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-214.js4
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-215.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-216.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-217.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-218.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-219.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-22.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-220.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-221.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-222.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-223.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-224.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-225.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-226.js18
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-228.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-229.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-23.js36
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-230.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-231.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-232.js8
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-233.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-234.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-235.js32
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-236.js38
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-237.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-238.js28
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-239.js36
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-24.js32
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-240.js42
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-241.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-242.js34
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-243.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-244.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-245.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-246.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-247.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-248.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-249.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-25.js42
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-250.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-251.js12
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-252.js12
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-253.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-254.js16
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-256.js12
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-257.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-258.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-259.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-26.js12
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-260.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-261.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-262.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-263.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-266.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-267.js8
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-268.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-269.js28
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-27.js30
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-270.js36
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-271.js56
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-272.js28
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-273.js34
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-274.js52
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-275.js60
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-276.js18
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-277.js32
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-278.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-279.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-28.js12
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-280.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-281.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-282.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-283.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-284.js18
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-285.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-286.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-287.js18
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-288.js18
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-289.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-29.js12
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-291.js18
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-292.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-293.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-294.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-295.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-296.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-297.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-298.js18
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-3.js2
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-30.js12
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-300.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-301.js12
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-302.js12
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-303.js12
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-304.js12
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-305.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-306.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-307.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-308.js28
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-309.js11
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-31.js12
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-310.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-311.js50
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-312.js28
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-313.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-314.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-315.js30
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-316.js49
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-32.js12
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-33.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-34.js12
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-35.js12
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-36.js10
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-37.js21
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-38.js14
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-39.js34
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-4.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-40.js42
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-41.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-42.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-43.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-44.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-45.js6
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-46.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-47.js18
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-48.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-49.js30
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-5.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-50.js36
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-51.js52
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-52.js30
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-53.js36
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-54.js40
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-55.js46
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-56.js26
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-57.js42
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-58.js32
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-59.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-6.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-60.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-61.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-62.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-63.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-64.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-65.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-66.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-67.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-68.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-69.js24
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-7.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-71.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-72.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-73.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-74.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-75.js24
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-76.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-77.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-78.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-79.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-8.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-80.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-81.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-82.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-83.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-84.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-85.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-86.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-87.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-88.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-89.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-9.js20
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-90.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-91.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-92.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-93.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-94.js26
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-96.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-97.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-98.js22
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-99.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-0-1.js2
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-1-1.js2
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-1-2.js2
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-1-3.js2
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-1-4.js2
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-1.js2
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-2-1.js2
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-2-10.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-2-11.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-2-12.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-2-13.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-2-14.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-2-15.js36
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-2-16.js28
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-2-18.js36
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-2-2.js2
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-2-3.js4
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-2-4.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-2-5.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-2-6.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-2-7.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-2-8.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-2-9.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-3-1.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-3-2.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-3-3.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-3-4.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-3-5.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-3-6.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-3-7.js26
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-3-8.js26
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-a-1.js36
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-a-10.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-a-11.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-a-12.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-a-13.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-a-14.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-a-15.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-a-16.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-a-17.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-a-2.js40
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-a-3.js40
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-a-4.js44
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-a-5.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-a-6.js40
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-a-7.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-a-8.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-a-9.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-1.js8
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-10.js38
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-100.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-101.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-102.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-103.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-104.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-105.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-106.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-107.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-109.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-11.js54
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-110.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-111.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-112.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-113.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-114.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-115.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-116.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-117.js32
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-118.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-119.js26
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-12.js32
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-120.js30
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-121.js36
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-122.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-123.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-124.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-125.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-126.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-127.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-128.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-129.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-13.js38
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-130.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-131.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-132.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-133.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-134.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-135.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-137.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-138.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-139.js7
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-14.js42
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-140.js7
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-141.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-142.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-143.js17
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-144.js8
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-145.js28
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-146.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-147.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-148.js4
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-149.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-15.js48
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-150.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-151.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-152.js2
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-153.js2
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-154.js2
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-155.js2
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-156.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-157.js2
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-158.js3
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-159.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-16.js28
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-160.js2
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-161.js15
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-163.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-164.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-165.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-166.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-167.js7
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-168.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-169.js7
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-17.js44
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-170.js7
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-171.js7
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-172.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-173.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-174.js7
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-175.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-176.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-177.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-178.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-179.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-18.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-180.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-181.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-182.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-183.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-184.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-185.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-186.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-188.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-189.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-19.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-190.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-191.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-192.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-193.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-194.js26
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-195.js32
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-196.js40
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-197.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-198.js30
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-199.js48
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-2.js8
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-20.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-200.js56
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-201.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-202.js38
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-203.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-204.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-205.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-206.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-207.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-208.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-209.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-21.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-210.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-211.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-212.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-213.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-214.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-216.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-217.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-218.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-219.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-22.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-220.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-221.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-222.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-223.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-226.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-227.js11
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-228.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-229.js28
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-23.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-230.js36
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-231.js60
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-232.js30
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-233.js36
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-234.js52
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-235.js62
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-236.js28
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-237.js48
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-238.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-239.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-24.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-240.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-241.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-242.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-243.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-244.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-245.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-246.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-247.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-248.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-249.js28
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-25.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-252.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-253.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-254.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-255.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-256.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-257.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-258.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-26.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-261.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-262.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-263.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-264.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-27.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-28.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-29.js30
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-3.js8
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-31.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-32.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-33.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-34.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-35.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-36.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-37.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-38.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-39.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-4.js8
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-40.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-41.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-42.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-43.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-44.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-45.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-46.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-47.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-48.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-49.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-5.js8
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-50.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-51.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-52.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-53.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-54.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-56.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-57.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-58.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-59.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-6.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-60.js2
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-61.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-62.js26
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-63.js8
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-64.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-65.js26
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-66.js32
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-67.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-68.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-69.js4
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-7.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-70.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-71.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-72.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-73.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-74.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-75.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-76.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-77.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-78.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-79.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-8.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-80.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-81.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-82.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-84.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-85.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-86.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-87.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-88.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-89.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-9.js32
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-90.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-91.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-92.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-93.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-94.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-95.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-96.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-97.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-98.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-5-b-99.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-1.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-10.js42
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-100.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-101.js21
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-102.js19
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-103.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-104.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-105.js80
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-106.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-107.js19
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-108.js19
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-109.js26
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-11.js32
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-110.js30
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-111.js52
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-112.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-113.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-114-b.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-114.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-115.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-116.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-117.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-118.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-119.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-12.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-120.js5
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-121.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-122.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-123.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-124.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-125.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-126.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-127.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-128.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-129.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-13.js32
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-130.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-131.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-132.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-133.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-134.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-135.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-136.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-137.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-138.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-139.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-14.js32
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-140.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-141.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-142.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-143.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-144.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-145.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-146.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-147.js50
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-148.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-149.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-15.js32
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-150.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-151.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-152.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-153.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-155.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-156.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-157.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-158.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-159.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-16.js32
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-160.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-161.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-162.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-163.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-164.js27
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-165.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-166.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-167.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-168.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-169.js30
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-17.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-170.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-171.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-172.js26
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-173.js36
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-174.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-175.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-176.js33
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-177.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-178.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-179.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-18.js32
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-180.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-181.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-182.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-183.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-184.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-185.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-186.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-187.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-188.js26
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-189.js30
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-19.js32
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-190.js30
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-191.js30
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-192.js30
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-193.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-194.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-195.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-196.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-197.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-198.js32
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-199.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-2.js15
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-20.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-200.js13
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-201.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-202.js44
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-203.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-204.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-205.js36
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-206.js2
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-207.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-208.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-209.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-21.js32
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-210.js8
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-211.js8
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-212.js8
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-213.js28
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-214.js28
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-215.js8
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-216.js9
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-217.js9
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-218.js13
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-219.js9
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-22.js26
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-220.js11
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-221.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-222.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-223.js9
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-224.js11
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-225.js9
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-226.js9
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-227.js30
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-228.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-229.js30
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-230.js30
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-231.js8
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-232.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-233.js30
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-234.js32
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-235.js28
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-236.js28
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-237.js28
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-238.js28
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-239.js28
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-24.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-240.js36
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-241.js28
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-242.js28
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-243.js8
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-244.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-245.js28
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-246.js9
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-247.js7
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-248.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-249.js7
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-25.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-250.js7
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-251.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-252.js7
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-253.js11
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-254.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-255.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-256.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-257.js13
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-258.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-259.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-26.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-260.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-261.js13
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-262.js27
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-263.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-264.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-265.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-266.js15
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-267.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-268.js26
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-269.js13
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-27.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-270.js28
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-271.js28
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-272.js30
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-273.js28
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-274.js39
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-275.js26
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-276.js30
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-277.js30
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-278.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-279.js19
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-28.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-280.js58
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-281.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-282.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-283.js36
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-284.js36
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-285.js36
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-286.js42
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-287.js44
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-288.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-289.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-29.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-290.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-291.js19
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-292.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-293.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-294.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-295.js36
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-296.js36
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-297.js36
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-298.js36
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-299.js38
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-3.js36
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-30.js9
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-300.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-301.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-302.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-303.js21
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-304.js37
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-305.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-306.js36
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-307.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-308.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-309.js32
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-31.js13
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-310.js49
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-311.js40
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-312.js36
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-313.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-314.js24
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-32.js8
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-33.js15
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-34.js26
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-35.js19
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-36.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-37.js21
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-38-1.js18
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-38.js4
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-39.js13
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-4.js40
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-40.js26
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-41.js7
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-42.js11
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-43.js11
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-44.js11
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-45.js30
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-46.js30
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-47.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-48.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-49.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-5.js33
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-50.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-51.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-52.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-53.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-54.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-55.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-56.js13
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-57.js11
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-58.js58
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-59.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-6.js36
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-60.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-61.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-62.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-63.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-64.js10
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-65.js30
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-66-1.js32
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-66.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-67.js33
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-68.js32
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-69.js64
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-7.js40
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-70.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-71.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-72.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-73.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-74.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-75.js13
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-76.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-77.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-78.js13
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-79.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-8.js44
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-80.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-81.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-82.js12
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-83.js32
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-84-1.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-84.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-85.js44
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-86-1.js34
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-86.js13
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-87.js31
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-88.js40
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-89.js20
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-9.js22
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-90.js19
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-91.js42
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-92.js36
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-1.js54
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-2.js54
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-3.js54
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-4.js54
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-93.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-94.js6
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-95.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-96.js14
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-97.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-98.js16
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-99.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-0-1.js2
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-1-1.js2
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-1-2.js2
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-1-3.js2
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-1-4.js2
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-1.js2
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-1.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-10.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-11.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-12.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-13.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-14.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-15.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-16.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-17-1.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-17.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-18.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-19.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-2.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-20.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-21.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-22.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-23.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-24.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-25.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-26.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-27.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-28.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-29.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-3.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-30.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-31.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-32.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-33.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-34.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-35.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-36.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-37.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-38.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-39.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-4.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-40.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-41.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-42.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-43.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-44.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-45.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-46.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-47.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-48.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-5.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-6.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-7.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-8.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-2-9.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-1.js15
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-10.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-100.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-101.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-102.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-103.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-104.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-105.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-106.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-107.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-108.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-109.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-11.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-110.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-111.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-112.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-113.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-114.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-115.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-116.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-117.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-118.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-119.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-12.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-120.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-121.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-123.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-124.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-125.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-126.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-127.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-129.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-13.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-130.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-131.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-132.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-133.js22
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-134.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-135.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-136.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-137.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-138.js22
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-139-1.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-139.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-14.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-140-1.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-140.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-141-1.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-141.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-142-1.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-142.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-143-1.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-143.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-144-1.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-144.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-145-1.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-145.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-146-1.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-146.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-147-1.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-147.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-148-1.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-148.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-149-1.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-149.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-15.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-151.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-152.js3
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-153.js2
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-154.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-155.js22
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-156.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-157.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-158.js22
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-159.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-16.js2
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-160.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-161.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-162.js3
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-163.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-164.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-165-1.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-165.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-166-1.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-166.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-167-1.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-167.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-168-1.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-168.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-169-1.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-169.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-17.js2
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-170-1.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-170.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-171-1.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-171.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-172-1.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-172.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-173-1.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-173.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-174-1.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-174.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-175-1.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-175.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-177.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-178.js2
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-179.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-18.js2
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-180.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-181.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-182.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-183.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-184.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-185.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-186.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-187.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-188.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-189.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-19.js2
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-190.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-191.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-192.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-193.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-194.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-195.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-196.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-197.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-198.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-199.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-2.js17
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-20.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-200.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-202.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-203.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-204.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-205.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-206.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-207.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-208.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-209.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-21.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-210.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-211.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-212.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-213.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-214.js40
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-215.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-216.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-217.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-218-1.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-218.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-219-1.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-219.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-22.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-220-1.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-220.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-221-1.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-221.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-222-1.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-222.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-223-1.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-223.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-224-1.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-224.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-225-1.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-225.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-226-1.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-226.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-227-1.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-227.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-228-1.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-228.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-23.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-230.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-231.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-232.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-235.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-236.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-237.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-238.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-239.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-24.js36
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-240.js52
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-241.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-242.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-243.js40
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-244.js46
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-245.js3
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-246.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-247.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-248-1.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-248.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-249-1.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-249.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-25.js50
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-250-1.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-250.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-251-1.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-251.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-252-1.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-252.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-253-1.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-253.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-254-1.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-254.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-255-1.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-255.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-256-1.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-256.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-257-1.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-257.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-258-1.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-258.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-26.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-260.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-261.js2
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-262.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-27.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-28.js36
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-29.js56
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-3.js13
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-30.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-31.js40
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-32.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-33-1.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-33.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-34-1.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-34.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-35-1.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-35.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-36-1.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-36.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-37-1.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-37.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-38-1.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-38.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-39-1.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-39.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-4.js15
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-40-1.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-40.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-41-1.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-41.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-42-1.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-42.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-43-1.js22
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-43.js22
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-45.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-46.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-47.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-48.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-49.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-5.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-50.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-51.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-52.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-53.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-54.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-55.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-56.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-57.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-58.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-59.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-6.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-60.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-61.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-62.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-63.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-64.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-65.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-66.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-67.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-68.js22
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-7.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-70.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-71.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-72.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-73.js2
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-74.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-75.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-76.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-77.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-78.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-79.js22
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-8.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-80.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-81.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-82.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-83.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-84.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-85.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-86-1.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-86.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-87-1.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-87.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-88-1.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-88.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-89-1.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-89.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-9.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-90-1.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-90.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-91-1.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-91.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-92-1.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-92.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-93-1.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-93.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-94-1.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-94.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-95-1.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-95.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-96-1.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-96.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-98.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-99.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-1.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-10.js33
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-100.js3
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-101.js5
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-102.js5
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-103.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-104.js7
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-105.js11
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-106.js19
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-107.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-108.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-109.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-11.js33
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-110.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-111.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-112.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-113.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-114.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-115.js22
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-116.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-117.js22
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-119.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-12.js31
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-120.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-121.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-122.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-123.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-124.js3
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-125.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-126.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-127.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-128.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-129.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-13.js33
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-130.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-131.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-132.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-133.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-134.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-135.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-136.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-137.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-138.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-139.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-14.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-140.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-141.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-142.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-143.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-144.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-145.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-146.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-147.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-148.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-149.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-15.js33
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-150.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-151.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-152.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-153.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-154.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-155.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-156.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-157.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-159.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-16.js25
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-160.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-161.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-162.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-163.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-164.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-165.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-166.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-167.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-168.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-169.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-17.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-170.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-171.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-172.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-173.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-174.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-175.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-176.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-177.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-178.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-179-1.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-18.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-181.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-182.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-183.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-184.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-185.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-186.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-187.js15
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-188.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-189.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-19.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-190.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-191.js36
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-192.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-193.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-194.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-195.js41
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-196.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-197.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-198.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-199.js3
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-2.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-20.js29
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-200.js7
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-201.js7
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-202.js7
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-203.js7
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-204.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-205.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-206.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-207.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-208.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-209.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-21.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-210.js1
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-211.js13
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-212.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-213.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-214.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-215.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-216.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-217.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-218.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-219.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-22.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-220.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-221.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-222.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-223.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-224.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-225.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-226.js13
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-227.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-228.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-229.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-23.js22
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-230.js11
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-231.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-232.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-233.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-234.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-235.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-236.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-237.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-238.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-239.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-24.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-240.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-241.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-242-1.js7
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-242.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-243-1.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-243-2.js21
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-243.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-244.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-245.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-246.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-247.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-248.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-249.js25
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-25.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-250.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-251.js27
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-252.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-253.js27
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-254.js5
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-255.js31
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-256.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-257.js11
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-258.js3
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-259.js3
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-26.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-260.js3
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-261.js3
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-262.js3
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-263.js3
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-264.js7
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-265.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-266.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-267.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-268.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-269.js6
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-27.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-270.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-271.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-272.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-273.js23
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-274.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-275.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-276.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-277.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-278.js13
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-279.js23
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-28.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-280.js7
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-281.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-282.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-283.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-284.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-285.js35
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-286.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-287.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-288.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-289-1.js33
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-289.js25
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-29.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-290-1.js52
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-290.js40
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-291-1.js47
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-291.js41
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-292-1.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-292-2.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-292.js23
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-293-1.js25
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-293-2.js44
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-293-3.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-293-4.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-293.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-294-1.js45
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-294.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-295-1.js42
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-295.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-296-1.js42
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-296.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-297-1.js51
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-297.js47
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-298-1.js53
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-298.js49
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-299-1.js46
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-299.js40
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-3.js22
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-30.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-300-1.js46
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-300.js40
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-301-1.js31
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-301.js25
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-302-1.js44
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-302.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-303.js41
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-304.js23
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-305.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-306.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-307.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-308.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-309.js47
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-31.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-310.js49
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-311.js40
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-312.js37
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-313-1.js23
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-313.js23
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-314-1.js35
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-314.js35
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-315-1.js70
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-315.js56
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-316-1.js33
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-316.js33
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-317-1.js42
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-317.js36
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-318-1.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-318.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-319-1.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-319.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-32.js22
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-320-1.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-320.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-321-1.js59
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-321.js53
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-322-1.js42
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-322.js42
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-323-1.js46
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-323.js40
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-324-1.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-324.js40
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-325-1.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-325.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-326.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-327.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-328.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-329.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-33.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-330.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-331.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-332.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-333-1.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-333-10.js22
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-333-11.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-333-2.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-333-3.js13
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-333-4.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-333-5.js22
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-333-6.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-333-7.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-333-8.js13
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-333-9.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-333.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-334.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-335.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-336.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-337.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-338.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-339-1.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-339-2.js36
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-339-3.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-339-4.js36
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-339.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-34.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-340.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-341.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-342.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-343.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-344.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-345.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-346.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-347.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-348.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-349.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-35.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-350.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-351.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-352.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-353.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-354-1.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-354-10.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-354-11.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-354-12.js13
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-354-15.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-354-16.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-354-2.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-354-3.js13
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-354-6.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-354-7.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-354.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-355.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-356.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-357.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-358.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-359.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-36.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-360-1.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-360-2.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-360-5.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-360-6.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-360.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-361.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-362.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-363.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-364.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-365.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-366.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-367.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-368.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-369.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-37.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-370.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-371.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-372.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-373.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-374.js31
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-375.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-376.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-377.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-378.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-379.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-38.js21
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-380.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-381.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-382.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-383.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-384.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-385.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-386.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-387.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-388.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-389.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-39.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-390.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-391.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-392.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-393.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-394.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-395.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-396.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-397.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-398.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-399.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-4.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-40.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-402.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-403.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-404.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-405.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-406.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-407.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-408.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-409.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-41.js5
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-410.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-411.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-412.js48
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-413.js56
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-414.js86
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-415.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-416.js86
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-417.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-418.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-419.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-42.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-420.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-421.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-422.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-423.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-424.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-425.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-426.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-427.js36
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-428.js48
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-429.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-43.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-430.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-431.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-432.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-433.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-434.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-435.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-436.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-437.js48
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-438.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-439.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-440.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-441.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-442.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-443.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-444.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-445.js36
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-446.js48
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-447.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-448.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-449.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-45.js4
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-450.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-451.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-452.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-453.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-454.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-455.js48
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-456.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-457.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-458.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-459.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-46.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-460.js46
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-461.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-462.js42
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-463.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-464.js56
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-465.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-466.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-467.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-468.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-469.js46
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-47.js7
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-470.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-471.js42
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-472.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-473.js56
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-474.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-475.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-476.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-477.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-478.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-479.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-48.js7
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-480.js42
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-481.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-482.js56
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-483.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-484.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-485.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-486.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-487.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-488.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-489.js42
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-49.js7
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-490.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-491.js56
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-492.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-493.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-494.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-495.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-496.js44
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-497.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-498.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-499.js40
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-5.js51
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-50.js7
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-500.js54
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-501.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-502.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-503.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-504.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-505.js44
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-506.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-507.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-508.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-509.js54
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-51.js13
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-510.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-511.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-512.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-513.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-514.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-515.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-516.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-517.js42
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-518.js54
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-519.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-52.js1
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-520.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-521.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-522.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-523.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-524.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-525.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-526.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-527.js54
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-528.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-529.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-53.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-530.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-531-1.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-531-10.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-531-11.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-531-12.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-531-15.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-531-16.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-531-2.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-531-3.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-531-6.js11
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-531-7.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-531.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-532.js54
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-533.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-534.js42
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-535.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-536.js62
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-537.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-538-1.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-538-2.js40
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-538-5.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-538-6.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-538.js33
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-539.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-54.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-540-1.js66
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-540-10.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-540-2.js66
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-540-3.js68
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-540-5.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-540-6.js66
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-540-7.js66
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-540-8.js70
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-540-9.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-540.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-541.js54
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-542.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-543.js42
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-544.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-545.js62
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-546.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-547-1.js56
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-547-2.js62
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-547-3.js56
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-547-4.js60
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-547.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-548.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-549.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-55.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-550.js48
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-551.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-552.js42
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-553.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-554.js72
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-555.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-556.js48
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-557.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-558.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-559.js48
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-56.js14
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-560.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-561.js42
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-562.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-563.js62
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-564.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-565.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-566.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-567.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-568.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-569.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-57.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-570.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-571.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-572.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-573.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-574.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-575.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-576.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-577.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-578.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-579.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-58.js1
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-580.js36
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-581.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-582.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-583.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-584.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-585.js36
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-586.js22
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-587.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-588.js66
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-589.js86
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-59.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-590.js106
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-591.js44
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-592.js88
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-593.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-594.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-595.js38
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-596.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-597.js32
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-598.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-599.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-6.js42
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-60.js5
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-600.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-601.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-602.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-603.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-604.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-605.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-606.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-607.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-608.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-609.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-61.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-610.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-611.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-612.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-613.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-614.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-615.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-616.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-617.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-618.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-619.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-62.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-620.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-621.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-622.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-623.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-624.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-625gs.js17
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-63.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-64.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-65.js24
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-66.js5
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-67.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-68.js5
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-69.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-7.js22
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-70.js5
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-71.js13
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-72.js13
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-73.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-74.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-75.js13
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-76.js17
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-77.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-78.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-79.js9
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-8.js27
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-80.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-81.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-1.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-10.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-11.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-12.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-13.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-14.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-15.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-16.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-17.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-18.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-19.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-2.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-20.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-21.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-22.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-23.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-24.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-3.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-4.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-5.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-6.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-7.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-8.js20
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82-9.js18
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-82.js8
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-83.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-84.js16
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-85.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-86.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-87.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-88.js12
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-89.js28
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-9.js29
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-90.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-91.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-92.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-93.js26
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-94.js15
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-95.js34
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-96.js10
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-97.js30
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-98.js15
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-99.js30
-rw-r--r--test/built-ins/Object/defineProperty/8.12.9-9-b-i_1.js22
-rw-r--r--test/built-ins/Object/defineProperty/8.12.9-9-b-i_2.js26
-rw-r--r--test/built-ins/Object/defineProperty/8.12.9-9-c-i_1.js20
-rw-r--r--test/built-ins/Object/defineProperty/8.12.9-9-c-i_2.js24
-rw-r--r--test/built-ins/Object/defineProperty/S15.2.3.6_A1.js6
-rw-r--r--test/built-ins/Object/defineProperty/S15.2.3.6_A2.js9
-rw-r--r--test/built-ins/Object/entries/exception-during-enumeration.js16
-rw-r--r--test/built-ins/Object/entries/exception-not-object-coercible.js8
-rw-r--r--test/built-ins/Object/entries/function-name.js6
-rw-r--r--test/built-ins/Object/entries/getter-adding-key.js10
-rw-r--r--test/built-ins/Object/entries/getter-making-future-key-nonenumerable.js16
-rw-r--r--test/built-ins/Object/entries/getter-removing-future-key.js12
-rw-r--r--test/built-ins/Object/entries/observable-operations.js14
-rw-r--r--test/built-ins/Object/entries/symbols-omitted.js9
-rw-r--r--test/built-ins/Object/entries/tamper-with-global-object.js2
-rw-r--r--test/built-ins/Object/entries/tamper-with-object-keys.js6
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-0-1.js2
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-1-1.js2
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-1-2.js2
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-1-3.js4
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-1-4.js2
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-1.js2
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-1.js4
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-2.js24
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-3.js28
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-4.js6
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-a-11.js5
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-a-13.js6
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-a-2.js6
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-a-3.js14
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-a-4.js8
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-a-5.js10
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-a-6.js18
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-a-7.js4
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-a-9.js2
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-b-i-1.js13
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-b-i-2.js25
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-c-1.js13
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-c-2.js13
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-c-3.js29
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-c-4.js26
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-d-1.js4
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-d-2.js4
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-d-3.js4
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-d-4.js4
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-d-5.js4
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-d-6.js4
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-d-7.js4
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-d-8.js4
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-2-d-9.js6
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-3-1.js4
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-4-1.js8
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-4-2.js8
-rw-r--r--test/built-ins/Object/freeze/15.2.3.9-4-3.js8
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-1.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-2.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-3.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-4.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-1.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-10.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-11.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-12.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-13.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-14.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-15.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-16.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-17.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-18.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-19.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-2.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-20.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-21.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-22.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-23.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-24.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-25.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-26.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-27.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-28.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-29.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-3.js8
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-30.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-31.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-32.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-33.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-34.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-35.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-36.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-37.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-38.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-39.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-4.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-40.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-41.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-42.js16
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-43.js17
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-44.js30
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-45.js27
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-46.js30
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-47.js35
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-5.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-6.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-7.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-8.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-9.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-1.js8
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-10.js8
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-13.js8
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-14.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-15.js10
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-2.js14
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-3.js16
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-4.js30
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-5.js18
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-6.js24
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-7.js28
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-8.js36
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-9.js14
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-1.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-10.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-100.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-101.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-102.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-103.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-104.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-105.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-106.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-107.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-108.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-109.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-11.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-110.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-111.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-112.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-113.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-114.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-115.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-116.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-117.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-118.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-120.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-121.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-122.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-123.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-124.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-125.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-126.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-127.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-128.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-129.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-130.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-131.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-132.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-133.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-134.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-135.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-136.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-138.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-139.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-14.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-140.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-141.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-142.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-143.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-144.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-145.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-146.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-147.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-148.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-149.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-15.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-150.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-151.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-152.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-153.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-154.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-156.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-157.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-158.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-159.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-16.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-160.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-161.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-162.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-163.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-165.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-166.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-167.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-168.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-169.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-17.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-170.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-171.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-172.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-173.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-174.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-175.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-176.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-177.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-178.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-179.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-18.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-180.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-182.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-183.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-184.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-185.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-186.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-187.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-188.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-189.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-19.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-190.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-191.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-192.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-193.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-194.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-195.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-196.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-197.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-198.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-199.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-2.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-20.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-200.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-201.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-202.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-203.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-204.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-205.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-206.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-207.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-208.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-209.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-21.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-210.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-211.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-212.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-213.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-214.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-215.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-216.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-217.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-218.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-219.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-22.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-220.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-221.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-222.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-223.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-224.js8
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-225.js18
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-226.js12
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-227.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-228.js8
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-229.js18
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-23.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-230.js12
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-231.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-232.js8
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-233.js18
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-234.js12
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-235.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-236.js8
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-237.js18
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-238.js12
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-239.js18
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-24.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-240.js20
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-241.js30
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-242.js24
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-243.js18
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-244.js20
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-245.js30
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-246.js24
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-247.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-248.js12
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-249.js12
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-25.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-250.js12
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-26.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-27.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-28.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-29.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-3.js16
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-30.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-31.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-32.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-33.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-34.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-35.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-36.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-37.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-38.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-39.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-4.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-40.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-41.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-42.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-43.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-44.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-45.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-46.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-47.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-48.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-49.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-5.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-50.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-51.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-52.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-53.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-54.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-55.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-56.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-57.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-58.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-59.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-6.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-60.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-61.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-62.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-63.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-64.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-65.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-66.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-67.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-68.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-69.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-7.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-70.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-71.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-72.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-73.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-75.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-76.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-77.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-78.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-79.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-8.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-80.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-81.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-82.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-84.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-85.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-86.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-88.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-89.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-9.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-90.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-91.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-92.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-93.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-94.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-96.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-97.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-98.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-99.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptors/exception-not-object-coercible.js8
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptors/function-name.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptors/inherited-properties-omitted.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptors/observable-operations.js12
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptors/primitive-strings.js1
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptors/proxy-undefined-descriptor.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptors/symbols-included.js11
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-global-object.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-object-keys.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-2.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-3.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-4.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-5.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1.js2
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-1.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-2.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-3.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-4.js12
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-3-1.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-1.js18
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-2.js4
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-36.js18
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-37.js28
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-38.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-39.js16
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-40.js12
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-41.js22
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-42.js24
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-43.js28
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-44.js8
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-45.js12
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-46.js22
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-47.js18
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-48.js28
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-49.js6
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-50.js14
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-1.js10
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-2.js46
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-3.js18
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-4.js12
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-5.js18
-rw-r--r--test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-6.js12
-rw-r--r--test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-with-description.js2
-rw-r--r--test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-without-description.js2
-rw-r--r--test/built-ins/Object/getPrototypeOf/15.2.3.2-0-3.js2
-rw-r--r--test/built-ins/Object/getPrototypeOf/15.2.3.2-1-2.js2
-rw-r--r--test/built-ins/Object/getPrototypeOf/15.2.3.2-2-19.js2
-rw-r--r--test/built-ins/Object/getPrototypeOf/15.2.3.2-2-2.js10
-rw-r--r--test/built-ins/Object/getPrototypeOf/15.2.3.2-2-20.js6
-rw-r--r--test/built-ins/Object/getPrototypeOf/15.2.3.2-2-21.js2
-rw-r--r--test/built-ins/Object/getPrototypeOf/15.2.3.2-2-22.js2
-rw-r--r--test/built-ins/Object/getPrototypeOf/15.2.3.2-2-23.js2
-rw-r--r--test/built-ins/Object/getPrototypeOf/15.2.3.2-2-24.js2
-rw-r--r--test/built-ins/Object/getPrototypeOf/15.2.3.2-2-25.js2
-rw-r--r--test/built-ins/Object/getPrototypeOf/15.2.3.2-2-26.js2
-rw-r--r--test/built-ins/Object/getPrototypeOf/15.2.3.2-2-27.js2
-rw-r--r--test/built-ins/Object/getPrototypeOf/15.2.3.2-2-28.js8
-rw-r--r--test/built-ins/Object/getPrototypeOf/15.2.3.2-2-30.js2
-rw-r--r--test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-arguments.js11
-rw-r--r--test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-caller.js13
-rw-r--r--test/built-ins/Object/internals/DefineOwnProperty/consistent-value-regexp-$1.js11
-rw-r--r--test/built-ins/Object/internals/DefineOwnProperty/consistent-writable-regexp-$1.js9
-rw-r--r--test/built-ins/Object/is/name.js1
-rw-r--r--test/built-ins/Object/is/not-same-value-x-y-null.js1
-rw-r--r--test/built-ins/Object/is/not-same-value-x-y-object.js24
-rw-r--r--test/built-ins/Object/is/not-same-value-x-y-string.js6
-rw-r--r--test/built-ins/Object/is/not-same-value-x-y-symbol.js12
-rw-r--r--test/built-ins/Object/is/not-same-value-x-y-type.js31
-rw-r--r--test/built-ins/Object/is/same-value-x-y-null.js1
-rw-r--r--test/built-ins/Object/is/same-value-x-y-string.js12
-rw-r--r--test/built-ins/Object/is/symbol-object-is-same-value.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-0-1.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-0-3.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-1-1.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-1-2.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-1-3.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-1-4.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-1.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-1.js1
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-10.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-11.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-12.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-13.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-14.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-15.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-16.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-17.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-18.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-19.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-2.js4
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-20.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-21.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-22.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-23.js4
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-24.js8
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-25.js12
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-26.js10
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-27.js12
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-3.js6
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-4.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-5.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-6.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-7.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-8.js2
-rw-r--r--test/built-ins/Object/isExtensible/15.2.3.13-2-9.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-0-1.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-1-1.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-1-2.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-1-3.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-1-4.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-1-5.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-1-6.js6
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-1-7.js6
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-1.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-2-1.js20
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-2-2.js31
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-2-a-1.js14
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-2-a-11.js10
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-2-a-12.js6
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-2-a-13.js16
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-2-a-14.js6
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-2-a-2.js30
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-2-a-3.js30
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-2-a-4.js16
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-2-a-5.js30
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-2-a-6.js34
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-2-a-7.js12
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-2-a-8.js30
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-2-b-i-1.js14
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-2-c-1.js14
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-2-c-2.js23
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-10.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-11.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-12.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-13.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-14.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-15.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-16.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-17.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-18.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-19.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-2.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-20.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-21.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-22.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-23.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-24.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-25.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-26.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-27.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-28.js35
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-3.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-4.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-5.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-6.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-7.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-8.js2
-rw-r--r--test/built-ins/Object/isFrozen/15.2.3.12-3-9.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-0-1.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-1.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-10.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-11.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-12.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-13.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-14.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-15.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-16.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-17.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-18.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-19.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-2.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-20.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-21.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-22.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-23.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-24.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-25.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-26.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-27.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-3.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-4.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-5.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-6.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-7.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-8.js2
-rw-r--r--test/built-ins/Object/isSealed/15.2.3.11-4-9.js2
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-0-1.js2
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-1-1.js2
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-1-2.js2
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-1-3.js2
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-1-4.js2
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-1-5.js2
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-2-1.js7
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-2-2.js9
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-2-3.js11
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-2-4.js7
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-2-5.js7
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-2-6.js7
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-2-7.js28
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-2-8.js38
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-3-1.js7
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-3-2.js8
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-3-3.js4
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-3-4.js38
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-3-5.js12
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-3-6.js4
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-3-7.js31
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-4-1.js31
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-1.js14
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-10.js36
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-11.js18
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-12.js34
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-13.js36
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-14.js30
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-15.js24
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-16.js34
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-2.js18
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-3.js37
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-4.js44
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-5.js28
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-6.js44
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-7.js36
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-8.js36
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-9.js36
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-a-1.js8
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-a-2.js10
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-a-3.js20
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-a-4.js10
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-b-1.js22
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-6-1.js22
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-6-2.js22
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-6-3.js22
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-6-4.js28
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-6-5.js26
-rw-r--r--test/built-ins/Object/keys/proxy-keys.js36
-rw-r--r--test/built-ins/Object/preventExtensions/15.2.3.10-0-1.js2
-rw-r--r--test/built-ins/Object/preventExtensions/15.2.3.10-1-1.js2
-rw-r--r--test/built-ins/Object/preventExtensions/15.2.3.10-1-2.js2
-rw-r--r--test/built-ins/Object/preventExtensions/15.2.3.10-1-3.js2
-rw-r--r--test/built-ins/Object/preventExtensions/15.2.3.10-1-4.js2
-rw-r--r--test/built-ins/Object/preventExtensions/15.2.3.10-1.js2
-rw-r--r--test/built-ins/Object/preventExtensions/15.2.3.10-2-1.js16
-rw-r--r--test/built-ins/Object/preventExtensions/15.2.3.10-2.js6
-rw-r--r--test/built-ins/Object/preventExtensions/15.2.3.10-3-1.js6
-rw-r--r--test/built-ins/Object/preventExtensions/15.2.3.10-3-10.js1
-rw-r--r--test/built-ins/Object/preventExtensions/15.2.3.10-3-11.js4
-rw-r--r--test/built-ins/Object/preventExtensions/15.2.3.10-3-12.js1
-rw-r--r--test/built-ins/Object/preventExtensions/15.2.3.10-3-13.js2
-rw-r--r--test/built-ins/Object/preventExtensions/15.2.3.10-3-21.js4
-rw-r--r--test/built-ins/Object/preventExtensions/15.2.3.10-3-22.js10
-rw-r--r--test/built-ins/Object/preventExtensions/15.2.3.10-3-23.js10
-rw-r--r--test/built-ins/Object/preventExtensions/15.2.3.10-3-24.js14
-rw-r--r--test/built-ins/Object/preventExtensions/15.2.3.10-3-3.js2
-rw-r--r--test/built-ins/Object/preventExtensions/15.2.3.10-3-5.js10
-rw-r--r--test/built-ins/Object/preventExtensions/symbol-object-contains-symbol-properties-strict.js7
-rw-r--r--test/built-ins/Object/prototype/15.2.3.1.js2
-rw-r--r--test/built-ins/Object/prototype/S15.2.3.1_A1.js4
-rw-r--r--test/built-ins/Object/prototype/S15.2.3.1_A2.js6
-rw-r--r--test/built-ins/Object/prototype/S15.2.3.1_A3.js2
-rw-r--r--test/built-ins/Object/prototype/S15.2.4_A1_T2.js2
-rw-r--r--test/built-ins/Object/prototype/constructor/S15.2.4.1_A1_T2.js2
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_1.js2
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_10.js8
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_11.js9
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_12.js8
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_13.js9
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_14.js9
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_15.js9
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_16.js10
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_17.js10
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js10
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_19.js11
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_2.js4
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_20.js6
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_21.js5
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_22.js8
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_23.js8
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_24.js7
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_25.js10
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_26.js8
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js9
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_28.js9
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_29.js10
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_3.js6
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js7
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_31.js8
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_32.js8
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_33.js9
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_34.js10
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_35.js11
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_36.js11
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js12
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_38.js10
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_39.js11
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_4.js6
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_40.js11
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_41.js12
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_42.js9
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_43.js10
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_44.js10
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_45.js11
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_46.js12
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_47.js13
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_48.js13
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_49.js14
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_5.js7
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_6.js7
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_7.js7
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_8.js8
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_9.js8
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A10.js4
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T2.js4
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T3.js4
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A6.js2
-rw-r--r--test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A8.js6
-rw-r--r--test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A1.js16
-rw-r--r--test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A10.js4
-rw-r--r--test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A6.js2
-rw-r--r--test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A8.js6
-rw-r--r--test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A10.js4
-rw-r--r--test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A1_T1.js10
-rw-r--r--test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js12
-rw-r--r--test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A6.js2
-rw-r--r--test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A8.js6
-rw-r--r--test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A1.js2
-rw-r--r--test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A10.js4
-rw-r--r--test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A6.js2
-rw-r--r--test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A8.js6
-rw-r--r--test/built-ins/Object/prototype/toString/S15.2.4.2_A1.js4
-rw-r--r--test/built-ins/Object/prototype/toString/S15.2.4.2_A10.js4
-rw-r--r--test/built-ins/Object/prototype/toString/S15.2.4.2_A14.js2
-rw-r--r--test/built-ins/Object/prototype/toString/S15.2.4.2_A15.js2
-rw-r--r--test/built-ins/Object/prototype/toString/S15.2.4.2_A16.js2
-rw-r--r--test/built-ins/Object/prototype/toString/S15.2.4.2_A6.js2
-rw-r--r--test/built-ins/Object/prototype/toString/S15.2.4.2_A8.js6
-rw-r--r--test/built-ins/Object/prototype/toString/symbol-tag-non-str.js6
-rw-r--r--test/built-ins/Object/prototype/toString/symbol-tag-override-instances.js4
-rw-r--r--test/built-ins/Object/prototype/valueOf/S15.2.4.4_A10.js4
-rw-r--r--test/built-ins/Object/prototype/valueOf/S15.2.4.4_A12.js2
-rw-r--r--test/built-ins/Object/prototype/valueOf/S15.2.4.4_A14.js2
-rw-r--r--test/built-ins/Object/prototype/valueOf/S15.2.4.4_A15.js2
-rw-r--r--test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T1.js4
-rw-r--r--test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T2.js4
-rw-r--r--test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T3.js4
-rw-r--r--test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T4.js4
-rw-r--r--test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T5.js4
-rw-r--r--test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T6.js4
-rw-r--r--test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T7.js4
-rw-r--r--test/built-ins/Object/prototype/valueOf/S15.2.4.4_A6.js2
-rw-r--r--test/built-ins/Object/prototype/valueOf/S15.2.4.4_A8.js6
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-0-1.js2
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-1-1.js2
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-1-2.js2
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-1-3.js2
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-1-4.js2
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-1.js2
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-1.js6
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-2.js26
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-3.js30
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-4.js7
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-a-15.js4
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-a-2.js10
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-a-3.js14
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-a-4.js8
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-a-5.js16
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-a-6.js18
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-a-7.js2
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-b-1.js10
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-b-2.js15
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-b-3.js23
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-b-4.js25
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-c-1.js6
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-c-2.js6
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-c-3.js6
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-c-4.js6
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-c-5.js6
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-c-6.js6
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-c-7.js6
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-c-8.js6
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-2-c-9.js8
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-3-1.js6
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-4-1.js10
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-4-2.js10
-rw-r--r--test/built-ins/Object/seal/15.2.3.8-4-3.js10
-rw-r--r--test/built-ins/Object/seal/symbol-object-contains-symbol-properties-non-strict.js1
-rw-r--r--test/built-ins/Object/seal/symbol-object-contains-symbol-properties-strict.js1
-rw-r--r--test/built-ins/Object/setPrototypeOf/bigint.js6
-rw-r--r--test/built-ins/Object/setPrototypeOf/name.js1
-rw-r--r--test/built-ins/Object/values/exception-during-enumeration.js16
-rw-r--r--test/built-ins/Object/values/exception-not-object-coercible.js8
-rw-r--r--test/built-ins/Object/values/function-name.js6
-rw-r--r--test/built-ins/Object/values/getter-adding-key.js10
-rw-r--r--test/built-ins/Object/values/getter-making-future-key-nonenumerable.js16
-rw-r--r--test/built-ins/Object/values/getter-removing-future-key.js12
-rw-r--r--test/built-ins/Object/values/observable-operations.js14
-rw-r--r--test/built-ins/Object/values/symbols-omitted.js9
-rw-r--r--test/built-ins/Object/values/tamper-with-global-object.js2
-rw-r--r--test/built-ins/Object/values/tamper-with-object-keys.js6
-rw-r--r--test/built-ins/Promise/S25.4.3.1_A1.1_T1.js2
-rw-r--r--test/built-ins/Promise/S25.4.3.1_A2.1_T1.js2
-rw-r--r--test/built-ins/Promise/S25.4.3.1_A2.2_T1.js4
-rw-r--r--test/built-ins/Promise/S25.4.3.1_A2.3_T1.js20
-rw-r--r--test/built-ins/Promise/S25.4.3.1_A2.4_T1.js20
-rw-r--r--test/built-ins/Promise/S25.4.3.1_A4.1_T1.js17
-rw-r--r--test/built-ins/Promise/S25.4.3.1_A5.1_T1.js10
-rw-r--r--test/built-ins/Promise/S25.4.3.1_A5.1_T2.js10
-rw-r--r--test/built-ins/Promise/all/S25.4.4.1_A1.1_T1.js2
-rw-r--r--test/built-ins/Promise/all/S25.4.4.1_A2.1_T1.js2
-rw-r--r--test/built-ins/Promise/all/S25.4.4.1_A2.2_T1.js12
-rw-r--r--test/built-ins/Promise/all/S25.4.4.1_A2.3_T1.js8
-rw-r--r--test/built-ins/Promise/all/S25.4.4.1_A2.3_T2.js8
-rw-r--r--test/built-ins/Promise/all/S25.4.4.1_A2.3_T3.js8
-rw-r--r--test/built-ins/Promise/all/S25.4.4.1_A3.1_T1.js12
-rw-r--r--test/built-ins/Promise/all/S25.4.4.1_A3.1_T2.js14
-rw-r--r--test/built-ins/Promise/all/S25.4.4.1_A3.1_T3.js20
-rw-r--r--test/built-ins/Promise/all/S25.4.4.1_A4.1_T1.js3
-rw-r--r--test/built-ins/Promise/all/S25.4.4.1_A5.1_T1.js20
-rw-r--r--test/built-ins/Promise/all/S25.4.4.1_A6.1_T1.js2
-rw-r--r--test/built-ins/Promise/all/S25.4.4.1_A6.1_T2.js14
-rw-r--r--test/built-ins/Promise/all/S25.4.4.1_A7.1_T1.js26
-rw-r--r--test/built-ins/Promise/all/S25.4.4.1_A7.2_T1.js22
-rw-r--r--test/built-ins/Promise/all/S25.4.4.1_A8.1_T1.js26
-rw-r--r--test/built-ins/Promise/all/S25.4.4.1_A8.2_T1.js20
-rw-r--r--test/built-ins/Promise/all/S25.4.4.1_A8.2_T2.js20
-rw-r--r--test/built-ins/Promise/all/call-resolve-element-after-return.js4
-rw-r--r--test/built-ins/Promise/all/call-resolve-element-items.js4
-rw-r--r--test/built-ins/Promise/all/call-resolve-element.js4
-rw-r--r--test/built-ins/Promise/all/capability-executor-called-twice.js14
-rw-r--r--test/built-ins/Promise/all/capability-executor-not-callable.js4
-rw-r--r--test/built-ins/Promise/all/capability-resolve-throws-no-close.js8
-rw-r--r--test/built-ins/Promise/all/capability-resolve-throws-reject.js4
-rw-r--r--test/built-ins/Promise/all/does-not-invoke-array-setters.js4
-rw-r--r--test/built-ins/Promise/all/invoke-resolve-error-close.js5
-rw-r--r--test/built-ins/Promise/all/invoke-resolve-get-error-close.js4
-rw-r--r--test/built-ins/Promise/all/invoke-then-error-close.js5
-rw-r--r--test/built-ins/Promise/all/invoke-then-get-error-close.js5
-rw-r--r--test/built-ins/Promise/all/new-resolve-function.js9
-rw-r--r--test/built-ins/Promise/all/reject-deferred.js4
-rw-r--r--test/built-ins/Promise/all/reject-ignored-deferred.js8
-rw-r--r--test/built-ins/Promise/all/resolve-before-loop-exit-from-same.js4
-rw-r--r--test/built-ins/Promise/all/resolve-before-loop-exit.js4
-rw-r--r--test/built-ins/Promise/all/resolve-element-function-extensible.js7
-rw-r--r--test/built-ins/Promise/all/resolve-element-function-length.js7
-rw-r--r--test/built-ins/Promise/all/resolve-element-function-name.js7
-rw-r--r--test/built-ins/Promise/all/resolve-element-function-nonconstructor.js11
-rw-r--r--test/built-ins/Promise/all/resolve-element-function-prototype.js7
-rw-r--r--test/built-ins/Promise/all/resolve-from-same-thenable.js4
-rw-r--r--test/built-ins/Promise/all/resolve-poisoned-then.js16
-rw-r--r--test/built-ins/Promise/all/resolve-thenable.js16
-rw-r--r--test/built-ins/Promise/all/same-reject-function.js9
-rw-r--r--test/built-ins/Promise/all/species-get-error.js2
-rw-r--r--test/built-ins/Promise/executor-function-extensible.js3
-rw-r--r--test/built-ins/Promise/executor-function-length.js3
-rw-r--r--test/built-ins/Promise/executor-function-name.js3
-rw-r--r--test/built-ins/Promise/executor-function-nonconstructor.js7
-rw-r--r--test/built-ins/Promise/executor-function-prototype.js3
-rw-r--r--test/built-ins/Promise/prototype/S25.4.4.2_A1.1_T1.js2
-rw-r--r--test/built-ins/Promise/prototype/S25.4.5_A3.1_T1.js3
-rw-r--r--test/built-ins/Promise/prototype/catch/S25.4.5.1_A1.1_T1.js2
-rw-r--r--test/built-ins/Promise/prototype/catch/S25.4.5.1_A2.1_T1.js2
-rw-r--r--test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T1.js13
-rw-r--r--test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T2.js13
-rw-r--r--test/built-ins/Promise/prototype/catch/this-value-obj-coercible.js16
-rw-r--r--test/built-ins/Promise/prototype/catch/this-value-then-not-callable.js24
-rw-r--r--test/built-ins/Promise/prototype/finally/invokes-then-with-function.js6
-rw-r--r--test/built-ins/Promise/prototype/finally/invokes-then-with-non-function.js2
-rw-r--r--test/built-ins/Promise/prototype/finally/rejected-observable-then-calls.js12
-rw-r--r--test/built-ins/Promise/prototype/finally/rejection-reason-override-with-throw.js6
-rw-r--r--test/built-ins/Promise/prototype/finally/resolution-value-no-override.js4
-rw-r--r--test/built-ins/Promise/prototype/finally/resolved-observable-then-calls.js13
-rw-r--r--test/built-ins/Promise/prototype/finally/species-symbol.js8
-rw-r--r--test/built-ins/Promise/prototype/finally/subclass-species-constructor-reject-count.js4
-rw-r--r--test/built-ins/Promise/prototype/finally/subclass-species-constructor-resolve-count.js4
-rw-r--r--test/built-ins/Promise/prototype/finally/this-value-non-promise.js4
-rw-r--r--test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js6
-rw-r--r--test/built-ins/Promise/prototype/finally/this-value-then-poisoned.js2
-rw-r--r--test/built-ins/Promise/prototype/finally/this-value-then-throws.js2
-rw-r--r--test/built-ins/Promise/prototype/then/S25.4.4_A1.1_T1.js34
-rw-r--r--test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T1.js20
-rw-r--r--test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T2.js22
-rw-r--r--test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T3.js30
-rw-r--r--test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T1.js2
-rw-r--r--test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T2.js8
-rw-r--r--test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T1.js4
-rw-r--r--test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T2.js5
-rw-r--r--test/built-ins/Promise/prototype/then/S25.4.5.3_A4.1_T1.js10
-rw-r--r--test/built-ins/Promise/prototype/then/S25.4.5.3_A4.1_T2.js14
-rw-r--r--test/built-ins/Promise/prototype/then/S25.4.5.3_A4.2_T1.js10
-rw-r--r--test/built-ins/Promise/prototype/then/S25.4.5.3_A4.2_T2.js12
-rw-r--r--test/built-ins/Promise/prototype/then/S25.4.5.3_A5.1_T1.js32
-rw-r--r--test/built-ins/Promise/prototype/then/S25.4.5.3_A5.2_T1.js30
-rw-r--r--test/built-ins/Promise/prototype/then/S25.4.5.3_A5.3_T1.js40
-rw-r--r--test/built-ins/Promise/prototype/then/capability-executor-called-twice.js16
-rw-r--r--test/built-ins/Promise/prototype/then/capability-executor-not-callable.js6
-rw-r--r--test/built-ins/Promise/prototype/then/ctor-access-count.js20
-rw-r--r--test/built-ins/Promise/prototype/then/ctor-poisoned.js6
-rw-r--r--test/built-ins/Promise/prototype/then/ctor-throws.js8
-rw-r--r--test/built-ins/Promise/prototype/then/prfm-fulfilled.js20
-rw-r--r--test/built-ins/Promise/prototype/then/prfm-pending-fulfulled.js20
-rw-r--r--test/built-ins/Promise/prototype/then/prfm-pending-rejected.js20
-rw-r--r--test/built-ins/Promise/prototype/then/prfm-rejected.js20
-rw-r--r--test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js28
-rw-r--r--test/built-ins/Promise/prototype/then/reject-pending-rejected.js28
-rw-r--r--test/built-ins/Promise/prototype/then/reject-settled-fulfilled.js28
-rw-r--r--test/built-ins/Promise/prototype/then/reject-settled-rejected.js28
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-obj.js24
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-thenable.js28
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-poisoned-then.js24
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-prms-cstm-then.js30
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-self.js36
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-thenable.js28
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-obj.js24
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-thenable.js28
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-pending-rejected-poisoned-then.js24
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-pending-rejected-prms-cstm-then.js30
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-pending-rejected-self.js36
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-pending-rejected-thenable.js28
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-obj.js24
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-thenable.js28
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-poisoned-then.js24
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-prms-cstm-then.js30
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-self.js36
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-thenable.js28
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-obj.js24
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-thenable.js28
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-settled-rejected-poisoned-then.js24
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-settled-rejected-prms-cstm-then.js30
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-settled-rejected-self.js36
-rw-r--r--test/built-ins/Promise/prototype/then/resolve-settled-rejected-thenable.js28
-rw-r--r--test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-invoke-nonstrict.js28
-rw-r--r--test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-invoke-strict.js28
-rw-r--r--test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-next-abrupt.js34
-rw-r--r--test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-next.js46
-rw-r--r--test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-abrupt.js20
-rw-r--r--test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-normal.js20
-rw-r--r--test/built-ins/Promise/prototype/then/rxn-handler-identity.js20
-rw-r--r--test/built-ins/Promise/prototype/then/rxn-handler-rejected-invoke-nonstrict.js32
-rw-r--r--test/built-ins/Promise/prototype/then/rxn-handler-rejected-invoke-strict.js32
-rw-r--r--test/built-ins/Promise/prototype/then/rxn-handler-rejected-next-abrupt.js34
-rw-r--r--test/built-ins/Promise/prototype/then/rxn-handler-rejected-next.js46
-rw-r--r--test/built-ins/Promise/prototype/then/rxn-handler-rejected-return-abrupt.js20
-rw-r--r--test/built-ins/Promise/prototype/then/rxn-handler-rejected-return-normal.js20
-rw-r--r--test/built-ins/Promise/prototype/then/rxn-handler-thrower.js20
-rw-r--r--test/built-ins/Promise/race/S25.4.4.3_A1.1_T1.js2
-rw-r--r--test/built-ins/Promise/race/S25.4.4.3_A2.1_T1.js2
-rw-r--r--test/built-ins/Promise/race/S25.4.4.3_A2.2_T1.js13
-rw-r--r--test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js13
-rw-r--r--test/built-ins/Promise/race/S25.4.4.3_A2.2_T3.js19
-rw-r--r--test/built-ins/Promise/race/S25.4.4.3_A3.1_T1.js3
-rw-r--r--test/built-ins/Promise/race/S25.4.4.3_A3.1_T2.js4
-rw-r--r--test/built-ins/Promise/race/S25.4.4.3_A4.1_T1.js23
-rw-r--r--test/built-ins/Promise/race/S25.4.4.3_A4.1_T2.js41
-rw-r--r--test/built-ins/Promise/race/S25.4.4.3_A5.1_T1.js8
-rw-r--r--test/built-ins/Promise/race/S25.4.4.3_A6.1_T1.js18
-rw-r--r--test/built-ins/Promise/race/S25.4.4.3_A6.2_T1.js24
-rw-r--r--test/built-ins/Promise/race/S25.4.4.3_A7.1_T1.js28
-rw-r--r--test/built-ins/Promise/race/S25.4.4.3_A7.1_T2.js28
-rw-r--r--test/built-ins/Promise/race/S25.4.4.3_A7.1_T3.js30
-rw-r--r--test/built-ins/Promise/race/S25.4.4.3_A7.2_T1.js32
-rw-r--r--test/built-ins/Promise/race/S25.4.4.3_A7.3_T1.js16
-rw-r--r--test/built-ins/Promise/race/S25.4.4.3_A7.3_T2.js21
-rw-r--r--test/built-ins/Promise/race/capability-executor-called-twice.js14
-rw-r--r--test/built-ins/Promise/race/capability-executor-not-callable.js4
-rw-r--r--test/built-ins/Promise/race/invoke-resolve-error-close.js5
-rw-r--r--test/built-ins/Promise/race/invoke-resolve-get-error-close.js4
-rw-r--r--test/built-ins/Promise/race/invoke-then-error-close.js5
-rw-r--r--test/built-ins/Promise/race/invoke-then-get-error-close.js5
-rw-r--r--test/built-ins/Promise/race/reject-deferred.js4
-rw-r--r--test/built-ins/Promise/race/reject-ignored-deferred.js8
-rw-r--r--test/built-ins/Promise/race/resolve-prms-cstm-then.js4
-rw-r--r--test/built-ins/Promise/race/resolve-self.js28
-rw-r--r--test/built-ins/Promise/race/same-reject-function.js9
-rw-r--r--test/built-ins/Promise/race/same-resolve-function.js9
-rw-r--r--test/built-ins/Promise/race/species-get-error.js2
-rw-r--r--test/built-ins/Promise/reject-function-nonconstructor.js4
-rw-r--r--test/built-ins/Promise/reject-ignored-via-abrupt.js8
-rw-r--r--test/built-ins/Promise/reject-ignored-via-fn-deferred.js8
-rw-r--r--test/built-ins/Promise/reject-ignored-via-fn-immed.js8
-rw-r--r--test/built-ins/Promise/reject-via-abrupt-queue.js20
-rw-r--r--test/built-ins/Promise/reject-via-abrupt.js16
-rw-r--r--test/built-ins/Promise/reject-via-fn-deferred-queue.js22
-rw-r--r--test/built-ins/Promise/reject-via-fn-deferred.js16
-rw-r--r--test/built-ins/Promise/reject-via-fn-immed-queue.js22
-rw-r--r--test/built-ins/Promise/reject-via-fn-immed.js16
-rw-r--r--test/built-ins/Promise/reject/S25.4.4.4_A1.1_T1.js2
-rw-r--r--test/built-ins/Promise/reject/S25.4.4.4_A2.1_T1.js14
-rw-r--r--test/built-ins/Promise/reject/S25.4.4.4_A3.1_T1.js3
-rw-r--r--test/built-ins/Promise/reject/capability-executor-called-twice.js14
-rw-r--r--test/built-ins/Promise/reject/capability-executor-not-callable.js4
-rw-r--r--test/built-ins/Promise/reject/capability-invocation.js4
-rw-r--r--test/built-ins/Promise/resolve-function-nonconstructor.js4
-rw-r--r--test/built-ins/Promise/resolve-ignored-via-fn-deferred.js8
-rw-r--r--test/built-ins/Promise/resolve-ignored-via-fn-immed.js8
-rw-r--r--test/built-ins/Promise/resolve-non-obj-deferred.js16
-rw-r--r--test/built-ins/Promise/resolve-non-obj-immed.js16
-rw-r--r--test/built-ins/Promise/resolve-non-thenable-deferred.js20
-rw-r--r--test/built-ins/Promise/resolve-non-thenable-immed.js20
-rw-r--r--test/built-ins/Promise/resolve-poisoned-then-deferred.js16
-rw-r--r--test/built-ins/Promise/resolve-poisoned-then-immed.js16
-rw-r--r--test/built-ins/Promise/resolve-prms-cstm-then-deferred.js20
-rw-r--r--test/built-ins/Promise/resolve-prms-cstm-then-immed.js30
-rw-r--r--test/built-ins/Promise/resolve-self.js24
-rw-r--r--test/built-ins/Promise/resolve-thenable-deferred.js20
-rw-r--r--test/built-ins/Promise/resolve-thenable-immed.js20
-rw-r--r--test/built-ins/Promise/resolve/S25.4.4.5_A1.1_T1.js2
-rw-r--r--test/built-ins/Promise/resolve/S25.4.4.5_A2.1_T1.js4
-rw-r--r--test/built-ins/Promise/resolve/S25.4.4.5_A2.2_T1.js18
-rw-r--r--test/built-ins/Promise/resolve/S25.4.4.5_A2.3_T1.js22
-rw-r--r--test/built-ins/Promise/resolve/S25.4.4.5_A3.1_T1.js30
-rw-r--r--test/built-ins/Promise/resolve/S25.4.4.5_A4.1_T1.js16
-rw-r--r--test/built-ins/Promise/resolve/S25.Promise_resolve_foreign_thenable_1.js10
-rw-r--r--test/built-ins/Promise/resolve/S25.Promise_resolve_foreign_thenable_2.js20
-rw-r--r--test/built-ins/Promise/resolve/capability-executor-called-twice.js14
-rw-r--r--test/built-ins/Promise/resolve/capability-executor-not-callable.js4
-rw-r--r--test/built-ins/Promise/resolve/context-non-object-with-promise.js2
-rw-r--r--test/built-ins/Promise/resolve/resolve-from-promise-capability.js4
-rw-r--r--test/built-ins/Promise/resolve/resolve-non-obj.js16
-rw-r--r--test/built-ins/Promise/resolve/resolve-non-thenable.js16
-rw-r--r--test/built-ins/Promise/resolve/resolve-poisoned-then.js16
-rw-r--r--test/built-ins/Promise/resolve/resolve-prms-cstm-then.js12
-rw-r--r--test/built-ins/Promise/resolve/resolve-thenable.js16
-rw-r--r--test/built-ins/Proxy/apply/call-parameters.js16
-rw-r--r--test/built-ins/Proxy/apply/call-result.js10
-rw-r--r--test/built-ins/Proxy/apply/null-handler.js2
-rw-r--r--test/built-ins/Proxy/apply/return-abrupt.js12
-rw-r--r--test/built-ins/Proxy/apply/trap-is-not-callable.js4
-rw-r--r--test/built-ins/Proxy/apply/trap-is-null.js4
-rw-r--r--test/built-ins/Proxy/apply/trap-is-undefined-no-property.js6
-rw-r--r--test/built-ins/Proxy/apply/trap-is-undefined.js4
-rw-r--r--test/built-ins/Proxy/construct/call-parameters-new-target.js29
-rw-r--r--test/built-ins/Proxy/construct/call-parameters.js15
-rw-r--r--test/built-ins/Proxy/construct/call-result.js10
-rw-r--r--test/built-ins/Proxy/construct/null-handler.js2
-rw-r--r--test/built-ins/Proxy/construct/return-is-abrupt.js8
-rw-r--r--test/built-ins/Proxy/construct/return-not-object-throws-boolean.js10
-rw-r--r--test/built-ins/Proxy/construct/return-not-object-throws-number.js10
-rw-r--r--test/built-ins/Proxy/construct/return-not-object-throws-string.js10
-rw-r--r--test/built-ins/Proxy/construct/return-not-object-throws-symbol.js10
-rw-r--r--test/built-ins/Proxy/construct/return-not-object-throws-undefined.js10
-rw-r--r--test/built-ins/Proxy/construct/trap-is-not-callable.js4
-rw-r--r--test/built-ins/Proxy/construct/trap-is-null.js13
-rw-r--r--test/built-ins/Proxy/construct/trap-is-undefined-no-property.js9
-rw-r--r--test/built-ins/Proxy/construct/trap-is-undefined.js13
-rw-r--r--test/built-ins/Proxy/create-handler-is-revoked-proxy.js2
-rw-r--r--test/built-ins/Proxy/create-handler-not-object-throw-boolean.js2
-rw-r--r--test/built-ins/Proxy/create-handler-not-object-throw-null.js2
-rw-r--r--test/built-ins/Proxy/create-handler-not-object-throw-number.js2
-rw-r--r--test/built-ins/Proxy/create-handler-not-object-throw-string.js2
-rw-r--r--test/built-ins/Proxy/create-handler-not-object-throw-symbol.js2
-rw-r--r--test/built-ins/Proxy/create-handler-not-object-throw-undefined.js2
-rw-r--r--test/built-ins/Proxy/create-target-is-not-callable.js2
-rw-r--r--test/built-ins/Proxy/create-target-is-not-constructor.js2
-rw-r--r--test/built-ins/Proxy/create-target-is-revoked-proxy.js2
-rw-r--r--test/built-ins/Proxy/create-target-not-object-throw-boolean.js2
-rw-r--r--test/built-ins/Proxy/create-target-not-object-throw-null.js2
-rw-r--r--test/built-ins/Proxy/create-target-not-object-throw-number.js2
-rw-r--r--test/built-ins/Proxy/create-target-not-object-throw-string.js2
-rw-r--r--test/built-ins/Proxy/create-target-not-object-throw-symbol.js2
-rw-r--r--test/built-ins/Proxy/create-target-not-object-throw-undefined.js2
-rw-r--r--test/built-ins/Proxy/defineProperty/call-parameters.js26
-rw-r--r--test/built-ins/Proxy/defineProperty/null-handler.js8
-rw-r--r--test/built-ins/Proxy/defineProperty/return-boolean-and-define-target.js22
-rw-r--r--test/built-ins/Proxy/defineProperty/return-is-abrupt.js8
-rw-r--r--test/built-ins/Proxy/defineProperty/targetdesc-configurable-desc-not-configurable.js18
-rw-r--r--test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-not-configurable-target.js18
-rw-r--r--test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor.js14
-rw-r--r--test/built-ins/Proxy/defineProperty/targetdesc-undefined-not-configurable-descriptor.js12
-rw-r--r--test/built-ins/Proxy/defineProperty/targetdesc-undefined-target-is-not-extensible.js8
-rw-r--r--test/built-ins/Proxy/defineProperty/trap-is-not-callable.js8
-rw-r--r--test/built-ins/Proxy/defineProperty/trap-is-undefined.js16
-rw-r--r--test/built-ins/Proxy/defineProperty/trap-return-is-false.js10
-rw-r--r--test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-false.js22
-rw-r--r--test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-true.js6
-rw-r--r--test/built-ins/Proxy/deleteProperty/call-parameters.js14
-rw-r--r--test/built-ins/Proxy/deleteProperty/null-handler.js4
-rw-r--r--test/built-ins/Proxy/deleteProperty/return-false-not-strict.js6
-rw-r--r--test/built-ins/Proxy/deleteProperty/return-false-strict.js6
-rw-r--r--test/built-ins/Proxy/deleteProperty/return-is-abrupt.js8
-rw-r--r--test/built-ins/Proxy/deleteProperty/targetdesc-is-not-configurable.js12
-rw-r--r--test/built-ins/Proxy/deleteProperty/targetdesc-is-undefined-return-true.js6
-rw-r--r--test/built-ins/Proxy/deleteProperty/trap-is-not-callable.js4
-rw-r--r--test/built-ins/Proxy/deleteProperty/trap-is-undefined-not-strict.js12
-rw-r--r--test/built-ins/Proxy/deleteProperty/trap-is-undefined-strict.js12
-rw-r--r--test/built-ins/Proxy/function-prototype.js6
-rw-r--r--test/built-ins/Proxy/get-fn-realm.js4
-rw-r--r--test/built-ins/Proxy/get/accessor-get-is-undefined-throws.js14
-rw-r--r--test/built-ins/Proxy/get/call-parameters.js18
-rw-r--r--test/built-ins/Proxy/get/not-same-value-configurable-false-writable-false-throws.js16
-rw-r--r--test/built-ins/Proxy/get/null-handler.js4
-rw-r--r--test/built-ins/Proxy/get/return-is-abrupt.js10
-rw-r--r--test/built-ins/Proxy/get/return-trap-result-accessor-property.js12
-rw-r--r--test/built-ins/Proxy/get/return-trap-result-configurable-false-writable-true.js12
-rw-r--r--test/built-ins/Proxy/get/return-trap-result-configurable-true-assessor-get-undefined.js10
-rw-r--r--test/built-ins/Proxy/get/return-trap-result-configurable-true-writable-false.js12
-rw-r--r--test/built-ins/Proxy/get/return-trap-result-same-value-configurable-false-writable-false.js12
-rw-r--r--test/built-ins/Proxy/get/return-trap-result.js8
-rw-r--r--test/built-ins/Proxy/get/trap-is-not-callable.js6
-rw-r--r--test/built-ins/Proxy/get/trap-is-undefined-no-property.js2
-rw-r--r--test/built-ins/Proxy/get/trap-is-undefined-receiver.js10
-rw-r--r--test/built-ins/Proxy/get/trap-is-undefined.js4
-rw-r--r--test/built-ins/Proxy/getOwnPropertyDescriptor/call-parameters.js16
-rw-r--r--test/built-ins/Proxy/getOwnPropertyDescriptor/null-handler.js2
-rw-r--r--test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-target-is-not-extensible.js10
-rw-r--r--test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-targetdesc-is-not-configurable.js14
-rw-r--r--test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-targetdesc-is-undefined.js12
-rw-r--r--test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined.js8
-rw-r--r--test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined-realm.js4
-rw-r--r--test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined.js26
-rw-r--r--test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-invalid-descriptor.js12
-rw-r--r--test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-configurable.js22
-rw-r--r--test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-undefined.js20
-rw-r--r--test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-return-configurable.js12
-rw-r--r--test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-return-not-configurable.js12
-rw-r--r--test/built-ins/Proxy/getOwnPropertyDescriptor/return-is-abrupt.js8
-rw-r--r--test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-not-callable.js4
-rw-r--r--test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-undefined.js4
-rw-r--r--test/built-ins/Proxy/getPrototypeOf/extensible-target-return-handlerproto.js4
-rw-r--r--test/built-ins/Proxy/getPrototypeOf/not-extensible-not-same-proto-throws.js6
-rw-r--r--test/built-ins/Proxy/getPrototypeOf/null-handler.js2
-rw-r--r--test/built-ins/Proxy/getPrototypeOf/return-is-abrupt.js2
-rw-r--r--test/built-ins/Proxy/getPrototypeOf/trap-is-not-callable.js4
-rw-r--r--test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-boolean.js2
-rw-r--r--test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-number.js2
-rw-r--r--test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-string.js2
-rw-r--r--test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-symbol.js2
-rw-r--r--test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-undefined.js2
-rw-r--r--test/built-ins/Proxy/has/call-in.js12
-rw-r--r--test/built-ins/Proxy/has/call-object-create.js12
-rw-r--r--test/built-ins/Proxy/has/call-with.js16
-rw-r--r--test/built-ins/Proxy/has/null-handler-using-with.js6
-rw-r--r--test/built-ins/Proxy/has/null-handler.js2
-rw-r--r--test/built-ins/Proxy/has/return-false-target-not-extensible-using-with.js16
-rw-r--r--test/built-ins/Proxy/has/return-false-target-not-extensible.js12
-rw-r--r--test/built-ins/Proxy/has/return-false-target-prop-exists-using-with.js12
-rw-r--r--test/built-ins/Proxy/has/return-false-target-prop-exists.js8
-rw-r--r--test/built-ins/Proxy/has/return-false-targetdesc-not-configurable-using-with.js16
-rw-r--r--test/built-ins/Proxy/has/return-false-targetdesc-not-configurable.js12
-rw-r--r--test/built-ins/Proxy/has/return-is-abrupt-in.js8
-rw-r--r--test/built-ins/Proxy/has/return-is-abrupt-with.js12
-rw-r--r--test/built-ins/Proxy/has/return-true-target-prop-exists-using-with.js14
-rw-r--r--test/built-ins/Proxy/has/return-true-target-prop-exists.js8
-rw-r--r--test/built-ins/Proxy/has/return-true-without-same-target-prop.js6
-rw-r--r--test/built-ins/Proxy/has/trap-is-not-callable-using-with.js8
-rw-r--r--test/built-ins/Proxy/has/trap-is-not-callable.js4
-rw-r--r--test/built-ins/Proxy/has/trap-is-undefined-using-with.js6
-rw-r--r--test/built-ins/Proxy/isExtensible/call-parameters.js10
-rw-r--r--test/built-ins/Proxy/isExtensible/null-handler.js2
-rw-r--r--test/built-ins/Proxy/isExtensible/return-is-abrupt.js8
-rw-r--r--test/built-ins/Proxy/isExtensible/return-is-boolean.js12
-rw-r--r--test/built-ins/Proxy/isExtensible/return-is-different-from-target.js8
-rw-r--r--test/built-ins/Proxy/isExtensible/return-same-result-from-target.js6
-rw-r--r--test/built-ins/Proxy/isExtensible/trap-is-not-callable.js4
-rw-r--r--test/built-ins/Proxy/ownKeys/call-parameters-object-getownpropertynames.js14
-rw-r--r--test/built-ins/Proxy/ownKeys/call-parameters-object-getownpropertysymbols.js10
-rw-r--r--test/built-ins/Proxy/ownKeys/call-parameters-object-keys.js14
-rw-r--r--test/built-ins/Proxy/ownKeys/extensible-return-trap-result-absent-not-configurable-keys.js10
-rw-r--r--test/built-ins/Proxy/ownKeys/extensible-return-trap-result.js12
-rw-r--r--test/built-ins/Proxy/ownKeys/not-extensible-missing-keys-throws.js12
-rw-r--r--test/built-ins/Proxy/ownKeys/not-extensible-new-keys-throws.js10
-rw-r--r--test/built-ins/Proxy/ownKeys/not-extensible-return-keys.js10
-rw-r--r--test/built-ins/Proxy/ownKeys/null-handler.js2
-rw-r--r--test/built-ins/Proxy/ownKeys/return-all-non-configurable-keys.js16
-rw-r--r--test/built-ins/Proxy/ownKeys/return-is-abrupt.js8
-rw-r--r--test/built-ins/Proxy/ownKeys/return-not-list-object-throws-realm.js8
-rw-r--r--test/built-ins/Proxy/ownKeys/return-not-list-object-throws.js8
-rw-r--r--test/built-ins/Proxy/ownKeys/return-type-throws-array.js4
-rw-r--r--test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js4
-rw-r--r--test/built-ins/Proxy/ownKeys/trap-is-not-callable.js8
-rw-r--r--test/built-ins/Proxy/ownKeys/trap-is-undefined.js4
-rw-r--r--test/built-ins/Proxy/preventExtensions/call-parameters.js10
-rw-r--r--test/built-ins/Proxy/preventExtensions/null-handler.js2
-rw-r--r--test/built-ins/Proxy/preventExtensions/return-false.js6
-rw-r--r--test/built-ins/Proxy/preventExtensions/return-is-abrupt.js8
-rw-r--r--test/built-ins/Proxy/preventExtensions/return-true-target-is-extensible.js8
-rw-r--r--test/built-ins/Proxy/preventExtensions/return-true-target-is-not-extensible.js6
-rw-r--r--test/built-ins/Proxy/preventExtensions/trap-is-not-callable.js4
-rw-r--r--test/built-ins/Proxy/proxy-newtarget.js6
-rw-r--r--test/built-ins/Proxy/proxy-undefined-newtarget.js1
-rw-r--r--test/built-ins/Proxy/revocable/proxy.js8
-rw-r--r--test/built-ins/Proxy/revocable/revocation-function-nonconstructor.js4
-rw-r--r--test/built-ins/Proxy/set/boolean-trap-result-is-false-boolean-return-false.js6
-rw-r--r--test/built-ins/Proxy/set/boolean-trap-result-is-false-null-return-false.js6
-rw-r--r--test/built-ins/Proxy/set/boolean-trap-result-is-false-number-return-false.js6
-rw-r--r--test/built-ins/Proxy/set/boolean-trap-result-is-false-string-return-false.js6
-rw-r--r--test/built-ins/Proxy/set/boolean-trap-result-is-false-undefined-return-false.js6
-rw-r--r--test/built-ins/Proxy/set/call-parameters.js16
-rw-r--r--test/built-ins/Proxy/set/null-handler.js4
-rw-r--r--test/built-ins/Proxy/set/return-is-abrupt.js10
-rw-r--r--test/built-ins/Proxy/set/return-true-target-property-accessor-is-configurable-set-is-undefined.js10
-rw-r--r--test/built-ins/Proxy/set/return-true-target-property-accessor-is-not-configurable.js14
-rw-r--r--test/built-ins/Proxy/set/return-true-target-property-is-not-configurable.js12
-rw-r--r--test/built-ins/Proxy/set/return-true-target-property-is-not-writable.js12
-rw-r--r--test/built-ins/Proxy/set/target-property-is-accessor-not-configurable-set-is-undefined.js14
-rw-r--r--test/built-ins/Proxy/set/target-property-is-not-configurable-not-writable-not-equal-to-v.js16
-rw-r--r--test/built-ins/Proxy/set/trap-is-not-callable.js6
-rw-r--r--test/built-ins/Proxy/set/trap-is-undefined-no-property.js2
-rw-r--r--test/built-ins/Proxy/set/trap-is-undefined-receiver.js10
-rw-r--r--test/built-ins/Proxy/set/trap-is-undefined.js4
-rw-r--r--test/built-ins/Proxy/setPrototypeOf/call-parameters.js18
-rw-r--r--test/built-ins/Proxy/setPrototypeOf/null-handler.js4
-rw-r--r--test/built-ins/Proxy/setPrototypeOf/return-abrupt-from-trap.js10
-rw-r--r--test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-false.js28
-rw-r--r--test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-true-target-is-extensible.js24
-rw-r--r--test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable-realm.js6
-rw-r--r--test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable.js8
-rw-r--r--test/built-ins/Reflect/apply/call-target.js1
-rw-r--r--test/built-ins/Reflect/apply/return-target-call-result.js1
-rw-r--r--test/built-ins/Reflect/construct/return-with-newtarget-argument.js1
-rw-r--r--test/built-ins/Reflect/construct/return-without-newtarget-argument.js1
-rw-r--r--test/built-ins/Reflect/defineProperty/return-boolean.js12
-rw-r--r--test/built-ins/Reflect/get/return-value.js4
-rw-r--r--test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-accessor-descriptor.js3
-rw-r--r--test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-data-descriptor.js3
-rw-r--r--test/built-ins/Reflect/getOwnPropertyDescriptor/symbol-property.js3
-rw-r--r--test/built-ins/Reflect/getOwnPropertyDescriptor/undefined-own-property.js4
-rw-r--r--test/built-ins/Reflect/getPrototypeOf/skip-own-properties.js5
-rw-r--r--test/built-ins/Reflect/has/return-boolean.js4
-rw-r--r--test/built-ins/Reflect/ownKeys/return-empty-array.js4
-rw-r--r--test/built-ins/Reflect/ownKeys/return-non-enumerable-keys.js2
-rw-r--r--test/built-ins/Reflect/set/creates-a-data-descriptor.js1
-rw-r--r--test/built-ins/Reflect/set/different-property-descriptors.js4
-rw-r--r--test/built-ins/Reflect/set/receiver-is-not-object.js4
-rw-r--r--test/built-ins/Reflect/set/set-value-on-accessor-descriptor.js1
-rw-r--r--test/built-ins/Reflect/set/set-value-on-data-descriptor.js12
-rw-r--r--test/built-ins/RegExp/S15.10.1_A1_T1.js8
-rw-r--r--test/built-ins/RegExp/S15.10.1_A1_T10.js8
-rw-r--r--test/built-ins/RegExp/S15.10.1_A1_T11.js8
-rw-r--r--test/built-ins/RegExp/S15.10.1_A1_T12.js8
-rw-r--r--test/built-ins/RegExp/S15.10.1_A1_T13.js8
-rw-r--r--test/built-ins/RegExp/S15.10.1_A1_T14.js8
-rw-r--r--test/built-ins/RegExp/S15.10.1_A1_T15.js8
-rw-r--r--test/built-ins/RegExp/S15.10.1_A1_T16.js8
-rw-r--r--test/built-ins/RegExp/S15.10.1_A1_T2.js8
-rw-r--r--test/built-ins/RegExp/S15.10.1_A1_T3.js8
-rw-r--r--test/built-ins/RegExp/S15.10.1_A1_T4.js8
-rw-r--r--test/built-ins/RegExp/S15.10.1_A1_T5.js8
-rw-r--r--test/built-ins/RegExp/S15.10.1_A1_T6.js8
-rw-r--r--test/built-ins/RegExp/S15.10.1_A1_T7.js8
-rw-r--r--test/built-ins/RegExp/S15.10.1_A1_T8.js8
-rw-r--r--test/built-ins/RegExp/S15.10.1_A1_T9.js8
-rw-r--r--test/built-ins/RegExp/S15.10.2.10_A2.1_T1.js4
-rw-r--r--test/built-ins/RegExp/S15.10.2.10_A2.1_T2.js4
-rw-r--r--test/built-ins/RegExp/S15.10.2.10_A3.1_T1.js8
-rw-r--r--test/built-ins/RegExp/S15.10.2.10_A3.1_T2.js6
-rw-r--r--test/built-ins/RegExp/S15.10.2.10_A4.1_T1.js12
-rw-r--r--test/built-ins/RegExp/S15.10.2.10_A4.1_T2.js6
-rw-r--r--test/built-ins/RegExp/S15.10.2.10_A4.1_T3.js6
-rw-r--r--test/built-ins/RegExp/S15.10.2.11_A1_T1.js4
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A1_T1.js4
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A1_T2.js4
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A1_T3.js6
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A1_T4.js4
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A1_T5.js6
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A2_T1.js4
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A2_T2.js4
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A2_T3.js8
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A2_T4.js8
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A2_T5.js8
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A3_T2.js4
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A3_T3.js6
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A3_T4.js4
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A3_T5.js6
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A4_T2.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A4_T3.js4
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A4_T4.js8
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A4_T5.js6
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A5_T2.js6
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A5_T3.js4
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A5_T4.js6
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A6_T2.js10
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A6_T3.js8
-rw-r--r--test/built-ins/RegExp/S15.10.2.12_A6_T4.js6
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A1_T1.js4
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A1_T10.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A1_T11.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A1_T12.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A1_T13.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A1_T14.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A1_T15.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A1_T17.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A1_T2.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A1_T3.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A1_T4.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A1_T5.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A1_T6.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A1_T7.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A1_T8.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A1_T9.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A2_T1.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A2_T2.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A2_T3.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A2_T4.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A2_T5.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A2_T6.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A2_T7.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A2_T8.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A3_T1.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A3_T2.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A3_T3.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.13_A3_T4.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T1.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T10.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T11.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T12.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T13.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T14.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T15.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T16.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T17.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T18.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T19.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T2.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T20.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T21.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T22.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T23.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T24.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T25.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T26.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T27.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T28.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T29.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T3.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T30.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T31.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T32.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T33.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T34.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T35.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T36.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T37.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T38.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T39.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T4.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T40.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T41.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T5.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T6.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T7.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T8.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.15_A1_T9.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.3_A1_T1.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.3_A1_T10.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.3_A1_T11.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.3_A1_T12.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.3_A1_T13.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.3_A1_T14.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.3_A1_T15.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.3_A1_T16.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.3_A1_T17.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.3_A1_T2.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.3_A1_T3.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.3_A1_T4.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.3_A1_T5.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.3_A1_T6.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.3_A1_T7.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.3_A1_T8.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.3_A1_T9.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.5_A1_T1.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.5_A1_T2.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.5_A1_T3.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.5_A1_T4.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.5_A1_T5.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A1_T1.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A1_T2.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A1_T3.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A1_T4.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A1_T5.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A2_T1.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A2_T10.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A2_T2.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A2_T3.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A2_T4.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A2_T5.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A2_T6.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A2_T7.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A2_T8.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A2_T9.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A3_T1.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A3_T10.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A3_T11.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A3_T12.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A3_T13.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A3_T14.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A3_T15.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A3_T2.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A3_T3.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A3_T4.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A3_T5.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A3_T6.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A3_T7.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A3_T8.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A3_T9.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A4_T1.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A4_T2.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A4_T3.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A4_T4.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A4_T5.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A4_T6.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A4_T7.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A4_T8.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A5_T1.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A5_T2.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A6_T1.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A6_T2.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A6_T3.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.6_A6_T4.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A1_T1.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A1_T10.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A1_T11.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A1_T12.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A1_T2.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A1_T3.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A1_T4.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A1_T5.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A1_T6.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A1_T7.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A1_T8.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A1_T9.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A2_T1.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A2_T2.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A2_T3.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A2_T4.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A3_T1.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A3_T10.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A3_T11.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A3_T12.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A3_T13.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A3_T14.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A3_T2.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A3_T3.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A3_T4.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A3_T5.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A3_T6.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A3_T7.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A3_T8.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A3_T9.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A4_T1.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A4_T10.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A4_T11.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A4_T12.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A4_T13.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A4_T14.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A4_T15.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A4_T16.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A4_T17.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A4_T18.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A4_T19.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A4_T2.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A4_T20.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A4_T21.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A4_T3.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A4_T4.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A4_T5.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A4_T6.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A4_T7.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A4_T8.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A4_T9.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A5_T1.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A5_T10.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A5_T11.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A5_T12.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A5_T2.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A5_T3.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A5_T4.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A5_T5.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A5_T6.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A5_T7.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A5_T8.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A5_T9.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A6_T1.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A6_T2.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A6_T3.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A6_T4.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A6_T5.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.7_A6_T6.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A1_T1.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A1_T2.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A1_T3.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A1_T4.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A1_T5.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A2_T1.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A2_T10.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A2_T11.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A2_T2.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A2_T3.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A2_T4.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A2_T5.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A2_T6.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A2_T7.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A2_T8.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A2_T9.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T1.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T10.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T11.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T12.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T13.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T14.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T15.js32
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T16.js28
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T17.js18
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T18.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T19.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T2.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T20.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T21.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T22.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T23.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T24.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T25.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T26.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T27.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T28.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T29.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T3.js2
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T30.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T31.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T32.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T33.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T4.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T5.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T6.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T7.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T8.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A3_T9.js16
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A4_T1.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A4_T2.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A4_T3.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A4_T4.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A4_T5.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A4_T6.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A4_T7.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A4_T8.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A4_T9.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A5_T1.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.8_A5_T2.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.9_A1_T1.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.9_A1_T2.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.9_A1_T3.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2.9_A1_T5.js14
-rw-r--r--test/built-ins/RegExp/S15.10.2_A1_T1.js59
-rw-r--r--test/built-ins/RegExp/S15.10.3.1_A1_T1.js2
-rw-r--r--test/built-ins/RegExp/S15.10.3.1_A1_T2.js4
-rw-r--r--test/built-ins/RegExp/S15.10.3.1_A1_T3.js2
-rw-r--r--test/built-ins/RegExp/S15.10.3.1_A1_T4.js2
-rw-r--r--test/built-ins/RegExp/S15.10.3.1_A1_T5.js2
-rw-r--r--test/built-ins/RegExp/S15.10.3.1_A2_T1.js8
-rw-r--r--test/built-ins/RegExp/S15.10.3.1_A2_T2.js8
-rw-r--r--test/built-ins/RegExp/S15.10.3.1_A3_T1.js4
-rw-r--r--test/built-ins/RegExp/S15.10.3.1_A3_T2.js10
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A1_T1.js4
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A1_T2.js2
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A1_T3.js2
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A1_T4.js2
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A1_T5.js6
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A3_T5.js2
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A4_T1.js2
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A4_T4.js2
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A4_T5.js2
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A5_T1.js8
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A5_T3.js8
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A5_T4.js8
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A5_T6.js8
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A5_T7.js8
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A5_T8.js8
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A5_T9.js10
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A6_T1.js4
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A7_T1.js2
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A7_T2.js2
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A8_T1.js12
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A8_T10.js12
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A8_T11.js12
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A8_T12.js13
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A8_T13.js12
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A8_T2.js14
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A8_T3.js18
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A8_T4.js22
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A8_T5.js16
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A8_T6.js12
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A8_T7.js13
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A8_T8.js12
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A8_T9.js10
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A9_T1.js8
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A9_T2.js8
-rw-r--r--test/built-ins/RegExp/S15.10.4.1_A9_T3.js8
-rw-r--r--test/built-ins/RegExp/S15.10.5_A1.js2
-rw-r--r--test/built-ins/RegExp/S15.10.5_A2_T1.js2
-rw-r--r--test/built-ins/RegExp/S15.10.5_A2_T2.js4
-rw-r--r--test/built-ins/RegExp/S15.10.7_A1_T1.js8
-rw-r--r--test/built-ins/RegExp/S15.10.7_A1_T2.js2
-rw-r--r--test/built-ins/RegExp/S15.10.7_A2_T1.js2
-rw-r--r--test/built-ins/RegExp/S15.10.7_A3_T1.js6
-rw-r--r--test/built-ins/RegExp/S15.10.7_A3_T2.js6
-rw-r--r--test/built-ins/RegExp/from-regexp-like-get-source-err.js1
-rw-r--r--test/built-ins/RegExp/lookBehind/back-references.js1
-rw-r--r--test/built-ins/RegExp/named-groups/functional-replace-global.js51
-rw-r--r--test/built-ins/RegExp/named-groups/functional-replace-non-global.js26
-rw-r--r--test/built-ins/RegExp/named-groups/groups-object-subclass-sans.js4
-rw-r--r--test/built-ins/RegExp/named-groups/groups-object-subclass.js4
-rw-r--r--test/built-ins/RegExp/named-groups/groups-object-undefined.js4
-rw-r--r--test/built-ins/RegExp/named-groups/groups-object-unmatched.js6
-rw-r--r--test/built-ins/RegExp/named-groups/groups-object.js8
-rw-r--r--test/built-ins/RegExp/named-groups/groups-properties.js10
-rw-r--r--test/built-ins/RegExp/named-groups/lookbehind.js4
-rw-r--r--test/built-ins/RegExp/named-groups/non-unicode-match.js8
-rw-r--r--test/built-ins/RegExp/named-groups/non-unicode-property-names.js4
-rw-r--r--test/built-ins/RegExp/named-groups/non-unicode-references.js5
-rw-r--r--test/built-ins/RegExp/named-groups/string-replace-nocaptures.js1
-rw-r--r--test/built-ins/RegExp/named-groups/string-replace-numbered.js1
-rw-r--r--test/built-ins/RegExp/named-groups/unicode-malformed.js1
-rw-r--r--test/built-ins/RegExp/named-groups/unicode-match.js16
-rw-r--r--test/built-ins/RegExp/named-groups/unicode-property-names.js4
-rw-r--r--test/built-ins/RegExp/named-groups/unicode-references.js5
-rw-r--r--test/built-ins/RegExp/property-escapes/generated/Any.js3
-rw-r--r--test/built-ins/RegExp/prototype/15.10.6.js2
-rw-r--r--test/built-ins/RegExp/prototype/S15.10.5.1_A1.js2
-rw-r--r--test/built-ins/RegExp/prototype/S15.10.5.1_A2.js16
-rw-r--r--test/built-ins/RegExp/prototype/S15.10.5.1_A3.js4
-rw-r--r--test/built-ins/RegExp/prototype/S15.10.5.1_A4.js8
-rw-r--r--test/built-ins/RegExp/prototype/S15.10.6.1_A1_T1.js2
-rw-r--r--test/built-ins/RegExp/prototype/S15.10.6.1_A1_T2.js4
-rw-r--r--test/built-ins/RegExp/prototype/S15.10.6_A1_T1.js2
-rw-r--r--test/built-ins/RegExp/prototype/S15.10.6_A1_T2.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-g-set-lastindex-err.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-return-val.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-set-lastindex-err.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/builtin-infer-unicode.js8
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex-err.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/builtin-success-return-val-groups.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/builtin-success-return-val.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/builtin-success-u-return-val-groups.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/builtin-success-y-set-lastindex-err.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/coerce-arg-err.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/coerce-arg.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/coerce-global.js8
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/g-get-exec-err.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/g-init-lastindex-err.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-advance-lastindex.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-set-lastindex-err.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/g-match-no-set-lastindex.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/g-success-return-val.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/g-zero-matches.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/u-advance-after-empty.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/y-fail-global-return.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/y-fail-return.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce-err.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce-err.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/coerce-global.js8
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/coerce-unicode.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/fn-coerce-replacement-err.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/fn-coerce-replacement.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/fn-err.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-args.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-this-no-strict.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-this-strict.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/g-init-lastindex-err.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/g-pos-decrement.js12
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/g-pos-increment.js12
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/get-exec-err.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/match-failure.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/replace-with-trailing.js12
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/replace-without-trailing.js8
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/subst-after.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/subst-before.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-1.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-2.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/subst-dollar.js8
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/subst-matched.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/u-advance-after-empty.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/y-fail-global-return.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.replace/y-fail-return.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.search/coerce-string-err.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.search/coerce-string.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.search/cstm-exec-return-index.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.search/failure-return-val.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.search/set-lastindex-restore-err.js8
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.search/success-return-val.js6
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.search/u-lastindex-advance.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.search/y-fail-return.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.split/coerce-limit-err.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.split/coerce-limit.js6
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.split/coerce-string-err.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.split/coerce-string.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.split/last-index-exceeds-str-size.js5
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.split/species-ctor-ctor-non-obj.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.split/species-ctor-species-get-err.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.split/str-adv-thru-empty-match.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.split/str-coerce-lastindex-err.js4
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.split/str-empty-match.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.split/str-empty-no-match.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.split/str-limit-capturing.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.split/str-limit.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.split/str-trailing-chars.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.split/u-lastindex-adv-thru-failure.js2
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.split/u-lastindex-adv-thru-match.js2
-rw-r--r--test/built-ins/RegExp/prototype/exec/15.10.6.2-9-e-1.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A10.js4
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A12.js2
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T1.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T10.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T11.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js14
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T13.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T14.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T15.js14
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T16.js2
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T17.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T18.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T19.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T2.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T20.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T21.js10
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T3.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js14
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js17
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js12
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js12
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js7
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js4
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T1.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T10.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T2.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T3.js10
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js14
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js12
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T6.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T7.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T8.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T9.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T1.js26
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T2.js268
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js268
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js268
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T5.js20
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js20
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T7.js20
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T1.js28
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T10.js34
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js26
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js37
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T2.js28
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T3.js28
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T4.js28
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T5.js28
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T6.js28
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T7.js28
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T8.js28
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T9.js28
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T1.js18
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T2.js6
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T3.js12
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A8.js10
-rw-r--r--test/built-ins/RegExp/prototype/exec/failure-g-lastindex-reset.js4
-rw-r--r--test/built-ins/RegExp/prototype/exec/success-g-lastindex-no-access.js1
-rw-r--r--test/built-ins/RegExp/prototype/global/15.10.7.2-2.js4
-rw-r--r--test/built-ins/RegExp/prototype/global/S15.10.7.2_A8.js8
-rw-r--r--test/built-ins/RegExp/prototype/ignoreCase/15.10.7.3-2.js4
-rw-r--r--test/built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A8.js8
-rw-r--r--test/built-ins/RegExp/prototype/multiline/15.10.7.4-2.js4
-rw-r--r--test/built-ins/RegExp/prototype/multiline/S15.10.7.4_A8.js8
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A10.js4
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T1.js2
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T10.js2
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T11.js2
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T12.js8
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T13.js2
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T14.js2
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T15.js8
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T16.js2
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T17.js2
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T18.js2
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T19.js2
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T2.js2
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T20.js2
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T21.js4
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T22.js12
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T3.js2
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T4.js8
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T5.js11
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T6.js8
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T7.js12
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T8.js7
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T9.js4
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T2.js2
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T3.js2
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T4.js14
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T5.js12
-rw-r--r--test/built-ins/RegExp/prototype/test/S15.10.6.3_A8.js10
-rw-r--r--test/built-ins/RegExp/prototype/toString/S15.10.6.4_A10.js8
-rw-r--r--test/built-ins/RegExp/prototype/toString/S15.10.6.4_A11.js4
-rw-r--r--test/built-ins/RegExp/prototype/toString/S15.10.6.4_A6.js2
-rw-r--r--test/built-ins/RegExp/prototype/toString/S15.10.6.4_A7.js4
-rw-r--r--test/built-ins/RegExp/prototype/toString/S15.10.6.4_A8.js16
-rw-r--r--test/built-ins/RegExp/prototype/toString/S15.10.6.4_A9.js6
-rw-r--r--test/built-ins/RegExp/unicode_restricted_identity_escape_alpha.js18
-rw-r--r--test/built-ins/RegExp/unicode_restricted_identity_escape_c.js8
-rw-r--r--test/built-ins/Set/properties-of-the-set-prototype-object.js6
-rw-r--r--test/built-ins/Set/prototype-of-set.js6
-rw-r--r--test/built-ins/Set/prototype/add/add.js6
-rw-r--r--test/built-ins/Set/prototype/add/returns-this-when-ignoring-duplicate.js2
-rw-r--r--test/built-ins/Set/prototype/add/will-not-add-duplicate-entry-initial-iterable.js2
-rw-r--r--test/built-ins/Set/prototype/add/will-not-add-duplicate-entry-normalizes-zero.js2
-rw-r--r--test/built-ins/Set/prototype/clear/clear.js6
-rw-r--r--test/built-ins/Set/prototype/constructor/set-prototype-constructor-intrinsic.js6
-rw-r--r--test/built-ins/Set/prototype/delete/delete-entry-initial-iterable.js2
-rw-r--r--test/built-ins/Set/prototype/delete/delete-entry-normalizes-zero.js2
-rw-r--r--test/built-ins/Set/prototype/delete/delete.js6
-rw-r--r--test/built-ins/Set/prototype/entries/entries.js6
-rw-r--r--test/built-ins/Set/prototype/forEach/forEach.js6
-rw-r--r--test/built-ins/Set/prototype/forEach/returns-undefined.js6
-rw-r--r--test/built-ins/Set/prototype/has/has.js6
-rw-r--r--test/built-ins/Set/prototype/has/returns-false-when-undefined-added-deleted-not-present-undefined.js1
-rw-r--r--test/built-ins/Set/prototype/keys/keys.js6
-rw-r--r--test/built-ins/Set/prototype/size/size.js12
-rw-r--r--test/built-ins/Set/prototype/values/values.js6
-rw-r--r--test/built-ins/Set/set-iterator-close-after-add-failure.js9
-rw-r--r--test/built-ins/Set/set-iterator-next-failure.js1
-rw-r--r--test/built-ins/Set/set-iterator-value-failure.js1
-rw-r--r--test/built-ins/Set/set-newtarget.js12
-rw-r--r--test/built-ins/SetIteratorPrototype/next/this-not-object-throw-keys.js5
-rw-r--r--test/built-ins/SetIteratorPrototype/next/this-not-object-throw-prototype-iterator.js5
-rw-r--r--test/built-ins/SetIteratorPrototype/next/this-not-object-throw-values.js5
-rw-r--r--test/built-ins/SharedArrayBuffer/data-allocation-after-object-creation.js4
-rw-r--r--test/built-ins/SharedArrayBuffer/newtarget-prototype-is-not-object.js2
-rw-r--r--test/built-ins/SharedArrayBuffer/prototype-from-newtarget.js2
-rw-r--r--test/built-ins/SharedArrayBuffer/prototype/slice/end-default-if-undefined.js3
-rw-r--r--test/built-ins/SharedArrayBuffer/prototype/slice/end-exceeds-length.js9
-rw-r--r--test/built-ins/SharedArrayBuffer/prototype/slice/negative-end.js9
-rw-r--r--test/built-ins/SharedArrayBuffer/prototype/slice/negative-start.js9
-rw-r--r--test/built-ins/SharedArrayBuffer/prototype/slice/nonconstructor.js4
-rw-r--r--test/built-ins/SharedArrayBuffer/prototype/slice/species-constructor-is-not-object.js4
-rw-r--r--test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-constructor.js4
-rw-r--r--test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-object.js4
-rw-r--r--test/built-ins/SharedArrayBuffer/prototype/slice/start-default-if-undefined.js3
-rw-r--r--test/built-ins/SharedArrayBuffer/prototype/slice/start-exceeds-end.js3
-rw-r--r--test/built-ins/String/15.5.5.5.2-1-1.js6
-rw-r--r--test/built-ins/String/15.5.5.5.2-1-2.js4
-rw-r--r--test/built-ins/String/15.5.5.5.2-3-1.js4
-rw-r--r--test/built-ins/String/15.5.5.5.2-3-2.js4
-rw-r--r--test/built-ins/String/15.5.5.5.2-3-3.js2
-rw-r--r--test/built-ins/String/15.5.5.5.2-3-4.js2
-rw-r--r--test/built-ins/String/15.5.5.5.2-3-5.js4
-rw-r--r--test/built-ins/String/15.5.5.5.2-3-6.js2
-rw-r--r--test/built-ins/String/15.5.5.5.2-3-7.js2
-rw-r--r--test/built-ins/String/15.5.5.5.2-3-8.js4
-rw-r--r--test/built-ins/String/15.5.5.5.2-7-1.js2
-rw-r--r--test/built-ins/String/15.5.5.5.2-7-2.js2
-rw-r--r--test/built-ins/String/15.5.5.5.2-7-3.js2
-rw-r--r--test/built-ins/String/15.5.5.5.2-7-4.js2
-rw-r--r--test/built-ins/String/S15.5.1.1_A1_T1.js6
-rw-r--r--test/built-ins/String/S15.5.1.1_A1_T10.js8
-rw-r--r--test/built-ins/String/S15.5.1.1_A1_T11.js28
-rw-r--r--test/built-ins/String/S15.5.1.1_A1_T12.js16
-rw-r--r--test/built-ins/String/S15.5.1.1_A1_T13.js16
-rw-r--r--test/built-ins/String/S15.5.1.1_A1_T14.js8
-rw-r--r--test/built-ins/String/S15.5.1.1_A1_T15.js2
-rw-r--r--test/built-ins/String/S15.5.1.1_A1_T16.js16
-rw-r--r--test/built-ins/String/S15.5.1.1_A1_T17.js12
-rw-r--r--test/built-ins/String/S15.5.1.1_A1_T18.js10
-rw-r--r--test/built-ins/String/S15.5.1.1_A1_T19.js6
-rw-r--r--test/built-ins/String/S15.5.1.1_A1_T2.js4
-rw-r--r--test/built-ins/String/S15.5.1.1_A1_T3.js4
-rw-r--r--test/built-ins/String/S15.5.1.1_A1_T4.js4
-rw-r--r--test/built-ins/String/S15.5.1.1_A1_T5.js4
-rw-r--r--test/built-ins/String/S15.5.1.1_A1_T6.js4
-rw-r--r--test/built-ins/String/S15.5.1.1_A1_T7.js6
-rw-r--r--test/built-ins/String/S15.5.1.1_A1_T8.js10
-rw-r--r--test/built-ins/String/S15.5.1.1_A1_T9.js8
-rw-r--r--test/built-ins/String/S15.5.1.1_A2_T1.js4
-rw-r--r--test/built-ins/String/S15.5.2.1_A1_T1.js8
-rw-r--r--test/built-ins/String/S15.5.2.1_A1_T10.js12
-rw-r--r--test/built-ins/String/S15.5.2.1_A1_T11.js18
-rw-r--r--test/built-ins/String/S15.5.2.1_A1_T12.js14
-rw-r--r--test/built-ins/String/S15.5.2.1_A1_T13.js16
-rw-r--r--test/built-ins/String/S15.5.2.1_A1_T16.js40
-rw-r--r--test/built-ins/String/S15.5.2.1_A1_T17.js24
-rw-r--r--test/built-ins/String/S15.5.2.1_A1_T18.js16
-rw-r--r--test/built-ins/String/S15.5.2.1_A1_T19.js10
-rw-r--r--test/built-ins/String/S15.5.2.1_A1_T2.js12
-rw-r--r--test/built-ins/String/S15.5.2.1_A1_T3.js12
-rw-r--r--test/built-ins/String/S15.5.2.1_A1_T4.js8
-rw-r--r--test/built-ins/String/S15.5.2.1_A1_T5.js8
-rw-r--r--test/built-ins/String/S15.5.2.1_A1_T6.js8
-rw-r--r--test/built-ins/String/S15.5.2.1_A1_T7.js12
-rw-r--r--test/built-ins/String/S15.5.2.1_A1_T8.js14
-rw-r--r--test/built-ins/String/S15.5.2.1_A1_T9.js12
-rw-r--r--test/built-ins/String/S15.5.2.1_A2_T2.js8
-rw-r--r--test/built-ins/String/S15.5.2.1_A3.js4
-rw-r--r--test/built-ins/String/S15.5.3_A1.js2
-rw-r--r--test/built-ins/String/S15.5.3_A2_T1.js2
-rw-r--r--test/built-ins/String/S15.5.3_A2_T2.js2
-rw-r--r--test/built-ins/String/S15.5.5.1_A1.js4
-rw-r--r--test/built-ins/String/S15.5.5.1_A2.js10
-rw-r--r--test/built-ins/String/S15.5.5.1_A3.js4
-rw-r--r--test/built-ins/String/S15.5.5.1_A4_T1.js14
-rw-r--r--test/built-ins/String/S15.5.5.1_A4_T2.js6
-rw-r--r--test/built-ins/String/S15.5.5.1_A5.js16
-rw-r--r--test/built-ins/String/S15.5.5_A1_T1.js2
-rw-r--r--test/built-ins/String/S15.5.5_A1_T2.js2
-rw-r--r--test/built-ins/String/S15.5.5_A2_T1.js2
-rw-r--r--test/built-ins/String/S15.5.5_A2_T2.js2
-rw-r--r--test/built-ins/String/S8.12.8_A1.js18
-rw-r--r--test/built-ins/String/S8.12.8_A2.js17
-rw-r--r--test/built-ins/String/S9.1_A1_T2.js18
-rw-r--r--test/built-ins/String/S9.8.1_A3.js4
-rw-r--r--test/built-ins/String/S9.8_A2_T1.js2
-rw-r--r--test/built-ins/String/S9.8_A3_T1.js2
-rw-r--r--test/built-ins/String/S9.8_A4_T1.js2
-rw-r--r--test/built-ins/String/S9.8_A5_T1.js56
-rw-r--r--test/built-ins/String/fromCharCode/S15.5.3.2_A1.js6
-rw-r--r--test/built-ins/String/fromCharCode/S15.5.3.2_A2.js2
-rw-r--r--test/built-ins/String/fromCharCode/S15.5.3.2_A3_T1.js4
-rw-r--r--test/built-ins/String/fromCharCode/S15.5.3.2_A3_T2.js4
-rw-r--r--test/built-ins/String/fromCharCode/S15.5.3.2_A4.js4
-rw-r--r--test/built-ins/String/fromCharCode/S9.7_A1.js12
-rw-r--r--test/built-ins/String/fromCharCode/S9.7_A3.1_T4.js76
-rw-r--r--test/built-ins/String/fromCodePoint/to-number-conversions.js6
-rw-r--r--test/built-ins/String/length.js2
-rw-r--r--test/built-ins/String/prototype/S15.5.3.1_A1.js2
-rw-r--r--test/built-ins/String/prototype/S15.5.3.1_A2.js12
-rw-r--r--test/built-ins/String/prototype/S15.5.3.1_A3.js4
-rw-r--r--test/built-ins/String/prototype/S15.5.3.1_A4.js8
-rw-r--r--test/built-ins/String/prototype/S15.5.4_A1.js4
-rw-r--r--test/built-ins/String/prototype/S15.5.4_A2.js4
-rw-r--r--test/built-ins/String/prototype/S15.5.4_A3.js6
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A1.1.js12
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A10.js8
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A11.js4
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T1.js4
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T10.js12
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T2.js4
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T4.js2
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js8
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T6.js2
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T7.js2
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T8.js2
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T9.js4
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A2.js4
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A3.js2
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T1.js10
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T2.js10
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T3.js10
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js12
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A6.js2
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A7.js2
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A8.js12
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A9.js4
-rw-r--r--test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1.1.js12
-rw-r--r--test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A10.js8
-rw-r--r--test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A11.js4
-rw-r--r--test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T1.js4
-rw-r--r--test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T10.js12
-rw-r--r--test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T2.js12
-rw-r--r--test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T4.js2
-rw-r--r--test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T5.js8
-rw-r--r--test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T6.js2
-rw-r--r--test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T7.js2
-rw-r--r--test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T8.js2
-rw-r--r--test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T9.js4
-rw-r--r--test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A2.js2
-rw-r--r--test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A4.js12
-rw-r--r--test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A6.js2
-rw-r--r--test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A7.js2
-rw-r--r--test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A8.js12
-rw-r--r--test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A9.js4
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A10.js8
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A11.js4
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A1_T1.js4
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A1_T10.js33
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A1_T2.js4
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A1_T4.js2
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A1_T5.js8
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A1_T6.js2
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A1_T7.js2
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A1_T8.js2
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A1_T9.js4
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A2.js18
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A3.js2
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A4_T1.js10
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js18
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A6.js2
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A7.js2
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A8.js10
-rw-r--r--test/built-ins/String/prototype/concat/S15.5.4.6_A9.js4
-rw-r--r--test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T1.js2
-rw-r--r--test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T2.js12
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A10.js8
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A11.js4
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T1.js2
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T10.js18
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T12.js6
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T2.js8
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T4.js2
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T5.js8
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T6.js2
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T7.js2
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T8.js6
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T9.js8
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T1.js4
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T2.js4
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T3.js4
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T4.js4
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T1.js4
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T2.js4
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T3.js8
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T1.js28
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T2.js31
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T3.js19
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T4.js30
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T5.js31
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T1.js10
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T2.js10
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T3.js10
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T4.js10
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T5.js10
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T6.js10
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A6.js2
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A7.js2
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A8.js10
-rw-r--r--test/built-ins/String/prototype/indexOf/S15.5.4.7_A9.js4
-rw-r--r--test/built-ins/String/prototype/indexOf/position-tointeger-bigint.js10
-rw-r--r--test/built-ins/String/prototype/indexOf/searchstring-tostring-bigint.js10
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A10.js8
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A11.js4
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T1.js2
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T10.js18
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T12.js6
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T2.js8
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T4.js2
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T5.js8
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T6.js2
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T7.js2
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T8.js6
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js8
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T1.js28
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T2.js31
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T3.js17
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T4.js30
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T5.js31
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A6.js2
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A8.js12
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A9.js4
-rw-r--r--test/built-ins/String/prototype/localeCompare/15.5.4.9_3.js14
-rw-r--r--test/built-ins/String/prototype/localeCompare/15.5.4.9_CE.js116
-rw-r--r--test/built-ins/String/prototype/localeCompare/S15.5.4.9_A10.js8
-rw-r--r--test/built-ins/String/prototype/localeCompare/S15.5.4.9_A11.js4
-rw-r--r--test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T1.js20
-rw-r--r--test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T2.js4
-rw-r--r--test/built-ins/String/prototype/localeCompare/S15.5.4.9_A6.js2
-rw-r--r--test/built-ins/String/prototype/localeCompare/S15.5.4.9_A7.js2
-rw-r--r--test/built-ins/String/prototype/localeCompare/S15.5.4.9_A8.js10
-rw-r--r--test/built-ins/String/prototype/localeCompare/S15.5.4.9_A9.js4
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A1_T10.js12
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A1_T11.js22
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A1_T12.js25
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A1_T13.js15
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A1_T14.js2
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A1_T3.js11
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A1_T4.js14
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A1_T5.js8
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A1_T6.js14
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A1_T7.js14
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A1_T8.js18
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A1_T9.js20
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A2_T1.js16
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A2_T10.js16
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A2_T11.js18
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A2_T12.js10
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A2_T13.js10
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A2_T14.js10
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A2_T15.js10
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A2_T16.js12
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A2_T17.js16
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A2_T18.js16
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A2_T2.js12
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A2_T3.js12
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A2_T4.js12
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A2_T5.js12
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A2_T6.js24
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A2_T7.js10
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A2_T8.js16
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A2_T9.js16
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A6.js2
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A7.js2
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A8.js10
-rw-r--r--test/built-ins/String/prototype/match/S15.5.4.10_A9.js4
-rw-r--r--test/built-ins/String/prototype/match/length.js4
-rw-r--r--test/built-ins/String/prototype/match/this-val-bool.js8
-rw-r--r--test/built-ins/String/prototype/match/this-val-obj.js2
-rw-r--r--test/built-ins/String/prototype/normalize/return-normalized-string-from-coerced-form.js8
-rw-r--r--test/built-ins/String/prototype/padEnd/exception-fill-string-symbol.js4
-rw-r--r--test/built-ins/String/prototype/padEnd/exception-not-object-coercible.js18
-rw-r--r--test/built-ins/String/prototype/padEnd/exception-symbol.js4
-rw-r--r--test/built-ins/String/prototype/padEnd/function-name.js6
-rw-r--r--test/built-ins/String/prototype/padEnd/observable-operations.js16
-rw-r--r--test/built-ins/String/prototype/padStart/exception-fill-string-symbol.js4
-rw-r--r--test/built-ins/String/prototype/padStart/exception-not-object-coercible.js18
-rw-r--r--test/built-ins/String/prototype/padStart/exception-symbol.js4
-rw-r--r--test/built-ins/String/prototype/padStart/function-name.js6
-rw-r--r--test/built-ins/String/prototype/padStart/observable-operations.js16
-rw-r--r--test/built-ins/String/prototype/replace/15.5.4.11-1.js16
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A10.js8
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A11.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A12.js2
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T1.js2
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T10.js16
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js28
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js31
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js25
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T14.js2
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T15.js10
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js10
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T17.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T2.js8
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js12
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js8
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T6.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T7.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T8.js8
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js12
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A2_T1.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A2_T10.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A2_T2.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A2_T3.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A2_T4.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A2_T5.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A2_T6.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A2_T7.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A2_T9.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A3_T1.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A3_T2.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A3_T3.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A4_T1.js8
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A4_T2.js8
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A4_T3.js8
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A4_T4.js8
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A5_T1.js4
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A6.js2
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A7.js2
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A8.js10
-rw-r--r--test/built-ins/String/prototype/replace/S15.5.4.11_A9.js4
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A10.js8
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A11.js4
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A1_T1.js2
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A1_T10.js12
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js22
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A1_T12.js25
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A1_T13.js13
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A1_T14.js2
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A1_T2.js8
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A1_T4.js4
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A1_T5.js8
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A1_T6.js2
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A1_T7.js2
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A1_T8.js6
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A1_T9.js8
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A2_T1.js4
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A2_T2.js4
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A2_T3.js4
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A2_T4.js4
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A2_T5.js4
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A2_T6.js4
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A2_T7.js4
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A3_T1.js4
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A3_T2.js4
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A6.js2
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A7.js2
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A8.js10
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A9.js4
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A10.js8
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A11.js4
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A1_T1.js2
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A1_T10.js16
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A1_T11.js28
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A1_T12.js31
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A1_T13.js25
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A1_T14.js4
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A1_T15.js4
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A1_T2.js8
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A1_T4.js8
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A1_T5.js16
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A1_T6.js4
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A1_T7.js4
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A1_T8.js8
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A1_T9.js8
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A2_T1.js2
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A2_T2.js2
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A2_T3.js4
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A2_T4.js2
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A2_T5.js2
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A2_T6.js4
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A2_T7.js2
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A2_T8.js4
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A2_T9.js2
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A3_T1.js4
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A3_T2.js4
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A3_T3.js10
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A3_T4.js16
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A6.js2
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A8.js10
-rw-r--r--test/built-ins/String/prototype/slice/S15.5.4.13_A9.js4
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A10.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A11.js4
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T1.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T10.js20
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js28
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js31
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js25
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js30
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js31
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T17.js16
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T18.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T2.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js83
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T4.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T5.js14
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T6.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T7.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T8.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A1_T9.js14
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T1.js14
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T10.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T11.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T12.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T13.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T14.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T15.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T16.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T17.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T18.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T19.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T2.js14
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T20.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T21.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T22.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T23.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T24.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T25.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T26.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T27.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T28.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T29.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T30.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T31.js14
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T32.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js14
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T34.js14
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T35.js14
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T36.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T38.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T39.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T4.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T40.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T41.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T43.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T5.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T6.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T7.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T8.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T9.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T1.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T10.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T11.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T2.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T3.js14
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T4.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T5.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T6.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T7.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T8.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A3_T9.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T1.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T10.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T11.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T12.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T13.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T14.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T15.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T16.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T17.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T18.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T19.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T2.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T20.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T21.js6
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T22.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T23.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T24.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T25.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T3.js8
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T4.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T5.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T6.js12
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T7.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T8.js4
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A4_T9.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A6.js2
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A7.js2
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A8.js10
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A9.js4
-rw-r--r--test/built-ins/String/prototype/startsWith/return-true-if-searchstring-is-empty.js2
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A10.js8
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A11.js4
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A1_T1.js2
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A1_T10.js16
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A1_T11.js28
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A1_T12.js31
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A1_T13.js25
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A1_T14.js4
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A1_T15.js4
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A1_T2.js8
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A1_T4.js8
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A1_T5.js10
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A1_T6.js4
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A1_T7.js4
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A1_T8.js8
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A1_T9.js8
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A2_T1.js2
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A2_T10.js4
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A2_T2.js2
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A2_T3.js4
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A2_T4.js2
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A2_T5.js2
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A2_T6.js4
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A2_T7.js2
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A2_T8.js4
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A2_T9.js2
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A3_T1.js6
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A3_T10.js12
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A3_T11.js4
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A3_T2.js6
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A3_T3.js4
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A3_T4.js4
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A3_T5.js6
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A3_T6.js4
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A3_T7.js12
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A3_T8.js4
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A3_T9.js4
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A6.js2
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A7.js2
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A8.js10
-rw-r--r--test/built-ins/String/prototype/substring/S15.5.4.15_A9.js4
-rw-r--r--test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A10.js8
-rw-r--r--test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A11.js4
-rw-r--r--test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T1.js2
-rw-r--r--test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T10.js10
-rw-r--r--test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T11.js12
-rw-r--r--test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T12.js15
-rw-r--r--test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T13.js15
-rw-r--r--test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T14.js2
-rw-r--r--test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T2.js2
-rw-r--r--test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T3.js2
-rw-r--r--test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T4.js12
-rw-r--r--test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T5.js8
-rw-r--r--test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T6.js2
-rw-r--r--test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T7.js4
-rw-r--r--test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T8.js4
-rw-r--r--test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T9.js18
-rw-r--r--test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A2_T1.js4
-rw-r--r--test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A6.js2
-rw-r--r--test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A7.js2
-rw-r--r--test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A8.js10
-rw-r--r--test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A9.js4
-rw-r--r--test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A10.js8
-rw-r--r--test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A11.js4
-rw-r--r--test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T1.js2
-rw-r--r--test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T10.js10
-rw-r--r--test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T11.js10
-rw-r--r--test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T12.js15
-rw-r--r--test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T13.js15
-rw-r--r--test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T14.js2
-rw-r--r--test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T2.js2
-rw-r--r--test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T3.js2
-rw-r--r--test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T4.js12
-rw-r--r--test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T5.js8
-rw-r--r--test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T6.js2
-rw-r--r--test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T7.js4
-rw-r--r--test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T8.js4
-rw-r--r--test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T9.js18
-rw-r--r--test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A2_T1.js6
-rw-r--r--test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A6.js2
-rw-r--r--test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A7.js2
-rw-r--r--test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A8.js10
-rw-r--r--test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A9.js4
-rw-r--r--test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A10.js8
-rw-r--r--test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A11.js4
-rw-r--r--test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T1.js2
-rw-r--r--test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T10.js10
-rw-r--r--test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T11.js12
-rw-r--r--test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T12.js15
-rw-r--r--test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T13.js15
-rw-r--r--test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T14.js2
-rw-r--r--test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T2.js2
-rw-r--r--test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T3.js2
-rw-r--r--test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T4.js12
-rw-r--r--test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T5.js8
-rw-r--r--test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T6.js2
-rw-r--r--test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T7.js4
-rw-r--r--test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T8.js4
-rw-r--r--test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T9.js18
-rw-r--r--test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A2_T1.js6
-rw-r--r--test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A6.js2
-rw-r--r--test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A7.js2
-rw-r--r--test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A8.js10
-rw-r--r--test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A9.js4
-rw-r--r--test/built-ins/String/prototype/toString/S15.5.4.2_A1_T1.js4
-rw-r--r--test/built-ins/String/prototype/toString/S15.5.4.2_A1_T2.js4
-rw-r--r--test/built-ins/String/prototype/toString/S15.5.4.2_A1_T3.js2
-rw-r--r--test/built-ins/String/prototype/toString/S15.5.4.2_A1_T4.js4
-rw-r--r--test/built-ins/String/prototype/toString/S15.5.4.2_A2_T1.js4
-rw-r--r--test/built-ins/String/prototype/toString/S15.5.4.2_A2_T2.js8
-rw-r--r--test/built-ins/String/prototype/toString/S15.5.4.2_A3_T1.js8
-rw-r--r--test/built-ins/String/prototype/toString/S15.5.4.2_A4_T1.js12
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A10.js8
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A11.js4
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T1.js2
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T10.js10
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js12
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T12.js15
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T13.js15
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T14.js2
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T2.js2
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T3.js2
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T4.js12
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js8
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T6.js2
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T7.js4
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T8.js4
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T9.js18
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A2_T1.js6
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A6.js2
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A7.js2
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A8.js10
-rw-r--r--test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A9.js4
-rw-r--r--test/built-ins/String/prototype/trim/15.5.4.20-0-1.js2
-rw-r--r--test/built-ins/String/prototype/trim/15.5.4.20-1-1.js2
-rw-r--r--test/built-ins/String/prototype/trim/15.5.4.20-1-2.js2
-rw-r--r--test/built-ins/String/prototype/trim/15.5.4.20-1-8.js2
-rw-r--r--test/built-ins/String/prototype/trim/15.5.4.20-1-9.js2
-rw-r--r--test/built-ins/String/prototype/trim/15.5.4.20-2-38.js10
-rw-r--r--test/built-ins/String/prototype/trim/15.5.4.20-2-39.js10
-rw-r--r--test/built-ins/String/prototype/trim/15.5.4.20-2-40.js24
-rw-r--r--test/built-ins/String/prototype/trim/15.5.4.20-2-41.js24
-rw-r--r--test/built-ins/String/prototype/trim/15.5.4.20-2-42.js26
-rw-r--r--test/built-ins/String/prototype/trim/15.5.4.20-2-43.js30
-rw-r--r--test/built-ins/String/prototype/trim/15.5.4.20-2-44.js2
-rw-r--r--test/built-ins/String/prototype/trim/15.5.4.20-2-45.js4
-rw-r--r--test/built-ins/String/prototype/trim/15.5.4.20-2-46.js4
-rw-r--r--test/built-ins/String/prototype/trim/15.5.4.20-2-49.js2
-rw-r--r--test/built-ins/String/prototype/trim/15.5.4.20-2-50.js2
-rw-r--r--test/built-ins/String/prototype/trim/15.5.4.20-2-51.js4
-rw-r--r--test/built-ins/String/prototype/trim/15.5.4.20-3-1.js2
-rw-r--r--test/built-ins/String/prototype/trim/15.5.4.20-3-5.js2
-rw-r--r--test/built-ins/String/prototype/trim/15.5.4.20-4-1.js2
-rw-r--r--test/built-ins/String/prototype/trim/15.5.4.20-4-59.js2
-rw-r--r--test/built-ins/String/prototype/trimEnd/this-value-number.js1
-rw-r--r--test/built-ins/String/prototype/trimEnd/this-value-object-cannot-convert-to-primitive-err.js4
-rw-r--r--test/built-ins/String/prototype/trimEnd/this-value-object-toprimitive-meth-priority.js12
-rw-r--r--test/built-ins/String/prototype/trimEnd/this-value-object-tostring-meth-priority.js10
-rw-r--r--test/built-ins/String/prototype/trimEnd/this-value-object-valueof-meth-priority.js4
-rw-r--r--test/built-ins/String/prototype/trimEnd/this-value-symbol-typeerror.js4
-rw-r--r--test/built-ins/String/prototype/trimStart/this-value-number.js1
-rw-r--r--test/built-ins/String/prototype/trimStart/this-value-object-cannot-convert-to-primitive-err.js4
-rw-r--r--test/built-ins/String/prototype/trimStart/this-value-object-toprimitive-meth-priority.js12
-rw-r--r--test/built-ins/String/prototype/trimStart/this-value-object-tostring-meth-priority.js10
-rw-r--r--test/built-ins/String/prototype/trimStart/this-value-object-valueof-meth-priority.js4
-rw-r--r--test/built-ins/String/prototype/trimStart/this-value-symbol-typeerror.js4
-rw-r--r--test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T1.js4
-rw-r--r--test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T2.js4
-rw-r--r--test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T3.js2
-rw-r--r--test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T4.js4
-rw-r--r--test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T1.js4
-rw-r--r--test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T2.js8
-rw-r--r--test/built-ins/String/raw/return-the-string-value-from-template.js2
-rw-r--r--test/built-ins/String/raw/special-characters.js5
-rw-r--r--test/built-ins/String/raw/template-substitutions-are-appended-on-same-index.js2
-rw-r--r--test/built-ins/String/raw/zero-literal-segments.js2
-rw-r--r--test/built-ins/StringIteratorPrototype/Symbol.toStringTag.js2
-rw-r--r--test/built-ins/StringIteratorPrototype/ancestry.js2
-rw-r--r--test/built-ins/StringIteratorPrototype/next/next-missing-internal-slots.js2
-rw-r--r--test/built-ins/Symbol/constructor.js12
-rw-r--r--test/built-ins/Symbol/prototype/intrinsic.js6
-rw-r--r--test/built-ins/Symbol/species/builtin-getter-name.js5
-rw-r--r--test/built-ins/Symbol/species/subclassing.js4
-rw-r--r--test/built-ins/ThrowTypeError/distinct-cross-realm.js5
-rw-r--r--test/built-ins/ThrowTypeError/extensible.js5
-rw-r--r--test/built-ins/ThrowTypeError/forbidden-arguments.js5
-rw-r--r--test/built-ins/ThrowTypeError/forbidden-caller.js5
-rw-r--r--test/built-ins/ThrowTypeError/frozen.js5
-rw-r--r--test/built-ins/ThrowTypeError/is-function.js5
-rw-r--r--test/built-ins/ThrowTypeError/length.js5
-rw-r--r--test/built-ins/ThrowTypeError/name.js5
-rw-r--r--test/built-ins/ThrowTypeError/prototype.js5
-rw-r--r--test/built-ins/ThrowTypeError/throws-type-error.js5
-rw-r--r--test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js5
-rw-r--r--test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js5
-rw-r--r--test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js5
-rw-r--r--test/built-ins/TypedArray/from/arylk-to-length-error.js4
-rw-r--r--test/built-ins/TypedArray/from/mapfn-is-not-callable.js2
-rw-r--r--test/built-ins/TypedArray/from/this-is-not-constructor.js4
-rw-r--r--test/built-ins/TypedArray/of/invoked-as-func.js3
-rw-r--r--test/built-ins/TypedArray/of/this-is-not-constructor.js4
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.js18
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/coerced-values-start.js24
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/coerced-values-target.js24
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/negative-end.js24
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-end.js30
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-start.js24
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-target.js12
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/negative-start.js18
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/negative-target.js9
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-end.js12
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js21
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-and-start.js12
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-start-and-end.js15
-rw-r--r--test/built-ins/TypedArray/prototype/copyWithin/undefined-end.js6
-rw-r--r--test/built-ins/TypedArray/prototype/every/callbackfn-this.js4
-rw-r--r--test/built-ins/TypedArray/prototype/every/returns-false-if-any-cb-returns-false.js3
-rw-r--r--test/built-ins/TypedArray/prototype/every/returns-true-if-every-cb-returns-true.js9
-rw-r--r--test/built-ins/TypedArray/prototype/every/values-are-not-cached.js2
-rw-r--r--test/built-ins/TypedArray/prototype/fill/fill-values-conversion-once.js7
-rw-r--r--test/built-ins/TypedArray/prototype/fill/fill-values-non-numeric.js2
-rw-r--r--test/built-ins/TypedArray/prototype/fill/fill-values.js3
-rw-r--r--test/built-ins/TypedArray/prototype/filter/callbackfn-this.js4
-rw-r--r--test/built-ins/TypedArray/prototype/filter/result-does-not-share-buffer.js8
-rw-r--r--test/built-ins/TypedArray/prototype/filter/result-empty-callbackfn-returns-false.js3
-rw-r--r--test/built-ins/TypedArray/prototype/filter/result-full-callbackfn-returns-true.js13
-rw-r--r--test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor-returns-throws.js4
-rw-r--r--test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor.js4
-rw-r--r--test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-abrupt.js4
-rw-r--r--test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-invocation.js4
-rw-r--r--test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length-throws.js4
-rw-r--r--test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length.js8
-rw-r--r--test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor.js4
-rw-r--r--test/built-ins/TypedArray/prototype/filter/values-are-not-cached.js2
-rw-r--r--test/built-ins/TypedArray/prototype/filter/values-are-set.js4
-rw-r--r--test/built-ins/TypedArray/prototype/find/get-length-ignores-length-prop.js4
-rw-r--r--test/built-ins/TypedArray/prototype/find/predicate-call-changes-value.js6
-rw-r--r--test/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.js20
-rw-r--r--test/built-ins/TypedArray/prototype/find/return-undefined-if-predicate-returns-false-value.js24
-rw-r--r--test/built-ins/TypedArray/prototype/findIndex/get-length-ignores-length-prop.js4
-rw-r--r--test/built-ins/TypedArray/prototype/findIndex/predicate-call-changes-value.js8
-rw-r--r--test/built-ins/TypedArray/prototype/findIndex/predicate-call-this-non-strict.js2
-rw-r--r--test/built-ins/TypedArray/prototype/findIndex/predicate-is-not-callable-throws.js1
-rw-r--r--test/built-ins/TypedArray/prototype/findIndex/return-index-predicate-result-is-true.js20
-rw-r--r--test/built-ins/TypedArray/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js24
-rw-r--r--test/built-ins/TypedArray/prototype/forEach/arraylength-internal.js5
-rw-r--r--test/built-ins/TypedArray/prototype/forEach/callbackfn-this.js4
-rw-r--r--test/built-ins/TypedArray/prototype/forEach/values-are-not-cached.js2
-rw-r--r--test/built-ins/TypedArray/prototype/includes/get-length-uses-internal-arraylength.js12
-rw-r--r--test/built-ins/TypedArray/prototype/indexOf/get-length-uses-internal-arraylength.js12
-rw-r--r--test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-simple-value.js13
-rw-r--r--test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-value.js13
-rw-r--r--test/built-ins/TypedArray/prototype/lastIndexOf/get-length-uses-internal-arraylength.js12
-rw-r--r--test/built-ins/TypedArray/prototype/map/arraylength-internal.js5
-rw-r--r--test/built-ins/TypedArray/prototype/map/callbackfn-this.js4
-rw-r--r--test/built-ins/TypedArray/prototype/map/values-are-not-cached.js2
-rw-r--r--test/built-ins/TypedArray/prototype/reduce/callbackfn-this.js4
-rw-r--r--test/built-ins/TypedArray/prototype/reduce/values-are-not-cached.js2
-rw-r--r--test/built-ins/TypedArray/prototype/reduceRight/callbackfn-this.js4
-rw-r--r--test/built-ins/TypedArray/prototype/reduceRight/values-are-not-cached.js2
-rw-r--r--test/built-ins/TypedArray/prototype/set/array-arg-offset-tointeger.js12
-rw-r--r--test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-conversions.js2
-rw-r--r--test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-type-conversions.js4
-rw-r--r--test/built-ins/TypedArray/prototype/set/typedarray-arg-offset-tointeger.js12
-rw-r--r--test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length-throws.js2
-rw-r--r--test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length.js2
-rw-r--r--test/built-ins/TypedArray/prototype/slice/tointeger-end.js3
-rw-r--r--test/built-ins/TypedArray/prototype/slice/tointeger-start.js3
-rw-r--r--test/built-ins/TypedArray/prototype/some/callbackfn-this.js4
-rw-r--r--test/built-ins/TypedArray/prototype/some/returns-false-if-every-cb-returns-false.js3
-rw-r--r--test/built-ins/TypedArray/prototype/some/returns-true-if-any-cb-returns-true.js9
-rw-r--r--test/built-ins/TypedArray/prototype/some/this-is-not-typedarray-instance.js2
-rw-r--r--test/built-ins/TypedArray/prototype/some/values-are-not-cached.js2
-rw-r--r--test/built-ins/TypedArray/prototype/sort/return-same-instance.js4
-rw-r--r--test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-begin-symbol.js2
-rw-r--r--test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-begin.js4
-rw-r--r--test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-end.js4
-rw-r--r--test/built-ins/TypedArray/prototype/subarray/tointeger-begin.js3
-rw-r--r--test/built-ins/TypedArray/prototype/subarray/tointeger-end.js3
-rw-r--r--test/built-ins/TypedArrays/BigInt64Array/prototype/not-typedarray-object.js2
-rw-r--r--test/built-ins/TypedArrays/BigInt64Array/prototype/proto.js2
-rw-r--r--test/built-ins/TypedArrays/BigUint64Array/prototype/not-typedarray-object.js2
-rw-r--r--test/built-ins/TypedArrays/BigUint64Array/prototype/proto.js2
-rw-r--r--test/built-ins/TypedArrays/buffer-arg-byteoffset-to-number-detachbuffer.js7
-rw-r--r--test/built-ins/TypedArrays/buffer-arg-length-to-number-detachbuffer.js7
-rw-r--r--test/built-ins/TypedArrays/buffer-arg-typedarray-backed-by-sharedarraybuffer.js2
-rw-r--r--test/built-ins/TypedArrays/from/arylk-to-length-error.js4
-rw-r--r--test/built-ins/TypedArrays/from/nan-conversion.js8
-rw-r--r--test/built-ins/TypedArrays/from/new-instance-from-ordinary-object.js6
-rw-r--r--test/built-ins/TypedArrays/from/new-instance-from-sparse-array.js8
-rw-r--r--test/built-ins/TypedArrays/from/new-instance-from-zero.js8
-rw-r--r--test/built-ins/TypedArrays/from/this-is-not-constructor.js4
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation-consistent-nan.js4
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation.js4
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/desc-value-throws.js4
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer.js4
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-canonical-index.js2
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-numeric-index.js4
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-new-key.js4
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-redefine-key.js4
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/set-value.js8
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/this-is-not-extensible.js8
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/tonumber-value-detached-buffer.js24
-rw-r--r--test/built-ins/TypedArrays/internals/Get/key-is-not-canonical-index.js4
-rw-r--r--test/built-ins/TypedArrays/internals/Get/key-is-not-numeric-index.js4
-rw-r--r--test/built-ins/TypedArrays/internals/Get/key-is-symbol.js4
-rw-r--r--test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-not-number.js4
-rw-r--r--test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-symbol.js4
-rw-r--r--test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-canonical-index.js4
-rw-r--r--test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-numeric-index.js4
-rw-r--r--test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-symbol.js4
-rw-r--r--test/built-ins/TypedArrays/internals/HasProperty/abrupt-from-ordinary-has-parent-hasproperty.js4
-rw-r--r--test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-not-number.js4
-rw-r--r--test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-symbol.js4
-rw-r--r--test/built-ins/TypedArrays/internals/HasProperty/infinity-with-detached-buffer.js2
-rw-r--r--test/built-ins/TypedArrays/internals/HasProperty/key-is-not-canonical-index.js4
-rw-r--r--test/built-ins/TypedArrays/internals/HasProperty/key-is-not-numeric-index.js4
-rw-r--r--test/built-ins/TypedArrays/internals/HasProperty/key-is-symbol.js4
-rw-r--r--test/built-ins/TypedArrays/internals/Set/tonumber-value-detached-buffer.js18
-rw-r--r--test/built-ins/TypedArrays/object-arg-as-generator-iterable-returns.js5
-rw-r--r--test/built-ins/TypedArrays/object-arg-iterating-throws.js2
-rw-r--r--test/built-ins/TypedArrays/object-arg-iterator-not-callable-throws.js2
-rw-r--r--test/built-ins/TypedArrays/object-arg-iterator-throws.js2
-rw-r--r--test/built-ins/TypedArrays/of/argument-number-value-throws.js1
-rw-r--r--test/built-ins/TypedArrays/of/inherited.js2
-rw-r--r--test/built-ins/TypedArrays/of/invoked-as-func.js3
-rw-r--r--test/built-ins/TypedArrays/of/nan-conversion.js6
-rw-r--r--test/built-ins/TypedArrays/of/new-instance-from-zero.js6
-rw-r--r--test/built-ins/TypedArrays/of/this-is-not-constructor.js4
-rw-r--r--test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-different-type.js54
-rw-r--r--test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-same-type.js44
-rw-r--r--test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-not-ctor-throws.js4
-rw-r--r--test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-prototype-throws.js4
-rw-r--r--test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-not-ctor.js4
-rw-r--r--test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-prototype-throws.js2
-rw-r--r--test/built-ins/WeakMap/iterable.js5
-rw-r--r--test/built-ins/WeakMap/iterator-close-after-set-failure.js9
-rw-r--r--test/built-ins/WeakMap/iterator-items-are-not-object-close-iterator.js5
-rw-r--r--test/built-ins/WeakMap/iterator-items-are-not-object.js4
-rw-r--r--test/built-ins/WeakMap/name.js4
-rw-r--r--test/built-ins/WeakMap/prototype/delete/delete-entry-initial-iterable.js4
-rw-r--r--test/built-ins/WeakMap/prototype/get/returns-undefined.js2
-rw-r--r--test/built-ins/WeakMap/prototype/get/returns-value.js4
-rw-r--r--test/built-ins/WeakMap/prototype/set/returns-this-when-ignoring-duplicate.js4
-rw-r--r--test/built-ins/WeakSet/iterator-close-after-add-failure.js9
-rw-r--r--test/built-ins/WeakSet/name.js4
-rw-r--r--test/built-ins/WeakSet/undefined-newtarget.js4
-rw-r--r--test/built-ins/decodeURI/S15.1.3.1_A1.10_T1.js7
-rw-r--r--test/built-ins/decodeURI/S15.1.3.1_A1.11_T1.js7
-rw-r--r--test/built-ins/decodeURI/S15.1.3.1_A1.11_T2.js7
-rw-r--r--test/built-ins/decodeURI/S15.1.3.1_A1.12_T1.js7
-rw-r--r--test/built-ins/decodeURI/S15.1.3.1_A1.12_T2.js7
-rw-r--r--test/built-ins/decodeURI/S15.1.3.1_A1.12_T3.js7
-rw-r--r--test/built-ins/decodeURI/S15.1.3.1_A1.1_T1.js8
-rw-r--r--test/built-ins/decodeURI/S15.1.3.1_A1.2_T1.js7
-rw-r--r--test/built-ins/decodeURI/S15.1.3.1_A1.2_T2.js7
-rw-r--r--test/built-ins/decodeURI/S15.1.3.1_A2.1_T1.js2
-rw-r--r--test/built-ins/decodeURI/S15.1.3.1_A2.2_T1.js52
-rw-r--r--test/built-ins/decodeURI/S15.1.3.1_A5.1.js2
-rw-r--r--test/built-ins/decodeURI/S15.1.3.1_A5.5.js2
-rw-r--r--test/built-ins/decodeURI/S15.1.3.1_A6_T1.js66
-rw-r--r--test/built-ins/decodeURIComponent/S15.1.3.2_A1.10_T1.js7
-rw-r--r--test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T1.js7
-rw-r--r--test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T2.js7
-rw-r--r--test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T1.js7
-rw-r--r--test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T2.js7
-rw-r--r--test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T3.js7
-rw-r--r--test/built-ins/decodeURIComponent/S15.1.3.2_A1.1_T1.js8
-rw-r--r--test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T1.js7
-rw-r--r--test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T2.js7
-rw-r--r--test/built-ins/decodeURIComponent/S15.1.3.2_A2.1_T1.js2
-rw-r--r--test/built-ins/decodeURIComponent/S15.1.3.2_A5.1.js2
-rw-r--r--test/built-ins/decodeURIComponent/S15.1.3.2_A5.5.js2
-rw-r--r--test/built-ins/decodeURIComponent/S15.1.3.2_A6_T1.js66
-rw-r--r--test/built-ins/encodeURI/S15.1.3.3_A2.1_T1.js56
-rw-r--r--test/built-ins/encodeURI/S15.1.3.3_A2.2_T1.js44
-rw-r--r--test/built-ins/encodeURI/S15.1.3.3_A5.1.js2
-rw-r--r--test/built-ins/encodeURI/S15.1.3.3_A5.5.js2
-rw-r--r--test/built-ins/encodeURI/S15.1.3.3_A6_T1.js66
-rw-r--r--test/built-ins/encodeURIComponent/S15.1.3.4_A2.1_T1.js46
-rw-r--r--test/built-ins/encodeURIComponent/S15.1.3.4_A2.2_T1.js44
-rw-r--r--test/built-ins/encodeURIComponent/S15.1.3.4_A5.1.js2
-rw-r--r--test/built-ins/encodeURIComponent/S15.1.3.4_A5.5.js2
-rw-r--r--test/built-ins/encodeURIComponent/S15.1.3.4_A6_T1.js66
-rw-r--r--test/built-ins/eval/length-enumerable.js2
-rw-r--r--test/built-ins/eval/prop-desc-enumerable.js2
-rw-r--r--test/built-ins/global/10.2.1.1.3-4-16-s.js2
-rw-r--r--test/built-ins/global/10.2.1.1.3-4-18-s.js2
-rw-r--r--test/built-ins/global/10.2.1.1.3-4-22-s.js12
-rw-r--r--test/built-ins/global/10.2.1.1.3-4-27-s.js12
-rw-r--r--test/built-ins/global/S10.2.3_A1.1_T1.js6
-rw-r--r--test/built-ins/global/S10.2.3_A1.1_T2.js18
-rw-r--r--test/built-ins/global/S10.2.3_A1.1_T3.js30
-rw-r--r--test/built-ins/global/S10.2.3_A1.1_T4.js2
-rw-r--r--test/built-ins/global/S10.2.3_A1.2_T1.js6
-rw-r--r--test/built-ins/global/S10.2.3_A1.2_T2.js18
-rw-r--r--test/built-ins/global/S10.2.3_A1.2_T3.js30
-rw-r--r--test/built-ins/global/S10.2.3_A1.2_T4.js2
-rw-r--r--test/built-ins/global/S10.2.3_A1.3_T1.js28
-rw-r--r--test/built-ins/global/S10.2.3_A1.3_T2.js92
-rw-r--r--test/built-ins/global/S10.2.3_A1.3_T3.js152
-rw-r--r--test/built-ins/global/S10.2.3_A1.3_T4.js12
-rw-r--r--test/built-ins/global/S10.2.3_A2.1_T1.js8
-rw-r--r--test/built-ins/global/S10.2.3_A2.1_T2.js20
-rw-r--r--test/built-ins/global/S10.2.3_A2.1_T3.js30
-rw-r--r--test/built-ins/global/S10.2.3_A2.1_T4.js2
-rw-r--r--test/built-ins/global/S10.2.3_A2.2_T1.js8
-rw-r--r--test/built-ins/global/S10.2.3_A2.2_T2.js20
-rw-r--r--test/built-ins/global/S10.2.3_A2.2_T3.js32
-rw-r--r--test/built-ins/global/S10.2.3_A2.2_T4.js2
-rw-r--r--test/built-ins/global/S10.2.3_A2.3_T1.js22
-rw-r--r--test/built-ins/global/S10.2.3_A2.3_T2.js46
-rw-r--r--test/built-ins/global/S10.2.3_A2.3_T3.js70
-rw-r--r--test/built-ins/global/S10.2.3_A2.3_T4.js14
-rw-r--r--test/built-ins/global/S15.1_A1_T1.js2
-rw-r--r--test/built-ins/global/S15.1_A1_T2.js2
-rw-r--r--test/built-ins/global/S15.1_A2_T1.js2
-rw-r--r--test/built-ins/parseFloat/S15.1.2.3_A1_T7.js66
-rw-r--r--test/built-ins/parseFloat/S15.1.2.3_A2_T10.js10
-rw-r--r--test/built-ins/parseFloat/S15.1.2.3_A7.1.js2
-rw-r--r--test/built-ins/parseFloat/S15.1.2.3_A7.5.js2
-rw-r--r--test/built-ins/parseFloat/tonumber-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js1
-rw-r--r--test/built-ins/parseInt/S15.1.2.2_A1_T7.js66
-rw-r--r--test/built-ins/parseInt/S15.1.2.2_A2_T10.js10
-rw-r--r--test/built-ins/parseInt/S15.1.2.2_A3.1_T7.js66
-rw-r--r--test/built-ins/parseInt/S15.1.2.2_A5.2_T1.js36
-rw-r--r--test/built-ins/parseInt/S15.1.2.2_A5.2_T2.js36
-rw-r--r--test/built-ins/parseInt/S15.1.2.2_A6.1_T1.js2
-rw-r--r--test/built-ins/parseInt/S15.1.2.2_A7.2_T2.js40
-rw-r--r--test/built-ins/parseInt/S15.1.2.2_A7.3_T1.js4
-rw-r--r--test/built-ins/parseInt/S15.1.2.2_A7.3_T2.js40
-rw-r--r--test/built-ins/parseInt/S15.1.2.2_A8.js4
-rw-r--r--test/built-ins/parseInt/S15.1.2.2_A9.1.js2
-rw-r--r--test/built-ins/parseInt/S15.1.2.2_A9.5.js2
-rw-r--r--test/built-ins/undefined/15.1.1.3-2.js2
-rw-r--r--test/built-ins/undefined/S15.1.1.3_A1.js6
-rw-r--r--test/built-ins/undefined/S15.1.1.3_A3_T2.js2
-rw-r--r--test/built-ins/undefined/S15.1.1.3_A4.js2
8371 files changed, 64939 insertions, 56826 deletions
diff --git a/test/built-ins/Array/15.4.5-1.js b/test/built-ins/Array/15.4.5-1.js
index d8a00abd4..6eb1ae127 100644
--- a/test/built-ins/Array/15.4.5-1.js
+++ b/test/built-ins/Array/15.4.5-1.js
@@ -6,7 +6,7 @@ es5id: 15.4.5-1
description: Array instances have [[Class]] set to 'Array'
---*/
- var a = [];
- var s = Object.prototype.toString.call(a);
+var a = [];
+var s = Object.prototype.toString.call(a);
assert.sameValue(s, '[object Array]', 's');
diff --git a/test/built-ins/Array/15.4.5.1-5-1.js b/test/built-ins/Array/15.4.5.1-5-1.js
index 945bf9ae4..d92747a32 100644
--- a/test/built-ins/Array/15.4.5.1-5-1.js
+++ b/test/built-ins/Array/15.4.5.1-5-1.js
@@ -8,7 +8,7 @@ description: >
element)
---*/
- var a =[];
- a[4294967295] = "not an array element" ;
+var a = [];
+a[4294967295] = "not an array element";
assert.sameValue(a[4294967295], "not an array element", 'a[4294967295]');
diff --git a/test/built-ins/Array/15.4.5.1-5-2.js b/test/built-ins/Array/15.4.5.1-5-2.js
index 924c48f47..27abd4c55 100644
--- a/test/built-ins/Array/15.4.5.1-5-2.js
+++ b/test/built-ins/Array/15.4.5.1-5-2.js
@@ -8,7 +8,7 @@ description: >
length of the array
---*/
- var a =[0,1,2];
- a[4294967295] = "not an array element" ;
+var a = [0, 1, 2];
+a[4294967295] = "not an array element";
assert.sameValue(a.length, 3, 'a.length');
diff --git a/test/built-ins/Array/S15.4.1_A1.1_T2.js b/test/built-ins/Array/S15.4.1_A1.1_T2.js
index 95deeeeae..cbee1450c 100644
--- a/test/built-ins/Array/S15.4.1_A1.1_T2.js
+++ b/test/built-ins/Array/S15.4.1_A1.1_T2.js
@@ -12,14 +12,14 @@ description: Array.prototype.toString = Object.prototype.toString
//CHECK#1
Array.prototype.toString = Object.prototype.toString;
-var x = Array();
+var x = Array();
if (x.toString() !== "[object " + "Array" + "]") {
$ERROR('#1: Array.prototype.toString = Object.prototype.toString; var x = Array(); x.toString() === "[object " + "Array" + "]". Actual: ' + (x.toString()));
}
//CHECK#2
Array.prototype.toString = Object.prototype.toString;
-var x = Array(0,1,2);
+var x = Array(0, 1, 2);
if (x.toString() !== "[object " + "Array" + "]") {
$ERROR('#2: Array.prototype.toString = Object.prototype.toString; var x = Array(0,1,2); x.toString() === "[object " + "Array" + "]". Actual: ' + (x.toString()));
}
diff --git a/test/built-ins/Array/S15.4.1_A1.2_T1.js b/test/built-ins/Array/S15.4.1_A1.2_T1.js
index 424f8eb9b..abdb5116d 100644
--- a/test/built-ins/Array/S15.4.1_A1.2_T1.js
+++ b/test/built-ins/Array/S15.4.1_A1.2_T1.js
@@ -8,14 +8,14 @@ description: Checking use Object.prototype.toString
---*/
//CHECK#1
-var x = Array();
+var x = Array();
x.getClass = Object.prototype.toString;
if (x.getClass() !== "[object " + "Array" + "]") {
$ERROR('#1: var x = Array(); x.getClass = Object.prototype.toString; x is Array object. Actual: ' + (x.getClass()));
}
//CHECK#2
-var x = Array(0,1,2);
+var x = Array(0, 1, 2);
x.getClass = Object.prototype.toString;
if (x.getClass() !== "[object " + "Array" + "]") {
$ERROR('#2: var x = Array(0,1,2); x.getClass = Object.prototype.toString; x is Array object. Actual: ' + (x.getClass()));
diff --git a/test/built-ins/Array/S15.4.1_A2.1_T1.js b/test/built-ins/Array/S15.4.1_A2.1_T1.js
index 89b2934f6..0196ec039 100644
--- a/test/built-ins/Array/S15.4.1_A2.1_T1.js
+++ b/test/built-ins/Array/S15.4.1_A2.1_T1.js
@@ -15,8 +15,8 @@ if (Array().length !== 0) {
}
//CHECK#2
-if (Array(0,1,0,1).length !== 4) {
- $ERROR('#2: (Array(0,1,0,1).length === 4. Actual: ' + (Array(0,1,0,1).length));
+if (Array(0, 1, 0, 1).length !== 4) {
+ $ERROR('#2: (Array(0,1,0,1).length === 4. Actual: ' + (Array(0, 1, 0, 1).length));
}
//CHECK#3
diff --git a/test/built-ins/Array/S15.4.1_A2.2_T1.js b/test/built-ins/Array/S15.4.1_A2.2_T1.js
index 971ce382c..92f2c1d91 100644
--- a/test/built-ins/Array/S15.4.1_A2.2_T1.js
+++ b/test/built-ins/Array/S15.4.1_A2.2_T1.js
@@ -14,16 +14,16 @@ description: Checking correct work this algorithm
//CHECK#
var x = Array(
-0,1,2,3,4,5,6,7,8,9,
-10,11,12,13,14,15,16,17,18,19,
-20,21,22,23,24,25,26,27,28,29,
-30,31,32,33,34,35,36,37,38,39,
-40,41,42,43,44,45,46,47,48,49,
-50,51,52,53,54,55,56,57,58,59,
-60,61,62,63,64,65,66,67,68,69,
-70,71,72,73,74,75,76,77,78,79,
-80,81,82,83,84,85,86,87,88,89,
-90,91,92,93,94,95,96,97,98,99
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
+ 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
+ 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
+ 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
+ 40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
+ 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
+ 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,
+ 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
+ 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
+ 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
);
for (var i = 0; i < 100; i++) {
diff --git a/test/built-ins/Array/S15.4.1_A3.1_T1.js b/test/built-ins/Array/S15.4.1_A3.1_T1.js
index 383fefd73..679db6fb4 100644
--- a/test/built-ins/Array/S15.4.1_A3.1_T1.js
+++ b/test/built-ins/Array/S15.4.1_A3.1_T1.js
@@ -12,7 +12,7 @@ description: Checking use typeof, instanceof
//CHECK#1
if (typeof Array() !== "object") {
$ERROR('#1: typeof Array() === "object". Actual: ' + (typeof Array()));
-}
+}
//CHECK#2
if ((Array() instanceof Array) !== true) {
diff --git a/test/built-ins/Array/S15.4.2.1_A1.1_T1.js b/test/built-ins/Array/S15.4.2.1_A1.1_T1.js
index 895ae2f4f..cd3a2c13d 100644
--- a/test/built-ins/Array/S15.4.2.1_A1.1_T1.js
+++ b/test/built-ins/Array/S15.4.2.1_A1.1_T1.js
@@ -14,7 +14,7 @@ description: >
//CHECK#1
Array.prototype.myproperty = 1;
-var x = new Array();
+var x = new Array();
if (x.myproperty !== 1) {
$ERROR('#1: Array.prototype.myproperty = 1; var x = new Array(); x.myproperty === 1. Actual: ' + (x.myproperty));
}
diff --git a/test/built-ins/Array/S15.4.2.1_A1.1_T2.js b/test/built-ins/Array/S15.4.2.1_A1.1_T2.js
index 74ccc645e..3992943a4 100644
--- a/test/built-ins/Array/S15.4.2.1_A1.1_T2.js
+++ b/test/built-ins/Array/S15.4.2.1_A1.1_T2.js
@@ -12,14 +12,14 @@ description: Array.prototype.toString = Object.prototype.toString
//CHECK#1
Array.prototype.toString = Object.prototype.toString;
-var x = new Array();
+var x = new Array();
if (x.toString() !== "[object " + "Array" + "]") {
$ERROR('#1: Array.prototype.toString = Object.prototype.toString; var x = new Array(); x.toString() === "[object " + "Array" + "]". Actual: ' + (x.toString()));
}
//CHECK#2
Array.prototype.toString = Object.prototype.toString;
-var x = new Array(0,1,2);
+var x = new Array(0, 1, 2);
if (x.toString() !== "[object " + "Array" + "]") {
$ERROR('#2: Array.prototype.toString = Object.prototype.toString; var x = new Array(0,1,2); x.toString() === "[object " + "Array" + "]". Actual: ' + (x.toString()));
}
diff --git a/test/built-ins/Array/S15.4.2.1_A1.2_T1.js b/test/built-ins/Array/S15.4.2.1_A1.2_T1.js
index 59b528f6a..de6c5a1d8 100644
--- a/test/built-ins/Array/S15.4.2.1_A1.2_T1.js
+++ b/test/built-ins/Array/S15.4.2.1_A1.2_T1.js
@@ -8,14 +8,14 @@ description: Checking use Object.prototype.toString
---*/
//CHECK#1
-var x = new Array();
+var x = new Array();
x.getClass = Object.prototype.toString;
if (x.getClass() !== "[object " + "Array" + "]") {
$ERROR('#1: var x = new Array(); x.getClass = Object.prototype.toString; x is Array object. Actual: ' + (x.getClass()));
}
//CHECK#2
-var x = new Array(0,1,2);
+var x = new Array(0, 1, 2);
x.getClass = Object.prototype.toString;
if (x.getClass() !== "[object " + "Array" + "]") {
$ERROR('#2: var x = new Array(0,1,2); x.getClass = Object.prototype.toString; x is Array object. Actual: ' + (x.getClass()));
diff --git a/test/built-ins/Array/S15.4.2.1_A2.1_T1.js b/test/built-ins/Array/S15.4.2.1_A2.1_T1.js
index 97aaaa52b..e189774b0 100644
--- a/test/built-ins/Array/S15.4.2.1_A2.1_T1.js
+++ b/test/built-ins/Array/S15.4.2.1_A2.1_T1.js
@@ -15,8 +15,8 @@ if (new Array().length !== 0) {
}
//CHECK#2
-if (new Array(0,1,0,1).length !== 4) {
- $ERROR('#2: new Array(0,1,0,1).length === 4. Actual: ' + (new Array(0,1,0,1).length));
+if (new Array(0, 1, 0, 1).length !== 4) {
+ $ERROR('#2: new Array(0,1,0,1).length === 4. Actual: ' + (new Array(0, 1, 0, 1).length));
}
//CHECK#3
diff --git a/test/built-ins/Array/S15.4.2.1_A2.2_T1.js b/test/built-ins/Array/S15.4.2.1_A2.2_T1.js
index e4c088a91..05dbf789d 100644
--- a/test/built-ins/Array/S15.4.2.1_A2.2_T1.js
+++ b/test/built-ins/Array/S15.4.2.1_A2.2_T1.js
@@ -14,16 +14,16 @@ description: Checking correct work this algorithm
//CHECK#
var x = new Array(
-0,1,2,3,4,5,6,7,8,9,
-10,11,12,13,14,15,16,17,18,19,
-20,21,22,23,24,25,26,27,28,29,
-30,31,32,33,34,35,36,37,38,39,
-40,41,42,43,44,45,46,47,48,49,
-50,51,52,53,54,55,56,57,58,59,
-60,61,62,63,64,65,66,67,68,69,
-70,71,72,73,74,75,76,77,78,79,
-80,81,82,83,84,85,86,87,88,89,
-90,91,92,93,94,95,96,97,98,99
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
+ 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
+ 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
+ 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
+ 40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
+ 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
+ 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,
+ 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
+ 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
+ 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
);
for (var i = 0; i < 100; i++) {
diff --git a/test/built-ins/Array/S15.4.5.1_A1.2_T2.js b/test/built-ins/Array/S15.4.5.1_A1.2_T2.js
index eb722c4ab..493457eb9 100644
--- a/test/built-ins/Array/S15.4.5.1_A1.2_T2.js
+++ b/test/built-ins/Array/S15.4.5.1_A1.2_T2.js
@@ -13,13 +13,13 @@ description: Checking an inherited property
//CHECK#1
Array.prototype[2] = -1;
-var x = [0,1,2];
-if (x[2] !== 2) {
- $ERROR('#1: Array.prototype[2] = -1; x = [0,1,3]; x[2] === 2. Actual: ' + (x[2]));
+var x = [0, 1, 2];
+if (x[2] !== 2) {
+ $ERROR('#1: Array.prototype[2] = -1; x = [0,1,3]; x[2] === 2. Actual: ' + (x[2]));
}
//CHECK#2
x.length = 2;
-if (x[2] !== -1) {
- $ERROR('#2: Array.prototype[2] = -1; x = [0,1,3]; x.length = 2; x[2] === -1. Actual: ' + (x[2]));
+if (x[2] !== -1) {
+ $ERROR('#2: Array.prototype[2] = -1; x = [0,1,3]; x.length = 2; x[2] === -1. Actual: ' + (x[2]));
}
diff --git a/test/built-ins/Array/S15.4.5.1_A2.1_T1.js b/test/built-ins/Array/S15.4.5.1_A2.1_T1.js
index 3006c94e7..b48f6d6c4 100644
--- a/test/built-ins/Array/S15.4.5.1_A2.1_T1.js
+++ b/test/built-ins/Array/S15.4.5.1_A2.1_T1.js
@@ -12,32 +12,32 @@ description: P in [4294967295, -1, true]
//CHECK#1
var x = [];
x[4294967295] = 1;
-if (x.length !== 0) {
- $ERROR('#1.1: x = []; x[4294967295] = 1; x.length === 0. Actual: ' + (x.length));
+if (x.length !== 0) {
+ $ERROR('#1.1: x = []; x[4294967295] = 1; x.length === 0. Actual: ' + (x.length));
}
-if (x[4294967295] !== 1) {
- $ERROR('#1.2: x = []; x[4294967295] = 1; x[4294967295] === 1. Actual: ' + (x[4294967295]));
+if (x[4294967295] !== 1) {
+ $ERROR('#1.2: x = []; x[4294967295] = 1; x[4294967295] === 1. Actual: ' + (x[4294967295]));
}
//CHECK#2
x = [];
x[-1] = 1;
-if (x.length !== 0) {
- $ERROR('#2.1: x = []; x[-1] = 1; x.length === 0. Actual: ' + (x.length));
+if (x.length !== 0) {
+ $ERROR('#2.1: x = []; x[-1] = 1; x.length === 0. Actual: ' + (x.length));
}
-if (x[-1] !== 1) {
- $ERROR('#2.2: x = []; x[-1] = 1; x[-1] === 1. Actual: ' + (x[-1]));
+if (x[-1] !== 1) {
+ $ERROR('#2.2: x = []; x[-1] = 1; x[-1] === 1. Actual: ' + (x[-1]));
}
//CHECK#3
x = [];
x[true] = 1;
-if (x.length !== 0) {
- $ERROR('#3.1: x = []; x[true] = 1; x.length === 0. Actual: ' + (x.length));
+if (x.length !== 0) {
+ $ERROR('#3.1: x = []; x[true] = 1; x.length === 0. Actual: ' + (x.length));
}
-if (x[true] !== 1) {
- $ERROR('#3.2: x = []; x[true] = 1; x[true] === 1. Actual: ' + (x[true]));
+if (x[true] !== 1) {
+ $ERROR('#3.2: x = []; x[true] = 1; x[true] === 1. Actual: ' + (x[true]));
}
diff --git a/test/built-ins/Array/S15.4.5.1_A2.2_T1.js b/test/built-ins/Array/S15.4.5.1_A2.2_T1.js
index b3000c1db..45ebd19d6 100644
--- a/test/built-ins/Array/S15.4.5.1_A2.2_T1.js
+++ b/test/built-ins/Array/S15.4.5.1_A2.2_T1.js
@@ -12,18 +12,18 @@ description: length === 100, P in [0, 98, 99]
//CHECK#1
var x = Array(100);
x[0] = 1;
-if (x.length !== 100) {
- $ERROR('#1: x = Array(100); x[0] = 1; x.length === 100. Actual: ' + (x.length));
+if (x.length !== 100) {
+ $ERROR('#1: x = Array(100); x[0] = 1; x.length === 100. Actual: ' + (x.length));
}
//CHECK#2
x[98] = 1;
-if (x.length !== 100) {
- $ERROR('#2: x = Array(100); x[0] = 1; x[98] = 1; x.length === 100. Actual: ' + (x.length));
+if (x.length !== 100) {
+ $ERROR('#2: x = Array(100); x[0] = 1; x[98] = 1; x.length === 100. Actual: ' + (x.length));
}
//CHECK#3
x[99] = 1;
-if (x.length !== 100) {
- $ERROR('#3: x = Array(100); x[0] = 1; x[98] = 1; x[99] = 1; x.length === 100. Actual: ' + (x.length));
+if (x.length !== 100) {
+ $ERROR('#3: x = Array(100); x[0] = 1; x[98] = 1; x[99] = 1; x.length === 100. Actual: ' + (x.length));
}
diff --git a/test/built-ins/Array/S15.4.5.1_A2.3_T1.js b/test/built-ins/Array/S15.4.5.1_A2.3_T1.js
index 90525f07f..0c4c807db 100644
--- a/test/built-ins/Array/S15.4.5.1_A2.3_T1.js
+++ b/test/built-ins/Array/S15.4.5.1_A2.3_T1.js
@@ -12,12 +12,12 @@ description: length = 100, P in [100, 199]
//CHECK#1
var x = Array(100);
x[100] = 1;
-if (x.length !== 101) {
- $ERROR('#1: x = Array(100); x[100] = 1; x.length === 101. Actual: ' + (x.length));
+if (x.length !== 101) {
+ $ERROR('#1: x = Array(100); x[100] = 1; x.length === 101. Actual: ' + (x.length));
}
//CHECK#2
x[199] = 1;
-if (x.length !== 200) {
- $ERROR('#2: x = Array(100); x[100] = 1; x[199] = 1; x.length === 100. Actual: ' + (x.length));
+if (x.length !== 200) {
+ $ERROR('#2: x = Array(100); x[100] = 1; x[199] = 1; x.length === 100. Actual: ' + (x.length));
}
diff --git a/test/built-ins/Array/S15.4.5.2_A1_T1.js b/test/built-ins/Array/S15.4.5.2_A1_T1.js
index 16e7904b8..56ef2426e 100644
--- a/test/built-ins/Array/S15.4.5.2_A1_T1.js
+++ b/test/built-ins/Array/S15.4.5.2_A1_T1.js
@@ -12,30 +12,30 @@ description: Checking boundary points
//CHECK#1
var x = [];
-if (x.length !== 0) {
- $ERROR('#1: x = []; x.length === 0. Actual: ' + (x.length));
+if (x.length !== 0) {
+ $ERROR('#1: x = []; x.length === 0. Actual: ' + (x.length));
}
//CHECK#2
x[0] = 1;
-if (x.length !== 1) {
+if (x.length !== 1) {
$ERROR('#2: x = []; x[1] = 1; x.length === 1. Actual: ' + (x.length));
}
//CHECK#3
x[1] = 1;
-if (x.length !== 2) {
+if (x.length !== 2) {
$ERROR('#3: x = []; x[0] = 1; x[1] = 1; x.length === 2. Actual: ' + (x.length));
}
//CHECK#4
x[2147483648] = 1;
-if (x.length !== 2147483649) {
+if (x.length !== 2147483649) {
$ERROR('#4: x = []; x[0] = 1; x[1] = 1; x[2147483648] = 1; x.length === 2147483649. Actual: ' + (x.length));
}
//CHECK#5
x[4294967294] = 1;
-if (x.length !== 4294967295) {
+if (x.length !== 4294967295) {
$ERROR('#5: x = []; x[0] = 1; x[1] = 1; x[2147483648] = 1; x[42949672954] = 1; x.length === 4294967295. Actual: ' + (x.length));
}
diff --git a/test/built-ins/Array/S15.4.5.2_A1_T2.js b/test/built-ins/Array/S15.4.5.2_A1_T2.js
index 12dfb1943..6edcf113b 100644
--- a/test/built-ins/Array/S15.4.5.2_A1_T2.js
+++ b/test/built-ins/Array/S15.4.5.2_A1_T2.js
@@ -13,14 +13,14 @@ description: P = "2^32 - 1" is not index array
//CHECK#1
var x = [];
x[4294967295] = 1;
-if (x.length !== 0) {
- $ERROR('#1: x = []; x[4294967295] = 1; x.length === 0. Actual: ' + (x.length));
+if (x.length !== 0) {
+ $ERROR('#1: x = []; x[4294967295] = 1; x.length === 0. Actual: ' + (x.length));
}
//CHECK#2
-var y =[];
+var y = [];
y[1] = 1;
y[4294967295] = 1;
-if (y.length !== 2) {
+if (y.length !== 2) {
$ERROR('#2: y = []; y[1] = 1; y[4294967295] = 1; y.length === 2. Actual: ' + (y.length));
}
diff --git a/test/built-ins/Array/S15.4.5.2_A2_T1.js b/test/built-ins/Array/S15.4.5.2_A2_T1.js
index 8f9ac5b8c..39a8a330a 100644
--- a/test/built-ins/Array/S15.4.5.2_A2_T1.js
+++ b/test/built-ins/Array/S15.4.5.2_A2_T1.js
@@ -11,24 +11,24 @@ description: Checking length property
//CHECK#1
var x = [];
-if (x.length !== 0) {
- $ERROR('#1: x = []; x.length === 0. Actual: ' + (x.length));
+if (x.length !== 0) {
+ $ERROR('#1: x = []; x.length === 0. Actual: ' + (x.length));
}
//CHECK#2
x[0] = 1;
-if (x.length !== 1) {
+if (x.length !== 1) {
$ERROR('#2: x = []; x[1] = 1; x.length === 1. Actual: ' + (x.length));
}
//CHECK#3
x[1] = 1;
-if (x.length !== 2) {
+if (x.length !== 2) {
$ERROR('#3: x = []; x[0] = 1; x[1] = 1; x.length === 2. Actual: ' + (x.length));
}
//CHECK#4
x[9] = 1;
-if (x.length !== 10) {
+if (x.length !== 10) {
$ERROR('#4: x = []; x[0] = 1; x[1] = 1; x[9] = 1; x.length === 10. Actual: ' + (x.length));
}
diff --git a/test/built-ins/Array/S15.4.5.2_A3_T1.js b/test/built-ins/Array/S15.4.5.2_A3_T1.js
index 5ab53b122..f29a2a9b1 100644
--- a/test/built-ins/Array/S15.4.5.2_A3_T1.js
+++ b/test/built-ins/Array/S15.4.5.2_A3_T1.js
@@ -14,18 +14,18 @@ description: >
//CHECK#1
var x = [];
x.length = 1;
-if (x.length !== 1) {
- $ERROR('#1: x = []; x.length = 1; x.length === 1. Actual: ' + (x.length));
+if (x.length !== 1) {
+ $ERROR('#1: x = []; x.length = 1; x.length === 1. Actual: ' + (x.length));
}
//CHECK#2
x[5] = 1;
x.length = 10;
-if (x.length !== 10) {
+if (x.length !== 10) {
$ERROR('#2: x = []; x.length = 1; x[5] = 1; x.length = 10; x.length === 10. Actual: ' + (x.length));
}
//CHECK#3
-if (x[5] !== 1) {
+if (x[5] !== 1) {
$ERROR('#3: x = []; x.length = 1; x[5] = 1; x.length = 10; x[5] = 1');
}
diff --git a/test/built-ins/Array/S15.4.5.2_A3_T2.js b/test/built-ins/Array/S15.4.5.2_A3_T2.js
index ddd357969..da278f12b 100644
--- a/test/built-ins/Array/S15.4.5.2_A3_T2.js
+++ b/test/built-ins/Array/S15.4.5.2_A3_T2.js
@@ -17,34 +17,34 @@ x[1] = 1;
x[3] = 3;
x[5] = 5;
x.length = 4;
-if (x.length !== 4) {
- $ERROR('#1: x = []; x[1] = 1; x[3] = 3; x[5] = 5; x.length = 4; x.length === 4. Actual: ' + (x.length));
+if (x.length !== 4) {
+ $ERROR('#1: x = []; x[1] = 1; x[3] = 3; x[5] = 5; x.length = 4; x.length === 4. Actual: ' + (x.length));
}
//CHECK#2
-if (x[5] !== undefined) {
+if (x[5] !== undefined) {
$ERROR('#2: x = []; x[1] = 1; x[3] = 3; x[5] = 5; x.length = 4; x[5] === undefined. Actual: ' + (x[5]));
}
//CHECK#3
-if (x[3] !== 3) {
+if (x[3] !== 3) {
$ERROR('#3: x = []; x[1] = 1; x[3] = 3; x[5] = 5; x.length = 4; x[3] === 3. Actual: ' + (x[3]));
}
//CHECK#4
x.length = new Number(6);
-if (x[5] !== undefined) {
+if (x[5] !== undefined) {
$ERROR('#4: x = []; x[1] = 1; x[3] = 3; x[5] = 5; x.length = 4; x.length = new Number(6); x[5] === undefined. Actual: ' + (x[5]));
}
//CHECK#5
x.length = 0;
-if (x[0] !== undefined) {
+if (x[0] !== undefined) {
$ERROR('#5: x = []; x[1] = 1; x[3] = 3; x[5] = 5; x.length = 4; x.length = new Number(6); x.length = 0; x[0] === undefined. Actual: ' + (x[0]));
}
//CHECK#6
x.length = 1;
-if (x[1] !== undefined) {
+if (x[1] !== undefined) {
$ERROR('#6: x = []; x[1] = 1; x[3] = 3; x[5] = 5; x.length = 4; x.length = new Number(6); x.length = 0; x.length = 1; x[1] === undefined. Actual: ' + (x[1]));
}
diff --git a/test/built-ins/Array/S15.4.5.2_A3_T3.js b/test/built-ins/Array/S15.4.5.2_A3_T3.js
index 6d7eb6579..5b3f13f36 100644
--- a/test/built-ins/Array/S15.4.5.2_A3_T3.js
+++ b/test/built-ins/Array/S15.4.5.2_A3_T3.js
@@ -12,8 +12,8 @@ description: "[[Put]] (length, 4294967296)"
//CHECK#1
var x = [];
x.length = 4294967295;
-if (x.length !== 4294967295) {
- $ERROR('#1: x = []; x.length = 4294967295; x.length === 4294967295');
+if (x.length !== 4294967295) {
+ $ERROR('#1: x = []; x.length = 4294967295; x.length === 4294967295');
}
//CHECK#2
@@ -21,8 +21,8 @@ try {
x = [];
x.length = 4294967296;
$ERROR('#2.1: x = []; x.length = 4294967296 throw RangeError. Actual: x.length === ' + (x.length));
-} catch(e) {
+} catch (e) {
if ((e instanceof RangeError) !== true) {
$ERROR('#2.2: x = []; x.length = 4294967296 throw RangeError. Actual: ' + (e));
- }
+ }
}
diff --git a/test/built-ins/Array/S15.4_A1.1_T10.js b/test/built-ins/Array/S15.4_A1.1_T10.js
index 95ab3851b..c2d6d3a75 100644
--- a/test/built-ins/Array/S15.4_A1.1_T10.js
+++ b/test/built-ins/Array/S15.4_A1.1_T10.js
@@ -14,7 +14,7 @@ var x = [];
var k = 1;
for (var i = 0; i < 32; i++) {
k = k * 2;
- x[k - 2] = k;
+ x[k - 2] = k;
}
k = 1;
@@ -22,5 +22,5 @@ for (i = 0; i < 32; i++) {
k = k * 2;
if (x[k - 2] !== k) {
$ERROR('#' + (k - 2) + ': ');
- }
+ }
}
diff --git a/test/built-ins/Array/S15.4_A1.1_T4.js b/test/built-ins/Array/S15.4_A1.1_T4.js
index 74c053efc..fa5dff3e1 100644
--- a/test/built-ins/Array/S15.4_A1.1_T4.js
+++ b/test/built-ins/Array/S15.4_A1.1_T4.js
@@ -13,12 +13,12 @@ description: Checking for string primitive
var x = [];
x["0"] = 0;
if (x[0] !== 0) {
- $ERROR('#1: x = []; x["0"] = 0; x[0] === 0. Actual: ' + (x[0]));
-}
+ $ERROR('#1: x = []; x["0"] = 0; x[0] === 0. Actual: ' + (x[0]));
+}
//CHECK#2
var y = [];
y["1"] = 1;
if (y[1] !== 1) {
- $ERROR('#2: y = []; y["1"] = 1; y[1] === 1. Actual: ' + (y[1]));
+ $ERROR('#2: y = []; y["1"] = 1; y[1] === 1. Actual: ' + (y[1]));
}
diff --git a/test/built-ins/Array/S15.4_A1.1_T5.js b/test/built-ins/Array/S15.4_A1.1_T5.js
index 1a2a3e63b..7c5f20876 100644
--- a/test/built-ins/Array/S15.4_A1.1_T5.js
+++ b/test/built-ins/Array/S15.4_A1.1_T5.js
@@ -13,22 +13,22 @@ description: Checking for null and undefined
var x = [];
x[null] = 0;
if (x[0] !== undefined) {
- $ERROR('#1: x = []; x[null] = 1; x[0] === undefined. Actual: ' + (x[0]));
+ $ERROR('#1: x = []; x[null] = 1; x[0] === undefined. Actual: ' + (x[0]));
}
//CHECK#2
if (x["null"] !== 0) {
- $ERROR('#2: x = []; x[null] = 1; x["null"] === 0. Actual: ' + (x["null"]));
+ $ERROR('#2: x = []; x[null] = 1; x["null"] === 0. Actual: ' + (x["null"]));
}
//CHECK#3
var y = [];
y[undefined] = 0;
if (y[0] !== undefined) {
- $ERROR('#3: y = []; y[undefined] = 0; y[0] === undefined. Actual: ' + (y[0]));
+ $ERROR('#3: y = []; y[undefined] = 0; y[0] === undefined. Actual: ' + (y[0]));
}
//CHECK#4
if (y["undefined"] !== 0) {
- $ERROR('#4: y = []; y[undefined] = 1; y["undefined"] === 0. Actual: ' + (y["undefined"]));
+ $ERROR('#4: y = []; y[undefined] = 1; y["undefined"] === 0. Actual: ' + (y["undefined"]));
}
diff --git a/test/built-ins/Array/S15.4_A1.1_T6.js b/test/built-ins/Array/S15.4_A1.1_T6.js
index 8b0478706..7aaf2b628 100644
--- a/test/built-ins/Array/S15.4_A1.1_T6.js
+++ b/test/built-ins/Array/S15.4_A1.1_T6.js
@@ -13,21 +13,21 @@ description: Checking for Boolean object
var x = [];
x[new Boolean(true)] = 1;
if (x[1] !== undefined) {
- $ERROR('#1: x = []; x[new Boolean(true)] = 1; x[1] === undefined. Actual: ' + (x[1]));
+ $ERROR('#1: x = []; x[new Boolean(true)] = 1; x[1] === undefined. Actual: ' + (x[1]));
}
//CHECK#2
if (x["true"] !== 1) {
- $ERROR('#2: x = []; x[true] = 1; x["true"] === 1. Actual: ' + (x["true"]));
+ $ERROR('#2: x = []; x[true] = 1; x["true"] === 1. Actual: ' + (x["true"]));
}
//CHECK#3
x[new Boolean(false)] = 0;
if (x[0] !== undefined) {
- $ERROR('#3: x = []; x[true] = 1; x[new Boolean(false)] = 0; x[0] === undefined. Actual: ' + (x[0]));
+ $ERROR('#3: x = []; x[true] = 1; x[new Boolean(false)] = 0; x[0] === undefined. Actual: ' + (x[0]));
}
//CHECK#4
if (x["false"] !== 0) {
- $ERROR('#4: x = []; x[false] = 1; x["false"] === 0. Actual: ' + (x["false"]));
+ $ERROR('#4: x = []; x[false] = 1; x["false"] === 0. Actual: ' + (x["false"]));
}
diff --git a/test/built-ins/Array/S15.4_A1.1_T7.js b/test/built-ins/Array/S15.4_A1.1_T7.js
index a7a3a3caf..de1f1cd0a 100644
--- a/test/built-ins/Array/S15.4_A1.1_T7.js
+++ b/test/built-ins/Array/S15.4_A1.1_T7.js
@@ -13,19 +13,19 @@ description: Checking for Number object
var x = [];
x[new Number(0)] = 0;
if (x[0] !== 0) {
- $ERROR('#1: x = []; x[new Number(0)] = 0; x[0] === 0. Actual: ' + (x[0]));
-}
+ $ERROR('#1: x = []; x[new Number(0)] = 0; x[0] === 0. Actual: ' + (x[0]));
+}
//CHECK#2
var y = [];
y[new Number(1)] = 1;
if (y[1] !== 1) {
- $ERROR('#2: y = []; y[new Number(1)] = 1; y[1] === 1. Actual: ' + (y[1]));
+ $ERROR('#2: y = []; y[new Number(1)] = 1; y[1] === 1. Actual: ' + (y[1]));
}
//CHECK#3
var z = [];
z[new Number(1.1)] = 1;
if (z["1.1"] !== 1) {
- $ERROR('#3: z = []; z[new Number(1.1)] = 1; z["1.1"] === 1. Actual: ' + (z["1.1"]));
+ $ERROR('#3: z = []; z[new Number(1.1)] = 1; z["1.1"] === 1. Actual: ' + (z["1.1"]));
}
diff --git a/test/built-ins/Array/S15.4_A1.1_T8.js b/test/built-ins/Array/S15.4_A1.1_T8.js
index 3036b8acc..349c592ee 100644
--- a/test/built-ins/Array/S15.4_A1.1_T8.js
+++ b/test/built-ins/Array/S15.4_A1.1_T8.js
@@ -13,19 +13,19 @@ description: Checking for Number object
var x = [];
x[new String("0")] = 0;
if (x[0] !== 0) {
- $ERROR('#1: x = []; x[new String("0")] = 0; x[0] === 0. Actual: ' + (x[0]));
-}
+ $ERROR('#1: x = []; x[new String("0")] = 0; x[0] === 0. Actual: ' + (x[0]));
+}
//CHECK#2
var y = [];
y[new String("1")] = 1;
if (y[1] !== 1) {
- $ERROR('#2: y = []; y[new String("1")] = 1; y[1] === 1. Actual: ' + (y[1]));
+ $ERROR('#2: y = []; y[new String("1")] = 1; y[1] === 1. Actual: ' + (y[1]));
}
//CHECK#3
var z = [];
z[new String("1.1")] = 1;
if (z["1.1"] !== 1) {
- $ERROR('#3: z = []; z[new String("1.1")] = 1; z["1.1"] === 1. Actual: ' + (z["1.1"]));
+ $ERROR('#3: z = []; z[new String("1.1")] = 1; z["1.1"] === 1. Actual: ' + (z["1.1"]));
}
diff --git a/test/built-ins/Array/S15.4_A1.1_T9.js b/test/built-ins/Array/S15.4_A1.1_T9.js
index 645a512ee..ec8acc45a 100644
--- a/test/built-ins/Array/S15.4_A1.1_T9.js
+++ b/test/built-ins/Array/S15.4_A1.1_T9.js
@@ -11,7 +11,11 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String)
//CHECK#1
var x = [];
-var object = {valueOf: function() {return 1}};
+var object = {
+ valueOf: function() {
+ return 1
+ }
+};
x[object] = 0;
if (x["[object Object]"] !== 0) {
$ERROR('#1: x = []; var object = {valueOf: function() {return 1}}; x[object] = 0; x["[object Object]"] === 0. Actual: ' + (x["[object Object]"]));
@@ -19,15 +23,29 @@ if (x["[object Object]"] !== 0) {
//CHECK#2
x = [];
-var object = {valueOf: function() {return 1}, toString: function() {return 0}};
+var object = {
+ valueOf: function() {
+ return 1
+ },
+ toString: function() {
+ return 0
+ }
+};
x[object] = 0;
if (x[0] !== 0) {
$ERROR('#2: x = []; var object = {valueOf: function() {return 1}, toString: function() {return 0}}; x[object] = 0; x[0] === 0. Actual: ' + (x[0]));
-}
+}
//CHECK#3
x = [];
-var object = {valueOf: function() {return 1}, toString: function() {return {}}};
+var object = {
+ valueOf: function() {
+ return 1
+ },
+ toString: function() {
+ return {}
+ }
+};
x[object] = 0;
if (x[1] !== 0) {
$ERROR('#3: x = []; var object = {valueOf: function() {return 1}, toString: function() {return {}}}; x[object] = 0; x[1] === 0. Actual: ' + (x[1]));
@@ -35,8 +53,15 @@ if (x[1] !== 0) {
//CHECK#4
try {
- x = [];
- var object = {valueOf: function() {throw "error"}, toString: function() {return 1}};
+ x = [];
+ var object = {
+ valueOf: function() {
+ throw "error"
+ },
+ toString: function() {
+ return 1
+ }
+ };
x[object] = 0;
if (x[1] !== 0) {
$ERROR('#4.1: x = []; var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; x[object] = 0; x[1] === 1. Actual: ' + (x[1]));
@@ -52,7 +77,11 @@ catch (e) {
//CHECK#5
x = [];
-var object = {toString: function() {return 1}};
+var object = {
+ toString: function() {
+ return 1
+ }
+};
x[object] = 0;
if (x[1] !== 0) {
$ERROR('#5: x = []; var object = {toString: function() {return 1}}; x[object] = 0; x[1] === 0. Actual: ' + (x[1]));
@@ -60,7 +89,14 @@ if (x[1] !== 0) {
//CHECK#6
x = [];
-var object = {valueOf: function() {return {}}, toString: function() {return 1}}
+var object = {
+ valueOf: function() {
+ return {}
+ },
+ toString: function() {
+ return 1
+ }
+}
x[object] = 0;
if (x[1] !== 0) {
$ERROR('#6: x = []; var object = {valueOf: function() {return {}}, toString: function() {return 1}}; x[object] = 0; x[1] === 0. Actual: ' + (x[1]));
@@ -69,25 +105,39 @@ if (x[1] !== 0) {
//CHECK#7
try {
x = [];
- var object = {valueOf: function() {return 1}, toString: function() {throw "error"}};
- x[object];
+ var object = {
+ valueOf: function() {
+ return 1
+ },
+ toString: function() {
+ throw "error"
+ }
+ };
+ x[object];
$ERROR('#7.1: x = []; var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; x[object] throw "error". Actual: ' + (x[object]));
-}
+}
catch (e) {
if (e !== "error") {
$ERROR('#7.2: x = []; var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; x[object] throw "error". Actual: ' + (e));
- }
+ }
}
//CHECK#8
try {
x = [];
- var object = {valueOf: function() {return {}}, toString: function() {return {}}};
+ var object = {
+ valueOf: function() {
+ return {}
+ },
+ toString: function() {
+ return {}
+ }
+ };
x[object];
$ERROR('#8.1: x = []; var object = {valueOf: function() {return {}}, toString: function() {return {}}}; x[object] throw TypeError. Actual: ' + (x[object]));
-}
+}
catch (e) {
if ((e instanceof TypeError) !== true) {
$ERROR('#8.2: x = []; var object = {valueOf: function() {return {}}, toString: function() {return {}}}; x[object] throw TypeError. Actual: ' + (e));
- }
+ }
}
diff --git a/test/built-ins/Array/from/Array.from_forwards-length-for-array-likes.js b/test/built-ins/Array/from/Array.from_forwards-length-for-array-likes.js
index 4718751cb..311bc7780 100644
--- a/test/built-ins/Array/from/Array.from_forwards-length-for-array-likes.js
+++ b/test/built-ins/Array/from/Array.from_forwards-length-for-array-likes.js
@@ -28,7 +28,9 @@ function MyCollection() {
this.args = arguments;
}
-result = Array.from.call(MyCollection, {length: 42});
+result = Array.from.call(MyCollection, {
+ length: 42
+});
assert.sameValue(result.args.length, 1);
assert.sameValue(result.args[0], 42);
diff --git a/test/built-ins/Array/from/calling-from-valid-1-noStrict.js b/test/built-ins/Array/from/calling-from-valid-1-noStrict.js
index 201736051..eb0d24aa4 100644
--- a/test/built-ins/Array/from/calling-from-valid-1-noStrict.js
+++ b/test/built-ins/Array/from/calling-from-valid-1-noStrict.js
@@ -34,7 +34,7 @@ var list = {
};
var calls = [];
-function mapFn (value) {
+function mapFn(value) {
calls.push({
args: arguments,
thisArg: this
diff --git a/test/built-ins/Array/from/calling-from-valid-1-onlyStrict.js b/test/built-ins/Array/from/calling-from-valid-1-onlyStrict.js
index 8415045f7..68abe0f44 100644
--- a/test/built-ins/Array/from/calling-from-valid-1-onlyStrict.js
+++ b/test/built-ins/Array/from/calling-from-valid-1-onlyStrict.js
@@ -34,7 +34,7 @@ var list = {
};
var calls = [];
-function mapFn (value) {
+function mapFn(value) {
calls.push({
args: arguments,
thisArg: this
diff --git a/test/built-ins/Array/from/calling-from-valid-2.js b/test/built-ins/Array/from/calling-from-valid-2.js
index 50be8469c..139c9818c 100644
--- a/test/built-ins/Array/from/calling-from-valid-2.js
+++ b/test/built-ins/Array/from/calling-from-valid-2.js
@@ -35,7 +35,7 @@ var list = {
var calls = [];
var thisArg = {};
-function mapFn (value) {
+function mapFn(value) {
calls.push({
args: arguments,
thisArg: this
diff --git a/test/built-ins/Array/from/elements-added-after.js b/test/built-ins/Array/from/elements-added-after.js
index 9aafe597a..a8ff21a0c 100644
--- a/test/built-ins/Array/from/elements-added-after.js
+++ b/test/built-ins/Array/from/elements-added-after.js
@@ -10,23 +10,24 @@ es6id: 22.1.2.1
var arrayIndex = -1;
var originalLength = 7;
var obj = {
- length: originalLength,
- 0: 2,
- 1: 4,
- 2: 8,
- 3: 16,
- 4: 32,
- 5: 64,
- 6: 128
+ length: originalLength,
+ 0: 2,
+ 1: 4,
+ 2: 8,
+ 3: 16,
+ 4: 32,
+ 5: 64,
+ 6: 128
};
-var array = [ 2, 4, 8, 16, 32, 64, 128 ];
+var array = [2, 4, 8, 16, 32, 64, 128];
+
function mapFn(value, index) {
- arrayIndex++;
- assert.sameValue(value, obj[arrayIndex], "Value mismatch in mapFn at index " + index + ".");
- assert.sameValue(index, arrayIndex, "Index mismatch in mapFn.");
- obj[originalLength + arrayIndex] = 2 * arrayIndex + 1;
+ arrayIndex++;
+ assert.sameValue(value, obj[arrayIndex], "Value mismatch in mapFn at index " + index + ".");
+ assert.sameValue(index, arrayIndex, "Index mismatch in mapFn.");
+ obj[originalLength + arrayIndex] = 2 * arrayIndex + 1;
- return obj[arrayIndex];
+ return obj[arrayIndex];
}
@@ -34,5 +35,5 @@ var a = Array.from(obj, mapFn);
assert.sameValue(a.length, array.length, "Length mismatch.");
for (var j = 0; j < a.length; j++) {
- assert.sameValue(a[j], array[j], "Element mismatch for array at index " + j + ".");
+ assert.sameValue(a[j], array[j], "Element mismatch for array at index " + j + ".");
}
diff --git a/test/built-ins/Array/from/elements-deleted-after.js b/test/built-ins/Array/from/elements-deleted-after.js
index d2d72e51e..02f745329 100644
--- a/test/built-ins/Array/from/elements-deleted-after.js
+++ b/test/built-ins/Array/from/elements-deleted-after.js
@@ -9,17 +9,18 @@ esid: sec-array.from
es6id: 22.1.2.1
---*/
-var originalArray = [ 0, 1, -2, 4, -8, 16 ];
-var array = [ 0, 1, -2, 4, -8, 16 ];
+var originalArray = [0, 1, -2, 4, -8, 16];
+var array = [0, 1, -2, 4, -8, 16];
var a = [];
var arrayIndex = -1;
+
function mapFn(value, index) {
- this.arrayIndex++;
- assert.sameValue(value, array[this.arrayIndex], "Value mismatch in mapFn at index " + index + ".");
- assert.sameValue(index, this.arrayIndex, "Index mismatch in mapFn.");
+ this.arrayIndex++;
+ assert.sameValue(value, array[this.arrayIndex], "Value mismatch in mapFn at index " + index + ".");
+ assert.sameValue(index, this.arrayIndex, "Index mismatch in mapFn.");
- array.splice(array.length - 1, 1);
- return 127;
+ array.splice(array.length - 1, 1);
+ return 127;
}
@@ -28,5 +29,5 @@ a = Array.from(array, mapFn, this);
assert.sameValue(a.length, originalArray.length / 2, "Length mismatch. Old array : " + (originalArray.length / 2) + ". array : " + a.length + ".");
for (var j = 0; j < originalArray.length / 2; j++) {
- assert.sameValue(a[j], 127, "Element mismatch for mapped array at index " + j + ".");
+ assert.sameValue(a[j], 127, "Element mismatch for mapped array at index " + j + ".");
}
diff --git a/test/built-ins/Array/from/elements-updated-after.js b/test/built-ins/Array/from/elements-updated-after.js
index 6c859e23a..358e94b46 100644
--- a/test/built-ins/Array/from/elements-updated-after.js
+++ b/test/built-ins/Array/from/elements-updated-after.js
@@ -7,21 +7,22 @@ esid: sec-array.from
es6id: 22.1.2.1
---*/
-var array = [ 127, 4, 8, 16, 32, 64, 128 ];
+var array = [127, 4, 8, 16, 32, 64, 128];
var arrayIndex = -1;
+
function mapFn(value, index) {
- arrayIndex++;
- if (index + 1 < array.length) {
- array[index + 1] = 127;
- }
- assert.sameValue(value, 127, "Value mismatch in mapFn at index " + index + ".");
- assert.sameValue(index, arrayIndex, "Index mismatch in mapFn.");
+ arrayIndex++;
+ if (index + 1 < array.length) {
+ array[index + 1] = 127;
+ }
+ assert.sameValue(value, 127, "Value mismatch in mapFn at index " + index + ".");
+ assert.sameValue(index, arrayIndex, "Index mismatch in mapFn.");
- return value;
+ return value;
}
var a = Array.from(array, mapFn);
assert.sameValue(a.length, array.length, "Length mismatch.");
for (var j = 0; j < a.length; j++) {
- assert.sameValue(a[j], 127, "Element mismatch for mapped array.");
+ assert.sameValue(a[j], 127, "Element mismatch for mapped array.");
}
diff --git a/test/built-ins/Array/from/iter-cstm-ctor.js b/test/built-ins/Array/from/iter-cstm-ctor.js
index dfd64566f..d9a137695 100644
--- a/test/built-ins/Array/from/iter-cstm-ctor.js
+++ b/test/built-ins/Array/from/iter-cstm-ctor.js
@@ -27,7 +27,9 @@ var items = {};
items[Symbol.iterator] = function() {
return {
next: function() {
- return { done: true };
+ return {
+ done: true
+ };
}
};
};
diff --git a/test/built-ins/Array/from/iter-map-fn-args.js b/test/built-ins/Array/from/iter-map-fn-args.js
index f63fec612..56097d708 100644
--- a/test/built-ins/Array/from/iter-map-fn-args.js
+++ b/test/built-ins/Array/from/iter-map-fn-args.js
@@ -26,8 +26,14 @@ features: [Symbol.iterator]
---*/
var args = [];
-var firstResult = { done: false, value: {} };
-var secondResult = { done: false, value: {} };
+var firstResult = {
+ done: false,
+ value: {}
+};
+var secondResult = {
+ done: false,
+ value: {}
+};
var mapFn = function(value, idx) {
args.push(arguments);
};
@@ -40,7 +46,9 @@ items[Symbol.iterator] = function() {
next: function() {
var result = nextResult;
nextResult = nextNextResult;
- nextNextResult = { done: true };
+ nextNextResult = {
+ done: true
+ };
return result;
}
diff --git a/test/built-ins/Array/from/iter-map-fn-return.js b/test/built-ins/Array/from/iter-map-fn-return.js
index 58e175048..484ce7174 100644
--- a/test/built-ins/Array/from/iter-map-fn-return.js
+++ b/test/built-ins/Array/from/iter-map-fn-return.js
@@ -25,8 +25,14 @@ features: [Symbol.iterator]
---*/
var thisVals = [];
-var nextResult = { done: false, value: {} };
-var nextNextResult = { done: false, value: {} };
+var nextResult = {
+ done: false,
+ value: {}
+};
+var nextNextResult = {
+ done: false,
+ value: {}
+};
var firstReturnVal = {};
var secondReturnVal = {};
var mapFn = function(value, idx) {
@@ -45,7 +51,9 @@ items[Symbol.iterator] = function() {
next: function() {
var result = nextResult;
nextResult = nextNextResult;
- nextNextResult = { done: true };
+ nextNextResult = {
+ done: true
+ };
return result;
}
diff --git a/test/built-ins/Array/from/iter-map-fn-this-arg.js b/test/built-ins/Array/from/iter-map-fn-this-arg.js
index 5e12157bb..d10e9f862 100644
--- a/test/built-ins/Array/from/iter-map-fn-this-arg.js
+++ b/test/built-ins/Array/from/iter-map-fn-this-arg.js
@@ -23,8 +23,14 @@ features: [Symbol.iterator]
---*/
var thisVals = [];
-var nextResult = { done: false, value: {} };
-var nextNextResult = { done: false, value: {} };
+var nextResult = {
+ done: false,
+ value: {}
+};
+var nextNextResult = {
+ done: false,
+ value: {}
+};
var mapFn = function() {
thisVals.push(this);
};
@@ -36,7 +42,9 @@ items[Symbol.iterator] = function() {
next: function() {
var result = nextResult;
nextResult = nextNextResult;
- nextNextResult = { done: true };
+ nextNextResult = {
+ done: true
+ };
return result;
}
diff --git a/test/built-ins/Array/from/iter-map-fn-this-non-strict.js b/test/built-ins/Array/from/iter-map-fn-this-non-strict.js
index 81022307a..0bb30453e 100644
--- a/test/built-ins/Array/from/iter-map-fn-this-non-strict.js
+++ b/test/built-ins/Array/from/iter-map-fn-this-non-strict.js
@@ -24,20 +24,30 @@ flags: [noStrict]
---*/
var thisVals = [];
-var nextResult = { done: false, value: {} };
-var nextNextResult = { done: false, value: {} };
+var nextResult = {
+ done: false,
+ value: {}
+};
+var nextNextResult = {
+ done: false,
+ value: {}
+};
var mapFn = function() {
thisVals.push(this);
};
var items = {};
-var global = function() { return this; }();
+var global = function() {
+ return this;
+}();
items[Symbol.iterator] = function() {
return {
next: function() {
var result = nextResult;
nextResult = nextNextResult;
- nextNextResult = { done: true };
+ nextNextResult = {
+ done: true
+ };
return result;
}
diff --git a/test/built-ins/Array/from/iter-map-fn-this-strict.js b/test/built-ins/Array/from/iter-map-fn-this-strict.js
index cfe576a5b..d9a62dabc 100644
--- a/test/built-ins/Array/from/iter-map-fn-this-strict.js
+++ b/test/built-ins/Array/from/iter-map-fn-this-strict.js
@@ -24,8 +24,14 @@ flags: [onlyStrict]
---*/
var thisVals = [];
-var nextResult = { done: false, value: {} };
-var nextNextResult = { done: false, value: {} };
+var nextResult = {
+ done: false,
+ value: {}
+};
+var nextNextResult = {
+ done: false,
+ value: {}
+};
var mapFn = function() {
thisVals.push(this);
};
@@ -36,7 +42,9 @@ items[Symbol.iterator] = function() {
next: function() {
var result = nextResult;
nextResult = nextNextResult;
- nextNextResult = { done: true };
+ nextNextResult = {
+ done: true
+ };
return result;
}
diff --git a/test/built-ins/Array/from/iter-set-elem-prop-err.js b/test/built-ins/Array/from/iter-set-elem-prop-err.js
index 07f2c5942..2f23b4f0c 100644
--- a/test/built-ins/Array/from/iter-set-elem-prop-err.js
+++ b/test/built-ins/Array/from/iter-set-elem-prop-err.js
@@ -18,11 +18,15 @@ features: [Symbol.iterator]
---*/
var C = function() {
- Object.defineProperty(this, '0', { configurable: false });
+ Object.defineProperty(this, '0', {
+ configurable: false
+ });
};
var closeCount = 0;
var items = {};
-var nextResult = { done: false };
+var nextResult = {
+ done: false
+};
items[Symbol.iterator] = function() {
return {
@@ -32,7 +36,9 @@ items[Symbol.iterator] = function() {
next: function() {
var result = nextResult;
- nextResult = { done: true };
+ nextResult = {
+ done: true
+ };
return result;
}
diff --git a/test/built-ins/Array/from/iter-set-elem-prop.js b/test/built-ins/Array/from/iter-set-elem-prop.js
index 7658bdd13..6f56116db 100644
--- a/test/built-ins/Array/from/iter-set-elem-prop.js
+++ b/test/built-ins/Array/from/iter-set-elem-prop.js
@@ -16,9 +16,18 @@ features: [Symbol.iterator]
---*/
var items = {};
-var firstIterResult = { done: false, value: {} };
-var secondIterResult = { done: false, value: {} };
-var thirdIterResult = { done: true, value: {} };
+var firstIterResult = {
+ done: false,
+ value: {}
+};
+var secondIterResult = {
+ done: false,
+ value: {}
+};
+var thirdIterResult = {
+ done: true,
+ value: {}
+};
var nextIterResult = firstIterResult;
var nextNextIterResult = secondIterResult;
var result;
diff --git a/test/built-ins/Array/from/iter-set-length-err.js b/test/built-ins/Array/from/iter-set-length-err.js
index d15631db9..4cd0e0001 100644
--- a/test/built-ins/Array/from/iter-set-length-err.js
+++ b/test/built-ins/Array/from/iter-set-length-err.js
@@ -25,7 +25,11 @@ Object.defineProperty(C.prototype, 'length', {
});
items[Symbol.iterator] = function() {
return {
- next: function() { return { done: true }; }
+ next: function() {
+ return {
+ done: true
+ };
+ }
};
};
diff --git a/test/built-ins/Array/from/iter-set-length.js b/test/built-ins/Array/from/iter-set-length.js
index ab0e221bf..c00ac5698 100644
--- a/test/built-ins/Array/from/iter-set-length.js
+++ b/test/built-ins/Array/from/iter-set-length.js
@@ -29,13 +29,19 @@ items[Symbol.iterator] = function() {
};
};
-nextIterResult = lastIterResult = { done: true };
+nextIterResult = lastIterResult = {
+ done: true
+};
result = Array.from(items);
assert.sameValue(result.length, 0);
-nextIterResult = { done: false };
-lastIterResult = { done: true };
+nextIterResult = {
+ done: false
+};
+lastIterResult = {
+ done: true
+};
result = Array.from(items);
assert.sameValue(result.length, 1);
diff --git a/test/built-ins/Array/from/mapfn-throws-exception.js b/test/built-ins/Array/from/mapfn-throws-exception.js
index a65512672..a87898bf8 100644
--- a/test/built-ins/Array/from/mapfn-throws-exception.js
+++ b/test/built-ins/Array/from/mapfn-throws-exception.js
@@ -7,9 +7,12 @@ esid: sec-array.from
es6id: 22.1.2.1
---*/
-var array = [ 2, 4, 8, 16, 32, 64, 128 ];
+var array = [2, 4, 8, 16, 32, 64, 128];
+
function mapFn(value, index, obj) {
- throw new Test262Error();
+ throw new Test262Error();
}
-assert.throws(Test262Error, function(){Array.from(array, mapFn);});
+assert.throws(Test262Error, function() {
+ Array.from(array, mapFn);
+});
diff --git a/test/built-ins/Array/from/source-array-boundary.js b/test/built-ins/Array/from/source-array-boundary.js
index 4c0587a32..9dad81729 100644
--- a/test/built-ins/Array/from/source-array-boundary.js
+++ b/test/built-ins/Array/from/source-array-boundary.js
@@ -7,14 +7,15 @@ esid: sec-array.from
es6id: 22.1.2.1
---*/
-var array = [ Number.MAX_VALUE, Number.MIN_VALUE, Number.NaN, Number.NEGATIVE_INFINITY, Number.POSITIVE_INFINITY ];
+var array = [Number.MAX_VALUE, Number.MIN_VALUE, Number.NaN, Number.NEGATIVE_INFINITY, Number.POSITIVE_INFINITY];
var arrayIndex = -1;
+
function mapFn(value, index) {
- this.arrayIndex++;
- assert.sameValue(value, array[this.arrayIndex], "Value mismatch in mapFn at index " + index + ".");
- assert.sameValue(index, this.arrayIndex, "Index mismatch in mapFn.");
+ this.arrayIndex++;
+ assert.sameValue(value, array[this.arrayIndex], "Value mismatch in mapFn at index " + index + ".");
+ assert.sameValue(index, this.arrayIndex, "Index mismatch in mapFn.");
- return value;
+ return value;
}
var a = Array.from(array, mapFn, this);
diff --git a/test/built-ins/Array/from/source-object-iterator-1.js b/test/built-ins/Array/from/source-object-iterator-1.js
index 94834b5cf..6ac364ac5 100644
--- a/test/built-ins/Array/from/source-object-iterator-1.js
+++ b/test/built-ins/Array/from/source-object-iterator-1.js
@@ -8,23 +8,25 @@ es6id: 22.1.2.1
features: [Symbol.iterator]
---*/
-var array = [ 2, 4, 8, 16, 32, 64, 128 ];
+var array = [2, 4, 8, 16, 32, 64, 128];
var obj = {
- [Symbol.iterator]() {
- return {
- index: 0,
- next() {
- throw new Test262Error();
- },
- isDone : false,
- get val() {
- this.index++;
- if (this.index > 7) {
- this.isDone = true;
- }
- return 1 << this.index;
- }
- };
- }
+ [Symbol.iterator]() {
+ return {
+ index: 0,
+ next() {
+ throw new Test262Error();
+ },
+ isDone: false,
+ get val() {
+ this.index++;
+ if (this.index > 7) {
+ this.isDone = true;
+ }
+ return 1 << this.index;
+ }
+ };
+ }
};
-assert.throws(Test262Error, function(){Array.from(obj);});
+assert.throws(Test262Error, function() {
+ Array.from(obj);
+});
diff --git a/test/built-ins/Array/from/source-object-iterator-2.js b/test/built-ins/Array/from/source-object-iterator-2.js
index 9bcd57053..619405c34 100644
--- a/test/built-ins/Array/from/source-object-iterator-2.js
+++ b/test/built-ins/Array/from/source-object-iterator-2.js
@@ -8,30 +8,30 @@ es6id: 22.1.2.1
features: [Symbol.iterator]
---*/
-var array = [ 2, 4, 8, 16, 32, 64, 128 ];
+var array = [2, 4, 8, 16, 32, 64, 128];
var obj = {
- [Symbol.iterator]() {
+ [Symbol.iterator]() {
+ return {
+ index: 0,
+ next() {
return {
- index: 0,
- next() {
- return {
- value: this.val,
- done: this.isDone
- };
- },
- isDone : false,
- get val() {
- this.index++;
- if (this.index > 7) {
- this.isDone = true;
- }
- return 1 << this.index;
- }
+ value: this.val,
+ done: this.isDone
};
- }
+ },
+ isDone: false,
+ get val() {
+ this.index++;
+ if (this.index > 7) {
+ this.isDone = true;
+ }
+ return 1 << this.index;
+ }
+ };
+ }
};
var a = Array.from.call(Object, obj);
assert.sameValue(typeof a, typeof {}, "The returned type is expected to be object.");
for (var j = 0; j < a.length; j++) {
- assert.sameValue(a[j], array[j], "Elements mismatch at " + j + ".");
+ assert.sameValue(a[j], array[j], "Elements mismatch at " + j + ".");
}
diff --git a/test/built-ins/Array/from/source-object-length.js b/test/built-ins/Array/from/source-object-length.js
index 75c46dfc4..4127f5ec0 100644
--- a/test/built-ins/Array/from/source-object-length.js
+++ b/test/built-ins/Array/from/source-object-length.js
@@ -12,14 +12,14 @@ es6id: 22.1.2.1
var array = [2, 4, 0, 16];
var expectedArray = [2, 4, , 16];
var obj = {
- length : 4,
- 0 : 2,
- 1 : 4,
- 2 : 0,
- 3 : 16
+ length: 4,
+ 0: 2,
+ 1: 4,
+ 2: 0,
+ 3: 16
};
delete obj[2];
var a = Array.from(obj);
for (var j = 0; j < expectedArray.length; j++) {
- assert.sameValue(a[j], expectedArray[j], "Elements mismatch at " + j + ".");
+ assert.sameValue(a[j], expectedArray[j], "Elements mismatch at " + j + ".");
}
diff --git a/test/built-ins/Array/from/source-object-missing.js b/test/built-ins/Array/from/source-object-missing.js
index ad5a6055d..3c55030da 100644
--- a/test/built-ins/Array/from/source-object-missing.js
+++ b/test/built-ins/Array/from/source-object-missing.js
@@ -9,14 +9,14 @@ es6id: 22.1.2.1
var array = [2, 4, , 16];
var obj = {
- length: 4,
- 0: 2,
- 1: 4,
- 3: 16
+ length: 4,
+ 0: 2,
+ 1: 4,
+ 3: 16
};
var a = Array.from.call(Object, obj);
assert.sameValue(typeof a, "object", "The returned type is expected to be object.");
for (var j = 0; j < a.length; j++) {
- assert.sameValue(a[j], array[j], "Elements mismatch at " + j + ".");
+ assert.sameValue(a[j], array[j], "Elements mismatch at " + j + ".");
}
diff --git a/test/built-ins/Array/from/source-object-without.js b/test/built-ins/Array/from/source-object-without.js
index 96ec31c25..fbb187782 100644
--- a/test/built-ins/Array/from/source-object-without.js
+++ b/test/built-ins/Array/from/source-object-without.js
@@ -8,10 +8,10 @@ es6id: 22.1.2.1
---*/
var obj = {
- 0: 2,
- 1: 4,
- 2: 8,
- 3: 16
+ 0: 2,
+ 1: 4,
+ 2: 8,
+ 3: 16
}
var a = Array.from(obj);
diff --git a/test/built-ins/Array/isArray/15.4.3.2-0-4.js b/test/built-ins/Array/isArray/15.4.3.2-0-4.js
index f422cc144..79302299f 100644
--- a/test/built-ins/Array/isArray/15.4.3.2-0-4.js
+++ b/test/built-ins/Array/isArray/15.4.3.2-0-4.js
@@ -7,12 +7,12 @@ es5id: 15.4.3.2-0-4
description: Array.isArray return false if its argument is not an Array
---*/
-var b_num = Array.isArray(42);
+var b_num = Array.isArray(42);
var b_undef = Array.isArray(undefined);
-var b_bool = Array.isArray(true);
-var b_str = Array.isArray("abc");
-var b_obj = Array.isArray({});
-var b_null = Array.isArray(null);
+var b_bool = Array.isArray(true);
+var b_str = Array.isArray("abc");
+var b_obj = Array.isArray({});
+var b_null = Array.isArray(null);
assert.sameValue(b_num, false, 'b_num');
diff --git a/test/built-ins/Array/isArray/15.4.3.2-1-13.js b/test/built-ins/Array/isArray/15.4.3.2-1-13.js
index 9a55d9a0c..cbc0721a6 100644
--- a/test/built-ins/Array/isArray/15.4.3.2-1-13.js
+++ b/test/built-ins/Array/isArray/15.4.3.2-1-13.js
@@ -10,7 +10,7 @@ description: Array.isArray applied to Arguments object
var arg;
(function fun() {
- arg = arguments;
+ arg = arguments;
}(1, 2, 3));
assert.sameValue(Array.isArray(arg), false, 'Array.isArray(arg)');
diff --git a/test/built-ins/Array/isArray/15.4.3.2-1-7.js b/test/built-ins/Array/isArray/15.4.3.2-1-7.js
index 6f807595c..412226c33 100644
--- a/test/built-ins/Array/isArray/15.4.3.2-1-7.js
+++ b/test/built-ins/Array/isArray/15.4.3.2-1-7.js
@@ -7,4 +7,4 @@ es5id: 15.4.3.2-1-7
description: Array.isArray applied to Function object
---*/
-assert.sameValue(Array.isArray(function () { }), false, 'Array.isArray(function () { })');
+assert.sameValue(Array.isArray(function() {}), false, 'Array.isArray(function () { })');
diff --git a/test/built-ins/Array/isArray/15.4.3.2-2-1.js b/test/built-ins/Array/isArray/15.4.3.2-2-1.js
index 302f9cbe8..d0a5ed7fc 100644
--- a/test/built-ins/Array/isArray/15.4.3.2-2-1.js
+++ b/test/built-ins/Array/isArray/15.4.3.2-2-1.js
@@ -8,7 +8,7 @@ description: Array.isArray applied to an object with an array as the prototype
---*/
var proto = [];
-var Con = function () { };
+var Con = function() {};
Con.prototype = proto;
var child = new Con();
diff --git a/test/built-ins/Array/isArray/15.4.3.2-2-2.js b/test/built-ins/Array/isArray/15.4.3.2-2-2.js
index 84a6e929e..d0bec2d46 100644
--- a/test/built-ins/Array/isArray/15.4.3.2-2-2.js
+++ b/test/built-ins/Array/isArray/15.4.3.2-2-2.js
@@ -9,10 +9,10 @@ description: >
prototype
---*/
- var proto = Array.prototype;
- var Con = function () { };
- Con.prototype = proto;
+var proto = Array.prototype;
+var Con = function() {};
+Con.prototype = proto;
- var child = new Con();
+var child = new Con();
assert.sameValue(Array.isArray(child), false, 'Array.isArray(child)');
diff --git a/test/built-ins/Array/isArray/15.4.3.2-2-3.js b/test/built-ins/Array/isArray/15.4.3.2-2-3.js
index 626e83720..02da7c143 100644
--- a/test/built-ins/Array/isArray/15.4.3.2-2-3.js
+++ b/test/built-ins/Array/isArray/15.4.3.2-2-3.js
@@ -9,4 +9,8 @@ description: >
indexed properties
---*/
-assert.sameValue(Array.isArray({ 0: 12, 1: 9, length: 2 }), false, 'Array.isArray({ 0: 12, 1: 9, length: 2 })');
+assert.sameValue(Array.isArray({
+ 0: 12,
+ 1: 9,
+ length: 2
+}), false, 'Array.isArray({ 0: 12, 1: 9, length: 2 })');
diff --git a/test/built-ins/Array/length/15.4.5.1-3.d-1.js b/test/built-ins/Array/length/15.4.5.1-3.d-1.js
index 651cf5c11..952585672 100644
--- a/test/built-ins/Array/length/15.4.5.1-3.d-1.js
+++ b/test/built-ins/Array/length/15.4.5.1-3.d-1.js
@@ -11,5 +11,5 @@ description: >
assert.throws(RangeError, function() {
- [].length = 4294967296 ;
+ [].length = 4294967296;
});
diff --git a/test/built-ins/Array/length/15.4.5.1-3.d-2.js b/test/built-ins/Array/length/15.4.5.1-3.d-2.js
index 7e1dc6a25..2162edb4a 100644
--- a/test/built-ins/Array/length/15.4.5.1-3.d-2.js
+++ b/test/built-ins/Array/length/15.4.5.1-3.d-2.js
@@ -11,5 +11,5 @@ description: >
assert.throws(RangeError, function() {
- [].length = 4294967297 ;
+ [].length = 4294967297;
});
diff --git a/test/built-ins/Array/length/15.4.5.1-3.d-3.js b/test/built-ins/Array/length/15.4.5.1-3.d-3.js
index 38e354224..7c03867da 100644
--- a/test/built-ins/Array/length/15.4.5.1-3.d-3.js
+++ b/test/built-ins/Array/length/15.4.5.1-3.d-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.5.1-3.d-3
description: Set array length property to max value 4294967295 (2**32-1,)
---*/
- var a =[];
- a.length = 4294967295 ;
+var a = [];
+a.length = 4294967295;
assert.sameValue(a.length, 4294967295, 'a.length');
diff --git a/test/built-ins/Array/length/S15.4.2.2_A2.2_T1.js b/test/built-ins/Array/length/S15.4.2.2_A2.2_T1.js
index 0b659bf9b..d0c216a96 100644
--- a/test/built-ins/Array/length/S15.4.2.2_A2.2_T1.js
+++ b/test/built-ins/Array/length/S15.4.2.2_A2.2_T1.js
@@ -14,7 +14,7 @@ description: Use try statement. len = -1, 4294967296, 4294967297
try {
new Array(-1);
$ERROR('#1.1: new Array(-1) throw RangeError. Actual: ' + (new Array(-1)));
-} catch(e) {
+} catch (e) {
if ((e instanceof RangeError) !== true) {
$ERROR('#1.2: new Array(-1) throw RangeError. Actual: ' + (e));
}
@@ -24,7 +24,7 @@ try {
try {
new Array(4294967296);
$ERROR('#2.1: new Array(4294967296) throw RangeError. Actual: ' + (new Array(4294967296)));
-} catch(e) {
+} catch (e) {
if ((e instanceof RangeError) !== true) {
$ERROR('#2.2: new Array(4294967296) throw RangeError. Actual: ' + (e));
}
@@ -34,7 +34,7 @@ try {
try {
new Array(4294967297);
$ERROR('#3.1: new Array(4294967297) throw RangeError. Actual: ' + (new Array(4294967297)));
-} catch(e) {
+} catch (e) {
if ((e instanceof RangeError) !== true) {
$ERROR('#3.2: new Array(4294967297) throw RangeError. Actual: ' + (e));
}
diff --git a/test/built-ins/Array/length/S15.4.2.2_A2.2_T2.js b/test/built-ins/Array/length/S15.4.2.2_A2.2_T2.js
index abe3b60e7..3c117d19c 100644
--- a/test/built-ins/Array/length/S15.4.2.2_A2.2_T2.js
+++ b/test/built-ins/Array/length/S15.4.2.2_A2.2_T2.js
@@ -14,7 +14,7 @@ description: Use try statement. len = NaN, +/-Infinity
try {
new Array(NaN);
$ERROR('#1.1: new Array(NaN) throw RangeError. Actual: ' + (new Array(NaN)));
-} catch(e) {
+} catch (e) {
if ((e instanceof RangeError) !== true) {
$ERROR('#1.2: new Array(NaN) throw RangeError. Actual: ' + (e));
}
@@ -24,7 +24,7 @@ try {
try {
new Array(Number.POSITIVE_INFINITY);
$ERROR('#2.1: new Array(Number.POSITIVE_INFINITY) throw RangeError. Actual: ' + (new Array(Number.POSITIVE_INFINITY)));
-} catch(e) {
+} catch (e) {
if ((e instanceof RangeError) !== true) {
$ERROR('#2.2: new Array(Number.POSITIVE_INFINITY) throw RangeError. Actual: ' + (e));
}
@@ -34,7 +34,7 @@ try {
try {
new Array(Number.NEGATIVE_INFINITY);
$ERROR('#3.1: new Array(Number.NEGATIVE_INFINITY) throw RangeError. Actual: ' + (new Array(Number.NEGATIVE_INFINITY)));
-} catch(e) {
+} catch (e) {
if ((e instanceof RangeError) !== true) {
$ERROR('#3.2: new Array(Number.NEGATIVE_INFINITY) throw RangeError. Actual: ' + (e));
}
diff --git a/test/built-ins/Array/length/S15.4.2.2_A2.2_T3.js b/test/built-ins/Array/length/S15.4.2.2_A2.2_T3.js
index 9822c925c..6cd213037 100644
--- a/test/built-ins/Array/length/S15.4.2.2_A2.2_T3.js
+++ b/test/built-ins/Array/length/S15.4.2.2_A2.2_T3.js
@@ -14,7 +14,7 @@ description: Use try statement. len = 1.5, Number.MAX_VALUE, Number.MIN_VALUE
try {
new Array(1.5);
$ERROR('#1.1: new Array(1.5) throw RangeError. Actual: ' + (new Array(1.5)));
-} catch(e) {
+} catch (e) {
if ((e instanceof RangeError) !== true) {
$ERROR('#1.2: new Array(1.5) throw RangeError. Actual: ' + (e));
}
@@ -24,7 +24,7 @@ try {
try {
new Array(Number.MAX_VALUE);
$ERROR('#2.1: new Array(Number.MAX_VALUE) throw RangeError. Actual: ' + (new Array(Number.MAX_VALUE)));
-} catch(e) {
+} catch (e) {
if ((e instanceof RangeError) !== true) {
$ERROR('#2.2: new Array(Number.MAX_VALUE) throw RangeError. Actual: ' + (e));
}
@@ -34,7 +34,7 @@ try {
try {
new Array(Number.MIN_VALUE);
$ERROR('#3.1: new Array(Number.MIN_VALUE) throw RangeError. Actual: ' + (new Array(Number.MIN_VALUE)));
-} catch(e) {
+} catch (e) {
if ((e instanceof RangeError) !== true) {
$ERROR('#3.2: new Array(Number.MIN_VALUE) throw RangeError. Actual: ' + (e));
}
diff --git a/test/built-ins/Array/length/S15.4.5.1_A1.1_T1.js b/test/built-ins/Array/length/S15.4.5.1_A1.1_T1.js
index 7435827c6..c09ba6e72 100644
--- a/test/built-ins/Array/length/S15.4.5.1_A1.1_T1.js
+++ b/test/built-ins/Array/length/S15.4.5.1_A1.1_T1.js
@@ -13,7 +13,7 @@ try {
var x = [];
x.length = 4294967296;
$ERROR('#1.1: x = []; x.length = 4294967296 throw RangeError. Actual: x.length === ' + (x.length));
-} catch(e) {
+} catch (e) {
if ((e instanceof RangeError) !== true) {
$ERROR('#1.2: x = []; x.length = 4294967296 throw RangeError. Actual: ' + (e));
}
@@ -24,7 +24,7 @@ try {
x = [];
x.length = -1;
$ERROR('#2.1: x = []; x.length = -1 throw RangeError. Actual: x.length === ' + (x.length));
-} catch(e) {
+} catch (e) {
if ((e instanceof RangeError) !== true) {
$ERROR('#2.2: x = []; x.length = -1 throw RangeError. Actual: ' + (e));
}
@@ -35,7 +35,7 @@ try {
x = [];
x.length = 1.5;
$ERROR('#3.1: x = []; x.length = 1.5 throw RangeError. Actual: x.length === ' + (x.length));
-} catch(e) {
+} catch (e) {
if ((e instanceof RangeError) !== true) {
$ERROR('#3.2: x = []; x.length = 1.5 throw RangeError. Actual: ' + (e));
}
diff --git a/test/built-ins/Array/length/S15.4.5.1_A1.1_T2.js b/test/built-ins/Array/length/S15.4.5.1_A1.1_T2.js
index 55ce90487..e8ac8faa9 100644
--- a/test/built-ins/Array/length/S15.4.5.1_A1.1_T2.js
+++ b/test/built-ins/Array/length/S15.4.5.1_A1.1_T2.js
@@ -13,7 +13,7 @@ try {
var x = [];
x.length = NaN;
$ERROR('#1.1: x = []; x.length = NaN throw RangeError. Actual: x.length === ' + (x.length));
-} catch(e) {
+} catch (e) {
if ((e instanceof RangeError) !== true) {
$ERROR('#1.2: x = []; x.length = NaN throw RangeError. Actual: ' + (e));
}
@@ -24,7 +24,7 @@ try {
x = [];
x.length = Number.POSITIVE_INFINITY;
$ERROR('#2.1: x = []; x.length = Number.POSITIVE_INFINITY throw RangeError. Actual: x.length === ' + (x.length));
-} catch(e) {
+} catch (e) {
if ((e instanceof RangeError) !== true) {
$ERROR('#2.2: x = []; x.length = Number.POSITIVE_INFINITY throw RangeError. Actual: ' + (e));
}
@@ -35,7 +35,7 @@ try {
x = [];
x.length = Number.NEGATIVE_INFINITY;
$ERROR('#3.1: x = []; x.length = Number.NEGATIVE_INFINITY throw RangeError. Actual: x.length === ' + (x.length));
-} catch(e) {
+} catch (e) {
if ((e instanceof RangeError) !== true) {
$ERROR('#3.2: x = []; x.length = Number.NEGATIVE_INFINITY throw RangeError. Actual: ' + (e));
}
@@ -46,7 +46,7 @@ try {
x = [];
x.length = undefined;
$ERROR('#4.1: x = []; x.length = undefined throw RangeError. Actual: x.length === ' + (x.length));
-} catch(e) {
+} catch (e) {
if ((e instanceof RangeError) !== true) {
$ERROR('#4.2: x = []; x.length = undefined throw RangeError. Actual: ' + (e));
}
diff --git a/test/built-ins/Array/length/S15.4.5.1_A1.2_T1.js b/test/built-ins/Array/length/S15.4.5.1_A1.2_T1.js
index d213067fe..24bccec08 100644
--- a/test/built-ins/Array/length/S15.4.5.1_A1.2_T1.js
+++ b/test/built-ins/Array/length/S15.4.5.1_A1.2_T1.js
@@ -13,7 +13,7 @@ description: Change length of array
---*/
//CHECK#1
-var x = [0,,2,,4];
+var x = [0, , 2, , 4];
x.length = 4;
if (x[4] !== undefined) {
$ERROR('#1: x = [0,,2,,4]; x.length = 4; x[4] === undefined. Actual: ' + (x[4]));
diff --git a/test/built-ins/Array/length/S15.4.5.1_A1.2_T3.js b/test/built-ins/Array/length/S15.4.5.1_A1.2_T3.js
index 0594a6b6a..f9800a66e 100644
--- a/test/built-ins/Array/length/S15.4.5.1_A1.2_T3.js
+++ b/test/built-ins/Array/length/S15.4.5.1_A1.2_T3.js
@@ -14,7 +14,7 @@ description: Checking an inherited property
//CHECK#1
Array.prototype[2] = 2;
-var x = [0,1];
+var x = [0, 1];
x.length = 3;
if (x.hasOwnProperty('2') !== false) {
$ERROR('#1: Array.prototype[2] = 2; x = [0,1]; x.length = 3; x.hasOwnProperty(\'2\') === false. Actual: ' + (x.hasOwnProperty('2')));
diff --git a/test/built-ins/Array/length/S15.4.5.1_A1.3_T2.js b/test/built-ins/Array/length/S15.4.5.1_A1.3_T2.js
index c9b7615f9..534484231 100644
--- a/test/built-ins/Array/length/S15.4.5.1_A1.3_T2.js
+++ b/test/built-ins/Array/length/S15.4.5.1_A1.3_T2.js
@@ -10,21 +10,39 @@ description: Uint32 use ToNumber and ToPrimitve
//CHECK#1
var x = [];
-x.length = {valueOf: function() {return 2}};
+x.length = {
+ valueOf: function() {
+ return 2
+ }
+};
if (x.length !== 2) {
$ERROR('#1: x = []; x.length = {valueOf: function() {return 2}}; x.length === 2. Actual: ' + (x.length));
}
//CHECK#2
x = [];
-x.length = {valueOf: function() {return 2}, toString: function() {return 1}};
+x.length = {
+ valueOf: function() {
+ return 2
+ },
+ toString: function() {
+ return 1
+ }
+};
if (x.length !== 2) {
$ERROR('#0: x = []; x.length = {valueOf: function() {return 2}, toString: function() {return 1}}; x.length === 2. Actual: ' + (x.length));
}
//CHECK#3
x = [];
-x.length = {valueOf: function() {return 2}, toString: function() {return {}}};
+x.length = {
+ valueOf: function() {
+ return 2
+ },
+ toString: function() {
+ return {}
+ }
+};
if (x.length !== 2) {
$ERROR('#3: x = []; x.length = {valueOf: function() {return 2}, toString: function() {return {}}}; x.length === 2. Actual: ' + (x.length));
}
@@ -32,7 +50,14 @@ if (x.length !== 2) {
//CHECK#4
try {
x = [];
- x.length = {valueOf: function() {return 2}, toString: function() {throw "error"}};
+ x.length = {
+ valueOf: function() {
+ return 2
+ },
+ toString: function() {
+ throw "error"
+ }
+ };
if (x.length !== 2) {
$ERROR('#4.1: x = []; x.length = {valueOf: function() {return 2}, toString: function() {throw "error"}}; x.length === ",". Actual: ' + (x.length));
}
@@ -47,14 +72,25 @@ catch (e) {
//CHECK#5
x = [];
-x.length = {toString: function() {return 1}};
+x.length = {
+ toString: function() {
+ return 1
+ }
+};
if (x.length !== 1) {
$ERROR('#5: x = []; x.length = {toString: function() {return 1}}; x.length === 1. Actual: ' + (x.length));
}
//CHECK#6
x = [];
-x.length = {valueOf: function() {return {}}, toString: function() {return 1}}
+x.length = {
+ valueOf: function() {
+ return {}
+ },
+ toString: function() {
+ return 1
+ }
+}
if (x.length !== 1) {
$ERROR('#6: x = []; x.length = {valueOf: function() {return {}}, toString: function() {return 1}}; x.length === 1. Actual: ' + (x.length));
}
@@ -62,7 +98,14 @@ if (x.length !== 1) {
//CHECK#7
try {
x = [];
- x.length = {valueOf: function() {throw "error"}, toString: function() {return 1}};
+ x.length = {
+ valueOf: function() {
+ throw "error"
+ },
+ toString: function() {
+ return 1
+ }
+ };
x.length;
$ERROR('#7.1: x = []; x.length = {valueOf: function() {throw "error"}, toString: function() {return 1}}; x.length throw "error". Actual: ' + (x.length));
}
@@ -75,7 +118,14 @@ catch (e) {
//CHECK#8
try {
x = [];
- x.length = {valueOf: function() {return {}}, toString: function() {return {}}};
+ x.length = {
+ valueOf: function() {
+ return {}
+ },
+ toString: function() {
+ return {}
+ }
+ };
x.length;
$ERROR('#8.1: x = []; x.length = {valueOf: function() {return {}}, toString: function() {return {}}} x.length throw TypeError. Actual: ' + (x.length));
}
diff --git a/test/built-ins/Array/length/S15.4.5.2_A3_T4.js b/test/built-ins/Array/length/S15.4.5.2_A3_T4.js
index 1bcbb6f97..afd9985b1 100644
--- a/test/built-ins/Array/length/S15.4.5.2_A3_T4.js
+++ b/test/built-ins/Array/length/S15.4.5.2_A3_T4.js
@@ -13,7 +13,7 @@ description: >
---*/
//CHECK#1
-var x = [0,1,2];
+var x = [0, 1, 2];
x[4294967294] = 4294967294;
x.length = 2;
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 121bcd6df..3910be2f0 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 f51ca7107..61ecb1a26 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 00fea1dd7..3baf72a4a 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,9 +10,11 @@ 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 14de922be..82cf5a767 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,7 +15,17 @@ 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 1c63b62f4..8b94d6594 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,7 +16,12 @@ 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 0322eaf1e..907a30b7b 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,13 +9,21 @@ 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 3b747f931..bfdf3c8e9 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,7 +17,12 @@ 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 d8bab8d4a..44082769b 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,7 +10,9 @@ 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 dcf593907..cb37746a2 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,7 +31,9 @@ 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 3aef5b782..c040d94a1 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,7 +13,9 @@ 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 f6ed9cf11..bd080ee42 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 8aefe98da..605330051 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,9 +10,13 @@ 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 effb606b3..a6bca8a0d 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,9 +11,13 @@ 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 d80545620..54e80acef 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,9 +10,13 @@ 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 09fc40e0b..1d5c1ecbb 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,7 +31,9 @@ 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 00ec7689b..ed021358f 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 5b5b5aca4..8ed6bf21c 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 626f6d292..8a0b64dee 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,7 +12,9 @@ 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 9ea803b4b..d28acb7d1 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 4003fe33c..6a11c8eca 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 4b3f40d18..1c4aa7f2d 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,7 +10,9 @@ 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 2d8b5868a..49dfc415c 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,9 +10,14 @@ 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 7a590596d..e06836b67 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 4024275a2..100ecaa9d 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 bb88eba5e..82a8d6f00 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 028207051..44ca8f91f 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 ce825917a..a77b0e07c 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 e98d9e41d..ed7c03c9f 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,7 +33,9 @@ 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 b58435329..843410296 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,4 +62,3 @@ 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 c86f736cb..e1eacc545 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,4 +62,3 @@ 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 171e2baab..b33667a9a 100644
--- a/test/built-ins/Array/prototype/concat/create-non-array.js
+++ b/test/built-ins/Array/prototype/concat/create-non-array.js
@@ -15,7 +15,9 @@ 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 9cb416ae1..a1d4e04a4 100644
--- a/test/built-ins/Array/prototype/copyWithin/coerced-values-end.js
+++ b/test/built-ins/Array/prototype/copyWithin/coerced-values-end.js
@@ -17,48 +17,42 @@ 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 182655bf5..5789f7ede 100644
--- a/test/built-ins/Array/prototype/copyWithin/coerced-values-start.js
+++ b/test/built-ins/Array/prototype/copyWithin/coerced-values-start.js
@@ -16,32 +16,28 @@ 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'
);
@@ -49,8 +45,7 @@ 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'
);
@@ -58,24 +53,21 @@ 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 2646b19f2..54465b97a 100644
--- a/test/built-ins/Array/prototype/copyWithin/coerced-values-target.js
+++ b/test/built-ins/Array/prototype/copyWithin/coerced-values-target.js
@@ -16,32 +16,28 @@ 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'
);
@@ -49,8 +45,7 @@ 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'
);
@@ -58,24 +53,21 @@ 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 70aa0e0e2..81e97abfd 100644
--- a/test/built-ins/Array/prototype/copyWithin/negative-end.js
+++ b/test/built-ins/Array/prototype/copyWithin/negative-end.js
@@ -20,64 +20,56 @@ 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 072d03e70..34b837461 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,80 +20,70 @@ 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 1f31fc9eb..e3002b70f 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,32 +17,28 @@ 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]'
);
@@ -50,16 +46,14 @@ 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]'
);
@@ -67,16 +61,14 @@ 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 72b95dcac..f17ab8a8a 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,32 +17,28 @@ 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 4cec365ad..3989b288d 100644
--- a/test/built-ins/Array/prototype/copyWithin/negative-start.js
+++ b/test/built-ins/Array/prototype/copyWithin/negative-start.js
@@ -17,48 +17,42 @@ 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 29fd24975..99844a4b8 100644
--- a/test/built-ins/Array/prototype/copyWithin/negative-target.js
+++ b/test/built-ins/Array/prototype/copyWithin/negative-target.js
@@ -17,24 +17,21 @@ 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 6af95e724..d20bc64c2 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,32 +36,28 @@ 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 e38edecd7..64f3c5854 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,64 +30,56 @@ 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]'
);
@@ -95,24 +87,21 @@ 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]'
);
@@ -120,32 +109,28 @@ 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 9704fcc62..02a6bc4e7 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,28 +34,24 @@ 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 89a665ad5..4dbc5479c 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,24 +36,21 @@ 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]'
);
@@ -71,16 +68,14 @@ 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 6d69262ff..a81b4ac32 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,4 +23,3 @@ 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 37768729c..669404441 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,4 +22,3 @@ 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 93c75620e..6ef024c75 100644
--- a/test/built-ins/Array/prototype/copyWithin/undefined-end.js
+++ b/test/built-ins/Array/prototype/copyWithin/undefined-end.js
@@ -17,16 +17,14 @@ 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 32c5b4f6a..0d88f961e 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,6 +8,7 @@ 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 91827adfc..7bd133c74 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,6 +8,7 @@ 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 09439db09..255a5afc2 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,6 +8,7 @@ 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 f33885b89..bf6992cf1 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 88dc9700a..c895c286c 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 135cc936d..9f2497b6a 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 2f71539f4..4cc13deab 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,16 +17,19 @@ 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 07dc5015e..0c03deb22 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 f88589524..eb91b3e56 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,7 +16,10 @@ 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 bf6fcd0c8..7d4e3200c 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 89977f222..c7c951235 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 57c559260..203eaee8a 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,9 +17,11 @@ 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 c071a8875..cebdab087 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,6 +10,7 @@ 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 6cd638bdb..1f4ffc7a8 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 b464e4151..264d43dd2 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,9 +17,11 @@ 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 bcc252a2b..9e29cd715 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 298e148b0..d3a3e96ab 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,16 +17,18 @@ 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 48387126b..4dd430d1b 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 b745f20c1..a72ca6863 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,7 +14,10 @@ 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 c8029d4a0..b381ef7d2 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,7 +16,10 @@ 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 9b27d025a..ab5fa5744 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,7 +17,12 @@ 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 0c2a3f97e..bdf1ee93e 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,7 +17,12 @@ 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 0043f34ee..23c734251 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,7 +17,12 @@ 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 1d99f1e2e..c20b8194a 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,13 +10,22 @@ 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 dcdda5fae..63ceb586e 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,7 +17,12 @@ 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 4e7f6f97c..ea0e8386c 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,7 +17,12 @@ 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 eb35d70b1..0125b2b77 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,7 +17,12 @@ 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 96846f106..c06bc6c27 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,7 +16,11 @@ 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 15d3f5af9..a2bc1211f 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 bb2431acb..fb8444d54 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,7 +17,11 @@ 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 4f12b7bd7..a642c0ad1 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 cc8359790..7f57fb9f2 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 44c8deb75..a0f549b95 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 e282dd269..19f4be0b2 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 61c2e627b..88db17559 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,15 +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: 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 3d052320a..d6a174f87 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 9abe0e936..eaf990b5b 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 c792c27c6..4636ccf3e 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,14 +7,17 @@ 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 c17e335a4..68a0bf50a 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,14 +7,17 @@ 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 eb9f48ba3..d041e7add 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,14 +7,17 @@ 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 1d1b15ef1..0ea6839cb 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,15 +9,20 @@ 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 977bb65f9..880c26aab 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,15 +9,20 @@ 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 6496da4f0..47a09300d 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,14 +9,17 @@ 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 9499801b8..7166e98b8 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,14 +9,17 @@ 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 8cefedbe0..c0d6ba0cb 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 abbff39d2..2f458442b 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,15 +9,18 @@ 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 4e4b09b69..2cd9bba54 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,19 +9,22 @@ 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 ded81c8a4..a137acbc3 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 2f4fa8f8c..207a615ff 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,27 +9,29 @@ 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 103f22d6a..2613f1cf3 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 1b7631332..6a1c03772 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 deb04c6f2..a2d5c7aef 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 6597e4599..eb07314b1 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 f512f2151..51e13d6d1 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 a3e75ff59..cb6ef73b1 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,18 +9,21 @@ 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 fc1acaa02..efe205eb4 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,22 +9,25 @@ 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 989a6ee20..2d906315f 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 360f9850f..a3bdbc170 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 5d7c8a6e9..087f9c2a3 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 41792ec1d..dce15d0f4 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 cbb7ddf8b..97b5771b3 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 34e73df32..da8f79938 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 697ef848e..a5cc48fbf 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 66a64d987..7133cd487 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 091caa14c..1edd76714 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 9e9bd18e8..2a5162a9c 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 a944bff81..bae882c7c 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 7a3e06e09..3b39e1826 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 f15102c64..96c0d39a4 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,14 +7,15 @@ es5id: 15.4.4.16-5-2
description: Array.prototype.every - thisArg is Object
---*/
- var res = false;
- var o = new Object();
- o.res = true;
- function callbackfn(val, idx, obj)
- {
- return this.res;
- }
+var res = false;
+var o = new Object();
+o.res = true;
- var arr = [1];
+function callbackfn(val, idx, obj)
+{
+ return this.res;
+}
+
+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 7da5e8193..50d36ddce 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 d580818a6..90dcfb2df 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 7953a7006..ba19fd209 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 c9da3d991..4439dca25 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 69f614ff8..1a1bb9b7d 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,14 +7,15 @@ es5id: 15.4.4.16-5-3
description: Array.prototype.every - thisArg is Array
---*/
- var res = false;
- var a = new Array();
- a.res = true;
- function callbackfn(val, idx, obj)
- {
- return this.res;
- }
+var res = false;
+var a = new Array();
+a.res = true;
- var arr = [1];
+function callbackfn(val, idx, obj)
+{
+ return this.res;
+}
+
+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 45ee186d1..b3e03058a 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,15 +9,16 @@ description: >
template(prototype)
---*/
- var res = false;
- function callbackfn(val, idx, obj)
- {
- return this.res;
- }
+var res = false;
- function foo(){}
- foo.prototype.res = true;
- var f = new foo();
- var arr = [1];
+function callbackfn(val, idx, obj)
+{
+ return this.res;
+}
-assert.sameValue(arr.every(callbackfn,f), true, 'arr.every(callbackfn,f)');
+function foo() {}
+foo.prototype.res = true;
+var f = new foo();
+var arr = [1];
+
+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 c0447933f..47ce23ac6 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,15 +7,16 @@ es5id: 15.4.4.16-5-5
description: Array.prototype.every - thisArg is object from object template
---*/
- var res = false;
- function callbackfn(val, idx, obj)
- {
- return this.res;
- }
+var res = false;
- function foo(){}
- var f = new foo();
- f.res = true;
- var arr = [1];
+function callbackfn(val, idx, obj)
+{
+ return this.res;
+}
-assert.sameValue(arr.every(callbackfn,f), true, 'arr.every(callbackfn,f)');
+function foo() {}
+var f = new foo();
+f.res = true;
+var arr = [1];
+
+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 f871e3a43..a71c98ee2 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,14 +7,15 @@ es5id: 15.4.4.16-5-6
description: Array.prototype.every - thisArg is function
---*/
- var res = false;
- function callbackfn(val, idx, obj)
- {
- return this.res;
- }
+var res = false;
- function foo(){}
- foo.res = true;
- var arr = [1];
+function callbackfn(val, idx, obj)
+{
+ return this.res;
+}
-assert.sameValue(arr.every(callbackfn,foo), true, 'arr.every(callbackfn,foo)');
+function foo() {}
+foo.res = true;
+var arr = [1];
+
+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 3fa6fc9e7..ff38fcdc4 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 400c0ca84..275789142 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 e8d6745dd..22bcfaff6 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 fcb91af17..47d3ed4e5 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 214575295..08531fe61 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 0cfdd4ebc..9cbb2eda0 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 c7cfcd23e..c4c062bdf 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 1cf937c7c..45bcdd29a 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-6.js
@@ -9,19 +9,19 @@ description: >
call when same index is also present in prototype
---*/
- function callbackfn(val, Idx, obj)
- {
- delete arr[2];
- if(val == 3)
- return false;
- else
- return true;
- }
+function callbackfn(val, Idx, obj)
+{
+ delete arr[2];
+ if (val == 3)
+ return false;
+ else
+ return true;
+}
- Array.prototype[2] = 3;
- var arr = [1,2,3,4,5];
+Array.prototype[2] = 3;
+var arr = [1, 2, 3, 4, 5];
- var res = arr.every(callbackfn);
- delete Array.prototype[2];
+var res = arr.every(callbackfn);
+delete Array.prototype[2];
assert.sameValue(res, false, 'res');
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 7eaab5078..d25bd744d 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 079db7b2d..ff2f0f8be 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,14 +7,18 @@ 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 ded5d48e2..c1bbdfc1b 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,22 +9,26 @@ 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 e0f07ee54..abcf91365 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,15 +9,16 @@ description: >
been assigned values
---*/
- var callCnt = 0.;
- function callbackfn(val, Idx, obj)
- {
- callCnt++;
- return true;
- }
+var callCnt = 0.;
- var arr = new Array(10);
- arr[1] = undefined;
- arr.every(callbackfn);
+function callbackfn(val, Idx, obj)
+{
+ callCnt++;
+ return true;
+}
+
+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 e27ff642f..913796b1f 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,22 +9,26 @@ description: >
prototype index property not to be visited on an Array-like Object
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return idx !== 1;
- }
- var arr = { 2: 2, length: 20 };
+var accessed = false;
- Object.defineProperty(arr, "0", {
- get: function () {
- delete Object.prototype[1];
- return 0;
- },
- configurable: true
- });
+function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx !== 1;
+}
+var arr = {
+ 2: 2,
+ length: 20
+};
- Object.prototype[1] = 1;
+Object.defineProperty(arr, "0", {
+ get: function() {
+ delete Object.prototype[1];
+ return 0;
+ },
+ configurable: true
+});
+
+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 54c86d50e..c9ff957cb 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,22 +9,23 @@ description: >
prototype index property not to be visited on an Array
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return idx !== 1;
- }
- var arr = [0, , 2];
+var accessed = false;
- Object.defineProperty(arr, "0", {
- get: function () {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
- });
+function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx !== 1;
+}
+var arr = [0, , 2];
- Array.prototype[1] = 1;
+Object.defineProperty(arr, "0", {
+ get: function() {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+});
+
+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 fda1fe2a7..63282ca55 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,23 +10,28 @@ 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 4032502e5..26f3f17d1 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 5115a27a3..a017ff964 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,20 +9,21 @@ description: >
property not to be visited
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return idx !== 3;
- }
- var arr = [0, 1, 2, "last"];
+var accessed = false;
- Object.defineProperty(arr, "0", {
- get: function () {
- arr.length = 3;
- return 0;
- },
- configurable: true
- });
+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
+});
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 03fa5344f..eeb2786e3 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 602b4b80c..2bd39ef0a 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 fca306466..56c5b404f 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 9c7afe89a..ca526b8ca 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,20 +9,24 @@ description: >
here
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return idx !== 2;
- }
- var arr = { 2: 6.99, 8: 19};
+var accessed = false;
- Object.defineProperty(arr, "length", {
- get: function () {
- delete arr[2];
- return 10;
- },
- configurable: true
- });
+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
+});
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 dbcbe21dd..691affd2c 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,27 +9,29 @@ 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 5fd08b67e..75cff0bfe 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 4a71a8389..27663980c 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,26 +9,28 @@ 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 692c399de..92daa04a1 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 4bb911375..76f5f1cc0 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,27 +9,30 @@ description: >
property not to be visited on an Array-like object
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return idx !== 1;
- }
- var obj = { length: 2 };
+var accessed = false;
- Object.defineProperty(obj, "1", {
- get: function () {
- return 6.99;
- },
- configurable: true
- });
+function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx !== 1;
+}
+var obj = {
+ length: 2
+};
- Object.defineProperty(obj, "0", {
- get: function () {
- delete obj[1];
- return 0;
- },
- 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
+});
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 2c340f8d6..9159db986 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,27 +9,28 @@ description: >
property not to be visited on an Array
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return idx !== 1;
- }
- var arr = [1, 2];
+var accessed = false;
- Object.defineProperty(arr, "1", {
- get: function () {
- return "6.99";
- },
- configurable: true
- });
+function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx !== 1;
+}
+var arr = [1, 2];
- Object.defineProperty(arr, "0", {
- get: function () {
- delete arr[1];
- return 0;
- },
- 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
+});
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 579deb13d..fd1e28b5f 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,15 +9,19 @@ description: >
property on an Array-like object
---*/
- var kValue = { };
- function callbackfn(val, idx, obj) {
- if (idx === 5) {
- return val !== kValue;
- } else {
- return true;
- }
- }
+var kValue = {};
- var obj = { 5: kValue, length: 100 };
+function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ return val !== kValue;
+ } else {
+ return true;
+ }
+}
+
+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 1357bbb23..653e5e244 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 9527daf83..4168c98f9 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,27 +10,30 @@ 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 54751e566..c1f29b18b 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 aff2f0b0e..5ffb1d544 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 544ef938b..1cf1f75a2 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 bc8906dfc..aab698397 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 20a274180..c249d76b1 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 948c741bd..9b52fef8f 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,18 +9,20 @@ 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 7911ea384..300d32b82 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 26ae16c5a..cc150375a 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,20 +10,22 @@ 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 5a201fde8..5afcd1e0b 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 38e384bb2..8a5fa3139 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 c905856ef..b6d06142e 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 aaa682d44..9477b201f 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 2900f5033..c39d50664 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 6e636fbb9..3e1c7da80 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 c1c2719de..2002d812a 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 d39ed23c0..425efe589 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 dbc91eb15..90c121c97 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,30 +9,32 @@ 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 c4fe3a814..d0eac70c0 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,21 +9,24 @@ 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 3bd5fd649..04f0d5138 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,22 +9,28 @@ description: >
terminate iteration on an Array-like object
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
- return true;
- }
+var accessed = false;
- 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
- });
+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
+});
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 3214e3376..b28796ac8 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,25 +9,26 @@ description: >
terminate iteration on an Array
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
- return true;
- }
+var accessed = false;
- var arr = [];
- arr[5] = 10;
- arr[10] = 100;
+function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ accessed = true;
+ }
+ return true;
+}
- Object.defineProperty(arr, "1", {
- get: function () {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
- });
+var arr = [];
+arr[5] = 10;
+arr[10] = 100;
+
+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 9c598c783..d9e81c6df 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,14 +9,15 @@ description: >
property that overrides an inherited data property on an Array
---*/
- var called = 0;
- function callbackfn(val, idx, obj) {
- called++;
- return val === 12;
- }
+var called = 0;
- Array.prototype[0] = 11;
- Array.prototype[1] = 11;
+function callbackfn(val, idx, obj) {
+ called++;
+ return val === 12;
+}
+
+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 988ac8f6e..25c267078 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 da98350be..9575fe8ad 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 f0d11eb5b..10d9ab7db 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,22 +9,24 @@ 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 f36b54236..507af757a 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 5b37f8ab4..49392cb8a 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,22 +9,25 @@ 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 559925a69..fff7c361c 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 3a67002bf..118130921 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 41797d60c..1ed6ecb0d 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 0724d0b3f..62eefe55b 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 340b49aff..8f30c0a8c 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 f9a5dc890..379efe765 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,14 +9,17 @@ 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 3732ea441..f9d83678e 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,14 +9,17 @@ 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 3392433cb..17c1668bc 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,14 +9,17 @@ 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 f861f38e6..cc7626465 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,14 +7,19 @@ 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 0194ce387..daacdfda4 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 9cb001e0c..23fe1f4c1 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,15 +9,20 @@ 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 2d193c698..415365713 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,21 +9,25 @@ 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 524d61965..bd56fc0a9 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,21 +9,25 @@ 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 e5567884b..59a1e5566 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,13 +9,17 @@ 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 39da9d01f..f35df8913 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,17 +9,18 @@ description: >
returns false
---*/
- var callCnt = 0;
- function callbackfn(val, idx, obj)
- {
- callCnt++;
- if(idx > 5)
- return false;
- else
- return true;
- }
+var callCnt = 0;
- var arr = [0,1,2,3,4,5,6,7,8,9];
+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];
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 9a4216a67..07a4d691a 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,18 +9,19 @@ 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 edd62427f..f604f9672 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 d1c33e967..df9f83143 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,17 +7,20 @@ 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 d3f0f8eff..c1a6345d8 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,20 +9,25 @@ 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 26fb2b97a..6f015b207 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,14 +9,18 @@ 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 dfc3894db..b03364275 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 f29e4f155..bafc7b841 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,13 +7,16 @@ 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 6f806273d..f495dd02c 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 923f6e28b..b761964ae 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 a8ee187e3..0ac2e5536 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 4185bfa74..931cb99ca 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 5e7cbea1c..ce75448e9 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 2b577983b..0ab89ec09 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 eec81ccd6..f7f6f6873 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 bdf6d7314..273fb64fd 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 37d3ecc27..7cde6eabf 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 f9ef17f28..7306e5e45 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 7084a3776..62e4d0589 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,13 +7,16 @@ 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 7a68faf9f..2026f6357 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 ef6432c3d..3b16afa42 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 b7b1437a8..3616be141 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 80b30b5f6..87151094b 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 3075fcdb6..7141b6a71 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 fcfc6b35c..8efc3f174 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 5f962f32f..2b650660b 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 7c1df38b4..0475c7ff5 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,37 +7,39 @@ 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 796bd2ea5..7571d0ec3 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 c8583c061..bcd7891c7 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,13 +9,16 @@ 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 31b4185b9..34469360c 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,13 +9,16 @@ 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 93790b433..b1ce805ac 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 fc0eaa069..5ca005865 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 4ec5e4a5e..3b152c86b 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 59a89680e..0c2b63f00 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 18ff44cc4..1830a7d9a 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 d074dbf34..e5fb2db83 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 e69633f91..a865a6c4b 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,19 +7,20 @@ es5id: 15.4.4.16-8-10
description: Array.prototype.every - subclassed array when length is reduced
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = 2;
+foo.prototype = new Array(1, 2, 3);
- function cb(val)
- {
- if(val>2)
- return false;
- else
- return true;
- }
- var i = f.every(cb);
+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);
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 9403b2acd..b407fe4e7 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,14 +9,15 @@ description: >
return true
---*/
- var callCnt = 0;
- function callbackfn(val, idx, obj)
- {
- callCnt++;
- return true;
- }
+var callCnt = 0;
- var arr = [0,1,2,3,4,5,6,7,8,9];
+function callbackfn(val, idx, obj)
+{
+ callCnt++;
+ return true;
+}
+
+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 844e0bf62..7100aecd5 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 3a41b2c36..66b56af96 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,16 +7,17 @@ es5id: 15.4.4.16-8-13
description: Array.prototype.every doesn't visit expandos
---*/
- var callCnt = 0;
- function callbackfn(val, idx, obj)
- {
- callCnt++;
- return true;
- }
+var callCnt = 0;
- var arr = [0,1,2,3,4,5,6,7,8,9];
- arr["i"] = 10;
- arr[true] = 11;
+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;
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 9d9d694b1..90ef805f6 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,13 +9,14 @@ description: >
Array, length overridden to null (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = null;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
- var i = f.every(cb);
+function foo() {}
+var f = new foo();
+f.length = null;
+
+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 6cf241998..746ea3c4d 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,13 +9,14 @@ description: >
Array, length overridden to false (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = false;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
- var i = f.every(cb);
+function foo() {}
+var f = new foo();
+f.length = false;
+
+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 f296ed79c..802f85d32 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,13 +9,14 @@ description: >
Array, length overridden to 0 (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = 0;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
- var i = f.every(cb);
+function foo() {}
+var f = new foo();
+f.length = 0;
+
+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 49d510f6b..cd8513fb4 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,13 +9,14 @@ description: >
Array, length overridden to '0' (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = '0';
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
- var i = f.every(cb);
+function foo() {}
+var f = new foo();
+f.length = '0';
+
+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 de58615e3..17d0d8834 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,15 +9,20 @@ description: >
Array, length overridden with obj with valueOf)
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- var o = { valueOf: function () { return 0;}};
- f.length = o;
+function foo() {}
+var f = new foo();
- function cb(){}
- var i = f.every(cb);
+var o = {
+ valueOf: function() {
+ return 0;
+ }
+};
+f.length = o;
+
+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 170831065..f23dc8cff 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,20 +9,25 @@ description: >
Array, length overridden with obj w/o valueOf (toString))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- var o = { toString: function () { return '0';}};
- f.length = o;
+function foo() {}
+var f = new foo();
- // 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);
+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);
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 8d1854e45..75f2878c3 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,28 +9,29 @@ 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 d445b9304..ce34f42d8 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 ab2cf19d0..43f119f27 100644
--- a/test/built-ins/Array/prototype/fill/fill-values.js
+++ b/test/built-ins/Array/prototype/fill/fill-values.js
@@ -28,8 +28,7 @@ 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 c9d811439..c9b561676 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 f56c19437..9fa42cba0 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 d9e730234..19703f190 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 9a7404b58..09a5dbb37 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 b5e440512..fbeaacc89 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 7e77b5403..0b9f3060a 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 314f8cf65..0be84b256 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 3c4abb006..70e775afe 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 c8ed73db1..95aaebd9e 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 17517c532..e7b7d2fdc 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 114e360ab..4e8c4ffd5 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 d73da1d91..6f4bb4eb2 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 8e85e3a8d..c7a70ad25 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 84df1f7aa..35438987c 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 b64de3811..01e194a56 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 d554b6850..803469954 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 4ef4c19ab..5bd456a8e 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 6d278d962..a20ae4f18 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,13 +7,16 @@ es5id: 15.4.4.20-10-3
description: Array.prototype.filter - subclassed array when length is reduced
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = 1;
+foo.prototype = new Array(1, 2, 3);
- function cb(){return true;}
- var a = f.filter(cb);
+function foo() {}
+var f = new foo();
+f.length = 1;
+
+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 fa6b6603f..10e8fa029 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,15 +7,16 @@ es5id: 15.4.4.20-10-4
description: Array.prototype.filter doesn't visit expandos
---*/
- var callCnt = 0;
- function callbackfn(val, idx, obj)
- {
- callCnt++;
- }
- var srcArr = [1,2,3,4,5];
- srcArr["i"] = 10;
- srcArr[true] = 11;
+var callCnt = 0;
- var resArr = srcArr.filter(callbackfn);
+function callbackfn(val, idx, obj)
+{
+ callCnt++;
+}
+var srcArr = [1, 2, 3, 4, 5];
+srcArr["i"] = 10;
+srcArr[true] = 11;
+
+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 ef11a8172..68c19c6a6 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 7ef499298..683217637 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 b707e5159..8a55f62fb 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,22 +9,23 @@ description: >
own accessor property without a get function
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
- }
+var accessed = false;
- var obj = {
- 0: 11,
- 1: 12
- };
- Object.defineProperty(obj, "length", {
- set: function () { },
- configurable: true
- });
+function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+}
- var newArr = Array.prototype.filter.call(obj, callbackfn);
+var obj = {
+ 0: 11,
+ 1: 12
+};
+Object.defineProperty(obj, "length", {
+ set: function() {},
+ configurable: true
+});
+
+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 40c49cf05..b5983c280 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,26 +9,30 @@ description: >
a get function that overrides an inherited accessor property
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
- }
+var accessed = false;
- Object.defineProperty(Object.prototype, "length", {
- get: function () {
- return 2;
- },
- configurable: true
- });
+function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+}
- var obj = { 0: 12, 1: 11 };
- Object.defineProperty(obj, "length", {
- set: function () { },
- configurable: true
- });
+Object.defineProperty(Object.prototype, "length", {
+ get: function() {
+ return 2;
+ },
+ configurable: true
+});
- var newArr = Array.prototype.filter.call(obj, callbackfn);
+var obj = {
+ 0: 12,
+ 1: 11
+};
+Object.defineProperty(obj, "length", {
+ set: function() {},
+ configurable: true
+});
+
+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 b35a71c92..25652960d 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,26 +9,27 @@ 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 64b7059d8..545d914e6 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,15 +9,19 @@ description: >
'length property doesn't exist
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
- }
+var accessed = false;
- var obj = { 0: 11, 1: 12 };
+function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+}
- var newArr = Array.prototype.filter.call(obj, callbackfn);
+var obj = {
+ 0: 11,
+ 1: 12
+};
+
+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 e2ff3af64..34c579c77 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 6850f6d21..c13206d98 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 5f12746ae..9bd2ef1c6 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 f8f1b84d4..8e071501c 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 5e74fafc6..4d9c4e414 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,21 +9,23 @@ 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 563ef3bfc..73ecc9ed1 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 ca4c2d21e..e165dbc06 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 6c754b15b..9a8144cfc 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,20 +9,22 @@ 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 103cdc888..ba40ddd23 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 25b022b3a..e57b21228 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,28 +9,30 @@ 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 4c37454ba..684b01b09 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 17cdc5f73..be48ea578 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,14 +7,19 @@ es5id: 15.4.4.20-3-1
description: Array.prototype.filter - value of 'length' is undefined
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
- }
+var accessed = false;
- var obj = { 0: 0, 1: 1, length: undefined };
- var newArr = Array.prototype.filter.call(obj, callbackfn);
+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);
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 63b2c4a18..8ef7f0477 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,15 +9,19 @@ description: >
NaN)
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
- }
+var accessed = false;
- var obj = { 0: 9, length: NaN };
+function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+}
- var newArr = Array.prototype.filter.call(obj, callbackfn);
+var obj = {
+ 0: 9,
+ length: NaN
+};
+
+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 e495a64db..3bedc20ed 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,13 +9,17 @@ 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 c66292a88..bab103450 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,13 +9,17 @@ 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 859ef4667..01d01c256 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,13 +9,17 @@ 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 03193102f..03bcf8a29 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,16 +7,19 @@ 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 e5be122e8..7cc2cb5f8 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,13 +9,17 @@ 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 286093b8b..1e447f105 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,13 +9,17 @@ 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 84b64d402..a3c2bf7fa 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,13 +9,17 @@ 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 de3c43f57..b42c4c5af 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,15 +9,19 @@ description: >
convert to a number
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
- }
+var accessed = false;
- var obj = { 0: 9, length: "asdf!_" };
+function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+}
- var newArr = Array.prototype.filter.call(obj, callbackfn);
+var obj = {
+ 0: 9,
+ length: "asdf!_"
+};
+
+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 f1ac554ec..11ba06792 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 3e348991d..4c87b6e3d 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,12 +9,16 @@ 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 c8e77de72..7b7b93e5b 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 01fc372d5..c65ba9ca5 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 a6463ad6a..0e4bf3671 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 f2e7b2e45..c02b3f301 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 31b87b47d..a2cc49a04 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 3f8b1ffd8..f32cac694 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 9b1250407..53fd3ab2c 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,14 +7,18 @@ es5id: 15.4.4.20-3-3
description: Array.prototype.filter - value of 'length' is a number (value is 0)
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
- }
+var accessed = false;
- var obj = { 0: 11, length: 0 };
- var newArr = Array.prototype.filter.call(obj, callbackfn);
+function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+}
+
+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 a2a73f274..d0afc2288 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,14 +9,18 @@ description: >
+0)
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
- }
+var accessed = false;
- var obj = { 0: 11, length: +0 };
- var newArr = Array.prototype.filter.call(obj, callbackfn);
+function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+}
+
+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 2fa9d19cf..675a41cb2 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,14 +9,18 @@ description: >
-0)
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
- }
+var accessed = false;
- var obj = { 0: 11, length: -0 };
- var newArr = Array.prototype.filter.call(obj, callbackfn);
+function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+}
+
+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 dd9b8839b..44e5a2aa1 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,13 +9,17 @@ 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 28d540592..b9003218f 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,12 +9,16 @@ 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 a31259a2e..149c2011a 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,15 +9,19 @@ description: >
-Infinity)
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
- }
+var accessed = false;
- var obj = { 0: 9, length: -Infinity };
+function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+}
- var newArr = Array.prototype.filter.call(obj, callbackfn);
+var obj = {
+ 0: 9,
+ length: -Infinity
+};
+
+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 5db65663d..ac03e0fc9 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 39f1abd7b..bf2dabe14 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,15 +9,18 @@ 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 0eabd02ec..6cefc8ce1 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,19 +9,22 @@ 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 de1ad7023..dce334c24 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 af35f5776..70d48daa7 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,25 +9,27 @@ 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 07add5f00..511003bbf 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 a56dd4e8d..0e557696d 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 6e9370835..d49c8355c 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 6fedc6587..d5a3b5289 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 cef7251b1..5f9d1386b 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 aa1240371..f9e425427 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 fbd5396d8..cde11fbf2 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,18 +9,21 @@ 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 c2e729577..45ba29f89 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,22 +9,25 @@ 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 ce1ad3c7e..ebbd6c1a4 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 96063ef48..fe1b29057 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 dff16966b..a5afd4682 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 93cc528d0..0ca6f9f66 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 d4dc45bda..2d7cef46d 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 621f2def0..d5cb60c89 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 195f95d29..e455d8d4c 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 61cb77e50..596addb58 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 d7b6b9e23..beafca6fd 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 b326d202c..569a7d691 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 98b455631..03516a935 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 0c69ec037..16869222c 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 0ef3ca82e..01a3a94d6 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,15 +7,16 @@ es5id: 15.4.4.20-5-2
description: Array.prototype.filter - thisArg is Object
---*/
- var res = false;
- var o = new Object();
- o.res = true;
- function callbackfn(val, idx, obj)
- {
- return this.res;
- }
+var res = false;
+var o = new Object();
+o.res = true;
- var srcArr = [1];
- var resArr = srcArr.filter(callbackfn,o);
+function callbackfn(val, idx, obj)
+{
+ return this.res;
+}
+
+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 bbb9911ac..1e1230bc4 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 61e3644cf..b228ea16c 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 d07c4c603..b7435cbf2 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 ac195d2b1..ec99f9b2b 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 06ea3908d..691c695e7 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 0f41a07e4..676b5f39b 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 49b049b6f..88656b813 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 a9eb5bdd9..4ab8cdc1c 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,15 +7,16 @@ es5id: 15.4.4.20-5-3
description: Array.prototype.filter - thisArg is Array
---*/
- var res = false;
- var a = new Array();
- a.res = true;
- function callbackfn(val, idx, obj)
- {
- return this.res;
- }
+var res = false;
+var a = new Array();
+a.res = true;
- var srcArr = [1];
- var resArr = srcArr.filter(callbackfn,a);
+function callbackfn(val, idx, obj)
+{
+ return this.res;
+}
+
+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 19311b2ae..8a3fb876f 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 e4c6b1b24..08789d8e3 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,17 +9,18 @@ description: >
template(prototype)
---*/
- var res = false;
- function callbackfn(val, idx, obj)
- {
- return this.res;
- }
+var res = false;
- function foo(){}
- foo.prototype.res = true;
- var f = new foo();
+function callbackfn(val, idx, obj)
+{
+ return this.res;
+}
- var srcArr = [1];
- var resArr = srcArr.filter(callbackfn,f);
+function foo() {}
+foo.prototype.res = true;
+var f = new foo();
+
+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 a46d82882..a024bdc32 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,17 +7,18 @@ es5id: 15.4.4.20-5-5
description: Array.prototype.filter - thisArg is object from object template
---*/
- var res = false;
- function callbackfn(val, idx, obj)
- {
- return this.res;
- }
+var res = false;
- function foo(){}
- var f = new foo();
- f.res = true;
+function callbackfn(val, idx, obj)
+{
+ return this.res;
+}
- var srcArr = [1];
- var resArr = srcArr.filter(callbackfn,f);
+function foo() {}
+var f = new foo();
+f.res = true;
+
+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 a76f146d6..25fa96c97 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,16 +7,17 @@ es5id: 15.4.4.20-5-6
description: Array.prototype.filter - thisArg is function
---*/
- var res = false;
- function callbackfn(val, idx, obj)
- {
- return this.res;
- }
+var res = false;
- function foo(){}
- foo.res = true;
+function callbackfn(val, idx, obj)
+{
+ return this.res;
+}
- var srcArr = [1];
- var resArr = srcArr.filter(callbackfn,foo);
+function foo() {}
+foo.res = true;
+
+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 7563712c2..7429c85bc 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 154d0bbdb..9ab52aa3e 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 aa434d235..719c1490e 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 a2deb91e5..65a07c7a8 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,13 +9,14 @@ description: >
(subclassed Array, length overridden to null (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = null;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
- var a = f.filter(cb);
+function foo() {}
+var f = new foo();
+f.length = null;
+
+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 5da697fe2..4e1742878 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,13 +9,14 @@ description: >
(subclassed Array, length overridden to false (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = false;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
- var a = f.filter(cb);
+function foo() {}
+var f = new foo();
+f.length = false;
+
+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 88d755df8..72579c85e 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,13 +9,14 @@ description: >
(subclassed Array, length overridden to 0 (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = 0;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
- var a = f.filter(cb);
+function foo() {}
+var f = new foo();
+f.length = 0;
+
+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 71f4dc489..6209e7107 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,13 +9,14 @@ description: >
(subclassed Array, length overridden to '0' (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = '0';
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
- var a = f.filter(cb);
+function foo() {}
+var f = new foo();
+f.length = '0';
+
+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 dad709203..0d40729d1 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,15 +9,20 @@ description: >
(subclassed Array, length overridden with obj with valueOf)
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- var o = { valueOf: function () { return 0;}};
- f.length = o;
+function foo() {}
+var f = new foo();
- function cb(){}
- var a = f.filter(cb);
+var o = {
+ valueOf: function() {
+ return 0;
+ }
+};
+f.length = o;
+
+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 a778ad888..b212e2511 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,21 +10,26 @@ description: >
(toString))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- var o = { toString: function () { return '0';}};
- f.length = o;
+function foo() {}
+var f = new foo();
- // 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 o = {
+ toString: function() {
+ return '0';
+ }
+};
+f.length = o;
- function cb(){}
- var a = f.filter(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 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 1fd2bb792..851aa7a75 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,28 +9,29 @@ 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 97a92c2de..265b9632b 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 866e363fc..34e27ba56 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 23cf770ca..5f14532d2 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 9e817d779..d3018ec04 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 3165b934c..396126ea1 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 6bbe73b49..0ef2af055 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 6733d095d..accd42a60 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 6b119020e..c7fa048ef 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,16 +7,20 @@ 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 bab2effd5..e0bd841bf 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,24 +9,28 @@ 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 db984c4cc..899156930 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,16 +9,17 @@ description: >
been assigned values
---*/
- var callCnt = 0;
- function callbackfn(val, idx, obj)
- {
- callCnt++;
- return false;
- }
+var callCnt = 0;
- var srcArr = new Array(10);
- srcArr[1] = undefined; //explicitly assigning a value
- var resArr = srcArr.filter(callbackfn);
+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);
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 c2c66ae19..d4724b924 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,21 +9,24 @@ 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 643554ab8..39ea8f0a1 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 18e21b40e..7b914a1ee 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,21 +10,26 @@ 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 c023e3735..204e94c66 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 6147fab67..00b6a41af 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 4e253c64e..1f87dab30 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 c81608958..b92fde3af 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 63ffe45b5..a9b8cdae4 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 9201770ac..fd2a2612e 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,20 +9,23 @@ 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 81a5e3d11..61ad18595 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,26 +9,28 @@ 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 150eda57c..d2d1fd70c 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 0932eb334..d0bc0fb1e 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,25 +9,27 @@ 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 677e3106f..1fea78746 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 00d064e23..0593df24f 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,30 +9,32 @@ 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 8f1588765..1221c8864 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 cdfc98323..de7e415f3 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,14 +9,18 @@ description: >
property on an Array-like object
---*/
- var kValue = {};
- function callbackfn(val, idx, obj) {
- return (idx === 5) && (val === kValue);
- }
+var kValue = {};
- var obj = { 5: kValue, length: 100 };
+function callbackfn(val, idx, obj) {
+ return (idx === 5) && (val === kValue);
+}
- var newArr = Array.prototype.filter.call(obj, callbackfn);
+var obj = {
+ 5: kValue,
+ length: 100
+};
+
+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 b44cba1e3..394268152 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 dc089ead8..a713e1953 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,25 +10,28 @@ 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 bcd3b4287..7dc94d210 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 32d9fa6f4..4a692475a 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 1ccf426ac..e6f2a95c6 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 d97746c2d..4a7122ea1 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 82834ff12..9a04bb487 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 3b01f8f4c..17bd3f8a7 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,17 +9,19 @@ 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 3cfc401b9..b139b96a6 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 4ff5f9589..af8b5d615 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,18 +10,20 @@ 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 b2ea87479..a129174e7 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 83958a877..fa5905c96 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 e4c19177b..87bc30149 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 5093adca4..ce088257b 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 f050065ed..f2288892e 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 4c5719f15..13eabc564 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 96927339a..117cbb39b 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 266d3eb37..28a3290dc 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 502971701..f3cce11d7 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,32 +9,34 @@ 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 ce761b38f..1f6b1b8c1 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,20 +10,23 @@ 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 150a4e013..01ffb99e0 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,22 +9,28 @@ description: >
terminate iteration on an Array-like object
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
- return true;
- }
+var accessed = false;
- 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
- });
+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
+});
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 0eb4d2ecd..dc86f0848 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,25 +9,26 @@ description: >
terminate iteration on an Array
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
- return true;
- }
+var accessed = false;
- var arr = [];
- arr[5] = 10;
- arr[10] = 100;
+function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ accessed = true;
+ }
+ return true;
+}
- Object.defineProperty(arr, "1", {
- get: function () {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
- });
+var arr = [];
+arr[5] = 10;
+arr[10] = 100;
+
+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 39f5a2af2..62273cdb9 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 43000dca2..7f694e993 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 18af4d7ac..17ead0e57 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 ec3284966..2f92dcd61 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,21 +9,23 @@ 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 3de54b2b2..a263ceb34 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 3e7299486..57aae1177 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,20 +9,23 @@ 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 f635e683c..e29bab335 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,18 +7,19 @@ es5id: 15.4.4.20-9-c-ii-1
description: Array.prototype.filter - callbackfn called with correct parameters
---*/
- var bPar = true;
- var bCalled = false;
- function callbackfn(val, idx, obj)
- {
- bCalled = true;
- if(obj[idx] !== val)
- bPar = false;
- }
+var bPar = true;
+var bCalled = false;
- var srcArr = [0,1,true,null,new Object(),"five"];
- srcArr[999999] = -6.6;
- var resArr = srcArr.filter(callbackfn);
+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);
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 b7a6a8e0e..67884f9e5 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 4f5cd0714..ca8ee6554 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 400d6ae8a..8ef2009e4 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 a51466ee6..59087549b 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 6b1ed0278..44dab4449 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,12 +9,15 @@ 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 17022d9b2..99a2bb143 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,12 +9,15 @@ 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 bc7ae0099..73ccf1d5f 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,12 +9,15 @@ 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 235694b23..b2ba6df2b 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,15 +7,20 @@ 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 52910ae39..208ff7aac 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,17 +7,18 @@ es5id: 15.4.4.20-9-c-ii-2
description: Array.prototype.filter - callbackfn takes 3 arguments
---*/
- 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
- }
+var parCnt = 3;
+var bCalled = false
- var srcArr = [0,1,2,3,4,5,6,7,8,9];
- var resArr = srcArr.filter(callbackfn);
+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);
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 fc145e234..645621f7e 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,14 +9,19 @@ 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 1dd9e0853..8c2b37645 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,20 +9,24 @@ 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 1976d0ab9..d8f90cbda 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,20 +9,24 @@ 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 cdb465ca3..54813293c 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,13 +9,16 @@ 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 c9a7de747..5b8e78643 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,18 +9,19 @@ 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 dbf9d0d54..f0f5e5df9 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 6390d908c..ea27bcafe 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,17 +9,20 @@ 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 97dfb262b..68d53c92c 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,18 +9,23 @@ 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 6551c71df..6f93d5fee 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,16 +9,20 @@ 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 0d6beb147..382633547 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 cf811e4dd..32568ef97 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,12 +9,16 @@ 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 8acc541e3..3a9a1dfc0 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,14 +9,18 @@ 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 c3d2d718d..1b641737e 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,21 +9,24 @@ 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 43d859cc4..18f72dd4c 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,15 +9,19 @@ 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 010699ccf..b5a88eb4b 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,19 +9,20 @@ 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 aaad13206..8e9d64fc6 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 b6c6e6a61..b4090e61d 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 38b9c166b..e0095481f 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 afdb35685..f1458a7ec 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 719ee9bc9..3187b31ed 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 e78a98f13..3af7abd32 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 a9df829af..976eb524d 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 c6cac3c3c..46d3a541d 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 15d6f4194..9d61f23cf 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 4fa7e5e1e..e897b21bc 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 46dad6dd0..71f79ca9e 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 bd35cfb69..0570144e9 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 b0681bb10..892a96c6b 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,16 +7,19 @@ 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 8f3f5e55f..c5409a87e 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 5d91b294f..80c3876c6 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 7825fe47f..b9e29f24b 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 7fca3c93d..69b2c2c72 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 8f0a030c3..afd5e2234 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 57be04e13..279fb2a4b 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 332a4c3a3..25ec2c9fe 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 a8d86ae22..7d02e8a47 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,11 +10,12 @@ description: >
---*/
var global = this;
- function callbackfn(val, idx, obj) {
- return global;
- }
- var newArr = [11].filter(callbackfn);
+function callbackfn(val, idx, obj) {
+ return global;
+}
+
+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 a16c1a2dd..4184c13cf 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,16 +9,20 @@ 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 8c3fa9315..f5d032d1c 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,16 +7,19 @@ 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 603c07567..e21b710d6 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 957e1b506..400819dc7 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,16 +9,19 @@ 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 3b3959c4f..d33c906f2 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,13 +9,16 @@ 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 59e225bab..8cfdbcbfd 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 8b1efafcd..766eb4034 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 3711ff9ef..ae10c8998 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 33bd28e86..c9f2d5772 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 988fed039..e4f50c1cf 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,7 +20,9 @@ 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 a766e6896..8dec316a7 100644
--- a/test/built-ins/Array/prototype/filter/create-ctor-poisoned.js
+++ b/test/built-ins/Array/prototype/filter/create-ctor-poisoned.js
@@ -17,7 +17,9 @@ 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 32ef7736f..34c2a56a0 100644
--- a/test/built-ins/Array/prototype/filter/create-non-array.js
+++ b/test/built-ins/Array/prototype/filter/create-non-array.js
@@ -16,7 +16,9 @@ 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 aecf766f9..3bdee5cd6 100644
--- a/test/built-ins/Array/prototype/filter/create-revoked-proxy.js
+++ b/test/built-ins/Array/prototype/filter/create-revoked-proxy.js
@@ -26,7 +26,9 @@ 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 42a4f2eda..4c461dd30 100644
--- a/test/built-ins/Array/prototype/filter/create-species-abrupt.js
+++ b/test/built-ins/Array/prototype/filter/create-species-abrupt.js
@@ -26,7 +26,9 @@ 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 cf5fba2ce..890bf4d52 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,7 +25,9 @@ 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 9edd338af..947e8f870 100644
--- a/test/built-ins/Array/prototype/filter/create-species-poisoned.js
+++ b/test/built-ins/Array/prototype/filter/create-species-poisoned.js
@@ -21,7 +21,9 @@ 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 073201a27..16afbdf35 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,17 +38,27 @@ 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 65d471bac..0eb576508 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,17 +28,27 @@ 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 f57d47aeb..bddf1e3e4 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,17 +38,27 @@ 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 f5348ea59..b1e6eb76b 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,17 +28,27 @@ 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 95f5aeffe..daa314115 100644
--- a/test/built-ins/Array/prototype/flatMap/bound-function-argument.js
+++ b/test/built-ins/Array/prototype/flatMap/bound-function-argument.js
@@ -9,4 +9,6 @@ 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 851a9a744..4f5f672b4 100644
--- a/test/built-ins/Array/prototype/flatMap/depth-always-one.js
+++ b/test/built-ins/Array/prototype/flatMap/depth-always-one.js
@@ -13,7 +13,9 @@ 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 6d47d0233..ab0f8ca86 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 21e44b681..65767d2ce 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,4 +31,3 @@ 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 5a4e966e2..dcfe81aaf 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,4 +18,3 @@ 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 95b95ca7a..34db60abd 100644
--- a/test/built-ins/Array/prototype/flatMap/thisArg-argument.js
+++ b/test/built-ins/Array/prototype/flatMap/thisArg-argument.js
@@ -12,9 +12,21 @@ 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 ce4153b87..fd35f0975 100644
--- a/test/built-ins/Array/prototype/flatten/bound-function-call.js
+++ b/test/built-ins/Array/prototype/flatten/bound-function-call.js
@@ -8,7 +8,10 @@ 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 cbf2ae4b0..379b1e48c 100644
--- a/test/built-ins/Array/prototype/flatten/empty-array-elements.js
+++ b/test/built-ins/Array/prototype/flatten/empty-array-elements.js
@@ -10,6 +10,15 @@ 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 356cab660..e1fcb18d3 100644
--- a/test/built-ins/Array/prototype/flatten/empty-object-elements.js
+++ b/test/built-ins/Array/prototype/flatten/empty-object-elements.js
@@ -8,9 +8,15 @@ 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 365c7e11c..6d89ae6b7 100644
--- a/test/built-ins/Array/prototype/flatten/name.js
+++ b/test/built-ins/Array/prototype/flatten/name.js
@@ -18,4 +18,3 @@ 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 ef8fb3a53..8211fdcc2 100644
--- a/test/built-ins/Array/prototype/flatten/null-undefined-elements.js
+++ b/test/built-ins/Array/prototype/flatten/null-undefined-elements.js
@@ -11,7 +11,10 @@ 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 3e711223f..d3a5a59ad 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,4 +18,3 @@ 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 9bcf98ae0..af58ce6b7 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,4 +14,3 @@ 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 1f7f8df82..8e8bb7003 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 e751161d6..7ba92b973 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 2ec98784d..8d30c99da 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,15 +7,16 @@ es5id: 15.4.4.18-1-11
description: Array.prototype.forEach applied to Date object
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = obj instanceof Date;
- }
+var result = false;
- var obj = new Date();
- obj.length = 1;
- obj[0] = 1;
+function callbackfn(val, idx, obj) {
+ result = obj instanceof Date;
+}
- Array.prototype.forEach.call(obj, callbackfn);
+var obj = new Date();
+obj.length = 1;
+obj[0] = 1;
+
+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 5e54175c6..c360a8771 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,15 +7,16 @@ es5id: 15.4.4.18-1-12
description: Array.prototype.forEach applied to RegExp object
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = obj instanceof RegExp;
- }
+var result = false;
- var obj = new RegExp();
- obj.length = 1;
- obj[0] = 1;
+function callbackfn(val, idx, obj) {
+ result = obj instanceof RegExp;
+}
- Array.prototype.forEach.call(obj, callbackfn);
+var obj = new RegExp();
+obj.length = 1;
+obj[0] = 1;
+
+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 70fc43629..9759f019a 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,13 +7,14 @@ es5id: 15.4.4.18-1-13
description: Array.prototype.forEach applied to the JSON object
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = ('[object JSON]' === Object.prototype.toString.call(obj));
- }
+var result = false;
- JSON.length = 1;
- JSON[0] = 1;
- Array.prototype.forEach.call(JSON, callbackfn);
+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);
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 b7a59755a..e6c5caa10 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,15 +7,16 @@ es5id: 15.4.4.18-1-14
description: Array.prototype.forEach applied to Error object
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = obj instanceof Error;
- }
+var result = false;
- var obj = new Error();
- obj.length = 1;
- obj[0] = 1;
+function callbackfn(val, idx, obj) {
+ result = obj instanceof Error;
+}
- Array.prototype.forEach.call(obj, callbackfn);
+var obj = new Error();
+obj.length = 1;
+obj[0] = 1;
+
+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 6b9762524..2ea3f1e44 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,15 +7,16 @@ es5id: 15.4.4.18-1-15
description: Array.prototype.forEach applied to the Arguments object
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = ('[object Arguments]' === Object.prototype.toString.call(obj));
- }
+var result = false;
- var obj = (function () {
- return arguments;
- }("a", "b"));
+function callbackfn(val, idx, obj) {
+ result = ('[object Arguments]' === Object.prototype.toString.call(obj));
+}
- Array.prototype.forEach.call(obj, callbackfn);
+var obj = (function() {
+ return arguments;
+}("a", "b"));
+
+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 49ee29fb4..bce24cc3f 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 fde036022..6434a1a5d 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 899d60a7d..87304f79b 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,16 +7,17 @@ es5id: 15.4.4.18-1-4
description: Array.prototype.forEach applied to Boolean object
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = obj instanceof Boolean;
- }
+var result = false;
- var obj = new Boolean(true);
- obj.length = 2;
- obj[0] = 11;
- obj[1] = 12;
+function callbackfn(val, idx, obj) {
+ result = obj instanceof Boolean;
+}
- Array.prototype.forEach.call(obj, callbackfn);
+var obj = new Boolean(true);
+obj.length = 2;
+obj[0] = 11;
+obj[1] = 12;
+
+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 dbfdba7f9..7afae81ba 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,14 +7,15 @@ es5id: 15.4.4.18-1-5
description: Array.prototype.forEach applied to number primitive
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = obj instanceof Number;
- }
+var result = false;
- Number.prototype[0] = 1;
- Number.prototype.length = 1;
+function callbackfn(val, idx, obj) {
+ result = obj instanceof Number;
+}
- Array.prototype.forEach.call(2.5, callbackfn);
+Number.prototype[0] = 1;
+Number.prototype.length = 1;
+
+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 a4417bace..8e33905df 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,16 +7,17 @@ es5id: 15.4.4.18-1-6
description: Array.prototype.forEach applied to Number object
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = obj instanceof Number;
- }
+var result = false;
- var obj = new Number(-128);
- obj.length = 2;
- obj[0] = 11;
- obj[1] = 12;
+function callbackfn(val, idx, obj) {
+ result = obj instanceof Number;
+}
- Array.prototype.forEach.call(obj, callbackfn);
+var obj = new Number(-128);
+obj.length = 2;
+obj[0] = 11;
+obj[1] = 12;
+
+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 c85736e35..7160b1c04 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,11 +7,12 @@ es5id: 15.4.4.18-1-7
description: Array.prototype.forEach applied to string primitive
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = obj instanceof String;
- }
+var result = false;
- Array.prototype.forEach.call("abc", callbackfn);
+function callbackfn(val, idx, obj) {
+ result = obj instanceof String;
+}
+
+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 6aa6ade20..3f2027f77 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,12 +7,13 @@ es5id: 15.4.4.18-1-8
description: Array.prototype.forEach applied to String object
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = obj instanceof String;
- }
+var result = false;
- var obj = new String("abc");
- Array.prototype.forEach.call(obj, callbackfn);
+function callbackfn(val, idx, obj) {
+ result = obj instanceof String;
+}
+
+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 24024487f..38cd91443 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,17 +7,18 @@ es5id: 15.4.4.18-1-9
description: Array.prototype.forEach applied to Function object
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = obj instanceof Function;
- }
+var result = false;
- var obj = function (a, b) {
- return a + b;
- };
- obj[0] = 11;
- obj[1] = 9;
+function callbackfn(val, idx, obj) {
+ result = obj instanceof Function;
+}
- Array.prototype.forEach.call(obj, callbackfn);
+var obj = function(a, b) {
+ return a + b;
+};
+obj[0] = 11;
+obj[1] = 9;
+
+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 a8cacea2b..f6d82711c 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,18 +9,19 @@ description: >
Array-like object
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
- }
+var result = false;
- var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: 2
- };
+function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+}
- Array.prototype.forEach.call(obj, callbackfn);
+var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: 2
+};
+
+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 b62dda53c..a4b5e78bb 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,28 +9,29 @@ description: >
an inherited accessor property
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
- }
+var result = false;
- var proto = {};
+function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+}
- Object.defineProperty(proto, "length", {
- get: function () {
- return 2;
- },
- configurable: true
- });
+var proto = {};
- var Con = function () { };
- Con.prototype = proto;
+Object.defineProperty(proto, "length", {
+ get: function() {
+ return 2;
+ },
+ configurable: true
+});
- var child = new Con();
- child[0] = 12;
- child[1] = 11;
- child[2] = 9;
+var Con = function() {};
+Con.prototype = proto;
- Array.prototype.forEach.call(child, callbackfn);
+var child = new Con();
+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-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-11.js
index c28736d45..e9e36719e 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,20 +9,21 @@ description: >
an own accessor property without a get function
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- }
+var accessed = false;
- var obj = {
- 0: 11,
- 1: 12
- };
- Object.defineProperty(obj, "length", {
- set: function () { },
- configurable: true
- });
+function callbackfn(val, idx, obj) {
+ accessed = true;
+}
- Array.prototype.forEach.call(obj, callbackfn);
+var obj = {
+ 0: 11,
+ 1: 12
+};
+Object.defineProperty(obj, "length", {
+ set: function() {},
+ configurable: true
+});
+
+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 c8649b335..6bb1b8f12 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,24 +10,28 @@ description: >
property on an Array
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- }
+var accessed = false;
- Object.defineProperty(Object.prototype, "length", {
- get: function () {
- return 2;
- },
- configurable: true
- });
+function callbackfn(val, idx, obj) {
+ accessed = true;
+}
- var obj = { 0: 12, 1: 11 };
- Object.defineProperty(obj, "length", {
- set: function () { },
- configurable: true
- });
+Object.defineProperty(Object.prototype, "length", {
+ get: function() {
+ return 2;
+ },
+ configurable: true
+});
- Array.prototype.forEach.call(obj, callbackfn);
+var obj = {
+ 0: 12,
+ 1: 11
+};
+Object.defineProperty(obj, "length", {
+ set: function() {},
+ configurable: true
+});
+
+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 200cd401c..9dac1f4a2 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 a78c2fbdc..297cdf482 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,14 +9,17 @@ 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 57e36efaa..9f2cd87c7 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,15 +9,16 @@ description: >
implements its own property get method
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
- }
+var result = false;
- var func = function (a, b) {
- arguments[2] = 9;
- Array.prototype.forEach.call(arguments, callbackfn);
- return result;
- };
+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;
+};
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 8089c6836..717904329 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,13 +9,14 @@ description: >
its own property get method
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = (obj.length === 3);
- }
+var result = false;
- var str = new String("012");
+function callbackfn(val, idx, obj) {
+ result = (obj.length === 3);
+}
- Array.prototype.forEach.call(str, callbackfn);
+var str = new String("012");
+
+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 da202f158..200ad5818 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,18 +9,19 @@ description: >
implements its own property get method
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
- }
+var result = false;
- var fun = function (a, b) {
- return a + b;
- };
- fun[0] = 12;
- fun[1] = 11;
- fun[2] = 9;
+function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+}
- Array.prototype.forEach.call(fun, callbackfn);
+var fun = function(a, b) {
+ return a + b;
+};
+fun[0] = 12;
+fun[1] = 11;
+fun[2] = 9;
+
+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 1f3da7255..4f3c8f8c3 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,11 +7,12 @@ es5id: 15.4.4.18-2-2
description: Array.prototype.forEach - 'length' is own data property on an Array
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
- }
+var result = false;
- [12, 11].forEach(callbackfn);
+function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+}
+
+[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 3a70a3fa1..05c761a4f 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,22 +9,25 @@ description: >
overrides an inherited data property on an Array-like object
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
- }
+var result = false;
- var proto = { length: 3 };
+function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+}
- var Con = function () { };
- Con.prototype = proto;
+var proto = {
+ length: 3
+};
- var child = new Con();
- child.length = 2;
- child[0] = 12;
- child[1] = 11;
- child[2] = 9;
+var Con = function() {};
+Con.prototype = proto;
- Array.prototype.forEach.call(child, callbackfn);
+var child = new Con();
+child.length = 2;
+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-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-4.js
index 4a5be1425..9d5224333 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,14 +9,15 @@ description: >
overrides an inherited data property on an Array
---*/
- var result = false;
- var arrProtoLen;
- function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
- }
+var result = false;
+var arrProtoLen;
- arrProtoLen = Array.prototype.length;
- Array.prototype.length = 0;
- [12, 11].forEach(callbackfn);
+function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+}
+
+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 c261643e5..21fd3b12c 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,32 +9,33 @@ 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 e0ee2a2ed..23627c89a 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,21 +9,24 @@ description: >
an inherited data property
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
- }
+var result = false;
- var proto = { length: 2 };
+function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+}
- var Con = function () { };
- Con.prototype = proto;
+var proto = {
+ length: 2
+};
- var child = new Con();
- child[0] = 12;
- child[1] = 11;
- child[2] = 9;
+var Con = function() {};
+Con.prototype = proto;
- Array.prototype.forEach.call(child, callbackfn);
+var child = new Con();
+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-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-7.js
index e1fc969f4..2fb7ebdc3 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,24 +9,25 @@ description: >
an own accessor property
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
- }
+var result = false;
- var obj = {};
+function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+}
- Object.defineProperty(obj, "length", {
- get: function () {
- return 2;
- },
- configurable: true
- });
+var obj = {};
- obj[0] = 12;
- obj[1] = 11;
- obj[2] = 9;
+Object.defineProperty(obj, "length", {
+ get: function() {
+ return 2;
+ },
+ configurable: true
+});
- Array.prototype.forEach.call(obj, callbackfn);
+obj[0] = 12;
+obj[1] = 11;
+obj[2] = 9;
+
+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 e1da52282..ee2588cd2 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,29 +9,32 @@ description: >
an own accessor property that overrides an inherited data property
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
- }
+var result = false;
- var proto = { length: 3 };
+function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+}
- var Con = function () { };
- Con.prototype = proto;
+var proto = {
+ length: 3
+};
- var child = new Con();
+var Con = function() {};
+Con.prototype = proto;
- Object.defineProperty(child, "length", {
- get: function () {
- return 2;
- },
- configurable: true
- });
+var child = new Con();
- child[0] = 12;
- child[1] = 11;
- child[2] = 9;
+Object.defineProperty(child, "length", {
+ get: function() {
+ return 2;
+ },
+ configurable: true
+});
- Array.prototype.forEach.call(child, callbackfn);
+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-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-9.js
index 0b8017b05..98f607595 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,36 +10,37 @@ description: >
property
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
- }
+var result = false;
- var proto = {};
+function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+}
- Object.defineProperty(proto, "length", {
- get: function () {
- return 3;
- },
- configurable: true
- });
+var proto = {};
- var Con = function () { };
- Con.prototype = proto;
+Object.defineProperty(proto, "length", {
+ get: function() {
+ return 3;
+ },
+ configurable: true
+});
- var child = new Con();
+var Con = function() {};
+Con.prototype = proto;
- Object.defineProperty(child, "length", {
- get: function () {
- return 2;
- },
- configurable: true
- });
+var child = new Con();
- child[0] = 12;
- child[1] = 11;
- child[2] = 9;
+Object.defineProperty(child, "length", {
+ get: function() {
+ return 2;
+ },
+ configurable: true
+});
- Array.prototype.forEach.call(child, callbackfn);
+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-3-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-1.js
index 29126acb2..61853f5ca 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,14 +7,18 @@ 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 1b5fdbcfc..b82073f6a 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,14 +9,17 @@ 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 5244023de..cc8e8892c 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,14 +9,18 @@ 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 f50bbdc55..f08f896a2 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,14 +9,18 @@ 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 80e34f716..a5816b0ce 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,13 +9,17 @@ 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 482c69d42..a3583896a 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,14 +7,17 @@ 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 09b71e391..2fb4ad6e9 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,14 +9,18 @@ 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 e6f77c16a..439583682 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,14 +9,18 @@ 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 e8ca4bd50..acf6a235d 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,14 +9,18 @@ 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 7b47f80ba..070a95aa4 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,14 +9,17 @@ 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 953f8ef8b..1c162f9f2 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 03e951271..5dfb9e782 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,13 +9,18 @@ description: >
true)
---*/
- var testResult = false;
- function callbackfn(val, idx, obj) {
- testResult = (val > 10);
- }
+var testResult = false;
- var obj = { 0: 11, 1: 9, length: true };
+function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+}
- Array.prototype.forEach.call(obj, callbackfn);
+var obj = {
+ 0: 11,
+ 1: 9,
+ length: true
+};
+
+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 6a1fed479..64304dc3f 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 e2be7cdb6..94681a140 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 6298b50ef..1dada0650 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 cf7cb7b30..d8cc31d6c 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 770f80e02..fb2da44e1 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 e855f28d6..c9e1809c7 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 a98ea6176..467960654 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,14 +9,18 @@ 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 dc457c42a..1ac3e8c0b 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,14 +9,17 @@ 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 50348c00a..d8caecc2e 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,14 +9,17 @@ 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 41701e6e5..1197b4816 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,14 +9,18 @@ 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 05ffaedf4..f3b859b9b 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,14 +9,18 @@ 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 300fd705d..3d3468809 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,14 +9,17 @@ 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 0c1e6e517..81f4d15b6 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 d9ef1c808..0dad22c77 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,15 +9,18 @@ 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 2ae6d3461..0a9bca012 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,19 +9,22 @@ 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 69581f68e..8bc18df1e 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,11 +7,12 @@ es5id: 15.4.4.18-4-12
description: Array.prototype.forEach - 'callbackfn' is a function
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- }
+var accessed = false;
- [11, 9].forEach(callbackfn);
+function callbackfn(val, idx, obj) {
+ accessed = true;
+}
+
+[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 1d94ede8a..09b8a247d 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,27 +9,29 @@ 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 b3f465b79..a26b2ea39 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 b04887033..81934e7ea 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 b9a1d8952..399cdbf5b 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 1ffe8b094..866d6fdda 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 146bb7df2..4cf36be98 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 93d142b9b..3379dbe02 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 9ea17000a..09f9862fe 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,18 +9,21 @@ 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 8600794dd..75b0065b3 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,22 +9,25 @@ 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 540b38d09..c4b4c0df4 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 ae937bd6e..6dd49f78f 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,14 +9,15 @@ flags: [noStrict]
---*/
(function() {
- 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)
+ this._15_4_4_18_5_1 = false;
+ var _15_4_4_18_5_1 = true;
+ var result;
-assert.sameValue(result, false, 'result');
+ function callbackfn(val, idx, obj) {
+ result = this._15_4_4_18_5_1;
+ }
+ var arr = [1];
+ arr.forEach(callbackfn)
+
+ 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 914cfafae..771626914 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 0f0e203b3..9975fe11c 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 76e1b9567..4aa627ea0 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 765776976..0ca2d8c48 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 903355378..8c1b7fcd5 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,11 +7,12 @@ es5id: 15.4.4.18-5-14
description: Array.prototype.forEach - the Math object can be used as thisArg
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = (this === Math);
- }
+var result = false;
- [11].forEach(callbackfn, Math);
+function callbackfn(val, idx, obj) {
+ result = (this === 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 d4154fead..8835b6bdc 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 67f48ac06..a0f3cb83d 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 5d9ec5130..2aea48e64 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,11 +7,12 @@ es5id: 15.4.4.18-5-17
description: Array.prototype.forEach - the JSON object can be used as thisArg
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = (this === JSON);
- }
+var result = false;
- [11].forEach(callbackfn, JSON);
+function callbackfn(val, idx, obj) {
+ result = (this === 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 237bd7b38..84480af75 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 0ffb3591d..cf428f440 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 194c4ed48..7c62ee13d 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,16 +7,17 @@ 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;
- function callbackfn(val, idx, obj)
- {
- result = this.res;
- }
+var res = false;
+var o = new Object();
+o.res = true;
+var result;
- var arr = [1];
- arr.forEach(callbackfn,o)
+function callbackfn(val, idx, obj)
+{
+ result = this.res;
+}
+
+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 3a3e5c962..19b8de2fa 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,11 +8,12 @@ description: Array.prototype.forEach - the global object can be used as thisArg
---*/
var global = this;
- var result = false;
- function callbackfn(val, idx, obj) {
- result = (this === global);
- }
+var result = false;
- [11].forEach(callbackfn, this);
+function callbackfn(val, idx, obj) {
+ result = (this === global);
+}
+
+[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 ae22b88b0..22fe09f8e 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 5fc0674f0..c74f302aa 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,11 +7,12 @@ es5id: 15.4.4.18-5-23
description: Array.prototype.forEach - number primitive can be used as thisArg
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = (this.valueOf() === 101);
- }
+var result = false;
- [11].forEach(callbackfn, 101);
+function callbackfn(val, idx, obj) {
+ result = (this.valueOf() === 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 6b774576b..fc1c4fa6f 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,11 +7,12 @@ es5id: 15.4.4.18-5-24
description: Array.prototype.forEach - string primitive can be used as thisArg
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = (this.valueOf() === "abc");
- }
+var result = false;
- [11].forEach(callbackfn, "abc");
+function callbackfn(val, idx, obj) {
+ result = (this.valueOf() === "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 f32dd6f81..af345a918 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,16 +8,17 @@ 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 7ce819a4f..738c6624f 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,16 +7,17 @@ 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;
- function callbackfn(val, idx, obj)
- {
- result = this.res;
- }
+var res = false;
+var a = new Array();
+a.res = true;
+var result;
- var arr = [1];
- arr.forEach(callbackfn,a)
+function callbackfn(val, idx, obj)
+{
+ result = this.res;
+}
+
+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 211bafd48..6a88eded2 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,17 +9,18 @@ description: >
template(prototype)
---*/
- var res = false;
- var result;
- function callbackfn(val, idx, obj)
- {
- result = this.res;
- }
+var res = false;
+var result;
- function foo(){}
- foo.prototype.res = true;
- var f = new foo();
- var arr = [1];
- arr.forEach(callbackfn,f)
+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)
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 3f3d7ba8c..eedf65b79 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,18 +7,19 @@ es5id: 15.4.4.18-5-5
description: Array.prototype.forEach - thisArg is object from object template
---*/
- var res = false;
- var result;
- function callbackfn(val, idx, obj)
- {
- result = this.res;
- }
+var res = false;
+var result;
- function foo(){}
- var f = new foo();
- f.res = true;
+function callbackfn(val, idx, obj)
+{
+ result = this.res;
+}
- var arr = [1];
- arr.forEach(callbackfn,f)
+function foo() {}
+var f = new foo();
+f.res = true;
+
+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 bcbb7bb55..00e62309b 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,17 +7,18 @@ es5id: 15.4.4.18-5-6
description: Array.prototype.forEach - thisArg is function
---*/
- var res = false;
- var result;
- function callbackfn(val, idx, obj)
- {
- result = this.res;
- }
+var res = false;
+var result;
- function foo(){}
- foo.res = true;
+function callbackfn(val, idx, obj)
+{
+ result = this.res;
+}
- var arr = [1];
- arr.forEach(callbackfn,foo)
+function foo() {}
+foo.res = true;
+
+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 d75504027..c5db1a536 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 81097bd2f..9dede756a 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 304a95683..0ee2556d6 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,15 +9,16 @@ description: >
array after the call
---*/
- var callCnt = 0;
- function callbackfn(val, idx, obj)
- {
- callCnt++;
- arr[2] = 3;
- arr[5] = 6;
- }
+var callCnt = 0;
- var arr = [1,2,,4,5];
- arr.forEach(callbackfn);
+function callbackfn(val, idx, obj)
+{
+ callCnt++;
+ arr[2] = 3;
+ arr[5] = 6;
+}
+
+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 427fee6c8..240795f06 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,15 +9,16 @@ description: >
after the call
---*/
- var callCnt = 0;
- function callbackfn(val, idx, obj)
- {
- if(callCnt == 0)
- delete arr[3];
- callCnt++;
- }
+var callCnt = 0;
- var arr = [1,2,3,4,5];
- arr.forEach(callbackfn)
+function callbackfn(val, idx, obj)
+{
+ if (callCnt == 0)
+ delete arr[3];
+ callCnt++;
+}
+
+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 c45a36fc0..d81ed613f 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,14 +9,15 @@ description: >
Array.length is decreased
---*/
- var callCnt = 0;
- function callbackfn(val, idx, obj)
- {
- arr.length=3;
- callCnt++;
- }
+var callCnt = 0;
- var arr = [1,2,3,4,5];
- arr.forEach(callbackfn);
+function callbackfn(val, idx, obj)
+{
+ arr.length = 3;
+ callCnt++;
+}
+
+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 c178ead68..96180c3ab 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,16 +9,17 @@ description: >
sparse array
---*/
- var callCnt = 0;
- function callbackfn(val, idx, obj)
- {
- arr[1000] = 3;
- callCnt++;
- }
+var callCnt = 0;
- var arr = new Array(10);
- arr[1] = 1;
- arr[2] = 2;
- arr.forEach(callbackfn);
+function callbackfn(val, idx, obj)
+{
+ arr[1000] = 3;
+ callCnt++;
+}
+
+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 71a7d7b93..9c56fa65c 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,17 +9,18 @@ description: >
call when same index is also present in prototype
---*/
- var callCnt = 0;
- function callbackfn(val, idx, obj)
- {
- delete arr[4];
- callCnt++;
- }
+var callCnt = 0;
- Array.prototype[4] = 5;
+function callbackfn(val, idx, obj)
+{
+ delete arr[4];
+ callCnt++;
+}
- var arr = [1,2,3,4,5];
- arr.forEach(callbackfn)
- delete Array.prototype[4];
+Array.prototype[4] = 5;
+
+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 ba0994154..eb8ad48c6 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 df0a1c9bc..8a2065833 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,14 +7,18 @@ 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 1c9ab1037..361e22528 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,21 +9,26 @@ description: >
number of iterations
---*/
- var called = 0;
- function callbackfn(val, idx, obj) {
- called++;
- }
+var called = 0;
- var obj = { 1: 12, 2: 9, length: 2 };
+function callbackfn(val, idx, obj) {
+ called++;
+}
- Object.defineProperty(obj, "0", {
- get: function () {
- obj.length = 3;
- return 11;
- },
- configurable: true
- });
+var obj = {
+ 1: 12,
+ 2: 9,
+ length: 2
+};
- Array.prototype.forEach.call(obj, callbackfn);
+Object.defineProperty(obj, "0", {
+ get: function() {
+ obj.length = 3;
+ return 11;
+ },
+ configurable: true
+});
+
+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 647090637..ad7133ffb 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,14 +9,15 @@ description: >
been assigned values
---*/
- var callCnt = 0;
- function callbackfn(val, idx, obj)
- {
- callCnt++;
- }
+var callCnt = 0;
- var arr = new Array(10);
- arr[1] = undefined;
- arr.forEach(callbackfn);
+function callbackfn(val, idx, obj)
+{
+ callCnt++;
+}
+
+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 716fc69ff..b3e6e5cc3 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,28 +9,31 @@ 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 e505e3d4d..5c7ee84f7 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 a9350d299..a7de152f1 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,25 +10,29 @@ 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 b0b704f1a..ecc5607a5 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 8106ac8ed..8a09839a5 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 57a7cb646..d92cf600a 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 c337ed6a7..864b5aac6 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 4d1ba1c19..abc78638b 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 71abd46a0..d949efd18 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,26 +9,29 @@ 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 d9315e91d..af22a0219 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,29 +9,31 @@ 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 0afda4bd3..fda33ef75 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 a26a16afe..8e5262582 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,29 +9,31 @@ 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 48619ba10..11d9bd6ec 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 d850238c6..0e7f8c308 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,34 +9,36 @@ 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 b9fda4c35..aa579d22b 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 8983f724e..4261196fb 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,17 +9,20 @@ 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 4b6a3b8aa..1411c10bd 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 d886a548f..b313ad7c6 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,29 +10,31 @@ 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 8c97ccda4..493e9632c 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 5b5966bd8..c3d66f5f4 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 8222ec722..e87ed433e 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 4782e16db..5eebc81ea 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 5abba48e7..bf0c514cc 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 a3258cbd5..c63d80321 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,20 +9,22 @@ 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 a6a8df077..ae7114850 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 12b0e0f29..2c1a00be6 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,28 +10,30 @@ 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 03ba5f4a1..c5c0e5942 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 6bd5c5402..3d12eb668 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 d952c57dc..a185cb0a0 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 baf2b2bcf..c3ccfca7b 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 51930b840..7f192e129 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 51aefae34..22775361f 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 21734ecca..8ae05bc5a 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 7bf828719..ca2a6f902 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 9d9da525a..12f468ac7 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,35 +9,37 @@ 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 c7abc31d7..7ee64853f 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,24 +9,26 @@ 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 0787f9b95..2ded257f9 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,30 +9,35 @@ 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 e8da569a8..b6745f6d1 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 ed8fffe01..3aa9c4573 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 4ddef569a..0cba85375 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 691feab76..213de16bd 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 75d5890f8..28f747e83 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,23 +9,25 @@ 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 8943de818..9ede560ba 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 d2fc330af..51c77ca23 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,23 +9,26 @@ 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 189dc1a57..e0eb47829 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,18 +7,19 @@ es5id: 15.4.4.18-7-c-ii-1
description: Array.prototype.forEach - callbackfn called with correct parameters
---*/
- var bPar = true;
- var bCalled = false;
- function callbackfn(val, idx, obj)
- {
- bCalled = true;
- if(obj[idx] !== val)
- bPar = false;
- }
+var bPar = true;
+var bCalled = false;
- var arr = [0,1,true,null,new Object(),"five"];
- arr[999999] = -6.6;
- arr.forEach(callbackfn);
+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);
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 4e44bb713..1f6e4baa3 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,11 +9,12 @@ description: >
parameter
---*/
- var result = false;
- function callbackfn(val) {
- result = (val > 10);
- }
+var result = false;
- [11].forEach(callbackfn);
+function callbackfn(val) {
+ result = (val > 10);
+}
+
+[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 f0a81a871..a2991bb19 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,11 +9,12 @@ description: >
parameter
---*/
- var result = false;
- function callbackfn(val, idx) {
- result = (val > 10 && arguments[2][idx] === val);
- }
+var result = false;
- [11].forEach(callbackfn);
+function callbackfn(val, idx) {
+ result = (val > 10 && arguments[2][idx] === val);
+}
+
+[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 af31ca180..667bec227 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,11 +9,12 @@ description: >
parameter
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = (val > 10 && obj[idx] === val);
- }
+var result = false;
- [11].forEach(callbackfn);
+function callbackfn(val, idx, obj) {
+ result = (val > 10 && obj[idx] === val);
+}
+
+[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 80df8a419..46a0ec317 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,11 +7,12 @@ es5id: 15.4.4.18-7-c-ii-13
description: Array.prototype.forEach - callbackfn that uses arguments
---*/
- var result = false;
- function callbackfn() {
- result = (arguments[2][arguments[1]] === arguments[0]);
- }
+var result = false;
- [11].forEach(callbackfn);
+function callbackfn() {
+ result = (arguments[2][arguments[1]] === arguments[0]);
+}
+
+[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 ef9ff8c4f..739bae5f3 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,13 +9,17 @@ description: >
object when T is not an object (T is a boolean)
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = (this.valueOf() !== false);
- }
+var result = false;
- var obj = { 0: 11, length: 2 };
+function callbackfn(val, idx, obj) {
+ result = (this.valueOf() !== false);
+}
- Array.prototype.forEach.call(obj, callbackfn, false);
+var obj = {
+ 0: 11,
+ length: 2
+};
+
+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 8967922b2..44e2e9bac 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,13 +9,17 @@ description: >
object when T is not an object (T is a number)
---*/
- var result = false;
- function callbackfn(val, idx, o) {
- result = (5 === this.valueOf());
- }
+var result = false;
- var obj = { 0: 11, length: 2 };
+function callbackfn(val, idx, o) {
+ result = (5 === this.valueOf());
+}
- Array.prototype.forEach.call(obj, callbackfn, 5);
+var obj = {
+ 0: 11,
+ length: 2
+};
+
+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 3b073f019..3cf057a31 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,13 +9,17 @@ description: >
object when T is not an object (T is a string)
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = ('hello' === this.valueOf());
- }
+var result = false;
- var obj = { 0: 11, length: 2 };
+function callbackfn(val, idx, obj) {
+ result = ('hello' === this.valueOf());
+}
- Array.prototype.forEach.call(obj, callbackfn, "hello");
+var obj = {
+ 0: 11,
+ length: 2
+};
+
+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 677a50236..df0f1401e 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,18 +7,24 @@ 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;
- function callbackfn(val, idx, obj) {
- accessed = true;
- if (val === 8) {
- result = false;
- }
- }
+var accessed = false;
+var result = true;
- var obj = { 0: 11, 10: 12, non_index_property: 8, length: 20 };
+function callbackfn(val, idx, obj) {
+ accessed = true;
+ if (val === 8) {
+ result = false;
+ }
+}
- Array.prototype.forEach.call(obj, callbackfn);
+var obj = {
+ 0: 11,
+ 10: 12,
+ non_index_property: 8,
+ length: 20
+};
+
+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 4140f28cb..6dcd31b13 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,17 +7,18 @@ es5id: 15.4.4.18-7-c-ii-2
description: Array.prototype.forEach - callbackfn takes 3 arguments
---*/
- 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
- }
+var parCnt = 3;
+var bCalled = false
- var arr = [0,1,2,3,4,5,6,7,8,9];
- arr.forEach(callbackfn);
+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);
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 cf6b3fe8b..d0a6f846d 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,15 +9,21 @@ description: >
parameters (thisArg is correct)
---*/
- var result = false;
- function callbackfn(val, idx, obj) {
- result = (10 === this.threshold);
- }
+var result = false;
- var thisArg = { threshold: 10 };
+function callbackfn(val, idx, obj) {
+ result = (10 === this.threshold);
+}
- var obj = { 0: 11, length: 1 };
+var thisArg = {
+ threshold: 10
+};
- Array.prototype.forEach.call(obj, callbackfn, thisArg);
+var obj = {
+ 0: 11,
+ length: 1
+};
+
+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 987960625..a165b4820 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,23 +9,27 @@ 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 3f7fa9349..8b29f06da 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,23 +9,27 @@ 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 559f0ea68..24ae74378 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,13 +9,16 @@ 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 aafb439dd..89d2da4a0 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,20 +9,21 @@ description: >
order
---*/
- 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++;
- }
- }
+var arr = [0, 1, 2, 3, 4, 5];
+var lastIdx = 0;
+var called = 0;
+var result = true;
- arr.forEach(callbackfn);
+function callbackfn(val, idx, o) {
+ called++;
+ if (lastIdx !== idx) {
+ result = false;
+ } else {
+ lastIdx++;
+ }
+}
+
+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 11159ba6f..1b597b8ed 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 b1474e751..22d73e78b 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,17 +9,20 @@ 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 0941fe49b..c7f28a11f 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,19 +9,24 @@ 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 c1b460cc3..452044f84 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,19 +9,23 @@ 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 b8396ea60..5f6aa9cfd 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,11 +9,12 @@ description: >
parameter
---*/
- var called = 0;
- function callbackfn() {
- called++;
- }
+var called = 0;
- [11, 12].forEach(callbackfn);
+function callbackfn() {
+ called++;
+}
+
+[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 4716477c7..cf592c1e4 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,8 +9,11 @@ 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 ef289af43..373440748 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,13 +7,17 @@ es5id: 15.4.4.18-8-10
description: Array.prototype.forEach - subclassed array when length is reduced
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = 1;
+foo.prototype = new Array(1, 2, 3);
- var callCnt = 0;
- function cb(){callCnt++}
- var i = f.forEach(cb);
+function foo() {}
+var f = new foo();
+f.length = 1;
+
+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 9c70a3a05..d594b58a2 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 74e0eef2c..3b92ddb24 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,15 +7,16 @@ es5id: 15.4.4.18-8-12
description: Array.prototype.forEach doesn't visit expandos
---*/
- var callCnt = 0;
- function callbackfn(val, idx, obj)
- {
- callCnt++;
- }
- var arr = [1,2,3,4,5];
- arr["i"] = 10;
- arr[true] = 11;
+var callCnt = 0;
- arr.forEach(callbackfn);
+function callbackfn(val, idx, obj)
+{
+ callCnt++;
+}
+var arr = [1, 2, 3, 4, 5];
+arr["i"] = 10;
+arr[true] = 11;
+
+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 8137d9b4a..de40f14e3 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,12 +9,13 @@ description: >
0
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- }
+var accessed = false;
- var result = [].forEach(callbackfn);
+function callbackfn(val, idx, obj) {
+ accessed = true;
+}
+
+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 24a5efda0..96c4cdc45 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,13 +9,17 @@ description: >
(subclassed Array, length overridden to null (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = null;
+foo.prototype = new Array(1, 2, 3);
- var callCnt = 0;
- function cb(){callCnt++}
- var i = f.forEach(cb);
+function foo() {}
+var f = new foo();
+f.length = null;
+
+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 ad6d2c88d..9dbf01bec 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,13 +9,17 @@ description: >
(subclassed Array, length overridden to false (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = false;
+foo.prototype = new Array(1, 2, 3);
- var callCnt = 0;
- function cb(){callCnt++}
- var i = f.forEach(cb);
+function foo() {}
+var f = new foo();
+f.length = false;
+
+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 eca6eb28c..fd9bfba94 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,13 +9,17 @@ description: >
(subclassed Array, length overridden to 0 (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = 0;
+foo.prototype = new Array(1, 2, 3);
- var callCnt = 0;
- function cb(){callCnt++}
- var i = f.forEach(cb);
+function foo() {}
+var f = new foo();
+f.length = 0;
+
+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 89ef96a1d..6e3ce9bee 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,13 +9,17 @@ description: >
(subclassed Array, length overridden to '0' (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = '0';
+foo.prototype = new Array(1, 2, 3);
- var callCnt = 0;
- function cb(){callCnt++}
- var i = f.forEach(cb);
+function foo() {}
+var f = new foo();
+f.length = '0';
+
+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 57bf3415d..0e26ea86f 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,15 +9,23 @@ description: >
(subclassed Array, length overridden with obj with valueOf)
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- var o = { valueOf: function () { return 0;}};
- f.length = o;
+function foo() {}
+var f = new foo();
- var callCnt = 0;
- function cb(){callCnt++}
- var i = f.forEach(cb);
+var o = {
+ valueOf: function() {
+ return 0;
+ }
+};
+f.length = o;
+
+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 941c6ee3f..d08dadd7a 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,20 +10,28 @@ description: >
(toString))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- var o = { toString: function () { return '0';}};
- f.length = o;
+function foo() {}
+var f = new foo();
- // 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);
+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);
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 acfa321f4..dee5abda6 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,27 +9,31 @@ description: >
(subclassed Array, length overridden with []
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- f.length = [];
+function foo() {}
+var f = new foo();
- // 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);
+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);
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 3e36453a4..2ce7678bf 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,28 +9,32 @@ 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 bdaef0503..0cfaf6ea8 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,4 +8,6 @@ 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 a95da06dd..c743d247e 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,6 +9,8 @@ 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 ebca5a043..84bb4526d 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 6d5393dbb..7d98d2a68 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,7 +35,9 @@ 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 bd272fe93..751c2c928 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 a3c868474..c1e82b9da 100644
--- a/test/built-ins/Array/prototype/includes/tolength-length.js
+++ b/test/built-ins/Array/prototype/includes/tolength-length.js
@@ -72,8 +72,16 @@ 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 1eb9ef72e..ea9ca6068 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 1a5520218..4622e10a0 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 bcb3b21ea..51d4a331e 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 c416b6e1b..4c23949e9 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 c1ca78731..b339869a0 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 6f116d5ce..06c02d8f1 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 7a6c9b7ca..598ba594e 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 5584d5f68..5e348a54e 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 510a693ed..3bfe5e7a6 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 844e34af4..5f0dd9ed5 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 ccca65776..4fa661c8b 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 c6416ebe4..928377959 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 46575fb68..eaa29361e 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 76d8e87c0..065d31bc7 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 c0d6c537a..8a77b86f5 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 124043c97..fbb926888 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,12 +9,19 @@ 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 61dd7f294..e14c28ba3 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,8 +9,14 @@ 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 f4c6f0b83..bde4a7b79 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 bb89914e0..d5d473e99 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,10 +9,12 @@ 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 ff9ac06df..205d52fbe 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,17 +10,19 @@ 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 6aa17ff1e..833c45d70 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 6ffd345db..8807657e8 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,6 +7,9 @@ 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 2df759495..cce214933 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 e48cb33de..e739dd81a 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 09bb09dd3..b5735739f 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 d1fb4b7bb..9fba71821 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 c0c72be3b..db7ecfe83 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,13 +9,15 @@ 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 5a4f6f238..dfc01cd8d 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 8c5523964..0f3909236 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 39788558a..79269969a 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,15 +7,17 @@ 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 975a8673a..6a0ec2587 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,20 +7,24 @@ 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 92bf58f7a..8ad55630e 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,19 +9,21 @@ 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 5ec60e058..2bf8c82ef 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 528bb1f48..0787c3a9c 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,6 +7,10 @@ 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 2d422228c..503c2206d 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,6 +9,9 @@ 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 dbccc238b..9914d8d78 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,7 +9,11 @@ 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 c147d9355..edc04e60c 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,7 +9,11 @@ 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 d2ff4af50..0b2ea6bb6 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,7 +9,11 @@ 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 f37712cf3..ec4c578d2 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,9 +9,21 @@ 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 e35a97c2c..2bf0dd8b2 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,7 +9,11 @@ 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 adc6ff83a..c3cd2c458 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,7 +9,11 @@ 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 3f5d9a173..66bb812c3 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,7 +9,11 @@ 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 71c052c5b..382df40af 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,6 +9,10 @@ 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 17a3c545a..b770f0577 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 8cfa825b8..a645ce3b0 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,7 +9,11 @@ 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 3479154f0..6c9c56ff2 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 a9ad676ad..f1de649c8 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 5cb92837c..ad4324128 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 5b30d00cf..a87a044d5 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 539f8d669..109eca9ec 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,7 +9,11 @@ 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 4e275b17f..d1c35a485 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,7 +9,11 @@ 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 62702eed7..b6f651f69 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 23bb38ae7..41298b8a3 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 83c239e17..2db8c77fc 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,6 +9,9 @@ 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 e2dc4190f..c2f4f22c8 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,6 +9,9 @@ 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 6fccac875..4ca356c5f 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,6 +9,9 @@ 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 50cc7c262..841c6b02e 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,7 +9,11 @@ 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 1ff3602c0..bbc47c981 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,7 +9,11 @@ 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 c7873e9ee..b7ffedc0c 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,6 +9,9 @@ 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 faf4a227c..00fafbc74 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,6 +9,9 @@ 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 5b6a62eb9..7f753d785 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 6af3e10a8..47a90a228 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,7 +7,11 @@ 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 3410cb85c..94da77848 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,7 +7,11 @@ 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 485bcf04e..e39faf7b1 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,7 +9,9 @@ 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 535a46c8e..ccca42340 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,7 +9,9 @@ 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 c614ca938..d665e97c1 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,7 +9,9 @@ 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 595122579..7cd825ba8 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,7 +9,9 @@ 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 365da0c37..bdb5f01fa 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,7 +9,13 @@ 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 ed4cf9894..c6c14d773 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,12 +9,18 @@ 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 04ad4c7fb..2c863ea49 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,20 +9,22 @@ 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 e90ce2e4c..b64c1213a 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,7 +7,11 @@ 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 146456dba..bfb7c07cd 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 7c006a5d0..4ec2ce2a0 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 e8dccbd1d..873dcea19 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 dbdc234eb..ef4baf22e 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 68e8cbe5f..6f9afde36 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 7729f74b5..66bfabd2f 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 ef2936fb7..123b1304f 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 6fbcc5ced..092e4127f 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 0471343e2..106b630ba 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 05fbacd4d..887de235a 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 21bb6b03a..e1ed13197 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 64f186fc8..8bfad2363 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 3f83428a2..881197259 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 a8139b751..f3943fc49 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 6c66928ce..43307ad73 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 0207afac1..ec03ca839 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 9e8383545..71adbb347 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 30381433b..373bbc7e5 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 9030d5314..f9ec42cc8 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 9a229e976..d3eac966c 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 9a7f1d3ff..64442d0db 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 df4812b78..a11186d51 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 3611b1799..4230ef2bc 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 9056a5fe9..4cd4418d5 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 69610b347..2ea05b825 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 f2da76943..1309ad967 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 57d4f191d..4531f8051 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 94125fa81..91a596078 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,9 +7,13 @@ 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 4b3ec82c6..92ebaa80a 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,7 +10,11 @@ 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 cf1aac541..77108424d 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 fcce013d2..410a7c0ef 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,12 +7,16 @@ 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 3c83a98d9..8b4ff007c 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,8 +7,12 @@ 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 d0b3a3a3e..697f91967 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,9 +7,13 @@ 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 3a31b1477..8537c3ac3 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,9 +7,21 @@ 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 adb3280e8..cb657505b 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,8 +7,12 @@ 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 33bf64933..0a8028b4e 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 86889e437..7e07ce058 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 82fc8113c..800f568bf 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 0d17a2be4..043314c60 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 ff6b0a9c8..4a2797e62 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 6e9587d5a..65e504325 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,21 +9,23 @@ 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 172dd1133..d07f4a710 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 2390e6e7f..f45f555cf 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,16 +9,19 @@ 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 81cbe7b98..216e4da0b 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 c7c60d7c4..5c5be6dc9 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,16 +10,21 @@ 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 707207440..ed4072719 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 74a6eddb4..8309a3b86 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 f1e2fa4f4..1d728bce1 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 b30be5fda..0fab8d12b 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 a0e8b8295..fac0434b9 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,15 +9,17 @@ 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 5ac6827ee..d7954ea90 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 8a5e756c5..1340a1d67 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,14 +9,16 @@ 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 255c327a3..926a37aeb 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,13 +9,16 @@ 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 e78f717c3..41e275c6c 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 58e38614c..317816ab6 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,19 +9,21 @@ 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 aa43ed573..af3577d7d 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 e36af343d..22ea6154a 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,19 +9,21 @@ 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 dc8bba867..211c212cc 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,7 +9,12 @@ 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 8cf69e48d..af735dd41 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,27 +9,29 @@ 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 0d1ca8e70..d744fec56 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 de13d9f38..77f337f6b 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,14 +10,16 @@ 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 27be95dc6..f260b91bf 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 265667e71..b3133a5bc 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,20 +10,22 @@ 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 44b2da7af..e9f5b47b7 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 754db8aad..8a8057ee9 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,27 +9,33 @@ 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 551e2a30e..9ffbbe16c 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 4701e3fd8..e79db90e3 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,10 +9,12 @@ 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 b640d8965..2ded8363e 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 56508fe50..793084e9e 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 24144df08..ffc933148 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 922d2e7ce..f9fa4d41a 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,9 +9,11 @@ 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 b2f3bc442..4e5bb8b13 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 330ea1966..caa167d9d 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 5935f22ba..02017a929 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 dc9119d68..2a13283be 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 1c941586e..475817a8e 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,26 +9,28 @@ 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 1df5d9eb9..84006e81e 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 440a31448..c2c8d1350 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 9cae879bc..8977a9893 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,24 +9,26 @@ 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 171ced904..892068426 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,6 +10,10 @@ 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 24a407691..1d4332e74 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 22e410e7d..4661515c4 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,11 +10,15 @@ 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 9382abf00..6344f1784 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 52e280f1c..7ac1d9810 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,10 +9,16 @@ 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 ed295d201..007bbcc02 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 8c2c6d709..9402b5c03 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,4 +14,6 @@ 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 8aad97866..dcce4f017 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 a593c8ce4..94a30fd4a 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 1953684e5..002775eac 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 abb176f63..9ec63f6c7 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 8d8a730b0..bbe9801e5 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 0b9c69bf8..e9b56c053 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 3cd42a832..8a6fbb980 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 ac019fb79..729580e04 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,26 +16,51 @@ 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()));
}
@@ -49,20 +74,38 @@ 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()));
}
@@ -74,7 +117,14 @@ 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 2bcd9eead..a76e7ba02 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 70efad97b..28925d93e 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,28 +10,53 @@ 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)));
}
@@ -45,20 +70,38 @@ 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)));
}
@@ -70,7 +113,14 @@ 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)));
}
@@ -82,12 +132,16 @@ 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 f6a496655..e90ed6ffe 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 863cead86..4dc0ff12a 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,21 +9,39 @@ 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()));
@@ -31,7 +49,14 @@ 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()));
@@ -46,14 +71,25 @@ 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()));
@@ -61,7 +97,14 @@ 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()));
@@ -74,7 +117,14 @@ 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 e8e781793..90ecc5cff 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,7 +22,9 @@ 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 c20b26ee9..d2a2ecdbb 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 39fc4df94..a1048adc8 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 f2f1afb8b..ba6aec098 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 acfcd13a2..ed42913de 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 54d128eb5..26b2c1492 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 e6a2d8166..8ac92c385 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 258d52b25..13cd33284 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 717e839b3..4d0dcb42a 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 d09b72ba6..ee2d9c1dc 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 07823a743..80339e81e 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 d04aef167..6a71084ce 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 1119ac1aa..840ae225c 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 5e96b816e..e35973cd8 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 d623c9bea..998396995 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 7372b6b1f..6d69baa7c 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 5da3312da..09c37e87c 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,7 +9,11 @@ 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 a77b62b12..8a17af9c0 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 0ae767b6f..ab2b9fdd7 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,10 +9,12 @@ 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 98cf2147a..fcd9b41d1 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,17 +10,19 @@ 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 59045d59d..6f379e886 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 f88b2b3c8..f47f32dc7 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,6 +9,9 @@ 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 02ea04ddd..62532d79a 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 6cf87f644..f2a6682fe 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 89565918b..e5542f0ed 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 651492954..134cd566a 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 b500b9f10..5d2a8bbf1 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,13 +9,15 @@ 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 a13cc99a9..0a8f124f3 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 fa2987510..33e9075e6 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 bfe82a3ac..05900f832 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,14 +9,16 @@ 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 d5b443115..4c38da5be 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,14 +9,17 @@ 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 61f659a69..ef7ea0a51 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,19 +9,21 @@ 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 3e0695eb8..9bc7a8b5b 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 374141ad0..1141fd90a 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,6 +7,10 @@ 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 c6da76339..761fd85c1 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,6 +9,9 @@ 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 f0838068e..dae527da9 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,7 +9,11 @@ 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 6811ff35d..99df97b76 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,7 +9,11 @@ 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 afdcf21df..394744d69 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,7 +9,11 @@ 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 a49316794..3751aeb80 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,6 +9,10 @@ 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 281305e13..cb669fc01 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,7 +9,11 @@ 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 6c0e5e388..653a8ea36 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,7 +9,11 @@ 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 c60323158..345e54e14 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,7 +9,11 @@ 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 a56ab67a7..76161d8da 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,7 +9,10 @@ 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 419be4856..bbbf635c8 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 16314cad2..1f603c380 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,7 +9,11 @@ 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 56d05e1a1..51df32323 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 d568434fa..4ffe9d3bf 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 9624defeb..69aa3c8f9 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 a69b33edf..178517a41 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 31ffe0ed7..08763b590 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,7 +9,11 @@ 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 12e37f63b..fe78a4e2d 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,7 +9,11 @@ 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 a28fbc746..476805324 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 069585fb2..98bb896df 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,6 +9,9 @@ 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 1c8a99b9c..5e6cedae9 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,6 +9,9 @@ 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 927ee3daa..60a172189 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,6 +9,9 @@ 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 8aec6c2c1..5f097dbb0 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,7 +9,11 @@ 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 ff7fbc0d2..8f9129849 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,7 +9,11 @@ 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 39856e713..b93878341 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,6 +9,9 @@ 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 f073190b9..f6fc91253 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 72514438f..1899442e7 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,7 +7,11 @@ 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 fdf1b598e..cec59b134 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,7 +7,11 @@ 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 ced61de4c..5ed7ad249 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,7 +9,9 @@ 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 52e2fa68c..2004e3678 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,7 +9,9 @@ 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 592a69274..b2babee1d 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,12 +9,15 @@ description: >
'array' with length 0 )
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = 0;
+foo.prototype = new Array(1, 2, 3);
- var i = Array.prototype.lastIndexOf.call({length: 0}, 1);
+function foo() {}
+var f = new foo();
+f.length = 0;
+
+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 f664184bc..9e7201565 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,7 +9,9 @@ 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 2a81100b7..1362e14ae 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,7 +9,13 @@ 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 cf238e3e2..57850a027 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,19 +9,30 @@ description: >
is object overridden with obj w/o valueOf (toString))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- var o = { toString: function () { return '0';}};
- f.length = o;
+function foo() {}
+var f = new foo();
- // 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);
+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);
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 90fdbad63..ae98ed9f0 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,20 +9,22 @@ 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 6ebf6b4eb..7f758adec 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,7 +7,11 @@ 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 44f940354..f632c5bf9 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 6a9a11c19..3e6778af6 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 5ed43bf0e..839e611a8 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 4e7c34dd9..03d5bc0da 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 a219b6b67..ab3089950 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 973d33cd3..d5bf6c0fa 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 90b87161f..acb1c0140 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 8dc61ceae..95b4db82b 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 de7d8cdea..72a6f16fa 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 21e3ef508..d5ec47052 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 edd857c53..b3bcfbc46 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 2387ba657..e371687ad 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 52bcc4564..949b07c4a 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 c8860be07..8de12b184 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 0ec967938..6b977c909 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 491866633..dc56d995c 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 f3538884d..b2a3da597 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 9d4e8f522..f1fd8f73a 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 5fccb2a9c..57bf7dfd4 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 92fef085d..4d0ad283f 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 11152525f..66c4b8c01 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 db105484b..75aed0966 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 120641ec7..f581274c2 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 38614daf9..72efdc307 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 e66f4a75e..033e078b3 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 efe30ad08..87cf25f0c 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 f0d4f45ef..50f0225fa 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 90b73979e..ba9f6f41d 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,9 +7,13 @@ 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 c22552686..91f6f3c01 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,7 +10,11 @@ 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 9e2f6d79a..0fd222276 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 8dcc8e602..51273ec3b 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,12 +7,16 @@ 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 ba6b3e826..a1f22e7de 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,8 +7,12 @@ 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 1c4050783..e77e8d780 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,9 +7,13 @@ 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 afd59f8ac..2aea2f8ee 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,9 +7,21 @@ 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 c3e542c7c..18b8888ee 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,8 +7,12 @@ 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 763dbfe40..543564a91 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 1cb37a62d..b5676e56d 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 7c7026a1d..c70075216 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 71fb4d1b5..8da0ba48d 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 5dd88469d..aa82dc85b 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 83d4ac5ce..c7bd8ed99 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,21 +9,23 @@ 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 00f8a44fe..e1b6e93de 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 df702ae21..052114d92 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,16 +10,19 @@ 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 d86e21b9e..864c9a8fa 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 a5ae27fef..c9ed09f3a 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,16 +10,21 @@ 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 fce1f7c2c..49b6f786a 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 f2bd2ff1f..5056ac8a2 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 9202ce28e..a34d8b58e 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 b5c018d0c..ca788c2bc 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 416d33fc8..01d4e44db 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,15 +9,17 @@ 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 e02d240e5..7ceda1ccd 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 2846cf6e9..010ffb36d 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,14 +9,16 @@ 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 4d1c2f8db..cd592d237 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,13 +9,16 @@ 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 0ad3830b3..6b23e07f8 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 af7fc70e5..e64cc5bab 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,19 +9,21 @@ 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 c368ef570..ef7d6b674 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 412604d03..d0d856f61 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,19 +10,21 @@ 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 7a4e136a6..3dfe2ffa1 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,7 +9,12 @@ 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 38b41bddf..b60f3beb3 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,27 +9,29 @@ 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 72eb04947..6dfa28831 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 94fef7d4c..739d80bb3 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,14 +10,16 @@ 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 bd077110e..70462919d 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 9a326f9d4..9662f75bd 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,20 +10,22 @@ 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 e91eaf66b..32c4149d8 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 89205ee26..e8cb635fd 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,27 +9,33 @@ 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 796abed7b..dc14b777b 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 65fc004c5..0a9e3a693 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,10 +9,12 @@ 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 3c9baf0af..d5ca0b3ee 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,18 +10,20 @@ 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 d0c826fd2..1f0b70839 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 71304e777..ee64326c1 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 735c9cc7a..8dbf01f64 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,9 +9,11 @@ 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 eeb3f4653..d6806a98e 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 b568be548..b4066d733 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 7936ac8fb..1d9f67863 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 aa3fa7818..d599c9fa4 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 e73976d93..59ada2f1d 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,26 +9,28 @@ 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 b292c0f5c..5b82efe11 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 251c5d428..15b600383 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 933d72d12..0d46b3d56 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,24 +9,26 @@ 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 8f6e11da4..220442370 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,6 +10,10 @@ 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 771fde968..aa6921e41 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 8c2ec3379..70e391419 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,11 +10,15 @@ 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 d38620b98..a3c2f4902 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 fbb0ea0bd..f06b7bfef 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,10 +9,16 @@ 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 a20c0fa5d..d5ff8a47a 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 c88bf06b2..953212528 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,4 +14,6 @@ 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 97cbb1fd4..bbe793889 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 5c1d0c670..ae16fd014 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 8f70daaf5..2c4b6a094 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 2c47880f4..e756e32f0 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,11 +9,18 @@ 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 84d3f60de..15edce5b1 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 abe500666..52eb839eb 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 bf14fa9a5..485851119 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 ff7c0430c..ed40782e8 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 72f36faed..a17d877bd 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 0beb4afa9..2fc430d6d 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 2dd146e2a..a8774bf2f 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 45316ee3e..864d017a0 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 94d84f8f9..3566c0ee4 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 0fd3c3f00..82e9e614e 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 15ef1ec6d..6a04e9177 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 e27b6cabb..ac9c03bca 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 ca3f32049..402368ebd 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 aef3b6dcc..93ca61e4f 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 73438cef4..82f5918aa 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 19e77252c..9e89b6d85 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 431968e00..9a74b1e09 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 c0766d9bc..c026c6971 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 2aebd50d9..93d0ceada 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,23 +10,26 @@ 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 6c59cd21a..756b3754f 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 430de1525..6b3f22609 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,12 +9,15 @@ 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 04fd19b43..28607e1b6 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 524012db2..16f307c0f 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 60be78877..c2dbc89e3 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 028b0c6e0..46aa6c4fb 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 c6170291e..4c6c6b18d 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,21 +9,23 @@ 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 3eff1cd3b..eab5b1cb3 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 144505d75..a636e0655 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 a08231572..1cd5e51a2 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,20 +9,22 @@ 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 da80f49cb..6853ad8d3 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 45029cd39..abbf6ab28 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,28 +9,30 @@ 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 f587d696f..043d20e1b 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 4318f25ad..364277255 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,12 +7,14 @@ 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 513b39734..ec607589a 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,12 +7,15 @@ 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 aaa124406..78210aa74 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,12 +9,17 @@ 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 ca5eb14e6..a355dc5b2 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,12 +9,17 @@ 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 5c0236679..704ea0f16 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,12 +9,17 @@ 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 7d77ddf00..1b57ec367 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,11 +7,14 @@ 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 180be9ffb..100952bcd 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,12 +9,17 @@ 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 4190366af..d227a73ec 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,12 +7,17 @@ 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 bf7622835..5c7446c41 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,12 +9,17 @@ 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 887e79992..bbd1b8b5a 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,12 +9,14 @@ 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 4a181897f..2f5e2b414 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 dc6edd021..0dae4ae48 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,12 +9,15 @@ 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 e98040385..bc431d8a7 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 d1df6df8e..fb22c7355 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 3365cf226..a7825b1c1 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 69eb09631..44269d081 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 829ee0697..870a5631c 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 07ed728fc..3c7138f67 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 4c0c98486..b4c3e3b31 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 647d3c24d..613ab9c8e 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 bc926871d..096a0c323 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,12 +7,15 @@ 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 d0a34ea14..c3d6fbc9c 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,12 +7,15 @@ 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 d9409340f..d467cfe17 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,12 +7,15 @@ 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 6efbf8d0b..794464e22 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,12 +9,17 @@ 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 c4b0f1bd4..a5215ce4f 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,12 +9,17 @@ 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 626578477..3677932af 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,11 +9,14 @@ 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 be3cdf24c..a97e6065e 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,12 +9,15 @@ 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 417b73aba..fc826857a 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 0b449aa21..74bc39127 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,15 +9,18 @@ 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 2c9041b64..5723ab3ed 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,19 +9,22 @@ 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 68bc27855..45d301f5f 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 2d440b206..3df2d5ab4 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,26 +9,28 @@ 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 b23921071..1da77da81 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 2dd6ecef6..d6e5f8d34 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 fe5eb72aa..fe8918bfc 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 0c7a6d5e3..b6c230364 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 bebc2b020..df6ccdb90 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 a52fc2c2b..d795447cb 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 d9126d50a..f7914a941 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,18 +9,21 @@ 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 5a28ad017..03ecedcc6 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,22 +9,25 @@ 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 913202845..a2e997d8b 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 c9e19110c..a2b7393a9 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 04fca72a6..a2c4d150b 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 945db32b6..98cd84ad1 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 a6bbce103..0fbcf8f7a 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 23db7ce3a..a02c29a9e 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 a845aa77a..01a23927a 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 84e7c7b78..9dd98f582 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 b7a738427..f34254d01 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 acc8b9d40..42d67bbef 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 9b65b9c5b..e3032b4f4 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 2da89ea4f..c2740c110 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 6bbeebe52..fdb667af1 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,15 +7,16 @@ es5id: 15.4.4.19-5-2
description: Array.prototype.map - thisArg is Object
---*/
- var res = false;
- var o = new Object();
- o.res = true;
- function callbackfn(val, idx, obj)
- {
- return this.res;
- }
+var res = false;
+var o = new Object();
+o.res = true;
- var srcArr = [1];
- var resArr = srcArr.map(callbackfn,o);
+function callbackfn(val, idx, obj)
+{
+ return this.res;
+}
+
+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 f101b1660..0f105c52c 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,10 +8,11 @@ description: Array.prototype.map - the global object can be used as thisArg
---*/
var global = this;
- function callbackfn(val, idx, obj) {
- return this === global;
- }
- var testResult = [11].map(callbackfn, this);
+function callbackfn(val, idx, obj) {
+ return this === global;
+}
+
+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 9ef42b64e..1386aa749 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 29f99094a..8e7ee9835 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 292dca579..cb29707e6 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 08e3e062b..97dd1e728 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,15 +7,16 @@ es5id: 15.4.4.19-5-3
description: Array.prototype.map - thisArg is Array
---*/
- var res = false;
- var a = new Array();
- a.res = true;
- function callbackfn(val, idx, obj)
- {
- return this.res;
- }
+var res = false;
+var a = new Array();
+a.res = true;
- var srcArr = [1];
- var resArr = srcArr.map(callbackfn,a);
+function callbackfn(val, idx, obj)
+{
+ return this.res;
+}
+
+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 36c4c36ff..85ee3deec 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,17 +9,18 @@ description: >
template(prototype)
---*/
- var res = false;
- function callbackfn(val, idx, obj)
- {
- return this.res;
- }
+var res = false;
- function foo(){}
- foo.prototype.res = true;
- var f = new foo();
+function callbackfn(val, idx, obj)
+{
+ return this.res;
+}
- var srcArr = [1];
- var resArr = srcArr.map(callbackfn,f);
+function foo() {}
+foo.prototype.res = true;
+var f = new foo();
+
+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 2e1168549..9568cc3d4 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,17 +7,18 @@ es5id: 15.4.4.19-5-5
description: Array.prototype.map - thisArg is object from object template
---*/
- var res = false;
- function callbackfn(val, idx, obj)
- {
- return this.res;
- }
+var res = false;
- function foo(){}
- var f = new foo();
- f.res = true;
+function callbackfn(val, idx, obj)
+{
+ return this.res;
+}
- var srcArr = [1];
- var resArr = srcArr.map(callbackfn,f);
+function foo() {}
+var f = new foo();
+f.res = true;
+
+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 8950f71db..20366e19c 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,16 +7,17 @@ es5id: 15.4.4.19-5-6
description: Array.prototype.map - thisArg is function
---*/
- var res = false;
- function callbackfn(val, idx, obj)
- {
- return this.res;
- }
+var res = false;
- function foo(){}
- foo.res = true;
+function callbackfn(val, idx, obj)
+{
+ return this.res;
+}
- var srcArr = [1];
- var resArr = srcArr.map(callbackfn,foo);
+function foo() {}
+foo.res = true;
+
+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 7bd84eb59..7f11fa676 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 247bfb3c3..31f536819 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 2c86c43b8..b72e54a44 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 1acfec147..593496d85 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 eeb0830e8..07255dc87 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 f1bbd8be5..17ff67f93 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 3b6e5a675..10ef81567 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 5962cdd90..e488c8149 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,16 +9,17 @@ description: >
Array.length is decreased
---*/
- var callCnt = 0;
- function callbackfn(val, idx, obj)
- {
- srcArr.length = 2;
- callCnt++;
- return 1;
- }
+var callCnt = 0;
- var srcArr = [1,2,3,4,5];
- var resArr = srcArr.map(callbackfn);
+function callbackfn(val, idx, obj)
+{
+ srcArr.length = 2;
+ callCnt++;
+ return 1;
+}
+
+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 85747416a..969ef76b0 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,18 +9,19 @@ description: >
sparse array
---*/
- var callCnt = 0;
- function callbackfn(val, idx, obj)
- {
- srcArr[1000] = 3;
- callCnt++;
- return val;
- }
+var callCnt = 0;
- var srcArr = new Array(10);
- srcArr[1] = 1;
- srcArr[2] = 2;
- var resArr = srcArr.map(callbackfn);
+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);
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 131558eb4..1a3d4c175 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 02da272f1..537e153f5 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 6b3d7146d..0a9f95ed4 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,15 +9,20 @@ description: >
on an Array-like object
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
- }
+var accessed = false;
- var obj = { 0: 11, 1: 12, length: 0 };
+function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+}
- var testResult = Array.prototype.map.call(obj, callbackfn);
+var obj = {
+ 0: 11,
+ 1: 12,
+ length: 0
+};
+
+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 397d7a9ff..5f47a3a63 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,23 +9,24 @@ description: >
of iterations on an Array
---*/
- var called = 0;
- function callbackfn(val, idx, obj) {
- called += 1;
- return val > 10;
- }
+var called = 0;
- var arr = [9, , 12];
+function callbackfn(val, idx, obj) {
+ called += 1;
+ return val > 10;
+}
- Object.defineProperty(arr, "1", {
- get: function () {
- arr.length = 2;
- return 8;
- },
- configurable: true
- });
+var arr = [9, , 12];
- var testResult = arr.map(callbackfn);
+Object.defineProperty(arr, "1", {
+ get: function() {
+ arr.length = 2;
+ return 8;
+ },
+ configurable: true
+});
+
+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 1c9aa86a7..ff4a57e8a 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,16 +9,17 @@ description: >
assigned values
---*/
- var callCnt = 0;
- function callbackfn(val, idx, obj)
- {
- callCnt++;
- return 1;
- }
+var callCnt = 0;
- var srcArr = new Array(10);
- srcArr[1] = undefined; //explicitly assigning a value
- var resArr = srcArr.map(callbackfn);
+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);
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 040c0b852..18ef426fb 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,21 +9,24 @@ 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 58fccded0..d194b572b 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 0f5e4fc68..8d6fd84c8 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,24 +10,29 @@ 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 f510e09e2..7cea73c73 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 ddef903df..45131bd9a 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 1ed9f5ad3..2cf1762a5 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 b12e1aab0..5e5290fdd 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 bc7018536..74108f092 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 1377383e1..957b9048a 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,23 +7,26 @@ 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 8e166666d..bf1e739fb 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,30 +9,32 @@ 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 a38050144..c0ca4d259 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 2f12f0c1e..6f983455e 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,29 +9,31 @@ 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 fe1b0998c..5e40ddb27 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 1dd61b31e..58f3ac9c1 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,31 +9,33 @@ 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 1d0cc7640..a1dd861f2 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 8543d0ead..16b3fe326 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,17 +9,20 @@ 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 ccf8d3fbd..f9809a1a5 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 5e8f0eba5..db7bfa03d 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,29 +10,32 @@ 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 b23347737..9f61f72be 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 47c8e86c5..3ca3d54de 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,36 +10,38 @@ 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 57580015d..148bf9dbc 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 ada617c65..590dbe8bd 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,29 +9,31 @@ 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 78714aeab..8be14c2d2 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 2e3f9f987..9c0a96b09 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,20 +9,22 @@ 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 fda5968c7..142b2878d 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 7589e4c13..f20dbc098 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 e9fb0f558..b3c0686e2 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 d73b92a01..79faa2295 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 09387d328..d7e36fc41 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,24 +9,26 @@ 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 c45f502b2..1a4ba76c0 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 41cff6af1..74fd1615f 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 bf4e46b1d..66bb23233 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 3140c2b3b..c47bd08c3 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 ba96bfa5b..142bcdd8d 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 4e034ba2c..9d97893b8 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,39 +9,41 @@ 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 f3d9e7dd9..dac643e4e 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,23 +9,26 @@ 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 d9cec7c6b..cae9865e2 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,30 +9,35 @@ 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 6923f6d8f..094568212 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 192dd3f4d..cf77e3796 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 70b85169b..cf2c63c9b 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 c7970fc48..4c9ae7776 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 9a2b37c7b..908e1e6b1 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,22 +9,25 @@ 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 45597f7ea..03d312b30 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 ac0a9750c..2d58d345f 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,24 +9,26 @@ 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 d5ad9c8f9..94a0fad1d 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,18 +7,19 @@ es5id: 15.4.4.19-8-c-ii-1
description: Array.prototype.map - callbackfn called with correct parameters
---*/
- var bPar = true;
- var bCalled = false;
- function callbackfn(val, idx, obj)
- {
- bCalled = true;
- if(obj[idx] !== val)
- bPar = false;
- }
+var bPar = true;
+var bCalled = false;
- var srcArr = [0,1,true,null,new Object(),"five"];
- srcArr[999999] = -6.6;
- var resArr = srcArr.map(callbackfn);
+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);
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 2602ab100..546a84142 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 4bfbc76db..503c65ad3 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 8919089d1..d97ab0707 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 35523402a..cf89b2259 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 be5f0d3c7..bc4d4dce5 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,12 +9,15 @@ 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 dd16accb1..e095ed03e 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,12 +9,15 @@ 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 2fbb0a5b1..90501719b 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,12 +9,15 @@ 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 58f038dbc..a638a3126 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,20 +7,24 @@ 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 b405b41c5..34a8c1a41 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,17 +7,18 @@ es5id: 15.4.4.19-8-c-ii-2
description: Array.prototype.map - callbackfn takes 3 arguments
---*/
- 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
- }
+var parCnt = 3;
+var bCalled = false
- var srcArr = [0,1,2,3,4,5,6,7,8,9];
- var resArr = srcArr.map(callbackfn);
+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);
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 ddb585762..96f50c481 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,14 +9,20 @@ 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 b4f908ac8..50cd9a2cd 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,21 +9,25 @@ 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 7da27f9ee..a5a30861a 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,21 +9,25 @@ 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 78575602e..fd1431705 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,12 +9,15 @@ 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 b47ecdde1..5fe857f93 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,20 +7,21 @@ 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;
- function callbackfn(val, idx, o) {
- called++;
- if (lastIdx !== idx) {
- result = false;
- } else {
- lastIdx++;
- }
- }
+var arr = [0, 1, 2, 3, 4, 5];
+var lastIdx = 0;
+var called = 0;
+var result = true;
- arr.map(callbackfn);
+function callbackfn(val, idx, o) {
+ called++;
+ if (lastIdx !== idx) {
+ result = false;
+ } else {
+ lastIdx++;
+ }
+}
+
+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 fa7136b47..d0d8859c6 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 880856724..7ac9796c3 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,16 +7,19 @@ 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 346adb6c9..0ae5970fe 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,19 +9,24 @@ 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 467f3589a..e4e4d231d 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,15 +9,19 @@ 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 88f74819a..3554ac85b 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 b3fa6ffcc..5f759befb 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 999460193..6f5cbb81b 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,12 +9,16 @@ 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 fed4c1424..7525d1b0c 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,14 +9,18 @@ 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 f15aad4f1..4b918884d 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,21 +9,24 @@ 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 4bb7b42ff..44eaea59e 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,15 +9,19 @@ 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 daabdf4cb..a9cb1f51e 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 1b1854f44..5407e1ee9 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 f8c6a295f..aa0fd8891 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 41b4e362b..9ae64cd57 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 d4c208ccd..f84a937ee 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 c876d7f0a..cc3657e87 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 f89f39c9c..815868a48 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,13 +7,14 @@ es5id: 15.4.4.19-9-3
description: Array.prototype.map - subclassed array when length is reduced
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = 1;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
- var a = f.map(cb);
+function foo() {}
+var f = new foo();
+f.length = 1;
+
+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 f27f93bf0..3c01de3d0 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,15 +7,16 @@ es5id: 15.4.4.19-9-4
description: Array.prototype.map doesn't visit expandos
---*/
- var callCnt = 0;
- function callbackfn(val, idx, obj)
- {
- callCnt++;
- }
- var srcArr = [1,2,3,4,5];
- srcArr["i"] = 10;
- srcArr[true] = 11;
+var callCnt = 0;
- var resArr = srcArr.map(callbackfn);
+function callbackfn(val, idx, obj)
+{
+ callCnt++;
+}
+var srcArr = [1, 2, 3, 4, 5];
+srcArr["i"] = 10;
+srcArr[true] = 11;
+
+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 84ca53f15..6c04bb72e 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,12 +9,16 @@ 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 e2adc884c..a44859e17 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 b6ebf35ee..3370cc36c 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 fe1e1f5e4..9e08d61d3 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 31d18a807..73425afa1 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 b020704a2..505b661ce 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,7 +20,9 @@ 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 f99c51bdd..39318bb94 100644
--- a/test/built-ins/Array/prototype/map/create-ctor-poisoned.js
+++ b/test/built-ins/Array/prototype/map/create-ctor-poisoned.js
@@ -17,7 +17,9 @@ 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 484b77e6f..125e50a38 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,7 +22,9 @@ 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 05f315eba..077d421df 100644
--- a/test/built-ins/Array/prototype/map/create-non-array.js
+++ b/test/built-ins/Array/prototype/map/create-non-array.js
@@ -16,7 +16,9 @@ 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 a725bc877..77967d256 100644
--- a/test/built-ins/Array/prototype/map/create-revoked-proxy.js
+++ b/test/built-ins/Array/prototype/map/create-revoked-proxy.js
@@ -26,7 +26,9 @@ 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 dec04db2e..5c6656f28 100644
--- a/test/built-ins/Array/prototype/map/create-species-abrupt.js
+++ b/test/built-ins/Array/prototype/map/create-species-abrupt.js
@@ -26,7 +26,9 @@ 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 50657fef7..661894f6f 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,7 +25,9 @@ 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 11fb340d3..a232b6aa0 100644
--- a/test/built-ins/Array/prototype/map/create-species-poisoned.js
+++ b/test/built-ins/Array/prototype/map/create-species-poisoned.js
@@ -21,7 +21,9 @@ 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 bcd89aadf..bcd781bca 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,7 +32,9 @@ 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 7b729afba..f0c867df5 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 b12c14952..0e0cf824a 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 32ce3b74c..0ab566a45 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 ace9cd555..3573d2a23 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 43d1f76e1..d4dcd8184 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,7 +17,11 @@ 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));
@@ -25,7 +29,14 @@ 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));
@@ -33,7 +44,14 @@ 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));
@@ -42,9 +60,16 @@ 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));
}
}
@@ -58,7 +83,11 @@ 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));
@@ -66,7 +95,14 @@ 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));
@@ -75,7 +111,14 @@ 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));
}
@@ -88,7 +131,14 @@ 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 2be2539f5..424b9943c 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 fdbbc28cf..b309bc48a 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 4b9c4020b..56919c555 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 45d5af886..b5ebe7a12 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,7 +28,9 @@ 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 7ef34c737..3592d7253 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,7 +28,10 @@ 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 92adbd6ab..0c5899a55 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 7763b8f3c..a480b9c6c 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 181e68ca0..8d2e84db9 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 04ab24c3c..6c5c1c4ad 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,7 +35,9 @@ 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 f92536cc6..32aa88216 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,21 +16,39 @@ 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));
@@ -39,9 +57,16 @@ 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));
}
}
@@ -54,14 +79,25 @@ 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));
@@ -70,7 +106,14 @@ 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));
}
@@ -83,7 +126,14 @@ 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 dd596aefd..d9b26a6e3 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 bc762776c..90ed3ae4c 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 22a2c5b43..0ed4b027c 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 464dcacca..afaf0b143 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 6cbf65e07..70f1b41ac 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,7 +13,9 @@ 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 d4100dd0c..9cfc323fc 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 b727b5115..4c94e2987 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 1542fd025..ae71cd417 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 fdb550a91..264cd7934 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 d24e9841c..04bb5ee2a 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 4f4a9d6fd..67534e339 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 7e9604d55..ade27ade6 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 886330839..3bdd3e172 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 ae958b3d2..424e1e69f 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 efa389f9d..a5387f278 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 709021d9a..b070b9ea1 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 ae7e78214..833762b49 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 33519f325..c08a75077 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 20ca2f99f..8314bea9b 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 55eba5ba3..4ab488dc4 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 ca9911488..6869f90c0 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 169467bb2..96635cee2 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 dd00fe9bb..b2bd796bb 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 ae5680106..777c4d3f8 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 57b27d794..a01a48c92 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 ee1cd1801..5174a6300 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,10 +7,11 @@ es5id: 15.4.4.21-10-3
description: Array.prototype.reduce - subclassed array of length 1
---*/
- foo.prototype = [1];
- function foo() {}
- var f = new foo();
+foo.prototype = [1];
- function cb(){}
+function foo() {}
+var f = new foo();
+
+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 5dcd159f6..e84e53a71 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,10 +7,13 @@ 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);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3, 4);
- function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
+function foo() {}
+var f = new foo();
+
+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 f7778c537..82c843ecd 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 5babbe757..35e50b126 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,10 +9,13 @@ description: >
provided
---*/
- foo.prototype = [1,2,3,4];
- function foo() {}
- var f = new foo();
+foo.prototype = [1, 2, 3, 4];
- function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
+function foo() {}
+var f = new foo();
-assert.sameValue(f.reduce(cb,-1), 9, 'f.reduce(cb,-1)');
+function cb(prevVal, curVal, idx, obj) {
+ return prevVal + curVal;
+}
+
+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 e0cd77f63..1725c367e 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,10 +9,13 @@ description: >
initialvalue provided
---*/
- foo.prototype = [1];
- function foo() {}
- var f = new foo();
+foo.prototype = [1];
- function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
+function foo() {}
+var f = new foo();
-assert.sameValue(f.reduce(cb,-1), 0, 'f.reduce(cb,-1)');
+function cb(prevVal, curVal, idx, obj) {
+ return prevVal + curVal;
+}
+
+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 abb4066ee..3f1ffdcb4 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,15 +7,16 @@ 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 700961b96..4e5e8bb97 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 41de90c5c..18e09d6d3 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 25cf0e462..9dd5748b6 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,19 +9,20 @@ description: >
an own accessor property without a get function
---*/
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- }
+var accessed = false;
- var obj = {
- 0: 11,
- 1: 12
- };
- Object.defineProperty(obj, "length", {
- set: function () { },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = 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 375fa552d..da2f2a6ac 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,23 +10,27 @@ description: >
Array
---*/
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- }
+var accessed = false;
- Object.defineProperty(Object.prototype, "length", {
- get: function () {
- return 2;
- },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+}
- var obj = { 0: 12, 1: 11 };
- Object.defineProperty(obj, "length", {
- set: function () { },
- 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
+});
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 2be607315..7f1250292 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 3ed0c858f..f21ee41e7 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,13 +9,16 @@ 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 2d0636319..c53ac5820 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 6e50eadc5..43c4f960d 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 5b9a2c1c8..02eaafd2b 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 0770dea2b..6b63af80a 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 7abfa8846..ae2642759 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,19 +9,21 @@ 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 f1acd1884..a2666931e 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 2b000ba6a..5e826cf74 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 9385b2243..9088ded91 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,18 +9,20 @@ 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 1adfa3c8b..2aea682c7 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 2e76fa739..6d9537535 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,26 +9,28 @@ 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 08ef5140b..34b6ca18d 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 a7b058226..1cd10992a 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,14 +7,18 @@ 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 a2c41a303..982fd8965 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-10.js
@@ -9,14 +9,17 @@ description: >
(value is NaN)
---*/
- var accessed = false;
+var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return 2;
- }
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return 2;
+}
- var obj = { 0: 9, length: NaN };
+var obj = {
+ 0: 9,
+ length: NaN
+};
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
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 a5bbcd485..01185212a 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,10 +9,14 @@ 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 ca3bbd981..c1610fdf1 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,10 +9,14 @@ 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 4ab83fe8e..77c594df4 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,10 +9,14 @@ 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 8feeae4a8..26bf70c04 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,14 +7,17 @@ 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 e17fd3d9e..a467d5ba4 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,10 +9,14 @@ 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 ac8545db7..c1e8c7a11 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,10 +9,14 @@ 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 867184529..683e3d900 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,10 +9,14 @@ 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 d5705664f..4b797136b 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,13 +9,17 @@ description: >
convert to a number
---*/
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return 2;
- }
+var accessed = false;
- var obj = { 0: 9, length: "asdf!_" };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return 2;
+}
+
+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 3cc7aac5e..7d168f5e0 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 f4fc199e4..32492611f 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,10 +9,14 @@ 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 b15ff9a1d..32f5200bc 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 1188ac3ef..9470d7679 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 63fca1bd3..b7d4a852c 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 d48e58c90..c281ba361 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 48c4ede3c..c3e969f57 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 352c988a0..5a8f54239 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 89231153d..0fe83bd71 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,14 +7,18 @@ 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 1c6e0d988..864a0c1e5 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,14 +9,17 @@ 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 da3f4cf5f..0a22d02a3 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,14 +9,17 @@ 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 1617a7493..fbee22d42 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,10 +9,14 @@ 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 b8eb59871..b171abfd2 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,10 +9,14 @@ 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 dc8cbfd8d..33c8a72d3 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,13 +9,16 @@ 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 565eec8bf..ffc66baac 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 b37a75ea8..5592d22dc 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,15 +9,18 @@ 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 c3a439898..a9993c239 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,19 +9,22 @@ 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 087ba33ec..391122864 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,11 +7,12 @@ 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 509aeb618..7072a1d2c 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,27 +9,29 @@ 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 bc24e2d62..a510f11e1 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 8f1bbae3a..c980003a3 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 f562ac79f..f86249342 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 a17c110ef..19ea080d0 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 7a815eddc..10d80e665 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 57281c17c..5f5bb6516 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 07e01936b..da9ba950c 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,18 +9,21 @@ 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 31738344a..b0e48b628 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,22 +9,25 @@ 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 ebf1d0364..ca6c54034 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 457d6114d..2d392481c 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,22 +9,25 @@ 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 604a91c14..8b63d3e3e 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,26 +9,29 @@ 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 57209d338..8cdeb3b4c 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,19 +9,22 @@ 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 297d0d481..3285912c3 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,23 +9,26 @@ 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 c3ff294e2..ac6150304 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,12 +10,13 @@ description: >
no initVal
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = null;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
+function foo() {}
+var f = new foo();
+f.length = null;
+
+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 b0b9d0060..1fb61ac82 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,12 +10,13 @@ description: >
no initVal
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = false;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
+function foo() {}
+var f = new foo();
+f.length = false;
+
+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 c452e0f55..a68dd4934 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,12 +10,13 @@ description: >
initVal
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = 0;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
+function foo() {}
+var f = new foo();
+f.length = 0;
+
+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 287cae360..0717a9edd 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,12 +10,13 @@ description: >
initVal
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = '0';
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
+function foo() {}
+var f = new foo();
+f.length = '0';
+
+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 aba39d0b1..4a935d9a7 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,14 +10,19 @@ description: >
initVal
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- var o = { valueOf: function () { return 0;}};
- f.length = o;
+function foo() {}
+var f = new foo();
- function cb(){}
+var o = {
+ valueOf: function() {
+ return 0;
+ }
+};
+f.length = o;
+
+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 13e218f2c..faede2222 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,20 +10,25 @@ description: >
(toString)), no initVal
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- var o = { toString: function () { return '0';}};
- f.length = o;
+function foo() {}
+var f = new foo();
- // 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 o = {
+ toString: function() {
+ return '0';
+ }
+};
+f.length = o;
- function 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() {}
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 9d932b371..ddf3cbf52 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,27 +9,28 @@ description: >
(subclassed Array, length overridden with []), no initVal
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- f.length = [];
+function foo() {}
+var f = new foo();
- // 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.
+f.length = [];
- function 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.
+
+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 edbcb465f..8df0ed8c9 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,10 +9,11 @@ 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 db603f952..785c4e32f 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 f86e9806f..a03752192 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 619bb2d27..7c2dd91ff 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 27ddd16b0..7c227878c 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,10 +10,11 @@ description: >
null (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = null;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
-assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
+function foo() {}
+var f = new foo();
+f.length = null;
+
+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 eed2c040f..525f769e3 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,10 +10,11 @@ description: >
false (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = false;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
-assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
+function foo() {}
+var f = new foo();
+f.length = false;
+
+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 4fb6146f1..fed398c8e 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,10 +10,11 @@ description: >
(type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = 0;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
-assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
+function foo() {}
+var f = new foo();
+f.length = 0;
+
+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 4a6d8d59e..8634d03a6 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,10 +10,11 @@ description: >
'0' (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = '0';
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
-assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
+function foo() {}
+var f = new foo();
+f.length = '0';
+
+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 2c2174482..33c22e6e7 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,12 +10,17 @@ description: >
obj with valueOf)
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- var o = { valueOf: function () { return 0;}};
- f.length = o;
+function foo() {}
+var f = new foo();
- function cb(){}
-assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
+var o = {
+ valueOf: function() {
+ return 0;
+ }
+};
+f.length = o;
+
+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 3d7783369..db7132e8a 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,18 +10,23 @@ description: >
obj w/o valueOf (toString))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- var o = { toString: function () { return '0';}};
- f.length = o;
+function foo() {}
+var f = new foo();
- // 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 o = {
+ toString: function() {
+ return '0';
+ }
+};
+f.length = o;
- function cb(){}
-assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,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.
+
+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 430c58cd1..8ddc5cd6f 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,25 +10,26 @@ description: >
[])
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- f.length = [];
+function foo() {}
+var f = new foo();
- // 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.
+f.length = [];
- function cb(){}
-assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,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.
+
+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 744659f51..4f9f86265 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,25 +10,26 @@ description: >
[0])
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- f.length = [0];
+function foo() {}
+var f = new foo();
- // 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.
+f.length = [0];
- function cb(){}
-assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,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.
+
+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 d0650cfc4..af872fd92 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,20 +7,22 @@ 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 84a6d4181..a3796550a 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,18 +9,22 @@ 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 95062f462..03fd27c09 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 f2369b432..15b0dc2a0 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 12c5e2fdd..9c51a152a 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,14 +9,17 @@ 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 fbba69c12..eff2f84cf 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,14 +9,20 @@ description: >
property on an Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
- }
+var testResult = false;
- var obj = { 0: 0, 1: 1, 2: 2, length: 2 };
- Array.prototype.reduce.call(obj, callbackfn);
+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);
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 67b7b3f57..c3e9f4b4b 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 e1f08e697..e5c7a7b97 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,28 +10,33 @@ 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 9d9b802d0..79eba4945 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 00f0210ab..62d5da4b4 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,36 +10,39 @@ 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 77a1084be..0b1781550 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,28 +9,29 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "9");
- }
- }
+var testResult = false;
- Object.defineProperty(Array.prototype, "0", {
- get: function () {
- return 0;
- },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "9");
+ }
+}
- var arr = [, 1, 2];
- Object.defineProperty(arr, "0", {
- get: function () {
- return "9";
- },
- configurable: true
- });
+Object.defineProperty(Array.prototype, "0", {
+ get: function() {
+ return 0;
+ },
+ configurable: true
+});
- arr.reduce(callbackfn);
+var arr = [, 1, 2];
+Object.defineProperty(arr, "0", {
+ get: function() {
+ return "9";
+ },
+ 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-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-15.js
index 5344feebd..6e2cc64b9 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,28 +9,32 @@ description: >
accessor property on an Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
- }
+var testResult = false;
- var proto = { 1: 1, 2: 2 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+}
- Object.defineProperty(proto, "0", {
- get: function () {
- return 0;
- },
- configurable: true
- });
+var proto = {
+ 1: 1,
+ 2: 2
+};
- var Con = function () { };
- Con.prototype = proto;
+Object.defineProperty(proto, "0", {
+ get: function() {
+ return 0;
+ },
+ configurable: true
+});
- var child = new Con();
- child.length = 3;
+var Con = function() {};
+Con.prototype = proto;
- Array.prototype.reduce.call(child, callbackfn);
+var child = new Con();
+child.length = 3;
+
+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 c941e4581..2bfc2d804 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,22 +9,23 @@ description: >
accessor property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
- }
+var testResult = false;
- Object.defineProperty(Array.prototype, "0", {
- get: function () {
- return 0;
- },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+}
- var arr = [, 1, 2];
+Object.defineProperty(Array.prototype, "0", {
+ get: function() {
+ return 0;
+ },
+ configurable: true
+});
- arr.reduce(callbackfn);
+var arr = [, 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-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-17.js
index a411f9467..735d1c856 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,20 +9,25 @@ description: >
property without a get function on an Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === undefined);
- }
- }
+var testResult = false;
- var obj = { 1: 1, 2: 2, length: 3 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === undefined);
+ }
+}
- Object.defineProperty(obj, "0", {
- set: function () { },
- configurable: true
- });
+var obj = {
+ 1: 1,
+ 2: 2,
+ length: 3
+};
- Array.prototype.reduce.call(obj, callbackfn);
+Object.defineProperty(obj, "0", {
+ set: function() {},
+ 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-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-18.js
index fbdfb97c8..5b2a3b2f7 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,20 +9,21 @@ description: >
property without a get function on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === undefined);
- }
- }
+var testResult = false;
- var arr = [, 1, 2];
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === undefined);
+ }
+}
- Object.defineProperty(arr, "0", {
- set: function () { },
- configurable: true
- });
+var arr = [, 1, 2];
- arr.reduce(callbackfn);
+Object.defineProperty(arr, "0", {
+ set: function() {},
+ 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-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-19.js
index 1611043a2..9178b85fe 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,22 +10,27 @@ description: >
accessor property on an Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === undefined);
- }
- }
+var testResult = false;
- Object.prototype[0] = 0;
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === undefined);
+ }
+}
- var obj = { 1: 1, 2: 2, length: 3 };
+Object.prototype[0] = 0;
- Object.defineProperty(obj, "0", {
- set: function () { },
- configurable: true
- });
+var obj = {
+ 1: 1,
+ 2: 2,
+ length: 3
+};
- Array.prototype.reduce.call(obj, callbackfn);
+Object.defineProperty(obj, "0", {
+ set: function() {},
+ 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-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-2.js
index 06d593f56..f8ca72b6a 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,14 +9,15 @@ description: >
property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
- }
+var testResult = false;
- var arr = [0, 1, 2];
- arr.reduce(callbackfn);
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+}
+
+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 2a313d786..e4793560e 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,20 +10,21 @@ description: >
accessor property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === undefined);
- }
- }
+var testResult = false;
- Array.prototype[0] = 0;
- var arr = [, 1, 2];
- Object.defineProperty(arr, "0", {
- set: function () { },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === undefined);
+ }
+}
- arr.reduce(callbackfn);
+Array.prototype[0] = 0;
+var arr = [, 1, 2];
+Object.defineProperty(arr, "0", {
+ set: function() {},
+ 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-21.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-21.js
index d057b59b2..47a9a843b 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,26 +9,30 @@ description: >
accessor property without a get function on an Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === undefined);
- }
- }
+var testResult = false;
- var proto = { 1: 1, 2: 2 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === undefined);
+ }
+}
- Object.defineProperty(proto, "0", {
- set: function () { },
- configurable: true
- });
+var proto = {
+ 1: 1,
+ 2: 2
+};
- var Con = function () { };
- Con.prototype = proto;
+Object.defineProperty(proto, "0", {
+ set: function() {},
+ configurable: true
+});
- var child = new Con();
- child.length = 3;
+var Con = function() {};
+Con.prototype = proto;
- Array.prototype.reduce.call(child, callbackfn);
+var child = new Con();
+child.length = 3;
+
+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 f7d6f961c..dc05e7860 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,20 +9,21 @@ description: >
accessor property without a get function on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === undefined);
- }
- }
+var testResult = false;
- Object.defineProperty(Array.prototype, "0", {
- set: function () { },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === undefined);
+ }
+}
- var arr = [, 1, 2];
+Object.defineProperty(Array.prototype, "0", {
+ set: function() {},
+ configurable: true
+});
- arr.reduce(callbackfn);
+var arr = [, 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-25.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-25.js
index 202236645..451955fcc 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,17 +10,18 @@ description: >
less than number of parameters)
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
- }
+var testResult = false;
- var func = function (a, b, c) {
- Array.prototype.reduce.call(arguments, callbackfn);
- };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+}
- func(0, 1);
+var func = function(a, b, c) {
+ Array.prototype.reduce.call(arguments, callbackfn);
+};
+
+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 887f26315..eef4cdd6e 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,18 +10,19 @@ description: >
number of parameters)
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2) {
- testResult = (prevVal === 1);
- }
- }
+var testResult = false;
- var func = function (a, b, c) {
- delete arguments[0];
- Array.prototype.reduce.call(arguments, callbackfn);
- };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2) {
+ testResult = (prevVal === 1);
+ }
+}
- func(0, 1, 2);
+var func = function(a, b, c) {
+ delete arguments[0];
+ Array.prototype.reduce.call(arguments, callbackfn);
+};
+
+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 3f591f26e..fc4013d2d 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,19 +10,20 @@ description: >
greater than number of parameters)
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 3) {
- testResult = (prevVal === 2);
- }
- }
+var testResult = false;
- var func = function (a, b, c) {
- delete arguments[0];
- delete arguments[1];
- Array.prototype.reduce.call(arguments, callbackfn);
- };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 3) {
+ testResult = (prevVal === 2);
+ }
+}
- func(0, 1, 2, 3);
+var func = function(a, b, c) {
+ delete arguments[0];
+ delete arguments[1];
+ Array.prototype.reduce.call(arguments, callbackfn);
+};
+
+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 2a96496aa..1c429e4c7 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,14 +9,15 @@ description: >
implements its own property get method
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "0");
- }
- }
+var testResult = false;
- var str = new String("012");
- Array.prototype.reduce.call(str, callbackfn);
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "0");
+ }
+}
+
+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 8f5e18db7..0fe7328fe 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,21 +9,22 @@ description: >
implements its own property get method
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
- }
+var testResult = false;
- var obj = function (a, b, c) {
- return a + b + c;
- };
- obj[0] = 0;
- obj[1] = 1;
- obj[2] = 2;
- obj[3] = 3;
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+}
- Array.prototype.reduce.call(obj, callbackfn);
+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);
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 d77985dd3..15298bc3e 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,22 +10,28 @@ description: >
Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "9");
- }
- }
+var testResult = false;
- var proto = { 0: 0, 1: 1, 2: 2, length: 3 };
- var Con = function () { };
- Con.prototype = proto;
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "9");
+ }
+}
- var child = new Con();
- child[0] = "9";
- child[1] = "1";
- child.length = 3;
+var proto = {
+ 0: 0,
+ 1: 1,
+ 2: 2,
+ length: 3
+};
+var Con = function() {};
+Con.prototype = proto;
- Array.prototype.reduce.call(child, callbackfn);
+var child = new Con();
+child[0] = "9";
+child[1] = "1";
+child.length = 3;
+
+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 c307ddda9..45f396f05 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,35 +9,36 @@ 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 e035ae8e4..70282ce37 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,35 +10,38 @@ 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 132408543..50002a64e 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,24 +9,29 @@ description: >
on an Array-like object
---*/
- var accessed = false;
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx >= 1) {
- accessed = true;
- testResult = (prevVal === 0);
- }
- }
+var accessed = false;
+var testResult = false;
- var obj = { 2: 2, 1: 1, length: 3 };
- Object.defineProperty(obj, "0", {
- get: function () {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
- });
+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
+});
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 be7c29e8b..9f00cb900 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,25 +9,26 @@ description: >
on an Array
---*/
- var accessed = false;
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx >= 1) {
- accessed = true;
- testResult = (prevVal === 0);
- }
- }
+var accessed = false;
+var testResult = false;
- var arr = [, 1, 2];
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx >= 1) {
+ accessed = true;
+ testResult = (prevVal === 0);
+ }
+}
- Object.defineProperty(arr, "0", {
- get: function () {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
- });
+var arr = [, 1, 2];
+
+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 26118b58f..72a46d6c8 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,14 +9,15 @@ description: >
property that overrides an inherited data property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
- }
+var testResult = false;
- Array.prototype[0] = "9";
- [0, 1, 2].reduce(callbackfn);
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+}
+
+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 0c9aeb7b8..17c7e51c6 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,33 +10,34 @@ 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 22b4af3ec..2b0f847da 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,20 +9,21 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
- }
+var testResult = false;
- Object.defineProperty(Array.prototype, "0", {
- get: function () {
- return "5";
- },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+}
- [0, 1, 2].reduce(callbackfn);
+Object.defineProperty(Array.prototype, "0", {
+ get: function() {
+ return "5";
+ },
+ configurable: true
+});
+
+[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 6eaf1bac1..24fa5654c 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,20 +9,26 @@ description: >
property on an Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
- }
+var testResult = false;
- var proto = { 0: 0, 1: 1, 2: 2, length: 3 };
- var Con = function () { };
- Con.prototype = proto;
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+}
- var child = new Con();
- child.length = 3;
+var proto = {
+ 0: 0,
+ 1: 1,
+ 2: 2,
+ length: 3
+};
+var Con = function() {};
+Con.prototype = proto;
- Array.prototype.reduce.call(child, callbackfn);
+var child = new Con();
+child.length = 3;
+
+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 48166b7ee..0eed56363 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,16 +9,17 @@ description: >
property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
- }
+var testResult = false;
- Array.prototype[0] = 0;
- Array.prototype[1] = 1;
- Array.prototype[2] = 2;
- [, , ,].reduce(callbackfn);
+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);
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 82a348b81..d61c61aea 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,21 +9,26 @@ description: >
property on an Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
- }
+var testResult = false;
- var obj = { 1: 1, 2: 2, length: 3 };
- Object.defineProperty(obj, "0", {
- get: function () {
- return 0;
- },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+}
- Array.prototype.reduce.call(obj, callbackfn);
+var obj = {
+ 1: 1,
+ 2: 2,
+ length: 3
+};
+Object.defineProperty(obj, "0", {
+ get: function() {
+ return 0;
+ },
+ 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-c-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js
index 9fb6bc97c..bd6232342 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,11 +9,10 @@ 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 ae73a9a86..f30f014b9 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,13 +10,12 @@ 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 f4e87f5e0..15d80dfa2 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,16 +9,15 @@ 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 3e712b86d..db9f7aeba 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 756a4e93d..d04354342 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 af901dc8e..687736c2b 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 adbdc526a..178c34c70 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 cd677383a..64f4b8f79 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 6076c9b10..2ac5c2e73 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 10a0e4368..fec5a6b8d 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 2e74efa53..0db971210 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 e5942de1a..514951a74 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 e1d2f69fb..6b9f7ca03 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 b07ae9020..4fc56efea 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,14 +9,15 @@ description: >
element
---*/
- var callCnt = 0;
- function callbackfn(prevVal, curVal, idx, obj)
- {
- callCnt++;
- return 2;
- }
+var callCnt = 0;
- var arr = [1];
+function callbackfn(prevVal, curVal, idx, obj)
+{
+ callCnt++;
+ return 2;
+}
+
+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 a31d59a24..2d05468ef 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 67e99779f..f8c3a4b71 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 beceef98c..6feccfcb3 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,23 +7,26 @@ 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;
- function callbackfn() {
- callbackAccessed = true;
- }
+var accessed = false;
+var callbackAccessed = false;
- var obj = { length: 0 };
+function callbackfn() {
+ callbackAccessed = true;
+}
- Object.defineProperty(obj, "0", {
- get: function () {
- accessed = true;
- return 10;
- },
- configurable: true
- });
+var obj = {
+ length: 0
+};
- Array.prototype.reduce.call(obj, function () { }, "initialValue");
+Object.defineProperty(obj, "0", {
+ get: function() {
+ accessed = true;
+ return 10;
+ },
+ configurable: true
+});
+
+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 aa867346f..0a6ba82e4 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,22 +9,23 @@ description: >
number of iterations in step 9
---*/
- var called = 0;
- function callbackfn(accum, val, idx, obj) {
- called++;
- return accum + val;
- }
+var called = 0;
- var arr = [0, 1, 2, 3];
- Object.defineProperty(arr, "0", {
- get: function () {
- arr.length = 2;
- return 0;
- },
- configurable: true
- });
+function callbackfn(accum, val, idx, obj) {
+ called++;
+ return accum + val;
+}
- var newAccum = arr.reduce(callbackfn, "initialValue");
+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");
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 e7f18d3bd..274f1bb6e 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,10 +9,9 @@ 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 4adec3c10..bf0d29423 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,28 +10,31 @@ 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 b2f71de95..4636bd54a 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 c82150f24..7605c7ebe 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,25 +10,30 @@ 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 fa7a8f54d..4960d60e6 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 590122b87..0d00a3231 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 18cc65818..4d42c2ca7 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 29c1d4f8e..047fc4db9 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 34cbe8651..2364819b9 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,29 +9,31 @@ 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 9cede28d0..94cdebfc3 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 76fb7a817..719447c92 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,29 +9,31 @@ 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 42f76e8fa..eabeeb5eb 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 2d52994db..935e8ca31 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 f5ae4f380..200ac1c68 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,34 +9,37 @@ 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 f824832cb..64402e07c 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 3ee4365ed..236167f7e 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,28 +9,31 @@ 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 18d1e2069..7a2cbcd16 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 83c1b449e..311f9f21f 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,25 +10,30 @@ 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 c5b22131b..8a570c25e 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 a20faec87..bfbf66fbf 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 44bdb414c..ba16dafa8 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 a4f516743..1c872c518 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 8f8382931..2f72b891a 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,27 +9,30 @@ 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 249f49a29..208fd04f2 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,29 +9,31 @@ 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 43b8766cd..872321367 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 85e075d85..6002cbd91 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,29 +9,31 @@ 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 67e1fc135..b41a6c137 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 219d2df56..4386fa4a4 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,34 +9,37 @@ 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 ab402f336..2f9739a3d 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 9f22078b8..82bb1fd5f 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,15 +9,16 @@ description: >
been assigned values
---*/
- var callCnt = 0;
- function callbackfn(prevVal, curVal, idx, obj)
- {
- callCnt++;
- return curVal;
- }
+var callCnt = 0;
- var arr = new Array(10);
- arr[0] = arr[1] = undefined; //explicitly assigning a value
+function callbackfn(prevVal, curVal, idx, obj)
+{
+ callCnt++;
+ return curVal;
+}
+
+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 8e4385ae2..83910eb35 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,15 +9,21 @@ description: >
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 testResult = false;
+var initialValue = 0;
- var obj = { 0: 0, 1: 1, 2: 2, length: 2 };
- Array.prototype.reduce.call(obj, callbackfn, initialValue);
+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);
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 35db68b11..a297b0361 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,23 +9,24 @@ description: >
property on an Array
---*/
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
+var testResult = false;
+var initialValue = 0;
- var arr = [0, , 2];
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+}
- Object.defineProperty(arr, "1", {
- get: function () {
- return 1;
- },
- configurable: true
- });
+var arr = [0, , 2];
- arr.reduce(callbackfn, initialValue);
+Object.defineProperty(arr, "1", {
+ get: function() {
+ 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-c-i-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-11.js
index 3468f85ed..b5cc2ad9b 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,29 +10,34 @@ 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 85072151e..de4c3f77b 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,24 +9,25 @@ description: >
property that overrides an inherited data property on an Array
---*/
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "11");
- }
- }
+var testResult = false;
+var initialValue = 0;
- Array.prototype[1] = 1;
- var arr = [0, ,2];
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "11");
+ }
+}
- Object.defineProperty(arr, "1", {
- get: function () {
- return "11";
- },
- configurable: true
- });
+Array.prototype[1] = 1;
+var arr = [0, , 2];
- 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-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-13.js
index 49d727d7a..c29ed6061 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,36 +10,40 @@ 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 439002290..5d2ea3e9c 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,29 +9,30 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "11");
- }
- }
+var testResult = false;
+var initialValue = 0;
- Object.defineProperty(Array.prototype, "1", {
- get: function () {
- return 1;
- },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "11");
+ }
+}
- var arr = [0, ,2];
+Object.defineProperty(Array.prototype, "1", {
+ get: function() {
+ return 1;
+ },
+ configurable: true
+});
- Object.defineProperty(arr, "1", {
- get: function () {
- return "11";
- },
- configurable: true
- });
- arr.reduce(callbackfn, initialValue);
+var arr = [0, , 2];
+
+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 8a4819778..fb6f4b430 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,29 +9,33 @@ 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 0b26a8231..ea5b70bf7 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,23 +9,24 @@ description: >
accessor property on an Array
---*/
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
+var testResult = false;
+var initialValue = 0;
- Object.defineProperty(Array.prototype, "1", {
- get: function () {
- return 1;
- },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+}
- var arr = [0, , 2, ];
+Object.defineProperty(Array.prototype, "1", {
+ get: function() {
+ return 1;
+ },
+ configurable: true
+});
- arr.reduce(callbackfn, initialValue);
+var arr = [0, , 2, ];
+
+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 72e9c9c3e..261293885 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,21 +9,26 @@ description: >
property without a get function on an Array-like object
---*/
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === undefined);
- }
- }
+var testResult = false;
+var initialValue = 0;
- var obj = { 0: 0, 2: 2, length: 3 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === undefined);
+ }
+}
- Object.defineProperty(obj, "1", {
- set: function () { },
- configurable: true
- });
+var obj = {
+ 0: 0,
+ 2: 2,
+ length: 3
+};
- Array.prototype.reduce.call(obj, callbackfn, initialValue);
+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-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-18.js
index e5e1c98e3..8b1b27917 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,21 +9,22 @@ description: >
property without a get function on an Array
---*/
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === undefined);
- }
- }
+var testResult = false;
+var initialValue = 0;
- var arr = [0, , 2];
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === undefined);
+ }
+}
- Object.defineProperty(arr, "1", {
- set: function () { },
- configurable: true
- });
+var arr = [0, , 2];
- arr.reduce(callbackfn, initialValue);
+Object.defineProperty(arr, "1", {
+ set: function() {},
+ 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-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-19.js
index a8ab13f94..d385edd58 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,28 +10,33 @@ 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 cbabbcf45..bec49675d 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,15 +9,16 @@ description: >
property on an Array
---*/
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
+var testResult = false;
+var initialValue = 0;
- var arr = [0, 1];
- arr.reduce(callbackfn, initialValue);
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+}
+
+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 5596e002f..96d6089f4 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,27 +10,28 @@ description: >
accessor property on an Array
---*/
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === undefined);
- }
- }
+var testResult = false;
+var initialValue = 0;
- Object.defineProperty(Array.prototype, "1", {
- get: function () {
- return 11;
- },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === undefined);
+ }
+}
- var arr = [0, , 2];
- Object.defineProperty(arr, "1", {
- set: function () { },
- configurable: true
- });
+Object.defineProperty(Array.prototype, "1", {
+ get: function() {
+ return 11;
+ },
+ configurable: true
+});
- arr.reduce(callbackfn, initialValue);
+var arr = [0, , 2];
+Object.defineProperty(arr, "1", {
+ set: function() {},
+ 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-21.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-21.js
index 160a4ea8e..4994164fd 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,27 +9,31 @@ description: >
accessor property without a get function on an Array-like object
---*/
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === undefined);
- }
- }
+var testResult = false;
+var initialValue = 0;
- var proto = { 0: 0, 2: 2 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === undefined);
+ }
+}
- Object.defineProperty(proto, "1", {
- set: function () { },
- configurable: true
- });
+var proto = {
+ 0: 0,
+ 2: 2
+};
- var Con = function () { };
- Con.prototype = proto;
+Object.defineProperty(proto, "1", {
+ set: function() {},
+ configurable: true
+});
- var child = new Con();
- child.length = 3;
+var Con = function() {};
+Con.prototype = proto;
- Array.prototype.reduce.call(child, callbackfn, initialValue);
+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-22.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js
index e6a171d69..b906e19e7 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,21 +9,22 @@ description: >
accessor property without a get function on an Array
---*/
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === undefined);
- }
- }
+var testResult = false;
+var initialValue = 0;
- Object.defineProperty(Array.prototype, "1", {
- set: function () { },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === undefined);
+ }
+}
- var arr = [0, , 2];
+Object.defineProperty(Array.prototype, "1", {
+ set: function() {},
+ configurable: true
+});
- arr.reduce(callbackfn, initialValue);
+var arr = [0, , 2];
+
+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 dc5a6a969..08713388f 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,18 +10,19 @@ description: >
less than number of parameters)
---*/
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
+var testResult = false;
+var initialValue = 0;
- var func = function (a, b, c) {
- Array.prototype.reduce.call(arguments, callbackfn, initialValue);
- };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+}
- func(0, 1);
+var func = function(a, b, c) {
+ Array.prototype.reduce.call(arguments, callbackfn, initialValue);
+};
+
+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 a941dc65f..d8ce4350b 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,18 +10,19 @@ description: >
number of parameters)
---*/
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2) {
- testResult = (curVal === 2);
- }
- }
+var testResult = false;
+var initialValue = 0;
- var func = function (a, b, c) {
- Array.prototype.reduce.call(arguments, callbackfn, initialValue);
- };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2) {
+ testResult = (curVal === 2);
+ }
+}
- func(0, 1, 2);
+var func = function(a, b, c) {
+ Array.prototype.reduce.call(arguments, callbackfn, initialValue);
+};
+
+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 2907f2210..40b63f987 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,18 +10,19 @@ description: >
greater than number of parameters)
---*/
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 3) {
- testResult = (curVal === 3);
- }
- }
+var testResult = false;
+var initialValue = 0;
- var func = function (a, b, c) {
- Array.prototype.reduce.call(arguments, callbackfn, initialValue);
- };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 3) {
+ testResult = (curVal === 3);
+ }
+}
- func(0, 1, 2, 3);
+var func = function(a, b, c) {
+ Array.prototype.reduce.call(arguments, callbackfn, initialValue);
+};
+
+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 9422c48fc..92981a4a9 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,16 +9,17 @@ description: >
implements its own property get method
---*/
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
- }
+var testResult = false;
+var initialValue = 0;
- var str = new String("012");
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+}
- Array.prototype.reduce.call(str, callbackfn, initialValue);
+var str = new String("012");
+
+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 9003db41a..270742aa9 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,22 +9,23 @@ description: >
implements its own property get method
---*/
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
+var testResult = false;
+var initialValue = 0;
- var obj = function (a, b, c) {
- return a + b + c;
- };
- obj[0] = 0;
- obj[1] = 1;
- obj[2] = 2;
- obj[3] = 3;
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+}
- Array.prototype.reduce.call(obj, callbackfn, initialValue);
+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);
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 19a4e19a0..0a23d5c01 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,23 +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 testResult = false;
+var initialValue = 0;
- var proto = { 0: 0, 1: 1, 2: 2, length: 2 };
- var Con = function () { };
- Con.prototype = proto;
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "11");
+ }
+}
- var child = new Con();
- child[1] = "11";
- child[2] = "22";
- child.length = 3;
+var proto = {
+ 0: 0,
+ 1: 1,
+ 2: 2,
+ length: 2
+};
+var Con = function() {};
+Con.prototype = proto;
- Array.prototype.reduce.call(child, callbackfn, initialValue);
+var child = new Con();
+child[1] = "11";
+child[2] = "22";
+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-30.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-30.js
index 49c26b0e6..46dfa9feb 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,36 +9,37 @@ 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 f948d2978..db862cce1 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,36 +9,40 @@ 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 3654543c5..787d0261c 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,25 +9,30 @@ description: >
terminate iteration on an Array-like object
---*/
- var accessed = false;
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx >= 1) {
- accessed = true;
- testResult = (curVal >= 1);
- }
- }
+var accessed = false;
+var testResult = false;
+var initialValue = 0;
- var obj = { 0: 0, 2: 2, length: 3 };
- Object.defineProperty(obj, "1", {
- get: function () {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
- });
+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
+});
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 45c8487f9..eb596116a 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,26 +9,27 @@ description: >
terminate iteration on an Array
---*/
- var accessed = false;
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx >= 1) {
- accessed = true;
- testResult = (curVal >= 1);
- }
- }
+var accessed = false;
+var testResult = false;
+var initialValue = 0;
- var arr = [0, , 2];
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx >= 1) {
+ accessed = true;
+ testResult = (curVal >= 1);
+ }
+}
- Object.defineProperty(arr, "1", {
- get: function () {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
- });
+var arr = [0, , 2];
+
+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 5be0e63fc..0f26cabfe 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,15 +9,16 @@ description: >
property that overrides an inherited data property on an Array
---*/
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
+var testResult = false;
+var initialValue = 0;
- Array.prototype[1] = "3";
- [0, 1, 2].reduce(callbackfn, initialValue);
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+}
+
+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 fc93b44d1..44cb554c7 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,36 +10,37 @@ description: >
Array-like object
---*/
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- testResult = (curVal === "9");
- }
- }
+var testResult = false;
+var initialValue = 0;
- var proto = {};
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ testResult = (curVal === "9");
+ }
+}
- Object.defineProperty(proto, "0", {
- get: function () {
- return 0;
- },
- configurable: true
- });
+var proto = {};
- var Con = function () { };
- Con.prototype = proto;
+Object.defineProperty(proto, "0", {
+ get: function() {
+ return 0;
+ },
+ configurable: true
+});
- var child = new Con();
- child.length = 2;
+var Con = function() {};
+Con.prototype = proto;
- Object.defineProperty(child, "0", {
- value: "9",
- configurable: true
- });
+var child = new Con();
+child.length = 2;
- child[1] = "1";
+Object.defineProperty(child, "0", {
+ value: "9",
+ configurable: true
+});
- Array.prototype.reduce.call(child, callbackfn, initialValue);
+child[1] = "1";
+
+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 ee27f6242..d3aca565c 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,20 +9,21 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
+var testResult = false;
+var initialValue = 0;
- Object.defineProperty(Array.prototype, "1", {
- get: function () {
- return "9";
- },
- configurable: true
- });
- [0, 1, 2].reduce(callbackfn, initialValue);
+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);
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 b20d880b3..49844b47d 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,21 +9,27 @@ description: >
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 testResult = false;
+var initialValue = 0;
- var proto = { 0: 0, 1: 1, 2: 2, length: 3 };
- var Con = function () { };
- Con.prototype = proto;
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+}
- var child = new Con();
- child.length = 3;
+var proto = {
+ 0: 0,
+ 1: 1,
+ 2: 2,
+ length: 3
+};
+var Con = function() {};
+Con.prototype = proto;
- Array.prototype.reduce.call(child, callbackfn, initialValue);
+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-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-8.js
index 5906f0d47..08a408abd 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,17 +9,18 @@ description: >
property on an Array
---*/
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
+var testResult = false;
+var initialValue = 0;
- Array.prototype[0] = 0;
- Array.prototype[1] = 1;
- Array.prototype[2] = 2;
- [, , , ].reduce(callbackfn, initialValue);
+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);
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 8dcce90a1..5188213e3 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,22 +9,27 @@ description: >
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 testResult = false;
+var initialValue = 0;
- var obj = { 0: 0, 2: 2, length: 3 };
- Object.defineProperty(obj, "1", {
- get: function () {
- return 1;
- },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+}
- Array.prototype.reduce.call(obj, callbackfn, initialValue);
+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);
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 0b5a92f76..af3c3074e 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 6492c1d4b..9a9a5567d 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,11 +9,12 @@ description: >
parameter
---*/
- var result = false;
- function callbackfn(prevVal) {
- result = (prevVal === 1);
- }
+var result = false;
- [11].reduce(callbackfn, 1);
+function callbackfn(prevVal) {
+ result = (prevVal === 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 fe374ad09..503028a43 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,11 +9,12 @@ description: >
parameter
---*/
- var result = false;
- function callbackfn(prevVal, curVal) {
- result = (curVal > 10 && 1 === prevVal);
- }
+var result = false;
- [11].reduce(callbackfn, 1);
+function callbackfn(prevVal, curVal) {
+ result = (curVal > 10 && 1 === prevVal);
+}
+
+[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 282d5ccc5..58b12b3d2 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,11 +9,12 @@ description: >
parameter
---*/
- var result = false;
- function callbackfn(prevVal, curVal, idx) {
- result = (prevVal === 1 && arguments[3][idx] === curVal);
- }
+var result = false;
- [11].reduce(callbackfn, 1);
+function callbackfn(prevVal, curVal, idx) {
+ result = (prevVal === 1 && arguments[3][idx] === curVal);
+}
+
+[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 24cb3df06..170366208 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,11 +9,12 @@ description: >
parameter
---*/
- var result = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- result = (prevVal === 1 && obj[idx] === curVal);
- }
+var result = false;
- [11].reduce(callbackfn, 1);
+function callbackfn(prevVal, curVal, idx, obj) {
+ result = (prevVal === 1 && obj[idx] === curVal);
+}
+
+[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 170de856d..12cf2c428 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,11 +7,12 @@ es5id: 15.4.4.21-9-c-ii-14
description: Array.prototype.reduce - callbackfn that uses arguments
---*/
- var result = false;
- function callbackfn() {
- result = (arguments[0] === 1 && arguments[3][arguments[2]] === arguments[1]);
- }
+var result = false;
- [11].reduce(callbackfn, 1);
+function callbackfn() {
+ result = (arguments[0] === 1 && arguments[3][arguments[2]] === arguments[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 3dcd208df..976b1a269 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,24 +7,29 @@ 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 0c9704158..1179c4e14 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,19 +9,20 @@ description: >
is the result of previous iteration on an Array
---*/
- 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;
- }
+var result = true;
+var accessed = false;
+var preIteration = 1;
- [11, 12, 13].reduce(callbackfn, 1);
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (preIteration !== prevVal) {
+ result = false;
+ }
+ preIteration = curVal;
+ return curVal;
+}
+
+[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 52d3f41d3..acb90c345 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,15 +10,20 @@ description: >
Array-like object
---*/
- var result = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- result = (arguments[0] === 1);
- }
- }
+var result = false;
- var obj = { 0: 11, 1: 9, length: 2 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ result = (arguments[0] === 1);
+ }
+}
- Array.prototype.reduce.call(obj, callbackfn, 1);
+var obj = {
+ 0: 11,
+ 1: 9,
+ length: 2
+};
+
+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 b42385702..9f6c78aef 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,16 +10,17 @@ description: >
undefined when 'initialValue' is not present on an Array
---*/
- var called = 0;
- var result = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- called++;
- if (idx === 1) {
- result = (prevVal === 11) && curVal === 9;
- }
- }
+var called = 0;
+var result = false;
- [11, 9].reduce(callbackfn);
+function callbackfn(prevVal, curVal, idx, obj) {
+ called++;
+ if (idx === 1) {
+ result = (prevVal === 11) && curVal === 9;
+ }
+}
+
+[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 88c46fffc..024016564 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,18 +9,19 @@ description: >
(initialvalue passed)
---*/
- 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;
- }
+var bParCorrect = false;
- var arr = [0,1,true,null,new Object(),"five"];
- var initialValue = 5.5;
+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;
+}
-assert.sameValue(arr.reduce(callbackfn,initialValue), "five", 'arr.reduce(callbackfn,initialValue)');
+var arr = [0, 1, true, null, new Object(), "five"];
+var initialValue = 5.5;
+
+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 7b7cffb19..2e7552356 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,13 +7,17 @@ es5id: 15.4.4.21-9-c-ii-20
description: Array.prototype.reduce - undefined can be used as accumulator
---*/
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return typeof prevVal === "undefined";
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return typeof prevVal === "undefined";
+}
+
+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 1b2799701..1864d08fa 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,13 +7,17 @@ es5id: 15.4.4.21-9-c-ii-21
description: Array.prototype.reduce - null can be used as accumulator
---*/
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === null;
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === null;
+}
+
+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 7a7f286fc..272db1b96 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,13 +9,17 @@ description: >
accumulator
---*/
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === false;
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === false;
+}
+
+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 0ccff0d30..41fbfeb16 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,13 +9,17 @@ description: >
accumulator
---*/
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === 12;
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === 12;
+}
+
+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 5c3b4c73d..64fbb4eb3 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,13 +9,17 @@ description: >
accumulator
---*/
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === "hello_";
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === "hello_";
+}
+
+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 fe4c9a0a0..7a20725f1 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,15 +7,19 @@ 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;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objFunction;
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objFunction;
+}
+
+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 8402e82fa..44cd75abd 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,15 +7,19 @@ 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;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objArray;
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objArray;
+}
+
+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 951df7bd9..decc22588 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,15 +7,19 @@ 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;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objString;
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objString;
+}
+
+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 ca6c358b3..2eca0b849 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,15 +7,19 @@ 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;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objBoolean;
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objBoolean;
+}
+
+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 251e405a9..03ed7c189 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,15 +7,19 @@ 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;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objNumber;
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objNumber;
+}
+
+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 1f93af90c..dfd739127 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,16 +7,17 @@ es5id: 15.4.4.21-9-c-ii-3
description: Array.prototype.reduce - callbackfn takes 4 arguments
---*/
- 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];
+var bCalled = false;
-assert.sameValue(arr.reduce(callbackfn,true), true, 'arr.reduce(callbackfn,true)');
+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(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 0b3202e74..2cc426a8d 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,13 +7,17 @@ es5id: 15.4.4.21-9-c-ii-30
description: Array.prototype.reduce - the Math object can be used as accumulator
---*/
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === Math;
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === Math;
+}
+
+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 6e4c92b93..4bf720831 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,15 +7,19 @@ 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;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objDate;
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objDate;
+}
+
+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 8a0f61496..de51b59f3 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,15 +7,19 @@ 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;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objRegExp;
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objRegExp;
+}
+
+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 c010c39ff..b5cdc3cc8 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,13 +7,17 @@ es5id: 15.4.4.21-9-c-ii-33
description: Array.prototype.reduce - the JSON can be used as accumulator
---*/
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === JSON;
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === JSON;
+}
+
+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 8f6dbd888..9df298c15 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,15 +7,19 @@ 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;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objError;
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objError;
+}
+
+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 30daec0a8..8d01e4e83 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,19 +9,22 @@ 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 a0a46fa90..bb97f5f54 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,13 +10,17 @@ description: >
---*/
var global = this;
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === global;
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === global;
+}
+
+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 1d1517917..89872b127 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,13 +10,14 @@ 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 5b70ba220..f0982335e 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 4476ea3d0..2a7ad3a6a 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 9f76afad6..31c3a8c58 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,19 +9,24 @@ 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 b3395afcc..e3ed219e6 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,19 +9,24 @@ description: >
iterations is observed
---*/
- var result = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- obj[idx + 1] = 8;
- }
+var result = false;
- if (idx === 1) {
- result = (curVal === 8);
- }
- }
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ obj[idx + 1] = 8;
+ }
- var obj = { 0: 11, 1: 12, length: 2 };
+ if (idx === 1) {
+ result = (curVal === 8);
+ }
+}
- Array.prototype.reduce.call(obj, callbackfn, 1);
+var obj = {
+ 0: 11,
+ 1: 12,
+ length: 2
+};
+
+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 a8f5758d3..c9d0ae895 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,11 +9,12 @@ description: >
parameter
---*/
- var called = 0;
- function callbackfn() {
- called++;
- }
+var called = 0;
- [11, 12].reduce(callbackfn, 1);
+function callbackfn() {
+ called++;
+}
+
+[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 7650b6531..5a64f1472 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 341dac729..fb0a1f9f8 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 447771e6e..610b41291 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 06834d39e..efc9fa2e3 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 9d6b8f83c..822d57425 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 6b7e76ea4..4d8557c59 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 8e739dfab..a2bb8a9ff 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 602cef5da..cf08c68a5 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 54f2c207a..6fca6c304 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-3.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-3
description: Array.prototype.reduceRight applied to boolean primitive
---*/
- var accessed = false;
+var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj instanceof Boolean;
- }
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj instanceof Boolean;
+}
- Boolean.prototype[0] = 1;
- Boolean.prototype.length = 1;
+Boolean.prototype[0] = 1;
+Boolean.prototype.length = 1;
assert(Array.prototype.reduceRight.call(false, callbackfn, 1), 'Array.prototype.reduceRight.call(false, callbackfn, 1) !== true');
assert(accessed, 'accessed !== true');
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 77427f29c..d78244685 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 59244bbe9..c83b156f0 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 a0c2df0e8..9d1c2792a 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 6e368cfff..7c3dabefe 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 d034b48b3..9f6ee35db 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 1820f546c..42e6c8ca6 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 d9b0c874d..eaaca4897 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 1b34162cf..cffd5e08e 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 6e47fd871..de4a59b0c 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,10 +7,11 @@ es5id: 15.4.4.22-10-3
description: Array.prototype.reduceRight - subclassed array with length 1
---*/
- foo.prototype = [1];
- function foo() {}
- var f = new foo();
+foo.prototype = [1];
- function cb(){}
+function foo() {}
+var f = new foo();
+
+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 76afe6029..7726d9fde 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,10 +9,13 @@ description: >
than 1
---*/
- foo.prototype = new Array(0, 1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(0, 1, 2, 3);
- function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
+function foo() {}
+var f = new foo();
+
+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 78e6d744f..c5c29eb02 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 1ce24519c..37cb4705e 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,10 +9,13 @@ description: >
provided
---*/
- foo.prototype = new Array(0, 1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(0, 1, 2, 3);
- function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
+function foo() {}
+var f = new foo();
-assert.sameValue(f.reduceRight(cb,"4"), "43210", 'f.reduceRight(cb,"4")');
+function cb(prevVal, curVal, idx, obj) {
+ return prevVal + curVal;
+}
+
+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 27be976b4..813179ec7 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,10 +9,13 @@ description: >
and initialvalue provided
---*/
- foo.prototype = [1];
- function foo() {}
- var f = new foo();
+foo.prototype = [1];
- function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
+function foo() {}
+var f = new foo();
-assert.sameValue(f.reduceRight(cb,"4"), "41", 'f.reduceRight(cb,"4")');
+function cb(prevVal, curVal, idx, obj) {
+ return prevVal + curVal;
+}
+
+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 8a9eb8165..a9aa69740 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,15 +7,16 @@ es5id: 15.4.4.22-10-8
description: Array.prototype.reduceRight doesn't visit expandos
---*/
- var callCnt = 0;
- function callbackfn(prevVal, curVal, idx, obj)
- {
- callCnt++;
- }
- var srcArr = ['1','2','3','4','5'];
- srcArr["i"] = 10;
- srcArr[true] = 11;
+var callCnt = 0;
- srcArr.reduceRight(callbackfn);
+function callbackfn(prevVal, curVal, idx, obj)
+{
+ callCnt++;
+}
+var srcArr = ['1', '2', '3', '4', '5'];
+srcArr["i"] = 10;
+srcArr[true] = 11;
+
+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 5da45ad9d..5a7a0af52 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 ad204a77b..035cc1c82 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 dc8d017bd..ffd66953e 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 c162760d0..b685810f9 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,25 +10,28 @@ 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 56f37873f..7cdaf568c 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 26f6a9d37..75d312923 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,13 +9,16 @@ 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 41f7352af..b888b562e 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 89f7a89fa..bc036bf48 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 08bdd46df..f76fdf223 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 c56d545b4..b2b8335e1 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 feff6998d..ef1d83a5d 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,23 +9,25 @@ 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 0a1b81254..4335394fa 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,15 +9,16 @@ description: >
overrides an inherited data property on an Array
---*/
- var accessed = false;
- var arrProtoLen;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
- }
+var accessed = false;
+var arrProtoLen;
- arrProtoLen = Array.prototype.length;
- Array.prototype.length = 0;
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+}
+
+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 3fcf425de..50e35c3b4 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 b31b796cb..d41b9630a 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,20 +9,22 @@ 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 1400c9e8e..836ed95e1 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 85912235a..f867632c0 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,30 +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 = { 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 139b4d175..d47f6150f 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 d309b78ac..7ce837aeb 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,13 +7,16 @@ 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 be485e4db..938371d98 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,13 +9,16 @@ 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 c5d9cb5ab..63f6e5712 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,22 +9,28 @@ description: >
containing a positive number
---*/
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+var testResult1 = true;
+var testResult2 = false;
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
- var obj = { 0: 12, 1: 11, 2: 9, length: "2" };
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+}
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
+var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: "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-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-12.js
index f81ce7b4c..3a209ff40 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,22 +9,28 @@ description: >
containing a negative number
---*/
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+var testResult1 = true;
+var testResult2 = false;
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
- var obj = { 0: 11, 1: 12, 2: 9, length: "-4294967294" };
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+}
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
+var obj = {
+ 0: 11,
+ 1: 12,
+ 2: 9,
+ length: "-4294967294"
+};
+
+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 054d4cf94..6fb47ffde 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,22 +9,28 @@ description: >
containing a decimal number
---*/
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+var testResult1 = true;
+var testResult2 = false;
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
- var obj = { 0: 12, 1: 11, 2: 9, length: "2.5" };
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+}
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
+var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: "2.5"
+};
+
+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 8f7aeeb38..8fc2ef112 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,13 +9,16 @@ 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 a77e817bd..dc7937f77 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,22 +9,28 @@ description: >
containing an exponential number
---*/
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+var testResult1 = true;
+var testResult2 = false;
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
- var obj = { 0: 12, 1: 11, 2: 9, length: "2E0" };
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+}
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
+var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: "2E0"
+};
+
+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 6d75ccf2e..ac8deb3c9 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,22 +9,28 @@ description: >
containing a hex number
---*/
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+var testResult1 = true;
+var testResult2 = false;
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
- var obj = { 0: 12, 1: 11, 2: 9, length: "0x0002" };
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+}
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
+var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: "0x0002"
+};
+
+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 ace356165..5da8f8d4f 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,22 +9,28 @@ description: >
containing a number with leading zeros
---*/
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+var testResult1 = true;
+var testResult2 = false;
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
- var obj = { 0: 12, 1: 11, 2: 9, length: "0002.00" };
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+}
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
+var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: "0002.00"
+};
+
+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 1ae0c97f9..bd2586f98 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,13 +9,17 @@ 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 4f314ad51..1e2f2e395 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,39 +9,40 @@ 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 80ddaeaa9..77c0abd1b 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,13 +9,16 @@ 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 f277c7fa8..5b8cf1cbd 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,34 +9,35 @@ 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 1f7f478cd..31024633a 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,39 +10,40 @@ 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 717f2c2db..488f1808f 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 4a3951bcf..f9f5fa105 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 33ffe0951..db317c993 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,22 +9,28 @@ description: >
non-integer, ensure truncation occurs in the proper direction
---*/
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+var testResult1 = true;
+var testResult2 = false;
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
- var obj = { 0: 12, 1: 11, 2: 9, length: 2.685 };
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+}
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
+var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: 2.685
+};
+
+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 4895baa71..eb311aa6f 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,27 +9,28 @@ description: >
non-integer
---*/
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+var testResult1 = true;
+var testResult2 = false;
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
- var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: -4294967294.5
- };
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+}
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
+var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: -4294967294.5
+};
+
+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 5eb751221..b651dc45e 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,13 +9,16 @@ 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 8317bd611..9b7f07bd4 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,13 +9,16 @@ 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 d41f2f0db..9a8919e54 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,13 +9,16 @@ 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 4caab36e8..69ed877c2 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,22 +9,27 @@ description: >
is positive)
---*/
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+var testResult1 = true;
+var testResult2 = false;
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
- var obj = { 1: 11, 2: 9, length: 2 };
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+}
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
+var obj = {
+ 1: 11,
+ 2: 9,
+ length: 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-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-7.js
index 53556d6bd..a8da6c075 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,22 +9,27 @@ description: >
is negative)
---*/
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+var testResult1 = true;
+var testResult2 = false;
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
- var obj = { 1: 11, 2: 9, length: -4294967294 };
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+}
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
+var obj = {
+ 1: 11,
+ 2: 9,
+ length: -4294967294
+};
+
+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 b9a895999..7ecc600aa 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,13 +9,16 @@ 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 dc3e16591..04017e990 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 78a88e9b8..b6a599910 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,15 +9,18 @@ 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 cfb99f9c3..34885bde3 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,19 +9,22 @@ 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 8f8339475..f4e76497f 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,10 +7,11 @@ 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 38d8e3f06..cdef077c6 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,26 +9,28 @@ 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 51c148dce..40ea5d53c 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 129cfc44c..76b084c2b 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 d4dc6d1f2..9f0043f12 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 a20e6ccb3..e22ed2183 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 f32324399..e6437a1b3 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 86a86b8c9..c6104250d 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 2b7468f54..d76239982 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,18 +9,21 @@ 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 dac9e41fa..0da73eb44 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,22 +9,25 @@ 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 7aca86981..562903de4 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 ede41e29f..f70a3062d 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,18 +9,21 @@ 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 627bebe30..a0d148aac 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,22 +9,25 @@ 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 7115439f2..5a8f49096 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,15 +9,18 @@ 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 8ff17da58..f3a658dbd 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,19 +9,22 @@ 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 4f74f4fb5..e2ea6c0a1 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,12 +10,13 @@ description: >
no initVal
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = null;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
+function foo() {}
+var f = new foo();
+f.length = null;
+
+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 a19e73e2b..1256ed668 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,12 +10,13 @@ description: >
no initVal
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = false;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
+function foo() {}
+var f = new foo();
+f.length = false;
+
+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 31a202f5e..ec024658f 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,12 +10,13 @@ description: >
initVal
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = 0;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
+function foo() {}
+var f = new foo();
+f.length = 0;
+
+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 db633c214..ddf90e92e 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,12 +10,13 @@ description: >
initVal
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = '0';
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
+function foo() {}
+var f = new foo();
+f.length = '0';
+
+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 cea6793e0..76d34aed0 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,14 +10,19 @@ description: >
initVal
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- var o = { valueOf: function () { return 0;}};
- f.length = o;
+function foo() {}
+var f = new foo();
- function cb(){}
+var o = {
+ valueOf: function() {
+ return 0;
+ }
+};
+f.length = o;
+
+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 6fac3bfd8..bd392b800 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,20 +10,25 @@ description: >
(toString)), no initVal
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- var o = { toString: function () { return '0';}};
- f.length = o;
+function foo() {}
+var f = new foo();
- // 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 o = {
+ toString: function() {
+ return '0';
+ }
+};
+f.length = o;
- function 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() {}
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 10631cf82..93ce902f0 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,27 +9,28 @@ description: >
(subclassed Array, length overridden with []), no initVal
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- f.length = [];
+function foo() {}
+var f = new foo();
- // 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.
+f.length = [];
- function 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.
+
+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 ce3fe6844..8c9053cdb 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 cd191ee0e..76cec3316 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 ca80beabf..c50c734da 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 c7c2a92a6..466105ad6 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 d6bbe8e4d..226fe2e53 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,10 +10,11 @@ description: >
to null (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = null;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
-assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)');
+function foo() {}
+var f = new foo();
+f.length = null;
+
+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 f06d61ae5..07b39a3cc 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,10 +10,11 @@ description: >
to false (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = false;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
-assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)');
+function foo() {}
+var f = new foo();
+f.length = false;
+
+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 5cc4058fe..6006a08c3 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,10 +10,11 @@ description: >
to 0 (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = 0;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
-assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)');
+function foo() {}
+var f = new foo();
+f.length = 0;
+
+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 1a7b538fd..e91ba1627 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,10 +10,11 @@ description: >
to '0' (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = '0';
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
-assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)');
+function foo() {}
+var f = new foo();
+f.length = '0';
+
+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 7d7f0356d..5fda99875 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,12 +10,17 @@ description: >
with obj with valueOf)
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- var o = { valueOf: function () { return 0;}};
- f.length = o;
+function foo() {}
+var f = new foo();
- function cb(){}
-assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)');
+var o = {
+ valueOf: function() {
+ return 0;
+ }
+};
+f.length = o;
+
+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 a2fdb76eb..80819a2b4 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,18 +10,23 @@ description: >
with obj w/o valueOf (toString))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- var o = { toString: function () { return '0';}};
- f.length = o;
+function foo() {}
+var f = new foo();
- // 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 o = {
+ toString: function() {
+ return '0';
+ }
+};
+f.length = o;
- function cb(){}
-assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,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.
+
+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 88fd551cf..d2db08ed9 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,25 +10,26 @@ description: >
with [])
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- f.length = [];
+function foo() {}
+var f = new foo();
- // 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.
+f.length = [];
- function cb(){}
-assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,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.
+
+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 b7d1567e2..9903f299b 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,25 +10,26 @@ description: >
with [0])
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- f.length = [0];
+function foo() {}
+var f = new foo();
- // 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.
+f.length = [0];
- function cb(){}
-assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,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.
+
+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 2763dde2e..de85b84e2 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,20 +9,22 @@ 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 c2c0b4e85..96e4d9109 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,22 +9,23 @@ description: >
number of iterations in step 9
---*/
- var called = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- called++;
- return prevVal + curVal;
- }
+var called = 0;
- var arr = [0, 1, 2, 3];
- Object.defineProperty(arr, "4", {
- get: function () {
- arr.length = 2;
- return 10;
- },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ called++;
+ return prevVal + curVal;
+}
- var preVal = arr.reduceRight(callbackfn);
+var arr = [0, 1, 2, 3];
+Object.defineProperty(arr, "4", {
+ get: function() {
+ arr.length = 2;
+ return 10;
+ },
+ configurable: true
+});
+
+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 cfa839663..0c9292f97 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 41ea823dc..cbd57020e 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 4afeb3bb7..8da273e0c 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,14 +9,17 @@ 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 d3421ebb5..3edc44785 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,15 +9,20 @@ description: >
property on an Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- testResult = (prevVal === 1);
- }
- }
+var testResult = false;
- var obj = { 0: 0, 1: 1, length: 2 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ testResult = (prevVal === 1);
+ }
+}
- Array.prototype.reduceRight.call(obj, callbackfn);
+var obj = {
+ 0: 0,
+ 1: 1,
+ length: 2
+};
+
+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 2f82c1289..d76cbfc02 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,22 +9,23 @@ description: >
accessor property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2) {
- testResult = (curVal === 2);
- }
- }
+var testResult = false;
- var arr = [0, 1, , 3];
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2) {
+ testResult = (curVal === 2);
+ }
+}
- Object.defineProperty(arr, "2", {
- get: function () {
- return 2;
- },
- configurable: true
- });
+var arr = [0, 1, , 3];
- arr.reduceRight(callbackfn);
+Object.defineProperty(arr, "2", {
+ get: function() {
+ 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-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-11.js
index 62c9245a9..98aea64ef 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,28 +10,33 @@ 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 ee042baae..d322bc64d 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,23 +10,24 @@ description: >
Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "20");
- }
- }
+var testResult = false;
- Array.prototype[2] = 2;
- var arr = [0, 1];
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "20");
+ }
+}
- Object.defineProperty(arr, "2", {
- get: function () {
- return "20";
- },
- configurable: true
- });
+Array.prototype[2] = 2;
+var arr = [0, 1];
- arr.reduceRight(callbackfn);
+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-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-13.js
index 0d3c40e0a..f2e27dc4e 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,35 +10,39 @@ 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 3973a3593..74613a078 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,29 +10,30 @@ 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 5ed456fb1..4a484444e 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,28 +9,32 @@ description: >
accessor property on an Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
- }
+var testResult = false;
- var proto = { 0: 0, 1: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+}
- Object.defineProperty(proto, "2", {
- get: function () {
- return 2;
- },
- configurable: true
- });
+var proto = {
+ 0: 0,
+ 1: 1
+};
- var Con = function () { };
- Con.prototype = proto;
+Object.defineProperty(proto, "2", {
+ get: function() {
+ return 2;
+ },
+ configurable: true
+});
- var child = new Con();
- child.length = 3;
+var Con = function() {};
+Con.prototype = proto;
- Array.prototype.reduceRight.call(child, callbackfn);
+var child = new Con();
+child.length = 3;
+
+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 b2cc5cbb2..8d473225b 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,22 +9,23 @@ description: >
accessor property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
- }
+var testResult = false;
- Object.defineProperty(Array.prototype, "2", {
- get: function () {
- return 2;
- },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+}
- var arr = [0, 1, , ];
+Object.defineProperty(Array.prototype, "2", {
+ get: function() {
+ return 2;
+ },
+ configurable: true
+});
- arr.reduceRight(callbackfn);
+var arr = [0, 1, , ];
+
+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 754f25206..00cb06069 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,20 +9,25 @@ description: >
accessor property without a get function on an Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
- }
+var testResult = false;
- var obj = { 0: 0, 1: 1, length: 3 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+}
- Object.defineProperty(obj, "2", {
- set: function () { },
- configurable: true
- });
+var obj = {
+ 0: 0,
+ 1: 1,
+ length: 3
+};
- Array.prototype.reduceRight.call(obj, callbackfn);
+Object.defineProperty(obj, "2", {
+ set: function() {},
+ 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-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-18.js
index 7413e3140..4be07578a 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,20 +9,21 @@ description: >
accessor property without a get function on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
- }
+var testResult = false;
- var arr = [0, 1];
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+}
- Object.defineProperty(arr, "2", {
- set: function () { },
- configurable: true
- });
+var arr = [0, 1];
- arr.reduceRight(callbackfn);
+Object.defineProperty(arr, "2", {
+ set: function() {},
+ 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-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-19.js
index 55df142cb..65b0ec395 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,21 +10,26 @@ description: >
inherited accessor property on an Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
- }
+var testResult = false;
- Object.prototype[2] = 2;
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+}
- var obj = { 0: 0, 1: 1, length: 3 };
- Object.defineProperty(obj, "2", {
- set: function () { },
- configurable: true
- });
+Object.prototype[2] = 2;
- Array.prototype.reduceRight.call(obj, callbackfn);
+var obj = {
+ 0: 0,
+ 1: 1,
+ length: 3
+};
+Object.defineProperty(obj, "2", {
+ set: function() {},
+ 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-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-2.js
index e7dfce50c..6b68c4259 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,15 +9,16 @@ description: >
property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
- }
+var testResult = false;
- var arr = [0, 1, 2];
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+}
- arr.reduceRight(callbackfn);
+var arr = [0, 1, 2];
+
+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 7c0d2b3d5..f42f77de4 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,20 +10,21 @@ description: >
inherited accessor property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
- }
+var testResult = false;
- Array.prototype[2] = 2;
- var arr = [0, 1];
- Object.defineProperty(arr, "2", {
- set: function () { },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+}
- arr.reduceRight(callbackfn);
+Array.prototype[2] = 2;
+var arr = [0, 1];
+Object.defineProperty(arr, "2", {
+ set: function() {},
+ 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-21.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-21.js
index c2586e35a..234438eb9 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,26 +9,30 @@ description: >
accessor property without a get function on an Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
- }
+var testResult = false;
- var proto = { 0: 0, 1: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+}
- Object.defineProperty(proto, "2", {
- set: function () { },
- configurable: true
- });
+var proto = {
+ 0: 0,
+ 1: 1
+};
- var Con = function () { };
- Con.prototype = proto;
+Object.defineProperty(proto, "2", {
+ set: function() {},
+ configurable: true
+});
- var child = new Con();
- child.length = 3;
+var Con = function() {};
+Con.prototype = proto;
- Array.prototype.reduceRight.call(child, callbackfn);
+var child = new Con();
+child.length = 3;
+
+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 0c3321dce..801417004 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,20 +9,21 @@ description: >
accessor property without a get function on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
- }
+var testResult = false;
- Object.defineProperty(Array.prototype, "2", {
- set: function () { },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+}
- var arr = [0, 1, , ];
+Object.defineProperty(Array.prototype, "2", {
+ set: function() {},
+ configurable: true
+});
- arr.reduceRight(callbackfn);
+var arr = [0, 1, , ];
+
+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 ed00735cb..a00761e4b 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,17 +10,18 @@ description: >
is less than number of parameters)
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- testResult = (prevVal === 1);
- }
- }
+var testResult = false;
- var func = function (a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn);
- };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ testResult = (prevVal === 1);
+ }
+}
- func(0, 1);
+var func = function(a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn);
+};
+
+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 fa3c52c43..5024b8159 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,17 +10,18 @@ description: >
equals number of parameters)
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
- }
+var testResult = false;
- var func = function (a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn);
- };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+}
- func(0, 1, 2);
+var func = function(a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn);
+};
+
+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 c6cfe25cd..4b716884f 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,17 +10,18 @@ description: >
is greater than number of parameters)
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2) {
- testResult = (prevVal === 3);
- }
- }
+var testResult = false;
- var func = function (a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn);
- };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2) {
+ testResult = (prevVal === 3);
+ }
+}
- func(0, 1, 2, 3);
+var func = function(a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn);
+};
+
+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 892cfdc56..296ac59cd 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,15 +9,16 @@ description: >
implements its own property get method
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "2");
- }
- }
+var testResult = false;
- var str = new String("012");
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "2");
+ }
+}
- Array.prototype.reduceRight.call(str, callbackfn);
+var str = new String("012");
+
+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 acb274e17..e7c88ee8f 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,21 +9,22 @@ description: >
implements its own property get method
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
- }
+var testResult = false;
- var obj = function (a, b, c) {
- return a + b + c;
- };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+}
- obj[0] = 0;
- obj[1] = 1;
- obj[2] = 2;
+var obj = function(a, b, c) {
+ return a + b + c;
+};
- Array.prototype.reduceRight.call(obj, callbackfn);
+obj[0] = 0;
+obj[1] = 1;
+obj[2] = 2;
+
+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 062f12ba1..5dae8cade 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,22 +10,28 @@ description: >
Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "20");
- }
- }
+var testResult = false;
- var proto = { 0: 0, 1: 1, 2: 2, length: 2 };
- var Con = function () { };
- Con.prototype = proto;
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "20");
+ }
+}
- var child = new Con();
- child[1] = "10";
- child[2] = "20";
- child.length = 3;
+var proto = {
+ 0: 0,
+ 1: 1,
+ 2: 2,
+ length: 2
+};
+var Con = function() {};
+Con.prototype = proto;
- Array.prototype.reduceRight.call(child, callbackfn);
+var child = new Con();
+child[1] = "10";
+child[2] = "20";
+child.length = 3;
+
+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 bfebf8515..dd07c30e2 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,35 +9,36 @@ 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 8d8168a56..adc024dca 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,35 +9,39 @@ 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 49146cd49..e4056e11f 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,21 +9,26 @@ description: >
iteration on an Array-like object
---*/
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx <= 1) {
- accessed = true;
- }
- }
+var accessed = false;
- var obj = { 0: 0, 1: 1, length: 3 };
- Object.defineProperty(obj, "2", {
- get: function () {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: 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
+});
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 53f974e22..b770c5ccc 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,22 +9,23 @@ description: >
iteration on an Array
---*/
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx <= 1) {
- accessed = true;
- }
- }
+var accessed = false;
- var arr = [0, 1];
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx <= 1) {
+ accessed = true;
+ }
+}
- Object.defineProperty(arr, "2", {
- get: function () {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
- });
+var arr = [0, 1];
+
+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 2bf4cc00d..9363a9c3b 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,14 +9,15 @@ description: >
property that overrides an inherited data property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
- }
+var testResult = false;
- Array.prototype[2] = "11";
- [0, 1, 2].reduceRight(callbackfn);
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+}
+
+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 c08e59248..1eda02b46 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,34 +10,35 @@ 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 6bd5ab5eb..6f8f1eec3 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,19 +9,20 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
- }
+var testResult = false;
- Object.defineProperty(Array.prototype, "2", {
- get: function () {
- return "2";
- },
- configurable: true
- });
- [0, 1, 2].reduceRight(callbackfn);
+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);
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 a955557ec..55a3d6dbd 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,19 +9,25 @@ description: >
data property on an Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
- }
+var testResult = false;
- var proto = { 0: 0, 1: 1, 2: 2, length: 3 };
- var Con = function () { };
- Con.prototype = proto;
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+}
- var child = new Con();
+var proto = {
+ 0: 0,
+ 1: 1,
+ 2: 2,
+ length: 3
+};
+var Con = function() {};
+Con.prototype = proto;
- Array.prototype.reduceRight.call(child, callbackfn);
+var child = new Con();
+
+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 983566a9c..d7174183c 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,16 +9,17 @@ description: >
data property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
- }
+var testResult = false;
- Array.prototype[0] = 0;
- Array.prototype[1] = 1;
- Array.prototype[2] = 2;
- [, , ,].reduceRight(callbackfn);
+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);
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 e2f7da4b6..648e9485b 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,21 +9,26 @@ description: >
accessor property on an Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
- }
+var testResult = false;
- var obj = { 0: 0, 1: 1, length: 3 };
- Object.defineProperty(obj, "2", {
- get: function () {
- return 2;
- },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+}
- Array.prototype.reduceRight.call(obj, callbackfn);
+var obj = {
+ 0: 0,
+ 1: 1,
+ length: 3
+};
+Object.defineProperty(obj, "2", {
+ get: function() {
+ 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-c-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-1.js
index 9c1d91d3c..8c59328e3 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,11 +9,10 @@ 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 05271d674..3153f84f5 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,13 +10,12 @@ 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 e47a755d5..06d5460c7 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,16 +9,15 @@ 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 18296c2bf..4dc298096 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 b5dd24963..224ff36c3 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 476886a76..3dab92c10 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 2fabc8fd6..fade921f9 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 52c2ed7a6..d0e875976 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 8132b414c..ef9f26791 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 05fa751f0..4fa783dfe 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 eb48426ea..0455ef32a 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 0c00cf9c9..d3fa9884c 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 8cbf9edee..a11242c5d 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,14 +9,15 @@ description: >
one element
---*/
- var callCnt = 0;
- function callbackfn(prevVal, curVal, idx, obj)
- {
- callCnt++;
- return 2;
- }
+var callCnt = 0;
- var arr = [1];
+function callbackfn(prevVal, curVal, idx, obj)
+{
+ callCnt++;
+ return 2;
+}
+
+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 ca9493b31..24f658690 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 6adeffef5..b76b74b65 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 9968f8929..a2ef4d7fe 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,21 +9,24 @@ description: >
is 0
---*/
- var accessed = false;
- function callbackfn() {
- accessed = true;
- }
+var accessed = false;
- var obj = { length: 0 };
+function callbackfn() {
+ accessed = true;
+}
- Object.defineProperty(obj, "5", {
- get: function () {
- accessed = true;
- return 10;
- },
- configurable: true
- });
+var obj = {
+ length: 0
+};
- Array.prototype.reduceRight.call(obj, function () { }, "initialValue");
+Object.defineProperty(obj, "5", {
+ get: function() {
+ accessed = true;
+ return 10;
+ },
+ configurable: true
+});
+
+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 f5fc22ab3..ac47f378a 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,19 +9,20 @@ description: >
number of iterations
---*/
- var called = 0;
- function callbackfn(preVal, val, idx, obj) {
- called++;
- }
+var called = 0;
- var arr = [0, 1, 2, 3];
- Object.defineProperty(arr, "4", {
- get: function () {
- arr.length = 2;
- },
- configurable: true
- });
+function callbackfn(preVal, val, idx, obj) {
+ called++;
+}
- arr.reduceRight(callbackfn, "initialValue");
+var arr = [0, 1, 2, 3];
+Object.defineProperty(arr, "4", {
+ get: function() {
+ arr.length = 2;
+ },
+ configurable: true
+});
+
+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 9277ef37d..b7336d05e 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,11 +9,10 @@ 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 a92bf8dcc..1dd6fb9fe 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,28 +10,31 @@ 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 bd1bcb4f3..e364fbbb7 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 9d1eca645..a6aed7624 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,25 +10,29 @@ 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 fe522f071..470c9420a 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 16924c99c..8307a9768 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 456fc605b..97695a950 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 f23e5ecf0..71def64c7 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 d74fd82f5..d21d758ac 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,29 +9,31 @@ 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 d6ab2aac6..89ed61d4e 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 714b8ecd3..e31e3f370 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,29 +9,31 @@ 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 423ae546a..11d7140d9 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 b993b17f5..47586d76f 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 0b5b53ccf..13f3eeaa6 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,34 +9,37 @@ 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 d0bffcff6..8c57a1bd2 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 611310635..52046431c 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,28 +10,31 @@ 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 8f2c45520..9248519f9 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 78d46ed7b..bbfac7348 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,25 +10,30 @@ 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 7b0e441b3..6b7362927 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 45aa57a16..01b7f09b9 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 31ab61068..a039a64b7 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 b30c7d0b6..b5cd3bd28 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 3e26f8b98..c9bf72fcb 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,27 +9,30 @@ 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 e8038a797..de1e7e50e 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,29 +9,31 @@ 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 4c0df9703..be881241b 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 7149dad93..4c4616663 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,29 +9,31 @@ 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 b38b4cb50..1eea9497c 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 6e5c2a567..f71e3926e 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,34 +10,37 @@ 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 8cc465606..215cab2ef 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 fdce8cb0d..825a40814 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,15 +9,16 @@ description: >
never been assigned values
---*/
- var callCnt = 0;
- function callbackfn(prevVal, curVal, idx, obj)
- {
- callCnt++;
- return curVal;
- }
+var callCnt = 0;
- var arr = new Array(10);
- arr[0] = arr[1] = undefined; //explicitly assigning a value
+function callbackfn(prevVal, curVal, idx, obj)
+{
+ callCnt++;
+ return curVal;
+}
+
+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 da0debdf9..351f363ff 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,14 +9,20 @@ description: >
property on an Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- testResult = (curVal === 0);
- }
- }
+var testResult = false;
- var obj = { 0: 0, 1: 1, 2: 2, length: 2 };
- Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+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");
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 d4cf4da37..2c3a2f1e7 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,22 +9,23 @@ description: >
accessor property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
+var testResult = false;
- var arr = [0, , 2];
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+}
- Object.defineProperty(arr, "1", {
- get: function () {
- return 1;
- },
- configurable: true
- });
+var arr = [0, , 2];
- 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-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-11.js
index 1cbecd5ed..8d72dd51d 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,28 +10,33 @@ 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 e7a9e708f..61fb0309a 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,23 +10,24 @@ description: >
Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
- }
+var testResult = false;
- Array.prototype[1] = 11;
- var arr = [0, ,2];
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+}
- Object.defineProperty(arr, "1", {
- get: function () {
- return "1";
- },
- configurable: true
- });
+Array.prototype[1] = 11;
+var arr = [0, , 2];
- 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-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-13.js
index d9cbbc10b..f66c4bf60 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,35 +10,39 @@ 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 e0df7ceb0..25f63b507 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,28 +10,29 @@ description: >
an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
- }
+var testResult = false;
- Object.defineProperty(Array.prototype, "1", {
- get: function () {
- return 11;
- },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+}
- var arr = [0, ,2];
+Object.defineProperty(Array.prototype, "1", {
+ get: function() {
+ return 11;
+ },
+ configurable: true
+});
- Object.defineProperty(arr, "1", {
- get: function () {
- return "1";
- },
- configurable: true
- });
- arr.reduceRight(callbackfn, "initialValue");
+var arr = [0, , 2];
+
+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 f8684e9e8..270f2ed4b 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,28 +9,32 @@ description: >
accessor property on an Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
+var testResult = false;
- var proto = { 0: 0, 2: 2 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+}
- Object.defineProperty(proto, "1", {
- get: function () {
- return 1;
- },
- configurable: true
- });
+var proto = {
+ 0: 0,
+ 2: 2
+};
- var Con = function () { };
- Con.prototype = proto;
+Object.defineProperty(proto, "1", {
+ get: function() {
+ return 1;
+ },
+ configurable: true
+});
- var child = new Con();
- child.length = 3;
+var Con = function() {};
+Con.prototype = proto;
- Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+var child = new Con();
+child.length = 3;
+
+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 0f70fe617..78cdc1a28 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,22 +9,23 @@ description: >
accessor property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
+var testResult = false;
- Object.defineProperty(Array.prototype, "1", {
- get: function () {
- return 1;
- },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+}
- var arr = [0, , 2];
+Object.defineProperty(Array.prototype, "1", {
+ get: function() {
+ return 1;
+ },
+ configurable: true
+});
- arr.reduceRight(callbackfn, "initialValue");
+var arr = [0, , 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-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-17.js
index 04d28b556..7f9c3c073 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,20 +9,25 @@ description: >
accessor property without a get function on an Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
- }
+var testResult = false;
- var obj = { 0: 0, 2: 2, length: 3 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+}
- Object.defineProperty(obj, "1", {
- set: function () { },
- configurable: true
- });
+var obj = {
+ 0: 0,
+ 2: 2,
+ length: 3
+};
- Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+Object.defineProperty(obj, "1", {
+ set: function() {},
+ 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-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-18.js
index ffd33eaac..21a4bf39d 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,20 +9,21 @@ description: >
accessor property without a get function on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
- }
+var testResult = false;
- var arr = [0, , 2];
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+}
- Object.defineProperty(arr, "1", {
- set: function () { },
- configurable: true
- });
+var arr = [0, , 2];
- arr.reduceRight(callbackfn, "initialValue");
+Object.defineProperty(arr, "1", {
+ set: function() {},
+ 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-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-19.js
index ca309ae00..82ab638bd 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,21 +10,26 @@ description: >
inherited accessor property on an Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
- }
+var testResult = false;
- Object.prototype[1] = 1;
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+}
- var obj = { 0: 0, 2: 2, length: 3 };
- Object.defineProperty(obj, "1", {
- set: function () { },
- configurable: true
- });
+Object.prototype[1] = 1;
- Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+var obj = {
+ 0: 0,
+ 2: 2,
+ length: 3
+};
+Object.defineProperty(obj, "1", {
+ set: function() {},
+ 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-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-2.js
index f608df609..c7168a194 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,14 +9,15 @@ description: >
property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
+var testResult = false;
- var arr = [0, 1, 2];
- arr.reduceRight(callbackfn, "initialValue");
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+}
+
+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 266cafd1a..0f39cd442 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,20 +10,21 @@ description: >
inherited accessor property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
- }
+var testResult = false;
- Array.prototype[1] = 1;
- var arr = [0, ,2];
- Object.defineProperty(arr, "1", {
- set: function () { },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+}
- arr.reduceRight(callbackfn, "initialValue");
+Array.prototype[1] = 1;
+var arr = [0, , 2];
+Object.defineProperty(arr, "1", {
+ set: function() {},
+ 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-21.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-21.js
index 1e7b5fd1a..f5dda1c86 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,26 +9,30 @@ description: >
accessor property without a get function on an Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
- }
+var testResult = false;
- var proto = { 0: 0, 2: 2 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+}
- Object.defineProperty(proto, "1", {
- set: function () { },
- configurable: true
- });
+var proto = {
+ 0: 0,
+ 2: 2
+};
- var Con = function () { };
- Con.prototype = proto;
+Object.defineProperty(proto, "1", {
+ set: function() {},
+ configurable: true
+});
- var child = new Con();
- child.length = 3;
+var Con = function() {};
+Con.prototype = proto;
- Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+var child = new Con();
+child.length = 3;
+
+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 dedd4b643..365b543a5 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,20 +9,21 @@ description: >
accessor property without a get function on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
- }
+var testResult = false;
- Object.defineProperty(Array.prototype, "1", {
- set: function () { },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+}
- var arr = [0, , 2];
+Object.defineProperty(Array.prototype, "1", {
+ set: function() {},
+ configurable: true
+});
- arr.reduceRight(callbackfn, "initialValue");
+var arr = [0, , 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-25.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-25.js
index 81d2d0e04..9c177f936 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,17 +10,18 @@ description: >
is less than number of parameters)
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
+var testResult = false;
- var func = function (a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
- };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+}
- func(0, 1);
+var func = function(a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
+};
+
+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 e2518afe3..79984ddfe 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,17 +10,18 @@ description: >
equals number of parameters)
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2) {
- testResult = (curVal === 2);
- }
- }
+var testResult = false;
- var func = function (a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
- };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2) {
+ testResult = (curVal === 2);
+ }
+}
- func(0, 1, 2);
+var func = function(a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
+};
+
+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 677bcd3da..080ad10a2 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,17 +10,18 @@ description: >
is greater than number of parameters)
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 3) {
- testResult = (curVal === 3);
- }
- }
+var testResult = false;
- var func = function (a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
- };
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 3) {
+ testResult = (curVal === 3);
+ }
+}
- func(0, 1, 2, 3);
+var func = function(a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
+};
+
+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 83976643c..388685e91 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,14 +9,15 @@ description: >
implements its own property get method
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
- }
+var testResult = false;
- var str = new String("012");
- Array.prototype.reduceRight.call(str, callbackfn, "initialValue");
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+}
+
+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 b69e0332b..2cc8148fd 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,22 +9,23 @@ description: >
implements its own property get method
---*/
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
+var testResult = false;
+var initialValue = 0;
- var obj = function (a, b, c) {
- return a + b + c;
- };
- obj[0] = 0;
- obj[1] = 1;
- obj[2] = 2;
- obj[3] = 3;
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+}
- Array.prototype.reduceRight.call(obj, callbackfn, initialValue);
+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);
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 50fa72704..98c28ad1e 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,22 +10,28 @@ description: >
Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
- }
+var testResult = false;
- var proto = { 0: 10, 1: 11, 2: 12, length: 2 };
- var Con = function () { };
- Con.prototype = proto;
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+}
- var child = new Con();
- child[1] = "1";
- child[2] = "2";
- child.length = 3;
+var proto = {
+ 0: 10,
+ 1: 11,
+ 2: 12,
+ length: 2
+};
+var Con = function() {};
+Con.prototype = proto;
- Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+var child = new Con();
+child[1] = "1";
+child[2] = "2";
+child.length = 3;
+
+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 c3c66cd5f..234bf191a 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,35 +9,36 @@ 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 a25b15397..c560a641e 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,35 +9,38 @@ 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 a0225a882..57da7683a 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,22 +9,27 @@ description: >
getter terminate iteration on an Array-like object
---*/
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx <= 1) {
- accessed = true;
- }
- }
+var accessed = false;
+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 643f4ee4a..257325e49 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,24 +9,25 @@ description: >
getter terminate iteration on an Array
---*/
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx <= 1) {
- accessed = true;
- }
- }
+var accessed = false;
- var arr = [0, , 2];
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx <= 1) {
+ accessed = true;
+ }
+}
- Object.defineProperty(arr, "1", {
- get: function () {
- throw new Test262Error("unhandle exception happened in getter");
- },
- configurable: true
- });
+var arr = [0, , 2];
+
+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 a5226d8d8..a5145b80d 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,14 +9,15 @@ description: >
property that overrides an inherited data property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
+var testResult = false;
- Array.prototype[1] = "11";
- [0, 1, 2].reduceRight(callbackfn, "initialValue");
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+}
+
+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 fe417547f..6feb43a1b 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,33 +10,34 @@ 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 d3715f273..5b47467c3 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,19 +9,20 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
+var testResult = false;
- Object.defineProperty(Array.prototype, "1", {
- get: function () {
- return "11";
- },
- configurable: true
- });
- [0, 1, 2].reduceRight(callbackfn, "initialValue");
+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");
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 31f37fcee..e5a8ebfc3 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,20 +9,25 @@ description: >
data property on an Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
+var testResult = false;
- var proto = { 0: 0, 1: 1, 2: 2 };
- var Con = function () { };
- Con.prototype = proto;
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+}
- var child = new Con();
- child.length = 3;
+var proto = {
+ 0: 0,
+ 1: 1,
+ 2: 2
+};
+var Con = function() {};
+Con.prototype = proto;
- Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+var child = new Con();
+child.length = 3;
+
+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 754987649..ad73acacb 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,16 +9,17 @@ description: >
data property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
+var testResult = false;
- Array.prototype[0] = 0;
- Array.prototype[1] = 1;
- Array.prototype[2] = 2;
- [, , , ].reduceRight(callbackfn, "initialValue");
+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");
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 e26ebcc16..d512dd5da 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,21 +9,26 @@ description: >
accessor property on an Array-like object
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
+var testResult = false;
- var obj = { 0: 0, 2: 2, length: 3 };
- Object.defineProperty(obj, "1", {
- get: function () {
- return 1;
- },
- configurable: true
- });
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+}
- Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+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");
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 ef650ba62..50b5043be 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 ef2c33485..1953c9a37 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 50fe7d7aa..d6e3cfd1d 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 c29286b57..5d7a7b572 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 39325da4e..6fc2965d5 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 200649494..07437dba5 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 101a63d5f..401a680ec 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,15 +9,20 @@ 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 0b8e5be99..b2823532e 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 7e7098d40..28d86867b 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 194a32917..991b82cf0 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 7324a06a8..238b1e2a3 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 f4b5470c6..09cf7e099 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,13 +7,17 @@ es5id: 15.4.4.22-9-c-ii-20
description: Array.prototype.reduceRight - undefined can be used as accumulator
---*/
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return typeof prevVal === "undefined";
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return typeof prevVal === "undefined";
+}
+
+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 7f10e3b78..83f18c38c 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,13 +7,17 @@ es5id: 15.4.4.22-9-c-ii-21
description: Array.prototype.reduceRight - null can be used as accumulator
---*/
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === null;
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === null;
+}
+
+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 10b20d942..e130868f0 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,13 +9,17 @@ description: >
accumulator
---*/
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === false;
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === false;
+}
+
+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 57cb524bd..dc7dba028 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,13 +9,17 @@ description: >
accumulator
---*/
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === 12;
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === 12;
+}
+
+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 2326939fd..768eb6a3d 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,13 +9,17 @@ description: >
accumulator
---*/
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === "hello_";
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === "hello_";
+}
+
+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 4de1b221a..7d37c5f2a 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,14 +9,18 @@ description: >
accumulator
---*/
- var accessed = false;
- var objFunction = function () { };
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objFunction;
- }
+var accessed = false;
+var objFunction = function() {};
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objFunction;
+}
+
+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 485f17e10..e95896266 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,14 +9,18 @@ description: >
accumulator
---*/
- var accessed = false;
- var objArray = [];
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objArray;
- }
+var accessed = false;
+var objArray = [];
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objArray;
+}
+
+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 3414ccbc9..b5f187df0 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,14 +9,18 @@ description: >
accumulator
---*/
- var accessed = false;
- var objString = new String();
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objString;
- }
+var accessed = false;
+var objString = new String();
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objString;
+}
+
+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 541ff7834..e8f4b8bc0 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,14 +9,18 @@ description: >
accumulator
---*/
- var accessed = false;
- var objBoolean = new Boolean();
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objBoolean;
- }
+var accessed = false;
+var objBoolean = new Boolean();
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objBoolean;
+}
+
+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 852073958..7194c1789 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,14 +9,18 @@ description: >
accumulator
---*/
- var accessed = false;
- var objNumber = new Number();
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objNumber;
- }
+var accessed = false;
+var objNumber = new Number();
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objNumber;
+}
+
+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 7a53ea562..86a77aa36 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,16 +7,17 @@ es5id: 15.4.4.22-9-c-ii-3
description: Array.prototype.reduceRight - callbackfn takes 4 arguments
---*/
- 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];
+var bCalled = false;
-assert.sameValue(arr.reduceRight(callbackfn,true), true, 'arr.reduceRight(callbackfn,true)');
+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(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 c15160423..0df779018 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,13 +9,17 @@ description: >
accumulator
---*/
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === Math;
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === Math;
+}
+
+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 c58777b28..092e60ecf 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,14 +9,18 @@ description: >
accumulator
---*/
- var accessed = false;
- var objDate = new Date();
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objDate;
- }
+var accessed = false;
+var objDate = new Date();
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objDate;
+}
+
+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 08e8e4232..921bc654d 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,14 +9,18 @@ description: >
accumulator
---*/
- var accessed = false;
- var objRegExp = new RegExp();
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objRegExp;
- }
+var accessed = false;
+var objRegExp = new RegExp();
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objRegExp;
+}
+
+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 97419e156..37a2bd4a6 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,13 +7,17 @@ es5id: 15.4.4.22-9-c-ii-33
description: Array.prototype.reduceRight - the JSON can be used as accumulator
---*/
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === JSON;
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === JSON;
+}
+
+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 f384ce910..72fcc0cc5 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,14 +9,18 @@ description: >
accumulator
---*/
- var accessed = false;
- var objError = new RangeError();
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objError;
- }
+var accessed = false;
+var objError = new RangeError();
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objError;
+}
+
+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 11d7428b7..db05c37e0 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,19 +9,22 @@ 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 e8b37ab73..23314a32b 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,13 +10,17 @@ description: >
---*/
var global = this;
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === global;
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === global;
+}
+
+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 599387257..35efbafc9 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,13 +10,14 @@ 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 2fc5083b7..7dd1ce5ed 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 8d3811a03..ccb63b811 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 2c4f53601..f6f26025d 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,21 +9,26 @@ 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 3625e8a4d..439445c5b 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,15 +9,20 @@ 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 170d9d328..c1dfba328 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 7ca4f7f6e..fd092bbb9 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 62f93f6e5..a488885d4 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 ec750f626..384047599 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 2d521f112..77693f71c 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 1c41625f8..2fd9a2d2a 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 82fa71a07..44fefbf42 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,7 +40,9 @@ 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 f658651f4..942d287ad 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,7 +40,10 @@ 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 2296861a5..94e53bb20 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 e4b45f459..308eb5e19 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 f84a5392e..b087c14b7 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 3fac087a2..b736fa0f3 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 ea342a469..caf6bcb18 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 2dc7695d2..af9768c91 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 f16915d79..51e927577 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,7 +17,11 @@ 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));
@@ -25,7 +29,14 @@ 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));
@@ -33,7 +44,14 @@ 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));
@@ -42,9 +60,16 @@ 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));
}
}
@@ -58,7 +83,11 @@ 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));
@@ -66,7 +95,14 @@ 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));
@@ -75,7 +111,14 @@ 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));
}
@@ -88,7 +131,14 @@ 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 60942b64a..f1c786b21 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 3a7c667f3..8b7854630 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,7 +33,9 @@ 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 703c32e10..20fb5644e 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,7 +33,10 @@ 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 bd1c36582..ec1f509d3 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 567f24e6d..befb1fd88 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 42027f84c..5955eb054 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 29b2074ed..1967fdbca 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 7191ed8e2..719d7634c 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 b5ccf1064..6c6e24b85 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 c66a6bddf..63a86046a 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 5e1585a52..158c4e01d 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 efac0d415..f79bd3d4f 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 f424caee9..ef60e55af 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 8b6018424..c598e8679 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 cddd4790b..c12138e36 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 b5d84984f..664ed6861 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 0b4c0c2bc..761cb1266 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 f14a223e3..37f75f8cb 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 f544b49f5..c62284187 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 91919d207..ac01bd21b 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 b0d708464..a08595272 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 222609a98..0942b395b 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 cb326f250..3536e83a9 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 dc61d20fa..47fc27eaf 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 7bdeb3983..d6423de98 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 d81cd4a98..ceecbe2ae 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 6c86d2e50..be2087bab 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 d61be15bf..41514e027 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 86c49a99a..7d1f0fc99 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 57e496f09..e0c60b2fe 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,8 +8,15 @@ 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 5614b6d5a..b5274f83b 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 1ba6d4971..ab712d9ba 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 71a12e4c5..31c4a0359 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 b4e12693c..d5f4063e8 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 17e113c6b..78affa8a2 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,8 +8,15 @@ 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 2bb88ee45..05fb643f1 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 bf6dbdc52..0971b1a47 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 2d0ef0d24..9214694c6 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 d1aa9d258..398423039 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 1a4ad0bb1..63b69324b 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 7c65b5fbe..d6d1c630f 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 a5b78f6f0..95da2f223 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 9061638d0..d1cbc4585 100644
--- a/test/built-ins/Array/prototype/slice/create-non-array.js
+++ b/test/built-ins/Array/prototype/slice/create-non-array.js
@@ -16,7 +16,9 @@ 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 1d9f80606..d1839760a 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 2fa32db97..d3b429288 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 216ca2186..d4f780dfa 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 7c6c28469..b0bf38a18 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 79081ad78..d61f9594b 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 e34099ca7..905cf4274 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 650afc630..55105713d 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 292ab95af..821828784 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 d4622f376..27cfa61db 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 bdcf9c45c..abc12eef8 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 49c698f37..38edf932d 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 d17988608..e025ac0c2 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 ce0483b51..827d030ef 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 a5c84bfe5..78791585e 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 c44c66dc3..f69a384e3 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 bbef0f62b..4a439b90e 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 3dd74e302..866d6f61b 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 b8d3aec50..aa8eeca34 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 29409cea9..5a97e40fd 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 41b817a87..040621119 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 df83ae028..0f4f5077f 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,25 +10,28 @@ 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 d16ce1148..568c27705 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 ce43f05a3..78ee06b3e 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,14 +9,17 @@ 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 67829327e..21eb5feba 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 e640da588..336a943e4 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 a299cbbc7..07c1ada28 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 e546927ed..e8d870de6 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 d2ef52b08..f663fb274 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,24 +9,26 @@ 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 e3461b6b2..b966fb8c8 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,18 +9,19 @@ description: >
overrides an inherited data property on an array
---*/
- var arrProtoLen = 0;
- function callbackfn1(val, idx, obj) {
- return val > 10;
- }
+var arrProtoLen = 0;
- function callbackfn2(val, idx, obj) {
- return val > 11;
- }
+function callbackfn1(val, idx, obj) {
+ return val > 10;
+}
- arrProtoLen = Array.prototype.length;
- Array.prototype.length = 0;
- Array.prototype[2] = 12;
+function callbackfn2(val, idx, obj) {
+ return val > 11;
+}
+
+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 af407300f..6433283d2 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 c559436e5..2b322c625 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,23 +9,25 @@ 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 223196674..0a3e4b4e6 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 4fd06784b..9e23a9381 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,31 +9,33 @@ 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 efd0405f0..c670d9a8d 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 75dd25133..8f93e82c5 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,14 +7,17 @@ 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 042091cbf..ef0361216 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,14 +7,17 @@ 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 0c0dc91bd..fa9790642 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,15 +9,20 @@ 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 5308096de..ac407faa9 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,15 +9,20 @@ 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 127405c68..dcaa0d724 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,15 +9,20 @@ 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 ac471bf34..77607bfca 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,16 +7,25 @@ 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 08a39ca38..a74c4bceb 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,15 +9,20 @@ 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 86173aca7..057f06876 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,15 +7,20 @@ 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 cf2759e88..857fa9a37 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,15 +9,20 @@ 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 a8924f21f..13de82ccd 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,14 +9,18 @@ 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 dddf8132d..c8521e83c 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 3b90cbdd1..2898ce5ae 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,15 +9,19 @@ 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 af023ef5e..9464bc45e 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 cb1926df0..c0d6aa9c8 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 a166c39f7..1dc3f2b00 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 29c6dfbbd..ec119aec4 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 fd95a3234..562d7fdf1 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 ef10bed26..e1916896b 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 31d402e2d..b47063417 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 eeca40a0b..132a0ec3b 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 769953764..97637f6a7 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,14 +7,17 @@ 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 cfcc27fc3..3a35aa149 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,14 +7,17 @@ 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 27d31dea7..2eddf9891 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,14 +7,17 @@ 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 053e096a9..c53b2808f 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,15 +9,20 @@ 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 31de3aa25..fcfdbecf2 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,15 +9,20 @@ 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 f5496a481..6946b1899 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,14 +9,17 @@ 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 c65f458c0..c0b2c5c15 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,14 +9,17 @@ 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 9ff74cac0..30976864e 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 345f1474c..3300ce532 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,15 +9,18 @@ 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 0eec6e6c3..d0c7e6a74 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,19 +9,22 @@ 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 a7d7c1f70..156090da3 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 ef372ed69..c46be1588 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 8d200ecce..260caee75 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 79c8e45fd..74b4e4acc 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 9530cb781..ef357be26 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 ac6df1f87..7a281a229 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 530cfb4e1..7339b3cc4 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 be4508eeb..06105fd1e 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 ea4f92934..4735534bd 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,18 +9,21 @@ 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 ba37bfec5..7e7773359 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,22 +9,25 @@ 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 737db1039..f94bc04c6 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 bbbac58db..9effb1bb1 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 b30a41be9..7b9f0b960 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 03e69a4ae..19c1305d5 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 79f3e73ee..7f908ab7f 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 ec80e4d63..d5d94de65 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 41ce9be97..93e4deb57 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 9bca4cb95..145681226 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 122b6abf6..e9a56f636 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 344f84d9e..27ec167f4 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 5d6a3dccd..338b3c0dd 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 6e702f470..03815a02d 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 76776201d..e0142b343 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,14 +7,15 @@ es5id: 15.4.4.17-5-2
description: Array.prototype.some - thisArg is Object
---*/
- var res = false;
- var o = new Object();
- o.res = true;
- function callbackfn(val, idx, obj)
- {
- return this.res;
- }
+var res = false;
+var o = new Object();
+o.res = true;
- var arr = [1];
+function callbackfn(val, idx, obj)
+{
+ return this.res;
+}
+
+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 974c7f0e8..e80fe9b22 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,8 +8,9 @@ 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 e61e97a4a..448098312 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 3ded5ff25..a5f030faf 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 5daa055f1..a1d268d09 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 a20dcd8ad..2c7c60a5a 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 69a2180cc..6e5d2f245 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,14 +7,15 @@ es5id: 15.4.4.17-5-3
description: Array.prototype.some - thisArg is Array
---*/
- var res = false;
- var a = new Array();
- a.res = true;
- function callbackfn(val, idx, obj)
- {
- return this.res;
- }
+var res = false;
+var a = new Array();
+a.res = true;
- var arr = [1];
+function callbackfn(val, idx, obj)
+{
+ return this.res;
+}
+
+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 95351bc9a..32e813992 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,15 +9,16 @@ description: >
template(prototype)
---*/
- var res = false;
- function callbackfn(val, idx, obj)
- {
- return this.res;
- }
+var res = false;
- function foo(){}
- foo.prototype.res = true;
- var f = new foo();
- var arr = [1];
+function callbackfn(val, idx, obj)
+{
+ return this.res;
+}
-assert.sameValue(arr.some(callbackfn,f), true, 'arr.some(callbackfn,f)');
+function foo() {}
+foo.prototype.res = true;
+var f = new foo();
+var arr = [1];
+
+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 383181643..6b946e865 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,15 +7,16 @@ es5id: 15.4.4.17-5-5
description: Array.prototype.some - thisArg is object from object template
---*/
- var res = false;
- function callbackfn(val, idx, obj)
- {
- return this.res;
- }
+var res = false;
- function foo(){}
- var f = new foo();
- f.res = true;
- var arr = [1];
+function callbackfn(val, idx, obj)
+{
+ return this.res;
+}
-assert.sameValue(arr.some(callbackfn,f), true, 'arr.some(callbackfn,f)');
+function foo() {}
+var f = new foo();
+f.res = true;
+var arr = [1];
+
+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 f7213225c..e0d074917 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,14 +7,15 @@ es5id: 15.4.4.17-5-6
description: Array.prototype.some - thisArg is function
---*/
- var res = false;
- function callbackfn(val, idx, obj)
- {
- return this.res;
- }
+var res = false;
- function foo(){}
- foo.res = true;
- var arr = [1];
+function callbackfn(val, idx, obj)
+{
+ return this.res;
+}
-assert.sameValue(arr.some(callbackfn,foo), true, 'arr.some(callbackfn,foo)');
+function foo() {}
+foo.res = true;
+var arr = [1];
+
+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 f4198a8b0..ae6c1fd3d 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 501906bf9..155ab3fd2 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 5935681cb..081c7a788 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 8429933e0..117aeb738 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 d27cbb211..8b193f933 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 5b060256f..7d683efcf 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 89a9a1770..19fbb07fc 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 e8da5fae6..a5f38a483 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 e257955c9..2712e0c85 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,14 +7,18 @@ 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 312351df0..d07c519b0 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,22 +9,26 @@ 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 997bac982..b6b52b099 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,15 +9,16 @@ description: >
been assigned values
---*/
- var callCnt = 0;
- function callbackfn(val, idx, obj)
- {
- callCnt++;
- return false;
- }
+var callCnt = 0;
- var arr = new Array(10);
- arr[1] = undefined;
- arr.some(callbackfn);
+function callbackfn(val, idx, obj)
+{
+ callCnt++;
+ return false;
+}
+
+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 acddf79b8..008b55632 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,22 +9,26 @@ description: >
prototype index property not to be visited on an Array-like Object
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return idx === 1;
- }
- var arr = { 2: 2, length: 20 };
+var accessed = false;
- Object.defineProperty(arr, "0", {
- get: function () {
- delete Object.prototype[1];
- return 0;
- },
- configurable: true
- });
+function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx === 1;
+}
+var arr = {
+ 2: 2,
+ length: 20
+};
- Object.prototype[1] = 1;
+Object.defineProperty(arr, "0", {
+ get: function() {
+ delete Object.prototype[1];
+ return 0;
+ },
+ configurable: true
+});
+
+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 e7f1170a9..3e457ac48 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,22 +9,23 @@ description: >
prototype index property not to be visited on an Array
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return idx === 1;
- }
- var arr = [0, , 2];
+var accessed = false;
- Object.defineProperty(arr, "0", {
- get: function () {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
- });
+function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx === 1;
+}
+var arr = [0, , 2];
- Array.prototype[1] = 1;
+Object.defineProperty(arr, "0", {
+ get: function() {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+});
+
+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 e575c9fd6..2eeb1e90c 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,23 +10,28 @@ 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 4f1afb3af..c15b1fade 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 db0bf87e4..ebcb32a56 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,20 +9,21 @@ description: >
property not to be visited
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return idx === 3;
- }
- var arr = [0, 1, 2, "last"];
+var accessed = false;
- Object.defineProperty(arr, "0", {
- get: function () {
- arr.length = 3;
- return 0;
- },
- configurable: true
- });
+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
+});
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 7c4647504..69f8f9a6c 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 21fb924b0..86c3b3c00 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 e1dedd411..abf9b78b9 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 fa54b0595..2193d2469 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,20 +9,24 @@ description: >
here
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return idx === 2;
- }
- var arr = { 2: 6.99, 8: 19};
+var accessed = false;
- Object.defineProperty(arr, "length", {
- get: function () {
- delete arr[2];
- return 10;
- },
- configurable: true
- });
+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
+});
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 2f3a8122d..8b02ca336 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,27 +9,29 @@ 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 c808200a9..ab0a8e637 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 b57354dc5..804282bc1 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,26 +9,28 @@ 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 5dd76771b..921e832ae 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 b99ca8154..0ec7f3393 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,27 +9,30 @@ description: >
not to be visited on an Array-like object
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return idx === 1;
- }
- var arr = { length: 2 };
+var accessed = false;
- Object.defineProperty(arr, "1", {
- get: function () {
- return 6.99;
- },
- configurable: true
- });
+function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx === 1;
+}
+var arr = {
+ length: 2
+};
- Object.defineProperty(arr, "0", {
- get: function () {
- delete arr[1];
- return 0;
- },
- 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
+});
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 389a129ad..42272384d 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,27 +9,28 @@ description: >
not to be visited on an Array
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- accessed = true;
- return idx === 1;
- }
- var arr = [1, 2];
+var accessed = false;
- Object.defineProperty(arr, "1", {
- get: function () {
- return "6.99";
- },
- configurable: true
- });
+function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx === 1;
+}
+var arr = [1, 2];
- Object.defineProperty(arr, "0", {
- get: function () {
- delete arr[1];
- return 0;
- },
- 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
+});
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 7d22a36d5..4f4115e58 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,15 +9,18 @@ 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 32488b488..85226cf16 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 bbd62f9dc..f0c2c4a15 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,28 +10,30 @@ 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 94c83d554..753d317a6 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 329d30001..e358b560c 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 b96e60a53..bdb2d85ab 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 7f862aaad..f357611b9 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 ee3cf2adb..f610a757f 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 b4113bdbc..f3206fd63 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,17 +9,19 @@ 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 41742e981..55f64f688 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 7d45a5523..859dc4022 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,19 +10,21 @@ 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 cd3c2ced7..543d15db4 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 320cb9899..d39314005 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 18fc2abe1..3365018fc 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 a6086840b..5635c65aa 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 87a76dd0b..fe7a12aad 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 626c4fec9..8a0dd4b0f 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 de0a66b25..f54a10f05 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 da8a40f1e..8e423c615 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 416660ba0..ac802b112 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,32 +9,34 @@ 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 e9b625ee7..055231576 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,22 +10,24 @@ 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 9803d3576..4ce67a0b6 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,22 +9,25 @@ description: >
terminate iteration on an Array-like object
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
- return true;
- }
+var accessed = false;
- var obj = { length: 20 };
- Object.defineProperty(obj, "1", {
- get: function () {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: 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
+});
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 5fe12afb7..9d9cc00c1 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,23 +9,24 @@ description: >
terminate iteration on an Array
---*/
- var accessed = false;
- function callbackfn(val, idx, obj) {
- if (idx > 0) {
- accessed = true;
- }
- return true;
- }
+var accessed = false;
- var arr = [];
- arr[10] = 100;
- Object.defineProperty(arr, "0", {
- get: function () {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: 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
+});
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 8312a515b..64dd495a9 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 5d2c92a76..d8fcfaf35 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 19eece565..ef5da1409 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 fe4c1e892..f346f9252 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,21 +9,23 @@ 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 7fdcc8816..fb71d4fc7 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 fe3819ddd..208143274 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,22 +9,24 @@ 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 5d83fff70..c865faae2 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 b7bbd6e84..13301777b 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 c67f16452..3bf00f445 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 9fcb899c6..a892afde5 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 6d61b65b6..6917e2635 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 c1f58e55a..d6fb5d60b 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,10 +9,13 @@ 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 85a7f5b2e..198346eb6 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,10 +9,13 @@ 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 e8edeec02..9498f8079 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,10 +9,14 @@ 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 2e8a6f213..4d0063e47 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,14 +7,19 @@ 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 0546acaa1..be738c154 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 342f98b38..899fb2efb 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,12 +9,17 @@ 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 2e9555012..31d3af3b0 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,21 +9,25 @@ 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 00f6a963c..e01efeac2 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,21 +9,25 @@ 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 b5baef317..58c4b0ef2 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,10 +9,14 @@ 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 8e784584d..fb0265b5e 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,17 +9,18 @@ description: >
returns true
---*/
- var callCnt = 0;
- function callbackfn(val, idx, obj)
- {
- callCnt++;
- if(idx > 5)
- return true;
- else
- return false;
- }
+var callCnt = 0;
- var arr = [0,1,2,3,4,5,6,7,8,9];
+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];
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 c9c277ef3..8642acfdb 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 bfac0f468..5b80ddcde 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 8700b391a..f67b3e415 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,11 +7,14 @@ 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 a8742d69f..ff362211b 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,20 +9,25 @@ 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 9c926f28a..451d0b3d3 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,13 +9,17 @@ 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 a49cd35a6..b9c6c8eda 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 5acfb38bf..4e2074291 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,14 +7,17 @@ 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 0b26acd25..d56170844 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 e17e0f6ff..1defdc292 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 1eaab0e8a..adfd8efbf 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 5690c14b4..2e20fa5ba 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 c0776e90f..a15cbed88 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 37974b816..1de47b0a3 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 dc3c10f89..f0b7db75d 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 ba9188b14..a2be9ec37 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 871b4a217..7d273f4ec 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 0c71f5486..a87205ead 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 19318e4b6..b52aff527 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,14 +7,17 @@ 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 481f06fc7..2911f87bc 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 04a02a0da..068cd5d0d 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 706a94dad..b71d84635 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 d90675753..c0316a94b 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 55f76e23d..f8ff2dc7f 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 b3aaf6366..f0237397d 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 e8119a33d..d96e7e783 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,8 +10,9 @@ 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 320659651..e971d690d 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,37 +7,40 @@ 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 cb3c75c0d..d0d8b0cde 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 b5c6ee0ee..ab3d088db 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,14 +9,17 @@ 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 ff056a325..9b885029c 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,10 +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: 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 6b0b20e3d..f67054b66 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 f54c2e9a7..af6699424 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 eae2d4fcb..ddb2d1df6 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 a5fc01f22..ce9133200 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 2d966cbd0..3f389202c 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 0546141f5..d37fa7cb2 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 d3da6def0..bb8b38ba1 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,19 +7,20 @@ es5id: 15.4.4.17-8-10
description: Array.prototype.some - subclassed array when length is reduced
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = 2;
+foo.prototype = new Array(1, 2, 3);
- function cb(val)
- {
- if(val > 2)
- return true;
- else
- return false;
- }
- var i = f.some(cb);
+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);
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 8d5f1a786..c5914d1a6 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,14 +9,15 @@ description: >
return false
---*/
- var callCnt = 0;
- function callbackfn(val, idx, obj)
- {
- callCnt++;
- return false;
- }
+var callCnt = 0;
- var arr = [0,1,2,3,4,5,6,7,8,9];
+function callbackfn(val, idx, obj)
+{
+ callCnt++;
+ return false;
+}
+
+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 5912e36c4..0ba4ed10f 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 7ef5af8be..863317f98 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,16 +7,17 @@ es5id: 15.4.4.17-8-13
description: Array.prototype.some doesn't visit expandos
---*/
- var callCnt = 0;
- function callbackfn(val, idx, obj)
- {
- callCnt++;
- return false;
- }
+var callCnt = 0;
- var arr = [0,1,2,3,4,5,6,7,8,9];
- arr["i"] = 10;
- arr[true] = 11;
+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;
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 da760e894..90ab6cb60 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,13 +9,14 @@ description: >
Array, length overridden to null (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = null;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
- var i = f.some(cb);
+function foo() {}
+var f = new foo();
+f.length = null;
+
+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 f35fe2196..efe0afb0c 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,13 +9,14 @@ description: >
Array, length overridden to false (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = false;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
- var i = f.some(cb);
+function foo() {}
+var f = new foo();
+f.length = false;
+
+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 5b6d7153e..32bfde408 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,13 +9,14 @@ description: >
Array, length overridden to 0 (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = 0;
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
- var i = f.some(cb);
+function foo() {}
+var f = new foo();
+f.length = 0;
+
+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 e66aa4802..1e2fe9b3b 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,13 +9,14 @@ description: >
Array, length overridden to '0' (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = '0';
+foo.prototype = new Array(1, 2, 3);
- function cb(){}
- var i = f.some(cb);
+function foo() {}
+var f = new foo();
+f.length = '0';
+
+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 5607fad05..546c43f50 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,15 +9,20 @@ description: >
Array, length overridden with obj with valueOf)
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- var o = { valueOf: function () { return 0;}};
- f.length = o;
+function foo() {}
+var f = new foo();
- function cb(){}
- var i = f.some(cb);
+var o = {
+ valueOf: function() {
+ return 0;
+ }
+};
+f.length = o;
+
+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 c483ee3d6..1b4d757c0 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,21 +9,26 @@ description: >
Array, length overridden with obj w/o valueOf (toString))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
+foo.prototype = new Array(1, 2, 3);
- var o = { toString: function () { return '0';}};
- f.length = o;
+function foo() {}
+var f = new foo();
- // 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 o = {
+ toString: function() {
+ return '0';
+ }
+};
+f.length = o;
- function cb(){}
- var i = f.some(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.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 14dd2908f..1365c1faf 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,28 +9,29 @@ 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 4dbefaaf6..b43210978 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 2a141dba5..0f6a27357 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 334aa6263..321b6f63f 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 336bcadff..044858b0a 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 de262fd3c..c2bfb0615 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,9 +11,16 @@ 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 537e1be33..771eba4c8 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 2c67068ae..0075ca299 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 ddc5354f0..6e5df4ec4 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,11 +8,18 @@ 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 d4598f7c0..c8fe6d58f 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,15 +10,33 @@ 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 e5c56d65d..5da87d3d4 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,13 +10,31 @@ 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
@@ -26,7 +44,7 @@ var alphabet = [true, "a", "X", NaN, Infinity, 2, 1, obj, -1, undefined];
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 b1549f26e..32ddbcd18 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 4b623ca34..4d26b4701 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,7 +40,10 @@ 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 289887f03..bfa49d90a 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 1c6e4d724..a144d9fcd 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 1fbcd77ce..ec571de20 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 c35b0f876..62ab29644 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 8ec20c11c..0e0d144a6 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 e911470f0..ab59bcf6f 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 27bc884ad..5cdd55a4e 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 12cd147ec..3685147d6 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 118d0a82a..713f6a041 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 5fb239942..0eb829e79 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 9e2dac61f..652524bd1 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 0ea1d8bce..91253b80f 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 1929add94..0db991b3e 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 fddd02dc8..0be3d2398 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 f5d24cac3..89e1ee2b5 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 bb68a7680..02e2dbea8 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 f8fc1eccb..ed8efafe7 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 909d270ac..66c3d55e2 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 44917a67f..089a2ce8c 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 f4f2678ad..5c56b995a 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 133257453..828e21cbb 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 8c4475cd7..cd2ccab2c 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 01605c746..9b4cd2228 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 2862b3f60..d531be2ee 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 4be6a0b97..318d33a44 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 2dffe18b3..9c2e3c579 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 37ec9f17f..4d051f44c 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 4fa9aed73..779089de1 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 ec581518d..046f111f8 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 5551f3596..4741352b5 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 32848cc6f..2e66e7f34 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 4e379cda8..94ef13972 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 807c0a41a..eaf3c07a1 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 083ed9ca8..939454e48 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 51a7aa765..9cf978a58 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,8 +8,15 @@ 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 8a8cc929d..4212e9e1f 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 c97e14734..cbe0fbb78 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 8622ff765..1a2e4fb1e 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 6c3008074..d0ec317ce 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 d42f023fc..911ee8def 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,8 +8,15 @@ 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 120d64c81..53135fec3 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,10 +12,15 @@ 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 294da306b..d0c6aed9b 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,10 +12,13 @@ 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 3131c9a3a..4b6fdb4b9 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,10 +12,13 @@ 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 ca455cad5..1127a7cb6 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,10 +12,15 @@ 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 4d92ace05..bf7b3a654 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 3232c9a11..309de2f1f 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 ed0ab16aa..7754dc3f4 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,8 +48,11 @@ 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 3c203ee25..50cf6d031 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,8 +48,11 @@ 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 db412def3..423c66973 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 3c0ff7998..cae54c1da 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 e75676732..cf53a8235 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 e568f40d6..f42c6f00f 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,15 +9,17 @@ 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 a376e42e7..24584ba48 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 0af93e8c5..153e48462 100644
--- a/test/built-ins/Array/prototype/splice/create-non-array.js
+++ b/test/built-ins/Array/prototype/splice/create-non-array.js
@@ -16,7 +16,9 @@ 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 b2f373d61..f0a5d73ed 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 f48e48d9e..7734bb325 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 e48f292cc..8340b6a29 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 9f0b85798..42cf6f9c5 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 a2c04e0fd..25dbc37ef 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,7 +14,8 @@ 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 883d0508f..447eb4d0a 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 1aaa20fc0..c2f7a29a5 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,7 +13,11 @@ 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 fd32d7702..7bf7a44d5 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,7 +10,11 @@ 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 dbcce9310..29ce4d673 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 62a82f8b1..29e417734 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 96ad80872..c3c93e46c 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 147173991..02045cb35 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,7 +11,11 @@ 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()));
@@ -22,7 +26,14 @@ 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()));
@@ -33,7 +44,14 @@ 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()));
@@ -45,7 +63,14 @@ 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()));
@@ -64,7 +89,11 @@ 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()));
@@ -75,7 +104,14 @@ 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()));
@@ -87,7 +123,14 @@ 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()));
@@ -100,7 +143,14 @@ 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 325a8aded..f45be1170 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 c169a2c06..979bc566b 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,21 +16,39 @@ 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));
@@ -38,7 +56,14 @@ 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));
@@ -53,14 +78,25 @@ 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));
@@ -69,7 +105,14 @@ 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));
}
@@ -82,7 +125,14 @@ 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 fe67c11de..fcbbe10dd 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 758fbb338..0235e42bb 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,7 +40,9 @@ 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 4818d2ab8..9f2e14184 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 bd4ad9aa6..5dff513e4 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 a6e0acc30..9ad723eca 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 15a0170d1..74142c4b5 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();
diff --git a/test/built-ins/ArrayBuffer/data-allocation-after-object-creation.js b/test/built-ins/ArrayBuffer/data-allocation-after-object-creation.js
index 85cfd57a5..e53c92b1c 100644
--- a/test/built-ins/ArrayBuffer/data-allocation-after-object-creation.js
+++ b/test/built-ins/ArrayBuffer/data-allocation-after-object-creation.js
@@ -23,9 +23,9 @@ info: |
features: [Reflect.construct]
---*/
-function DummyError() { }
+function DummyError() {}
-var newTarget = function(){}.bind(null);
+var newTarget = function() {}.bind(null);
Object.defineProperty(newTarget, "prototype", {
get: function() {
throw new DummyError();
diff --git a/test/built-ins/ArrayBuffer/newtarget-prototype-is-not-object.js b/test/built-ins/ArrayBuffer/newtarget-prototype-is-not-object.js
index a32cf9bd5..2e17f26bc 100644
--- a/test/built-ins/ArrayBuffer/newtarget-prototype-is-not-object.js
+++ b/test/built-ins/ArrayBuffer/newtarget-prototype-is-not-object.js
@@ -22,7 +22,7 @@ info: |
features: [Reflect.construct, Symbol]
---*/
-function newTarget() { }
+function newTarget() {}
newTarget.prototype = undefined;
var arrayBuffer = Reflect.construct(ArrayBuffer, [1], newTarget);
diff --git a/test/built-ins/ArrayBuffer/prototype-from-newtarget.js b/test/built-ins/ArrayBuffer/prototype-from-newtarget.js
index 8044f622b..0d6c097d7 100644
--- a/test/built-ins/ArrayBuffer/prototype-from-newtarget.js
+++ b/test/built-ins/ArrayBuffer/prototype-from-newtarget.js
@@ -25,7 +25,7 @@ features: [Reflect.construct]
var arrayBuffer = Reflect.construct(ArrayBuffer, [8], Object);
assert.sameValue(Object.getPrototypeOf(arrayBuffer), Object.prototype, "NewTarget is built-in Object constructor");
-var newTarget = function(){}.bind(null);
+var newTarget = function() {}.bind(null);
Object.defineProperty(newTarget, "prototype", {
get: function() {
return Array.prototype;
diff --git a/test/built-ins/ArrayBuffer/prototype/slice/end-default-if-undefined.js b/test/built-ins/ArrayBuffer/prototype/slice/end-default-if-undefined.js
index 72534dccf..383aaeb93 100644
--- a/test/built-ins/ArrayBuffer/prototype/slice/end-default-if-undefined.js
+++ b/test/built-ins/ArrayBuffer/prototype/slice/end-default-if-undefined.js
@@ -17,6 +17,7 @@ info: |
var arrayBuffer = new ArrayBuffer(8);
-var start = 6, end = undefined;
+var start = 6,
+ end = undefined;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 2);
diff --git a/test/built-ins/ArrayBuffer/prototype/slice/end-exceeds-length.js b/test/built-ins/ArrayBuffer/prototype/slice/end-exceeds-length.js
index 10d47bf18..5138b910d 100644
--- a/test/built-ins/ArrayBuffer/prototype/slice/end-exceeds-length.js
+++ b/test/built-ins/ArrayBuffer/prototype/slice/end-exceeds-length.js
@@ -16,14 +16,17 @@ info: |
var arrayBuffer = new ArrayBuffer(8);
-var start = 1, end = 12;
+var start = 1,
+ end = 12;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 7, "slice(1, 12)");
-var start = 2, end = 0x100000000;
+var start = 2,
+ end = 0x100000000;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 6, "slice(2, 0x100000000)");
-var start = 3, end = +Infinity;
+var start = 3,
+ end = +Infinity;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 5, "slice(3, Infinity)");
diff --git a/test/built-ins/ArrayBuffer/prototype/slice/negative-end.js b/test/built-ins/ArrayBuffer/prototype/slice/negative-end.js
index c41245c86..bafdd8a4f 100644
--- a/test/built-ins/ArrayBuffer/prototype/slice/negative-end.js
+++ b/test/built-ins/ArrayBuffer/prototype/slice/negative-end.js
@@ -16,14 +16,17 @@ info: |
var arrayBuffer = new ArrayBuffer(8);
-var start = 2, end = -4;
+var start = 2,
+ end = -4;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 2, "slice(2, -4)");
-var start = 2, end = -10;
+var start = 2,
+ end = -10;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 0, "slice(2, -10)");
-var start = 2, end = -Infinity;
+var start = 2,
+ end = -Infinity;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 0, "slice(2, -Infinity)");
diff --git a/test/built-ins/ArrayBuffer/prototype/slice/negative-start.js b/test/built-ins/ArrayBuffer/prototype/slice/negative-start.js
index 34781706e..afc33ffff 100644
--- a/test/built-ins/ArrayBuffer/prototype/slice/negative-start.js
+++ b/test/built-ins/ArrayBuffer/prototype/slice/negative-start.js
@@ -16,14 +16,17 @@ info: |
var arrayBuffer = new ArrayBuffer(8);
-var start = -5, end = 6;
+var start = -5,
+ end = 6;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 3, "slice(-5, 6)");
-var start = -12, end = 6;
+var start = -12,
+ end = 6;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 6, "slice(-12, 6)");
-var start = -Infinity, end = 6;
+var start = -Infinity,
+ end = 6;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 6, "slice(-Infinity, 6)");
diff --git a/test/built-ins/ArrayBuffer/prototype/slice/nonconstructor.js b/test/built-ins/ArrayBuffer/prototype/slice/nonconstructor.js
index 1a3406f85..83c2ba319 100644
--- a/test/built-ins/ArrayBuffer/prototype/slice/nonconstructor.js
+++ b/test/built-ins/ArrayBuffer/prototype/slice/nonconstructor.js
@@ -18,4 +18,6 @@ info: |
assert.sameValue(Object.prototype.hasOwnProperty.call(ArrayBuffer.prototype.slice, "prototype"), false);
var arrayBuffer = new ArrayBuffer(8);
-assert.throws(TypeError, function() { new arrayBuffer.slice(); });
+assert.throws(TypeError, function() {
+ new arrayBuffer.slice();
+});
diff --git a/test/built-ins/ArrayBuffer/prototype/slice/species-constructor-is-not-object.js b/test/built-ins/ArrayBuffer/prototype/slice/species-constructor-is-not-object.js
index ce293de3f..94cf973ce 100644
--- a/test/built-ins/ArrayBuffer/prototype/slice/species-constructor-is-not-object.js
+++ b/test/built-ins/ArrayBuffer/prototype/slice/species-constructor-is-not-object.js
@@ -26,7 +26,9 @@ features: [Symbol]
var arrayBuffer = new ArrayBuffer(8);
-function callSlice() { arrayBuffer.slice(); }
+function callSlice() {
+ arrayBuffer.slice();
+}
arrayBuffer.constructor = null;
assert.throws(TypeError, callSlice, "`constructor` value is null");
diff --git a/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-constructor.js b/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-constructor.js
index a2ae81988..707a12acb 100644
--- a/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-constructor.js
+++ b/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-constructor.js
@@ -29,7 +29,9 @@ var speciesConstructor = {};
var arrayBuffer = new ArrayBuffer(8);
arrayBuffer.constructor = speciesConstructor;
-function callSlice() { arrayBuffer.slice(); }
+function callSlice() {
+ arrayBuffer.slice();
+}
speciesConstructor[Symbol.species] = {};
assert.throws(TypeError, callSlice, "`constructor[Symbol.species]` value is Object");
diff --git a/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-object.js b/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-object.js
index d358cb90b..8a751cd22 100644
--- a/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-object.js
+++ b/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-object.js
@@ -29,7 +29,9 @@ var speciesConstructor = {};
var arrayBuffer = new ArrayBuffer(8);
arrayBuffer.constructor = speciesConstructor;
-function callSlice() { arrayBuffer.slice(); }
+function callSlice() {
+ arrayBuffer.slice();
+}
speciesConstructor[Symbol.species] = true;
assert.throws(TypeError, callSlice, "`constructor[Symbol.species]` value is Boolean");
diff --git a/test/built-ins/ArrayBuffer/prototype/slice/start-default-if-undefined.js b/test/built-ins/ArrayBuffer/prototype/slice/start-default-if-undefined.js
index 65ad471f9..359437934 100644
--- a/test/built-ins/ArrayBuffer/prototype/slice/start-default-if-undefined.js
+++ b/test/built-ins/ArrayBuffer/prototype/slice/start-default-if-undefined.js
@@ -17,6 +17,7 @@ info: |
var arrayBuffer = new ArrayBuffer(8);
-var start = undefined, end = 6;
+var start = undefined,
+ end = 6;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 6);
diff --git a/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-end.js b/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-end.js
index 2731261e0..af0ca352a 100644
--- a/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-end.js
+++ b/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-end.js
@@ -16,6 +16,7 @@ info: |
var arrayBuffer = new ArrayBuffer(8);
-var start = 5, end = 4;
+var start = 5,
+ end = 4;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 0);
diff --git a/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-length.js b/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-length.js
index b8abf3b5d..70e00c741 100644
--- a/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-length.js
+++ b/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-length.js
@@ -16,14 +16,17 @@ info: |
var arrayBuffer = new ArrayBuffer(8);
-var start = 10, end = 8;
+var start = 10,
+ end = 8;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 0, "slice(10, 8)");
-var start = 0x100000000, end = 7;
+var start = 0x100000000,
+ end = 7;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 0, "slice(0x100000000, 7)");
-var start = +Infinity, end = 6;
+var start = +Infinity,
+ end = 6;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 0, "slice(+Infinity, 6)");
diff --git a/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-end.js b/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-end.js
index 4beb7335f..54e8ab1fa 100644
--- a/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-end.js
+++ b/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-end.js
@@ -17,10 +17,12 @@ info: |
var arrayBuffer = new ArrayBuffer(8);
-var start = 0, end = 4.5;
+var start = 0,
+ end = 4.5;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 4, "slice(0, 4.5)");
-var start = 0, end = NaN;
+var start = 0,
+ end = NaN;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 0, "slice(0, NaN)");
diff --git a/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-start.js b/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-start.js
index c775d4231..3150213e6 100644
--- a/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-start.js
+++ b/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-start.js
@@ -17,10 +17,12 @@ info: |
var arrayBuffer = new ArrayBuffer(8);
-var start = 4.5, end = 8;
+var start = 4.5,
+ end = 8;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 4, "slice(4.5, 8)");
-var start = NaN, end = 8;
+var start = NaN,
+ end = 8;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 8, "slice(NaN, 8)");
diff --git a/test/built-ins/AsyncFunction/AsyncFunction-construct.js b/test/built-ins/AsyncFunction/AsyncFunction-construct.js
index f839e90f0..bb71ff214 100644
--- a/test/built-ins/AsyncFunction/AsyncFunction-construct.js
+++ b/test/built-ins/AsyncFunction/AsyncFunction-construct.js
@@ -9,7 +9,7 @@ description: >
similarly to functions.
---*/
-var AsyncFunction = async function foo() { }.constructor;
+var AsyncFunction = async function foo() {}.constructor;
var fn;
fn = AsyncFunction("a", "await 1;");
diff --git a/test/built-ins/AsyncFunction/AsyncFunction-is-extensible.js b/test/built-ins/AsyncFunction/AsyncFunction-is-extensible.js
index f1e790b2a..16c64658e 100644
--- a/test/built-ins/AsyncFunction/AsyncFunction-is-extensible.js
+++ b/test/built-ins/AsyncFunction/AsyncFunction-is-extensible.js
@@ -8,6 +8,6 @@ description: >
%AsyncFunction% is extensible
---*/
-var AsyncFunction = async function() { }.constructor;
+var AsyncFunction = async function() {}.constructor;
AsyncFunction.x = 1;
assert.sameValue(AsyncFunction.x, 1);
diff --git a/test/built-ins/AsyncFunction/AsyncFunction-is-subclass.js b/test/built-ins/AsyncFunction/AsyncFunction-is-subclass.js
index 737d3411c..9eb72139f 100644
--- a/test/built-ins/AsyncFunction/AsyncFunction-is-subclass.js
+++ b/test/built-ins/AsyncFunction/AsyncFunction-is-subclass.js
@@ -7,9 +7,8 @@ esid: sec-async-function-constructor
description: >
%AsyncFunction% is a subclass of Function
---*/
-async function foo() { };
+async function foo() {};
var AsyncFunction = foo.constructor;
assert.sameValue(Object.getPrototypeOf(AsyncFunction), Function, "Prototype of constructor is Function");
assert.sameValue(Object.getPrototypeOf(AsyncFunction.prototype), Function.prototype, "Prototype of constructor's prototype is Function.prototype");
assert(foo instanceof Function, 'async function instance is instanceof Function');
-
diff --git a/test/built-ins/AsyncFunction/AsyncFunction-length.js b/test/built-ins/AsyncFunction/AsyncFunction-length.js
index 60af9c72f..c6ba9360e 100644
--- a/test/built-ins/AsyncFunction/AsyncFunction-length.js
+++ b/test/built-ins/AsyncFunction/AsyncFunction-length.js
@@ -9,7 +9,7 @@ description: >
includes: [propertyHelper.js]
---*/
-var AsyncFunction = async function foo() { }.constructor;
+var AsyncFunction = async function foo() {}.constructor;
assert.sameValue(AsyncFunction.length, 1);
verifyNotWritable(AsyncFunction, 'length');
verifyNotEnumerable(AsyncFunction, 'length');
diff --git a/test/built-ins/AsyncFunction/AsyncFunction-name.js b/test/built-ins/AsyncFunction/AsyncFunction-name.js
index cdc9ab069..637d1ece1 100644
--- a/test/built-ins/AsyncFunction/AsyncFunction-name.js
+++ b/test/built-ins/AsyncFunction/AsyncFunction-name.js
@@ -9,7 +9,7 @@ description: >
includes: [propertyHelper.js]
---*/
-var AsyncFunction = async function foo() { }.constructor;
+var AsyncFunction = async function foo() {}.constructor;
assert.sameValue(AsyncFunction.name, "AsyncFunction");
verifyNotWritable(AsyncFunction, "name");
verifyNotEnumerable(AsyncFunction, "name");
diff --git a/test/built-ins/AsyncFunction/AsyncFunction-prototype.js b/test/built-ins/AsyncFunction/AsyncFunction-prototype.js
index 2a2801238..99a040b3f 100644
--- a/test/built-ins/AsyncFunction/AsyncFunction-prototype.js
+++ b/test/built-ins/AsyncFunction/AsyncFunction-prototype.js
@@ -8,7 +8,7 @@ description: AsyncFunction has a prototype property with writable false, enumera
includes: [propertyHelper.js]
---*/
-var AsyncFunction = async function foo() { }.constructor;
+var AsyncFunction = async function foo() {}.constructor;
verifyNotConfigurable(AsyncFunction, 'prototype');
verifyNotWritable(AsyncFunction, 'prototype');
verifyNotEnumerable(AsyncFunction, 'prototype');
diff --git a/test/built-ins/AsyncFunction/AsyncFunction.js b/test/built-ins/AsyncFunction/AsyncFunction.js
index 2f958c813..77c5aaef3 100644
--- a/test/built-ins/AsyncFunction/AsyncFunction.js
+++ b/test/built-ins/AsyncFunction/AsyncFunction.js
@@ -8,5 +8,5 @@ description: >
%AsyncFunction% exists and is a function
---*/
-var AsyncFunction = async function foo() { }.constructor;
+var AsyncFunction = async function foo() {}.constructor;
assert.sameValue(typeof AsyncFunction, "function");
diff --git a/test/built-ins/AsyncFunction/AsyncFunctionPrototype-is-extensible.js b/test/built-ins/AsyncFunction/AsyncFunctionPrototype-is-extensible.js
index 5dd8cdb97..f8e4d7dde 100644
--- a/test/built-ins/AsyncFunction/AsyncFunctionPrototype-is-extensible.js
+++ b/test/built-ins/AsyncFunction/AsyncFunctionPrototype-is-extensible.js
@@ -8,7 +8,6 @@ description: >
%AsyncFunctionPrototype% has a [[Extensible]] of true
---*/
-var AsyncFunction = async function foo() { }.constructor;
+var AsyncFunction = async function foo() {}.constructor;
AsyncFunction.prototype.x = 1;
assert.sameValue(AsyncFunction.prototype.x, 1);
-
diff --git a/test/built-ins/AsyncFunction/AsyncFunctionPrototype-prototype.js b/test/built-ins/AsyncFunction/AsyncFunctionPrototype-prototype.js
index a917fbd25..327c5ee0f 100644
--- a/test/built-ins/AsyncFunction/AsyncFunctionPrototype-prototype.js
+++ b/test/built-ins/AsyncFunction/AsyncFunctionPrototype-prototype.js
@@ -6,5 +6,5 @@ author: Brian Terlson <brian.terlson@microsoft.com>
esid: sec-sync-function-prototype-properties
description: AsyncFunction.prototype has a [[prototype]] of Function.prototype
---*/
-var AsyncFunction = async function foo() { }.constructor;
+var AsyncFunction = async function foo() {}.constructor;
assert.sameValue(Object.getPrototypeOf(AsyncFunction.prototype), Function.prototype);
diff --git a/test/built-ins/AsyncFunction/AsyncFunctionPrototype-to-string.js b/test/built-ins/AsyncFunction/AsyncFunctionPrototype-to-string.js
index e2a35b210..d9e8cb1ec 100644
--- a/test/built-ins/AsyncFunction/AsyncFunctionPrototype-to-string.js
+++ b/test/built-ins/AsyncFunction/AsyncFunctionPrototype-to-string.js
@@ -10,7 +10,7 @@ includes: [propertyHelper.js]
features: [Symbol.toStringTag]
---*/
-var AsyncFunction = async function foo() { }.constructor;
+var AsyncFunction = async function foo() {}.constructor;
var AFP = AsyncFunction.prototype;
assert.sameValue(AFP[Symbol.toStringTag], "AsyncFunction", "toStringTag value");
verifyNotWritable(AFP, Symbol.toStringTag);
diff --git a/test/built-ins/AsyncFunction/instance-construct-throws.js b/test/built-ins/AsyncFunction/instance-construct-throws.js
index 1ca25171f..8c5bec687 100644
--- a/test/built-ins/AsyncFunction/instance-construct-throws.js
+++ b/test/built-ins/AsyncFunction/instance-construct-throws.js
@@ -25,7 +25,7 @@ info: |
...
---*/
-async function foo() { }
+async function foo() {}
assert.throws(TypeError, function() {
new foo();
});
diff --git a/test/built-ins/AsyncFunction/instance-has-name.js b/test/built-ins/AsyncFunction/instance-has-name.js
index cf118edae..1def25c88 100644
--- a/test/built-ins/AsyncFunction/instance-has-name.js
+++ b/test/built-ins/AsyncFunction/instance-has-name.js
@@ -8,7 +8,7 @@ description: Async function declarations have a name property
includes: [propertyHelper.js]
---*/
-async function foo () { };
+async function foo() {};
assert.sameValue(foo.name, "foo");
verifyNotWritable(foo, "name");
diff --git a/test/built-ins/AsyncFunction/instance-length.js b/test/built-ins/AsyncFunction/instance-length.js
index 288ab4534..dd278bd05 100644
--- a/test/built-ins/AsyncFunction/instance-length.js
+++ b/test/built-ins/AsyncFunction/instance-length.js
@@ -10,9 +10,9 @@ description: >
includes: [propertyHelper.js]
---*/
-async function l0() { }
-async function l1(a) { }
-async function l2(a, b) { }
+async function l0() {}
+async function l1(a) {}
+async function l2(a, b) {}
assert.sameValue(l0.length, 0);
assert.sameValue(l1.length, 1);
assert.sameValue(l2.length, 2)
diff --git a/test/built-ins/AsyncFunction/instance-prototype-property.js b/test/built-ins/AsyncFunction/instance-prototype-property.js
index 3b631ae28..6e14bff3f 100644
--- a/test/built-ins/AsyncFunction/instance-prototype-property.js
+++ b/test/built-ins/AsyncFunction/instance-prototype-property.js
@@ -7,6 +7,6 @@ esid: sec-async-function-instances
description: >
Async function instances do not have a prototype property.
---*/
-async function foo() { };
+async function foo() {};
assert.sameValue(foo.prototype, undefined, 'foo.prototype should be undefined');
assert(!foo.hasOwnProperty('prototype'), 'foo.prototype should not exist');
diff --git a/test/built-ins/AsyncFunction/is-not-a-global.js b/test/built-ins/AsyncFunction/is-not-a-global.js
index baf5140ff..432ebf9a1 100644
--- a/test/built-ins/AsyncFunction/is-not-a-global.js
+++ b/test/built-ins/AsyncFunction/is-not-a-global.js
@@ -8,6 +8,6 @@ description: >
%AsyncFunction% is not exposed as a global
---*/
-assert.throws(ReferenceError, function () {
+assert.throws(ReferenceError, function() {
AsyncFunction
}, "AsyncFunction should not be present as a global");
diff --git a/test/built-ins/Atomics/add/bad-range.js b/test/built-ins/Atomics/add/bad-range.js
index 2139e57c2..b7aa9cd5a 100644
--- a/test/built-ins/Atomics/add/bad-range.js
+++ b/test/built-ins/Atomics/add/bad-range.js
@@ -18,9 +18,9 @@ if (typeof BigInt !== "undefined") {
}
testWithTypedArrayConstructors(function(View) {
- let view = new View(sab);
- testWithAtomicsOutOfBoundsIndices(function(IdxGen) {
- let Idx = IdxGen(view);
- assert.throws(RangeError, () => Atomics.add(view, Idx, 10));
- });
+ let view = new View(sab);
+ testWithAtomicsOutOfBoundsIndices(function(IdxGen) {
+ let Idx = IdxGen(view);
+ assert.throws(RangeError, () => Atomics.add(view, Idx, 10));
+ });
}, views);
diff --git a/test/built-ins/Atomics/add/good-views.js b/test/built-ins/Atomics/add/good-views.js
index 58cf977f0..ff1805808 100644
--- a/test/built-ins/Atomics/add/good-views.js
+++ b/test/built-ins/Atomics/add/good-views.js
@@ -14,42 +14,42 @@ var ab = new ArrayBuffer(16);
var int_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array];
testWithTypedArrayConstructors(function(View) {
- // Make it interesting - use non-zero byteOffsets and non-zero indexes.
-
- var view = new View(sab, 32, 20);
- var control = new View(ab, 0, 2);
-
- // Add positive number
- view[8] = 0;
- assert.sameValue(Atomics.add(view, 8, 10), 0);
- assert.sameValue(view[8], 10);
-
- // Add negative number
- assert.sameValue(Atomics.add(view, 8, -5), 10);
- assert.sameValue(view[8], 5);
-
- view[3] = -5;
- control[0] = -5;
- assert.sameValue(Atomics.add(view, 3, 0), control[0],
- "Result is negative and subject to coercion");
-
- control[0] = 12345;
- view[3] = 12345;
- assert.sameValue(Atomics.add(view, 3, 0), control[0],
- "Result is subject to chopping");
-
- control[0] = 123456789;
- view[3] = 123456789;
- assert.sameValue(Atomics.add(view, 3, 0), control[0],
- "Result is subject to chopping");
-
- // In-bounds boundary cases for indexing
- testWithAtomicsInBoundsIndices(function(IdxGen) {
- let Idx = IdxGen(view);
- view.fill(0);
- // Atomics.store() computes an index from Idx in the same way as other
- // Atomics operations, not quite like view[Idx].
- Atomics.store(view, Idx, 37);
- assert.sameValue(Atomics.add(view, Idx, 0), 37);
- });
+ // Make it interesting - use non-zero byteOffsets and non-zero indexes.
+
+ var view = new View(sab, 32, 20);
+ var control = new View(ab, 0, 2);
+
+ // Add positive number
+ view[8] = 0;
+ assert.sameValue(Atomics.add(view, 8, 10), 0);
+ assert.sameValue(view[8], 10);
+
+ // Add negative number
+ assert.sameValue(Atomics.add(view, 8, -5), 10);
+ assert.sameValue(view[8], 5);
+
+ view[3] = -5;
+ control[0] = -5;
+ assert.sameValue(Atomics.add(view, 3, 0), control[0],
+ "Result is negative and subject to coercion");
+
+ control[0] = 12345;
+ view[3] = 12345;
+ assert.sameValue(Atomics.add(view, 3, 0), control[0],
+ "Result is subject to chopping");
+
+ control[0] = 123456789;
+ view[3] = 123456789;
+ assert.sameValue(Atomics.add(view, 3, 0), control[0],
+ "Result is subject to chopping");
+
+ // In-bounds boundary cases for indexing
+ testWithAtomicsInBoundsIndices(function(IdxGen) {
+ let Idx = IdxGen(view);
+ view.fill(0);
+ // Atomics.store() computes an index from Idx in the same way as other
+ // Atomics operations, not quite like view[Idx].
+ Atomics.store(view, Idx, 37);
+ assert.sameValue(Atomics.add(view, Idx, 0), 37);
+ });
}, int_views);
diff --git a/test/built-ins/Atomics/add/non-views.js b/test/built-ins/Atomics/add/non-views.js
index f6c30c552..e0923889a 100644
--- a/test/built-ins/Atomics/add/non-views.js
+++ b/test/built-ins/Atomics/add/non-views.js
@@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le
---*/
testWithAtomicsNonViewValues(function(view) {
- assert.throws(TypeError, (() => Atomics.add(view, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.add(view, 0, 0)));
});
diff --git a/test/built-ins/Atomics/add/nonshared-int-views.js b/test/built-ins/Atomics/add/nonshared-int-views.js
index 1528abd3a..3719f2f90 100644
--- a/test/built-ins/Atomics/add/nonshared-int-views.js
+++ b/test/built-ins/Atomics/add/nonshared-int-views.js
@@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") {
}
testWithTypedArrayConstructors(function(View) {
- var view = new View(ab);
+ var view = new View(ab);
- assert.throws(TypeError, (() => Atomics.add(view, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.add(view, 0, 0)));
}, int_views);
diff --git a/test/built-ins/Atomics/add/shared-nonint-views.js b/test/built-ins/Atomics/add/shared-nonint-views.js
index a62233274..21d834eae 100644
--- a/test/built-ins/Atomics/add/shared-nonint-views.js
+++ b/test/built-ins/Atomics/add/shared-nonint-views.js
@@ -14,7 +14,7 @@ var sab = new SharedArrayBuffer(1024);
var other_views = [Uint8ClampedArray, Float32Array, Float64Array];
testWithTypedArrayConstructors(function(View) {
- var view = new View(sab);
+ var view = new View(sab);
- assert.throws(TypeError, (() => Atomics.add(view, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.add(view, 0, 0)));
}, other_views);
diff --git a/test/built-ins/Atomics/and/bad-range.js b/test/built-ins/Atomics/and/bad-range.js
index fe91ae801..1451092a2 100644
--- a/test/built-ins/Atomics/and/bad-range.js
+++ b/test/built-ins/Atomics/and/bad-range.js
@@ -18,9 +18,9 @@ if (typeof BigInt !== "undefined") {
}
testWithTypedArrayConstructors(function(View) {
- let view = new View(sab);
- testWithAtomicsOutOfBoundsIndices(function(IdxGen) {
- let Idx = IdxGen(view);
- assert.throws(RangeError, () => Atomics.and(view, Idx, 10));
- });
+ let view = new View(sab);
+ testWithAtomicsOutOfBoundsIndices(function(IdxGen) {
+ let Idx = IdxGen(view);
+ assert.throws(RangeError, () => Atomics.and(view, Idx, 10));
+ });
}, views);
diff --git a/test/built-ins/Atomics/and/good-views.js b/test/built-ins/Atomics/and/good-views.js
index bfad491a0..e8435ff2e 100644
--- a/test/built-ins/Atomics/and/good-views.js
+++ b/test/built-ins/Atomics/and/good-views.js
@@ -14,49 +14,49 @@ var ab = new ArrayBuffer(16);
var int_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array];
testWithTypedArrayConstructors(function(View) {
- // Make it interesting - use non-zero byteOffsets and non-zero indexes.
-
- var view = new View(sab, 32, 20);
- var control = new View(ab, 0, 2);
-
- view[8] = 0x33333333;
- control[0] = 0x33333333;
- assert.sameValue(Atomics.and(view, 8, 0x55555555), control[0],
- "Result is subject to chopping");
-
- control[0] = 0x11111111;
- assert.sameValue(view[8], control[0]);
- assert.sameValue(Atomics.and(view, 8, 0xF0F0F0F0), control[0],
- "Result is subject to chopping");
-
- control[0] = 0x10101010;
- assert.sameValue(view[8], control[0]);
-
- view[3] = -5;
- control[0] = -5;
- assert.sameValue(Atomics.and(view, 3, 0), control[0],
- "Result is negative and subject to coercion");
- assert.sameValue(view[3], 0);
-
- control[0] = 12345;
- view[3] = 12345;
- assert.sameValue(Atomics.and(view, 3, 0), control[0],
- "Result is subjective to chopping");
- assert.sameValue(view[3], 0);
-
- control[0] = 123456789;
- view[3] = 123456789;
- assert.sameValue(Atomics.and(view, 3, 0), control[0],
- "Result is subjective to chopping");
- assert.sameValue(view[3], 0);
-
- // In-bounds boundary cases for indexing
- testWithAtomicsInBoundsIndices(function(IdxGen) {
- let Idx = IdxGen(view);
- view.fill(0);
- // Atomics.store() computes an index from Idx in the same way as other
- // Atomics operations, not quite like view[Idx].
- Atomics.store(view, Idx, 37);
- assert.sameValue(Atomics.and(view, Idx, 0), 37);
- });
+ // Make it interesting - use non-zero byteOffsets and non-zero indexes.
+
+ var view = new View(sab, 32, 20);
+ var control = new View(ab, 0, 2);
+
+ view[8] = 0x33333333;
+ control[0] = 0x33333333;
+ assert.sameValue(Atomics.and(view, 8, 0x55555555), control[0],
+ "Result is subject to chopping");
+
+ control[0] = 0x11111111;
+ assert.sameValue(view[8], control[0]);
+ assert.sameValue(Atomics.and(view, 8, 0xF0F0F0F0), control[0],
+ "Result is subject to chopping");
+
+ control[0] = 0x10101010;
+ assert.sameValue(view[8], control[0]);
+
+ view[3] = -5;
+ control[0] = -5;
+ assert.sameValue(Atomics.and(view, 3, 0), control[0],
+ "Result is negative and subject to coercion");
+ assert.sameValue(view[3], 0);
+
+ control[0] = 12345;
+ view[3] = 12345;
+ assert.sameValue(Atomics.and(view, 3, 0), control[0],
+ "Result is subjective to chopping");
+ assert.sameValue(view[3], 0);
+
+ control[0] = 123456789;
+ view[3] = 123456789;
+ assert.sameValue(Atomics.and(view, 3, 0), control[0],
+ "Result is subjective to chopping");
+ assert.sameValue(view[3], 0);
+
+ // In-bounds boundary cases for indexing
+ testWithAtomicsInBoundsIndices(function(IdxGen) {
+ let Idx = IdxGen(view);
+ view.fill(0);
+ // Atomics.store() computes an index from Idx in the same way as other
+ // Atomics operations, not quite like view[Idx].
+ Atomics.store(view, Idx, 37);
+ assert.sameValue(Atomics.and(view, Idx, 0), 37);
+ });
}, int_views);
diff --git a/test/built-ins/Atomics/and/non-views.js b/test/built-ins/Atomics/and/non-views.js
index 476238fe7..bdcfbac74 100644
--- a/test/built-ins/Atomics/and/non-views.js
+++ b/test/built-ins/Atomics/and/non-views.js
@@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le
---*/
testWithAtomicsNonViewValues(function(view) {
- assert.throws(TypeError, (() => Atomics.and(view, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.and(view, 0, 0)));
});
diff --git a/test/built-ins/Atomics/and/nonshared-int-views.js b/test/built-ins/Atomics/and/nonshared-int-views.js
index 7184954bf..8d7035487 100644
--- a/test/built-ins/Atomics/and/nonshared-int-views.js
+++ b/test/built-ins/Atomics/and/nonshared-int-views.js
@@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") {
}
testWithTypedArrayConstructors(function(View) {
- var view = new View(ab);
+ var view = new View(ab);
- assert.throws(TypeError, (() => Atomics.and(view, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.and(view, 0, 0)));
}, int_views);
diff --git a/test/built-ins/Atomics/and/shared-nonint-views.js b/test/built-ins/Atomics/and/shared-nonint-views.js
index 9fd8b9ab8..a7538d011 100644
--- a/test/built-ins/Atomics/and/shared-nonint-views.js
+++ b/test/built-ins/Atomics/and/shared-nonint-views.js
@@ -14,7 +14,7 @@ var sab = new SharedArrayBuffer(1024);
var other_views = [Uint8ClampedArray, Float32Array, Float64Array];
testWithTypedArrayConstructors(function(View) {
- var view = new View(sab);
+ var view = new View(sab);
- assert.throws(TypeError, (() => Atomics.and(view, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.and(view, 0, 0)));
}, other_views);
diff --git a/test/built-ins/Atomics/compareExchange/bad-range.js b/test/built-ins/Atomics/compareExchange/bad-range.js
index 11824fc57..b7964e361 100644
--- a/test/built-ins/Atomics/compareExchange/bad-range.js
+++ b/test/built-ins/Atomics/compareExchange/bad-range.js
@@ -18,9 +18,9 @@ if (typeof BigInt !== "undefined") {
}
testWithTypedArrayConstructors(function(View) {
- let view = new View(sab);
- testWithAtomicsOutOfBoundsIndices(function(IdxGen) {
- let Idx = IdxGen(view);
- assert.throws(RangeError, () => Atomics.compareExchange(view, Idx, 10, 0));
- });
+ let view = new View(sab);
+ testWithAtomicsOutOfBoundsIndices(function(IdxGen) {
+ let Idx = IdxGen(view);
+ assert.throws(RangeError, () => Atomics.compareExchange(view, Idx, 10, 0));
+ });
}, views);
diff --git a/test/built-ins/Atomics/compareExchange/good-views.js b/test/built-ins/Atomics/compareExchange/good-views.js
index c2d49e188..a803a6f85 100644
--- a/test/built-ins/Atomics/compareExchange/good-views.js
+++ b/test/built-ins/Atomics/compareExchange/good-views.js
@@ -13,62 +13,67 @@ var ab = new ArrayBuffer(16);
var int_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array];
-var good_indices = [ (view) => 0/-1, // -0
- (view) => '-0',
- (view) => view.length - 1,
- (view) => ({ valueOf: () => 0 }),
- (view) => ({ toString: () => '0', valueOf: false }) // non-callable valueOf triggers invocation of toString
- ];
+var good_indices = [(view) => 0 / -1, // -0
+ (view) => '-0',
+ (view) => view.length - 1,
+ (view) => ({
+ valueOf: () => 0
+ }),
+ (view) => ({
+ toString: () => '0',
+ valueOf: false
+ }) // non-callable valueOf triggers invocation of toString
+];
testWithTypedArrayConstructors(function(View) {
- // Make it interesting - use non-zero byteOffsets and non-zero indexes.
+ // Make it interesting - use non-zero byteOffsets and non-zero indexes.
- var view = new View(sab, 32, 20);
- var control = new View(ab, 0, 2);
+ var view = new View(sab, 32, 20);
+ var control = new View(ab, 0, 2);
- // Performs the exchange
- view[8] = 0;
- assert.sameValue(Atomics.compareExchange(view, 8, 0, 10), 0);
- assert.sameValue(view[8], 10);
+ // Performs the exchange
+ view[8] = 0;
+ assert.sameValue(Atomics.compareExchange(view, 8, 0, 10), 0);
+ assert.sameValue(view[8], 10);
- view[8] = 0;
- assert.sameValue(Atomics.compareExchange(view, 8, 1, 10), 0,
- "Does not perform the exchange");
- assert.sameValue(view[8], 0);
+ view[8] = 0;
+ assert.sameValue(Atomics.compareExchange(view, 8, 1, 10), 0,
+ "Does not perform the exchange");
+ assert.sameValue(view[8], 0);
- view[8] = 0;
- assert.sameValue(Atomics.compareExchange(view, 8, 0, -5), 0,
- "Performs the exchange, coercing the value being stored");
- control[0] = -5;
- assert.sameValue(view[8], control[0]);
+ view[8] = 0;
+ assert.sameValue(Atomics.compareExchange(view, 8, 0, -5), 0,
+ "Performs the exchange, coercing the value being stored");
+ control[0] = -5;
+ assert.sameValue(view[8], control[0]);
- view[3] = -5;
- control[0] = -5;
- assert.sameValue(Atomics.compareExchange(view, 3, -5, 0), control[0],
- "Performs the exchange, coercing the value being tested");
- assert.sameValue(view[3], 0);
+ view[3] = -5;
+ control[0] = -5;
+ assert.sameValue(Atomics.compareExchange(view, 3, -5, 0), control[0],
+ "Performs the exchange, coercing the value being tested");
+ assert.sameValue(view[3], 0);
- control[0] = 12345;
- view[3] = 12345;
- assert.sameValue(Atomics.compareExchange(view, 3, 12345, 0), control[0],
- "Performs the exchange, chopping the value being tested");
- assert.sameValue(view[3], 0);
+ control[0] = 12345;
+ view[3] = 12345;
+ assert.sameValue(Atomics.compareExchange(view, 3, 12345, 0), control[0],
+ "Performs the exchange, chopping the value being tested");
+ assert.sameValue(view[3], 0);
- control[0] = 123456789;
- view[3] = 123456789;
- assert.sameValue(Atomics.compareExchange(view, 3, 123456789, 0), control[0],
- "Performs the exchange, chopping the value being tested");
- assert.sameValue(view[3], 0);
+ control[0] = 123456789;
+ view[3] = 123456789;
+ assert.sameValue(Atomics.compareExchange(view, 3, 123456789, 0), control[0],
+ "Performs the exchange, chopping the value being tested");
+ assert.sameValue(view[3], 0);
- // In-bounds boundary cases for indexing
- testWithAtomicsInBoundsIndices(function(IdxGen) {
- let Idx = IdxGen(view);
- view.fill(0);
- // Atomics.store() computes an index from Idx in the same way as other
- // Atomics operations, not quite like view[Idx].
- Atomics.store(view, Idx, 37);
- assert.sameValue(Atomics.compareExchange(view, Idx, 37, 0), 37);
- });
+ // In-bounds boundary cases for indexing
+ testWithAtomicsInBoundsIndices(function(IdxGen) {
+ let Idx = IdxGen(view);
+ view.fill(0);
+ // Atomics.store() computes an index from Idx in the same way as other
+ // Atomics operations, not quite like view[Idx].
+ Atomics.store(view, Idx, 37);
+ assert.sameValue(Atomics.compareExchange(view, Idx, 37, 0), 37);
+ });
}, int_views);
diff --git a/test/built-ins/Atomics/compareExchange/non-views.js b/test/built-ins/Atomics/compareExchange/non-views.js
index d57903407..fc51c91ec 100644
--- a/test/built-ins/Atomics/compareExchange/non-views.js
+++ b/test/built-ins/Atomics/compareExchange/non-views.js
@@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le
---*/
testWithAtomicsNonViewValues(function(view) {
- assert.throws(TypeError, (() => Atomics.compareExchange(view, 0, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.compareExchange(view, 0, 0, 0)));
});
diff --git a/test/built-ins/Atomics/compareExchange/nonshared-int-views.js b/test/built-ins/Atomics/compareExchange/nonshared-int-views.js
index c3a95b239..c61650944 100644
--- a/test/built-ins/Atomics/compareExchange/nonshared-int-views.js
+++ b/test/built-ins/Atomics/compareExchange/nonshared-int-views.js
@@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") {
}
testWithTypedArrayConstructors(function(View) {
- var view = new View(ab);
+ var view = new View(ab);
- assert.throws(TypeError, (() => Atomics.compareExchange(view, 0, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.compareExchange(view, 0, 0, 0)));
}, int_views);
diff --git a/test/built-ins/Atomics/compareExchange/shared-nonint-views.js b/test/built-ins/Atomics/compareExchange/shared-nonint-views.js
index 069e45abb..059c9301e 100644
--- a/test/built-ins/Atomics/compareExchange/shared-nonint-views.js
+++ b/test/built-ins/Atomics/compareExchange/shared-nonint-views.js
@@ -14,7 +14,7 @@ var sab = new SharedArrayBuffer(1024);
var other_views = [Uint8ClampedArray, Float32Array, Float64Array];
testWithTypedArrayConstructors(function(View) {
- var view = new View(sab);
+ var view = new View(sab);
- assert.throws(TypeError, (() => Atomics.compareExchange(view, 0, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.compareExchange(view, 0, 0, 0)));
}, other_views);
diff --git a/test/built-ins/Atomics/exchange/bad-range.js b/test/built-ins/Atomics/exchange/bad-range.js
index 4392c1d78..15957b200 100644
--- a/test/built-ins/Atomics/exchange/bad-range.js
+++ b/test/built-ins/Atomics/exchange/bad-range.js
@@ -18,9 +18,9 @@ if (typeof BigInt !== "undefined") {
}
testWithTypedArrayConstructors(function(View) {
- let view = new View(sab);
- testWithAtomicsOutOfBoundsIndices(function(IdxGen) {
- let Idx = IdxGen(view);
- assert.throws(RangeError, () => Atomics.exchange(view, Idx, 10, 0));
- });
+ let view = new View(sab);
+ testWithAtomicsOutOfBoundsIndices(function(IdxGen) {
+ let Idx = IdxGen(view);
+ assert.throws(RangeError, () => Atomics.exchange(view, Idx, 10, 0));
+ });
}, views);
diff --git a/test/built-ins/Atomics/exchange/good-views.js b/test/built-ins/Atomics/exchange/good-views.js
index f42c98abe..d8fd39ee9 100644
--- a/test/built-ins/Atomics/exchange/good-views.js
+++ b/test/built-ins/Atomics/exchange/good-views.js
@@ -14,43 +14,43 @@ var ab = new ArrayBuffer(16);
var int_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array];
testWithTypedArrayConstructors(function(View) {
- // Make it interesting - use non-zero byteOffsets and non-zero indexes.
-
- var view = new View(sab, 32, 20);
- var control = new View(ab, 0, 2);
-
- view[8] = 0;
- assert.sameValue(Atomics.exchange(view, 8, 10), 0,
- "Exchange returns the value previously in the array");
- assert.sameValue(view[8], 10);
-
- assert.sameValue(Atomics.exchange(view, 8, -5), 10,
- "Exchange returns the value previously in the array");
- control[0] = -5;
- assert.sameValue(view[8], control[0]);
-
- view[3] = -5;
- control[0] = -5;
- assert.sameValue(Atomics.exchange(view, 3, 0), control[0],
- "Result is subject to coercion");
-
- control[0] = 12345;
- view[3] = 12345;
- assert.sameValue(Atomics.exchange(view, 3, 0), control[0],
- "Result is subject to chopping");
-
- control[0] = 123456789;
- view[3] = 123456789;
- assert.sameValue(Atomics.exchange(view, 3, 0), control[0],
- "Result is subject to chopping");
-
- // In-bounds boundary cases for indexing
- testWithAtomicsInBoundsIndices(function(IdxGen) {
- let Idx = IdxGen(view);
- view.fill(0);
- // Atomics.store() computes an index from Idx in the same way as other
- // Atomics operations, not quite like view[Idx].
- Atomics.store(view, Idx, 37);
- assert.sameValue(Atomics.exchange(view, Idx, 0), 37);
- });
+ // Make it interesting - use non-zero byteOffsets and non-zero indexes.
+
+ var view = new View(sab, 32, 20);
+ var control = new View(ab, 0, 2);
+
+ view[8] = 0;
+ assert.sameValue(Atomics.exchange(view, 8, 10), 0,
+ "Exchange returns the value previously in the array");
+ assert.sameValue(view[8], 10);
+
+ assert.sameValue(Atomics.exchange(view, 8, -5), 10,
+ "Exchange returns the value previously in the array");
+ control[0] = -5;
+ assert.sameValue(view[8], control[0]);
+
+ view[3] = -5;
+ control[0] = -5;
+ assert.sameValue(Atomics.exchange(view, 3, 0), control[0],
+ "Result is subject to coercion");
+
+ control[0] = 12345;
+ view[3] = 12345;
+ assert.sameValue(Atomics.exchange(view, 3, 0), control[0],
+ "Result is subject to chopping");
+
+ control[0] = 123456789;
+ view[3] = 123456789;
+ assert.sameValue(Atomics.exchange(view, 3, 0), control[0],
+ "Result is subject to chopping");
+
+ // In-bounds boundary cases for indexing
+ testWithAtomicsInBoundsIndices(function(IdxGen) {
+ let Idx = IdxGen(view);
+ view.fill(0);
+ // Atomics.store() computes an index from Idx in the same way as other
+ // Atomics operations, not quite like view[Idx].
+ Atomics.store(view, Idx, 37);
+ assert.sameValue(Atomics.exchange(view, Idx, 0), 37);
+ });
}, int_views);
diff --git a/test/built-ins/Atomics/exchange/non-views.js b/test/built-ins/Atomics/exchange/non-views.js
index b8c2b5463..c4d28a2fa 100644
--- a/test/built-ins/Atomics/exchange/non-views.js
+++ b/test/built-ins/Atomics/exchange/non-views.js
@@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le
---*/
testWithAtomicsNonViewValues(function(view) {
- assert.throws(TypeError, (() => Atomics.exchange(view, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.exchange(view, 0, 0)));
});
diff --git a/test/built-ins/Atomics/exchange/nonshared-int-views.js b/test/built-ins/Atomics/exchange/nonshared-int-views.js
index 30b7617d1..e3f730261 100644
--- a/test/built-ins/Atomics/exchange/nonshared-int-views.js
+++ b/test/built-ins/Atomics/exchange/nonshared-int-views.js
@@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") {
}
testWithTypedArrayConstructors(function(View) {
- var view = new View(ab);
+ var view = new View(ab);
- assert.throws(TypeError, (() => Atomics.exchange(view, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.exchange(view, 0, 0)));
}, int_views);
diff --git a/test/built-ins/Atomics/exchange/shared-nonint-views.js b/test/built-ins/Atomics/exchange/shared-nonint-views.js
index 03293c2da..a83b0c462 100644
--- a/test/built-ins/Atomics/exchange/shared-nonint-views.js
+++ b/test/built-ins/Atomics/exchange/shared-nonint-views.js
@@ -14,7 +14,7 @@ var sab = new SharedArrayBuffer(1024);
var other_views = [Uint8ClampedArray, Float32Array, Float64Array];
testWithTypedArrayConstructors(function(View) {
- var view = new View(sab);
+ var view = new View(sab);
- assert.throws(TypeError, (() => Atomics.exchange(view, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.exchange(view, 0, 0)));
}, other_views);
diff --git a/test/built-ins/Atomics/isLockFree/corner-cases.js b/test/built-ins/Atomics/isLockFree/corner-cases.js
index fb364030c..fe5ab9aad 100644
--- a/test/built-ins/Atomics/isLockFree/corner-cases.js
+++ b/test/built-ins/Atomics/isLockFree/corner-cases.js
@@ -17,14 +17,21 @@ assert.sameValue(Atomics.isLockFree('3'), Atomics.isLockFree(3));
assert.sameValue(Atomics.isLockFree(true), Atomics.isLockFree(1));
-assert.sameValue(Atomics.isLockFree(1), Atomics.isLockFree({valueOf: () => 1}));
-assert.sameValue(Atomics.isLockFree(3), Atomics.isLockFree({valueOf: () => 3}));
-assert.sameValue(Atomics.isLockFree(1), Atomics.isLockFree({toString: () => '1'}));
-assert.sameValue(Atomics.isLockFree(3), Atomics.isLockFree({toString: () => '3'}));
+assert.sameValue(Atomics.isLockFree(1), Atomics.isLockFree({
+ valueOf: () => 1
+}));
+assert.sameValue(Atomics.isLockFree(3), Atomics.isLockFree({
+ valueOf: () => 3
+}));
+assert.sameValue(Atomics.isLockFree(1), Atomics.isLockFree({
+ toString: () => '1'
+}));
+assert.sameValue(Atomics.isLockFree(3), Atomics.isLockFree({
+ toString: () => '3'
+}));
function hide(k, x) {
- if (k)
- return hide(k-3, x) + x;
- return 0;
+ if (k)
+ return hide(k - 3, x) + x;
+ return 0;
}
-
diff --git a/test/built-ins/Atomics/isLockFree/value.js b/test/built-ins/Atomics/isLockFree/value.js
index 4b8164716..88eca120e 100644
--- a/test/built-ins/Atomics/isLockFree/value.js
+++ b/test/built-ins/Atomics/isLockFree/value.js
@@ -7,41 +7,43 @@ description: >
Test isLockFree on nonnegative integer arguments
---*/
-var sizes = [ 1, 2, 3, 4, 5, 6, 7, 8,
- 9, 10, 11, 12];
-var answers = [ {}, {}, false, true, false, false, false, false,
- false, false, false, false];
+var sizes = [1, 2, 3, 4, 5, 6, 7, 8,
+ 9, 10, 11, 12
+];
+var answers = [{}, {}, false, true, false, false, false, false,
+ false, false, false, false
+];
function testIsLockFree() {
- var saved = {};
-
- // This should defeat most optimizations.
-
- for ( var i=0 ; i < sizes.length ; i++ ) {
- var v = Atomics.isLockFree(sizes[i]);
- var a = answers[i];
- assert.sameValue(typeof v, 'boolean');
- if (typeof a == 'boolean')
- assert.sameValue(v, a);
- else
- saved[sizes[i]] = v;
- }
-
- // This ought to be optimizable. Make sure the answers are the same
- // as for the unoptimized case.
-
- assert.sameValue(Atomics.isLockFree(1), saved[1]);
- assert.sameValue(Atomics.isLockFree(2), saved[2]);
- assert.sameValue(Atomics.isLockFree(3), false);
- assert.sameValue(Atomics.isLockFree(4), true);
- assert.sameValue(Atomics.isLockFree(5), false);
- assert.sameValue(Atomics.isLockFree(6), false);
- assert.sameValue(Atomics.isLockFree(7), false);
- assert.sameValue(Atomics.isLockFree(8), false);
- assert.sameValue(Atomics.isLockFree(9), false);
- assert.sameValue(Atomics.isLockFree(10), false);
- assert.sameValue(Atomics.isLockFree(11), false);
- assert.sameValue(Atomics.isLockFree(12), false);
+ var saved = {};
+
+ // This should defeat most optimizations.
+
+ for (var i = 0; i < sizes.length; i++) {
+ var v = Atomics.isLockFree(sizes[i]);
+ var a = answers[i];
+ assert.sameValue(typeof v, 'boolean');
+ if (typeof a == 'boolean')
+ assert.sameValue(v, a);
+ else
+ saved[sizes[i]] = v;
+ }
+
+ // This ought to be optimizable. Make sure the answers are the same
+ // as for the unoptimized case.
+
+ assert.sameValue(Atomics.isLockFree(1), saved[1]);
+ assert.sameValue(Atomics.isLockFree(2), saved[2]);
+ assert.sameValue(Atomics.isLockFree(3), false);
+ assert.sameValue(Atomics.isLockFree(4), true);
+ assert.sameValue(Atomics.isLockFree(5), false);
+ assert.sameValue(Atomics.isLockFree(6), false);
+ assert.sameValue(Atomics.isLockFree(7), false);
+ assert.sameValue(Atomics.isLockFree(8), false);
+ assert.sameValue(Atomics.isLockFree(9), false);
+ assert.sameValue(Atomics.isLockFree(10), false);
+ assert.sameValue(Atomics.isLockFree(11), false);
+ assert.sameValue(Atomics.isLockFree(12), false);
}
testIsLockFree();
diff --git a/test/built-ins/Atomics/load/bad-range.js b/test/built-ins/Atomics/load/bad-range.js
index d13ef4b5e..7f1c7afc7 100644
--- a/test/built-ins/Atomics/load/bad-range.js
+++ b/test/built-ins/Atomics/load/bad-range.js
@@ -18,9 +18,9 @@ if (typeof BigInt !== "undefined") {
}
testWithTypedArrayConstructors(function(View) {
- let view = new View(sab);
- testWithAtomicsOutOfBoundsIndices(function(IdxGen) {
- let Idx = IdxGen(view);
- assert.throws(RangeError, () => Atomics.load(view, Idx));
- });
+ let view = new View(sab);
+ testWithAtomicsOutOfBoundsIndices(function(IdxGen) {
+ let Idx = IdxGen(view);
+ assert.throws(RangeError, () => Atomics.load(view, Idx));
+ });
}, views);
diff --git a/test/built-ins/Atomics/load/good-views.js b/test/built-ins/Atomics/load/good-views.js
index 883cd5829..a4e2ad880 100644
--- a/test/built-ins/Atomics/load/good-views.js
+++ b/test/built-ins/Atomics/load/good-views.js
@@ -14,33 +14,33 @@ var ab = new ArrayBuffer(16);
var int_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array];
testWithTypedArrayConstructors(function(View) {
- // Make it interesting - use non-zero byteOffsets and non-zero indexes.
-
- var view = new View(sab, 32, 20);
- var control = new View(ab, 0, 2);
-
- view[3] = -5;
- control[0] = -5;
- assert.sameValue(Atomics.load(view, 3), control[0],
- "Result is subject to coercion");
-
- control[0] = 12345;
- view[3] = 12345;
- assert.sameValue(Atomics.load(view, 3), control[0],
- "Result is subject to chopping");
-
- control[0] = 123456789;
- view[3] = 123456789;
- assert.sameValue(Atomics.load(view, 3), control[0],
- "Result is subject to chopping");
-
- // In-bounds boundary cases for indexing
- testWithAtomicsInBoundsIndices(function(IdxGen) {
- let Idx = IdxGen(view);
- view.fill(0);
- // Atomics.store() computes an index from Idx in the same way as other
- // Atomics operations, not quite like view[Idx].
- Atomics.store(view, Idx, 37);
- assert.sameValue(Atomics.load(view, Idx), 37);
- });
+ // Make it interesting - use non-zero byteOffsets and non-zero indexes.
+
+ var view = new View(sab, 32, 20);
+ var control = new View(ab, 0, 2);
+
+ view[3] = -5;
+ control[0] = -5;
+ assert.sameValue(Atomics.load(view, 3), control[0],
+ "Result is subject to coercion");
+
+ control[0] = 12345;
+ view[3] = 12345;
+ assert.sameValue(Atomics.load(view, 3), control[0],
+ "Result is subject to chopping");
+
+ control[0] = 123456789;
+ view[3] = 123456789;
+ assert.sameValue(Atomics.load(view, 3), control[0],
+ "Result is subject to chopping");
+
+ // In-bounds boundary cases for indexing
+ testWithAtomicsInBoundsIndices(function(IdxGen) {
+ let Idx = IdxGen(view);
+ view.fill(0);
+ // Atomics.store() computes an index from Idx in the same way as other
+ // Atomics operations, not quite like view[Idx].
+ Atomics.store(view, Idx, 37);
+ assert.sameValue(Atomics.load(view, Idx), 37);
+ });
}, int_views);
diff --git a/test/built-ins/Atomics/load/non-views.js b/test/built-ins/Atomics/load/non-views.js
index 28739abbc..1c4442dbf 100644
--- a/test/built-ins/Atomics/load/non-views.js
+++ b/test/built-ins/Atomics/load/non-views.js
@@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le
---*/
testWithAtomicsNonViewValues(function(view) {
- assert.throws(TypeError, (() => Atomics.load(view, 0)));
+ assert.throws(TypeError, (() => Atomics.load(view, 0)));
});
diff --git a/test/built-ins/Atomics/load/nonshared-int-views.js b/test/built-ins/Atomics/load/nonshared-int-views.js
index 05eff959c..8442ce949 100644
--- a/test/built-ins/Atomics/load/nonshared-int-views.js
+++ b/test/built-ins/Atomics/load/nonshared-int-views.js
@@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") {
}
testWithTypedArrayConstructors(function(View) {
- var view = new View(ab);
+ var view = new View(ab);
- assert.throws(TypeError, (() => Atomics.load(view, 0)));
+ assert.throws(TypeError, (() => Atomics.load(view, 0)));
}, int_views);
diff --git a/test/built-ins/Atomics/load/shared-nonint-views.js b/test/built-ins/Atomics/load/shared-nonint-views.js
index 20c33ba16..726a618d0 100644
--- a/test/built-ins/Atomics/load/shared-nonint-views.js
+++ b/test/built-ins/Atomics/load/shared-nonint-views.js
@@ -14,7 +14,7 @@ var sab = new SharedArrayBuffer(1024);
var other_views = [Uint8ClampedArray, Float32Array, Float64Array];
testWithTypedArrayConstructors(function(View) {
- var view = new View(sab);
+ var view = new View(sab);
- assert.throws(TypeError, (() => Atomics.load(view, 0)));
+ assert.throws(TypeError, (() => Atomics.load(view, 0)));
}, other_views);
diff --git a/test/built-ins/Atomics/or/bad-range.js b/test/built-ins/Atomics/or/bad-range.js
index a9fab884a..5c3ff9b1b 100644
--- a/test/built-ins/Atomics/or/bad-range.js
+++ b/test/built-ins/Atomics/or/bad-range.js
@@ -18,9 +18,9 @@ if (typeof BigInt !== "undefined") {
}
testWithTypedArrayConstructors(function(View) {
- let view = new View(sab);
- testWithAtomicsOutOfBoundsIndices(function(IdxGen) {
- let Idx = IdxGen(view);
- assert.throws(RangeError, () => Atomics.or(view, Idx, 10));
- });
+ let view = new View(sab);
+ testWithAtomicsOutOfBoundsIndices(function(IdxGen) {
+ let Idx = IdxGen(view);
+ assert.throws(RangeError, () => Atomics.or(view, Idx, 10));
+ });
}, views);
diff --git a/test/built-ins/Atomics/or/good-views.js b/test/built-ins/Atomics/or/good-views.js
index 9c20459c0..6fab1d565 100644
--- a/test/built-ins/Atomics/or/good-views.js
+++ b/test/built-ins/Atomics/or/good-views.js
@@ -13,49 +13,49 @@ var ab = new ArrayBuffer(16);
var int_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array];
testWithTypedArrayConstructors(function(View) {
- // Make it interesting - use non-zero byteOffsets and non-zero indexes.
-
- var view = new View(sab, 32, 20);
- var control = new View(ab, 0, 2);
-
- view[8] = 0x33333333;
- control[0] = 0x33333333;
- assert.sameValue(Atomics.or(view, 8, 0x55555555), control[0],
- "Result is subject to chopping");
-
- control[0] = 0x77777777;
- assert.sameValue(view[8], control[0]);
- assert.sameValue(Atomics.or(view, 8, 0xF0F0F0F0), control[0],
- "Result is subject to chopping");
-
- control[0] = 0xF7F7F7F7;
- assert.sameValue(view[8], control[0]);
-
- view[3] = -5;
- control[0] = -5;
- assert.sameValue(Atomics.or(view, 3, 0), control[0],
- "Result is negative and subject to coercion");
- assert.sameValue(view[3], control[0]);
-
- control[0] = 12345;
- view[3] = 12345;
- assert.sameValue(Atomics.or(view, 3, 0), control[0],
- "Result is subject to chopping");
- assert.sameValue(view[3], control[0]);
-
- control[0] = 123456789;
- view[3] = 123456789;
- assert.sameValue(Atomics.or(view, 3, 0), control[0],
- "Result is subject to chopping");
- assert.sameValue(view[3], control[0]);
-
- // In-bounds boundary cases for indexing
- testWithAtomicsInBoundsIndices(function(IdxGen) {
- let Idx = IdxGen(view);
- view.fill(0);
- // Atomics.store() computes an index from Idx in the same way as other
- // Atomics operations, not quite like view[Idx].
- Atomics.store(view, Idx, 37);
- assert.sameValue(Atomics.or(view, Idx, 0), 37);
- });
+ // Make it interesting - use non-zero byteOffsets and non-zero indexes.
+
+ var view = new View(sab, 32, 20);
+ var control = new View(ab, 0, 2);
+
+ view[8] = 0x33333333;
+ control[0] = 0x33333333;
+ assert.sameValue(Atomics.or(view, 8, 0x55555555), control[0],
+ "Result is subject to chopping");
+
+ control[0] = 0x77777777;
+ assert.sameValue(view[8], control[0]);
+ assert.sameValue(Atomics.or(view, 8, 0xF0F0F0F0), control[0],
+ "Result is subject to chopping");
+
+ control[0] = 0xF7F7F7F7;
+ assert.sameValue(view[8], control[0]);
+
+ view[3] = -5;
+ control[0] = -5;
+ assert.sameValue(Atomics.or(view, 3, 0), control[0],
+ "Result is negative and subject to coercion");
+ assert.sameValue(view[3], control[0]);
+
+ control[0] = 12345;
+ view[3] = 12345;
+ assert.sameValue(Atomics.or(view, 3, 0), control[0],
+ "Result is subject to chopping");
+ assert.sameValue(view[3], control[0]);
+
+ control[0] = 123456789;
+ view[3] = 123456789;
+ assert.sameValue(Atomics.or(view, 3, 0), control[0],
+ "Result is subject to chopping");
+ assert.sameValue(view[3], control[0]);
+
+ // In-bounds boundary cases for indexing
+ testWithAtomicsInBoundsIndices(function(IdxGen) {
+ let Idx = IdxGen(view);
+ view.fill(0);
+ // Atomics.store() computes an index from Idx in the same way as other
+ // Atomics operations, not quite like view[Idx].
+ Atomics.store(view, Idx, 37);
+ assert.sameValue(Atomics.or(view, Idx, 0), 37);
+ });
}, int_views);
diff --git a/test/built-ins/Atomics/or/non-views.js b/test/built-ins/Atomics/or/non-views.js
index ff73caa0c..1135faa8e 100644
--- a/test/built-ins/Atomics/or/non-views.js
+++ b/test/built-ins/Atomics/or/non-views.js
@@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le
---*/
testWithAtomicsNonViewValues(function(view) {
- assert.throws(TypeError, (() => Atomics.or(view, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.or(view, 0, 0)));
});
diff --git a/test/built-ins/Atomics/or/nonshared-int-views.js b/test/built-ins/Atomics/or/nonshared-int-views.js
index 033174fcf..a4f34569e 100644
--- a/test/built-ins/Atomics/or/nonshared-int-views.js
+++ b/test/built-ins/Atomics/or/nonshared-int-views.js
@@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") {
}
testWithTypedArrayConstructors(function(View) {
- var view = new View(ab);
+ var view = new View(ab);
- assert.throws(TypeError, (() => Atomics.or(view, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.or(view, 0, 0)));
}, int_views);
diff --git a/test/built-ins/Atomics/or/shared-nonint-views.js b/test/built-ins/Atomics/or/shared-nonint-views.js
index bb649c5e6..013495627 100644
--- a/test/built-ins/Atomics/or/shared-nonint-views.js
+++ b/test/built-ins/Atomics/or/shared-nonint-views.js
@@ -14,7 +14,7 @@ var sab = new SharedArrayBuffer(1024);
var other_views = [Uint8ClampedArray, Float32Array, Float64Array];
testWithTypedArrayConstructors(function(View) {
- var view = new View(sab);
+ var view = new View(sab);
- assert.throws(TypeError, (() => Atomics.or(view, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.or(view, 0, 0)));
}, other_views);
diff --git a/test/built-ins/Atomics/store/bad-range.js b/test/built-ins/Atomics/store/bad-range.js
index 69a402646..a13f1f177 100644
--- a/test/built-ins/Atomics/store/bad-range.js
+++ b/test/built-ins/Atomics/store/bad-range.js
@@ -18,9 +18,9 @@ if (typeof BigInt !== "undefined") {
}
testWithTypedArrayConstructors(function(View) {
- let view = new View(sab);
- testWithAtomicsOutOfBoundsIndices(function(IdxGen) {
- let Idx = IdxGen(view);
- assert.throws(RangeError, () => Atomics.store(view, Idx, 10));
- });
+ let view = new View(sab);
+ testWithAtomicsOutOfBoundsIndices(function(IdxGen) {
+ let Idx = IdxGen(view);
+ assert.throws(RangeError, () => Atomics.store(view, Idx, 10));
+ });
}, views);
diff --git a/test/built-ins/Atomics/store/good-views.js b/test/built-ins/Atomics/store/good-views.js
index 92e437db3..c39de60aa 100644
--- a/test/built-ins/Atomics/store/good-views.js
+++ b/test/built-ins/Atomics/store/good-views.js
@@ -14,43 +14,45 @@ var ab = new ArrayBuffer(16);
var int_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array];
testWithTypedArrayConstructors(function(View) {
- // Make it interesting - use non-zero byteOffsets and non-zero indexes.
-
- var view = new View(sab, 32, 20);
- var control = new View(ab, 0, 2);
-
- for ( let val of [10,
- -5,
- 12345,
- 123456789,
- Math.PI,
- "33",
- { valueOf: () => 33 },
- undefined] )
- {
- assert.sameValue(Atomics.store(view, 3, val), ToInteger(val),
- "Atomics.store returns its third argument (" + val + ") converted to Integer, not the input value nor the value that was stored");
-
- control[0] = val;
- assert.sameValue(view[3], control[0]);
- }
-
- // In-bounds boundary cases for indexing
- testWithAtomicsInBoundsIndices(function(IdxGen) {
- let Idx = IdxGen(view);
- view.fill(0);
- Atomics.store(view, Idx, 37);
- assert.sameValue(Atomics.load(view, Idx), 37);
- });
+ // Make it interesting - use non-zero byteOffsets and non-zero indexes.
+
+ var view = new View(sab, 32, 20);
+ var control = new View(ab, 0, 2);
+
+ for (let val of [10, -5,
+ 12345,
+ 123456789,
+ Math.PI,
+ "33",
+ {
+ valueOf: () => 33
+ },
+ undefined
+ ])
+ {
+ assert.sameValue(Atomics.store(view, 3, val), ToInteger(val),
+ "Atomics.store returns its third argument (" + val + ") converted to Integer, not the input value nor the value that was stored");
+
+ control[0] = val;
+ assert.sameValue(view[3], control[0]);
+ }
+
+ // In-bounds boundary cases for indexing
+ testWithAtomicsInBoundsIndices(function(IdxGen) {
+ let Idx = IdxGen(view);
+ view.fill(0);
+ Atomics.store(view, Idx, 37);
+ assert.sameValue(Atomics.load(view, Idx), 37);
+ });
}, int_views);
function ToInteger(v) {
- v = +v;
- if (isNaN(v))
- return 0;
- if (v == 0 || !isFinite(v))
- return v;
- if (v < 0)
- return -Math.floor(Math.abs(v));
- return Math.floor(v);
+ v = +v;
+ if (isNaN(v))
+ return 0;
+ if (v == 0 || !isFinite(v))
+ return v;
+ if (v < 0)
+ return -Math.floor(Math.abs(v));
+ return Math.floor(v);
}
diff --git a/test/built-ins/Atomics/store/non-views.js b/test/built-ins/Atomics/store/non-views.js
index 19fa071f6..365a7fbba 100644
--- a/test/built-ins/Atomics/store/non-views.js
+++ b/test/built-ins/Atomics/store/non-views.js
@@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le
---*/
testWithAtomicsNonViewValues(function(view) {
- assert.throws(TypeError, (() => Atomics.store(view, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.store(view, 0, 0)));
});
diff --git a/test/built-ins/Atomics/store/nonshared-int-views.js b/test/built-ins/Atomics/store/nonshared-int-views.js
index 0153ed2fc..7bf2f781e 100644
--- a/test/built-ins/Atomics/store/nonshared-int-views.js
+++ b/test/built-ins/Atomics/store/nonshared-int-views.js
@@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") {
}
testWithTypedArrayConstructors(function(View) {
- var view = new View(ab);
+ var view = new View(ab);
- assert.throws(TypeError, (() => Atomics.store(view, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.store(view, 0, 0)));
}, int_views);
diff --git a/test/built-ins/Atomics/store/shared-nonint-views.js b/test/built-ins/Atomics/store/shared-nonint-views.js
index 950e1d442..c34f86024 100644
--- a/test/built-ins/Atomics/store/shared-nonint-views.js
+++ b/test/built-ins/Atomics/store/shared-nonint-views.js
@@ -14,7 +14,7 @@ var sab = new SharedArrayBuffer(1024);
var other_views = [Uint8ClampedArray, Float32Array, Float64Array];
testWithTypedArrayConstructors(function(View) {
- var view = new View(sab);
+ var view = new View(sab);
- assert.throws(TypeError, (() => Atomics.store(view, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.store(view, 0, 0)));
}, other_views);
diff --git a/test/built-ins/Atomics/sub/bad-range.js b/test/built-ins/Atomics/sub/bad-range.js
index dabd7789e..700309fff 100644
--- a/test/built-ins/Atomics/sub/bad-range.js
+++ b/test/built-ins/Atomics/sub/bad-range.js
@@ -18,9 +18,9 @@ if (typeof BigInt !== "undefined") {
}
testWithTypedArrayConstructors(function(View) {
- let view = new View(sab);
- testWithAtomicsOutOfBoundsIndices(function(IdxGen) {
- let Idx = IdxGen(view);
- assert.throws(RangeError, () => Atomics.sub(view, Idx, 10));
- });
+ let view = new View(sab);
+ testWithAtomicsOutOfBoundsIndices(function(IdxGen) {
+ let Idx = IdxGen(view);
+ assert.throws(RangeError, () => Atomics.sub(view, Idx, 10));
+ });
}, views);
diff --git a/test/built-ins/Atomics/sub/good-views.js b/test/built-ins/Atomics/sub/good-views.js
index efa410344..18b6982d7 100644
--- a/test/built-ins/Atomics/sub/good-views.js
+++ b/test/built-ins/Atomics/sub/good-views.js
@@ -14,42 +14,42 @@ var ab = new ArrayBuffer(16);
var int_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array];
testWithTypedArrayConstructors(function(View) {
- // Make it interesting - use non-zero byteOffsets and non-zero indexes.
-
- var view = new View(sab, 32, 20);
- var control = new View(ab, 0, 2);
-
- view[8] = 100;
- assert.sameValue(Atomics.sub(view, 8, 10), 100,
- "Subtract positive number");
- assert.sameValue(view[8], 90);
-
- assert.sameValue(Atomics.sub(view, 8, -5), 90,
- "Subtract negative number, though result remains positive");
- assert.sameValue(view[8], 95);
-
- view[3] = -5;
- control[0] = -5;
- assert.sameValue(Atomics.sub(view, 3, 0), control[0],
- "Result is negative and subject to coercion");
-
- control[0] = 12345;
- view[3] = 12345;
- assert.sameValue(Atomics.sub(view, 3, 0), control[0],
- "Result is subject to chopping");
-
- control[0] = 123456789;
- view[3] = 123456789;
- assert.sameValue(Atomics.sub(view, 3, 0), control[0],
- "Result is subject to chopping");
-
- // In-bounds boundary cases for indexing
- testWithAtomicsInBoundsIndices(function(IdxGen) {
- let Idx = IdxGen(view);
- view.fill(0);
- // Atomics.store() computes an index from Idx in the same way as other
- // Atomics operations, not quite like view[Idx].
- Atomics.store(view, Idx, 37);
- assert.sameValue(Atomics.sub(view, Idx, 0), 37);
- });
+ // Make it interesting - use non-zero byteOffsets and non-zero indexes.
+
+ var view = new View(sab, 32, 20);
+ var control = new View(ab, 0, 2);
+
+ view[8] = 100;
+ assert.sameValue(Atomics.sub(view, 8, 10), 100,
+ "Subtract positive number");
+ assert.sameValue(view[8], 90);
+
+ assert.sameValue(Atomics.sub(view, 8, -5), 90,
+ "Subtract negative number, though result remains positive");
+ assert.sameValue(view[8], 95);
+
+ view[3] = -5;
+ control[0] = -5;
+ assert.sameValue(Atomics.sub(view, 3, 0), control[0],
+ "Result is negative and subject to coercion");
+
+ control[0] = 12345;
+ view[3] = 12345;
+ assert.sameValue(Atomics.sub(view, 3, 0), control[0],
+ "Result is subject to chopping");
+
+ control[0] = 123456789;
+ view[3] = 123456789;
+ assert.sameValue(Atomics.sub(view, 3, 0), control[0],
+ "Result is subject to chopping");
+
+ // In-bounds boundary cases for indexing
+ testWithAtomicsInBoundsIndices(function(IdxGen) {
+ let Idx = IdxGen(view);
+ view.fill(0);
+ // Atomics.store() computes an index from Idx in the same way as other
+ // Atomics operations, not quite like view[Idx].
+ Atomics.store(view, Idx, 37);
+ assert.sameValue(Atomics.sub(view, Idx, 0), 37);
+ });
}, int_views);
diff --git a/test/built-ins/Atomics/sub/non-views.js b/test/built-ins/Atomics/sub/non-views.js
index 55ca5bba8..985b95c00 100644
--- a/test/built-ins/Atomics/sub/non-views.js
+++ b/test/built-ins/Atomics/sub/non-views.js
@@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le
---*/
testWithAtomicsNonViewValues(function(view) {
- assert.throws(TypeError, (() => Atomics.sub(view, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.sub(view, 0, 0)));
});
diff --git a/test/built-ins/Atomics/sub/nonshared-int-views.js b/test/built-ins/Atomics/sub/nonshared-int-views.js
index 7383307f7..70ed90a7d 100644
--- a/test/built-ins/Atomics/sub/nonshared-int-views.js
+++ b/test/built-ins/Atomics/sub/nonshared-int-views.js
@@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") {
}
testWithTypedArrayConstructors(function(View) {
- var view = new View(ab);
+ var view = new View(ab);
- assert.throws(TypeError, (() => Atomics.sub(view, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.sub(view, 0, 0)));
}, int_views);
diff --git a/test/built-ins/Atomics/sub/shared-nonint-views.js b/test/built-ins/Atomics/sub/shared-nonint-views.js
index f6c680158..af237d2cd 100644
--- a/test/built-ins/Atomics/sub/shared-nonint-views.js
+++ b/test/built-ins/Atomics/sub/shared-nonint-views.js
@@ -14,7 +14,7 @@ var sab = new SharedArrayBuffer(1024);
var other_views = [Uint8ClampedArray, Float32Array, Float64Array];
testWithTypedArrayConstructors(function(View) {
- var view = new View(sab);
+ var view = new View(sab);
- assert.throws(TypeError, (() => Atomics.sub(view, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.sub(view, 0, 0)));
}, other_views);
diff --git a/test/built-ins/Atomics/wait/did-timeout.js b/test/built-ins/Atomics/wait/did-timeout.js
index c4e75dd96..4779b11c9 100644
--- a/test/built-ins/Atomics/wait/did-timeout.js
+++ b/test/built-ins/Atomics/wait/did-timeout.js
@@ -10,7 +10,7 @@ includes: [atomicsHelper.js]
---*/
$262.agent.start(
-`
+ `
$262.agent.receiveBroadcast(function (sab, id) {
var ia = new Int32Array(sab);
var then = Date.now();
@@ -24,11 +24,11 @@ var ia = new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT));
$262.agent.broadcast(ia.buffer);
assert.sameValue(getReport(), "timed-out");
-assert.sameValue((getReport()|0) >= 500 - $ATOMICS_MAX_TIME_EPSILON, true);
+assert.sameValue((getReport() | 0) >= 500 - $ATOMICS_MAX_TIME_EPSILON, true);
function getReport() {
- var r;
- while ((r = $262.agent.getReport()) == null)
- $262.agent.sleep(100);
- return r;
+ var r;
+ while ((r = $262.agent.getReport()) == null)
+ $262.agent.sleep(100);
+ return r;
}
diff --git a/test/built-ins/Atomics/wait/good-views.js b/test/built-ins/Atomics/wait/good-views.js
index ff6dcf3a8..ce559e350 100644
--- a/test/built-ins/Atomics/wait/good-views.js
+++ b/test/built-ins/Atomics/wait/good-views.js
@@ -12,7 +12,7 @@ description: >
// even in the shell.
$262.agent.start(
-`
+ `
var sab = new SharedArrayBuffer(1024);
var ab = new ArrayBuffer(16);
@@ -47,11 +47,11 @@ assert.sameValue(getReport(), "A timed-out");
assert.sameValue(getReport(), "B not-equal"); // Even with zero timeout
var r;
while ((r = getReport()) != "done")
- assert.sameValue(r, "C not-equal");
+ assert.sameValue(r, "C not-equal");
function getReport() {
- var r;
- while ((r = $262.agent.getReport()) == null)
- $262.agent.sleep(100);
- return r;
+ var r;
+ while ((r = $262.agent.getReport()) == null)
+ $262.agent.sleep(100);
+ return r;
}
diff --git a/test/built-ins/Atomics/wait/nan-timeout.js b/test/built-ins/Atomics/wait/nan-timeout.js
index c3e773ef3..e1cbdaec9 100644
--- a/test/built-ins/Atomics/wait/nan-timeout.js
+++ b/test/built-ins/Atomics/wait/nan-timeout.js
@@ -8,7 +8,7 @@ description: >
---*/
$262.agent.start(
-`
+ `
$262.agent.receiveBroadcast(function (sab, id) {
var ia = new Int32Array(sab);
$262.agent.report(Atomics.wait(ia, 0, 0, NaN)); // NaN => Infinity
@@ -19,14 +19,14 @@ $262.agent.receiveBroadcast(function (sab, id) {
var ia = new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT));
$262.agent.broadcast(ia.buffer);
-$262.agent.sleep(500); // Ample time
+$262.agent.sleep(500); // Ample time
assert.sameValue($262.agent.getReport(), null);
Atomics.wake(ia, 0);
assert.sameValue(getReport(), "ok");
function getReport() {
- var r;
- while ((r = $262.agent.getReport()) == null)
- $262.agent.sleep(100);
- return r;
+ var r;
+ while ((r = $262.agent.getReport()) == null)
+ $262.agent.sleep(100);
+ return r;
}
diff --git a/test/built-ins/Atomics/wait/negative-timeout.js b/test/built-ins/Atomics/wait/negative-timeout.js
index 26c32fd20..e8cb85f8b 100644
--- a/test/built-ins/Atomics/wait/negative-timeout.js
+++ b/test/built-ins/Atomics/wait/negative-timeout.js
@@ -8,7 +8,7 @@ description: >
---*/
$262.agent.start(
-`
+ `
$262.agent.receiveBroadcast(function (sab, id) {
var ia = new Int32Array(sab);
$262.agent.report(Atomics.wait(ia, 0, 0, -5)); // -5 => 0
@@ -22,8 +22,8 @@ $262.agent.broadcast(ia.buffer);
assert.sameValue(getReport(), "timed-out");
function getReport() {
- var r;
- while ((r = $262.agent.getReport()) == null)
- $262.agent.sleep(100);
- return r;
+ var r;
+ while ((r = $262.agent.getReport()) == null)
+ $262.agent.sleep(100);
+ return r;
}
diff --git a/test/built-ins/Atomics/wait/no-spurious-wakeup.js b/test/built-ins/Atomics/wait/no-spurious-wakeup.js
index edcde9aac..405eac8bc 100644
--- a/test/built-ins/Atomics/wait/no-spurious-wakeup.js
+++ b/test/built-ins/Atomics/wait/no-spurious-wakeup.js
@@ -10,7 +10,7 @@ includes: [atomicsHelper.js]
---*/
$262.agent.start(
-`
+ `
$262.agent.receiveBroadcast(function (sab, id) {
var ia = new Int32Array(sab);
var then = Date.now();
@@ -24,15 +24,15 @@ $262.agent.receiveBroadcast(function (sab, id) {
var ia = new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT));
$262.agent.broadcast(ia.buffer);
-$262.agent.sleep(500); // Give the agent a chance to wait
-Atomics.store(ia, 0, 1); // Change the value, should not wake the agent
-$262.agent.sleep(500); // Wait some more so that we can tell
-Atomics.wake(ia, 0); // Really wake it up
-assert.sameValue((getReport()|0) >= 1000 - $ATOMICS_MAX_TIME_EPSILON, true);
+$262.agent.sleep(500); // Give the agent a chance to wait
+Atomics.store(ia, 0, 1); // Change the value, should not wake the agent
+$262.agent.sleep(500); // Wait some more so that we can tell
+Atomics.wake(ia, 0); // Really wake it up
+assert.sameValue((getReport() | 0) >= 1000 - $ATOMICS_MAX_TIME_EPSILON, true);
function getReport() {
- var r;
- while ((r = $262.agent.getReport()) == null)
- $262.agent.sleep(100);
- return r;
+ var r;
+ while ((r = $262.agent.getReport()) == null)
+ $262.agent.sleep(100);
+ return r;
}
diff --git a/test/built-ins/Atomics/wait/non-views.js b/test/built-ins/Atomics/wait/non-views.js
index b6e9cf058..4da77da33 100644
--- a/test/built-ins/Atomics/wait/non-views.js
+++ b/test/built-ins/Atomics/wait/non-views.js
@@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le
---*/
testWithAtomicsNonViewValues(function(view) {
- assert.throws(TypeError, (() => Atomics.wait(view, 0, 0, 0))); // Even with zero timeout
+ assert.throws(TypeError, (() => Atomics.wait(view, 0, 0, 0))); // Even with zero timeout
});
diff --git a/test/built-ins/Atomics/wait/nonshared-int-views.js b/test/built-ins/Atomics/wait/nonshared-int-views.js
index c4a5fb4b0..4f6143fc3 100644
--- a/test/built-ins/Atomics/wait/nonshared-int-views.js
+++ b/test/built-ins/Atomics/wait/nonshared-int-views.js
@@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") {
}
testWithTypedArrayConstructors(function(View) {
- var view = new View(ab);
+ var view = new View(ab);
- assert.throws(TypeError, (() => Atomics.wait(view, 0, 0, 0))); // Should fail even if waiting 0ms
+ assert.throws(TypeError, (() => Atomics.wait(view, 0, 0, 0))); // Should fail even if waiting 0ms
}, int_views);
diff --git a/test/built-ins/Atomics/wait/shared-nonint-views.js b/test/built-ins/Atomics/wait/shared-nonint-views.js
index 5a77ba2f4..b327abbda 100644
--- a/test/built-ins/Atomics/wait/shared-nonint-views.js
+++ b/test/built-ins/Atomics/wait/shared-nonint-views.js
@@ -12,11 +12,12 @@ features: [TypedArray]
var sab = new SharedArrayBuffer(1024);
var other_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Uint32Array,
- Uint8ClampedArray, Float32Array, Float64Array];
+ Uint8ClampedArray, Float32Array, Float64Array
+];
testWithTypedArrayConstructors(function(View) {
- var view = new View(sab);
+ var view = new View(sab);
- // Even with timout zero this should fail
- assert.throws(TypeError, (() => Atomics.wait(view, 0, 0, 0)));
+ // Even with timout zero this should fail
+ assert.throws(TypeError, (() => Atomics.wait(view, 0, 0, 0)));
}, other_views);
diff --git a/test/built-ins/Atomics/wait/was-woken.js b/test/built-ins/Atomics/wait/was-woken.js
index c2e11cb0e..156b2617f 100644
--- a/test/built-ins/Atomics/wait/was-woken.js
+++ b/test/built-ins/Atomics/wait/was-woken.js
@@ -8,7 +8,7 @@ description: >
---*/
$262.agent.start(
-`
+ `
$262.agent.receiveBroadcast(function (sab, id) {
var ia = new Int32Array(sab);
$262.agent.report(Atomics.wait(ia, 0, 0)); // No timeout => Infinity
@@ -19,14 +19,13 @@ $262.agent.receiveBroadcast(function (sab, id) {
var ia = new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT));
$262.agent.broadcast(ia.buffer);
-$262.agent.sleep(500); // Give the agent a chance to wait
+$262.agent.sleep(500); // Give the agent a chance to wait
Atomics.wake(ia, 0);
assert.sameValue(getReport(), "ok");
function getReport() {
- var r;
- while ((r = $262.agent.getReport()) == null)
- $262.agent.sleep(100);
- return r;
+ var r;
+ while ((r = $262.agent.getReport()) == null)
+ $262.agent.sleep(100);
+ return r;
}
-
diff --git a/test/built-ins/Atomics/wake/counts.js b/test/built-ins/Atomics/wake/counts.js
index d2ee14e0c..43fa02309 100644
--- a/test/built-ins/Atomics/wake/counts.js
+++ b/test/built-ins/Atomics/wake/counts.js
@@ -14,5 +14,7 @@ assert.sameValue(Atomics.wake(view, 0, -3), 0);
assert.sameValue(Atomics.wake(view, 0, Number.POSITIVE_INFINITY), 0);
assert.sameValue(Atomics.wake(view, 0, undefined), 0);
assert.sameValue(Atomics.wake(view, 0, "33"), 0);
-assert.sameValue(Atomics.wake(view, 0, { valueOf: 8 }), 0);
+assert.sameValue(Atomics.wake(view, 0, {
+ valueOf: 8
+}), 0);
assert.sameValue(Atomics.wake(view, 0), 0);
diff --git a/test/built-ins/Atomics/wake/good-views.js b/test/built-ins/Atomics/wake/good-views.js
index 4c704e0e3..19ad2f2b3 100644
--- a/test/built-ins/Atomics/wake/good-views.js
+++ b/test/built-ins/Atomics/wake/good-views.js
@@ -20,10 +20,10 @@ assert.sameValue(Atomics.wake(view, 0, 1), 0);
// In-bounds boundary cases for indexing
testWithAtomicsInBoundsIndices(function(IdxGen) {
- let Idx = IdxGen(view);
- view.fill(0);
- // Atomics.store() computes an index from Idx in the same way as other
- // Atomics operations, not quite like view[Idx].
- Atomics.store(view, Idx, 37);
- assert.sameValue(Atomics.wake(view, Idx, 1), 0);
+ let Idx = IdxGen(view);
+ view.fill(0);
+ // Atomics.store() computes an index from Idx in the same way as other
+ // Atomics operations, not quite like view[Idx].
+ Atomics.store(view, Idx, 37);
+ assert.sameValue(Atomics.wake(view, Idx, 1), 0);
});
diff --git a/test/built-ins/Atomics/wake/non-views.js b/test/built-ins/Atomics/wake/non-views.js
index 555cd9c80..91461303b 100644
--- a/test/built-ins/Atomics/wake/non-views.js
+++ b/test/built-ins/Atomics/wake/non-views.js
@@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le
---*/
testWithAtomicsNonViewValues(function(view) {
- assert.throws(TypeError, (() => Atomics.wake(view, 0, 0))); // Even with count == 0
+ assert.throws(TypeError, (() => Atomics.wake(view, 0, 0))); // Even with count == 0
});
diff --git a/test/built-ins/Atomics/wake/nonshared-int-views.js b/test/built-ins/Atomics/wake/nonshared-int-views.js
index 8e86e2385..cffc184e1 100644
--- a/test/built-ins/Atomics/wake/nonshared-int-views.js
+++ b/test/built-ins/Atomics/wake/nonshared-int-views.js
@@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") {
}
testWithTypedArrayConstructors(function(View) {
- var view = new View(ab);
+ var view = new View(ab);
- assert.throws(TypeError, (() => Atomics.wake(view, 0, 0))); // Should fail even if waking zero waiters
+ assert.throws(TypeError, (() => Atomics.wake(view, 0, 0))); // Should fail even if waking zero waiters
}, int_views);
diff --git a/test/built-ins/Atomics/wake/shared-nonint-views.js b/test/built-ins/Atomics/wake/shared-nonint-views.js
index c5b4521d3..7f8ab41ed 100644
--- a/test/built-ins/Atomics/wake/shared-nonint-views.js
+++ b/test/built-ins/Atomics/wake/shared-nonint-views.js
@@ -12,11 +12,12 @@ features: [TypedArray]
var sab = new SharedArrayBuffer(1024);
var other_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Uint32Array,
- Uint8ClampedArray, Float32Array, Float64Array];
+ Uint8ClampedArray, Float32Array, Float64Array
+];
testWithTypedArrayConstructors(function(View) {
- var view = new View(sab);
+ var view = new View(sab);
- // Even with timout zero this should fail
- assert.throws(TypeError, (() => Atomics.wake(view, 0, 0))); // Even with 0 to wake this should fail
+ // Even with timout zero this should fail
+ assert.throws(TypeError, (() => Atomics.wake(view, 0, 0))); // Even with 0 to wake this should fail
}, other_views);
diff --git a/test/built-ins/Atomics/wake/wake-all-on-loc.js b/test/built-ins/Atomics/wake/wake-all-on-loc.js
index 55dbd0486..f7378b888 100644
--- a/test/built-ins/Atomics/wake/wake-all-on-loc.js
+++ b/test/built-ins/Atomics/wake/wake-all-on-loc.js
@@ -8,16 +8,16 @@ description: >
wake waiters on other locations.
---*/
-var WAKEUP = 0; // Waiters on this will be woken
-var DUMMY = 1; // Waiters on this will not be woken
-var RUNNING = 2; // Accounting of live agents
+var WAKEUP = 0; // Waiters on this will be woken
+var DUMMY = 1; // Waiters on this will not be woken
+var RUNNING = 2; // Accounting of live agents
var NUMELEM = 3;
var NUMAGENT = 3;
-for (var i=0; i < NUMAGENT; i++) {
-$262.agent.start(
-`
+for (var i = 0; i < NUMAGENT; i++) {
+ $262.agent.start(
+ `
$262.agent.receiveBroadcast(function (sab) {
var ia = new Int32Array(sab);
Atomics.add(ia, ${RUNNING}, 1);
@@ -28,7 +28,7 @@ $262.agent.receiveBroadcast(function (sab) {
}
$262.agent.start(
-`
+ `
$262.agent.receiveBroadcast(function (sab) {
var ia = new Int32Array(sab);
Atomics.add(ia, ${RUNNING}, 1);
@@ -42,7 +42,7 @@ var ia = new Int32Array(new SharedArrayBuffer(NUMELEM * Int32Array.BYTES_PER_ELE
$262.agent.broadcast(ia.buffer);
// Wait for agents to be running.
-waitUntil(ia, RUNNING, NUMAGENT+1);
+waitUntil(ia, RUNNING, NUMAGENT + 1);
// Then wait some more to give the agents a fair chance to wait. If we don't,
// we risk sending the wakeup before agents are sleeping, and we hang.
@@ -52,26 +52,26 @@ $262.agent.sleep(500);
assert.sameValue(Atomics.wake(ia, WAKEUP), NUMAGENT);
var rs = [];
-for (var i=0; i < NUMAGENT+1; i++)
- rs.push(getReport());
+for (var i = 0; i < NUMAGENT + 1; i++)
+ rs.push(getReport());
rs.sort();
-for (var i=0; i < NUMAGENT; i++)
- assert.sameValue(rs[i], "A ok");
+for (var i = 0; i < NUMAGENT; i++)
+ assert.sameValue(rs[i], "A ok");
assert.sameValue(rs[NUMAGENT], "B timed-out");
function getReport() {
- var r;
- while ((r = $262.agent.getReport()) == null)
- $262.agent.sleep(100);
- return r;
+ var r;
+ while ((r = $262.agent.getReport()) == null)
+ $262.agent.sleep(100);
+ return r;
}
function waitUntil(ia, k, value) {
- var i = 0;
- while (Atomics.load(ia, k) !== value && i < 15) {
- $262.agent.sleep(100);
- i++;
- }
- assert.sameValue(Atomics.load(ia, k), value, "All agents are running");
+ var i = 0;
+ while (Atomics.load(ia, k) !== value && i < 15) {
+ $262.agent.sleep(100);
+ i++;
+ }
+ assert.sameValue(Atomics.load(ia, k), value, "All agents are running");
}
diff --git a/test/built-ins/Atomics/wake/wake-all.js b/test/built-ins/Atomics/wake/wake-all.js
index 0e013de27..abafe52ad 100644
--- a/test/built-ins/Atomics/wake/wake-all.js
+++ b/test/built-ins/Atomics/wake/wake-all.js
@@ -7,16 +7,16 @@ description: >
Test that Atomics.wake wakes all waiters if that's what the count is.
---*/
-var WAKEUP = 0; // Waiters on this will be woken
-var DUMMY = 1; // Waiters on this will not be woken
-var RUNNING = 2; // Accounting of live agents
+var WAKEUP = 0; // Waiters on this will be woken
+var DUMMY = 1; // Waiters on this will not be woken
+var RUNNING = 2; // Accounting of live agents
var NUMELEM = 3;
var NUMAGENT = 3;
-for (var i=0; i < NUMAGENT; i++) {
-$262.agent.start(
-`
+for (var i = 0; i < NUMAGENT; i++) {
+ $262.agent.start(
+ `
$262.agent.receiveBroadcast(function (sab) {
var ia = new Int32Array(sab);
Atomics.add(ia, ${RUNNING}, 1);
@@ -27,7 +27,7 @@ $262.agent.receiveBroadcast(function (sab) {
}
$262.agent.start(
-`
+ `
$262.agent.receiveBroadcast(function (sab) {
var ia = new Int32Array(sab);
Atomics.add(ia, ${RUNNING}, 1);
@@ -41,7 +41,7 @@ var ia = new Int32Array(new SharedArrayBuffer(NUMELEM * Int32Array.BYTES_PER_ELE
$262.agent.broadcast(ia.buffer);
// Wait for agents to be running.
-waitUntil(ia, RUNNING, NUMAGENT+1);
+waitUntil(ia, RUNNING, NUMAGENT + 1);
// Then wait some more to give the agents a fair chance to wait. If we don't,
// we risk sending the wakeup before agents are sleeping, and we hang.
@@ -51,26 +51,26 @@ $262.agent.sleep(500);
assert.sameValue(Atomics.wake(ia, WAKEUP), NUMAGENT);
var rs = [];
-for (var i=0; i < NUMAGENT+1; i++)
- rs.push(getReport());
+for (var i = 0; i < NUMAGENT + 1; i++)
+ rs.push(getReport());
rs.sort();
-for (var i=0; i < NUMAGENT; i++)
- assert.sameValue(rs[i], "A ok");
+for (var i = 0; i < NUMAGENT; i++)
+ assert.sameValue(rs[i], "A ok");
assert.sameValue(rs[NUMAGENT], "B timed-out");
function getReport() {
- var r;
- while ((r = $262.agent.getReport()) == null)
- $262.agent.sleep(100);
- return r;
+ var r;
+ while ((r = $262.agent.getReport()) == null)
+ $262.agent.sleep(100);
+ return r;
}
function waitUntil(ia, k, value) {
- var i = 0;
- while (Atomics.load(ia, k) !== value && i < 15) {
- $262.agent.sleep(100);
- i++;
- }
- assert.sameValue(Atomics.load(ia, k), value, "All agents are running");
+ var i = 0;
+ while (Atomics.load(ia, k) !== value && i < 15) {
+ $262.agent.sleep(100);
+ i++;
+ }
+ assert.sameValue(Atomics.load(ia, k), value, "All agents are running");
}
diff --git a/test/built-ins/Atomics/wake/wake-in-order.js b/test/built-ins/Atomics/wake/wake-in-order.js
index db56eedc2..f61eca099 100644
--- a/test/built-ins/Atomics/wake/wake-in-order.js
+++ b/test/built-ins/Atomics/wake/wake-in-order.js
@@ -9,18 +9,18 @@ description: >
var NUMAGENT = 3;
-var WAKEUP = 0; // Waiters on this will be woken
-var SPIN = 1; // Worker i (zero-based) spins on location SPIN+i
-var RUNNING = SPIN + NUMAGENT; // Accounting of live agents
+var WAKEUP = 0; // Waiters on this will be woken
+var SPIN = 1; // Worker i (zero-based) spins on location SPIN+i
+var RUNNING = SPIN + NUMAGENT; // Accounting of live agents
var NUMELEM = RUNNING + 1;
// Create workers and start them all spinning. We set atomic slots to make
// them go into a wait, thus controlling the waiting order. Then we wake them
// one by one and observe the wakeup order.
-for ( var i=0 ; i < NUMAGENT ; i++ ) {
-$262.agent.start(
-`
+for (var i = 0; i < NUMAGENT; i++) {
+ $262.agent.start(
+ `
$262.agent.receiveBroadcast(function (sab) {
var ia = new Int32Array(sab);
Atomics.add(ia, ${RUNNING}, 1);
@@ -43,29 +43,29 @@ waitUntil(ia, RUNNING, NUMAGENT);
$262.agent.sleep(500);
// Make them sleep in order 0 1 2 on ia[0]
-for ( var i=0 ; i < NUMAGENT ; i++ ) {
+for (var i = 0; i < NUMAGENT; i++) {
Atomics.store(ia, SPIN + i, 1);
$262.agent.sleep(500);
}
// Wake them up one at a time and check the order is 0 1 2
-for ( var i=0 ; i < NUMAGENT ; i++ ) {
+for (var i = 0; i < NUMAGENT; i++) {
assert.sameValue(Atomics.wake(ia, WAKEUP, 1), 1);
assert.sameValue(getReport(), i + "ok");
}
function getReport() {
- var r;
- while ((r = $262.agent.getReport()) == null)
- $262.agent.sleep(100);
- return r;
+ var r;
+ while ((r = $262.agent.getReport()) == null)
+ $262.agent.sleep(100);
+ return r;
}
function waitUntil(ia, k, value) {
- var i = 0;
- while (Atomics.load(ia, k) !== value && i < 15) {
- $262.agent.sleep(100);
- i++;
- }
- assert.sameValue(Atomics.load(ia, k), value, "All agents are running");
+ var i = 0;
+ while (Atomics.load(ia, k) !== value && i < 15) {
+ $262.agent.sleep(100);
+ i++;
+ }
+ assert.sameValue(Atomics.load(ia, k), value, "All agents are running");
}
diff --git a/test/built-ins/Atomics/wake/wake-nan.js b/test/built-ins/Atomics/wake/wake-nan.js
index a4e8868ad..252fa91f9 100644
--- a/test/built-ins/Atomics/wake/wake-nan.js
+++ b/test/built-ins/Atomics/wake/wake-nan.js
@@ -8,7 +8,7 @@ description: >
---*/
$262.agent.start(
-`
+ `
$262.agent.receiveBroadcast(function (sab) {
var ia = new Int32Array(sab);
$262.agent.report(Atomics.wait(ia, 0, 0, 1000)); // We will timeout eventually
@@ -19,13 +19,13 @@ $262.agent.receiveBroadcast(function (sab) {
var ia = new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT));
$262.agent.broadcast(ia.buffer);
-$262.agent.sleep(500); // Give the agent a chance to wait
-assert.sameValue(Atomics.wake(ia, 0, NaN), 0); // Don't actually wake it
+$262.agent.sleep(500); // Give the agent a chance to wait
+assert.sameValue(Atomics.wake(ia, 0, NaN), 0); // Don't actually wake it
assert.sameValue(getReport(), "timed-out");
function getReport() {
- var r;
- while ((r = $262.agent.getReport()) == null)
- $262.agent.sleep(100);
- return r;
+ var r;
+ while ((r = $262.agent.getReport()) == null)
+ $262.agent.sleep(100);
+ return r;
}
diff --git a/test/built-ins/Atomics/wake/wake-negative.js b/test/built-ins/Atomics/wake/wake-negative.js
index 49cb06092..de30c7cef 100644
--- a/test/built-ins/Atomics/wake/wake-negative.js
+++ b/test/built-ins/Atomics/wake/wake-negative.js
@@ -8,7 +8,7 @@ description: >
---*/
$262.agent.start(
-`
+ `
$262.agent.receiveBroadcast(function (sab) {
var ia = new Int32Array(sab);
$262.agent.report(Atomics.wait(ia, 0, 0, 1000)); // We will timeout eventually
@@ -19,13 +19,13 @@ $262.agent.receiveBroadcast(function (sab) {
var ia = new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT));
$262.agent.broadcast(ia.buffer);
-$262.agent.sleep(500); // Give the agent a chance to wait
-assert.sameValue(Atomics.wake(ia, 0, -1), 0); // Don't actually wake it
+$262.agent.sleep(500); // Give the agent a chance to wait
+assert.sameValue(Atomics.wake(ia, 0, -1), 0); // Don't actually wake it
assert.sameValue(getReport(), "timed-out");
function getReport() {
- var r;
- while ((r = $262.agent.getReport()) == null)
- $262.agent.sleep(100);
- return r;
+ var r;
+ while ((r = $262.agent.getReport()) == null)
+ $262.agent.sleep(100);
+ return r;
}
diff --git a/test/built-ins/Atomics/wake/wake-one.js b/test/built-ins/Atomics/wake/wake-one.js
index fee30a954..8223683b9 100644
--- a/test/built-ins/Atomics/wake/wake-one.js
+++ b/test/built-ins/Atomics/wake/wake-one.js
@@ -9,15 +9,15 @@ description: >
var NUMAGENT = 3;
-var WAKEUP = 0; // Agents wait here
-var RUNNING = 1; // Accounting of live agents here
+var WAKEUP = 0; // Agents wait here
+var RUNNING = 1; // Accounting of live agents here
var NUMELEM = 2;
var WAKECOUNT = 1;
-for ( var i=0 ; i < NUMAGENT ; i++ ) {
-$262.agent.start(
-`
+for (var i = 0; i < NUMAGENT; i++) {
+ $262.agent.start(
+ `
$262.agent.receiveBroadcast(function (sab) {
var ia = new Int32Array(sab);
Atomics.add(ia, ${RUNNING}, 1);
@@ -45,27 +45,27 @@ assert.sameValue(Atomics.wake(ia, 0, WAKECOUNT), WAKECOUNT);
// Collect and check results
var rs = [];
-for ( var i=0; i < NUMAGENT; i++ )
- rs.push(getReport());
+for (var i = 0; i < NUMAGENT; i++)
+ rs.push(getReport());
rs.sort();
-for ( var i=0; i < WAKECOUNT; i++ )
- assert.sameValue(rs[i], "ok");
-for ( var i=WAKECOUNT; i < NUMAGENT; i++ )
- assert.sameValue(rs[i], "timed-out");
+for (var i = 0; i < WAKECOUNT; i++)
+ assert.sameValue(rs[i], "ok");
+for (var i = WAKECOUNT; i < NUMAGENT; i++)
+ assert.sameValue(rs[i], "timed-out");
function getReport() {
- var r;
- while ((r = $262.agent.getReport()) == null)
- $262.agent.sleep(100);
- return r;
+ var r;
+ while ((r = $262.agent.getReport()) == null)
+ $262.agent.sleep(100);
+ return r;
}
function waitUntil(ia, k, value) {
- var i = 0;
- while (Atomics.load(ia, k) !== value && i < 15) {
- $262.agent.sleep(100);
- i++;
- }
- assert.sameValue(Atomics.load(ia, k), value, "All agents are running");
+ var i = 0;
+ while (Atomics.load(ia, k) !== value && i < 15) {
+ $262.agent.sleep(100);
+ i++;
+ }
+ assert.sameValue(Atomics.load(ia, k), value, "All agents are running");
}
diff --git a/test/built-ins/Atomics/wake/wake-two.js b/test/built-ins/Atomics/wake/wake-two.js
index 5d436facb..75419e067 100644
--- a/test/built-ins/Atomics/wake/wake-two.js
+++ b/test/built-ins/Atomics/wake/wake-two.js
@@ -10,15 +10,15 @@ description: >
var NUMAGENT = 3;
-var WAKEUP = 0; // Agents wait here
-var RUNNING = 1; // Accounting of live agents here
+var WAKEUP = 0; // Agents wait here
+var RUNNING = 1; // Accounting of live agents here
var NUMELEM = 2;
var WAKECOUNT = 2;
-for ( var i=0 ; i < NUMAGENT ; i++ ) {
-$262.agent.start(
-`
+for (var i = 0; i < NUMAGENT; i++) {
+ $262.agent.start(
+ `
$262.agent.receiveBroadcast(function (sab) {
var ia = new Int32Array(sab);
Atomics.add(ia, ${RUNNING}, 1);
@@ -46,27 +46,27 @@ assert.sameValue(Atomics.wake(ia, 0, WAKECOUNT), WAKECOUNT);
// Collect and check results
var rs = [];
-for ( var i=0; i < NUMAGENT; i++ )
- rs.push(getReport());
+for (var i = 0; i < NUMAGENT; i++)
+ rs.push(getReport());
rs.sort();
-for ( var i=0; i < WAKECOUNT; i++ )
- assert.sameValue(rs[i], "ok");
-for ( var i=WAKECOUNT; i < NUMAGENT; i++ )
- assert.sameValue(rs[i], "timed-out");
+for (var i = 0; i < WAKECOUNT; i++)
+ assert.sameValue(rs[i], "ok");
+for (var i = WAKECOUNT; i < NUMAGENT; i++)
+ assert.sameValue(rs[i], "timed-out");
function getReport() {
- var r;
- while ((r = $262.agent.getReport()) == null)
- $262.agent.sleep(100);
- return r;
+ var r;
+ while ((r = $262.agent.getReport()) == null)
+ $262.agent.sleep(100);
+ return r;
}
function waitUntil(ia, k, value) {
- var i = 0;
- while (Atomics.load(ia, k) !== value && i < 15) {
- $262.agent.sleep(100);
- i++;
- }
- assert.sameValue(Atomics.load(ia, k), value, "All agents are running");
+ var i = 0;
+ while (Atomics.load(ia, k) !== value && i < 15) {
+ $262.agent.sleep(100);
+ i++;
+ }
+ assert.sameValue(Atomics.load(ia, k), value, "All agents are running");
}
diff --git a/test/built-ins/Atomics/wake/wake-zero.js b/test/built-ins/Atomics/wake/wake-zero.js
index f2df4033a..fa76081d3 100644
--- a/test/built-ins/Atomics/wake/wake-zero.js
+++ b/test/built-ins/Atomics/wake/wake-zero.js
@@ -10,15 +10,15 @@ description: >
var NUMAGENT = 3;
-var WAKEUP = 0; // Agents wait here
-var RUNNING = 1; // Accounting of live agents here
+var WAKEUP = 0; // Agents wait here
+var RUNNING = 1; // Accounting of live agents here
var NUMELEM = 2;
var WAKECOUNT = 0;
-for ( var i=0 ; i < NUMAGENT ; i++ ) {
-$262.agent.start(
-`
+for (var i = 0; i < NUMAGENT; i++) {
+ $262.agent.start(
+ `
$262.agent.receiveBroadcast(function (sab) {
var ia = new Int32Array(sab);
Atomics.add(ia, ${RUNNING}, 1);
@@ -46,27 +46,27 @@ assert.sameValue(Atomics.wake(ia, 0, WAKECOUNT), WAKECOUNT);
// Collect and check results
var rs = [];
-for ( var i=0; i < NUMAGENT; i++ )
- rs.push(getReport());
+for (var i = 0; i < NUMAGENT; i++)
+ rs.push(getReport());
rs.sort();
-for ( var i=0; i < WAKECOUNT; i++ )
- assert.sameValue(rs[i], "ok");
-for ( var i=WAKECOUNT; i < NUMAGENT; i++ )
- assert.sameValue(rs[i], "timed-out");
+for (var i = 0; i < WAKECOUNT; i++)
+ assert.sameValue(rs[i], "ok");
+for (var i = WAKECOUNT; i < NUMAGENT; i++)
+ assert.sameValue(rs[i], "timed-out");
function getReport() {
- var r;
- while ((r = $262.agent.getReport()) == null)
- $262.agent.sleep(100);
- return r;
+ var r;
+ while ((r = $262.agent.getReport()) == null)
+ $262.agent.sleep(100);
+ return r;
}
function waitUntil(ia, k, value) {
- var i = 0;
- while (Atomics.load(ia, k) !== value && i < 15) {
- $262.agent.sleep(100);
- i++;
- }
- assert.sameValue(Atomics.load(ia, k), value, "All agents are running");
+ var i = 0;
+ while (Atomics.load(ia, k) !== value && i < 15) {
+ $262.agent.sleep(100);
+ i++;
+ }
+ assert.sameValue(Atomics.load(ia, k), value, "All agents are running");
}
diff --git a/test/built-ins/Atomics/xor/bad-range.js b/test/built-ins/Atomics/xor/bad-range.js
index 151986926..c51cf02ee 100644
--- a/test/built-ins/Atomics/xor/bad-range.js
+++ b/test/built-ins/Atomics/xor/bad-range.js
@@ -18,9 +18,9 @@ if (typeof BigInt !== "undefined") {
}
testWithTypedArrayConstructors(function(View) {
- let view = new View(sab);
- testWithAtomicsOutOfBoundsIndices(function(IdxGen) {
- let Idx = IdxGen(view);
- assert.throws(RangeError, () => Atomics.xor(view, Idx, 0));
- });
+ let view = new View(sab);
+ testWithAtomicsOutOfBoundsIndices(function(IdxGen) {
+ let Idx = IdxGen(view);
+ assert.throws(RangeError, () => Atomics.xor(view, Idx, 0));
+ });
}, views);
diff --git a/test/built-ins/Atomics/xor/good-views.js b/test/built-ins/Atomics/xor/good-views.js
index 395eaeacb..73a3535cb 100644
--- a/test/built-ins/Atomics/xor/good-views.js
+++ b/test/built-ins/Atomics/xor/good-views.js
@@ -13,50 +13,50 @@ var ab = new ArrayBuffer(16);
var int_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array];
testWithTypedArrayConstructors(function(View) {
- // Make it interesting - use non-zero byteOffsets and non-zero indexes.
-
- var view = new View(sab, 32, 20);
- var control = new View(ab, 0, 2);
-
- view[8] = 0x33333333;
- control[0] = 0x33333333;
- assert.sameValue(Atomics.xor(view, 8, 0x55555555), control[0],
- "Result is subject to chopping");
-
- control[0] = 0x66666666;
- assert.sameValue(view[8], control[0]);
- assert.sameValue(Atomics.xor(view, 8, 0xF0F0F0F0), control[0],
- "Result is subject to chopping");
-
- control[0] = 0x96969696;
- assert.sameValue(view[8], control[0]);
-
- view[3] = -5;
- control[0] = -5;
- assert.sameValue(Atomics.xor(view, 3, 0), control[0],
- "Result is negative and subject to coercion");
- assert.sameValue(view[3], control[0]);
-
- control[0] = 12345;
- view[3] = 12345;
- assert.sameValue(Atomics.xor(view, 3, 0), control[0],
- "Result is subject to chopping");
- assert.sameValue(view[3], control[0]);
-
- // And again
- control[0] = 123456789;
- view[3] = 123456789;
- assert.sameValue(Atomics.xor(view, 3, 0), control[0],
- "Result is subject to chopping");
- assert.sameValue(view[3], control[0]);
-
- // In-bounds boundary cases for indexing
- testWithAtomicsInBoundsIndices(function(IdxGen) {
- let Idx = IdxGen(view);
- view.fill(0);
- // Atomics.store() computes an index from Idx in the same way as other
- // Atomics operations, not quite like view[Idx].
- Atomics.store(view, Idx, 37);
- assert.sameValue(Atomics.xor(view, Idx, 0), 37);
- });
+ // Make it interesting - use non-zero byteOffsets and non-zero indexes.
+
+ var view = new View(sab, 32, 20);
+ var control = new View(ab, 0, 2);
+
+ view[8] = 0x33333333;
+ control[0] = 0x33333333;
+ assert.sameValue(Atomics.xor(view, 8, 0x55555555), control[0],
+ "Result is subject to chopping");
+
+ control[0] = 0x66666666;
+ assert.sameValue(view[8], control[0]);
+ assert.sameValue(Atomics.xor(view, 8, 0xF0F0F0F0), control[0],
+ "Result is subject to chopping");
+
+ control[0] = 0x96969696;
+ assert.sameValue(view[8], control[0]);
+
+ view[3] = -5;
+ control[0] = -5;
+ assert.sameValue(Atomics.xor(view, 3, 0), control[0],
+ "Result is negative and subject to coercion");
+ assert.sameValue(view[3], control[0]);
+
+ control[0] = 12345;
+ view[3] = 12345;
+ assert.sameValue(Atomics.xor(view, 3, 0), control[0],
+ "Result is subject to chopping");
+ assert.sameValue(view[3], control[0]);
+
+ // And again
+ control[0] = 123456789;
+ view[3] = 123456789;
+ assert.sameValue(Atomics.xor(view, 3, 0), control[0],
+ "Result is subject to chopping");
+ assert.sameValue(view[3], control[0]);
+
+ // In-bounds boundary cases for indexing
+ testWithAtomicsInBoundsIndices(function(IdxGen) {
+ let Idx = IdxGen(view);
+ view.fill(0);
+ // Atomics.store() computes an index from Idx in the same way as other
+ // Atomics operations, not quite like view[Idx].
+ Atomics.store(view, Idx, 37);
+ assert.sameValue(Atomics.xor(view, Idx, 0), 37);
+ });
}, int_views);
diff --git a/test/built-ins/Atomics/xor/non-views.js b/test/built-ins/Atomics/xor/non-views.js
index 195baba02..6cbec2e5e 100644
--- a/test/built-ins/Atomics/xor/non-views.js
+++ b/test/built-ins/Atomics/xor/non-views.js
@@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le
---*/
testWithAtomicsNonViewValues(function(view) {
- assert.throws(TypeError, (() => Atomics.xor(view, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.xor(view, 0, 0)));
});
diff --git a/test/built-ins/Atomics/xor/nonshared-int-views.js b/test/built-ins/Atomics/xor/nonshared-int-views.js
index 0ab8b408e..145286c89 100644
--- a/test/built-ins/Atomics/xor/nonshared-int-views.js
+++ b/test/built-ins/Atomics/xor/nonshared-int-views.js
@@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") {
}
testWithTypedArrayConstructors(function(View) {
- var view = new View(ab);
+ var view = new View(ab);
- assert.throws(TypeError, (() => Atomics.xor(view, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.xor(view, 0, 0)));
}, int_views);
diff --git a/test/built-ins/Atomics/xor/shared-nonint-views.js b/test/built-ins/Atomics/xor/shared-nonint-views.js
index 29e742048..b9b683f3b 100644
--- a/test/built-ins/Atomics/xor/shared-nonint-views.js
+++ b/test/built-ins/Atomics/xor/shared-nonint-views.js
@@ -14,7 +14,7 @@ var sab = new SharedArrayBuffer(1024);
var other_views = [Uint8ClampedArray, Float32Array, Float64Array];
testWithTypedArrayConstructors(function(View) {
- var view = new View(sab);
+ var view = new View(sab);
- assert.throws(TypeError, (() => Atomics.xor(view, 0, 0)));
+ assert.throws(TypeError, (() => Atomics.xor(view, 0, 0)));
}, other_views);
diff --git a/test/built-ins/BigInt/asIntN/arithmetic.js b/test/built-ins/BigInt/asIntN/arithmetic.js
index cc786ec7f..de67259c4 100644
--- a/test/built-ins/BigInt/asIntN/arithmetic.js
+++ b/test/built-ins/BigInt/asIntN/arithmetic.js
@@ -14,57 +14,53 @@ features: [BigInt]
assert.sameValue(BigInt.asIntN(0, -2n), 0n);
assert.sameValue(BigInt.asIntN(0, -1n), 0n);
-assert.sameValue(BigInt.asIntN(0, 0n), 0n);
-assert.sameValue(BigInt.asIntN(0, 1n), 0n);
-assert.sameValue(BigInt.asIntN(0, 2n), 0n);
+assert.sameValue(BigInt.asIntN(0, 0n), 0n);
+assert.sameValue(BigInt.asIntN(0, 1n), 0n);
+assert.sameValue(BigInt.asIntN(0, 2n), 0n);
assert.sameValue(BigInt.asIntN(1, -3n), -1n);
-assert.sameValue(BigInt.asIntN(1, -2n), 0n);
+assert.sameValue(BigInt.asIntN(1, -2n), 0n);
assert.sameValue(BigInt.asIntN(1, -1n), -1n);
-assert.sameValue(BigInt.asIntN(1, 0n), 0n);
-assert.sameValue(BigInt.asIntN(1, 1n), -1n);
-assert.sameValue(BigInt.asIntN(1, 2n), 0n);
-assert.sameValue(BigInt.asIntN(1, 3n), -1n);
+assert.sameValue(BigInt.asIntN(1, 0n), 0n);
+assert.sameValue(BigInt.asIntN(1, 1n), -1n);
+assert.sameValue(BigInt.asIntN(1, 2n), 0n);
+assert.sameValue(BigInt.asIntN(1, 3n), -1n);
assert.sameValue(BigInt.asIntN(1, -123456789012345678901n), -1n);
-assert.sameValue(BigInt.asIntN(1, -123456789012345678900n), 0n);
-assert.sameValue(BigInt.asIntN(1, 123456789012345678900n), 0n);
-assert.sameValue(BigInt.asIntN(1, 123456789012345678901n), -1n);
+assert.sameValue(BigInt.asIntN(1, -123456789012345678900n), 0n);
+assert.sameValue(BigInt.asIntN(1, 123456789012345678900n), 0n);
+assert.sameValue(BigInt.asIntN(1, 123456789012345678901n), -1n);
-assert.sameValue(BigInt.asIntN(2, -3n), 1n);
+assert.sameValue(BigInt.asIntN(2, -3n), 1n);
assert.sameValue(BigInt.asIntN(2, -2n), -2n);
assert.sameValue(BigInt.asIntN(2, -1n), -1n);
-assert.sameValue(BigInt.asIntN(2, 0n), 0n);
-assert.sameValue(BigInt.asIntN(2, 1n), 1n);
-assert.sameValue(BigInt.asIntN(2, 2n), -2n);
-assert.sameValue(BigInt.asIntN(2, 3n), -1n);
+assert.sameValue(BigInt.asIntN(2, 0n), 0n);
+assert.sameValue(BigInt.asIntN(2, 1n), 1n);
+assert.sameValue(BigInt.asIntN(2, 2n), -2n);
+assert.sameValue(BigInt.asIntN(2, 3n), -1n);
assert.sameValue(BigInt.asIntN(2, -123456789012345678901n), -1n);
-assert.sameValue(BigInt.asIntN(2, -123456789012345678900n), 0n);
-assert.sameValue(BigInt.asIntN(2, 123456789012345678900n), 0n);
-assert.sameValue(BigInt.asIntN(2, 123456789012345678901n), 1n);
+assert.sameValue(BigInt.asIntN(2, -123456789012345678900n), 0n);
+assert.sameValue(BigInt.asIntN(2, 123456789012345678900n), 0n);
+assert.sameValue(BigInt.asIntN(2, 123456789012345678901n), 1n);
assert.sameValue(BigInt.asIntN(8, 0xabn), -0x55n);
assert.sameValue(BigInt.asIntN(8, 0xabcdn), -0x33n);
assert.sameValue(BigInt.asIntN(8, 0xabcdef01n), 0x01n);
-assert.sameValue(BigInt.asIntN(8, 0xabcdef0123456789abcdef0123n), 0x23n);
+assert.sameValue(BigInt.asIntN(8, 0xabcdef0123456789abcdef0123n), 0x23n);
assert.sameValue(BigInt.asIntN(8, 0xabcdef0123456789abcdef0183n), -0x7dn);
assert.sameValue(BigInt.asIntN(64, 0xabcdef0123456789abcdefn), 0x0123456789abcdefn);
assert.sameValue(BigInt.asIntN(65, 0xabcdef0123456789abcdefn), -0xfedcba9876543211n);
assert.sameValue(BigInt.asIntN(200,
- 0xcffffffffffffffffffffffffffffffffffffffffffffffffffn),
- -0x00000000000000000000000000000000000000000000000001n
-);
+ 0xcffffffffffffffffffffffffffffffffffffffffffffffffffn), -0x00000000000000000000000000000000000000000000000001n);
assert.sameValue(BigInt.asIntN(201,
- 0xcffffffffffffffffffffffffffffffffffffffffffffffffffn),
- 0xffffffffffffffffffffffffffffffffffffffffffffffffffn
+ 0xcffffffffffffffffffffffffffffffffffffffffffffffffffn),
+ 0xffffffffffffffffffffffffffffffffffffffffffffffffffn
);
assert.sameValue(BigInt.asIntN(200,
- 0xc89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n),
- -0x761f7e209749a0124cd3001599f1aa2069fa9af59fc52a03acn
-);
+ 0xc89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n), -0x761f7e209749a0124cd3001599f1aa2069fa9af59fc52a03acn);
assert.sameValue(BigInt.asIntN(201,
- 0xc89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n),
- 0x89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n
+ 0xc89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n),
+ 0x89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n
);
diff --git a/test/built-ins/BigInt/asIntN/bigint-tobigint-toprimitive.js b/test/built-ins/BigInt/asIntN/bigint-tobigint-toprimitive.js
index e2663a00b..5846d39f9 100644
--- a/test/built-ins/BigInt/asIntN/bigint-tobigint-toprimitive.js
+++ b/test/built-ins/BigInt/asIntN/bigint-tobigint-toprimitive.js
@@ -22,48 +22,48 @@ assert.sameValue(BigInt.asIntN(2, {
},
valueOf: err,
toString: err
-}), 1n, "ToPrimitive: @@toPrimitive takes precedence");
+}), 1 n, "ToPrimitive: @@toPrimitive takes precedence");
assert.sameValue(BigInt.asIntN(2, {
valueOf: function() {
return "1";
},
toString: err
-}), 1n, "ToPrimitive: valueOf takes precedence over toString");
+}), 1 n, "ToPrimitive: valueOf takes precedence over toString");
assert.sameValue(BigInt.asIntN(2, {
toString: function() {
return "1";
}
-}), 1n, "ToPrimitive: toString with no valueOf");
+}), 1 n, "ToPrimitive: toString with no valueOf");
assert.sameValue(BigInt.asIntN(2, {
[Symbol.toPrimitive]: undefined,
valueOf: function() {
return "1";
}
-}), 1n, "ToPrimitive: skip @@toPrimitive when it's undefined");
+}), 1 n, "ToPrimitive: skip @@toPrimitive when it's undefined");
assert.sameValue(BigInt.asIntN(2, {
[Symbol.toPrimitive]: null,
valueOf: function() {
return "1";
}
-}), 1n, "ToPrimitive: skip @@toPrimitive when it's null");
+}), 1 n, "ToPrimitive: skip @@toPrimitive when it's null");
assert.sameValue(BigInt.asIntN(2, {
valueOf: null,
toString: function() {
return "1";
}
-}), 1n, "ToPrimitive: skip valueOf when it's not callable");
+}), 1 n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(BigInt.asIntN(2, {
valueOf: 1,
toString: function() {
return "1";
}
-}), 1n, "ToPrimitive: skip valueOf when it's not callable");
+}), 1 n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(BigInt.asIntN(2, {
valueOf: {},
toString: function() {
return "1";
}
-}), 1n, "ToPrimitive: skip valueOf when it's not callable");
+}), 1 n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(BigInt.asIntN(2, {
valueOf: function() {
return {};
@@ -71,7 +71,7 @@ assert.sameValue(BigInt.asIntN(2, {
toString: function() {
return "1";
}
-}), 1n, "ToPrimitive: skip valueOf when it returns an object");
+}), 1 n, "ToPrimitive: skip valueOf when it returns an object");
assert.sameValue(BigInt.asIntN(2, {
valueOf: function() {
return Object(12345);
@@ -79,7 +79,7 @@ assert.sameValue(BigInt.asIntN(2, {
toString: function() {
return "1";
}
-}), 1n, "ToPrimitive: skip valueOf when it returns an object");
+}), 1 n, "ToPrimitive: skip valueOf when it returns an object");
assert.throws(TypeError, function() {
BigInt.asIntN(0, {
[Symbol.toPrimitive]: 1
diff --git a/test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js b/test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js
index 2ee3a6c6b..f0cd9807d 100644
--- a/test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js
+++ b/test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js
@@ -10,53 +10,53 @@ info: |
features: [BigInt, Symbol.toPrimitive, computed-property-names]
---*/
-assert.sameValue(BigInt.asIntN(2, Object(0n)), 0n, "ToPrimitive: unbox object with internal slot");
+assert.sameValue(BigInt.asIntN(2, Object(0 n)), 0 n, "ToPrimitive: unbox object with internal slot");
assert.sameValue(BigInt.asIntN(2, {
[Symbol.toPrimitive]: function() {
- return 0n;
+ return 0 n;
}
-}), 0n, "ToPrimitive: @@toPrimitive");
+}), 0 n, "ToPrimitive: @@toPrimitive");
assert.sameValue(BigInt.asIntN(2, {
valueOf: function() {
- return 0n;
+ return 0 n;
}
-}), 0n, "ToPrimitive: valueOf");
+}), 0 n, "ToPrimitive: valueOf");
assert.sameValue(BigInt.asIntN(2, {
toString: function() {
- return 0n;
+ return 0 n;
}
-}), 0n, "ToPrimitive: toString");
-assert.sameValue(BigInt.asIntN(2, Object(true)), 1n,
+}), 0 n, "ToPrimitive: toString");
+assert.sameValue(BigInt.asIntN(2, Object(true)), 1 n,
"ToBigInt: unbox object with internal slot => true => 1n");
assert.sameValue(BigInt.asIntN(2, {
[Symbol.toPrimitive]: function() {
return true;
}
-}), 1n, "ToBigInt: @@toPrimitive => true => 1n");
+}), 1 n, "ToBigInt: @@toPrimitive => true => 1n");
assert.sameValue(BigInt.asIntN(2, {
valueOf: function() {
return true;
}
-}), 1n, "ToBigInt: valueOf => true => 1n");
+}), 1 n, "ToBigInt: valueOf => true => 1n");
assert.sameValue(BigInt.asIntN(2, {
toString: function() {
return true;
}
-}), 1n, "ToBigInt: toString => true => 1n");
-assert.sameValue(BigInt.asIntN(2, Object("1")), 1n,
+}), 1 n, "ToBigInt: toString => true => 1n");
+assert.sameValue(BigInt.asIntN(2, Object("1")), 1 n,
"ToBigInt: unbox object with internal slot => parse BigInt");
assert.sameValue(BigInt.asIntN(2, {
[Symbol.toPrimitive]: function() {
return "1";
}
-}), 1n, "ToBigInt: @@toPrimitive => parse BigInt");
+}), 1 n, "ToBigInt: @@toPrimitive => parse BigInt");
assert.sameValue(BigInt.asIntN(2, {
valueOf: function() {
return "1";
}
-}), 1n, "ToBigInt: valueOf => parse BigInt");
+}), 1 n, "ToBigInt: valueOf => parse BigInt");
assert.sameValue(BigInt.asIntN(2, {
toString: function() {
return "1";
}
-}), 1n, "ToBigInt: toString => parse BigInt");
+}), 1 n, "ToBigInt: toString => parse BigInt");
diff --git a/test/built-ins/BigInt/asIntN/bits-toindex-errors.js b/test/built-ins/BigInt/asIntN/bits-toindex-errors.js
index 892c48017..24c1317be 100644
--- a/test/built-ins/BigInt/asIntN/bits-toindex-errors.js
+++ b/test/built-ins/BigInt/asIntN/bits-toindex-errors.js
@@ -11,74 +11,74 @@ features: [BigInt, Symbol, Symbol.toPrimitive, computed-property-names]
---*/
assert.throws(RangeError, function() {
- BigInt.asIntN(-1, 0n);
+ BigInt.asIntN(-1, 0 n);
}, "ToIndex: throw when integerIndex < 0");
assert.throws(RangeError, function() {
- BigInt.asIntN(-2.5, 0n);
+ BigInt.asIntN(-2.5, 0 n);
}, "ToIndex: throw when integerIndex < 0");
assert.throws(RangeError, function() {
- BigInt.asIntN("-2.5", 0n);
+ BigInt.asIntN("-2.5", 0 n);
}, "ToIndex: parse Number => throw when integerIndex < 0");
assert.throws(RangeError, function() {
- BigInt.asIntN(-Infinity, 0n);
+ BigInt.asIntN(-Infinity, 0 n);
}, "ToIndex: throw when integerIndex < 0");
assert.throws(RangeError, function() {
- BigInt.asIntN(9007199254740992, 0n);
+ BigInt.asIntN(9007199254740992, 0 n);
}, "ToIndex: throw when integerIndex > 2**53-1");
assert.throws(RangeError, function() {
- BigInt.asIntN(Infinity, 0n);
+ BigInt.asIntN(Infinity, 0 n);
}, "ToIndex: throw when integerIndex > 2**53-1");
assert.throws(TypeError, function() {
- BigInt.asIntN(0n, 0n);
+ BigInt.asIntN(0 n, 0 n);
}, "ToIndex: BigInt => TypeError");
assert.throws(TypeError, function() {
- BigInt.asIntN(Object(0n), 0n);
+ BigInt.asIntN(Object(0 n), 0 n);
}, "ToIndex: unbox object with internal slot => BigInt => TypeError");
assert.throws(TypeError, function() {
BigInt.asIntN({
[Symbol.toPrimitive]: function() {
- return 0n;
+ return 0 n;
}
- }, 0n);
+ }, 0 n);
}, "ToIndex: @@toPrimitive => BigInt => TypeError");
assert.throws(TypeError, function() {
BigInt.asIntN({
valueOf: function() {
- return 0n;
+ return 0 n;
}
- }, 0n);
+ }, 0 n);
}, "ToIndex: valueOf => BigInt => TypeError");
assert.throws(TypeError, function() {
BigInt.asIntN({
toString: function() {
- return 0n;
+ return 0 n;
}
- }, 0n);
+ }, 0 n);
}, "ToIndex: toString => BigInt => TypeError");
assert.throws(TypeError, function() {
- BigInt.asIntN(Symbol("1"), 0n);
+ BigInt.asIntN(Symbol("1"), 0 n);
}, "ToIndex: Symbol => TypeError");
assert.throws(TypeError, function() {
- BigInt.asIntN(Object(Symbol("1")), 0n);
+ BigInt.asIntN(Object(Symbol("1")), 0 n);
}, "ToIndex: unbox object with internal slot => Symbol => TypeError");
assert.throws(TypeError, function() {
BigInt.asIntN({
[Symbol.toPrimitive]: function() {
return Symbol("1");
}
- }, 0n);
+ }, 0 n);
}, "ToIndex: @@toPrimitive => Symbol => TypeError");
assert.throws(TypeError, function() {
BigInt.asIntN({
valueOf: function() {
return Symbol("1");
}
- }, 0n);
+ }, 0 n);
}, "ToIndex: valueOf => Symbol => TypeError");
assert.throws(TypeError, function() {
BigInt.asIntN({
toString: function() {
return Symbol("1");
}
- }, 0n);
+ }, 0 n);
}, "ToIndex: toString => Symbol => TypeError");
diff --git a/test/built-ins/BigInt/asIntN/bits-toindex-toprimitive.js b/test/built-ins/BigInt/asIntN/bits-toindex-toprimitive.js
index c6b874a84..49b0a3041 100644
--- a/test/built-ins/BigInt/asIntN/bits-toindex-toprimitive.js
+++ b/test/built-ins/BigInt/asIntN/bits-toindex-toprimitive.js
@@ -22,48 +22,48 @@ assert.sameValue(BigInt.asIntN({
},
valueOf: err,
toString: err
-}, 1n), -1n, "ToPrimitive: @@toPrimitive takes precedence");
+}, 1 n), -1 n, "ToPrimitive: @@toPrimitive takes precedence");
assert.sameValue(BigInt.asIntN({
valueOf: function() {
return 1;
},
toString: err
-}, 1n), -1n, "ToPrimitive: valueOf takes precedence over toString");
+}, 1 n), -1 n, "ToPrimitive: valueOf takes precedence over toString");
assert.sameValue(BigInt.asIntN({
toString: function() {
return 1;
}
-}, 1n), -1n, "ToPrimitive: toString with no valueOf");
+}, 1 n), -1 n, "ToPrimitive: toString with no valueOf");
assert.sameValue(BigInt.asIntN({
[Symbol.toPrimitive]: undefined,
valueOf: function() {
return 1;
}
-}, 1n), -1n, "ToPrimitive: skip @@toPrimitive when it's undefined");
+}, 1 n), -1 n, "ToPrimitive: skip @@toPrimitive when it's undefined");
assert.sameValue(BigInt.asIntN({
[Symbol.toPrimitive]: null,
valueOf: function() {
return 1;
}
-}, 1n), -1n, "ToPrimitive: skip @@toPrimitive when it's null");
+}, 1 n), -1 n, "ToPrimitive: skip @@toPrimitive when it's null");
assert.sameValue(BigInt.asIntN({
valueOf: null,
toString: function() {
return 1;
}
-}, 1n), -1n, "ToPrimitive: skip valueOf when it's not callable");
+}, 1 n), -1 n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(BigInt.asIntN({
valueOf: 1,
toString: function() {
return 1;
}
-}, 1n), -1n, "ToPrimitive: skip valueOf when it's not callable");
+}, 1 n), -1 n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(BigInt.asIntN({
valueOf: {},
toString: function() {
return 1;
}
-}, 1n), -1n, "ToPrimitive: skip valueOf when it's not callable");
+}, 1 n), -1 n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(BigInt.asIntN({
valueOf: function() {
return {};
@@ -71,7 +71,7 @@ assert.sameValue(BigInt.asIntN({
toString: function() {
return 1;
}
-}, 1n), -1n, "ToPrimitive: skip valueOf when it returns an object");
+}, 1 n), -1 n, "ToPrimitive: skip valueOf when it returns an object");
assert.sameValue(BigInt.asIntN({
valueOf: function() {
return Object(12345);
@@ -79,69 +79,69 @@ assert.sameValue(BigInt.asIntN({
toString: function() {
return 1;
}
-}, 1n), -1n, "ToPrimitive: skip valueOf when it returns an object");
+}, 1 n), -1 n, "ToPrimitive: skip valueOf when it returns an object");
assert.throws(TypeError, function() {
BigInt.asIntN({
[Symbol.toPrimitive]: 1
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: throw when @@toPrimitive is not callable");
assert.throws(TypeError, function() {
BigInt.asIntN({
[Symbol.toPrimitive]: {}
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: throw when @@toPrimitive is not callable");
assert.throws(TypeError, function() {
BigInt.asIntN({
[Symbol.toPrimitive]: function() {
return Object(1);
}
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: throw when @@toPrimitive returns an object");
assert.throws(TypeError, function() {
BigInt.asIntN({
[Symbol.toPrimitive]: function() {
return {};
}
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: throw when @@toPrimitive returns an object");
assert.throws(MyError, function() {
BigInt.asIntN({
[Symbol.toPrimitive]: function() {
throw new MyError();
}
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: propagate errors from @@toPrimitive");
assert.throws(MyError, function() {
BigInt.asIntN({
valueOf: function() {
throw new MyError();
}
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: propagate errors from valueOf");
assert.throws(MyError, function() {
BigInt.asIntN({
toString: function() {
throw new MyError();
}
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: propagate errors from toString");
assert.throws(TypeError, function() {
BigInt.asIntN({
valueOf: null,
toString: null
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: throw when skipping both valueOf and toString");
assert.throws(TypeError, function() {
BigInt.asIntN({
valueOf: 1,
toString: 1
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: throw when skipping both valueOf and toString");
assert.throws(TypeError, function() {
BigInt.asIntN({
valueOf: {},
toString: {}
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: throw when skipping both valueOf and toString");
assert.throws(TypeError, function() {
BigInt.asIntN({
@@ -151,7 +151,7 @@ assert.throws(TypeError, function() {
toString: function() {
return Object(1);
}
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: throw when skipping both valueOf and toString");
assert.throws(TypeError, function() {
BigInt.asIntN({
@@ -161,5 +161,5 @@ assert.throws(TypeError, function() {
toString: function() {
return {};
}
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: throw when skipping both valueOf and toString");
diff --git a/test/built-ins/BigInt/asIntN/bits-toindex-wrapped-values.js b/test/built-ins/BigInt/asIntN/bits-toindex-wrapped-values.js
index cb9a5832a..647829e64 100644
--- a/test/built-ins/BigInt/asIntN/bits-toindex-wrapped-values.js
+++ b/test/built-ins/BigInt/asIntN/bits-toindex-wrapped-values.js
@@ -10,100 +10,100 @@ info: |
features: [BigInt, Symbol.toPrimitive, computed-property-names]
---*/
-assert.sameValue(BigInt.asIntN(Object(0), 1n), 0n, "ToPrimitive: unbox object with internal slot");
+assert.sameValue(BigInt.asIntN(Object(0), 1 n), 0 n, "ToPrimitive: unbox object with internal slot");
assert.sameValue(BigInt.asIntN({
[Symbol.toPrimitive]: function() {
return 0;
}
-}, 1n), 0n, "ToPrimitive: @@toPrimitive");
+}, 1 n), 0 n, "ToPrimitive: @@toPrimitive");
assert.sameValue(BigInt.asIntN({
valueOf: function() {
return 0;
}
-}, 1n), 0n, "ToPrimitive: valueOf");
+}, 1 n), 0 n, "ToPrimitive: valueOf");
assert.sameValue(BigInt.asIntN({
toString: function() {
return 0;
}
-}, 1n), 0n, "ToPrimitive: toString");
-assert.sameValue(BigInt.asIntN(Object(NaN), 1n), 0n,
+}, 1 n), 0 n, "ToPrimitive: toString");
+assert.sameValue(BigInt.asIntN(Object(NaN), 1 n), 0 n,
"ToIndex: unbox object with internal slot => NaN => 0");
assert.sameValue(BigInt.asIntN({
[Symbol.toPrimitive]: function() {
return NaN;
}
-}, 1n), 0n, "ToIndex: @@toPrimitive => NaN => 0");
+}, 1 n), 0 n, "ToIndex: @@toPrimitive => NaN => 0");
assert.sameValue(BigInt.asIntN({
valueOf: function() {
return NaN;
}
-}, 1n), 0n, "ToIndex: valueOf => NaN => 0");
+}, 1 n), 0 n, "ToIndex: valueOf => NaN => 0");
assert.sameValue(BigInt.asIntN({
toString: function() {
return NaN;
}
-}, 1n), 0n, "ToIndex: toString => NaN => 0");
+}, 1 n), 0 n, "ToIndex: toString => NaN => 0");
assert.sameValue(BigInt.asIntN({
[Symbol.toPrimitive]: function() {
return undefined;
}
-}, 1n), 0n, "ToIndex: @@toPrimitive => undefined => NaN => 0");
+}, 1 n), 0 n, "ToIndex: @@toPrimitive => undefined => NaN => 0");
assert.sameValue(BigInt.asIntN({
valueOf: function() {
return undefined;
}
-}, 1n), 0n, "ToIndex: valueOf => undefined => NaN => 0");
+}, 1 n), 0 n, "ToIndex: valueOf => undefined => NaN => 0");
assert.sameValue(BigInt.asIntN({
toString: function() {
return undefined;
}
-}, 1n), 0n, "ToIndex: toString => undefined => NaN => 0");
+}, 1 n), 0 n, "ToIndex: toString => undefined => NaN => 0");
assert.sameValue(BigInt.asIntN({
[Symbol.toPrimitive]: function() {
return null;
}
-}, 1n), 0n, "ToIndex: @@toPrimitive => null => 0");
+}, 1 n), 0 n, "ToIndex: @@toPrimitive => null => 0");
assert.sameValue(BigInt.asIntN({
valueOf: function() {
return null;
}
-}, 1n), 0n, "ToIndex: valueOf => null => 0");
+}, 1 n), 0 n, "ToIndex: valueOf => null => 0");
assert.sameValue(BigInt.asIntN({
toString: function() {
return null;
}
-}, 1n), 0n, "ToIndex: toString => null => 0");
-assert.sameValue(BigInt.asIntN(Object(true), 1n), -1n,
+}, 1 n), 0 n, "ToIndex: toString => null => 0");
+assert.sameValue(BigInt.asIntN(Object(true), 1 n), -1 n,
"ToIndex: unbox object with internal slot => true => 1");
assert.sameValue(BigInt.asIntN({
[Symbol.toPrimitive]: function() {
return true;
}
-}, 1n), -1n, "ToIndex: @@toPrimitive => true => 1");
+}, 1 n), -1 n, "ToIndex: @@toPrimitive => true => 1");
assert.sameValue(BigInt.asIntN({
valueOf: function() {
return true;
}
-}, 1n), -1n, "ToIndex: valueOf => true => 1");
+}, 1 n), -1 n, "ToIndex: valueOf => true => 1");
assert.sameValue(BigInt.asIntN({
toString: function() {
return true;
}
-}, 1n), -1n, "ToIndex: toString => true => 1");
-assert.sameValue(BigInt.asIntN(Object("1"), 1n), -1n,
+}, 1 n), -1 n, "ToIndex: toString => true => 1");
+assert.sameValue(BigInt.asIntN(Object("1"), 1 n), -1 n,
"ToIndex: unbox object with internal slot => parse Number");
assert.sameValue(BigInt.asIntN({
[Symbol.toPrimitive]: function() {
return "1";
}
-}, 1n), -1n, "ToIndex: @@toPrimitive => parse Number");
+}, 1 n), -1 n, "ToIndex: @@toPrimitive => parse Number");
assert.sameValue(BigInt.asIntN({
valueOf: function() {
return "1";
}
-}, 1n), -1n, "ToIndex: valueOf => parse Number");
+}, 1 n), -1 n, "ToIndex: valueOf => parse Number");
assert.sameValue(BigInt.asIntN({
toString: function() {
return "1";
}
-}, 1n), -1n, "ToIndex: toString => parse Number");
+}, 1 n), -1 n, "ToIndex: toString => parse Number");
diff --git a/test/built-ins/BigInt/asIntN/bits-toindex.js b/test/built-ins/BigInt/asIntN/bits-toindex.js
index b3b8acad9..c2646fbab 100644
--- a/test/built-ins/BigInt/asIntN/bits-toindex.js
+++ b/test/built-ins/BigInt/asIntN/bits-toindex.js
@@ -16,7 +16,7 @@ assert.sameValue(BigInt.asIntN(-0.9, 1n), 0n, "ToIndex: truncate towards 0");
assert.sameValue(BigInt.asIntN(0.9, 1n), 0n, "ToIndex: truncate towards 0");
assert.sameValue(BigInt.asIntN(NaN, 1n), 0n, "ToIndex: NaN => 0");
assert.sameValue(BigInt.asIntN(undefined, 1n), 0n, "ToIndex: undefined => NaN => 0");
-assert.sameValue(BigInt.asIntN(null, 1n), 0n, "ToIndex: null => 0");
+assert.sameValue(BigInt.asIntN(null, 1n), 0n, "ToIndex:null => 0");
assert.sameValue(BigInt.asIntN(false, 1n), 0n, "ToIndex: false => 0");
assert.sameValue(BigInt.asIntN(true, 1n), -1n, "ToIndex: true => 1");
assert.sameValue(BigInt.asIntN("0", 1n), 0n, "ToIndex: parse Number");
diff --git a/test/built-ins/BigInt/asUintN/arithmetic.js b/test/built-ins/BigInt/asUintN/arithmetic.js
index 5ab7b235c..9e8154f7b 100644
--- a/test/built-ins/BigInt/asUintN/arithmetic.js
+++ b/test/built-ins/BigInt/asUintN/arithmetic.js
@@ -13,33 +13,33 @@ features: [BigInt]
assert.sameValue(BigInt.asUintN(0, -2n), 0n);
assert.sameValue(BigInt.asUintN(0, -1n), 0n);
-assert.sameValue(BigInt.asUintN(0, 0n), 0n);
-assert.sameValue(BigInt.asUintN(0, 1n), 0n);
-assert.sameValue(BigInt.asUintN(0, 2n), 0n);
+assert.sameValue(BigInt.asUintN(0, 0n), 0n);
+assert.sameValue(BigInt.asUintN(0, 1n), 0n);
+assert.sameValue(BigInt.asUintN(0, 2n), 0n);
assert.sameValue(BigInt.asUintN(1, -3n), 1n);
assert.sameValue(BigInt.asUintN(1, -2n), 0n);
assert.sameValue(BigInt.asUintN(1, -1n), 1n);
-assert.sameValue(BigInt.asUintN(1, 0n), 0n);
-assert.sameValue(BigInt.asUintN(1, 1n), 1n);
-assert.sameValue(BigInt.asUintN(1, 2n), 0n);
-assert.sameValue(BigInt.asUintN(1, 3n), 1n);
+assert.sameValue(BigInt.asUintN(1, 0n), 0n);
+assert.sameValue(BigInt.asUintN(1, 1n), 1n);
+assert.sameValue(BigInt.asUintN(1, 2n), 0n);
+assert.sameValue(BigInt.asUintN(1, 3n), 1n);
assert.sameValue(BigInt.asUintN(1, -123456789012345678901n), 1n);
assert.sameValue(BigInt.asUintN(1, -123456789012345678900n), 0n);
-assert.sameValue(BigInt.asUintN(1, 123456789012345678900n), 0n);
-assert.sameValue(BigInt.asUintN(1, 123456789012345678901n), 1n);
+assert.sameValue(BigInt.asUintN(1, 123456789012345678900n), 0n);
+assert.sameValue(BigInt.asUintN(1, 123456789012345678901n), 1n);
assert.sameValue(BigInt.asUintN(2, -3n), 1n);
assert.sameValue(BigInt.asUintN(2, -2n), 2n);
assert.sameValue(BigInt.asUintN(2, -1n), 3n);
-assert.sameValue(BigInt.asUintN(2, 0n), 0n);
-assert.sameValue(BigInt.asUintN(2, 1n), 1n);
-assert.sameValue(BigInt.asUintN(2, 2n), 2n);
-assert.sameValue(BigInt.asUintN(2, 3n), 3n);
+assert.sameValue(BigInt.asUintN(2, 0n), 0n);
+assert.sameValue(BigInt.asUintN(2, 1n), 1n);
+assert.sameValue(BigInt.asUintN(2, 2n), 2n);
+assert.sameValue(BigInt.asUintN(2, 3n), 3n);
assert.sameValue(BigInt.asUintN(2, -123456789012345678901n), 3n);
assert.sameValue(BigInt.asUintN(2, -123456789012345678900n), 0n);
-assert.sameValue(BigInt.asUintN(2, 123456789012345678900n), 0n);
-assert.sameValue(BigInt.asUintN(2, 123456789012345678901n), 1n);
+assert.sameValue(BigInt.asUintN(2, 123456789012345678900n), 0n);
+assert.sameValue(BigInt.asUintN(2, 123456789012345678901n), 1n);
assert.sameValue(BigInt.asUintN(8, 0xabn), 0xabn);
assert.sameValue(BigInt.asUintN(8, 0xabcdn), 0xcdn);
@@ -47,23 +47,23 @@ assert.sameValue(BigInt.asUintN(8, 0xabcdef01n), 0x01n);
assert.sameValue(BigInt.asUintN(8, 0xabcdef0123456789abcdef0123n), 0x23n);
assert.sameValue(BigInt.asUintN(8, 0xabcdef0123456789abcdef0183n), 0x83n);
-assert.sameValue(BigInt.asUintN(64, 0xabcdef0123456789abcdefn), 0x0123456789abcdefn);
+assert.sameValue(BigInt.asUintN(64, 0xabcdef0123456789abcdefn), 0x0123456789abcdefn);
assert.sameValue(BigInt.asUintN(65, 0xabcdef0123456789abcdefn), 0x10123456789abcdefn);
assert.sameValue(BigInt.asUintN(200,
- 0xbffffffffffffffffffffffffffffffffffffffffffffffffffn),
+ 0xbffffffffffffffffffffffffffffffffffffffffffffffffffn),
0x0ffffffffffffffffffffffffffffffffffffffffffffffffffn
);
assert.sameValue(BigInt.asUintN(201,
- 0xbffffffffffffffffffffffffffffffffffffffffffffffffffn),
+ 0xbffffffffffffffffffffffffffffffffffffffffffffffffffn),
0x1ffffffffffffffffffffffffffffffffffffffffffffffffffn
);
assert.sameValue(BigInt.asUintN(200,
- 0xb89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n),
+ 0xb89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n),
0x089e081df68b65fedb32cffea660e55df9605650a603ad5fc54n
);
assert.sameValue(BigInt.asUintN(201,
- 0xb89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n),
+ 0xb89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n),
0x189e081df68b65fedb32cffea660e55df9605650a603ad5fc54n
);
diff --git a/test/built-ins/BigInt/asUintN/bigint-tobigint-toprimitive.js b/test/built-ins/BigInt/asUintN/bigint-tobigint-toprimitive.js
index 15bfa4775..65008e1aa 100644
--- a/test/built-ins/BigInt/asUintN/bigint-tobigint-toprimitive.js
+++ b/test/built-ins/BigInt/asUintN/bigint-tobigint-toprimitive.js
@@ -22,48 +22,48 @@ assert.sameValue(BigInt.asUintN(2, {
},
valueOf: err,
toString: err
-}), 1n, "ToPrimitive: @@toPrimitive takes precedence");
+}), 1 n, "ToPrimitive: @@toPrimitive takes precedence");
assert.sameValue(BigInt.asUintN(2, {
valueOf: function() {
return "1";
},
toString: err
-}), 1n, "ToPrimitive: valueOf takes precedence over toString");
+}), 1 n, "ToPrimitive: valueOf takes precedence over toString");
assert.sameValue(BigInt.asUintN(2, {
toString: function() {
return "1";
}
-}), 1n, "ToPrimitive: toString with no valueOf");
+}), 1 n, "ToPrimitive: toString with no valueOf");
assert.sameValue(BigInt.asUintN(2, {
[Symbol.toPrimitive]: undefined,
valueOf: function() {
return "1";
}
-}), 1n, "ToPrimitive: skip @@toPrimitive when it's undefined");
+}), 1 n, "ToPrimitive: skip @@toPrimitive when it's undefined");
assert.sameValue(BigInt.asUintN(2, {
[Symbol.toPrimitive]: null,
valueOf: function() {
return "1";
}
-}), 1n, "ToPrimitive: skip @@toPrimitive when it's null");
+}), 1 n, "ToPrimitive: skip @@toPrimitive when it's null");
assert.sameValue(BigInt.asUintN(2, {
valueOf: null,
toString: function() {
return "1";
}
-}), 1n, "ToPrimitive: skip valueOf when it's not callable");
+}), 1 n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(BigInt.asUintN(2, {
valueOf: 1,
toString: function() {
return "1";
}
-}), 1n, "ToPrimitive: skip valueOf when it's not callable");
+}), 1 n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(BigInt.asUintN(2, {
valueOf: {},
toString: function() {
return "1";
}
-}), 1n, "ToPrimitive: skip valueOf when it's not callable");
+}), 1 n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(BigInt.asUintN(2, {
valueOf: function() {
return {};
@@ -71,7 +71,7 @@ assert.sameValue(BigInt.asUintN(2, {
toString: function() {
return "1";
}
-}), 1n, "ToPrimitive: skip valueOf when it returns an object");
+}), 1 n, "ToPrimitive: skip valueOf when it returns an object");
assert.sameValue(BigInt.asUintN(2, {
valueOf: function() {
return Object(12345);
@@ -79,7 +79,7 @@ assert.sameValue(BigInt.asUintN(2, {
toString: function() {
return "1";
}
-}), 1n, "ToPrimitive: skip valueOf when it returns an object");
+}), 1 n, "ToPrimitive: skip valueOf when it returns an object");
assert.throws(TypeError, function() {
BigInt.asUintN(0, {
[Symbol.toPrimitive]: 1
diff --git a/test/built-ins/BigInt/asUintN/bigint-tobigint-wrapped-values.js b/test/built-ins/BigInt/asUintN/bigint-tobigint-wrapped-values.js
index 49741b939..f7750a420 100644
--- a/test/built-ins/BigInt/asUintN/bigint-tobigint-wrapped-values.js
+++ b/test/built-ins/BigInt/asUintN/bigint-tobigint-wrapped-values.js
@@ -10,53 +10,53 @@ info: |
features: [BigInt, Symbol.toPrimitive, computed-property-names]
---*/
-assert.sameValue(BigInt.asUintN(2, Object(0n)), 0n, "ToPrimitive: unbox object with internal slot");
+assert.sameValue(BigInt.asUintN(2, Object(0 n)), 0 n, "ToPrimitive: unbox object with internal slot");
assert.sameValue(BigInt.asUintN(2, {
[Symbol.toPrimitive]: function() {
- return 0n;
+ return 0 n;
}
-}), 0n, "ToPrimitive: @@toPrimitive");
+}), 0 n, "ToPrimitive: @@toPrimitive");
assert.sameValue(BigInt.asUintN(2, {
valueOf: function() {
- return 0n;
+ return 0 n;
}
-}), 0n, "ToPrimitive: valueOf");
+}), 0 n, "ToPrimitive: valueOf");
assert.sameValue(BigInt.asUintN(2, {
toString: function() {
- return 0n;
+ return 0 n;
}
-}), 0n, "ToPrimitive: toString");
-assert.sameValue(BigInt.asUintN(2, Object(true)), 1n,
+}), 0 n, "ToPrimitive: toString");
+assert.sameValue(BigInt.asUintN(2, Object(true)), 1 n,
"ToBigInt: unbox object with internal slot => true => 1n");
assert.sameValue(BigInt.asUintN(2, {
[Symbol.toPrimitive]: function() {
return true;
}
-}), 1n, "ToBigInt: @@toPrimitive => true => 1n");
+}), 1 n, "ToBigInt: @@toPrimitive => true => 1n");
assert.sameValue(BigInt.asUintN(2, {
valueOf: function() {
return true;
}
-}), 1n, "ToBigInt: valueOf => true => 1n");
+}), 1 n, "ToBigInt: valueOf => true => 1n");
assert.sameValue(BigInt.asUintN(2, {
toString: function() {
return true;
}
-}), 1n, "ToBigInt: toString => true => 1n");
-assert.sameValue(BigInt.asUintN(2, Object("1")), 1n,
+}), 1 n, "ToBigInt: toString => true => 1n");
+assert.sameValue(BigInt.asUintN(2, Object("1")), 1 n,
"ToBigInt: unbox object with internal slot => parse BigInt");
assert.sameValue(BigInt.asUintN(2, {
[Symbol.toPrimitive]: function() {
return "1";
}
-}), 1n, "ToBigInt: @@toPrimitive => parse BigInt");
+}), 1 n, "ToBigInt: @@toPrimitive => parse BigInt");
assert.sameValue(BigInt.asUintN(2, {
valueOf: function() {
return "1";
}
-}), 1n, "ToBigInt: valueOf => parse BigInt");
+}), 1 n, "ToBigInt: valueOf => parse BigInt");
assert.sameValue(BigInt.asUintN(2, {
toString: function() {
return "1";
}
-}), 1n, "ToBigInt: toString => parse BigInt");
+}), 1 n, "ToBigInt: toString => parse BigInt");
diff --git a/test/built-ins/BigInt/asUintN/bits-toindex-errors.js b/test/built-ins/BigInt/asUintN/bits-toindex-errors.js
index 9b42b295d..4ee6e8e73 100644
--- a/test/built-ins/BigInt/asUintN/bits-toindex-errors.js
+++ b/test/built-ins/BigInt/asUintN/bits-toindex-errors.js
@@ -11,74 +11,74 @@ features: [BigInt, Symbol, Symbol.toPrimitive, computed-property-names]
---*/
assert.throws(RangeError, function() {
- BigInt.asUintN(-1, 0n);
+ BigInt.asUintN(-1, 0 n);
}, "ToIndex: throw when integerIndex < 0");
assert.throws(RangeError, function() {
- BigInt.asUintN(-2.5, 0n);
+ BigInt.asUintN(-2.5, 0 n);
}, "ToIndex: throw when integerIndex < 0");
assert.throws(RangeError, function() {
- BigInt.asUintN("-2.5", 0n);
+ BigInt.asUintN("-2.5", 0 n);
}, "ToIndex: parse Number => throw when integerIndex < 0");
assert.throws(RangeError, function() {
- BigInt.asUintN(-Infinity, 0n);
+ BigInt.asUintN(-Infinity, 0 n);
}, "ToIndex: throw when integerIndex < 0");
assert.throws(RangeError, function() {
- BigInt.asUintN(9007199254740992, 0n);
+ BigInt.asUintN(9007199254740992, 0 n);
}, "ToIndex: throw when integerIndex > 2**53-1");
assert.throws(RangeError, function() {
- BigInt.asUintN(Infinity, 0n);
+ BigInt.asUintN(Infinity, 0 n);
}, "ToIndex: throw when integerIndex > 2**53-1");
assert.throws(TypeError, function() {
- BigInt.asUintN(0n, 0n);
+ BigInt.asUintN(0 n, 0 n);
}, "ToIndex: BigInt => TypeError");
assert.throws(TypeError, function() {
- BigInt.asUintN(Object(0n), 0n);
+ BigInt.asUintN(Object(0 n), 0 n);
}, "ToIndex: unbox object with internal slot => BigInt => TypeError");
assert.throws(TypeError, function() {
BigInt.asUintN({
[Symbol.toPrimitive]: function() {
- return 0n;
+ return 0 n;
}
- }, 0n);
+ }, 0 n);
}, "ToIndex: @@toPrimitive => BigInt => TypeError");
assert.throws(TypeError, function() {
BigInt.asUintN({
valueOf: function() {
- return 0n;
+ return 0 n;
}
- }, 0n);
+ }, 0 n);
}, "ToIndex: valueOf => BigInt => TypeError");
assert.throws(TypeError, function() {
BigInt.asUintN({
toString: function() {
- return 0n;
+ return 0 n;
}
- }, 0n);
+ }, 0 n);
}, "ToIndex: toString => BigInt => TypeError");
assert.throws(TypeError, function() {
- BigInt.asUintN(Symbol("1"), 0n);
+ BigInt.asUintN(Symbol("1"), 0 n);
}, "ToIndex: Symbol => TypeError");
assert.throws(TypeError, function() {
- BigInt.asUintN(Object(Symbol("1")), 0n);
+ BigInt.asUintN(Object(Symbol("1")), 0 n);
}, "ToIndex: unbox object with internal slot => Symbol => TypeError");
assert.throws(TypeError, function() {
BigInt.asUintN({
[Symbol.toPrimitive]: function() {
return Symbol("1");
}
- }, 0n);
+ }, 0 n);
}, "ToIndex: @@toPrimitive => Symbol => TypeError");
assert.throws(TypeError, function() {
BigInt.asUintN({
valueOf: function() {
return Symbol("1");
}
- }, 0n);
+ }, 0 n);
}, "ToIndex: valueOf => Symbol => TypeError");
assert.throws(TypeError, function() {
BigInt.asUintN({
toString: function() {
return Symbol("1");
}
- }, 0n);
+ }, 0 n);
}, "ToIndex: toString => Symbol => TypeError");
diff --git a/test/built-ins/BigInt/asUintN/bits-toindex-toprimitive.js b/test/built-ins/BigInt/asUintN/bits-toindex-toprimitive.js
index 68a0421a9..d8cde7652 100644
--- a/test/built-ins/BigInt/asUintN/bits-toindex-toprimitive.js
+++ b/test/built-ins/BigInt/asUintN/bits-toindex-toprimitive.js
@@ -22,48 +22,48 @@ assert.sameValue(BigInt.asUintN({
},
valueOf: err,
toString: err
-}, 1n), 1n, "ToPrimitive: @@toPrimitive takes precedence");
+}, 1 n), 1 n, "ToPrimitive: @@toPrimitive takes precedence");
assert.sameValue(BigInt.asUintN({
valueOf: function() {
return 1;
},
toString: err
-}, 1n), 1n, "ToPrimitive: valueOf takes precedence over toString");
+}, 1 n), 1 n, "ToPrimitive: valueOf takes precedence over toString");
assert.sameValue(BigInt.asUintN({
toString: function() {
return 1;
}
-}, 1n), 1n, "ToPrimitive: toString with no valueOf");
+}, 1 n), 1 n, "ToPrimitive: toString with no valueOf");
assert.sameValue(BigInt.asUintN({
[Symbol.toPrimitive]: undefined,
valueOf: function() {
return 1;
}
-}, 1n), 1n, "ToPrimitive: skip @@toPrimitive when it's undefined");
+}, 1 n), 1 n, "ToPrimitive: skip @@toPrimitive when it's undefined");
assert.sameValue(BigInt.asUintN({
[Symbol.toPrimitive]: null,
valueOf: function() {
return 1;
}
-}, 1n), 1n, "ToPrimitive: skip @@toPrimitive when it's null");
+}, 1 n), 1 n, "ToPrimitive: skip @@toPrimitive when it's null");
assert.sameValue(BigInt.asUintN({
valueOf: null,
toString: function() {
return 1;
}
-}, 1n), 1n, "ToPrimitive: skip valueOf when it's not callable");
+}, 1 n), 1 n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(BigInt.asUintN({
valueOf: 1,
toString: function() {
return 1;
}
-}, 1n), 1n, "ToPrimitive: skip valueOf when it's not callable");
+}, 1 n), 1 n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(BigInt.asUintN({
valueOf: {},
toString: function() {
return 1;
}
-}, 1n), 1n, "ToPrimitive: skip valueOf when it's not callable");
+}, 1 n), 1 n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(BigInt.asUintN({
valueOf: function() {
return {};
@@ -71,7 +71,7 @@ assert.sameValue(BigInt.asUintN({
toString: function() {
return 1;
}
-}, 1n), 1n, "ToPrimitive: skip valueOf when it returns an object");
+}, 1 n), 1 n, "ToPrimitive: skip valueOf when it returns an object");
assert.sameValue(BigInt.asUintN({
valueOf: function() {
return Object(12345);
@@ -79,69 +79,69 @@ assert.sameValue(BigInt.asUintN({
toString: function() {
return 1;
}
-}, 1n), 1n, "ToPrimitive: skip valueOf when it returns an object");
+}, 1 n), 1 n, "ToPrimitive: skip valueOf when it returns an object");
assert.throws(TypeError, function() {
BigInt.asUintN({
[Symbol.toPrimitive]: 1
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: throw when @@toPrimitive is not callable");
assert.throws(TypeError, function() {
BigInt.asUintN({
[Symbol.toPrimitive]: {}
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: throw when @@toPrimitive is not callable");
assert.throws(TypeError, function() {
BigInt.asUintN({
[Symbol.toPrimitive]: function() {
return Object(1);
}
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: throw when @@toPrimitive returns an object");
assert.throws(TypeError, function() {
BigInt.asUintN({
[Symbol.toPrimitive]: function() {
return {};
}
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: throw when @@toPrimitive returns an object");
assert.throws(MyError, function() {
BigInt.asUintN({
[Symbol.toPrimitive]: function() {
throw new MyError();
}
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: propagate errors from @@toPrimitive");
assert.throws(MyError, function() {
BigInt.asUintN({
valueOf: function() {
throw new MyError();
}
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: propagate errors from valueOf");
assert.throws(MyError, function() {
BigInt.asUintN({
toString: function() {
throw new MyError();
}
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: propagate errors from toString");
assert.throws(TypeError, function() {
BigInt.asUintN({
valueOf: null,
toString: null
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: throw when skipping both valueOf and toString");
assert.throws(TypeError, function() {
BigInt.asUintN({
valueOf: 1,
toString: 1
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: throw when skipping both valueOf and toString");
assert.throws(TypeError, function() {
BigInt.asUintN({
valueOf: {},
toString: {}
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: throw when skipping both valueOf and toString");
assert.throws(TypeError, function() {
BigInt.asUintN({
@@ -151,7 +151,7 @@ assert.throws(TypeError, function() {
toString: function() {
return Object(1);
}
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: throw when skipping both valueOf and toString");
assert.throws(TypeError, function() {
BigInt.asUintN({
@@ -161,5 +161,5 @@ assert.throws(TypeError, function() {
toString: function() {
return {};
}
- }, 0n);
+ }, 0 n);
}, "ToPrimitive: throw when skipping both valueOf and toString");
diff --git a/test/built-ins/BigInt/asUintN/bits-toindex-wrapped-values.js b/test/built-ins/BigInt/asUintN/bits-toindex-wrapped-values.js
index 3b78835cd..d6d78b317 100644
--- a/test/built-ins/BigInt/asUintN/bits-toindex-wrapped-values.js
+++ b/test/built-ins/BigInt/asUintN/bits-toindex-wrapped-values.js
@@ -10,100 +10,100 @@ info: |
features: [BigInt, Symbol.toPrimitive, computed-property-names]
---*/
-assert.sameValue(BigInt.asUintN(Object(0), 1n), 0n, "ToPrimitive: unbox object with internal slot");
+assert.sameValue(BigInt.asUintN(Object(0), 1 n), 0 n, "ToPrimitive: unbox object with internal slot");
assert.sameValue(BigInt.asUintN({
[Symbol.toPrimitive]: function() {
return 0;
}
-}, 1n), 0n, "ToPrimitive: @@toPrimitive");
+}, 1 n), 0 n, "ToPrimitive: @@toPrimitive");
assert.sameValue(BigInt.asUintN({
valueOf: function() {
return 0;
}
-}, 1n), 0n, "ToPrimitive: valueOf");
+}, 1 n), 0 n, "ToPrimitive: valueOf");
assert.sameValue(BigInt.asUintN({
toString: function() {
return 0;
}
-}, 1n), 0n, "ToPrimitive: toString");
-assert.sameValue(BigInt.asUintN(Object(NaN), 1n), 0n,
+}, 1 n), 0 n, "ToPrimitive: toString");
+assert.sameValue(BigInt.asUintN(Object(NaN), 1 n), 0 n,
"ToIndex: unbox object with internal slot => NaN => 0");
assert.sameValue(BigInt.asUintN({
[Symbol.toPrimitive]: function() {
return NaN;
}
-}, 1n), 0n, "ToIndex: @@toPrimitive => NaN => 0");
+}, 1 n), 0 n, "ToIndex: @@toPrimitive => NaN => 0");
assert.sameValue(BigInt.asUintN({
valueOf: function() {
return NaN;
}
-}, 1n), 0n, "ToIndex: valueOf => NaN => 0");
+}, 1 n), 0 n, "ToIndex: valueOf => NaN => 0");
assert.sameValue(BigInt.asUintN({
toString: function() {
return NaN;
}
-}, 1n), 0n, "ToIndex: toString => NaN => 0");
+}, 1 n), 0 n, "ToIndex: toString => NaN => 0");
assert.sameValue(BigInt.asUintN({
[Symbol.toPrimitive]: function() {
return undefined;
}
-}, 1n), 0n, "ToIndex: @@toPrimitive => undefined => NaN => 0");
+}, 1 n), 0 n, "ToIndex: @@toPrimitive => undefined => NaN => 0");
assert.sameValue(BigInt.asUintN({
valueOf: function() {
return undefined;
}
-}, 1n), 0n, "ToIndex: valueOf => undefined => NaN => 0");
+}, 1 n), 0 n, "ToIndex: valueOf => undefined => NaN => 0");
assert.sameValue(BigInt.asUintN({
toString: function() {
return undefined;
}
-}, 1n), 0n, "ToIndex: toString => undefined => NaN => 0");
+}, 1 n), 0 n, "ToIndex: toString => undefined => NaN => 0");
assert.sameValue(BigInt.asUintN({
[Symbol.toPrimitive]: function() {
return null;
}
-}, 1n), 0n, "ToIndex: @@toPrimitive => null => 0");
+}, 1 n), 0 n, "ToIndex: @@toPrimitive => null => 0");
assert.sameValue(BigInt.asUintN({
valueOf: function() {
return null;
}
-}, 1n), 0n, "ToIndex: valueOf => null => 0");
+}, 1 n), 0 n, "ToIndex: valueOf => null => 0");
assert.sameValue(BigInt.asUintN({
toString: function() {
return null;
}
-}, 1n), 0n, "ToIndex: toString => null => 0");
-assert.sameValue(BigInt.asUintN(Object(true), 1n), 1n,
+}, 1 n), 0 n, "ToIndex: toString => null => 0");
+assert.sameValue(BigInt.asUintN(Object(true), 1 n), 1 n,
"ToIndex: unbox object with internal slot => true => 1");
assert.sameValue(BigInt.asUintN({
[Symbol.toPrimitive]: function() {
return true;
}
-}, 1n), 1n, "ToIndex: @@toPrimitive => true => 1");
+}, 1 n), 1 n, "ToIndex: @@toPrimitive => true => 1");
assert.sameValue(BigInt.asUintN({
valueOf: function() {
return true;
}
-}, 1n), 1n, "ToIndex: valueOf => true => 1");
+}, 1 n), 1 n, "ToIndex: valueOf => true => 1");
assert.sameValue(BigInt.asUintN({
toString: function() {
return true;
}
-}, 1n), 1n, "ToIndex: toString => true => 1");
-assert.sameValue(BigInt.asUintN(Object("1"), 1n), 1n,
+}, 1 n), 1 n, "ToIndex: toString => true => 1");
+assert.sameValue(BigInt.asUintN(Object("1"), 1 n), 1 n,
"ToIndex: unbox object with internal slot => parse Number");
assert.sameValue(BigInt.asUintN({
[Symbol.toPrimitive]: function() {
return "1";
}
-}, 1n), 1n, "ToIndex: @@toPrimitive => parse Number");
+}, 1 n), 1 n, "ToIndex: @@toPrimitive => parse Number");
assert.sameValue(BigInt.asUintN({
valueOf: function() {
return "1";
}
-}, 1n), 1n, "ToIndex: valueOf => parse Number");
+}, 1 n), 1 n, "ToIndex: valueOf => parse Number");
assert.sameValue(BigInt.asUintN({
toString: function() {
return "1";
}
-}, 1n), 1n, "ToIndex: toString => parse Number");
+}, 1 n), 1 n, "ToIndex: toString => parse Number");
diff --git a/test/built-ins/BigInt/asUintN/bits-toindex.js b/test/built-ins/BigInt/asUintN/bits-toindex.js
index 7d774bc33..7318fc88e 100644
--- a/test/built-ins/BigInt/asUintN/bits-toindex.js
+++ b/test/built-ins/BigInt/asUintN/bits-toindex.js
@@ -16,7 +16,7 @@ assert.sameValue(BigInt.asUintN(-0.9, 1n), 0n, "ToIndex: truncate towards 0");
assert.sameValue(BigInt.asUintN(0.9, 1n), 0n, "ToIndex: truncate towards 0");
assert.sameValue(BigInt.asUintN(NaN, 1n), 0n, "ToIndex: NaN => 0");
assert.sameValue(BigInt.asUintN(undefined, 1n), 0n, "ToIndex: undefined => NaN => 0");
-assert.sameValue(BigInt.asUintN(null, 1n), 0n, "ToIndex: null => 0");
+assert.sameValue(BigInt.asUintN(null, 1n), 0n, "ToIndex:null => 0");
assert.sameValue(BigInt.asUintN(false, 1n), 0n, "ToIndex: false => 0");
assert.sameValue(BigInt.asUintN(true, 1n), 1n, "ToIndex: true => 1");
assert.sameValue(BigInt.asUintN("0", 1n), 0n, "ToIndex: parse Number");
diff --git a/test/built-ins/BigInt/call-value-of-when-to-string-present.js b/test/built-ins/BigInt/call-value-of-when-to-string-present.js
index 95b89af32..b3a02ab0b 100644
--- a/test/built-ins/BigInt/call-value-of-when-to-string-present.js
+++ b/test/built-ins/BigInt/call-value-of-when-to-string-present.js
@@ -22,4 +22,3 @@ let o = {
}
assert.sameValue(BigInt(o), 44n);
-
diff --git a/test/built-ins/BigInt/constructor-empty-string.js b/test/built-ins/BigInt/constructor-empty-string.js
index 73abca373..e8b2fb52b 100644
--- a/test/built-ins/BigInt/constructor-empty-string.js
+++ b/test/built-ins/BigInt/constructor-empty-string.js
@@ -14,4 +14,3 @@ features: [BigInt]
assert.sameValue(BigInt(""), 0n);
assert.sameValue(BigInt(" "), 0n);
-
diff --git a/test/built-ins/BigInt/constructor-from-binary-string.js b/test/built-ins/BigInt/constructor-from-binary-string.js
index 6e30de3bf..35cfda0ac 100644
--- a/test/built-ins/BigInt/constructor-from-binary-string.js
+++ b/test/built-ins/BigInt/constructor-from-binary-string.js
@@ -20,7 +20,7 @@ assert.sameValue(BigInt("0b1"), 1n);
let binaryString = "0b1";
for (let i = 0; i < 128; i++)
- binaryString += "0";
+ binaryString += "0";
assert.sameValue(BigInt(binaryString), 340282366920938463463374607431768211456n);
@@ -31,7 +31,6 @@ assert.sameValue(BigInt("0B1"), 1n);
binaryString = "0B1";
for (let i = 0; i < 128; i++)
- binaryString += "0";
+ binaryString += "0";
assert.sameValue(BigInt(binaryString), 340282366920938463463374607431768211456n);
-
diff --git a/test/built-ins/BigInt/constructor-from-decimal-string.js b/test/built-ins/BigInt/constructor-from-decimal-string.js
index 34ad01795..c732b7f7a 100644
--- a/test/built-ins/BigInt/constructor-from-decimal-string.js
+++ b/test/built-ins/BigInt/constructor-from-decimal-string.js
@@ -24,4 +24,3 @@ assert.sameValue(BigInt("-18446744073709551616"), -18446744073709551616n);
assert.sameValue(BigInt("-7"), -7n);
assert.sameValue(BigInt("-88"), -88n);
assert.sameValue(BigInt("-900"), -900n);
-
diff --git a/test/built-ins/BigInt/constructor-from-hex-string.js b/test/built-ins/BigInt/constructor-from-hex-string.js
index 4ae408ee2..f26b9d269 100644
--- a/test/built-ins/BigInt/constructor-from-hex-string.js
+++ b/test/built-ins/BigInt/constructor-from-hex-string.js
@@ -22,4 +22,3 @@ assert.sameValue(BigInt("0Xa"), 10n);
assert.sameValue(BigInt("0Xff"), 255n);
assert.sameValue(BigInt("0Xfabc"), 64188n);
assert.sameValue(BigInt("0Xfffffffffffffffffff"), 75557863725914323419135n);
-
diff --git a/test/built-ins/BigInt/constructor-from-octal-string.js b/test/built-ins/BigInt/constructor-from-octal-string.js
index aada81a52..59d18c64d 100644
--- a/test/built-ins/BigInt/constructor-from-octal-string.js
+++ b/test/built-ins/BigInt/constructor-from-octal-string.js
@@ -20,4 +20,3 @@ assert.sameValue(BigInt("0o20"), 16n);
assert.sameValue(BigInt("0O7"), 7n);
assert.sameValue(BigInt("0O10"), 8n);
assert.sameValue(BigInt("0O20"), 16n);
-
diff --git a/test/built-ins/BigInt/constructor-trailing-leading-spaces.js b/test/built-ins/BigInt/constructor-trailing-leading-spaces.js
index ccdad852b..8db1a76ea 100644
--- a/test/built-ins/BigInt/constructor-trailing-leading-spaces.js
+++ b/test/built-ins/BigInt/constructor-trailing-leading-spaces.js
@@ -18,4 +18,3 @@ assert.sameValue(BigInt("18446744073709551616 "), 18446744073709551616n);
assert.sameValue(BigInt(" 7 "), 7n);
assert.sameValue(BigInt(" -197 "), -197n);
assert.sameValue(BigInt(" "), 0n);
-
diff --git a/test/built-ins/BigInt/new-target-throws.js b/test/built-ins/BigInt/new-target-throws.js
index a240eecb7..aaf91b117 100644
--- a/test/built-ins/BigInt/new-target-throws.js
+++ b/test/built-ins/BigInt/new-target-throws.js
@@ -16,6 +16,8 @@ assert.throws(TypeError, function() {
assert.throws(TypeError, function() {
new BigInt({
- valueOf: function() { throw new Test262Error("unreachable"); }
+ valueOf: function() {
+ throw new Test262Error("unreachable");
+ }
});
});
diff --git a/test/built-ins/BigInt/prototype/Symbol.toStringTag.js b/test/built-ins/BigInt/prototype/Symbol.toStringTag.js
index 146369719..835e35224 100644
--- a/test/built-ins/BigInt/prototype/Symbol.toStringTag.js
+++ b/test/built-ins/BigInt/prototype/Symbol.toStringTag.js
@@ -21,8 +21,8 @@ verifyProperty(BigInt.prototype, Symbol.toStringTag, {
configurable: true
});
-assert.sameValue(Object.prototype.toString.call(3n), "[object BigInt]");
-assert.sameValue(Object.prototype.toString.call(Object(3n)), "[object BigInt]");
+assert.sameValue(Object.prototype.toString.call(3 n), "[object BigInt]");
+assert.sameValue(Object.prototype.toString.call(Object(3 n)), "[object BigInt]");
// Verify that Object.prototype.toString does not have special casing for BigInt
// as it does for most other primitive types
@@ -33,5 +33,5 @@ Object.defineProperty(BigInt.prototype, Symbol.toStringTag, {
configurable: true
});
-assert.sameValue(Object.prototype.toString.call(3n), "[object FooBar]");
-assert.sameValue(Object.prototype.toString.call(Object(3n)), "[object FooBar]");
+assert.sameValue(Object.prototype.toString.call(3 n), "[object FooBar]");
+assert.sameValue(Object.prototype.toString.call(Object(3 n)), "[object FooBar]");
diff --git a/test/built-ins/BigInt/prototype/toString/thisbigintvalue-not-valid-throws.js b/test/built-ins/BigInt/prototype/toString/thisbigintvalue-not-valid-throws.js
index 78ae9bd68..f67ca293c 100644
--- a/test/built-ins/BigInt/prototype/toString/thisbigintvalue-not-valid-throws.js
+++ b/test/built-ins/BigInt/prototype/toString/thisbigintvalue-not-valid-throws.js
@@ -22,17 +22,25 @@ features: [BigInt, Symbol.toPrimitive]
var toString = BigInt.prototype.toString;
assert.throws(TypeError, function() {
- toString.call({x: 1n});
+ toString.call({
+ x: 1 n
+ });
}, '{x: 1n}');
assert.throws(TypeError, function() {
- toString.call([1n]);
+ toString.call([1 n]);
}, '[1n]');
var obj = {
- valueOf: function() { throw new Test262Error('no [[BigIntData]]') },
- toString: function() { throw new Test262Error('no [[BigIntData]]') },
- [Symbol.toPrimitive]: function() { throw new Test262Error('no [[BigIntData]]') }
+ valueOf: function() {
+ throw new Test262Error('no [[BigIntData]]')
+ },
+ toString: function() {
+ throw new Test262Error('no [[BigIntData]]')
+ },
+ [Symbol.toPrimitive]: function() {
+ throw new Test262Error('no [[BigIntData]]')
+ }
};
assert.throws(TypeError, function() {
toString.call(obj);
diff --git a/test/built-ins/BigInt/prototype/valueOf/return.js b/test/built-ins/BigInt/prototype/valueOf/return.js
index de7336057..887b5f921 100644
--- a/test/built-ins/BigInt/prototype/valueOf/return.js
+++ b/test/built-ins/BigInt/prototype/valueOf/return.js
@@ -8,7 +8,7 @@ description: >
info: |
BigInt.prototype.valueOf ( )
- Return ? thisBigIntValue(this value).
+ Return ? thisBigIntValue(this value).
features: [BigInt]
---*/
diff --git a/test/built-ins/BigInt/value-of-throws.js b/test/built-ins/BigInt/value-of-throws.js
index 690b0fa94..671a9b94c 100644
--- a/test/built-ins/BigInt/value-of-throws.js
+++ b/test/built-ins/BigInt/value-of-throws.js
@@ -14,13 +14,16 @@ features: [BigInt]
assert.throws(Test262Error, function() {
BigInt({
- valueOf: function() { throw new Test262Error(); }
+ valueOf: function() {
+ throw new Test262Error();
+ }
});
});
assert.throws(Test262Error, function() {
BigInt({
- toString: function() { throw new Test262Error(); }
+ toString: function() {
+ throw new Test262Error();
+ }
});
});
-
diff --git a/test/built-ins/Boolean/S15.6.1.1_A1_T1.js b/test/built-ins/Boolean/S15.6.1.1_A1_T1.js
index 64461bc2e..c19b7eefe 100644
--- a/test/built-ins/Boolean/S15.6.1.1_A1_T1.js
+++ b/test/built-ins/Boolean/S15.6.1.1_A1_T1.js
@@ -13,21 +13,21 @@ description: >
---*/
//CHECK#1
-if( typeof Boolean() !== "boolean" ) {
- $ERROR('#1: typeof Boolean() should be "boolean", actual is "'+typeof Boolean()+'"');
+if (typeof Boolean() !== "boolean") {
+ $ERROR('#1: typeof Boolean() should be "boolean", actual is "' + typeof Boolean() + '"');
}
//CHECK#2
-if( typeof Boolean(1) !== "boolean" ) {
- $ERROR('#2: typeof Boolean(1) should be "boolean", actual is "'+typeof Boolean(1)+'"');
+if (typeof Boolean(1) !== "boolean") {
+ $ERROR('#2: typeof Boolean(1) should be "boolean", actual is "' + typeof Boolean(1) + '"');
}
//CHECK#3
-if( typeof Boolean(new String("1")) !== "boolean" ) {
- $ERROR('#3: typeof Boolean(new String("1")) should be "boolean", actual is "'+typeof Boolean(new String("1"))+'"');
+if (typeof Boolean(new String("1")) !== "boolean") {
+ $ERROR('#3: typeof Boolean(new String("1")) should be "boolean", actual is "' + typeof Boolean(new String("1")) + '"');
}
//CHECK#4
-if( typeof Boolean(new Object(1)) !== "boolean" ) {
- $ERROR('#4: typeof Boolean(new Object(1)) should be "boolean", actual is "'+typeof Boolean(new Object(1))+'"');
+if (typeof Boolean(new Object(1)) !== "boolean") {
+ $ERROR('#4: typeof Boolean(new Object(1)) should be "boolean", actual is "' + typeof Boolean(new Object(1)) + '"');
}
diff --git a/test/built-ins/Boolean/S15.6.1.1_A1_T2.js b/test/built-ins/Boolean/S15.6.1.1_A1_T2.js
index 375786f57..e9dc0bb55 100644
--- a/test/built-ins/Boolean/S15.6.1.1_A1_T2.js
+++ b/test/built-ins/Boolean/S15.6.1.1_A1_T2.js
@@ -11,33 +11,33 @@ description: Used various number values as argument
---*/
//CHECK#1
-if( typeof Boolean(0) !== "boolean" ) {
- $ERROR('#1.1: typeof Boolean(0) should be "boolean", actual is "'+typeof Boolean(0)+'"');
+if (typeof Boolean(0) !== "boolean") {
+ $ERROR('#1.1: typeof Boolean(0) should be "boolean", actual is "' + typeof Boolean(0) + '"');
}
-if( Boolean(0) !== false ) {
- $ERROR('#1.2: Boolean(0) should be false, actual is '+Boolean(0));
+if (Boolean(0) !== false) {
+ $ERROR('#1.2: Boolean(0) should be false, actual is ' + Boolean(0));
}
//CHECK#2
-if( typeof Boolean(-1) !== "boolean" ) {
- $ERROR('#2.1: typeof Boolean(-1) should be "boolean", actual is "'+typeof Boolean(-1)+'"');
+if (typeof Boolean(-1) !== "boolean") {
+ $ERROR('#2.1: typeof Boolean(-1) should be "boolean", actual is "' + typeof Boolean(-1) + '"');
}
-if( Boolean(-1) !== true ) {
- $ERROR('#2.2: Boolean(-1) should be true, actual is '+Boolean(-1));
+if (Boolean(-1) !== true) {
+ $ERROR('#2.2: Boolean(-1) should be true, actual is ' + Boolean(-1));
}
//CHECK#3
-if( typeof Boolean(-Infinity) !== "boolean" ) {
- $ERROR('#3.1: typeof Boolean(-Infinity) should be "boolean", actual is "'+typeof Boolean(-Infinity)+'"');
+if (typeof Boolean(-Infinity) !== "boolean") {
+ $ERROR('#3.1: typeof Boolean(-Infinity) should be "boolean", actual is "' + typeof Boolean(-Infinity) + '"');
}
-if( Boolean(-Infinity) !== true ) {
- $ERROR('#3.2: Boolean(-Infinity) should be true, actual is '+Boolean(-Infinity));
+if (Boolean(-Infinity) !== true) {
+ $ERROR('#3.2: Boolean(-Infinity) should be true, actual is ' + Boolean(-Infinity));
}
//CHECK#4
-if( typeof Boolean(NaN) !== "boolean" ) {
- $ERROR('#4.1: typeof Boolean(NaN) should be "boolean", actual is "'+typeof Boolean(NaN)+'"');
+if (typeof Boolean(NaN) !== "boolean") {
+ $ERROR('#4.1: typeof Boolean(NaN) should be "boolean", actual is "' + typeof Boolean(NaN) + '"');
}
-if( Boolean(NaN) !== false ) {
- $ERROR('#4.2: Boolean(NaN) should be false, actual is '+Boolean(NaN));
+if (Boolean(NaN) !== false) {
+ $ERROR('#4.2: Boolean(NaN) should be false, actual is ' + Boolean(NaN));
}
diff --git a/test/built-ins/Boolean/S15.6.1.1_A1_T3.js b/test/built-ins/Boolean/S15.6.1.1_A1_T3.js
index 56e663367..ab9b2a1b3 100644
--- a/test/built-ins/Boolean/S15.6.1.1_A1_T3.js
+++ b/test/built-ins/Boolean/S15.6.1.1_A1_T3.js
@@ -11,41 +11,41 @@ description: Used various string values as argument
---*/
//CHECK#1
-if( typeof Boolean("0") !== "boolean" ) {
- $ERROR('#1.1: typeof Boolean("0") should be "boolean", actual is "'+typeof Boolean("0")+'"');
+if (typeof Boolean("0") !== "boolean") {
+ $ERROR('#1.1: typeof Boolean("0") should be "boolean", actual is "' + typeof Boolean("0") + '"');
}
-if( Boolean("0") !== true ) {
+if (Boolean("0") !== true) {
$ERROR('#1.2: Boolean("0") should be true');
}
//CHECK#2
-if( typeof Boolean("-1") !== "boolean" ) {
- $ERROR('#2.1: typeof Boolean("-1") should be "boolean", actual is "'+typeof Boolean("-1")+'"');
+if (typeof Boolean("-1") !== "boolean") {
+ $ERROR('#2.1: typeof Boolean("-1") should be "boolean", actual is "' + typeof Boolean("-1") + '"');
}
-if( Boolean("-1") !== true ) {
+if (Boolean("-1") !== true) {
$ERROR('#2.2: Boolean("-1") should be true');
}
//CHECK#3
-if( typeof Boolean("1") !== "boolean" ) {
- $ERROR('#3.1: typeof Boolean("1") should be "boolean", actual is "'+typeof Boolean("1")+'"');
+if (typeof Boolean("1") !== "boolean") {
+ $ERROR('#3.1: typeof Boolean("1") should be "boolean", actual is "' + typeof Boolean("1") + '"');
}
-if( Boolean("1") !== true ) {
+if (Boolean("1") !== true) {
$ERROR('#3.2: Boolean("1") should be true');
}
//CHECK#4
-if( typeof Boolean("false") !== "boolean" ) {
- $ERROR('#4.1: typeof Boolean("false") should be "boolean", actual is "'+typeof Boolean("false")+'"');
+if (typeof Boolean("false") !== "boolean") {
+ $ERROR('#4.1: typeof Boolean("false") should be "boolean", actual is "' + typeof Boolean("false") + '"');
}
-if( Boolean("false") !== true ) {
+if (Boolean("false") !== true) {
$ERROR('#4.2: Boolean("false") should be true');
}
//CHECK#5
-if( typeof Boolean("true") !== "boolean" ) {
- $ERROR('#5.1: typeof Boolean("true") should be "boolean", actual is "'+typeof Boolean("true")+'"');
+if (typeof Boolean("true") !== "boolean") {
+ $ERROR('#5.1: typeof Boolean("true") should be "boolean", actual is "' + typeof Boolean("true") + '"');
}
-if( Boolean("true") !== true ) {
+if (Boolean("true") !== true) {
$ERROR('#5.2: Boolean("true") should be true');
}
diff --git a/test/built-ins/Boolean/S15.6.1.1_A1_T4.js b/test/built-ins/Boolean/S15.6.1.1_A1_T4.js
index dc85899bf..18a8bf587 100644
--- a/test/built-ins/Boolean/S15.6.1.1_A1_T4.js
+++ b/test/built-ins/Boolean/S15.6.1.1_A1_T4.js
@@ -11,42 +11,42 @@ description: Used various undefined values and null as argument
---*/
//CHECK#1
-if( typeof Boolean(undefined) !== "boolean" ) {
- $ERROR('#1.1: typeof Boolean(undefined) should be "boolean", actual is "'+typeof Boolean(undefined)+'"');
+if (typeof Boolean(undefined) !== "boolean") {
+ $ERROR('#1.1: typeof Boolean(undefined) should be "boolean", actual is "' + typeof Boolean(undefined) + '"');
}
-if( Boolean(undefined) !== false ) {
+if (Boolean(undefined) !== false) {
$ERROR('#1.2: Boolean(undefined) should be false');
}
//CHECK#2
-if( typeof Boolean(void 0) !== "boolean" ) {
- $ERROR('#2.1: typeof Boolean(void 0) should be "boolean", actual is "'+typeof Boolean(void 0)+'"');
+if (typeof Boolean(void 0) !== "boolean") {
+ $ERROR('#2.1: typeof Boolean(void 0) should be "boolean", actual is "' + typeof Boolean(void 0) + '"');
}
-if( Boolean(void 0) !== false ) {
+if (Boolean(void 0) !== false) {
$ERROR('#2.2: Boolean(void 0) should be false');
}
//CHECK#3
-if( typeof Boolean(function(){}()) !== "boolean" ) {
- $ERROR('#3.1: typeof Boolean(function(){}()) should be "boolean", actual is "'+typeof Boolean(function(){}())+'"');
+if (typeof Boolean(function() {}()) !== "boolean") {
+ $ERROR('#3.1: typeof Boolean(function(){}()) should be "boolean", actual is "' + typeof Boolean(function() {}()) + '"');
}
-if( Boolean(function(){}()) !== false ) {
+if (Boolean(function() {}()) !== false) {
$ERROR('#3.2: Boolean(function(){}()) should be false');
}
//CHECK#4
-if( typeof Boolean(null) !== "boolean" ) {
- $ERROR('#4.1: typeof Boolean(null) should be "boolean", actual is "'+typeof Boolean(null)+'"');
+if (typeof Boolean(null) !== "boolean") {
+ $ERROR('#4.1: typeof Boolean(null) should be "boolean", actual is "' + typeof Boolean(null) + '"');
}
-if( Boolean(null) !== false ) {
+if (Boolean(null) !== false) {
$ERROR('#4.2: Boolean(null) should be false');
}
//CHECK#5
-if( typeof Boolean(x) !== "boolean" ) {
- $ERROR('#5.1: var x; typeof Boolean(x) should be "boolean", actual is "'+typeof Boolean(x)+'"');
+if (typeof Boolean(x) !== "boolean") {
+ $ERROR('#5.1: var x; typeof Boolean(x) should be "boolean", actual is "' + typeof Boolean(x) + '"');
}
-if( Boolean(x) !== false ) {
+if (Boolean(x) !== false) {
$ERROR('#5.2: var x; Boolean(x) should be false');
}
var x;
diff --git a/test/built-ins/Boolean/S15.6.1.1_A1_T5.js b/test/built-ins/Boolean/S15.6.1.1_A1_T5.js
index cd1686531..f465fbb22 100644
--- a/test/built-ins/Boolean/S15.6.1.1_A1_T5.js
+++ b/test/built-ins/Boolean/S15.6.1.1_A1_T5.js
@@ -13,41 +13,41 @@ description: Used various assigning values to any variable as argument
var x;
//CHECK#1
-if( typeof Boolean(x=0) !== "boolean" ) {
- $ERROR('#1.1: typeof Boolean(x=0) should be "boolean", actual is "'+typeof Boolean(x=0)+'"');
+if (typeof Boolean(x = 0) !== "boolean") {
+ $ERROR('#1.1: typeof Boolean(x=0) should be "boolean", actual is "' + typeof Boolean(x = 0) + '"');
}
-if( Boolean(x=0) !== false ) {
+if (Boolean(x = 0) !== false) {
$ERROR('#1.2: Boolean(x=0) should be false');
}
//CHECK#2
-if( typeof Boolean(x=1) !== "boolean" ) {
- $ERROR('#2.1: typeof Boolean(x=1) should be "boolean", actual is "'+typeof Boolean(x=1)+'"');
+if (typeof Boolean(x = 1) !== "boolean") {
+ $ERROR('#2.1: typeof Boolean(x=1) should be "boolean", actual is "' + typeof Boolean(x = 1) + '"');
}
-if( Boolean(x=1) !== true ) {
+if (Boolean(x = 1) !== true) {
$ERROR('#2.2: Boolean(x=1) should be true');
}
//CHECK#3
-if( typeof Boolean(x=false) !== "boolean" ) {
- $ERROR('#3.1: typeof Boolean(x=false) should be "boolean", actual is "'+typeof Boolean(x=false)+'"');
+if (typeof Boolean(x = false) !== "boolean") {
+ $ERROR('#3.1: typeof Boolean(x=false) should be "boolean", actual is "' + typeof Boolean(x = false) + '"');
}
-if( Boolean(x=false) !== false ) {
+if (Boolean(x = false) !== false) {
$ERROR('#3.2: Boolean(x=false) should be false');
}
//CHECK#4
-if( typeof Boolean(x=true) !== "boolean" ) {
- $ERROR('#4.1: typeof Boolean(x=true) should be "boolean", actual is "'+typeof Boolean(x=true)+'"');
+if (typeof Boolean(x = true) !== "boolean") {
+ $ERROR('#4.1: typeof Boolean(x=true) should be "boolean", actual is "' + typeof Boolean(x = true) + '"');
}
-if( Boolean(x=true) !== true ) {
+if (Boolean(x = true) !== true) {
$ERROR('#4.2: Boolean(x=true) should be true');
}
//CHECK#5
-if( typeof Boolean(x=null) !== "boolean" ) {
- $ERROR('#5.1: typeof Boolean(x=null) should be "boolean", actual is "'+typeof Boolean(x=null)+'"');
+if (typeof Boolean(x = null) !== "boolean") {
+ $ERROR('#5.1: typeof Boolean(x=null) should be "boolean", actual is "' + typeof Boolean(x = null) + '"');
}
-if( Boolean(x=null) !== false ) {
+if (Boolean(x = null) !== false) {
$ERROR('#5.2: Boolean(x=null) should be false');
}
diff --git a/test/built-ins/Boolean/S15.6.1.1_A2.js b/test/built-ins/Boolean/S15.6.1.1_A2.js
index 9e5aa4061..6d91cb6d7 100644
--- a/test/built-ins/Boolean/S15.6.1.1_A2.js
+++ b/test/built-ins/Boolean/S15.6.1.1_A2.js
@@ -9,11 +9,11 @@ description: Call Boolean() and check result
---*/
//CHECK#1
-if( typeof Boolean() !== "boolean" ) {
- $ERROR('#1: typeof Boolean() should be "boolean", actual is "'+typeof Boolean()+'"');
+if (typeof Boolean() !== "boolean") {
+ $ERROR('#1: typeof Boolean() should be "boolean", actual is "' + typeof Boolean() + '"');
}
//CHECK#2
-if( Boolean() !== false ) {
+if (Boolean() !== false) {
$ERROR('#2: Boolean() should be false');
}
diff --git a/test/built-ins/Boolean/S15.6.2.1_A1.js b/test/built-ins/Boolean/S15.6.2.1_A1.js
index 787b6a1c7..fc5d516d5 100644
--- a/test/built-ins/Boolean/S15.6.2.1_A1.js
+++ b/test/built-ins/Boolean/S15.6.2.1_A1.js
@@ -22,13 +22,13 @@ if (new Boolean() === undefined) {
//CHECK#3
var x3 = new Boolean();
-if(typeof x3 !== "object"){
+if (typeof x3 !== "object") {
$ERROR("#3: typeof new Boolean() !== 'object'");
}
//CHECK#4
var x4 = new Boolean();
-if(x4 === undefined){
+if (x4 === undefined) {
$ERROR("#4: new Boolean() should not be undefined");
}
@@ -44,12 +44,12 @@ if (new Boolean(1) === undefined) {
//CHECK#7
var x7 = new Boolean(1);
-if(typeof x7 !== "object"){
+if (typeof x7 !== "object") {
$ERROR("#7: typeof new Boolean(1) !== 'object'");
}
//CHECK#8
var x8 = new Boolean(1);
-if(x8 === undefined){
+if (x8 === undefined) {
$ERROR("#8: new Boolean(1) should not be undefined");
}
diff --git a/test/built-ins/Boolean/S15.6.3_A1.js b/test/built-ins/Boolean/S15.6.3_A1.js
index 25168c58d..6d56be832 100644
--- a/test/built-ins/Boolean/S15.6.3_A1.js
+++ b/test/built-ins/Boolean/S15.6.3_A1.js
@@ -8,6 +8,6 @@ es5id: 15.6.3_A1
description: Checking existence of the property "prototype"
---*/
-if(!Boolean.hasOwnProperty("prototype")){
+if (!Boolean.hasOwnProperty("prototype")) {
$ERROR('#1: The Boolean constructor has the property "prototype"');
}
diff --git a/test/built-ins/Boolean/S15.6.3_A3.js b/test/built-ins/Boolean/S15.6.3_A3.js
index 097fff4fb..5937d38e5 100644
--- a/test/built-ins/Boolean/S15.6.3_A3.js
+++ b/test/built-ins/Boolean/S15.6.3_A3.js
@@ -9,7 +9,7 @@ description: Checking Boolean.length property
---*/
//CHECK#1
-if (!Boolean.hasOwnProperty("length")){
+if (!Boolean.hasOwnProperty("length")) {
$ERROR('#1: Boolean constructor has length property');
}
diff --git a/test/built-ins/Boolean/prototype/S15.6.3.1_A4.js b/test/built-ins/Boolean/prototype/S15.6.3.1_A4.js
index 980936ebe..7dc740ee1 100644
--- a/test/built-ins/Boolean/prototype/S15.6.3.1_A4.js
+++ b/test/built-ins/Boolean/prototype/S15.6.3.1_A4.js
@@ -9,8 +9,8 @@ description: Checking if enumerating the Boolean.prototype property fails
---*/
//CHECK#1
-for(x in Boolean) {
- if(x === "prototype") {
+for (x in Boolean) {
+ if (x === "prototype") {
$ERROR('#1: Boolean.prototype has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Boolean/prototype/constructor/S15.6.4.1_A1.js b/test/built-ins/Boolean/prototype/constructor/S15.6.4.1_A1.js
index 080daa3eb..218632c66 100644
--- a/test/built-ins/Boolean/prototype/constructor/S15.6.4.1_A1.js
+++ b/test/built-ins/Boolean/prototype/constructor/S15.6.4.1_A1.js
@@ -11,6 +11,6 @@ description: Compare Boolean.prototype.constructor with Boolean
---*/
//CHECK#1
-if(Boolean.prototype.constructor !== Boolean){
+if (Boolean.prototype.constructor !== Boolean) {
$ERROR('#1: Boolean.prototype.constructor === Boolean');
}
diff --git a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T1.js b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T1.js
index fa1b30538..cf32db61a 100644
--- a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T1.js
+++ b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T1.js
@@ -12,36 +12,36 @@ description: no arguments
---*/
//CHECK#1
-if(Boolean.prototype.toString() !== "false"){
+if (Boolean.prototype.toString() !== "false") {
$ERROR('#1: Boolean.prototype.toString() === "false"');
}
//CHECK#2
-if((new Boolean()).toString() !== "false"){
+if ((new Boolean()).toString() !== "false") {
$ERROR('#2: (new Boolean()).toString() === "false"');
}
//CHECK#3
-if((new Boolean(false)).toString() !== "false"){
+if ((new Boolean(false)).toString() !== "false") {
$ERROR('#3: (new Boolean(false)).toString() === "false"');
}
//CHECK#4
-if((new Boolean(true)).toString() !== "true"){
+if ((new Boolean(true)).toString() !== "true") {
$ERROR('#4: (new Boolean(true)).toString() === "true"');
}
//CHECK#5
-if((new Boolean(1)).toString() !== "true"){
+if ((new Boolean(1)).toString() !== "true") {
$ERROR('#5: (new Boolean(1)).toString() === "true"');
}
//CHECK#6
-if((new Boolean(0)).toString() !== "false"){
+if ((new Boolean(0)).toString() !== "false") {
$ERROR('#6: (new Boolean(0)).toString() === "false"');
}
//CHECK#7
-if((new Boolean(new Object())).toString() !== "true"){
+if ((new Boolean(new Object())).toString() !== "true") {
$ERROR('#7: (new Boolean(new Object())).toString() === "true"');
}
diff --git a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T2.js b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T2.js
index d949b83b6..399a3676c 100644
--- a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T2.js
+++ b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T2.js
@@ -12,36 +12,36 @@ description: with some argument
---*/
//CHECK#1
-if(Boolean.prototype.toString(true) !== "false"){
+if (Boolean.prototype.toString(true) !== "false") {
$ERROR('#1: Boolean.prototype.toString(true) === "false"');
}
//CHECK#2
-if((new Boolean()).toString(true) !== "false"){
+if ((new Boolean()).toString(true) !== "false") {
$ERROR('#2: (new Boolean()).toString(true) === "false"');
}
//CHECK#3
-if((new Boolean(false)).toString(true) !== "false"){
+if ((new Boolean(false)).toString(true) !== "false") {
$ERROR('#3: (new Boolean(false)).toString(true) === "false"');
}
//CHECK#4
-if((new Boolean(true)).toString(false) !== "true"){
+if ((new Boolean(true)).toString(false) !== "true") {
$ERROR('#4: (new Boolean(true)).toString(false) === "true"');
}
//CHECK#5
-if((new Boolean(1)).toString(false) !== "true"){
+if ((new Boolean(1)).toString(false) !== "true") {
$ERROR('#5: (new Boolean(1)).toString(false) === "true"');
}
//CHECK#6
-if((new Boolean(0)).toString(true) !== "false"){
+if ((new Boolean(0)).toString(true) !== "false") {
$ERROR('#6: (new Boolean(0)).toString(true) === "false"');
}
//CHECK#7
-if((new Boolean(new Object())).toString(false) !== "true"){
+if ((new Boolean(new Object())).toString(false) !== "true") {
$ERROR('#7: (new Boolean(new Object())).toString(false) === "true"');
}
diff --git a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T1.js b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T1.js
index 7331619e9..df5ad2fe8 100644
--- a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T1.js
+++ b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T1.js
@@ -12,27 +12,27 @@ description: transferring to the String objects
---*/
//CHECK#1
-try{
+try {
var s1 = new String();
s1.toString = Boolean.prototype.toString;
var v1 = s1.toString();
$ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e);
}
}
//CHECK#2
-try{
+try {
var s2 = new String();
s2.myToString = Boolean.prototype.toString;
var v2 = s2.myToString();
$ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e);
}
}
diff --git a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T2.js b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T2.js
index ae3cded49..8ada5d746 100644
--- a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T2.js
+++ b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T2.js
@@ -12,27 +12,27 @@ description: transferring to the Number objects
---*/
//CHECK#1
-try{
+try {
var s1 = new Number();
s1.toString = Boolean.prototype.toString;
var v1 = s1.toString();
$ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e);
}
}
//CHECK#1
-try{
+try {
var s2 = new Number();
s2.myToString = Boolean.prototype.toString;
var v2 = s2.myToString();
$ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e);
}
}
diff --git a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T3.js b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T3.js
index c13b361d1..f3df79be2 100644
--- a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T3.js
+++ b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T3.js
@@ -12,27 +12,27 @@ description: transferring to the Date objects
---*/
//CHECK#1
-try{
+try {
var s1 = new Date();
s1.toString = Boolean.prototype.toString;
var v1 = s1.toString();
$ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e);
}
}
//CHECK#1
-try{
+try {
var s2 = new Date();
s2.myToString = Boolean.prototype.toString;
var v2 = s2.myToString();
$ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e);
}
}
diff --git a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T4.js b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T4.js
index 382dc7cd2..277cf2646 100644
--- a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T4.js
+++ b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T4.js
@@ -12,27 +12,27 @@ description: transferring to the Object objects
---*/
//CHECK#1
-try{
+try {
var s1 = new Object();
s1.toString = Boolean.prototype.toString;
var v1 = s1.toString();
$ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e);
}
}
//CHECK#1
-try{
+try {
var s2 = new Object();
s2.myToString = Boolean.prototype.toString;
var v2 = s2.myToString();
$ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e);
}
}
diff --git a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T5.js b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T5.js
index a6dca911d..99776dd85 100644
--- a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T5.js
+++ b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T5.js
@@ -12,27 +12,31 @@ description: transferring to the other objects
---*/
//CHECK#1
-try{
- var s1 = {x: 1};
+try {
+ var s1 = {
+ x: 1
+ };
s1.toString = Boolean.prototype.toString;
var v1 = s1.toString();
$ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e);
}
}
//CHECK#1
-try{
- var s2 = {x: 1};
+try {
+ var s2 = {
+ x: 1
+ };
s2.myToString = Boolean.prototype.toString;
var v2 = s2.myToString();
$ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e);
}
}
diff --git a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T1.js b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T1.js
index 257721b86..743e1966c 100644
--- a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T1.js
+++ b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T1.js
@@ -9,31 +9,31 @@ description: no arguments
---*/
//CHECK#1
-if(Boolean.prototype.valueOf() !== false){
+if (Boolean.prototype.valueOf() !== false) {
$ERROR('#1: Boolean.prototype.valueOf() === false');
}
//CHECK#2
-if((new Boolean()).valueOf() !== false){
+if ((new Boolean()).valueOf() !== false) {
$ERROR('#2: (new Boolean()).valueOf() === false');
}
//CHECK#3
-if((new Boolean(0)).valueOf() !== false){
+if ((new Boolean(0)).valueOf() !== false) {
$ERROR('#3: (new Boolean(0)).valueOf() === false');
}
//CHECK#4
-if((new Boolean(-1)).valueOf() !== true){
+if ((new Boolean(-1)).valueOf() !== true) {
$ERROR('#4: (new Boolean(-1)).valueOf() === true');
}
//CHECK#5
-if((new Boolean(1)).valueOf() !== true){
+if ((new Boolean(1)).valueOf() !== true) {
$ERROR('#5: (new Boolean(1)).valueOf() === true');
}
//CHECK#6
-if((new Boolean(new Object())).valueOf() !== true){
+if ((new Boolean(new Object())).valueOf() !== true) {
$ERROR('#6: (new Boolean(new Object())).valueOf() === true');
}
diff --git a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T2.js b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T2.js
index 2cdc5fe69..095d0daaa 100644
--- a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T2.js
+++ b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T2.js
@@ -9,31 +9,31 @@ description: calling with argument
---*/
//CHECK#1
-if(Boolean.prototype.valueOf(true) !== false){
+if (Boolean.prototype.valueOf(true) !== false) {
$ERROR('#1: Boolean.prototype.valueOf(true) === false');
}
//CHECK#2
-if((new Boolean()).valueOf(true) !== false){
+if ((new Boolean()).valueOf(true) !== false) {
$ERROR('#2: (new Boolean()).valueOf(true) === false');
}
//CHECK#3
-if((new Boolean(0)).valueOf(true) !== false){
+if ((new Boolean(0)).valueOf(true) !== false) {
$ERROR('#3: (new Boolean(0)).valueOf(true) === false');
}
//CHECK#4
-if((new Boolean(-1)).valueOf(false) !== true){
+if ((new Boolean(-1)).valueOf(false) !== true) {
$ERROR('#4: (new Boolean(-1)).valueOf(false) === true');
}
//CHECK#5
-if((new Boolean(1)).valueOf(false) !== true){
+if ((new Boolean(1)).valueOf(false) !== true) {
$ERROR('#5: (new Boolean(1)).valueOf(false) === true');
}
//CHECK#6
-if((new Boolean(new Object())).valueOf(false) !== true){
+if ((new Boolean(new Object())).valueOf(false) !== true) {
$ERROR('#6: (new Boolean(new Object())).valueOf(false) === true');
}
diff --git a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T1.js b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T1.js
index f878faef2..0651f8cb3 100644
--- a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T1.js
+++ b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T1.js
@@ -12,27 +12,27 @@ description: transferring to the String objects
---*/
//CHECK#1
-try{
+try {
var s1 = new String();
s1.valueOf = Boolean.prototype.valueOf;
var v1 = s1.valueOf();
$ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e);
}
}
//CHECK#1
-try{
+try {
var s2 = new String();
s2.myValueOf = Boolean.prototype.valueOf;
var v2 = s2.myValueOf();
$ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e);
}
}
diff --git a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T2.js b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T2.js
index 3596de93b..6e2af85b2 100644
--- a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T2.js
+++ b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T2.js
@@ -12,27 +12,27 @@ description: transferring to the Number objects
---*/
//CHECK#1
-try{
+try {
var s1 = new Number();
s1.valueOf = Boolean.prototype.valueOf;
var v1 = s1.valueOf();
$ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e);
}
}
//CHECK#1
-try{
+try {
var s2 = new Number();
s2.myValueOf = Boolean.prototype.valueOf;
var v2 = s2.myValueOf();
$ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e);
}
}
diff --git a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T3.js b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T3.js
index 560843e41..f66950631 100644
--- a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T3.js
+++ b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T3.js
@@ -12,27 +12,27 @@ description: transferring to the Date objects
---*/
//CHECK#1
-try{
+try {
var s1 = new Date();
s1.valueOf = Boolean.prototype.valueOf;
var v1 = s1.valueOf();
$ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e);
}
}
//CHECK#1
-try{
+try {
var s2 = new Date();
s2.myValueOf = Boolean.prototype.valueOf;
var v2 = s2.myValueOf();
$ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e);
}
}
diff --git a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T4.js b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T4.js
index 93f19a68a..816ef97d7 100644
--- a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T4.js
+++ b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T4.js
@@ -12,27 +12,27 @@ description: transferring to the Object objects
---*/
//CHECK#1
-try{
+try {
var s1 = new Object();
s1.valueOf = Boolean.prototype.valueOf;
var v1 = s1.valueOf();
$ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e);
}
}
//CHECK#1
-try{
+try {
var s2 = new Object();
s2.myValueOf = Boolean.prototype.valueOf;
var v2 = s2.myValueOf();
$ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e);
}
}
diff --git a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T5.js b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T5.js
index 138ed48c2..3f645a0bf 100644
--- a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T5.js
+++ b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T5.js
@@ -12,27 +12,31 @@ description: transferring to the other objects
---*/
//CHECK#1
-try{
- var s1 = {x: 1};
+try {
+ var s1 = {
+ x: 1
+ };
s1.valueOf = Boolean.prototype.valueOf;
var v1 = s1.valueOf();
$ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e);
}
}
//CHECK#1
-try{
- var s2 = {x: 1};
+try {
+ var s2 = {
+ x: 1
+ };
s2.myValueOf = Boolean.prototype.valueOf;
var v2 = s2.myValueOf();
$ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e);
}
}
diff --git a/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-after-toindex-byteoffset.js b/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-after-toindex-byteoffset.js
index 163513c77..2e493d64e 100644
--- a/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-after-toindex-byteoffset.js
+++ b/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-after-toindex-byteoffset.js
@@ -30,7 +30,7 @@ var sample = new DataView(buffer, 0);
$DETACHBUFFER(buffer);
assert.throws(RangeError, () => sample.getBigInt64(Infinity),
- "DataView access at index Infinity should throw");
+ "DataView access at index Infinity should throw");
assert.throws(RangeError, () => sample.getBigInt64(-1),
- "DataView access at index -1 should throw");
+ "DataView access at index -1 should throw");
diff --git a/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-before-outofrange-byteoffset.js b/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-before-outofrange-byteoffset.js
index e2aae6435..b25d05470 100644
--- a/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-before-outofrange-byteoffset.js
+++ b/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-before-outofrange-byteoffset.js
@@ -32,4 +32,4 @@ sample = new DataView(buffer, 0);
$DETACHBUFFER(buffer);
assert.throws(TypeError, () => sample.getBigInt64(13),
- "detached DataView access should throw");
+ "detached DataView access should throw");
diff --git a/test/built-ins/DataView/prototype/getBigInt64/detached-buffer.js b/test/built-ins/DataView/prototype/getBigInt64/detached-buffer.js
index ed1b5a8c6..53fd563ae 100644
--- a/test/built-ins/DataView/prototype/getBigInt64/detached-buffer.js
+++ b/test/built-ins/DataView/prototype/getBigInt64/detached-buffer.js
@@ -27,4 +27,4 @@ var sample = new DataView(buffer, 0);
$DETACHBUFFER(buffer);
assert.throws(TypeError, () => sample.getBigInt64(0),
- "detached DataView access should throw");
+ "detached DataView access should throw");
diff --git a/test/built-ins/DataView/prototype/getBigInt64/index-is-out-of-range.js b/test/built-ins/DataView/prototype/getBigInt64/index-is-out-of-range.js
index 57e75e8e9..517265314 100644
--- a/test/built-ins/DataView/prototype/getBigInt64/index-is-out-of-range.js
+++ b/test/built-ins/DataView/prototype/getBigInt64/index-is-out-of-range.js
@@ -30,7 +30,7 @@ var buffer = new ArrayBuffer(12);
sample = new DataView(buffer, 0);
assert.throws(RangeError, () => sample.getBigInt64(Infinity),
- "DataView access at index Infinity should throw");
+ "DataView access at index Infinity should throw");
assert.throws(RangeError, () => sample.getBigInt64(13), "13 + 8 > 12");
@@ -52,24 +52,24 @@ assert.throws(RangeError, () => sample.getBigInt64(5), "5 + 8 > 12");
sample = new DataView(buffer, 8);
assert.throws(RangeError, () => sample.getBigInt64(1),
- "1 + 8 > 4 (offset)");
+ "1 + 8 > 4 (offset)");
sample = new DataView(buffer, 9);
assert.throws(RangeError, () => sample.getBigInt64(0),
- "0 + 8 > 3 (offset)");
+ "0 + 8 > 3 (offset)");
sample = new DataView(buffer, 0, 8);
assert.throws(RangeError, () => sample.getBigInt64(1),
- "1 + 8 > 8 (length)");
+ "1 + 8 > 8 (length)");
sample = new DataView(buffer, 0, 7);
assert.throws(RangeError, () => sample.getBigInt64(0),
- "0 + 8 > 7 (length)");
+ "0 + 8 > 7 (length)");
sample = new DataView(buffer, 4, 8);
assert.throws(RangeError, () => sample.getBigInt64(1),
- "1 + 8 > 8 (offset+length)");
+ "1 + 8 > 8 (offset+length)");
sample = new DataView(buffer, 4, 7);
assert.throws(RangeError, () => sample.getBigInt64(0),
- "0 + 8 > 7 (offset+length)");
+ "0 + 8 > 7 (offset+length)");
diff --git a/test/built-ins/DataView/prototype/getBigInt64/negative-byteoffset-throws.js b/test/built-ins/DataView/prototype/getBigInt64/negative-byteoffset-throws.js
index eb466a69d..2b17f822b 100644
--- a/test/built-ins/DataView/prototype/getBigInt64/negative-byteoffset-throws.js
+++ b/test/built-ins/DataView/prototype/getBigInt64/negative-byteoffset-throws.js
@@ -24,7 +24,7 @@ var buffer = new ArrayBuffer(12);
var sample = new DataView(buffer, 0);
assert.throws(RangeError, () => sample.getBigInt64(-1),
- "DataView access at index -1 should throw");
+ "DataView access at index -1 should throw");
assert.throws(RangeError, () => sample.getBigInt64(-Infinity),
- "DataView access at index -Infinity should throw");
+ "DataView access at index -Infinity should throw");
diff --git a/test/built-ins/DataView/prototype/getBigInt64/return-abrupt-from-tonumber-byteoffset.js b/test/built-ins/DataView/prototype/getBigInt64/return-abrupt-from-tonumber-byteoffset.js
index 51a723d82..6e71746c8 100644
--- a/test/built-ins/DataView/prototype/getBigInt64/return-abrupt-from-tonumber-byteoffset.js
+++ b/test/built-ins/DataView/prototype/getBigInt64/return-abrupt-from-tonumber-byteoffset.js
@@ -23,8 +23,16 @@ features: [DataView, ArrayBuffer, BigInt, arrow-function]
var buffer = new ArrayBuffer(1);
var sample = new DataView(buffer, 0);
-var bo1 = { valueOf() { throw new Test262Error(); } };
-var bo2 = { toString() { throw new Test262Error(); } };
+var bo1 = {
+ valueOf() {
+ throw new Test262Error();
+ }
+};
+var bo2 = {
+ toString() {
+ throw new Test262Error();
+ }
+};
assert.throws(Test262Error, () => sample.getBigInt64(bo1), "valueOf");
diff --git a/test/built-ins/DataView/prototype/getBigInt64/return-value-clean-arraybuffer.js b/test/built-ins/DataView/prototype/getBigInt64/return-value-clean-arraybuffer.js
index ceb131104..14e27dad6 100644
--- a/test/built-ins/DataView/prototype/getBigInt64/return-value-clean-arraybuffer.js
+++ b/test/built-ins/DataView/prototype/getBigInt64/return-value-clean-arraybuffer.js
@@ -36,13 +36,13 @@ features: [DataView, ArrayBuffer, BigInt]
var buffer = new ArrayBuffer(12);
var sample = new DataView(buffer, 0);
-assert.sameValue(sample.getBigInt64(0, true), 0n, "sample.getBigInt64(0, true)");
-assert.sameValue(sample.getBigInt64(1, true), 0n, "sample.getBigInt64(1, true)");
-assert.sameValue(sample.getBigInt64(2, true), 0n, "sample.getBigInt64(2, true)");
-assert.sameValue(sample.getBigInt64(3, true), 0n, "sample.getBigInt64(3, true)");
-assert.sameValue(sample.getBigInt64(4, true), 0n, "sample.getBigInt64(4, true)");
-assert.sameValue(sample.getBigInt64(0, false), 0n, "sample.getBigInt64(0, false)");
-assert.sameValue(sample.getBigInt64(1, false), 0n, "sample.getBigInt64(1, false)");
-assert.sameValue(sample.getBigInt64(2, false), 0n, "sample.getBigInt64(2, false)");
-assert.sameValue(sample.getBigInt64(3, false), 0n, "sample.getBigInt64(3, false)");
-assert.sameValue(sample.getBigInt64(4, false), 0n, "sample.getBigInt64(4, false)");
+assert.sameValue(sample.getBigInt64(0, true), 0 n, "sample.getBigInt64(0, true)");
+assert.sameValue(sample.getBigInt64(1, true), 0 n, "sample.getBigInt64(1, true)");
+assert.sameValue(sample.getBigInt64(2, true), 0 n, "sample.getBigInt64(2, true)");
+assert.sameValue(sample.getBigInt64(3, true), 0 n, "sample.getBigInt64(3, true)");
+assert.sameValue(sample.getBigInt64(4, true), 0 n, "sample.getBigInt64(4, true)");
+assert.sameValue(sample.getBigInt64(0, false), 0 n, "sample.getBigInt64(0, false)");
+assert.sameValue(sample.getBigInt64(1, false), 0 n, "sample.getBigInt64(1, false)");
+assert.sameValue(sample.getBigInt64(2, false), 0 n, "sample.getBigInt64(2, false)");
+assert.sameValue(sample.getBigInt64(3, false), 0 n, "sample.getBigInt64(3, false)");
+assert.sameValue(sample.getBigInt64(4, false), 0 n, "sample.getBigInt64(4, false)");
diff --git a/test/built-ins/DataView/prototype/getBigInt64/return-values-custom-offset.js b/test/built-ins/DataView/prototype/getBigInt64/return-values-custom-offset.js
index daa5790ae..d6fcf8f71 100644
--- a/test/built-ins/DataView/prototype/getBigInt64/return-values-custom-offset.js
+++ b/test/built-ins/DataView/prototype/getBigInt64/return-values-custom-offset.js
@@ -55,14 +55,14 @@ sample.setUint8(15, 0x80);
sample = new DataView(buffer, 4);
-assert.sameValue(sample.getBigInt64(0, false), -0x7fff7ffe80fffefen, "0, false");
-assert.sameValue(sample.getBigInt64(1, false), 0x80017f00010280n, "1, false");
-assert.sameValue(sample.getBigInt64(2, false), -0x7ffe80fffefd7f81n, "2, false");
-assert.sameValue(sample.getBigInt64(3, false), 0x17f000102807fffn, "3, false");
-assert.sameValue(sample.getBigInt64(4, false), 0x7f000102807fff80n, "4, false");
+assert.sameValue(sample.getBigInt64(0, false), -0x7fff7ffe80fffefe n, "0, false");
+assert.sameValue(sample.getBigInt64(1, false), 0x80017f00010280 n, "1, false");
+assert.sameValue(sample.getBigInt64(2, false), -0x7ffe80fffefd7f81 n, "2, false");
+assert.sameValue(sample.getBigInt64(3, false), 0x17f000102807fff n, "3, false");
+assert.sameValue(sample.getBigInt64(4, false), 0x7f000102807fff80 n, "4, false");
-assert.sameValue(sample.getBigInt64(0, true), 0x201007f01800080n, "0, true");
-assert.sameValue(sample.getBigInt64(1, true), -0x7ffdfeff80fe8000n, "1, true");
-assert.sameValue(sample.getBigInt64(2, true), 0x7f800201007f0180n, "2, true");
-assert.sameValue(sample.getBigInt64(3, true), -0x807ffdfeff80ffn, "3, true");
-assert.sameValue(sample.getBigInt64(4, true), -0x7f00807ffdfeff81n, "4, true");
+assert.sameValue(sample.getBigInt64(0, true), 0x201007f01800080 n, "0, true");
+assert.sameValue(sample.getBigInt64(1, true), -0x7ffdfeff80fe8000 n, "1, true");
+assert.sameValue(sample.getBigInt64(2, true), 0x7f800201007f0180 n, "2, true");
+assert.sameValue(sample.getBigInt64(3, true), -0x807ffdfeff80ff n, "3, true");
+assert.sameValue(sample.getBigInt64(4, true), -0x7f00807ffdfeff81 n, "4, true");
diff --git a/test/built-ins/DataView/prototype/getBigInt64/return-values.js b/test/built-ins/DataView/prototype/getBigInt64/return-values.js
index a9b6fdd83..66a7ee008 100644
--- a/test/built-ins/DataView/prototype/getBigInt64/return-values.js
+++ b/test/built-ins/DataView/prototype/getBigInt64/return-values.js
@@ -48,22 +48,22 @@ sample.setUint8(13, 0x7f);
sample.setUint8(14, 0xff);
sample.setUint8(15, 0x80);
-assert.sameValue(sample.getBigInt64(0, false), 0x2702060280008001n, "0, false");
-assert.sameValue(sample.getBigInt64(1, false), 0x20602800080017fn, "1, false");
-assert.sameValue(sample.getBigInt64(2, false), 0x602800080017f00n, "2, false");
-assert.sameValue(sample.getBigInt64(3, false), 0x2800080017f0001n, "3, false");
-assert.sameValue(sample.getBigInt64(4, false), -0x7fff7ffe80fffefen, "4, false");
-assert.sameValue(sample.getBigInt64(5, false), 0x80017f00010280n, "5, false");
-assert.sameValue(sample.getBigInt64(6, false), -0x7ffe80fffefd7f81n, "6, false");
-assert.sameValue(sample.getBigInt64(7, false), 0x17f000102807fffn, "7, false");
-assert.sameValue(sample.getBigInt64(8, false), 0x7f000102807fff80n, "8, false");
+assert.sameValue(sample.getBigInt64(0, false), 0x2702060280008001 n, "0, false");
+assert.sameValue(sample.getBigInt64(1, false), 0x20602800080017f n, "1, false");
+assert.sameValue(sample.getBigInt64(2, false), 0x602800080017f00 n, "2, false");
+assert.sameValue(sample.getBigInt64(3, false), 0x2800080017f0001 n, "3, false");
+assert.sameValue(sample.getBigInt64(4, false), -0x7fff7ffe80fffefe n, "4, false");
+assert.sameValue(sample.getBigInt64(5, false), 0x80017f00010280 n, "5, false");
+assert.sameValue(sample.getBigInt64(6, false), -0x7ffe80fffefd7f81 n, "6, false");
+assert.sameValue(sample.getBigInt64(7, false), 0x17f000102807fff n, "7, false");
+assert.sameValue(sample.getBigInt64(8, false), 0x7f000102807fff80 n, "8, false");
-assert.sameValue(sample.getBigInt64(0, true), 0x180008002060227n, "0, true");
-assert.sameValue(sample.getBigInt64(1, true), 0x7f01800080020602n, "1, true");
-assert.sameValue(sample.getBigInt64(2, true), 0x7f018000800206n, "2, true");
-assert.sameValue(sample.getBigInt64(3, true), 0x1007f0180008002n, "3, true");
-assert.sameValue(sample.getBigInt64(4, true), 0x201007f01800080n, "4, true");
-assert.sameValue(sample.getBigInt64(5, true), -0x7ffdfeff80fe8000n, "5, true");
-assert.sameValue(sample.getBigInt64(6, true), 0x7f800201007f0180n, "6, true");
-assert.sameValue(sample.getBigInt64(7, true), -0x807ffdfeff80ffn, "7, true");
-assert.sameValue(sample.getBigInt64(8, true), -0x7f00807ffdfeff81n, "8, true");
+assert.sameValue(sample.getBigInt64(0, true), 0x180008002060227 n, "0, true");
+assert.sameValue(sample.getBigInt64(1, true), 0x7f01800080020602 n, "1, true");
+assert.sameValue(sample.getBigInt64(2, true), 0x7f018000800206 n, "2, true");
+assert.sameValue(sample.getBigInt64(3, true), 0x1007f0180008002 n, "3, true");
+assert.sameValue(sample.getBigInt64(4, true), 0x201007f01800080 n, "4, true");
+assert.sameValue(sample.getBigInt64(5, true), -0x7ffdfeff80fe8000 n, "5, true");
+assert.sameValue(sample.getBigInt64(6, true), 0x7f800201007f0180 n, "6, true");
+assert.sameValue(sample.getBigInt64(7, true), -0x807ffdfeff80ff n, "7, true");
+assert.sameValue(sample.getBigInt64(8, true), -0x7f00807ffdfeff81 n, "8, true");
diff --git a/test/built-ins/DataView/prototype/getBigInt64/this-is-not-object.js b/test/built-ins/DataView/prototype/getBigInt64/this-is-not-object.js
index 1dad1108d..cf8682a05 100644
--- a/test/built-ins/DataView/prototype/getBigInt64/this-is-not-object.js
+++ b/test/built-ins/DataView/prototype/getBigInt64/this-is-not-object.js
@@ -21,7 +21,7 @@ features: [DataView, ArrayBuffer, Symbol, BigInt, arrow-function]
var getBigInt64 = DataView.prototype.getBigInt64;
assert.throws(TypeError, () => getBigInt64.call(undefined),
- "undefined");
+ "undefined");
assert.throws(TypeError, () => getBigInt64.call(null), "null");
diff --git a/test/built-ins/DataView/prototype/getBigInt64/to-boolean-littleendian.js b/test/built-ins/DataView/prototype/getBigInt64/to-boolean-littleendian.js
index 9ab87b5e1..d0be65d63 100644
--- a/test/built-ins/DataView/prototype/getBigInt64/to-boolean-littleendian.js
+++ b/test/built-ins/DataView/prototype/getBigInt64/to-boolean-littleendian.js
@@ -36,32 +36,32 @@ features: [ArrayBuffer, BigInt, DataView, DataView.prototype.setUint8, Symbol]
var buffer = new ArrayBuffer(8);
var sample = new DataView(buffer, 0);
sample.setUint8(7, 0xff);
-assert.sameValue(sample.getBigInt64(0), 0xffn, "no argument");
+assert.sameValue(sample.getBigInt64(0), 0xff n, "no argument");
-assert.sameValue(sample.getBigInt64(0, false), 0xffn);
-assert.sameValue(sample.getBigInt64(0, true), -0x100000000000000n);
-assert.sameValue(sample.getBigInt64(0, 0), 0xffn, "ToBoolean: 0 => false");
-assert.sameValue(sample.getBigInt64(0, -0), 0xffn, "ToBoolean: -0 => false");
-assert.sameValue(sample.getBigInt64(0, 1), -0x100000000000000n, "ToBoolean: Number != 0 => true");
-assert.sameValue(sample.getBigInt64(0, -1), -0x100000000000000n, "ToBoolean: Number != 0 => true");
-assert.sameValue(sample.getBigInt64(0, 0.1), -0x100000000000000n, "ToBoolean: Number != 0 => true");
-assert.sameValue(sample.getBigInt64(0, Infinity), -0x100000000000000n,
+assert.sameValue(sample.getBigInt64(0, false), 0xff n);
+assert.sameValue(sample.getBigInt64(0, true), -0x100000000000000 n);
+assert.sameValue(sample.getBigInt64(0, 0), 0xff n, "ToBoolean: 0 => false");
+assert.sameValue(sample.getBigInt64(0, -0), 0xff n, "ToBoolean: -0 => false");
+assert.sameValue(sample.getBigInt64(0, 1), -0x100000000000000 n, "ToBoolean: Number != 0 => true");
+assert.sameValue(sample.getBigInt64(0, -1), -0x100000000000000 n, "ToBoolean: Number != 0 => true");
+assert.sameValue(sample.getBigInt64(0, 0.1), -0x100000000000000 n, "ToBoolean: Number != 0 => true");
+assert.sameValue(sample.getBigInt64(0, Infinity), -0x100000000000000 n,
"ToBoolean: Number != 0 => true");
-assert.sameValue(sample.getBigInt64(0, NaN), 0xffn, "ToBoolean: NaN => false");
-assert.sameValue(sample.getBigInt64(0, undefined), 0xffn, "ToBoolean: undefined => false");
-assert.sameValue(sample.getBigInt64(0, null), 0xffn, "ToBoolean: null => false");
-assert.sameValue(sample.getBigInt64(0, ""), 0xffn, "ToBoolean: String .length == 0 => false");
-assert.sameValue(sample.getBigInt64(0, "string"), -0x100000000000000n,
+assert.sameValue(sample.getBigInt64(0, NaN), 0xff n, "ToBoolean: NaN => false");
+assert.sameValue(sample.getBigInt64(0, undefined), 0xff n, "ToBoolean: undefined => false");
+assert.sameValue(sample.getBigInt64(0, null), 0xff n, "ToBoolean: null => false");
+assert.sameValue(sample.getBigInt64(0, ""), 0xff n, "ToBoolean: String .length == 0 => false");
+assert.sameValue(sample.getBigInt64(0, "string"), -0x100000000000000 n,
"ToBoolean: String .length > 0 => true");
-assert.sameValue(sample.getBigInt64(0, "false"), -0x100000000000000n,
+assert.sameValue(sample.getBigInt64(0, "false"), -0x100000000000000 n,
"ToBoolean: String .length > 0 => true");
-assert.sameValue(sample.getBigInt64(0, " "), -0x100000000000000n,
+assert.sameValue(sample.getBigInt64(0, " "), -0x100000000000000 n,
"ToBoolean: String .length > 0 => true");
-assert.sameValue(sample.getBigInt64(0, Symbol("1")), -0x100000000000000n,
+assert.sameValue(sample.getBigInt64(0, Symbol("1")), -0x100000000000000 n,
"ToBoolean: Symbol => true");
-assert.sameValue(sample.getBigInt64(0, 0n), 0xffn, "ToBoolean: 0n => false");
-assert.sameValue(sample.getBigInt64(0, 1n), -0x100000000000000n, "ToBoolean: BigInt != 0n => true");
-assert.sameValue(sample.getBigInt64(0, []), -0x100000000000000n, "ToBoolean: any object => true");
-assert.sameValue(sample.getBigInt64(0, {}), -0x100000000000000n, "ToBoolean: any object => true");
-assert.sameValue(sample.getBigInt64(0, Object(false)), -0x100000000000000n,
+assert.sameValue(sample.getBigInt64(0, 0 n), 0xff n, "ToBoolean: 0n => false");
+assert.sameValue(sample.getBigInt64(0, 1 n), -0x100000000000000 n, "ToBoolean: BigInt != 0n => true");
+assert.sameValue(sample.getBigInt64(0, []), -0x100000000000000 n, "ToBoolean: any object => true");
+assert.sameValue(sample.getBigInt64(0, {}), -0x100000000000000 n, "ToBoolean: any object => true");
+assert.sameValue(sample.getBigInt64(0, Object(false)), -0x100000000000000 n,
"ToBoolean: any object => true; no ToPrimitive");
diff --git a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-errors.js b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-errors.js
index c96648cec..bfa9c9c99 100644
--- a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-errors.js
+++ b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-errors.js
@@ -52,29 +52,29 @@ assert.throws(RangeError, function() {
sample.getBigInt64(Infinity);
}, "ToIndex: throw when integerIndex > 2**53-1");
assert.throws(TypeError, function() {
- sample.getBigInt64(0n);
+ sample.getBigInt64(0 n);
}, "ToIndex: BigInt => TypeError");
assert.throws(TypeError, function() {
- sample.getBigInt64(Object(0n));
+ sample.getBigInt64(Object(0 n));
}, "ToIndex: unbox object with internal slot => BigInt => TypeError");
assert.throws(TypeError, function() {
sample.getBigInt64({
[Symbol.toPrimitive]: function() {
- return 0n;
+ return 0 n;
}
});
}, "ToIndex: @@toPrimitive => BigInt => TypeError");
assert.throws(TypeError, function() {
sample.getBigInt64({
valueOf: function() {
- return 0n;
+ return 0 n;
}
});
}, "ToIndex: valueOf => BigInt => TypeError");
assert.throws(TypeError, function() {
sample.getBigInt64({
toString: function() {
- return 0n;
+ return 0 n;
}
});
}, "ToIndex: toString => BigInt => TypeError");
diff --git a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-toprimitive.js b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-toprimitive.js
index f5476694a..9d345ac24 100644
--- a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-toprimitive.js
+++ b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-toprimitive.js
@@ -45,48 +45,48 @@ assert.sameValue(sample.getBigInt64({
},
valueOf: err,
toString: err
-}), 0x20602800080017fn, "ToPrimitive: @@toPrimitive takes precedence");
+}), 0x20602800080017f n, "ToPrimitive: @@toPrimitive takes precedence");
assert.sameValue(sample.getBigInt64({
valueOf: function() {
return 1;
},
toString: err
-}), 0x20602800080017fn, "ToPrimitive: valueOf takes precedence over toString");
+}), 0x20602800080017f n, "ToPrimitive: valueOf takes precedence over toString");
assert.sameValue(sample.getBigInt64({
toString: function() {
return 1;
}
-}), 0x20602800080017fn, "ToPrimitive: toString with no valueOf");
+}), 0x20602800080017f n, "ToPrimitive: toString with no valueOf");
assert.sameValue(sample.getBigInt64({
[Symbol.toPrimitive]: undefined,
valueOf: function() {
return 1;
}
-}), 0x20602800080017fn, "ToPrimitive: skip @@toPrimitive when it's undefined");
+}), 0x20602800080017f n, "ToPrimitive: skip @@toPrimitive when it's undefined");
assert.sameValue(sample.getBigInt64({
[Symbol.toPrimitive]: null,
valueOf: function() {
return 1;
}
-}), 0x20602800080017fn, "ToPrimitive: skip @@toPrimitive when it's null");
+}), 0x20602800080017f n, "ToPrimitive: skip @@toPrimitive when it's null");
assert.sameValue(sample.getBigInt64({
valueOf: null,
toString: function() {
return 1;
}
-}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable");
+}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(sample.getBigInt64({
valueOf: 1,
toString: function() {
return 1;
}
-}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable");
+}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(sample.getBigInt64({
valueOf: {},
toString: function() {
return 1;
}
-}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable");
+}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(sample.getBigInt64({
valueOf: function() {
return {};
@@ -94,7 +94,7 @@ assert.sameValue(sample.getBigInt64({
toString: function() {
return 1;
}
-}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it returns an object");
+}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it returns an object");
assert.sameValue(sample.getBigInt64({
valueOf: function() {
return Object(12345);
@@ -102,7 +102,7 @@ assert.sameValue(sample.getBigInt64({
toString: function() {
return 1;
}
-}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it returns an object");
+}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it returns an object");
assert.throws(TypeError, function() {
sample.getBigInt64({
[Symbol.toPrimitive]: 1
diff --git a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-wrapped-values.js b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-wrapped-values.js
index cddda9ee4..b0baccc94 100644
--- a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-wrapped-values.js
+++ b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-wrapped-values.js
@@ -33,101 +33,101 @@ sample.setUint8(9, 0x00);
sample.setUint8(10, 0x01);
sample.setUint8(11, 0x02);
-assert.sameValue(sample.getBigInt64(Object(0)), 0x2702060280008001n,
+assert.sameValue(sample.getBigInt64(Object(0)), 0x2702060280008001 n,
"ToPrimitive: unbox object with internal slot");
assert.sameValue(sample.getBigInt64({
[Symbol.toPrimitive]: function() {
return 0;
}
-}), 0x2702060280008001n, "ToPrimitive: @@toPrimitive");
+}), 0x2702060280008001 n, "ToPrimitive: @@toPrimitive");
assert.sameValue(sample.getBigInt64({
valueOf: function() {
return 0;
}
-}), 0x2702060280008001n, "ToPrimitive: valueOf");
+}), 0x2702060280008001 n, "ToPrimitive: valueOf");
assert.sameValue(sample.getBigInt64({
toString: function() {
return 0;
}
-}), 0x2702060280008001n, "ToPrimitive: toString");
-assert.sameValue(sample.getBigInt64(Object(NaN)), 0x2702060280008001n,
+}), 0x2702060280008001 n, "ToPrimitive: toString");
+assert.sameValue(sample.getBigInt64(Object(NaN)), 0x2702060280008001 n,
"ToIndex: unbox object with internal slot => NaN => 0");
assert.sameValue(sample.getBigInt64({
[Symbol.toPrimitive]: function() {
return NaN;
}
-}), 0x2702060280008001n, "ToIndex: @@toPrimitive => NaN => 0");
+}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => NaN => 0");
assert.sameValue(sample.getBigInt64({
valueOf: function() {
return NaN;
}
-}), 0x2702060280008001n, "ToIndex: valueOf => NaN => 0");
+}), 0x2702060280008001 n, "ToIndex: valueOf => NaN => 0");
assert.sameValue(sample.getBigInt64({
toString: function() {
return NaN;
}
-}), 0x2702060280008001n, "ToIndex: toString => NaN => 0");
+}), 0x2702060280008001 n, "ToIndex: toString => NaN => 0");
assert.sameValue(sample.getBigInt64({
[Symbol.toPrimitive]: function() {
return undefined;
}
-}), 0x2702060280008001n, "ToIndex: @@toPrimitive => undefined => NaN => 0");
+}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => undefined => NaN => 0");
assert.sameValue(sample.getBigInt64({
valueOf: function() {
return undefined;
}
-}), 0x2702060280008001n, "ToIndex: valueOf => undefined => NaN => 0");
+}), 0x2702060280008001 n, "ToIndex: valueOf => undefined => NaN => 0");
assert.sameValue(sample.getBigInt64({
toString: function() {
return undefined;
}
-}), 0x2702060280008001n, "ToIndex: toString => undefined => NaN => 0");
+}), 0x2702060280008001 n, "ToIndex: toString => undefined => NaN => 0");
assert.sameValue(sample.getBigInt64({
[Symbol.toPrimitive]: function() {
return null;
}
-}), 0x2702060280008001n, "ToIndex: @@toPrimitive => null => 0");
+}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => null => 0");
assert.sameValue(sample.getBigInt64({
valueOf: function() {
return null;
}
-}), 0x2702060280008001n, "ToIndex: valueOf => null => 0");
+}), 0x2702060280008001 n, "ToIndex: valueOf => null => 0");
assert.sameValue(sample.getBigInt64({
toString: function() {
return null;
}
-}), 0x2702060280008001n, "ToIndex: toString => null => 0");
-assert.sameValue(sample.getBigInt64(Object(true)), 0x20602800080017fn,
+}), 0x2702060280008001 n, "ToIndex: toString => null => 0");
+assert.sameValue(sample.getBigInt64(Object(true)), 0x20602800080017f n,
"ToIndex: unbox object with internal slot => true => 1");
assert.sameValue(sample.getBigInt64({
[Symbol.toPrimitive]: function() {
return true;
}
-}), 0x20602800080017fn, "ToIndex: @@toPrimitive => true => 1");
+}), 0x20602800080017f n, "ToIndex: @@toPrimitive => true => 1");
assert.sameValue(sample.getBigInt64({
valueOf: function() {
return true;
}
-}), 0x20602800080017fn, "ToIndex: valueOf => true => 1");
+}), 0x20602800080017f n, "ToIndex: valueOf => true => 1");
assert.sameValue(sample.getBigInt64({
toString: function() {
return true;
}
-}), 0x20602800080017fn, "ToIndex: toString => true => 1");
-assert.sameValue(sample.getBigInt64(Object("1")), 0x20602800080017fn,
+}), 0x20602800080017f n, "ToIndex: toString => true => 1");
+assert.sameValue(sample.getBigInt64(Object("1")), 0x20602800080017f n,
"ToIndex: unbox object with internal slot => parse Number");
assert.sameValue(sample.getBigInt64({
[Symbol.toPrimitive]: function() {
return "1";
}
-}), 0x20602800080017fn, "ToIndex: @@toPrimitive => parse Number");
+}), 0x20602800080017f n, "ToIndex: @@toPrimitive => parse Number");
assert.sameValue(sample.getBigInt64({
valueOf: function() {
return "1";
}
-}), 0x20602800080017fn, "ToIndex: valueOf => parse Number");
+}), 0x20602800080017f n, "ToIndex: valueOf => parse Number");
assert.sameValue(sample.getBigInt64({
toString: function() {
return "1";
}
-}), 0x20602800080017fn, "ToIndex: toString => parse Number");
+}), 0x20602800080017f n, "ToIndex: toString => parse Number");
diff --git a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset.js b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset.js
index 70a5cdba8..d9367fd3c 100644
--- a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset.js
+++ b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset.js
@@ -33,38 +33,38 @@ sample.setUint8(9, 0x00);
sample.setUint8(10, 0x01);
sample.setUint8(11, 0x02);
-assert.sameValue(sample.getBigInt64(0), 0x2702060280008001n);
-assert.sameValue(sample.getBigInt64(1), 0x20602800080017fn);
-assert.sameValue(sample.getBigInt64(-0.9), 0x2702060280008001n, "ToIndex: truncate towards 0");
-assert.sameValue(sample.getBigInt64(0.9), 0x2702060280008001n, "ToIndex: truncate towards 0");
-assert.sameValue(sample.getBigInt64(NaN), 0x2702060280008001n, "ToIndex: NaN => 0");
-assert.sameValue(sample.getBigInt64(undefined), 0x2702060280008001n,
+assert.sameValue(sample.getBigInt64(0), 0x2702060280008001 n);
+assert.sameValue(sample.getBigInt64(1), 0x20602800080017f n);
+assert.sameValue(sample.getBigInt64(-0.9), 0x2702060280008001 n, "ToIndex: truncate towards 0");
+assert.sameValue(sample.getBigInt64(0.9), 0x2702060280008001 n, "ToIndex: truncate towards 0");
+assert.sameValue(sample.getBigInt64(NaN), 0x2702060280008001 n, "ToIndex: NaN => 0");
+assert.sameValue(sample.getBigInt64(undefined), 0x2702060280008001 n,
"ToIndex: undefined => NaN => 0");
-assert.sameValue(sample.getBigInt64(null), 0x2702060280008001n, "ToIndex: null => 0");
-assert.sameValue(sample.getBigInt64(false), 0x2702060280008001n, "ToIndex: false => 0");
-assert.sameValue(sample.getBigInt64(true), 0x20602800080017fn, "ToIndex: true => 1");
-assert.sameValue(sample.getBigInt64("0"), 0x2702060280008001n, "ToIndex: parse Number");
-assert.sameValue(sample.getBigInt64("1"), 0x20602800080017fn, "ToIndex: parse Number");
-assert.sameValue(sample.getBigInt64(""), 0x2702060280008001n, "ToIndex: parse Number => NaN => 0");
-assert.sameValue(sample.getBigInt64("foo"), 0x2702060280008001n,
+assert.sameValue(sample.getBigInt64(null), 0x2702060280008001 n, "ToIndex: null => 0");
+assert.sameValue(sample.getBigInt64(false), 0x2702060280008001 n, "ToIndex: false => 0");
+assert.sameValue(sample.getBigInt64(true), 0x20602800080017f n, "ToIndex: true => 1");
+assert.sameValue(sample.getBigInt64("0"), 0x2702060280008001 n, "ToIndex: parse Number");
+assert.sameValue(sample.getBigInt64("1"), 0x20602800080017f n, "ToIndex: parse Number");
+assert.sameValue(sample.getBigInt64(""), 0x2702060280008001 n, "ToIndex: parse Number => NaN => 0");
+assert.sameValue(sample.getBigInt64("foo"), 0x2702060280008001 n,
"ToIndex: parse Number => NaN => 0");
-assert.sameValue(sample.getBigInt64("true"), 0x2702060280008001n,
+assert.sameValue(sample.getBigInt64("true"), 0x2702060280008001 n,
"ToIndex: parse Number => NaN => 0");
-assert.sameValue(sample.getBigInt64(2), 0x602800080017F00n);
-assert.sameValue(sample.getBigInt64("2"), 0x602800080017F00n, "toIndex: parse Number");
-assert.sameValue(sample.getBigInt64(2.9), 0x602800080017F00n, "toIndex: truncate towards 0");
-assert.sameValue(sample.getBigInt64("2.9"), 0x602800080017F00n,
+assert.sameValue(sample.getBigInt64(2), 0x602800080017F00 n);
+assert.sameValue(sample.getBigInt64("2"), 0x602800080017F00 n, "toIndex: parse Number");
+assert.sameValue(sample.getBigInt64(2.9), 0x602800080017F00 n, "toIndex: truncate towards 0");
+assert.sameValue(sample.getBigInt64("2.9"), 0x602800080017F00 n,
"toIndex: parse Number => truncate towards 0");
-assert.sameValue(sample.getBigInt64(3), 0x2800080017F0001n);
-assert.sameValue(sample.getBigInt64("3"), 0x2800080017F0001n, "toIndex: parse Number");
-assert.sameValue(sample.getBigInt64(3.9), 0x2800080017F0001n, "toIndex: truncate towards 0");
-assert.sameValue(sample.getBigInt64("3.9"), 0x2800080017F0001n,
+assert.sameValue(sample.getBigInt64(3), 0x2800080017F0001 n);
+assert.sameValue(sample.getBigInt64("3"), 0x2800080017F0001 n, "toIndex: parse Number");
+assert.sameValue(sample.getBigInt64(3.9), 0x2800080017F0001 n, "toIndex: truncate towards 0");
+assert.sameValue(sample.getBigInt64("3.9"), 0x2800080017F0001 n,
"toIndex: parse Number => truncate towards 0");
-assert.sameValue(sample.getBigInt64([0]), 0x2702060280008001n,
+assert.sameValue(sample.getBigInt64([0]), 0x2702060280008001 n,
'ToIndex: [0].toString() => "0" => 0');
-assert.sameValue(sample.getBigInt64(["1"]), 0x20602800080017fn,
+assert.sameValue(sample.getBigInt64(["1"]), 0x20602800080017f n,
'ToIndex: ["1"].toString() => "1" => 1');
-assert.sameValue(sample.getBigInt64({}), 0x2702060280008001n,
+assert.sameValue(sample.getBigInt64({}), 0x2702060280008001 n,
'ToIndex: ({}).toString() => "[object Object]" => NaN => 0');
-assert.sameValue(sample.getBigInt64([]), 0x2702060280008001n,
+assert.sameValue(sample.getBigInt64([]), 0x2702060280008001 n,
'ToIndex: [].toString() => "" => NaN => 0');
diff --git a/test/built-ins/DataView/prototype/getBigUint64/detached-buffer-after-toindex-byteoffset.js b/test/built-ins/DataView/prototype/getBigUint64/detached-buffer-after-toindex-byteoffset.js
index a96d8c9c5..894b55068 100644
--- a/test/built-ins/DataView/prototype/getBigUint64/detached-buffer-after-toindex-byteoffset.js
+++ b/test/built-ins/DataView/prototype/getBigUint64/detached-buffer-after-toindex-byteoffset.js
@@ -15,7 +15,7 @@ var sample = new DataView(buffer, 0);
$DETACHBUFFER(buffer);
assert.throws(RangeError, () => sample.getBigUint64(Infinity),
- "DataView access at index Infinity should throw");
+ "DataView access at index Infinity should throw");
assert.throws(RangeError, () => sample.getBigUint64(-1),
- "DataView access at index -1 should throw");
+ "DataView access at index -1 should throw");
diff --git a/test/built-ins/DataView/prototype/getBigUint64/detached-buffer-before-outofrange-byteoffset.js b/test/built-ins/DataView/prototype/getBigUint64/detached-buffer-before-outofrange-byteoffset.js
index 9b0fb3d27..4155c6d69 100644
--- a/test/built-ins/DataView/prototype/getBigUint64/detached-buffer-before-outofrange-byteoffset.js
+++ b/test/built-ins/DataView/prototype/getBigUint64/detached-buffer-before-outofrange-byteoffset.js
@@ -17,4 +17,4 @@ sample = new DataView(buffer, 0);
$DETACHBUFFER(buffer);
assert.throws(TypeError, () => sample.getBigUint64(13),
- "detached DataView access should throw");
+ "detached DataView access should throw");
diff --git a/test/built-ins/DataView/prototype/getBigUint64/detached-buffer.js b/test/built-ins/DataView/prototype/getBigUint64/detached-buffer.js
index b3fdb8b29..de42ea298 100644
--- a/test/built-ins/DataView/prototype/getBigUint64/detached-buffer.js
+++ b/test/built-ins/DataView/prototype/getBigUint64/detached-buffer.js
@@ -14,4 +14,4 @@ var sample = new DataView(buffer, 0);
$DETACHBUFFER(buffer);
assert.throws(TypeError, () => sample.getBigUint64(0),
- "detached DataView access should throw");
+ "detached DataView access should throw");
diff --git a/test/built-ins/DataView/prototype/getBigUint64/index-is-out-of-range.js b/test/built-ins/DataView/prototype/getBigUint64/index-is-out-of-range.js
index 88f38cb64..7f25d2e67 100644
--- a/test/built-ins/DataView/prototype/getBigUint64/index-is-out-of-range.js
+++ b/test/built-ins/DataView/prototype/getBigUint64/index-is-out-of-range.js
@@ -14,7 +14,7 @@ var buffer = new ArrayBuffer(12);
sample = new DataView(buffer, 0);
assert.throws(RangeError, () => sample.getBigUint64(Infinity),
- "DataView access at index Infinity should throw");
+ "DataView access at index Infinity should throw");
assert.throws(RangeError, () => sample.getBigUint64(13), "13 + 8 > 12");
@@ -36,24 +36,24 @@ assert.throws(RangeError, () => sample.getBigUint64(5), "5 + 8 > 12");
sample = new DataView(buffer, 8);
assert.throws(RangeError, () => sample.getBigUint64(1),
- "1 + 8 > 4 (offset)");
+ "1 + 8 > 4 (offset)");
sample = new DataView(buffer, 9);
assert.throws(RangeError, () => sample.getBigUint64(0),
- "0 + 8 > 3 (offset)");
+ "0 + 8 > 3 (offset)");
sample = new DataView(buffer, 0, 8);
assert.throws(RangeError, () => sample.getBigUint64(1),
- "1 + 8 > 8 (length)");
+ "1 + 8 > 8 (length)");
sample = new DataView(buffer, 0, 7);
assert.throws(RangeError, () => sample.getBigUint64(0),
- "0 + 8 > 7 (length)");
+ "0 + 8 > 7 (length)");
sample = new DataView(buffer, 4, 8);
assert.throws(RangeError, () => sample.getBigUint64(1),
- "1 + 8 > 8 (offset+length)");
+ "1 + 8 > 8 (offset+length)");
sample = new DataView(buffer, 4, 7);
assert.throws(RangeError, () => sample.getBigUint64(0),
- "0 + 8 > 7 (offset+length)");
+ "0 + 8 > 7 (offset+length)");
diff --git a/test/built-ins/DataView/prototype/getBigUint64/negative-byteoffset-throws.js b/test/built-ins/DataView/prototype/getBigUint64/negative-byteoffset-throws.js
index 3216d86c8..ea981f687 100644
--- a/test/built-ins/DataView/prototype/getBigUint64/negative-byteoffset-throws.js
+++ b/test/built-ins/DataView/prototype/getBigUint64/negative-byteoffset-throws.js
@@ -12,7 +12,7 @@ var buffer = new ArrayBuffer(12);
var sample = new DataView(buffer, 0);
assert.throws(RangeError, () => sample.getBigUint64(-1),
- "DataView access at index -1 should throw");
+ "DataView access at index -1 should throw");
assert.throws(RangeError, () => sample.getBigUint64(-Infinity),
- "DataView access at index -Infinity should throw");
+ "DataView access at index -Infinity should throw");
diff --git a/test/built-ins/DataView/prototype/getBigUint64/return-abrupt-from-tonumber-byteoffset.js b/test/built-ins/DataView/prototype/getBigUint64/return-abrupt-from-tonumber-byteoffset.js
index 4f7bb9596..5482c5d1b 100644
--- a/test/built-ins/DataView/prototype/getBigUint64/return-abrupt-from-tonumber-byteoffset.js
+++ b/test/built-ins/DataView/prototype/getBigUint64/return-abrupt-from-tonumber-byteoffset.js
@@ -11,8 +11,16 @@ features: [DataView, ArrayBuffer, BigInt, arrow-function]
var buffer = new ArrayBuffer(1);
var sample = new DataView(buffer, 0);
-var bo1 = { valueOf() { throw new Test262Error(); } };
-var bo2 = { toString() { throw new Test262Error(); } };
+var bo1 = {
+ valueOf() {
+ throw new Test262Error();
+ }
+};
+var bo2 = {
+ toString() {
+ throw new Test262Error();
+ }
+};
assert.throws(Test262Error, () => sample.getBigUint64(bo1), "valueOf");
diff --git a/test/built-ins/DataView/prototype/getBigUint64/return-value-clean-arraybuffer.js b/test/built-ins/DataView/prototype/getBigUint64/return-value-clean-arraybuffer.js
index 25ee7766d..37de5946e 100644
--- a/test/built-ins/DataView/prototype/getBigUint64/return-value-clean-arraybuffer.js
+++ b/test/built-ins/DataView/prototype/getBigUint64/return-value-clean-arraybuffer.js
@@ -11,13 +11,13 @@ features: [DataView, ArrayBuffer, BigInt]
var buffer = new ArrayBuffer(12);
var sample = new DataView(buffer, 0);
-assert.sameValue(sample.getBigUint64(0, true), 0n, "sample.getBigUint64(0, true)");
-assert.sameValue(sample.getBigUint64(1, true), 0n, "sample.getBigUint64(1, true)");
-assert.sameValue(sample.getBigUint64(2, true), 0n, "sample.getBigUint64(2, true)");
-assert.sameValue(sample.getBigUint64(3, true), 0n, "sample.getBigUint64(3, true)");
-assert.sameValue(sample.getBigUint64(4, true), 0n, "sample.getBigUint64(4, true)");
-assert.sameValue(sample.getBigUint64(0, false), 0n, "sample.getBigUint64(0, false)");
-assert.sameValue(sample.getBigUint64(1, false), 0n, "sample.getBigUint64(1, false)");
-assert.sameValue(sample.getBigUint64(2, false), 0n, "sample.getBigUint64(2, false)");
-assert.sameValue(sample.getBigUint64(3, false), 0n, "sample.getBigUint64(3, false)");
-assert.sameValue(sample.getBigUint64(4, false), 0n, "sample.getBigUint64(4, false)");
+assert.sameValue(sample.getBigUint64(0, true), 0 n, "sample.getBigUint64(0, true)");
+assert.sameValue(sample.getBigUint64(1, true), 0 n, "sample.getBigUint64(1, true)");
+assert.sameValue(sample.getBigUint64(2, true), 0 n, "sample.getBigUint64(2, true)");
+assert.sameValue(sample.getBigUint64(3, true), 0 n, "sample.getBigUint64(3, true)");
+assert.sameValue(sample.getBigUint64(4, true), 0 n, "sample.getBigUint64(4, true)");
+assert.sameValue(sample.getBigUint64(0, false), 0 n, "sample.getBigUint64(0, false)");
+assert.sameValue(sample.getBigUint64(1, false), 0 n, "sample.getBigUint64(1, false)");
+assert.sameValue(sample.getBigUint64(2, false), 0 n, "sample.getBigUint64(2, false)");
+assert.sameValue(sample.getBigUint64(3, false), 0 n, "sample.getBigUint64(3, false)");
+assert.sameValue(sample.getBigUint64(4, false), 0 n, "sample.getBigUint64(4, false)");
diff --git a/test/built-ins/DataView/prototype/getBigUint64/return-values-custom-offset.js b/test/built-ins/DataView/prototype/getBigUint64/return-values-custom-offset.js
index 074c8a279..26cb5349f 100644
--- a/test/built-ins/DataView/prototype/getBigUint64/return-values-custom-offset.js
+++ b/test/built-ins/DataView/prototype/getBigUint64/return-values-custom-offset.js
@@ -30,14 +30,14 @@ sample.setUint8(15, 0x80);
sample = new DataView(buffer, 4);
-assert.sameValue(sample.getBigUint64(0, false), 0x800080017f000102n, "0, false");
-assert.sameValue(sample.getBigUint64(1, false), 0x80017f00010280n, "1, false");
-assert.sameValue(sample.getBigUint64(2, false), 0x80017f000102807fn, "2, false");
-assert.sameValue(sample.getBigUint64(3, false), 0x17f000102807fffn, "3, false");
-assert.sameValue(sample.getBigUint64(4, false), 0x7f000102807fff80n, "4, false");
+assert.sameValue(sample.getBigUint64(0, false), 0x800080017f000102 n, "0, false");
+assert.sameValue(sample.getBigUint64(1, false), 0x80017f00010280 n, "1, false");
+assert.sameValue(sample.getBigUint64(2, false), 0x80017f000102807f n, "2, false");
+assert.sameValue(sample.getBigUint64(3, false), 0x17f000102807fff n, "3, false");
+assert.sameValue(sample.getBigUint64(4, false), 0x7f000102807fff80 n, "4, false");
-assert.sameValue(sample.getBigUint64(0, true), 0x201007f01800080n, "0, true");
-assert.sameValue(sample.getBigUint64(1, true), 0x800201007f018000n, "1, true");
-assert.sameValue(sample.getBigUint64(2, true), 0x7f800201007f0180n, "2, true");
-assert.sameValue(sample.getBigUint64(3, true), 0xff7f800201007f01n, "3, true");
-assert.sameValue(sample.getBigUint64(4, true), 0x80ff7f800201007fn, "4, true");
+assert.sameValue(sample.getBigUint64(0, true), 0x201007f01800080 n, "0, true");
+assert.sameValue(sample.getBigUint64(1, true), 0x800201007f018000 n, "1, true");
+assert.sameValue(sample.getBigUint64(2, true), 0x7f800201007f0180 n, "2, true");
+assert.sameValue(sample.getBigUint64(3, true), 0xff7f800201007f01 n, "3, true");
+assert.sameValue(sample.getBigUint64(4, true), 0x80ff7f800201007f n, "4, true");
diff --git a/test/built-ins/DataView/prototype/getBigUint64/return-values.js b/test/built-ins/DataView/prototype/getBigUint64/return-values.js
index 7b6b4250b..4ed45b127 100644
--- a/test/built-ins/DataView/prototype/getBigUint64/return-values.js
+++ b/test/built-ins/DataView/prototype/getBigUint64/return-values.js
@@ -28,22 +28,22 @@ sample.setUint8(13, 0x7f);
sample.setUint8(14, 0xff);
sample.setUint8(15, 0x80);
-assert.sameValue(sample.getBigUint64(0, false), 0x2702060280008001n, "0, false");
-assert.sameValue(sample.getBigUint64(1, false), 0x20602800080017fn, "1, false");
-assert.sameValue(sample.getBigUint64(2, false), 0x602800080017f00n, "2, false");
-assert.sameValue(sample.getBigUint64(3, false), 0x2800080017f0001n, "3, false");
-assert.sameValue(sample.getBigUint64(4, false), 0x800080017f000102n, "4, false");
-assert.sameValue(sample.getBigUint64(5, false), 0x80017f00010280n, "5, false");
-assert.sameValue(sample.getBigUint64(6, false), 0x80017f000102807fn, "6, false");
-assert.sameValue(sample.getBigUint64(7, false), 0x17f000102807fffn, "7, false");
-assert.sameValue(sample.getBigUint64(8, false), 0x7f000102807fff80n, "8, false");
+assert.sameValue(sample.getBigUint64(0, false), 0x2702060280008001 n, "0, false");
+assert.sameValue(sample.getBigUint64(1, false), 0x20602800080017f n, "1, false");
+assert.sameValue(sample.getBigUint64(2, false), 0x602800080017f00 n, "2, false");
+assert.sameValue(sample.getBigUint64(3, false), 0x2800080017f0001 n, "3, false");
+assert.sameValue(sample.getBigUint64(4, false), 0x800080017f000102 n, "4, false");
+assert.sameValue(sample.getBigUint64(5, false), 0x80017f00010280 n, "5, false");
+assert.sameValue(sample.getBigUint64(6, false), 0x80017f000102807f n, "6, false");
+assert.sameValue(sample.getBigUint64(7, false), 0x17f000102807fff n, "7, false");
+assert.sameValue(sample.getBigUint64(8, false), 0x7f000102807fff80 n, "8, false");
-assert.sameValue(sample.getBigUint64(0, true), 0x180008002060227n, "0, true");
-assert.sameValue(sample.getBigUint64(1, true), 0x7f01800080020602n, "1, true");
-assert.sameValue(sample.getBigUint64(2, true), 0x7f018000800206n, "2, true");
-assert.sameValue(sample.getBigUint64(3, true), 0x1007f0180008002n, "3, true");
-assert.sameValue(sample.getBigUint64(4, true), 0x201007f01800080n, "4, true");
-assert.sameValue(sample.getBigUint64(5, true), 0x800201007F018000n, "5, true");
-assert.sameValue(sample.getBigUint64(6, true), 0x7f800201007f0180n, "6, true");
-assert.sameValue(sample.getBigUint64(7, true), 0xff7f800201007f01n, "7, true");
-assert.sameValue(sample.getBigUint64(8, true), 0x80ff7f800201007fn, "8, true");
+assert.sameValue(sample.getBigUint64(0, true), 0x180008002060227 n, "0, true");
+assert.sameValue(sample.getBigUint64(1, true), 0x7f01800080020602 n, "1, true");
+assert.sameValue(sample.getBigUint64(2, true), 0x7f018000800206 n, "2, true");
+assert.sameValue(sample.getBigUint64(3, true), 0x1007f0180008002 n, "3, true");
+assert.sameValue(sample.getBigUint64(4, true), 0x201007f01800080 n, "4, true");
+assert.sameValue(sample.getBigUint64(5, true), 0x800201007F018000 n, "5, true");
+assert.sameValue(sample.getBigUint64(6, true), 0x7f800201007f0180 n, "6, true");
+assert.sameValue(sample.getBigUint64(7, true), 0xff7f800201007f01 n, "7, true");
+assert.sameValue(sample.getBigUint64(8, true), 0x80ff7f800201007f n, "8, true");
diff --git a/test/built-ins/DataView/prototype/getBigUint64/this-is-not-object.js b/test/built-ins/DataView/prototype/getBigUint64/this-is-not-object.js
index a60b3cca3..4c3d250c6 100644
--- a/test/built-ins/DataView/prototype/getBigUint64/this-is-not-object.js
+++ b/test/built-ins/DataView/prototype/getBigUint64/this-is-not-object.js
@@ -10,7 +10,7 @@ features: [DataView, ArrayBuffer, Symbol, BigInt, arrow-function]
var getBigUint64 = DataView.prototype.getBigUint64;
assert.throws(TypeError, () => getBigUint64.call(undefined),
- "undefined");
+ "undefined");
assert.throws(TypeError, () => getBigUint64.call(null), "null");
diff --git a/test/built-ins/DataView/prototype/getBigUint64/to-boolean-littleendian.js b/test/built-ins/DataView/prototype/getBigUint64/to-boolean-littleendian.js
index 4885dfe41..fd14414eb 100644
--- a/test/built-ins/DataView/prototype/getBigUint64/to-boolean-littleendian.js
+++ b/test/built-ins/DataView/prototype/getBigUint64/to-boolean-littleendian.js
@@ -9,32 +9,32 @@ features: [ArrayBuffer, BigInt, DataView, DataView.prototype.setUint8, Symbol]
var buffer = new ArrayBuffer(8);
var sample = new DataView(buffer, 0);
sample.setUint8(7, 0xff);
-assert.sameValue(sample.getBigUint64(0), 0xffn, "no argument");
+assert.sameValue(sample.getBigUint64(0), 0xff n, "no argument");
-assert.sameValue(sample.getBigUint64(0, false), 0xffn);
-assert.sameValue(sample.getBigUint64(0, true), 0xff00000000000000n);
-assert.sameValue(sample.getBigUint64(0, 0), 0xffn, "ToBoolean: 0 => false");
-assert.sameValue(sample.getBigUint64(0, -0), 0xffn, "ToBoolean: -0 => false");
-assert.sameValue(sample.getBigUint64(0, 1), 0xff00000000000000n, "ToBoolean: Number != 0 => true");
-assert.sameValue(sample.getBigUint64(0, -1), 0xff00000000000000n, "ToBoolean: Number != 0 => true");
-assert.sameValue(sample.getBigUint64(0, 0.1), 0xff00000000000000n, "ToBoolean: Number != 0 => true");
-assert.sameValue(sample.getBigUint64(0, Infinity), 0xff00000000000000n,
+assert.sameValue(sample.getBigUint64(0, false), 0xff n);
+assert.sameValue(sample.getBigUint64(0, true), 0xff00000000000000 n);
+assert.sameValue(sample.getBigUint64(0, 0), 0xff n, "ToBoolean: 0 => false");
+assert.sameValue(sample.getBigUint64(0, -0), 0xff n, "ToBoolean: -0 => false");
+assert.sameValue(sample.getBigUint64(0, 1), 0xff00000000000000 n, "ToBoolean: Number != 0 => true");
+assert.sameValue(sample.getBigUint64(0, -1), 0xff00000000000000 n, "ToBoolean: Number != 0 => true");
+assert.sameValue(sample.getBigUint64(0, 0.1), 0xff00000000000000 n, "ToBoolean: Number != 0 => true");
+assert.sameValue(sample.getBigUint64(0, Infinity), 0xff00000000000000 n,
"ToBoolean: Number != 0 => true");
-assert.sameValue(sample.getBigUint64(0, NaN), 0xffn, "ToBoolean: NaN => false");
-assert.sameValue(sample.getBigUint64(0, undefined), 0xffn, "ToBoolean: undefined => false");
-assert.sameValue(sample.getBigUint64(0, null), 0xffn, "ToBoolean: null => false");
-assert.sameValue(sample.getBigUint64(0, ""), 0xffn, "ToBoolean: String .length == 0 => false");
-assert.sameValue(sample.getBigUint64(0, "string"), 0xff00000000000000n,
+assert.sameValue(sample.getBigUint64(0, NaN), 0xff n, "ToBoolean: NaN => false");
+assert.sameValue(sample.getBigUint64(0, undefined), 0xff n, "ToBoolean: undefined => false");
+assert.sameValue(sample.getBigUint64(0, null), 0xff n, "ToBoolean: null => false");
+assert.sameValue(sample.getBigUint64(0, ""), 0xff n, "ToBoolean: String .length == 0 => false");
+assert.sameValue(sample.getBigUint64(0, "string"), 0xff00000000000000 n,
"ToBoolean: String .length > 0 => true");
-assert.sameValue(sample.getBigUint64(0, "false"), 0xff00000000000000n,
+assert.sameValue(sample.getBigUint64(0, "false"), 0xff00000000000000 n,
"ToBoolean: String .length > 0 => true");
-assert.sameValue(sample.getBigUint64(0, " "), 0xff00000000000000n,
+assert.sameValue(sample.getBigUint64(0, " "), 0xff00000000000000 n,
"ToBoolean: String .length > 0 => true");
-assert.sameValue(sample.getBigUint64(0, Symbol("1")), 0xff00000000000000n,
+assert.sameValue(sample.getBigUint64(0, Symbol("1")), 0xff00000000000000 n,
"ToBoolean: Symbol => true");
-assert.sameValue(sample.getBigUint64(0, 0n), 0xffn, "ToBoolean: 0n => false");
-assert.sameValue(sample.getBigUint64(0, 1n), 0xff00000000000000n, "ToBoolean: BigInt != 0n => true");
-assert.sameValue(sample.getBigUint64(0, []), 0xff00000000000000n, "ToBoolean: any object => true");
-assert.sameValue(sample.getBigUint64(0, {}), 0xff00000000000000n, "ToBoolean: any object => true");
-assert.sameValue(sample.getBigUint64(0, Object(false)), 0xff00000000000000n,
+assert.sameValue(sample.getBigUint64(0, 0 n), 0xff n, "ToBoolean: 0n => false");
+assert.sameValue(sample.getBigUint64(0, 1 n), 0xff00000000000000 n, "ToBoolean: BigInt != 0n => true");
+assert.sameValue(sample.getBigUint64(0, []), 0xff00000000000000 n, "ToBoolean: any object => true");
+assert.sameValue(sample.getBigUint64(0, {}), 0xff00000000000000 n, "ToBoolean: any object => true");
+assert.sameValue(sample.getBigUint64(0, Object(false)), 0xff00000000000000 n,
"ToBoolean: any object => true; no ToPrimitive");
diff --git a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-errors.js b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-errors.js
index c11af740c..2dcbcacfc 100644
--- a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-errors.js
+++ b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-errors.js
@@ -40,29 +40,29 @@ assert.throws(RangeError, function() {
sample.getBigUint64(Infinity);
}, "ToIndex: throw when integerIndex > 2**53-1");
assert.throws(TypeError, function() {
- sample.getBigUint64(0n);
+ sample.getBigUint64(0 n);
}, "ToIndex: BigInt => TypeError");
assert.throws(TypeError, function() {
- sample.getBigUint64(Object(0n));
+ sample.getBigUint64(Object(0 n));
}, "ToIndex: unbox object with internal slot => BigInt => TypeError");
assert.throws(TypeError, function() {
sample.getBigUint64({
[Symbol.toPrimitive]: function() {
- return 0n;
+ return 0 n;
}
});
}, "ToIndex: @@toPrimitive => BigInt => TypeError");
assert.throws(TypeError, function() {
sample.getBigUint64({
valueOf: function() {
- return 0n;
+ return 0 n;
}
});
}, "ToIndex: valueOf => BigInt => TypeError");
assert.throws(TypeError, function() {
sample.getBigUint64({
toString: function() {
- return 0n;
+ return 0 n;
}
});
}, "ToIndex: toString => BigInt => TypeError");
diff --git a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-toprimitive.js b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-toprimitive.js
index 243e23015..33d9f8307 100644
--- a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-toprimitive.js
+++ b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-toprimitive.js
@@ -33,48 +33,48 @@ assert.sameValue(sample.getBigUint64({
},
valueOf: err,
toString: err
-}), 0x20602800080017fn, "ToPrimitive: @@toPrimitive takes precedence");
+}), 0x20602800080017f n, "ToPrimitive: @@toPrimitive takes precedence");
assert.sameValue(sample.getBigUint64({
valueOf: function() {
return 1;
},
toString: err
-}), 0x20602800080017fn, "ToPrimitive: valueOf takes precedence over toString");
+}), 0x20602800080017f n, "ToPrimitive: valueOf takes precedence over toString");
assert.sameValue(sample.getBigUint64({
toString: function() {
return 1;
}
-}), 0x20602800080017fn, "ToPrimitive: toString with no valueOf");
+}), 0x20602800080017f n, "ToPrimitive: toString with no valueOf");
assert.sameValue(sample.getBigUint64({
[Symbol.toPrimitive]: undefined,
valueOf: function() {
return 1;
}
-}), 0x20602800080017fn, "ToPrimitive: skip @@toPrimitive when it's undefined");
+}), 0x20602800080017f n, "ToPrimitive: skip @@toPrimitive when it's undefined");
assert.sameValue(sample.getBigUint64({
[Symbol.toPrimitive]: null,
valueOf: function() {
return 1;
}
-}), 0x20602800080017fn, "ToPrimitive: skip @@toPrimitive when it's null");
+}), 0x20602800080017f n, "ToPrimitive: skip @@toPrimitive when it's null");
assert.sameValue(sample.getBigUint64({
valueOf: null,
toString: function() {
return 1;
}
-}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable");
+}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(sample.getBigUint64({
valueOf: 1,
toString: function() {
return 1;
}
-}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable");
+}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(sample.getBigUint64({
valueOf: {},
toString: function() {
return 1;
}
-}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable");
+}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(sample.getBigUint64({
valueOf: function() {
return {};
@@ -82,7 +82,7 @@ assert.sameValue(sample.getBigUint64({
toString: function() {
return 1;
}
-}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it returns an object");
+}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it returns an object");
assert.sameValue(sample.getBigUint64({
valueOf: function() {
return Object(12345);
@@ -90,7 +90,7 @@ assert.sameValue(sample.getBigUint64({
toString: function() {
return 1;
}
-}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it returns an object");
+}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it returns an object");
assert.throws(TypeError, function() {
sample.getBigUint64({
[Symbol.toPrimitive]: 1
diff --git a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-wrapped-values.js b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-wrapped-values.js
index 8803f393c..c59cdba2c 100644
--- a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-wrapped-values.js
+++ b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-wrapped-values.js
@@ -21,101 +21,101 @@ sample.setUint8(9, 0x00);
sample.setUint8(10, 0x01);
sample.setUint8(11, 0x02);
-assert.sameValue(sample.getBigUint64(Object(0)), 0x2702060280008001n,
+assert.sameValue(sample.getBigUint64(Object(0)), 0x2702060280008001 n,
"ToPrimitive: unbox object with internal slot");
assert.sameValue(sample.getBigUint64({
[Symbol.toPrimitive]: function() {
return 0;
}
-}), 0x2702060280008001n, "ToPrimitive: @@toPrimitive");
+}), 0x2702060280008001 n, "ToPrimitive: @@toPrimitive");
assert.sameValue(sample.getBigUint64({
valueOf: function() {
return 0;
}
-}), 0x2702060280008001n, "ToPrimitive: valueOf");
+}), 0x2702060280008001 n, "ToPrimitive: valueOf");
assert.sameValue(sample.getBigUint64({
toString: function() {
return 0;
}
-}), 0x2702060280008001n, "ToPrimitive: toString");
-assert.sameValue(sample.getBigUint64(Object(NaN)), 0x2702060280008001n,
+}), 0x2702060280008001 n, "ToPrimitive: toString");
+assert.sameValue(sample.getBigUint64(Object(NaN)), 0x2702060280008001 n,
"ToIndex: unbox object with internal slot => NaN => 0");
assert.sameValue(sample.getBigUint64({
[Symbol.toPrimitive]: function() {
return NaN;
}
-}), 0x2702060280008001n, "ToIndex: @@toPrimitive => NaN => 0");
+}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => NaN => 0");
assert.sameValue(sample.getBigUint64({
valueOf: function() {
return NaN;
}
-}), 0x2702060280008001n, "ToIndex: valueOf => NaN => 0");
+}), 0x2702060280008001 n, "ToIndex: valueOf => NaN => 0");
assert.sameValue(sample.getBigUint64({
toString: function() {
return NaN;
}
-}), 0x2702060280008001n, "ToIndex: toString => NaN => 0");
+}), 0x2702060280008001 n, "ToIndex: toString => NaN => 0");
assert.sameValue(sample.getBigUint64({
[Symbol.toPrimitive]: function() {
return undefined;
}
-}), 0x2702060280008001n, "ToIndex: @@toPrimitive => undefined => NaN => 0");
+}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => undefined => NaN => 0");
assert.sameValue(sample.getBigUint64({
valueOf: function() {
return undefined;
}
-}), 0x2702060280008001n, "ToIndex: valueOf => undefined => NaN => 0");
+}), 0x2702060280008001 n, "ToIndex: valueOf => undefined => NaN => 0");
assert.sameValue(sample.getBigUint64({
toString: function() {
return undefined;
}
-}), 0x2702060280008001n, "ToIndex: toString => undefined => NaN => 0");
+}), 0x2702060280008001 n, "ToIndex: toString => undefined => NaN => 0");
assert.sameValue(sample.getBigUint64({
[Symbol.toPrimitive]: function() {
return null;
}
-}), 0x2702060280008001n, "ToIndex: @@toPrimitive => null => 0");
+}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => null => 0");
assert.sameValue(sample.getBigUint64({
valueOf: function() {
return null;
}
-}), 0x2702060280008001n, "ToIndex: valueOf => null => 0");
+}), 0x2702060280008001 n, "ToIndex: valueOf => null => 0");
assert.sameValue(sample.getBigUint64({
toString: function() {
return null;
}
-}), 0x2702060280008001n, "ToIndex: toString => null => 0");
-assert.sameValue(sample.getBigUint64(Object(true)), 0x20602800080017fn,
+}), 0x2702060280008001 n, "ToIndex: toString => null => 0");
+assert.sameValue(sample.getBigUint64(Object(true)), 0x20602800080017f n,
"ToIndex: unbox object with internal slot => true => 1");
assert.sameValue(sample.getBigUint64({
[Symbol.toPrimitive]: function() {
return true;
}
-}), 0x20602800080017fn, "ToIndex: @@toPrimitive => true => 1");
+}), 0x20602800080017f n, "ToIndex: @@toPrimitive => true => 1");
assert.sameValue(sample.getBigUint64({
valueOf: function() {
return true;
}
-}), 0x20602800080017fn, "ToIndex: valueOf => true => 1");
+}), 0x20602800080017f n, "ToIndex: valueOf => true => 1");
assert.sameValue(sample.getBigUint64({
toString: function() {
return true;
}
-}), 0x20602800080017fn, "ToIndex: toString => true => 1");
-assert.sameValue(sample.getBigUint64(Object("1")), 0x20602800080017fn,
+}), 0x20602800080017f n, "ToIndex: toString => true => 1");
+assert.sameValue(sample.getBigUint64(Object("1")), 0x20602800080017f n,
"ToIndex: unbox object with internal slot => parse Number");
assert.sameValue(sample.getBigUint64({
[Symbol.toPrimitive]: function() {
return "1";
}
-}), 0x20602800080017fn, "ToIndex: @@toPrimitive => parse Number");
+}), 0x20602800080017f n, "ToIndex: @@toPrimitive => parse Number");
assert.sameValue(sample.getBigUint64({
valueOf: function() {
return "1";
}
-}), 0x20602800080017fn, "ToIndex: valueOf => parse Number");
+}), 0x20602800080017f n, "ToIndex: valueOf => parse Number");
assert.sameValue(sample.getBigUint64({
toString: function() {
return "1";
}
-}), 0x20602800080017fn, "ToIndex: toString => parse Number");
+}), 0x20602800080017f n, "ToIndex: toString => parse Number");
diff --git a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset.js b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset.js
index fbc74dd2f..e43ab67de 100644
--- a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset.js
+++ b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset.js
@@ -21,38 +21,38 @@ sample.setUint8(9, 0x00);
sample.setUint8(10, 0x01);
sample.setUint8(11, 0x02);
-assert.sameValue(sample.getBigUint64(0), 0x2702060280008001n);
-assert.sameValue(sample.getBigUint64(1), 0x20602800080017fn);
-assert.sameValue(sample.getBigUint64(-0.9), 0x2702060280008001n, "ToIndex: truncate towards 0");
-assert.sameValue(sample.getBigUint64(0.9), 0x2702060280008001n, "ToIndex: truncate towards 0");
-assert.sameValue(sample.getBigUint64(NaN), 0x2702060280008001n, "ToIndex: NaN => 0");
-assert.sameValue(sample.getBigUint64(undefined), 0x2702060280008001n,
+assert.sameValue(sample.getBigUint64(0), 0x2702060280008001 n);
+assert.sameValue(sample.getBigUint64(1), 0x20602800080017f n);
+assert.sameValue(sample.getBigUint64(-0.9), 0x2702060280008001 n, "ToIndex: truncate towards 0");
+assert.sameValue(sample.getBigUint64(0.9), 0x2702060280008001 n, "ToIndex: truncate towards 0");
+assert.sameValue(sample.getBigUint64(NaN), 0x2702060280008001 n, "ToIndex: NaN => 0");
+assert.sameValue(sample.getBigUint64(undefined), 0x2702060280008001 n,
"ToIndex: undefined => NaN => 0");
-assert.sameValue(sample.getBigUint64(null), 0x2702060280008001n, "ToIndex: null => 0");
-assert.sameValue(sample.getBigUint64(false), 0x2702060280008001n, "ToIndex: false => 0");
-assert.sameValue(sample.getBigUint64(true), 0x20602800080017fn, "ToIndex: true => 1");
-assert.sameValue(sample.getBigUint64("0"), 0x2702060280008001n, "ToIndex: parse Number");
-assert.sameValue(sample.getBigUint64("1"), 0x20602800080017fn, "ToIndex: parse Number");
-assert.sameValue(sample.getBigUint64(""), 0x2702060280008001n, "ToIndex: parse Number => NaN => 0");
-assert.sameValue(sample.getBigUint64("foo"), 0x2702060280008001n,
+assert.sameValue(sample.getBigUint64(null), 0x2702060280008001 n, "ToIndex: null => 0");
+assert.sameValue(sample.getBigUint64(false), 0x2702060280008001 n, "ToIndex: false => 0");
+assert.sameValue(sample.getBigUint64(true), 0x20602800080017f n, "ToIndex: true => 1");
+assert.sameValue(sample.getBigUint64("0"), 0x2702060280008001 n, "ToIndex: parse Number");
+assert.sameValue(sample.getBigUint64("1"), 0x20602800080017f n, "ToIndex: parse Number");
+assert.sameValue(sample.getBigUint64(""), 0x2702060280008001 n, "ToIndex: parse Number => NaN => 0");
+assert.sameValue(sample.getBigUint64("foo"), 0x2702060280008001 n,
"ToIndex: parse Number => NaN => 0");
-assert.sameValue(sample.getBigUint64("true"), 0x2702060280008001n,
+assert.sameValue(sample.getBigUint64("true"), 0x2702060280008001 n,
"ToIndex: parse Number => NaN => 0");
-assert.sameValue(sample.getBigUint64(2), 0x602800080017F00n);
-assert.sameValue(sample.getBigUint64("2"), 0x602800080017F00n, "toIndex: parse Number");
-assert.sameValue(sample.getBigUint64(2.9), 0x602800080017F00n, "toIndex: truncate towards 0");
-assert.sameValue(sample.getBigUint64("2.9"), 0x602800080017F00n,
+assert.sameValue(sample.getBigUint64(2), 0x602800080017F00 n);
+assert.sameValue(sample.getBigUint64("2"), 0x602800080017F00 n, "toIndex: parse Number");
+assert.sameValue(sample.getBigUint64(2.9), 0x602800080017F00 n, "toIndex: truncate towards 0");
+assert.sameValue(sample.getBigUint64("2.9"), 0x602800080017F00 n,
"toIndex: parse Number => truncate towards 0");
-assert.sameValue(sample.getBigUint64(3), 0x2800080017F0001n);
-assert.sameValue(sample.getBigUint64("3"), 0x2800080017F0001n, "toIndex: parse Number");
-assert.sameValue(sample.getBigUint64(3.9), 0x2800080017F0001n, "toIndex: truncate towards 0");
-assert.sameValue(sample.getBigUint64("3.9"), 0x2800080017F0001n,
+assert.sameValue(sample.getBigUint64(3), 0x2800080017F0001 n);
+assert.sameValue(sample.getBigUint64("3"), 0x2800080017F0001 n, "toIndex: parse Number");
+assert.sameValue(sample.getBigUint64(3.9), 0x2800080017F0001 n, "toIndex: truncate towards 0");
+assert.sameValue(sample.getBigUint64("3.9"), 0x2800080017F0001 n,
"toIndex: parse Number => truncate towards 0");
-assert.sameValue(sample.getBigUint64([0]), 0x2702060280008001n,
+assert.sameValue(sample.getBigUint64([0]), 0x2702060280008001 n,
'ToIndex: [0].toString() => "0" => 0');
-assert.sameValue(sample.getBigUint64(["1"]), 0x20602800080017fn,
+assert.sameValue(sample.getBigUint64(["1"]), 0x20602800080017f n,
'ToIndex: ["1"].toString() => "1" => 1');
-assert.sameValue(sample.getBigUint64({}), 0x2702060280008001n,
+assert.sameValue(sample.getBigUint64({}), 0x2702060280008001 n,
'ToIndex: ({}).toString() => "[object Object]" => NaN => 0');
-assert.sameValue(sample.getBigUint64([]), 0x2702060280008001n,
+assert.sameValue(sample.getBigUint64([]), 0x2702060280008001 n,
'ToIndex: [].toString() => "" => NaN => 0');
diff --git a/test/built-ins/DataView/prototype/setBigInt64/detached-buffer-after-bigint-value.js b/test/built-ins/DataView/prototype/setBigInt64/detached-buffer-after-bigint-value.js
index 7a96e21ca..48a491cb6 100644
--- a/test/built-ins/DataView/prototype/setBigInt64/detached-buffer-after-bigint-value.js
+++ b/test/built-ins/DataView/prototype/setBigInt64/detached-buffer-after-bigint-value.js
@@ -12,7 +12,11 @@ features: [DataView, ArrayBuffer, BigInt]
var buffer = new ArrayBuffer(8);
var sample = new DataView(buffer, 0);
-var v = { valueOf() { throw new Test262Error(); } };
+var v = {
+ valueOf() {
+ throw new Test262Error();
+ }
+};
$DETACHBUFFER(buffer);
assert.throws(Test262Error, function() {
diff --git a/test/built-ins/DataView/prototype/setBigInt64/detached-buffer.js b/test/built-ins/DataView/prototype/setBigInt64/detached-buffer.js
index 3b25b9497..4361bb71a 100644
--- a/test/built-ins/DataView/prototype/setBigInt64/detached-buffer.js
+++ b/test/built-ins/DataView/prototype/setBigInt64/detached-buffer.js
@@ -14,5 +14,5 @@ var sample = new DataView(buffer, 0);
$DETACHBUFFER(buffer);
assert.throws(TypeError, function() {
- sample.setBigInt64(0, 0n);
+ sample.setBigInt64(0, 0 n);
});
diff --git a/test/built-ins/DataView/prototype/setBigInt64/index-check-before-value-conversion.js b/test/built-ins/DataView/prototype/setBigInt64/index-check-before-value-conversion.js
index a092a47c3..0852b5498 100644
--- a/test/built-ins/DataView/prototype/setBigInt64/index-check-before-value-conversion.js
+++ b/test/built-ins/DataView/prototype/setBigInt64/index-check-before-value-conversion.js
@@ -12,7 +12,9 @@ features: [DataView, ArrayBuffer, BigInt]
var dataView = new DataView(new ArrayBuffer(8), 0);
var poisoned = {
- valueOf() { throw new Test262Error("valueOf called"); }
+ valueOf() {
+ throw new Test262Error("valueOf called");
+ }
};
assert.throws(RangeError, function() {
diff --git a/test/built-ins/DataView/prototype/setBigInt64/index-is-out-of-range.js b/test/built-ins/DataView/prototype/setBigInt64/index-is-out-of-range.js
index 17664246e..420adff59 100644
--- a/test/built-ins/DataView/prototype/setBigInt64/index-is-out-of-range.js
+++ b/test/built-ins/DataView/prototype/setBigInt64/index-is-out-of-range.js
@@ -14,75 +14,75 @@ var buffer = new ArrayBuffer(12);
sample = new DataView(buffer, 0);
assert.throws(RangeError, function() {
- sample.setBigInt64(Infinity, 39n);
+ sample.setBigInt64(Infinity, 39 n);
}, "getIndex == Infinity");
assert.throws(RangeError, function() {
- sample.setBigInt64(13, 39n);
+ sample.setBigInt64(13, 39 n);
}, "13 + 8 > 12");
assert.throws(RangeError, function() {
- sample.setBigInt64(12, 39n);
+ sample.setBigInt64(12, 39 n);
}, "12 + 8 > 12");
assert.throws(RangeError, function() {
- sample.setBigInt64(11, 39n);
+ sample.setBigInt64(11, 39 n);
}, "11 + 8 > 12");
assert.throws(RangeError, function() {
- sample.setBigInt64(10, 39n);
+ sample.setBigInt64(10, 39 n);
}, "10 + 8 > 12");
assert.throws(RangeError, function() {
- sample.setBigInt64(9, 39n);
+ sample.setBigInt64(9, 39 n);
}, "9 + 8 > 12");
assert.throws(RangeError, function() {
- sample.setBigInt64(8, 39n);
+ sample.setBigInt64(8, 39 n);
}, "8 + 8 > 12");
assert.throws(RangeError, function() {
- sample.setBigInt64(7, 39n);
+ sample.setBigInt64(7, 39 n);
}, "7 + 8 > 12");
assert.throws(RangeError, function() {
- sample.setBigInt64(6, 39n);
+ sample.setBigInt64(6, 39 n);
}, "6 + 8 > 12");
assert.throws(RangeError, function() {
- sample.setBigInt64(5, 39n);
+ sample.setBigInt64(5, 39 n);
}, "5 + 8 > 12");
sample = new DataView(buffer, 8);
assert.throws(RangeError, function() {
- sample.setBigInt64(1, 39n);
+ sample.setBigInt64(1, 39 n);
}, "1 + 8 > 4 (offset)");
sample = new DataView(buffer, 9);
assert.throws(RangeError, function() {
- sample.setBigInt64(0, 39n);
+ sample.setBigInt64(0, 39 n);
}, "0 + 8 > 3 (offset)");
sample = new DataView(buffer, 0, 8);
assert.throws(RangeError, function() {
- sample.setBigInt64(1, 39n);
+ sample.setBigInt64(1, 39 n);
}, "1 + 8 > 8 (length)");
sample = new DataView(buffer, 0, 7);
assert.throws(RangeError, function() {
- sample.setBigInt64(0, 39n);
+ sample.setBigInt64(0, 39 n);
}, "0 + 8 > 7 (length)");
sample = new DataView(buffer, 4, 8);
assert.throws(RangeError, function() {
- sample.setBigInt64(1, 39n);
+ sample.setBigInt64(1, 39 n);
}, "1 + 8 > 8 (offset+length)");
sample = new DataView(buffer, 4, 7);
assert.throws(RangeError, function() {
- sample.setBigInt64(0, 39n);
+ sample.setBigInt64(0, 39 n);
}, "0 + 8 > 7 (offset+length)");
sample = new DataView(buffer, 0);
-assert.sameValue(sample.getBigInt64(0), 0n, "[0] no value was set");
-assert.sameValue(sample.getBigInt64(4), 0n, "[1] no value was set");
+assert.sameValue(sample.getBigInt64(0), 0 n, "[0] no value was set");
+assert.sameValue(sample.getBigInt64(4), 0 n, "[1] no value was set");
diff --git a/test/built-ins/DataView/prototype/setBigInt64/negative-byteoffset-throws.js b/test/built-ins/DataView/prototype/setBigInt64/negative-byteoffset-throws.js
index fcb35cf21..9ad011062 100644
--- a/test/built-ins/DataView/prototype/setBigInt64/negative-byteoffset-throws.js
+++ b/test/built-ins/DataView/prototype/setBigInt64/negative-byteoffset-throws.js
@@ -12,11 +12,11 @@ var buffer = new ArrayBuffer(12);
var sample = new DataView(buffer, 0);
assert.throws(RangeError, function() {
- sample.setBigInt64(-1, 39n);
+ sample.setBigInt64(-1, 39 n);
}, "DataView access at index -1 should throw");
-assert.sameValue(sample.getBigInt64(0), 0n, "-1 - no value was set");
+assert.sameValue(sample.getBigInt64(0), 0 n, "-1 - no value was set");
assert.throws(RangeError, function() {
- sample.setBigInt64(-Infinity, 39n);
+ sample.setBigInt64(-Infinity, 39 n);
}, "DataView access at index -Infinity should throw");
-assert.sameValue(sample.getBigInt64(0), 0n, "-Infinity - no value was set");
+assert.sameValue(sample.getBigInt64(0), 0 n, "-Infinity - no value was set");
diff --git a/test/built-ins/DataView/prototype/setBigInt64/range-check-after-value-conversion.js b/test/built-ins/DataView/prototype/setBigInt64/range-check-after-value-conversion.js
index 85e88974c..6c05febdd 100644
--- a/test/built-ins/DataView/prototype/setBigInt64/range-check-after-value-conversion.js
+++ b/test/built-ins/DataView/prototype/setBigInt64/range-check-after-value-conversion.js
@@ -10,7 +10,11 @@ features: [DataView, ArrayBuffer, BigInt]
var dataView = new DataView(new ArrayBuffer(8), 0);
-var poisoned = { valueOf() { throw new Test262Error(); } };
+var poisoned = {
+ valueOf() {
+ throw new Test262Error();
+ }
+};
assert.throws(Test262Error, function() {
dataView.setBigInt64(100, poisoned);
diff --git a/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tobigint-value.js b/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tobigint-value.js
index 0411fe56b..d09e12b13 100644
--- a/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tobigint-value.js
+++ b/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tobigint-value.js
@@ -11,8 +11,16 @@ features: [DataView, ArrayBuffer, BigInt]
var buffer = new ArrayBuffer(8);
var sample = new DataView(buffer, 0);
-var bo1 = { valueOf() { throw new Test262Error(); } };
-var bo2 = { toString() { throw new Test262Error(); } };
+var bo1 = {
+ valueOf() {
+ throw new Test262Error();
+ }
+};
+var bo2 = {
+ toString() {
+ throw new Test262Error();
+ }
+};
assert.throws(Test262Error, function() {
sample.setBigInt64(0, bo1);
diff --git a/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset-symbol.js b/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset-symbol.js
index caddbafdb..566a7d54f 100644
--- a/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset-symbol.js
+++ b/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset-symbol.js
@@ -14,5 +14,5 @@ var sample = new DataView(buffer, 0);
var s = Symbol("1");
assert.throws(TypeError, function() {
- sample.setBigInt64(s, 1n);
+ sample.setBigInt64(s, 1 n);
});
diff --git a/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset.js b/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset.js
index c54224dec..52ae143fd 100644
--- a/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset.js
+++ b/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset.js
@@ -11,13 +11,21 @@ features: [DataView, ArrayBuffer, BigInt]
var buffer = new ArrayBuffer(1);
var sample = new DataView(buffer, 0);
-var bo1 = { valueOf() { throw new Test262Error(); } };
-var bo2 = { toString() { throw new Test262Error(); } };
+var bo1 = {
+ valueOf() {
+ throw new Test262Error();
+ }
+};
+var bo2 = {
+ toString() {
+ throw new Test262Error();
+ }
+};
assert.throws(Test262Error, function() {
- sample.setBigInt64(bo1, 1n);
+ sample.setBigInt64(bo1, 1 n);
}, "valueOf");
assert.throws(Test262Error, function() {
- sample.setBigInt64(bo2, 1n);
+ sample.setBigInt64(bo2, 1 n);
}, "toString");
diff --git a/test/built-ins/DataView/prototype/setBigInt64/set-values-little-endian-order.js b/test/built-ins/DataView/prototype/setBigInt64/set-values-little-endian-order.js
index 9edb9da5b..7716f66a3 100644
--- a/test/built-ins/DataView/prototype/setBigInt64/set-values-little-endian-order.js
+++ b/test/built-ins/DataView/prototype/setBigInt64/set-values-little-endian-order.js
@@ -13,26 +13,26 @@ var sample = new DataView(buffer, 0);
var result;
-result = sample.setBigInt64(0, -0x6f80ff08n, true);
+result = sample.setBigInt64(0, -0x6f80ff08 n, true);
assert.sameValue(result, undefined, "returns undefined #1");
-assert.sameValue(sample.getBigInt64(0), -0x7ff806f00000001n);
+assert.sameValue(sample.getBigInt64(0), -0x7ff806f00000001 n);
-result = sample.setBigInt64(0, -0x7ff8070n, true);
+result = sample.setBigInt64(0, -0x7ff8070 n, true);
assert.sameValue(result, undefined, "returns undefined #2");
-assert.sameValue(sample.getBigInt64(0), -0x6f80ff0700000001n);
+assert.sameValue(sample.getBigInt64(0), -0x6f80ff0700000001 n);
-result = sample.setBigInt64(0, 0x6f80ff08n, true);
+result = sample.setBigInt64(0, 0x6f80ff08 n, true);
assert.sameValue(result, undefined, "returns undefined #3");
-assert.sameValue(sample.getBigInt64(0), 0x8ff806f00000000n);
+assert.sameValue(sample.getBigInt64(0), 0x8ff806f00000000 n);
-result = sample.setBigInt64(0, 0x8ff806fn, true);
+result = sample.setBigInt64(0, 0x8ff806f n, true);
assert.sameValue(result, undefined, "returns undefined #4");
-assert.sameValue(sample.getBigInt64(0), 0x6f80ff0800000000n);
+assert.sameValue(sample.getBigInt64(0), 0x6f80ff0800000000 n);
-result = sample.setBigInt64(0, 0xf8007f90n, true);
+result = sample.setBigInt64(0, 0xf8007f90 n, true);
assert.sameValue(result, undefined, "returns undefined #5");
-assert.sameValue(sample.getBigInt64(0), -0x6f80ff0800000000n);
+assert.sameValue(sample.getBigInt64(0), -0x6f80ff0800000000 n);
-result = sample.setBigInt64(0, 0x907f00f8n, true);
+result = sample.setBigInt64(0, 0x907f00f8 n, true);
assert.sameValue(result, undefined, "returns undefined #6");
-assert.sameValue(sample.getBigInt64(0), -0x7ff807000000000n);
+assert.sameValue(sample.getBigInt64(0), -0x7ff807000000000 n);
diff --git a/test/built-ins/DataView/prototype/setBigInt64/set-values-return-undefined.js b/test/built-ins/DataView/prototype/setBigInt64/set-values-return-undefined.js
index a92ede6c6..4e2d481c1 100644
--- a/test/built-ins/DataView/prototype/setBigInt64/set-values-return-undefined.js
+++ b/test/built-ins/DataView/prototype/setBigInt64/set-values-return-undefined.js
@@ -17,13 +17,13 @@ var values = byteConversionValues.values;
values.forEach(function(value, i) {
if (value === undefined) {
assert.throws(TypeError,
- () => sample.setBigInt64(0, BigInt(value), false),
- "value: " + value);
+ () => sample.setBigInt64(0, BigInt(value), false),
+ "value: " + value);
return;
} else if (!Number.isInteger(value) || value > 9007199254740991) {
assert.throws(RangeError,
- () => sample.setBigInt64(0, BigInt(value), false),
- "value " + value);
+ () => sample.setBigInt64(0, BigInt(value), false),
+ "value " + value);
return;
}
diff --git a/test/built-ins/DataView/prototype/setBigInt64/to-boolean-littleendian.js b/test/built-ins/DataView/prototype/setBigInt64/to-boolean-littleendian.js
index 760dd8f62..8311d9b3d 100644
--- a/test/built-ins/DataView/prototype/setBigInt64/to-boolean-littleendian.js
+++ b/test/built-ins/DataView/prototype/setBigInt64/to-boolean-littleendian.js
@@ -12,23 +12,23 @@ var buffer = new ArrayBuffer(8);
var sample = new DataView(buffer, 0);
// False
-sample.setBigInt64(0, 1n);
-assert.sameValue(sample.getBigInt64(0), 1n, "no arg");
-sample.setBigInt64(0, 2n, undefined);
-assert.sameValue(sample.getBigInt64(0), 2n, "undefined");
-sample.setBigInt64(0, 3n, null);
-assert.sameValue(sample.getBigInt64(0), 3n, "null");
-sample.setBigInt64(0, 4n, 0);
-assert.sameValue(sample.getBigInt64(0), 4n, "0");
-sample.setBigInt64(0, 5n, "");
-assert.sameValue(sample.getBigInt64(0), 5n, "the empty string");
+sample.setBigInt64(0, 1 n);
+assert.sameValue(sample.getBigInt64(0), 1 n, "no arg");
+sample.setBigInt64(0, 2 n, undefined);
+assert.sameValue(sample.getBigInt64(0), 2 n, "undefined");
+sample.setBigInt64(0, 3 n, null);
+assert.sameValue(sample.getBigInt64(0), 3 n, "null");
+sample.setBigInt64(0, 4 n, 0);
+assert.sameValue(sample.getBigInt64(0), 4 n, "0");
+sample.setBigInt64(0, 5 n, "");
+assert.sameValue(sample.getBigInt64(0), 5 n, "the empty string");
// True
-sample.setBigInt64(0, 6n, {});
-assert.sameValue(sample.getBigInt64(0), 0x600000000000000n, "{}");
-sample.setBigInt64(0, 7n, Symbol("1"));
-assert.sameValue(sample.getBigInt64(0), 0x700000000000000n, "symbol");
-sample.setBigInt64(0, 8n, 1);
-assert.sameValue(sample.getBigInt64(0), 0x800000000000000n, "1");
-sample.setBigInt64(0, 9n, "string");
-assert.sameValue(sample.getBigInt64(0), 0x900000000000000n, "string");
+sample.setBigInt64(0, 6 n, {});
+assert.sameValue(sample.getBigInt64(0), 0x600000000000000 n, "{}");
+sample.setBigInt64(0, 7 n, Symbol("1"));
+assert.sameValue(sample.getBigInt64(0), 0x700000000000000 n, "symbol");
+sample.setBigInt64(0, 8 n, 1);
+assert.sameValue(sample.getBigInt64(0), 0x800000000000000 n, "1");
+sample.setBigInt64(0, 9 n, "string");
+assert.sameValue(sample.getBigInt64(0), 0x900000000000000 n, "string");
diff --git a/test/built-ins/DataView/prototype/setBigInt64/toindex-byteoffset.js b/test/built-ins/DataView/prototype/setBigInt64/toindex-byteoffset.js
index a55f905ae..169aba7d1 100644
--- a/test/built-ins/DataView/prototype/setBigInt64/toindex-byteoffset.js
+++ b/test/built-ins/DataView/prototype/setBigInt64/toindex-byteoffset.js
@@ -11,73 +11,81 @@ features: [DataView, ArrayBuffer, BigInt]
var buffer = new ArrayBuffer(12);
var sample = new DataView(buffer, 0);
-var obj1 = { valueOf() { return 3; } };
-var obj2 = { toString() { return 4; } };
-
-sample.setBigInt64(0, 0n);
-sample.setBigInt64(-0, 42n);
-assert.sameValue(sample.getBigInt64(0), 42n, "-0");
-
-sample.setBigInt64(3, 0n);
-sample.setBigInt64(obj1, 42n);
-assert.sameValue(sample.getBigInt64(3), 42n, "object's valueOf");
-
-sample.setBigInt64(4, 0n);
-sample.setBigInt64(obj2, 42n);
-assert.sameValue(sample.getBigInt64(4), 42n, "object's toString");
-
-sample.setBigInt64(0, 0n);
-sample.setBigInt64("", 42n);
-assert.sameValue(sample.getBigInt64(0), 42n, "the Empty string");
-
-sample.setBigInt64(0, 0n);
-sample.setBigInt64("0", 42n);
-assert.sameValue(sample.getBigInt64(0), 42n, "string '0'");
-
-sample.setBigInt64(2, 0n);
-sample.setBigInt64("2", 42n);
-assert.sameValue(sample.getBigInt64(2), 42n, "string '2'");
-
-sample.setBigInt64(1, 0n);
-sample.setBigInt64(true, 42n);
-assert.sameValue(sample.getBigInt64(1), 42n, "true");
-
-sample.setBigInt64(0, 0n);
-sample.setBigInt64(false, 42n);
-assert.sameValue(sample.getBigInt64(0), 42n, "false");
-
-sample.setBigInt64(0, 0n);
-sample.setBigInt64(NaN, 42n);
-assert.sameValue(sample.getBigInt64(0), 42n, "NaN");
-
-sample.setBigInt64(0, 0n);
-sample.setBigInt64(null, 42n);
-assert.sameValue(sample.getBigInt64(0), 42n, "null");
-
-sample.setBigInt64(0, 0n);
-sample.setBigInt64(0.1, 42n);
-assert.sameValue(sample.getBigInt64(0), 42n, "0.1");
-
-sample.setBigInt64(0, 0n);
-sample.setBigInt64(0.9, 42n);
-assert.sameValue(sample.getBigInt64(0), 42n, "0.9");
-
-sample.setBigInt64(1, 0n);
-sample.setBigInt64(1.1, 42n);
-assert.sameValue(sample.getBigInt64(1), 42n, "1.1");
-
-sample.setBigInt64(1, 0n);
-sample.setBigInt64(1.9, 42n);
-assert.sameValue(sample.getBigInt64(1), 42n, "1.9");
-
-sample.setBigInt64(0, 0n);
-sample.setBigInt64(-0.1, 42n);
-assert.sameValue(sample.getBigInt64(0), 42n, "-0.1");
-
-sample.setBigInt64(0, 0n);
-sample.setBigInt64(-0.99999, 42n);
-assert.sameValue(sample.getBigInt64(0), 42n, "-0.99999");
-
-sample.setBigInt64(0, 0n);
-sample.setBigInt64(undefined, 42n);
-assert.sameValue(sample.getBigInt64(0), 42n, "undefined");
+var obj1 = {
+ valueOf() {
+ return 3;
+ }
+};
+var obj2 = {
+ toString() {
+ return 4;
+ }
+};
+
+sample.setBigInt64(0, 0 n);
+sample.setBigInt64(-0, 42 n);
+assert.sameValue(sample.getBigInt64(0), 42 n, "-0");
+
+sample.setBigInt64(3, 0 n);
+sample.setBigInt64(obj1, 42 n);
+assert.sameValue(sample.getBigInt64(3), 42 n, "object's valueOf");
+
+sample.setBigInt64(4, 0 n);
+sample.setBigInt64(obj2, 42 n);
+assert.sameValue(sample.getBigInt64(4), 42 n, "object's toString");
+
+sample.setBigInt64(0, 0 n);
+sample.setBigInt64("", 42 n);
+assert.sameValue(sample.getBigInt64(0), 42 n, "the Empty string");
+
+sample.setBigInt64(0, 0 n);
+sample.setBigInt64("0", 42 n);
+assert.sameValue(sample.getBigInt64(0), 42 n, "string '0'");
+
+sample.setBigInt64(2, 0 n);
+sample.setBigInt64("2", 42 n);
+assert.sameValue(sample.getBigInt64(2), 42 n, "string '2'");
+
+sample.setBigInt64(1, 0 n);
+sample.setBigInt64(true, 42 n);
+assert.sameValue(sample.getBigInt64(1), 42 n, "true");
+
+sample.setBigInt64(0, 0 n);
+sample.setBigInt64(false, 42 n);
+assert.sameValue(sample.getBigInt64(0), 42 n, "false");
+
+sample.setBigInt64(0, 0 n);
+sample.setBigInt64(NaN, 42 n);
+assert.sameValue(sample.getBigInt64(0), 42 n, "NaN");
+
+sample.setBigInt64(0, 0 n);
+sample.setBigInt64(null, 42 n);
+assert.sameValue(sample.getBigInt64(0), 42 n, "null");
+
+sample.setBigInt64(0, 0 n);
+sample.setBigInt64(0.1, 42 n);
+assert.sameValue(sample.getBigInt64(0), 42 n, "0.1");
+
+sample.setBigInt64(0, 0 n);
+sample.setBigInt64(0.9, 42 n);
+assert.sameValue(sample.getBigInt64(0), 42 n, "0.9");
+
+sample.setBigInt64(1, 0 n);
+sample.setBigInt64(1.1, 42 n);
+assert.sameValue(sample.getBigInt64(1), 42 n, "1.1");
+
+sample.setBigInt64(1, 0 n);
+sample.setBigInt64(1.9, 42 n);
+assert.sameValue(sample.getBigInt64(1), 42 n, "1.9");
+
+sample.setBigInt64(0, 0 n);
+sample.setBigInt64(-0.1, 42 n);
+assert.sameValue(sample.getBigInt64(0), 42 n, "-0.1");
+
+sample.setBigInt64(0, 0 n);
+sample.setBigInt64(-0.99999, 42 n);
+assert.sameValue(sample.getBigInt64(0), 42 n, "-0.99999");
+
+sample.setBigInt64(0, 0 n);
+sample.setBigInt64(undefined, 42 n);
+assert.sameValue(sample.getBigInt64(0), 42 n, "undefined");
diff --git a/test/built-ins/DataView/prototype/setInt32/toindex-byteoffset.js b/test/built-ins/DataView/prototype/setInt32/toindex-byteoffset.js
index f5b45a5ae..0d71d4dfb 100644
--- a/test/built-ins/DataView/prototype/setInt32/toindex-byteoffset.js
+++ b/test/built-ins/DataView/prototype/setInt32/toindex-byteoffset.js
@@ -106,4 +106,4 @@ assert.sameValue(sample.getInt32(0), 42, "undefined");
sample.setInt32(0, 7);
sample.setInt32();
-assert.sameValue(sample.getInt32(0), 0, "no arg"); \ No newline at end of file
+assert.sameValue(sample.getInt32(0), 0, "no arg");
diff --git a/test/built-ins/Date/15.9.1.15-1.js b/test/built-ins/Date/15.9.1.15-1.js
index b2f1f1c01..395a20bbc 100644
--- a/test/built-ins/Date/15.9.1.15-1.js
+++ b/test/built-ins/Date/15.9.1.15-1.js
@@ -10,10 +10,10 @@ description: >
absent
---*/
- var result = false;
- var expectedDateTimeStr = "1970-01-01T00:00:00.000Z";
- var dateObj = new Date("1970");
- var dateStr = dateObj.toISOString();
- result = dateStr === expectedDateTimeStr;
+var result = false;
+var expectedDateTimeStr = "1970-01-01T00:00:00.000Z";
+var dateObj = new Date("1970");
+var dateStr = dateObj.toISOString();
+result = dateStr === expectedDateTimeStr;
assert(result, 'result !== true');
diff --git a/test/built-ins/Date/S15.9.2.1_A1.js b/test/built-ins/Date/S15.9.2.1_A1.js
index fd4915737..24722c8dd 100644
--- a/test/built-ins/Date/S15.9.2.1_A1.js
+++ b/test/built-ins/Date/S15.9.2.1_A1.js
@@ -11,71 +11,71 @@ description: Checking type of returned value
---*/
//CHECK#1
-if( typeof Date() !== "string" ) {
- $ERROR('#1: typeof Date() should be "string", actual is '+(typeof Date()));
+if (typeof Date() !== "string") {
+ $ERROR('#1: typeof Date() should be "string", actual is ' + (typeof Date()));
}
//CHECK#2
-if( typeof Date(1) !== "string" ) {
- $ERROR('#2: typeof Date(1) should be "string", actual is '+(typeof Date(1)));
+if (typeof Date(1) !== "string") {
+ $ERROR('#2: typeof Date(1) should be "string", actual is ' + (typeof Date(1)));
}
//CHECK#3
-if( typeof Date(1970, 1) !== "string" ) {
- $ERROR('#3: typeof Date(1970, 1) should be "string", actual is '+(typeof Date(1970, 1)));
+if (typeof Date(1970, 1) !== "string") {
+ $ERROR('#3: typeof Date(1970, 1) should be "string", actual is ' + (typeof Date(1970, 1)));
}
//CHECK#4
-if( typeof Date(1970, 1, 1) !== "string" ) {
- $ERROR('#4: typeof Date(1970, 1, 1) should be "string", actual is '+(typeof Date(1970, 1, 1)));
+if (typeof Date(1970, 1, 1) !== "string") {
+ $ERROR('#4: typeof Date(1970, 1, 1) should be "string", actual is ' + (typeof Date(1970, 1, 1)));
}
//CHECK#5
-if( typeof Date(1970, 1, 1, 1) !== "string" ) {
- $ERROR('#5: typeof Date(1970, 1, 1, 1) should be "string", actual is '+(typeof Date(1970, 1, 1, 1)));
+if (typeof Date(1970, 1, 1, 1) !== "string") {
+ $ERROR('#5: typeof Date(1970, 1, 1, 1) should be "string", actual is ' + (typeof Date(1970, 1, 1, 1)));
}
//CHECK#6
-if( typeof Date(1970, 1, 1, 1) !== "string" ) {
- $ERROR('#7: typeof Date(1970, 1, 1, 1) should be "string", actual is '+(typeof Date(1970, 1, 1, 1)));
+if (typeof Date(1970, 1, 1, 1) !== "string") {
+ $ERROR('#7: typeof Date(1970, 1, 1, 1) should be "string", actual is ' + (typeof Date(1970, 1, 1, 1)));
}
//CHECK#8
-if( typeof Date(1970, 1, 1, 1, 0) !== "string" ) {
- $ERROR('#8: typeof Date(1970, 1, 1, 1, 0) should be "string", actual is '+(typeof Date(1970, 1, 1, 1, 0)));
+if (typeof Date(1970, 1, 1, 1, 0) !== "string") {
+ $ERROR('#8: typeof Date(1970, 1, 1, 1, 0) should be "string", actual is ' + (typeof Date(1970, 1, 1, 1, 0)));
}
//CHECK#9
-if( typeof Date(1970, 1, 1, 1, 0, 0) !== "string" ) {
- $ERROR('#9: typeof Date(1970, 1, 1, 1, 0, 0) should be "string", actual is '+(typeof Date(1970, 1, 1, 1, 0, 0)));
+if (typeof Date(1970, 1, 1, 1, 0, 0) !== "string") {
+ $ERROR('#9: typeof Date(1970, 1, 1, 1, 0, 0) should be "string", actual is ' + (typeof Date(1970, 1, 1, 1, 0, 0)));
}
//CHECK#10
-if( typeof Date(1970, 1, 1, 1, 0, 0, 0) !== "string" ) {
- $ERROR('#10: typeof Date(1970, 1, 1, 1, 0, 0, 0) should be "string", actual is '+(typeof Date(1970, 1, 1, 1, 0, 0, 0)));
+if (typeof Date(1970, 1, 1, 1, 0, 0, 0) !== "string") {
+ $ERROR('#10: typeof Date(1970, 1, 1, 1, 0, 0, 0) should be "string", actual is ' + (typeof Date(1970, 1, 1, 1, 0, 0, 0)));
}
//CHECK#11
-if( typeof Date(Number.NaN) !== "string" ) {
- $ERROR('#11: typeof Date(Number.NaN) should be "string", actual is '+(typeof Date(Number.NaN)));
+if (typeof Date(Number.NaN) !== "string") {
+ $ERROR('#11: typeof Date(Number.NaN) should be "string", actual is ' + (typeof Date(Number.NaN)));
}
//CHECK#12
-if( typeof Date(Number.POSITIVE_INFINITY) !== "string" ) {
- $ERROR('#12: typeof Date(Number.POSITIVE_INFINITY) should be "string", actual is '+(typeof Date(Number.POSITIVE_INFINITY)));
+if (typeof Date(Number.POSITIVE_INFINITY) !== "string") {
+ $ERROR('#12: typeof Date(Number.POSITIVE_INFINITY) should be "string", actual is ' + (typeof Date(Number.POSITIVE_INFINITY)));
}
//CHECK#13
-if( typeof Date(Number.NEGATIVE_INFINITY) !== "string" ) {
- $ERROR('#13: typeof Date(Number.NEGATIVE_INFINITY) should be "string", actual is '+(typeof Date(Number.NEGATIVE_INFINITY)));
+if (typeof Date(Number.NEGATIVE_INFINITY) !== "string") {
+ $ERROR('#13: typeof Date(Number.NEGATIVE_INFINITY) should be "string", actual is ' + (typeof Date(Number.NEGATIVE_INFINITY)));
}
//CHECK#14
-if( typeof Date(undefined) !== "string" ) {
- $ERROR('#14: typeof Date(undefined) should be "string", actual is '+(typeof Date(undefined)));
+if (typeof Date(undefined) !== "string") {
+ $ERROR('#14: typeof Date(undefined) should be "string", actual is ' + (typeof Date(undefined)));
}
//CHECK#15
-if( typeof Date(null) !== "string" ) {
- $ERROR('#15: typeof Date(null) should be "string", actual is '+(typeof Date(null)));
+if (typeof Date(null) !== "string") {
+ $ERROR('#15: typeof Date(null) should be "string", actual is ' + (typeof Date(null)));
}
diff --git a/test/built-ins/Date/S15.9.2.1_A2.js b/test/built-ins/Date/S15.9.2.1_A2.js
index c461b0e87..4d627a809 100644
--- a/test/built-ins/Date/S15.9.2.1_A2.js
+++ b/test/built-ins/Date/S15.9.2.1_A2.js
@@ -22,71 +22,71 @@ function isEqual(d1, d2) {
}
//CHECK#1
-if( !isEqual(Date(), (new Date()).toString()) ) {
+if (!isEqual(Date(), (new Date()).toString())) {
$ERROR('#1: Date() is equal to (new Date()).toString()');
}
//CHECK#2
-if( !isEqual(Date(1), (new Date()).toString()) ) {
+if (!isEqual(Date(1), (new Date()).toString())) {
$ERROR('#2: Date(1) is equal to (new Date()).toString()');
}
//CHECK#3
-if( !isEqual(Date(1970, 1), (new Date()).toString()) ) {
+if (!isEqual(Date(1970, 1), (new Date()).toString())) {
$ERROR('#3: Date(1970, 1) is equal to (new Date()).toString()');
}
//CHECK#4
-if( !isEqual(Date(1970, 1, 1), (new Date()).toString()) ) {
+if (!isEqual(Date(1970, 1, 1), (new Date()).toString())) {
$ERROR('#4: Date(1970, 1, 1) is equal to (new Date()).toString()');
}
//CHECK#5
-if( !isEqual(Date(1970, 1, 1, 1), (new Date()).toString()) ) {
+if (!isEqual(Date(1970, 1, 1, 1), (new Date()).toString())) {
$ERROR('#5: Date(1970, 1, 1, 1) is equal to (new Date()).toString()');
}
//CHECK#6
-if( !isEqual(Date(1970, 1, 1, 1), (new Date()).toString()) ) {
+if (!isEqual(Date(1970, 1, 1, 1), (new Date()).toString())) {
$ERROR('#7: Date(1970, 1, 1, 1) is equal to (new Date()).toString()');
}
//CHECK#8
-if( !isEqual(Date(1970, 1, 1, 1, 0), (new Date()).toString()) ) {
+if (!isEqual(Date(1970, 1, 1, 1, 0), (new Date()).toString())) {
$ERROR('#8: Date(1970, 1, 1, 1, 0) is equal to (new Date()).toString()');
}
//CHECK#9
-if( !isEqual(Date(1970, 1, 1, 1, 0, 0), (new Date()).toString()) ) {
+if (!isEqual(Date(1970, 1, 1, 1, 0, 0), (new Date()).toString())) {
$ERROR('#9: Date(1970, 1, 1, 1, 0, 0) is equal to (new Date()).toString()');
}
//CHECK#10
-if( !isEqual(Date(1970, 1, 1, 1, 0, 0, 0), (new Date()).toString()) ) {
+if (!isEqual(Date(1970, 1, 1, 1, 0, 0, 0), (new Date()).toString())) {
$ERROR('#10: Date(1970, 1, 1, 1, 0, 0, 0) is equal to (new Date()).toString()');
}
//CHECK#11
-if( !isEqual(Date(Number.NaN), (new Date()).toString()) ) {
+if (!isEqual(Date(Number.NaN), (new Date()).toString())) {
$ERROR('#11: Date(Number.NaN) is equal to (new Date()).toString()');
}
//CHECK#12
-if( !isEqual(Date(Number.POSITIVE_INFINITY), (new Date()).toString()) ) {
+if (!isEqual(Date(Number.POSITIVE_INFINITY), (new Date()).toString())) {
$ERROR('#12: Date(Number.POSITIVE_INFINITY) is equal to (new Date()).toString()');
}
//CHECK#13
-if( !isEqual(Date(Number.NEGATIVE_INFINITY), (new Date()).toString()) ) {
+if (!isEqual(Date(Number.NEGATIVE_INFINITY), (new Date()).toString())) {
$ERROR('#13: Date(Number.NEGATIVE_INFINITY) is equal to (new Date()).toString()');
}
//CHECK#14
-if( !isEqual(Date(undefined), (new Date()).toString()) ) {
+if (!isEqual(Date(undefined), (new Date()).toString())) {
$ERROR('#14: Date(undefined) is equal to (new Date()).toString()');
}
//CHECK#15
-if( !isEqual(Date(null), (new Date()).toString()) ) {
+if (!isEqual(Date(null), (new Date()).toString())) {
$ERROR('#15: Date(null) is equal to (new Date()).toString()');
}
diff --git a/test/built-ins/Date/S15.9.3.1_A1_T1.js b/test/built-ins/Date/S15.9.3.1_A1_T1.js
index af7e4e3e6..7e6baff63 100644
--- a/test/built-ins/Date/S15.9.3.1_A1_T1.js
+++ b/test/built-ins/Date/S15.9.3.1_A1_T1.js
@@ -19,12 +19,12 @@ if (new Date(1899, 11) === undefined) {
}
var x13 = new Date(1899, 11);
-if(typeof x13 !== "object"){
+if (typeof x13 !== "object") {
$ERROR("#1.3: typeof new Date(1899, 11) should be 'object'");
}
var x14 = new Date(1899, 11);
-if(x14 === undefined){
+if (x14 === undefined) {
$ERROR("#1.4: new Date(1899, 11) should not be undefined");
}
@@ -37,12 +37,12 @@ if (new Date(1899, 12) === undefined) {
}
var x23 = new Date(1899, 12);
-if(typeof x23 !== "object"){
+if (typeof x23 !== "object") {
$ERROR("#2.3: typeof new Date(1899, 12) should be 'object'");
}
var x24 = new Date(1899, 12);
-if(x24 === undefined){
+if (x24 === undefined) {
$ERROR("#2.4: new Date(1899, 12) should not be undefined");
}
@@ -55,12 +55,12 @@ if (new Date(1900, 0) === undefined) {
}
var x33 = new Date(1900, 0);
-if(typeof x33 !== "object"){
+if (typeof x33 !== "object") {
$ERROR("#3.3: typeof new Date(1900, 0) should be 'object'");
}
var x34 = new Date(1900, 0);
-if(x34 === undefined){
+if (x34 === undefined) {
$ERROR("#3.4: new Date(1900, 0) should not be undefined");
}
@@ -73,12 +73,12 @@ if (new Date(1969, 11) === undefined) {
}
var x43 = new Date(1969, 11);
-if(typeof x43 !== "object"){
+if (typeof x43 !== "object") {
$ERROR("#4.3: typeof new Date(1969, 11) should be 'object'");
}
var x44 = new Date(1969, 11);
-if(x44 === undefined){
+if (x44 === undefined) {
$ERROR("#4.4: new Date(1969, 11) should not be undefined");
}
@@ -91,12 +91,12 @@ if (new Date(1969, 12) === undefined) {
}
var x53 = new Date(1969, 12);
-if(typeof x53 !== "object"){
+if (typeof x53 !== "object") {
$ERROR("#5.3: typeof new Date(1969, 12) should be 'object'");
}
var x54 = new Date(1969, 12);
-if(x54 === undefined){
+if (x54 === undefined) {
$ERROR("#5.4: new Date(1969, 12) should not be undefined");
}
@@ -109,12 +109,12 @@ if (new Date(1970, 0) === undefined) {
}
var x63 = new Date(1970, 0);
-if(typeof x63 !== "object"){
+if (typeof x63 !== "object") {
$ERROR("#6.3: typeof new Date(1970, 0) should be 'object'");
}
var x64 = new Date(1970, 0);
-if(x64 === undefined){
+if (x64 === undefined) {
$ERROR("#6.4: new Date(1970, 0) should not be undefined");
}
@@ -127,12 +127,12 @@ if (new Date(1999, 11) === undefined) {
}
var x73 = new Date(1999, 11);
-if(typeof x73 !== "object"){
+if (typeof x73 !== "object") {
$ERROR("#7.3: typeof new Date(1999, 11) should be 'object'");
}
var x74 = new Date(1999, 11);
-if(x74 === undefined){
+if (x74 === undefined) {
$ERROR("#7.4: new Date(1999, 11) should not be undefined");
}
@@ -145,12 +145,12 @@ if (new Date(1999, 12) === undefined) {
}
var x83 = new Date(1999, 12);
-if(typeof x83 !== "object"){
+if (typeof x83 !== "object") {
$ERROR("#8.3: typeof new Date(1999, 12) should be 'object'");
}
var x84 = new Date(1999, 12);
-if(x84 === undefined){
+if (x84 === undefined) {
$ERROR("#8.4: new Date(1999, 12) should not be undefined");
}
@@ -163,12 +163,12 @@ if (new Date(2000, 0) === undefined) {
}
var x93 = new Date(2000, 0);
-if(typeof x93 !== "object"){
+if (typeof x93 !== "object") {
$ERROR("#9.3: typeof new Date(2000, 0) should be 'object'");
}
var x94 = new Date(2000, 0);
-if(x94 === undefined){
+if (x94 === undefined) {
$ERROR("#9.4: new Date(2000, 0) should not be undefined");
}
@@ -181,12 +181,12 @@ if (new Date(2099, 11) === undefined) {
}
var x103 = new Date(2099, 11);
-if(typeof x103 !== "object"){
+if (typeof x103 !== "object") {
$ERROR("#10.3: typeof new Date(2099, 11) should be 'object'");
}
var x104 = new Date(2099, 11);
-if(x104 === undefined){
+if (x104 === undefined) {
$ERROR("#10.4: new Date(2099, 11) should not be undefined");
}
@@ -199,12 +199,12 @@ if (new Date(2099, 12) === undefined) {
}
var x113 = new Date(2099, 12);
-if(typeof x113 !== "object"){
+if (typeof x113 !== "object") {
$ERROR("#11.3: typeof new Date(2099, 12) should be 'object'");
}
var x114 = new Date(2099, 12);
-if(x114 === undefined){
+if (x114 === undefined) {
$ERROR("#11.4: new Date(2099, 12) should not be undefined");
}
@@ -217,11 +217,11 @@ if (new Date(2100, 0) === undefined) {
}
var x123 = new Date(2100, 0);
-if(typeof x123 !== "object"){
+if (typeof x123 !== "object") {
$ERROR("#12.3: typeof new Date(2100, 0) should be 'object'");
}
var x124 = new Date(2100, 0);
-if(x124 === undefined){
+if (x124 === undefined) {
$ERROR("#12.4: new Date(2100, 0) should not be undefined");
}
diff --git a/test/built-ins/Date/S15.9.3.1_A1_T2.js b/test/built-ins/Date/S15.9.3.1_A1_T2.js
index a787643e8..3265980f9 100644
--- a/test/built-ins/Date/S15.9.3.1_A1_T2.js
+++ b/test/built-ins/Date/S15.9.3.1_A1_T2.js
@@ -19,12 +19,12 @@ if (new Date(1899, 11, 31) === undefined) {
}
var x13 = new Date(1899, 11, 31);
-if(typeof x13 !== "object"){
+if (typeof x13 !== "object") {
$ERROR("#1.3: typeof new Date(1899, 11, 31) should be 'object'");
}
var x14 = new Date(1899, 11, 31);
-if(x14 === undefined){
+if (x14 === undefined) {
$ERROR("#1.4: new Date(1899, 11, 31) should not be undefined");
}
@@ -37,12 +37,12 @@ if (new Date(1899, 12, 1) === undefined) {
}
var x23 = new Date(1899, 12, 1);
-if(typeof x23 !== "object"){
+if (typeof x23 !== "object") {
$ERROR("#2.3: typeof new Date(1899, 12, 1) should be 'object'");
}
var x24 = new Date(1899, 12, 1);
-if(x24 === undefined){
+if (x24 === undefined) {
$ERROR("#2.4: new Date(1899, 12, 1) should not be undefined");
}
@@ -55,12 +55,12 @@ if (new Date(1900, 0, 1) === undefined) {
}
var x33 = new Date(1900, 0, 1);
-if(typeof x33 !== "object"){
+if (typeof x33 !== "object") {
$ERROR("#3.3: typeof new Date(1900, 0, 1) should be 'object'");
}
var x34 = new Date(1900, 0, 1);
-if(x34 === undefined){
+if (x34 === undefined) {
$ERROR("#3.4: new Date(1900, 0, 1) should not be undefined");
}
@@ -73,12 +73,12 @@ if (new Date(1969, 11, 31) === undefined) {
}
var x43 = new Date(1969, 11, 31);
-if(typeof x43 !== "object"){
+if (typeof x43 !== "object") {
$ERROR("#4.3: typeof new Date(1969, 11, 31) should be 'object'");
}
var x44 = new Date(1969, 11, 31);
-if(x44 === undefined){
+if (x44 === undefined) {
$ERROR("#4.4: new Date(1969, 11, 31) should not be undefined");
}
@@ -91,12 +91,12 @@ if (new Date(1969, 12, 1) === undefined) {
}
var x53 = new Date(1969, 12, 1);
-if(typeof x53 !== "object"){
+if (typeof x53 !== "object") {
$ERROR("#5.3: typeof new Date(1969, 12, 1) should be 'object'");
}
var x54 = new Date(1969, 12, 1);
-if(x54 === undefined){
+if (x54 === undefined) {
$ERROR("#5.4: new Date(1969, 12, 1) should not be undefined");
}
@@ -109,12 +109,12 @@ if (new Date(1970, 0, 1) === undefined) {
}
var x63 = new Date(1970, 0, 1);
-if(typeof x63 !== "object"){
+if (typeof x63 !== "object") {
$ERROR("#6.3: typeof new Date(1970, 0, 1) should be 'object'");
}
var x64 = new Date(1970, 0, 1);
-if(x64 === undefined){
+if (x64 === undefined) {
$ERROR("#6.4: new Date(1970, 0, 1) should not be undefined");
}
@@ -127,12 +127,12 @@ if (new Date(1999, 11, 31) === undefined) {
}
var x73 = new Date(1999, 11, 31);
-if(typeof x73 !== "object"){
+if (typeof x73 !== "object") {
$ERROR("#7.3: typeof new Date(1999, 11, 31) should be 'object'");
}
var x74 = new Date(1999, 11, 31);
-if(x74 === undefined){
+if (x74 === undefined) {
$ERROR("#7.4: new Date(1999, 11, 31) should not be undefined");
}
@@ -145,12 +145,12 @@ if (new Date(1999, 12, 1) === undefined) {
}
var x83 = new Date(1999, 12, 1);
-if(typeof x83 !== "object"){
+if (typeof x83 !== "object") {
$ERROR("#8.3: typeof new Date(1999, 12, 1) should be 'object'");
}
var x84 = new Date(1999, 12, 1);
-if(x84 === undefined){
+if (x84 === undefined) {
$ERROR("#8.4: new Date(1999, 12, 1) should not be undefined");
}
@@ -163,12 +163,12 @@ if (new Date(2000, 0, 1) === undefined) {
}
var x93 = new Date(2000, 0, 1);
-if(typeof x93 !== "object"){
+if (typeof x93 !== "object") {
$ERROR("#9.3: typeof new Date(2000, 0, 1) should be 'object'");
}
var x94 = new Date(2000, 0, 1);
-if(x94 === undefined){
+if (x94 === undefined) {
$ERROR("#9.4: new Date(2000, 0, 1) should not be undefined");
}
@@ -181,12 +181,12 @@ if (new Date(2099, 11, 31) === undefined) {
}
var x103 = new Date(2099, 11, 31);
-if(typeof x103 !== "object"){
+if (typeof x103 !== "object") {
$ERROR("#10.3: typeof new Date(2099, 11, 31) should be 'object'");
}
var x104 = new Date(2099, 11, 31);
-if(x104 === undefined){
+if (x104 === undefined) {
$ERROR("#10.4: new Date(2099, 11, 31) should not be undefined");
}
@@ -199,12 +199,12 @@ if (new Date(2099, 12, 1) === undefined) {
}
var x113 = new Date(2099, 12, 1);
-if(typeof x113 !== "object"){
+if (typeof x113 !== "object") {
$ERROR("#11.3: typeof new Date(2099, 12, 1) should be 'object'");
}
var x114 = new Date(2099, 12, 1);
-if(x114 === undefined){
+if (x114 === undefined) {
$ERROR("#11.4: new Date(2099, 12, 1) should not be undefined");
}
@@ -217,11 +217,11 @@ if (new Date(2100, 0, 1) === undefined) {
}
var x123 = new Date(2100, 0, 1);
-if(typeof x123 !== "object"){
+if (typeof x123 !== "object") {
$ERROR("#12.3: typeof new Date(2100, 0, 1) should be 'object'");
}
var x124 = new Date(2100, 0, 1);
-if(x124 === undefined){
+if (x124 === undefined) {
$ERROR("#12.4: new Date(2100, 0, 1) should not be undefined");
}
diff --git a/test/built-ins/Date/S15.9.3.1_A1_T3.js b/test/built-ins/Date/S15.9.3.1_A1_T3.js
index 648c8bbce..875e3a8a4 100644
--- a/test/built-ins/Date/S15.9.3.1_A1_T3.js
+++ b/test/built-ins/Date/S15.9.3.1_A1_T3.js
@@ -19,12 +19,12 @@ if (new Date(1899, 11, 31, 23) === undefined) {
}
var x13 = new Date(1899, 11, 31, 23);
-if(typeof x13 !== "object"){
+if (typeof x13 !== "object") {
$ERROR("#1.3: typeof new Date(1899, 11, 31, 23) should be 'object'");
}
var x14 = new Date(1899, 11, 31, 23);
-if(x14 === undefined){
+if (x14 === undefined) {
$ERROR("#1.4: new Date(1899, 11, 31, 23) should not be undefined");
}
@@ -37,12 +37,12 @@ if (new Date(1899, 12, 1, 0) === undefined) {
}
var x23 = new Date(1899, 12, 1, 0);
-if(typeof x23 !== "object"){
+if (typeof x23 !== "object") {
$ERROR("#2.3: typeof new Date(1899, 12, 1, 0) should be 'object'");
}
var x24 = new Date(1899, 12, 1, 0);
-if(x24 === undefined){
+if (x24 === undefined) {
$ERROR("#2.4: new Date(1899, 12, 1, 0) should not be undefined");
}
@@ -55,12 +55,12 @@ if (new Date(1900, 0, 1, 0) === undefined) {
}
var x33 = new Date(1900, 0, 1, 0);
-if(typeof x33 !== "object"){
+if (typeof x33 !== "object") {
$ERROR("#3.3: typeof new Date(1900, 0, 1, 0) should be 'object'");
}
var x34 = new Date(1900, 0, 1, 0);
-if(x34 === undefined){
+if (x34 === undefined) {
$ERROR("#3.4: new Date(1900, 0, 1, 0) should not be undefined");
}
@@ -73,12 +73,12 @@ if (new Date(1969, 11, 31, 23) === undefined) {
}
var x43 = new Date(1969, 11, 31, 23);
-if(typeof x43 !== "object"){
+if (typeof x43 !== "object") {
$ERROR("#4.3: typeof new Date(1969, 11, 31, 23) should be 'object'");
}
var x44 = new Date(1969, 11, 31, 23);
-if(x44 === undefined){
+if (x44 === undefined) {
$ERROR("#4.4: new Date(1969, 11, 31, 23) should not be undefined");
}
@@ -91,12 +91,12 @@ if (new Date(1969, 12, 1, 0) === undefined) {
}
var x53 = new Date(1969, 12, 1, 0);
-if(typeof x53 !== "object"){
+if (typeof x53 !== "object") {
$ERROR("#5.3: typeof new Date(1969, 12, 1, 0) should be 'object'");
}
var x54 = new Date(1969, 12, 1, 0);
-if(x54 === undefined){
+if (x54 === undefined) {
$ERROR("#5.4: new Date(1969, 12, 1, 0) should not be undefined");
}
@@ -109,12 +109,12 @@ if (new Date(1970, 0, 1, 0) === undefined) {
}
var x63 = new Date(1970, 0, 1, 0);
-if(typeof x63 !== "object"){
+if (typeof x63 !== "object") {
$ERROR("#6.3: typeof new Date(1970, 0, 1, 0) should be 'object'");
}
var x64 = new Date(1970, 0, 1, 0);
-if(x64 === undefined){
+if (x64 === undefined) {
$ERROR("#6.4: new Date(1970, 0, 1, 0) should not be undefined");
}
@@ -127,12 +127,12 @@ if (new Date(1999, 11, 31, 23) === undefined) {
}
var x73 = new Date(1999, 11, 31, 23);
-if(typeof x73 !== "object"){
+if (typeof x73 !== "object") {
$ERROR("#7.3: typeof new Date(1999, 11, 31, 23) should be 'object'");
}
var x74 = new Date(1999, 11, 31, 23);
-if(x74 === undefined){
+if (x74 === undefined) {
$ERROR("#7.4: new Date(1999, 11, 31, 23) should not be undefined");
}
@@ -145,12 +145,12 @@ if (new Date(1999, 12, 1, 0) === undefined) {
}
var x83 = new Date(1999, 12, 1, 0);
-if(typeof x83 !== "object"){
+if (typeof x83 !== "object") {
$ERROR("#8.3: typeof new Date(1999, 12, 1, 0) should be 'object'");
}
var x84 = new Date(1999, 12, 1, 0);
-if(x84 === undefined){
+if (x84 === undefined) {
$ERROR("#8.4: new Date(1999, 12, 1, 0) should not be undefined");
}
@@ -163,12 +163,12 @@ if (new Date(2000, 0, 1, 0) === undefined) {
}
var x93 = new Date(2000, 0, 1, 0);
-if(typeof x93 !== "object"){
+if (typeof x93 !== "object") {
$ERROR("#9.3: typeof new Date(2000, 0, 1, 0) should be 'object'");
}
var x94 = new Date(2000, 0, 1, 0);
-if(x94 === undefined){
+if (x94 === undefined) {
$ERROR("#9.4: new Date(2000, 0, 1, 0) should not be undefined");
}
@@ -181,12 +181,12 @@ if (new Date(2099, 11, 31, 23) === undefined) {
}
var x103 = new Date(2099, 11, 31, 23);
-if(typeof x103 !== "object"){
+if (typeof x103 !== "object") {
$ERROR("#10.3: typeof new Date(2099, 11, 31, 23) should be 'object'");
}
var x104 = new Date(2099, 11, 31, 23);
-if(x104 === undefined){
+if (x104 === undefined) {
$ERROR("#10.4: new Date(2099, 11, 31, 23) should not be undefined");
}
@@ -199,12 +199,12 @@ if (new Date(2099, 12, 1, 0) === undefined) {
}
var x113 = new Date(2099, 12, 1, 0);
-if(typeof x113 !== "object"){
+if (typeof x113 !== "object") {
$ERROR("#11.3: typeof new Date(2099, 12, 1, 0) should be 'object'");
}
var x114 = new Date(2099, 12, 1, 0);
-if(x114 === undefined){
+if (x114 === undefined) {
$ERROR("#11.4: new Date(2099, 12, 1, 0) should not be undefined");
}
@@ -217,11 +217,11 @@ if (new Date(2100, 0, 1, 0) === undefined) {
}
var x123 = new Date(2100, 0, 1, 0);
-if(typeof x123 !== "object"){
+if (typeof x123 !== "object") {
$ERROR("#12.3: typeof new Date(2100, 0, 1, 0) should be 'object'");
}
var x124 = new Date(2100, 0, 1, 0);
-if(x124 === undefined){
+if (x124 === undefined) {
$ERROR("#12.4: new Date(2100, 0, 1, 0) should not be undefined");
}
diff --git a/test/built-ins/Date/S15.9.3.1_A1_T4.js b/test/built-ins/Date/S15.9.3.1_A1_T4.js
index 086ed9a6c..ef574b965 100644
--- a/test/built-ins/Date/S15.9.3.1_A1_T4.js
+++ b/test/built-ins/Date/S15.9.3.1_A1_T4.js
@@ -19,12 +19,12 @@ if (new Date(1899, 11, 31, 23, 59) === undefined) {
}
var x13 = new Date(1899, 11, 31, 23, 59);
-if(typeof x13 !== "object"){
+if (typeof x13 !== "object") {
$ERROR("#1.3: typeof new Date(1899, 11, 31, 23, 59) should be 'object'");
}
var x14 = new Date(1899, 11, 31, 23, 59);
-if(x14 === undefined){
+if (x14 === undefined) {
$ERROR("#1.4: new Date(1899, 11, 31, 23, 59) should not be undefined");
}
@@ -37,12 +37,12 @@ if (new Date(1899, 12, 1, 0, 0) === undefined) {
}
var x23 = new Date(1899, 12, 1, 0, 0);
-if(typeof x23 !== "object"){
+if (typeof x23 !== "object") {
$ERROR("#2.3: typeof new Date(1899, 12, 1, 0, 0) should be 'object'");
}
var x24 = new Date(1899, 12, 1, 0, 0);
-if(x24 === undefined){
+if (x24 === undefined) {
$ERROR("#2.4: new Date(1899, 12, 1, 0, 0) should not be undefined");
}
@@ -55,12 +55,12 @@ if (new Date(1900, 0, 1, 0, 0) === undefined) {
}
var x33 = new Date(1900, 0, 1, 0, 0);
-if(typeof x33 !== "object"){
+if (typeof x33 !== "object") {
$ERROR("#3.3: typeof new Date(1900, 0, 1, 0, 0) should be 'object'");
}
var x34 = new Date(1900, 0, 1, 0, 0);
-if(x34 === undefined){
+if (x34 === undefined) {
$ERROR("#3.4: new Date(1900, 0, 1, 0, 0) should not be undefined");
}
@@ -73,12 +73,12 @@ if (new Date(1969, 11, 31, 23, 59) === undefined) {
}
var x43 = new Date(1969, 11, 31, 23, 59);
-if(typeof x43 !== "object"){
+if (typeof x43 !== "object") {
$ERROR("#4.3: typeof new Date(1969, 11, 31, 23, 59) should be 'object'");
}
var x44 = new Date(1969, 11, 31, 23, 59);
-if(x44 === undefined){
+if (x44 === undefined) {
$ERROR("#4.4: new Date(1969, 11, 31, 23, 59) should not be undefined");
}
@@ -91,12 +91,12 @@ if (new Date(1969, 12, 1, 0, 0) === undefined) {
}
var x53 = new Date(1969, 12, 1, 0, 0);
-if(typeof x53 !== "object"){
+if (typeof x53 !== "object") {
$ERROR("#5.3: typeof new Date(1969, 12, 1, 0, 0) should be 'object'");
}
var x54 = new Date(1969, 12, 1, 0, 0);
-if(x54 === undefined){
+if (x54 === undefined) {
$ERROR("#5.4: new Date(1969, 12, 1, 0, 0) should not be undefined");
}
@@ -109,12 +109,12 @@ if (new Date(1970, 0, 1, 0, 0) === undefined) {
}
var x63 = new Date(1970, 0, 1, 0, 0);
-if(typeof x63 !== "object"){
+if (typeof x63 !== "object") {
$ERROR("#6.3: typeof new Date(1970, 0, 1, 0, 0) should be 'object'");
}
var x64 = new Date(1970, 0, 1, 0, 0);
-if(x64 === undefined){
+if (x64 === undefined) {
$ERROR("#6.4: new Date(1970, 0, 1, 0, 0) should not be undefined");
}
@@ -127,12 +127,12 @@ if (new Date(1999, 11, 31, 23, 59) === undefined) {
}
var x73 = new Date(1999, 11, 31, 23, 59);
-if(typeof x73 !== "object"){
+if (typeof x73 !== "object") {
$ERROR("#7.3: typeof new Date(1999, 11, 31, 23, 59) should be 'object'");
}
var x74 = new Date(1999, 11, 31, 23, 59);
-if(x74 === undefined){
+if (x74 === undefined) {
$ERROR("#7.4: new Date(1999, 11, 31, 23, 59) should not be undefined");
}
@@ -145,12 +145,12 @@ if (new Date(1999, 12, 1, 0, 0) === undefined) {
}
var x83 = new Date(1999, 12, 1, 0, 0);
-if(typeof x83 !== "object"){
+if (typeof x83 !== "object") {
$ERROR("#8.3: typeof new Date(1999, 12, 1, 0, 0) should be 'object'");
}
var x84 = new Date(1999, 12, 1, 0, 0);
-if(x84 === undefined){
+if (x84 === undefined) {
$ERROR("#8.4: new Date(1999, 12, 1, 0, 0) should not be undefined");
}
@@ -163,12 +163,12 @@ if (new Date(2000, 0, 1, 0, 0) === undefined) {
}
var x93 = new Date(2000, 0, 1, 0, 0);
-if(typeof x93 !== "object"){
+if (typeof x93 !== "object") {
$ERROR("#9.3: typeof new Date(2000, 0, 1, 0, 0) should be 'object'");
}
var x94 = new Date(2000, 0, 1, 0, 0);
-if(x94 === undefined){
+if (x94 === undefined) {
$ERROR("#9.4: new Date(2000, 0, 1, 0, 0) should not be undefined");
}
@@ -181,12 +181,12 @@ if (new Date(2099, 11, 31, 23, 59) === undefined) {
}
var x103 = new Date(2099, 11, 31, 23, 59);
-if(typeof x103 !== "object"){
+if (typeof x103 !== "object") {
$ERROR("#10.3: typeof new Date(2099, 11, 31, 23, 59) should be 'object'");
}
var x104 = new Date(2099, 11, 31, 23, 59);
-if(x104 === undefined){
+if (x104 === undefined) {
$ERROR("#10.4: new Date(2099, 11, 31, 23, 59) should not be undefined");
}
@@ -199,12 +199,12 @@ if (new Date(2099, 12, 1, 0, 0) === undefined) {
}
var x113 = new Date(2099, 12, 1, 0, 0);
-if(typeof x113 !== "object"){
+if (typeof x113 !== "object") {
$ERROR("#11.3: typeof new Date(2099, 12, 1, 0, 0) should be 'object'");
}
var x114 = new Date(2099, 12, 1, 0, 0);
-if(x114 === undefined){
+if (x114 === undefined) {
$ERROR("#11.4: new Date(2099, 12, 1, 0, 0) should not be undefined");
}
@@ -217,11 +217,11 @@ if (new Date(2100, 0, 1, 0, 0) === undefined) {
}
var x123 = new Date(2100, 0, 1, 0, 0);
-if(typeof x123 !== "object"){
+if (typeof x123 !== "object") {
$ERROR("#12.3: typeof new Date(2100, 0, 1, 0, 0) should be 'object'");
}
var x124 = new Date(2100, 0, 1, 0, 0);
-if(x124 === undefined){
+if (x124 === undefined) {
$ERROR("#12.4: new Date(2100, 0, 1, 0, 0) should not be undefined");
}
diff --git a/test/built-ins/Date/S15.9.3.1_A1_T5.js b/test/built-ins/Date/S15.9.3.1_A1_T5.js
index 6a6ed02fd..0f1d0df2c 100644
--- a/test/built-ins/Date/S15.9.3.1_A1_T5.js
+++ b/test/built-ins/Date/S15.9.3.1_A1_T5.js
@@ -19,12 +19,12 @@ if (new Date(1899, 11, 31, 23, 59, 59) === undefined) {
}
var x13 = new Date(1899, 11, 31, 23, 59, 59);
-if(typeof x13 !== "object"){
+if (typeof x13 !== "object") {
$ERROR("#1.3: typeof new Date(1899, 11, 31, 23, 59, 59) should be 'object'");
}
var x14 = new Date(1899, 11, 31, 23, 59, 59);
-if(x14 === undefined){
+if (x14 === undefined) {
$ERROR("#1.4: new Date(1899, 11, 31, 23, 59, 59) should not be undefined");
}
@@ -37,12 +37,12 @@ if (new Date(1899, 12, 1, 0, 0, 0) === undefined) {
}
var x23 = new Date(1899, 12, 1, 0, 0, 0);
-if(typeof x23 !== "object"){
+if (typeof x23 !== "object") {
$ERROR("#2.3: typeof new Date(1899, 12, 1, 0, 0, 0) should be 'object'");
}
var x24 = new Date(1899, 12, 1, 0, 0, 0);
-if(x24 === undefined){
+if (x24 === undefined) {
$ERROR("#2.4: new Date(1899, 12, 1, 0, 0, 0) should not be undefined");
}
@@ -55,12 +55,12 @@ if (new Date(1900, 0, 1, 0, 0, 0) === undefined) {
}
var x33 = new Date(1900, 0, 1, 0, 0, 0);
-if(typeof x33 !== "object"){
+if (typeof x33 !== "object") {
$ERROR("#3.3: typeof new Date(1900, 0, 1, 0, 0, 0) should be 'object'");
}
var x34 = new Date(1900, 0, 1, 0, 0, 0);
-if(x34 === undefined){
+if (x34 === undefined) {
$ERROR("#3.4: new Date(1900, 0, 1, 0, 0, 0) should not be undefined");
}
@@ -73,12 +73,12 @@ if (new Date(1969, 11, 31, 23, 59, 59) === undefined) {
}
var x43 = new Date(1969, 11, 31, 23, 59, 59);
-if(typeof x43 !== "object"){
+if (typeof x43 !== "object") {
$ERROR("#4.3: typeof new Date(1969, 11, 31, 23, 59, 59) should be 'object'");
}
var x44 = new Date(1969, 11, 31, 23, 59, 59);
-if(x44 === undefined){
+if (x44 === undefined) {
$ERROR("#4.4: new Date(1969, 11, 31, 23, 59, 59) should not be undefined");
}
@@ -91,12 +91,12 @@ if (new Date(1969, 12, 1, 0, 0, 0) === undefined) {
}
var x53 = new Date(1969, 12, 1, 0, 0, 0);
-if(typeof x53 !== "object"){
+if (typeof x53 !== "object") {
$ERROR("#5.3: typeof new Date(1969, 12, 1, 0, 0, 0) should be 'object'");
}
var x54 = new Date(1969, 12, 1, 0, 0, 0);
-if(x54 === undefined){
+if (x54 === undefined) {
$ERROR("#5.4: new Date(1969, 12, 1, 0, 0, 0) should not be undefined");
}
@@ -109,12 +109,12 @@ if (new Date(1970, 0, 1, 0, 0, 0) === undefined) {
}
var x63 = new Date(1970, 0, 1, 0, 0, 0);
-if(typeof x63 !== "object"){
+if (typeof x63 !== "object") {
$ERROR("#6.3: typeof new Date(1970, 0, 1, 0, 0, 0) should be 'object'");
}
var x64 = new Date(1970, 0, 1, 0, 0, 0);
-if(x64 === undefined){
+if (x64 === undefined) {
$ERROR("#6.4: new Date(1970, 0, 1, 0, 0, 0) should not be undefined");
}
@@ -127,12 +127,12 @@ if (new Date(1999, 11, 31, 23, 59, 59) === undefined) {
}
var x73 = new Date(1999, 11, 31, 23, 59, 59);
-if(typeof x73 !== "object"){
+if (typeof x73 !== "object") {
$ERROR("#7.3: typeof new Date(1999, 11, 31, 23, 59, 59) should be 'object'");
}
var x74 = new Date(1999, 11, 31, 23, 59, 59);
-if(x74 === undefined){
+if (x74 === undefined) {
$ERROR("#7.4: new Date(1999, 11, 31, 23, 59, 59) should not be undefined");
}
@@ -145,12 +145,12 @@ if (new Date(1999, 12, 1, 0, 0, 0) === undefined) {
}
var x83 = new Date(1999, 12, 1, 0, 0, 0);
-if(typeof x83 !== "object"){
+if (typeof x83 !== "object") {
$ERROR("#8.3: typeof new Date(1999, 12, 1, 0, 0, 0) should be 'object'");
}
var x84 = new Date(1999, 12, 1, 0, 0, 0);
-if(x84 === undefined){
+if (x84 === undefined) {
$ERROR("#8.4: new Date(1999, 12, 1, 0, 0, 0) should not be undefined");
}
@@ -163,12 +163,12 @@ if (new Date(2000, 0, 1, 0, 0, 0) === undefined) {
}
var x93 = new Date(2000, 0, 1, 0, 0, 0);
-if(typeof x93 !== "object"){
+if (typeof x93 !== "object") {
$ERROR("#9.3: typeof new Date(2000, 0, 1, 0, 0, 0) should be 'object'");
}
var x94 = new Date(2000, 0, 1, 0, 0, 0);
-if(x94 === undefined){
+if (x94 === undefined) {
$ERROR("#9.4: new Date(2000, 0, 1, 0, 0, 0) should not be undefined");
}
@@ -181,12 +181,12 @@ if (new Date(2099, 11, 31, 23, 59, 59) === undefined) {
}
var x103 = new Date(2099, 11, 31, 23, 59, 59);
-if(typeof x103 !== "object"){
+if (typeof x103 !== "object") {
$ERROR("#10.3: typeof new Date(2099, 11, 31, 23, 59, 59) should be 'object'");
}
var x104 = new Date(2099, 11, 31, 23, 59, 59);
-if(x104 === undefined){
+if (x104 === undefined) {
$ERROR("#10.4: new Date(2099, 11, 31, 23, 59, 59) should not be undefined");
}
@@ -199,12 +199,12 @@ if (new Date(2099, 12, 1, 0, 0, 0) === undefined) {
}
var x113 = new Date(2099, 12, 1, 0, 0, 0);
-if(typeof x113 !== "object"){
+if (typeof x113 !== "object") {
$ERROR("#11.3: typeof new Date(2099, 12, 1, 0, 0, 0) should be 'object'");
}
var x114 = new Date(2099, 12, 1, 0, 0, 0);
-if(x114 === undefined){
+if (x114 === undefined) {
$ERROR("#11.4: new Date(2099, 12, 1, 0, 0, 0) should not be undefined");
}
@@ -217,11 +217,11 @@ if (new Date(2100, 0, 1, 0, 0, 0) === undefined) {
}
var x123 = new Date(2100, 0, 1, 0, 0, 0);
-if(typeof x123 !== "object"){
+if (typeof x123 !== "object") {
$ERROR("#12.3: typeof new Date(2100, 0, 1, 0, 0, 0) should be 'object'");
}
var x124 = new Date(2100, 0, 1, 0, 0, 0);
-if(x124 === undefined){
+if (x124 === undefined) {
$ERROR("#12.4: new Date(2100, 0, 1, 0, 0, 0) should not be undefined");
}
diff --git a/test/built-ins/Date/S15.9.3.1_A1_T6.js b/test/built-ins/Date/S15.9.3.1_A1_T6.js
index 5288bf7b9..dac4065f5 100644
--- a/test/built-ins/Date/S15.9.3.1_A1_T6.js
+++ b/test/built-ins/Date/S15.9.3.1_A1_T6.js
@@ -19,12 +19,12 @@ if (new Date(1899, 11, 31, 23, 59, 59, 999) === undefined) {
}
var x13 = new Date(1899, 11, 31, 23, 59, 59, 999);
-if(typeof x13 !== "object"){
+if (typeof x13 !== "object") {
$ERROR("#1.3: typeof new Date(1899, 11, 31, 23, 59, 59, 999) should be 'object'");
}
var x14 = new Date(1899, 11, 31, 23, 59, 59, 999);
-if(x14 === undefined){
+if (x14 === undefined) {
$ERROR("#1.4: new Date(1899, 11, 31, 23, 59, 59, 999) should not be undefined");
}
@@ -37,12 +37,12 @@ if (new Date(1899, 12, 1, 0, 0, 0, 0) === undefined) {
}
var x23 = new Date(1899, 12, 1, 0, 0, 0, 0);
-if(typeof x23 !== "object"){
+if (typeof x23 !== "object") {
$ERROR("#2.3: typeof new Date(1899, 12, 1, 0, 0, 0, 0) should be 'object'");
}
var x24 = new Date(1899, 12, 1, 0, 0, 0, 0);
-if(x24 === undefined){
+if (x24 === undefined) {
$ERROR("#2.4: new Date(1899, 12, 1, 0, 0, 0, 0) should not be undefined");
}
@@ -55,12 +55,12 @@ if (new Date(1900, 0, 1, 0, 0, 0, 0) === undefined) {
}
var x33 = new Date(1900, 0, 1, 0, 0, 0, 0);
-if(typeof x33 !== "object"){
+if (typeof x33 !== "object") {
$ERROR("#3.3: typeof new Date(1900, 0, 1, 0, 0, 0, 0) should be 'object'");
}
var x34 = new Date(1900, 0, 1, 0, 0, 0, 0);
-if(x34 === undefined){
+if (x34 === undefined) {
$ERROR("#3.4: new Date(1900, 0, 1, 0, 0, 0, 0) should not be undefined");
}
@@ -73,12 +73,12 @@ if (new Date(1969, 11, 31, 23, 59, 59, 999) === undefined) {
}
var x43 = new Date(1969, 11, 31, 23, 59, 59, 999);
-if(typeof x43 !== "object"){
+if (typeof x43 !== "object") {
$ERROR("#4.3: typeof new Date(1969, 11, 31, 23, 59, 59, 999) should be 'object'");
}
var x44 = new Date(1969, 11, 31, 23, 59, 59, 999);
-if(x44 === undefined){
+if (x44 === undefined) {
$ERROR("#4.4: new Date(1969, 11, 31, 23, 59, 59, 999) should not be undefined");
}
@@ -91,12 +91,12 @@ if (new Date(1969, 12, 1, 0, 0, 0, 0) === undefined) {
}
var x53 = new Date(1969, 12, 1, 0, 0, 0, 0);
-if(typeof x53 !== "object"){
+if (typeof x53 !== "object") {
$ERROR("#5.3: typeof new Date(1969, 12, 1, 0, 0, 0, 0) should be 'object'");
}
var x54 = new Date(1969, 12, 1, 0, 0, 0, 0);
-if(x54 === undefined){
+if (x54 === undefined) {
$ERROR("#5.4: new Date(1969, 12, 1, 0, 0, 0, 0) should not be undefined");
}
@@ -109,12 +109,12 @@ if (new Date(1970, 0, 1, 0, 0, 0, 0) === undefined) {
}
var x63 = new Date(1970, 0, 1, 0, 0, 0, 0);
-if(typeof x63 !== "object"){
+if (typeof x63 !== "object") {
$ERROR("#6.3: typeof new Date(1970, 0, 1, 0, 0, 0, 0) should be 'object'");
}
var x64 = new Date(1970, 0, 1, 0, 0, 0, 0);
-if(x64 === undefined){
+if (x64 === undefined) {
$ERROR("#6.4: new Date(1970, 0, 1, 0, 0, 0, 0) should not be undefined");
}
@@ -127,12 +127,12 @@ if (new Date(1999, 11, 31, 23, 59, 59, 999) === undefined) {
}
var x73 = new Date(1999, 11, 31, 23, 59, 59, 999);
-if(typeof x73 !== "object"){
+if (typeof x73 !== "object") {
$ERROR("#7.3: typeof new Date(1999, 11, 31, 23, 59, 59, 999) should be 'object'");
}
var x74 = new Date(1999, 11, 31, 23, 59, 59, 999);
-if(x74 === undefined){
+if (x74 === undefined) {
$ERROR("#7.4: new Date(1999, 11, 31, 23, 59, 59, 999) should not be undefined");
}
@@ -145,12 +145,12 @@ if (new Date(1999, 12, 1, 0, 0, 0, 0) === undefined) {
}
var x83 = new Date(1999, 12, 1, 0, 0, 0, 0);
-if(typeof x83 !== "object"){
+if (typeof x83 !== "object") {
$ERROR("#8.3: typeof new Date(1999, 12, 1, 0, 0, 0, 0) should be 'object'");
}
var x84 = new Date(1999, 12, 1, 0, 0, 0, 0);
-if(x84 === undefined){
+if (x84 === undefined) {
$ERROR("#8.4: new Date(1999, 12, 1, 0, 0, 0, 0) should not be undefined");
}
@@ -163,12 +163,12 @@ if (new Date(2000, 0, 1, 0, 0, 0, 0) === undefined) {
}
var x93 = new Date(2000, 0, 1, 0, 0, 0, 0);
-if(typeof x93 !== "object"){
+if (typeof x93 !== "object") {
$ERROR("#9.3: typeof new Date(2000, 0, 1, 0, 0, 0, 0) should be 'object'");
}
var x94 = new Date(2000, 0, 1, 0, 0, 0, 0);
-if(x94 === undefined){
+if (x94 === undefined) {
$ERROR("#9.4: new Date(2000, 0, 1, 0, 0, 0, 0) should not be undefined");
}
@@ -181,12 +181,12 @@ if (new Date(2099, 11, 31, 23, 59, 59, 999) === undefined) {
}
var x103 = new Date(2099, 11, 31, 23, 59, 59, 999);
-if(typeof x103 !== "object"){
+if (typeof x103 !== "object") {
$ERROR("#10.3: typeof new Date(2099, 11, 31, 23, 59, 59, 999) should be 'object'");
}
var x104 = new Date(2099, 11, 31, 23, 59, 59, 999);
-if(x104 === undefined){
+if (x104 === undefined) {
$ERROR("#10.4: new Date(2099, 11, 31, 23, 59, 59, 999) should not be undefined");
}
@@ -199,12 +199,12 @@ if (new Date(2099, 12, 1, 0, 0, 0, 0) === undefined) {
}
var x113 = new Date(2099, 12, 1, 0, 0, 0, 0);
-if(typeof x113 !== "object"){
+if (typeof x113 !== "object") {
$ERROR("#11.3: typeof new Date(2099, 12, 1, 0, 0, 0, 0) should be 'object'");
}
var x114 = new Date(2099, 12, 1, 0, 0, 0, 0);
-if(x114 === undefined){
+if (x114 === undefined) {
$ERROR("#11.4: new Date(2099, 12, 1, 0, 0, 0, 0) should not be undefined");
}
@@ -217,11 +217,11 @@ if (new Date(2100, 0, 1, 0, 0, 0, 0) === undefined) {
}
var x123 = new Date(2100, 0, 1, 0, 0, 0, 0);
-if(typeof x123 !== "object"){
+if (typeof x123 !== "object") {
$ERROR("#12.3: typeof new Date(2100, 0, 1, 0, 0, 0, 0) should be 'object'");
}
var x124 = new Date(2100, 0, 1, 0, 0, 0, 0);
-if(x124 === undefined){
+if (x124 === undefined) {
$ERROR("#12.4: new Date(2100, 0, 1, 0, 0, 0, 0) should not be undefined");
}
diff --git a/test/built-ins/Date/S15.9.3.1_A2_T1.js b/test/built-ins/Date/S15.9.3.1_A2_T1.js
index 6f31096ca..cf02c44a1 100644
--- a/test/built-ins/Date/S15.9.3.1_A2_T1.js
+++ b/test/built-ins/Date/S15.9.3.1_A2_T1.js
@@ -22,7 +22,7 @@ if (!Date.prototype.isPrototypeOf(x12)) {
}
var x13 = new Date(1899, 11);
-if(Date.prototype !== x13.constructor.prototype){
+if (Date.prototype !== x13.constructor.prototype) {
$ERROR("#1.3: Date.prototype === x13.constructor.prototype");
}
@@ -37,7 +37,7 @@ if (!Date.prototype.isPrototypeOf(x22)) {
}
var x23 = new Date(1899, 12);
-if(Date.prototype !== x23.constructor.prototype){
+if (Date.prototype !== x23.constructor.prototype) {
$ERROR("#2.3: Date.prototype === x23.constructor.prototype");
}
@@ -52,7 +52,7 @@ if (!Date.prototype.isPrototypeOf(x32)) {
}
var x33 = new Date(1900, 0);
-if(Date.prototype !== x33.constructor.prototype){
+if (Date.prototype !== x33.constructor.prototype) {
$ERROR("#3.3: Date.prototype === x33.constructor.prototype");
}
@@ -67,7 +67,7 @@ if (!Date.prototype.isPrototypeOf(x42)) {
}
var x43 = new Date(1969, 11);
-if(Date.prototype !== x43.constructor.prototype){
+if (Date.prototype !== x43.constructor.prototype) {
$ERROR("#4.3: Date.prototype === x43.constructor.prototype");
}
@@ -82,7 +82,7 @@ if (!Date.prototype.isPrototypeOf(x52)) {
}
var x53 = new Date(1969, 12);
-if(Date.prototype !== x53.constructor.prototype){
+if (Date.prototype !== x53.constructor.prototype) {
$ERROR("#5.3: Date.prototype === x53.constructor.prototype");
}
@@ -97,7 +97,7 @@ if (!Date.prototype.isPrototypeOf(x62)) {
}
var x63 = new Date(1970, 0);
-if(Date.prototype !== x63.constructor.prototype){
+if (Date.prototype !== x63.constructor.prototype) {
$ERROR("#6.3: Date.prototype === x63.constructor.prototype");
}
@@ -112,7 +112,7 @@ if (!Date.prototype.isPrototypeOf(x72)) {
}
var x73 = new Date(1999, 11);
-if(Date.prototype !== x73.constructor.prototype){
+if (Date.prototype !== x73.constructor.prototype) {
$ERROR("#7.3: Date.prototype === x73.constructor.prototype");
}
@@ -127,7 +127,7 @@ if (!Date.prototype.isPrototypeOf(x82)) {
}
var x83 = new Date(1999, 12);
-if(Date.prototype !== x83.constructor.prototype){
+if (Date.prototype !== x83.constructor.prototype) {
$ERROR("#8.3: Date.prototype === x83.constructor.prototype");
}
@@ -142,7 +142,7 @@ if (!Date.prototype.isPrototypeOf(x92)) {
}
var x93 = new Date(2000, 0);
-if(Date.prototype !== x93.constructor.prototype){
+if (Date.prototype !== x93.constructor.prototype) {
$ERROR("#9.3: Date.prototype === x93.constructor.prototype");
}
@@ -157,7 +157,7 @@ if (!Date.prototype.isPrototypeOf(x102)) {
}
var x103 = new Date(2099, 11);
-if(Date.prototype !== x103.constructor.prototype){
+if (Date.prototype !== x103.constructor.prototype) {
$ERROR("#10.3: Date.prototype === x103.constructor.prototype");
}
@@ -172,7 +172,7 @@ if (!Date.prototype.isPrototypeOf(x112)) {
}
var x113 = new Date(2099, 12);
-if(Date.prototype !== x113.constructor.prototype){
+if (Date.prototype !== x113.constructor.prototype) {
$ERROR("#11.3: Date.prototype === x113.constructor.prototype");
}
@@ -187,6 +187,6 @@ if (!Date.prototype.isPrototypeOf(x122)) {
}
var x123 = new Date(2100, 0);
-if(Date.prototype !== x123.constructor.prototype){
+if (Date.prototype !== x123.constructor.prototype) {
$ERROR("#12.3: Date.prototype === x123.constructor.prototype");
}
diff --git a/test/built-ins/Date/S15.9.3.1_A2_T2.js b/test/built-ins/Date/S15.9.3.1_A2_T2.js
index d94064962..b10c64585 100644
--- a/test/built-ins/Date/S15.9.3.1_A2_T2.js
+++ b/test/built-ins/Date/S15.9.3.1_A2_T2.js
@@ -22,7 +22,7 @@ if (!Date.prototype.isPrototypeOf(x12)) {
}
var x13 = new Date(1899, 11, 31);
-if(Date.prototype !== x13.constructor.prototype){
+if (Date.prototype !== x13.constructor.prototype) {
$ERROR("#1.3: Date.prototype === x13.constructor.prototype");
}
@@ -37,7 +37,7 @@ if (!Date.prototype.isPrototypeOf(x22)) {
}
var x23 = new Date(1899, 12, 1);
-if(Date.prototype !== x23.constructor.prototype){
+if (Date.prototype !== x23.constructor.prototype) {
$ERROR("#2.3: Date.prototype === x23.constructor.prototype");
}
@@ -52,7 +52,7 @@ if (!Date.prototype.isPrototypeOf(x32)) {
}
var x33 = new Date(1900, 0, 1);
-if(Date.prototype !== x33.constructor.prototype){
+if (Date.prototype !== x33.constructor.prototype) {
$ERROR("#3.3: Date.prototype === x33.constructor.prototype");
}
@@ -67,7 +67,7 @@ if (!Date.prototype.isPrototypeOf(x42)) {
}
var x43 = new Date(1969, 11, 31);
-if(Date.prototype !== x43.constructor.prototype){
+if (Date.prototype !== x43.constructor.prototype) {
$ERROR("#4.3: Date.prototype === x43.constructor.prototype");
}
@@ -82,7 +82,7 @@ if (!Date.prototype.isPrototypeOf(x52)) {
}
var x53 = new Date(1969, 12, 1);
-if(Date.prototype !== x53.constructor.prototype){
+if (Date.prototype !== x53.constructor.prototype) {
$ERROR("#5.3: Date.prototype === x53.constructor.prototype");
}
@@ -97,7 +97,7 @@ if (!Date.prototype.isPrototypeOf(x62)) {
}
var x63 = new Date(1970, 0, 1);
-if(Date.prototype !== x63.constructor.prototype){
+if (Date.prototype !== x63.constructor.prototype) {
$ERROR("#6.3: Date.prototype === x63.constructor.prototype");
}
@@ -112,7 +112,7 @@ if (!Date.prototype.isPrototypeOf(x72)) {
}
var x73 = new Date(1999, 11, 31);
-if(Date.prototype !== x73.constructor.prototype){
+if (Date.prototype !== x73.constructor.prototype) {
$ERROR("#7.3: Date.prototype === x73.constructor.prototype");
}
@@ -127,7 +127,7 @@ if (!Date.prototype.isPrototypeOf(x82)) {
}
var x83 = new Date(1999, 12, 1);
-if(Date.prototype !== x83.constructor.prototype){
+if (Date.prototype !== x83.constructor.prototype) {
$ERROR("#8.3: Date.prototype === x83.constructor.prototype");
}
@@ -142,7 +142,7 @@ if (!Date.prototype.isPrototypeOf(x92)) {
}
var x93 = new Date(2000, 0, 1);
-if(Date.prototype !== x93.constructor.prototype){
+if (Date.prototype !== x93.constructor.prototype) {
$ERROR("#9.3: Date.prototype === x93.constructor.prototype");
}
@@ -157,7 +157,7 @@ if (!Date.prototype.isPrototypeOf(x102)) {
}
var x103 = new Date(2099, 11, 31);
-if(Date.prototype !== x103.constructor.prototype){
+if (Date.prototype !== x103.constructor.prototype) {
$ERROR("#10.3: Date.prototype === x103.constructor.prototype");
}
@@ -172,7 +172,7 @@ if (!Date.prototype.isPrototypeOf(x112)) {
}
var x113 = new Date(2099, 12, 1);
-if(Date.prototype !== x113.constructor.prototype){
+if (Date.prototype !== x113.constructor.prototype) {
$ERROR("#11.3: Date.prototype === x113.constructor.prototype");
}
@@ -187,6 +187,6 @@ if (!Date.prototype.isPrototypeOf(x122)) {
}
var x123 = new Date(2100, 0, 1);
-if(Date.prototype !== x123.constructor.prototype){
+if (Date.prototype !== x123.constructor.prototype) {
$ERROR("#12.3: Date.prototype === x123.constructor.prototype");
}
diff --git a/test/built-ins/Date/S15.9.3.1_A2_T3.js b/test/built-ins/Date/S15.9.3.1_A2_T3.js
index cf4ed45a9..bb2848b63 100644
--- a/test/built-ins/Date/S15.9.3.1_A2_T3.js
+++ b/test/built-ins/Date/S15.9.3.1_A2_T3.js
@@ -22,7 +22,7 @@ if (!Date.prototype.isPrototypeOf(x12)) {
}
var x13 = new Date(1899, 11, 31, 23);
-if(Date.prototype !== x13.constructor.prototype){
+if (Date.prototype !== x13.constructor.prototype) {
$ERROR("#1.3: Date.prototype === x13.constructor.prototype");
}
@@ -37,7 +37,7 @@ if (!Date.prototype.isPrototypeOf(x22)) {
}
var x23 = new Date(1899, 12, 1, 0);
-if(Date.prototype !== x23.constructor.prototype){
+if (Date.prototype !== x23.constructor.prototype) {
$ERROR("#2.3: Date.prototype === x23.constructor.prototype");
}
@@ -52,7 +52,7 @@ if (!Date.prototype.isPrototypeOf(x32)) {
}
var x33 = new Date(1900, 0, 1, 0);
-if(Date.prototype !== x33.constructor.prototype){
+if (Date.prototype !== x33.constructor.prototype) {
$ERROR("#3.3: Date.prototype === x33.constructor.prototype");
}
@@ -67,7 +67,7 @@ if (!Date.prototype.isPrototypeOf(x42)) {
}
var x43 = new Date(1969, 11, 31, 23);
-if(Date.prototype !== x43.constructor.prototype){
+if (Date.prototype !== x43.constructor.prototype) {
$ERROR("#4.3: Date.prototype === x43.constructor.prototype");
}
@@ -82,7 +82,7 @@ if (!Date.prototype.isPrototypeOf(x52)) {
}
var x53 = new Date(1969, 12, 1, 0);
-if(Date.prototype !== x53.constructor.prototype){
+if (Date.prototype !== x53.constructor.prototype) {
$ERROR("#5.3: Date.prototype === x53.constructor.prototype");
}
@@ -97,7 +97,7 @@ if (!Date.prototype.isPrototypeOf(x62)) {
}
var x63 = new Date(1970, 0, 1, 0);
-if(Date.prototype !== x63.constructor.prototype){
+if (Date.prototype !== x63.constructor.prototype) {
$ERROR("#6.3: Date.prototype === x63.constructor.prototype");
}
@@ -112,7 +112,7 @@ if (!Date.prototype.isPrototypeOf(x72)) {
}
var x73 = new Date(1999, 11, 31, 23);
-if(Date.prototype !== x73.constructor.prototype){
+if (Date.prototype !== x73.constructor.prototype) {
$ERROR("#7.3: Date.prototype === x73.constructor.prototype");
}
@@ -127,7 +127,7 @@ if (!Date.prototype.isPrototypeOf(x82)) {
}
var x83 = new Date(1999, 12, 1, 0);
-if(Date.prototype !== x83.constructor.prototype){
+if (Date.prototype !== x83.constructor.prototype) {
$ERROR("#8.3: Date.prototype === x83.constructor.prototype");
}
@@ -142,7 +142,7 @@ if (!Date.prototype.isPrototypeOf(x92)) {
}
var x93 = new Date(2000, 0, 1, 0);
-if(Date.prototype !== x93.constructor.prototype){
+if (Date.prototype !== x93.constructor.prototype) {
$ERROR("#9.3: Date.prototype === x93.constructor.prototype");
}
@@ -157,7 +157,7 @@ if (!Date.prototype.isPrototypeOf(x102)) {
}
var x103 = new Date(2099, 11, 31, 23);
-if(Date.prototype !== x103.constructor.prototype){
+if (Date.prototype !== x103.constructor.prototype) {
$ERROR("#10.3: Date.prototype === x103.constructor.prototype");
}
@@ -172,7 +172,7 @@ if (!Date.prototype.isPrototypeOf(x112)) {
}
var x113 = new Date(2099, 12, 1, 0);
-if(Date.prototype !== x113.constructor.prototype){
+if (Date.prototype !== x113.constructor.prototype) {
$ERROR("#11.3: Date.prototype === x113.constructor.prototype");
}
@@ -187,6 +187,6 @@ if (!Date.prototype.isPrototypeOf(x122)) {
}
var x123 = new Date(2100, 0, 1, 0);
-if(Date.prototype !== x123.constructor.prototype){
+if (Date.prototype !== x123.constructor.prototype) {
$ERROR("#12.3: Date.prototype === x123.constructor.prototype");
}
diff --git a/test/built-ins/Date/S15.9.3.1_A2_T4.js b/test/built-ins/Date/S15.9.3.1_A2_T4.js
index 1b2c23946..b1549d400 100644
--- a/test/built-ins/Date/S15.9.3.1_A2_T4.js
+++ b/test/built-ins/Date/S15.9.3.1_A2_T4.js
@@ -22,7 +22,7 @@ if (!Date.prototype.isPrototypeOf(x12)) {
}
var x13 = new Date(1899, 11, 31, 23, 59);
-if(Date.prototype !== x13.constructor.prototype){
+if (Date.prototype !== x13.constructor.prototype) {
$ERROR("#1.3: Date.prototype === x13.constructor.prototype");
}
@@ -37,7 +37,7 @@ if (!Date.prototype.isPrototypeOf(x22)) {
}
var x23 = new Date(1899, 12, 1, 0, 0);
-if(Date.prototype !== x23.constructor.prototype){
+if (Date.prototype !== x23.constructor.prototype) {
$ERROR("#2.3: Date.prototype === x23.constructor.prototype");
}
@@ -52,7 +52,7 @@ if (!Date.prototype.isPrototypeOf(x32)) {
}
var x33 = new Date(1900, 0, 1, 0, 0);
-if(Date.prototype !== x33.constructor.prototype){
+if (Date.prototype !== x33.constructor.prototype) {
$ERROR("#3.3: Date.prototype === x33.constructor.prototype");
}
@@ -67,7 +67,7 @@ if (!Date.prototype.isPrototypeOf(x42)) {
}
var x43 = new Date(1969, 11, 31, 23, 59);
-if(Date.prototype !== x43.constructor.prototype){
+if (Date.prototype !== x43.constructor.prototype) {
$ERROR("#4.3: Date.prototype === x43.constructor.prototype");
}
@@ -82,7 +82,7 @@ if (!Date.prototype.isPrototypeOf(x52)) {
}
var x53 = new Date(1969, 12, 1, 0, 0);
-if(Date.prototype !== x53.constructor.prototype){
+if (Date.prototype !== x53.constructor.prototype) {
$ERROR("#5.3: Date.prototype === x53.constructor.prototype");
}
@@ -97,7 +97,7 @@ if (!Date.prototype.isPrototypeOf(x62)) {
}
var x63 = new Date(1970, 0, 1, 0, 0);
-if(Date.prototype !== x63.constructor.prototype){
+if (Date.prototype !== x63.constructor.prototype) {
$ERROR("#6.3: Date.prototype === x63.constructor.prototype");
}
@@ -112,7 +112,7 @@ if (!Date.prototype.isPrototypeOf(x72)) {
}
var x73 = new Date(1999, 11, 31, 23, 59);
-if(Date.prototype !== x73.constructor.prototype){
+if (Date.prototype !== x73.constructor.prototype) {
$ERROR("#7.3: Date.prototype === x73.constructor.prototype");
}
@@ -127,7 +127,7 @@ if (!Date.prototype.isPrototypeOf(x82)) {
}
var x83 = new Date(1999, 12, 1, 0, 0);
-if(Date.prototype !== x83.constructor.prototype){
+if (Date.prototype !== x83.constructor.prototype) {
$ERROR("#8.3: Date.prototype === x83.constructor.prototype");
}
@@ -142,7 +142,7 @@ if (!Date.prototype.isPrototypeOf(x92)) {
}
var x93 = new Date(2000, 0, 1, 0, 0);
-if(Date.prototype !== x93.constructor.prototype){
+if (Date.prototype !== x93.constructor.prototype) {
$ERROR("#9.3: Date.prototype === x93.constructor.prototype");
}
@@ -157,7 +157,7 @@ if (!Date.prototype.isPrototypeOf(x102)) {
}
var x103 = new Date(2099, 11, 31, 23, 59);
-if(Date.prototype !== x103.constructor.prototype){
+if (Date.prototype !== x103.constructor.prototype) {
$ERROR("#10.3: Date.prototype === x103.constructor.prototype");
}
@@ -172,7 +172,7 @@ if (!Date.prototype.isPrototypeOf(x112)) {
}
var x113 = new Date(2099, 12, 1, 0, 0);
-if(Date.prototype !== x113.constructor.prototype){
+if (Date.prototype !== x113.constructor.prototype) {
$ERROR("#11.3: Date.prototype === x113.constructor.prototype");
}
@@ -187,6 +187,6 @@ if (!Date.prototype.isPrototypeOf(x122)) {
}
var x123 = new Date(2100, 0, 1, 0, 0);
-if(Date.prototype !== x123.constructor.prototype){
+if (Date.prototype !== x123.constructor.prototype) {
$ERROR("#12.3: Date.prototype === x123.constructor.prototype");
}
diff --git a/test/built-ins/Date/S15.9.3.1_A2_T5.js b/test/built-ins/Date/S15.9.3.1_A2_T5.js
index d1b0a43fa..8b34dd84b 100644
--- a/test/built-ins/Date/S15.9.3.1_A2_T5.js
+++ b/test/built-ins/Date/S15.9.3.1_A2_T5.js
@@ -22,7 +22,7 @@ if (!Date.prototype.isPrototypeOf(x12)) {
}
var x13 = new Date(1899, 11, 31, 23, 59, 59);
-if(Date.prototype !== x13.constructor.prototype){
+if (Date.prototype !== x13.constructor.prototype) {
$ERROR("#1.3: Date.prototype === x13.constructor.prototype");
}
@@ -37,7 +37,7 @@ if (!Date.prototype.isPrototypeOf(x22)) {
}
var x23 = new Date(1899, 12, 1, 0, 0, 0);
-if(Date.prototype !== x23.constructor.prototype){
+if (Date.prototype !== x23.constructor.prototype) {
$ERROR("#2.3: Date.prototype === x23.constructor.prototype");
}
@@ -52,7 +52,7 @@ if (!Date.prototype.isPrototypeOf(x32)) {
}
var x33 = new Date(1900, 0, 1, 0, 0, 0);
-if(Date.prototype !== x33.constructor.prototype){
+if (Date.prototype !== x33.constructor.prototype) {
$ERROR("#3.3: Date.prototype === x33.constructor.prototype");
}
@@ -67,7 +67,7 @@ if (!Date.prototype.isPrototypeOf(x42)) {
}
var x43 = new Date(1969, 11, 31, 23, 59, 59);
-if(Date.prototype !== x43.constructor.prototype){
+if (Date.prototype !== x43.constructor.prototype) {
$ERROR("#4.3: Date.prototype === x43.constructor.prototype");
}
@@ -82,7 +82,7 @@ if (!Date.prototype.isPrototypeOf(x52)) {
}
var x53 = new Date(1969, 12, 1, 0, 0, 0);
-if(Date.prototype !== x53.constructor.prototype){
+if (Date.prototype !== x53.constructor.prototype) {
$ERROR("#5.3: Date.prototype === x53.constructor.prototype");
}
@@ -97,7 +97,7 @@ if (!Date.prototype.isPrototypeOf(x62)) {
}
var x63 = new Date(1970, 0, 1, 0, 0, 0);
-if(Date.prototype !== x63.constructor.prototype){
+if (Date.prototype !== x63.constructor.prototype) {
$ERROR("#6.3: Date.prototype === x63.constructor.prototype");
}
@@ -112,7 +112,7 @@ if (!Date.prototype.isPrototypeOf(x72)) {
}
var x73 = new Date(1999, 11, 31, 23, 59, 59);
-if(Date.prototype !== x73.constructor.prototype){
+if (Date.prototype !== x73.constructor.prototype) {
$ERROR("#7.3: Date.prototype === x73.constructor.prototype");
}
@@ -127,7 +127,7 @@ if (!Date.prototype.isPrototypeOf(x82)) {
}
var x83 = new Date(1999, 12, 1, 0, 0, 0);
-if(Date.prototype !== x83.constructor.prototype){
+if (Date.prototype !== x83.constructor.prototype) {
$ERROR("#8.3: Date.prototype === x83.constructor.prototype");
}
@@ -142,7 +142,7 @@ if (!Date.prototype.isPrototypeOf(x92)) {
}
var x93 = new Date(2000, 0, 1, 0, 0, 0);
-if(Date.prototype !== x93.constructor.prototype){
+if (Date.prototype !== x93.constructor.prototype) {
$ERROR("#9.3: Date.prototype === x93.constructor.prototype");
}
@@ -157,7 +157,7 @@ if (!Date.prototype.isPrototypeOf(x102)) {
}
var x103 = new Date(2099, 11, 31, 23, 59, 59);
-if(Date.prototype !== x103.constructor.prototype){
+if (Date.prototype !== x103.constructor.prototype) {
$ERROR("#10.3: Date.prototype === x103.constructor.prototype");
}
@@ -172,7 +172,7 @@ if (!Date.prototype.isPrototypeOf(x112)) {
}
var x113 = new Date(2099, 12, 1, 0, 0, 0);
-if(Date.prototype !== x113.constructor.prototype){
+if (Date.prototype !== x113.constructor.prototype) {
$ERROR("#11.3: Date.prototype === x113.constructor.prototype");
}
@@ -187,6 +187,6 @@ if (!Date.prototype.isPrototypeOf(x122)) {
}
var x123 = new Date(2100, 0, 1, 0, 0, 0);
-if(Date.prototype !== x123.constructor.prototype){
+if (Date.prototype !== x123.constructor.prototype) {
$ERROR("#12.3: Date.prototype === x123.constructor.prototype");
}
diff --git a/test/built-ins/Date/S15.9.3.1_A2_T6.js b/test/built-ins/Date/S15.9.3.1_A2_T6.js
index b3ff5fc8c..8fde48a2f 100644
--- a/test/built-ins/Date/S15.9.3.1_A2_T6.js
+++ b/test/built-ins/Date/S15.9.3.1_A2_T6.js
@@ -22,7 +22,7 @@ if (!Date.prototype.isPrototypeOf(x12)) {
}
var x13 = new Date(1899, 11, 31, 23, 59, 59, 999);
-if(Date.prototype !== x13.constructor.prototype){
+if (Date.prototype !== x13.constructor.prototype) {
$ERROR("#1.3: Date.prototype === x13.constructor.prototype");
}
@@ -37,7 +37,7 @@ if (!Date.prototype.isPrototypeOf(x22)) {
}
var x23 = new Date(1899, 12, 1, 0, 0, 0, 0);
-if(Date.prototype !== x23.constructor.prototype){
+if (Date.prototype !== x23.constructor.prototype) {
$ERROR("#2.3: Date.prototype === x23.constructor.prototype");
}
@@ -52,7 +52,7 @@ if (!Date.prototype.isPrototypeOf(x32)) {
}
var x33 = new Date(1900, 0, 1, 0, 0, 0, 0);
-if(Date.prototype !== x33.constructor.prototype){
+if (Date.prototype !== x33.constructor.prototype) {
$ERROR("#3.3: Date.prototype === x33.constructor.prototype");
}
@@ -67,7 +67,7 @@ if (!Date.prototype.isPrototypeOf(x42)) {
}
var x43 = new Date(1969, 11, 31, 23, 59, 59, 999);
-if(Date.prototype !== x43.constructor.prototype){
+if (Date.prototype !== x43.constructor.prototype) {
$ERROR("#4.3: Date.prototype === x43.constructor.prototype");
}
@@ -82,7 +82,7 @@ if (!Date.prototype.isPrototypeOf(x52)) {
}
var x53 = new Date(1969, 12, 1, 0, 0, 0, 0);
-if(Date.prototype !== x53.constructor.prototype){
+if (Date.prototype !== x53.constructor.prototype) {
$ERROR("#5.3: Date.prototype === x53.constructor.prototype");
}
@@ -97,7 +97,7 @@ if (!Date.prototype.isPrototypeOf(x62)) {
}
var x63 = new Date(1970, 0, 1, 0, 0, 0, 0);
-if(Date.prototype !== x63.constructor.prototype){
+if (Date.prototype !== x63.constructor.prototype) {
$ERROR("#6.3: Date.prototype === x63.constructor.prototype");
}
@@ -112,7 +112,7 @@ if (!Date.prototype.isPrototypeOf(x72)) {
}
var x73 = new Date(1999, 11, 31, 23, 59, 59, 999);
-if(Date.prototype !== x73.constructor.prototype){
+if (Date.prototype !== x73.constructor.prototype) {
$ERROR("#7.3: Date.prototype === x73.constructor.prototype");
}
@@ -127,7 +127,7 @@ if (!Date.prototype.isPrototypeOf(x82)) {
}
var x83 = new Date(1999, 12, 1, 0, 0, 0, 0);
-if(Date.prototype !== x83.constructor.prototype){
+if (Date.prototype !== x83.constructor.prototype) {
$ERROR("#8.3: Date.prototype === x83.constructor.prototype");
}
@@ -142,7 +142,7 @@ if (!Date.prototype.isPrototypeOf(x92)) {
}
var x93 = new Date(2000, 0, 1, 0, 0, 0, 0);
-if(Date.prototype !== x93.constructor.prototype){
+if (Date.prototype !== x93.constructor.prototype) {
$ERROR("#9.3: Date.prototype === x93.constructor.prototype");
}
@@ -157,7 +157,7 @@ if (!Date.prototype.isPrototypeOf(x102)) {
}
var x103 = new Date(2099, 11, 31, 23, 59, 59, 999);
-if(Date.prototype !== x103.constructor.prototype){
+if (Date.prototype !== x103.constructor.prototype) {
$ERROR("#10.3: Date.prototype === x103.constructor.prototype");
}
@@ -172,7 +172,7 @@ if (!Date.prototype.isPrototypeOf(x112)) {
}
var x113 = new Date(2099, 12, 1, 0, 0, 0, 0);
-if(Date.prototype !== x113.constructor.prototype){
+if (Date.prototype !== x113.constructor.prototype) {
$ERROR("#11.3: Date.prototype === x113.constructor.prototype");
}
@@ -187,6 +187,6 @@ if (!Date.prototype.isPrototypeOf(x122)) {
}
var x123 = new Date(2100, 0, 1, 0, 0, 0, 0);
-if(Date.prototype !== x123.constructor.prototype){
+if (Date.prototype !== x123.constructor.prototype) {
$ERROR("#12.3: Date.prototype === x123.constructor.prototype");
}
diff --git a/test/built-ins/Date/S15.9.3.1_A4_T1.js b/test/built-ins/Date/S15.9.3.1_A4_T1.js
index 6f7174902..890ce6643 100644
--- a/test/built-ins/Date/S15.9.3.1_A4_T1.js
+++ b/test/built-ins/Date/S15.9.3.1_A4_T1.js
@@ -17,30 +17,34 @@ es5id: 15.9.3.1_A4_T1
description: 2 arguments, (year, month)
---*/
-var myObj = function(val){
+var myObj = function(val) {
this.value = val;
- this.valueOf = function(){throw "valueOf-"+this.value;};
- this.toString = function(){throw "toString-"+this.value;};
+ this.valueOf = function() {
+ throw "valueOf-" + this.value;
+ };
+ this.toString = function() {
+ throw "toString-" + this.value;
+ };
};
//CHECK#1
-try{
+try {
var x1 = new Date(new myObj(1), new myObj(2));
$ERROR("#1: The 1st step is calling ToNumber(year)");
}
-catch(e){
- if(e !== "valueOf-1"){
+catch (e) {
+ if (e !== "valueOf-1") {
$ERROR("#1: The 1st step is calling ToNumber(year)");
}
}
//CHECK#2
-try{
+try {
var x2 = new Date(1, new myObj(2));
$ERROR("#2: The 2nd step is calling ToNumber(month)");
}
-catch(e){
- if(e !== "valueOf-2"){
+catch (e) {
+ if (e !== "valueOf-2") {
$ERROR("#2: The 2nd step is calling ToNumber(month)");
}
}
diff --git a/test/built-ins/Date/S15.9.3.1_A4_T2.js b/test/built-ins/Date/S15.9.3.1_A4_T2.js
index 3dbe78ff7..bc3fc2503 100644
--- a/test/built-ins/Date/S15.9.3.1_A4_T2.js
+++ b/test/built-ins/Date/S15.9.3.1_A4_T2.js
@@ -17,41 +17,45 @@ es5id: 15.9.3.1_A4_T2
description: 3 arguments, (year, month, date)
---*/
-var myObj = function(val){
+var myObj = function(val) {
this.value = val;
- this.valueOf = function(){throw "valueOf-"+this.value;};
- this.toString = function(){throw "toString-"+this.value;};
+ this.valueOf = function() {
+ throw "valueOf-" + this.value;
+ };
+ this.toString = function() {
+ throw "toString-" + this.value;
+ };
};
//CHECK#1
-try{
+try {
var x1 = new Date(new myObj(1), new myObj(2), new myObj(3));
$ERROR("#1: The 1st step is calling ToNumber(year)");
}
-catch(e){
- if(e !== "valueOf-1"){
+catch (e) {
+ if (e !== "valueOf-1") {
$ERROR("#1: The 1st step is calling ToNumber(year)");
}
}
//CHECK#2
-try{
+try {
var x2 = new Date(1, new myObj(2), new myObj(3));
$ERROR("#2: The 2nd step is calling ToNumber(month)");
}
-catch(e){
- if(e !== "valueOf-2"){
+catch (e) {
+ if (e !== "valueOf-2") {
$ERROR("#2: The 2nd step is calling ToNumber(month)");
}
}
//CHECK#3
-try{
+try {
var x3 = new Date(1, 2, new myObj(3));
$ERROR("#3: The 3rd step is calling ToNumber(date)");
}
-catch(e){
- if(e !== "valueOf-3"){
+catch (e) {
+ if (e !== "valueOf-3") {
$ERROR("#3: The 3rd step is calling ToNumber(date)");
}
}
diff --git a/test/built-ins/Date/S15.9.3.1_A4_T3.js b/test/built-ins/Date/S15.9.3.1_A4_T3.js
index ff59c4e69..2280edf5d 100644
--- a/test/built-ins/Date/S15.9.3.1_A4_T3.js
+++ b/test/built-ins/Date/S15.9.3.1_A4_T3.js
@@ -17,52 +17,56 @@ es5id: 15.9.3.1_A4_T3
description: 4 arguments, (year, month, date, hours)
---*/
-var myObj = function(val){
+var myObj = function(val) {
this.value = val;
- this.valueOf = function(){throw "valueOf-"+this.value;};
- this.toString = function(){throw "toString-"+this.value;};
+ this.valueOf = function() {
+ throw "valueOf-" + this.value;
+ };
+ this.toString = function() {
+ throw "toString-" + this.value;
+ };
};
//CHECK#1
-try{
+try {
var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4));
$ERROR("#1: The 1st step is calling ToNumber(year)");
}
-catch(e){
- if(e !== "valueOf-1"){
+catch (e) {
+ if (e !== "valueOf-1") {
$ERROR("#1: The 1st step is calling ToNumber(year)");
}
}
//CHECK#2
-try{
+try {
var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4));
$ERROR("#2: The 2nd step is calling ToNumber(month)");
}
-catch(e){
- if(e !== "valueOf-2"){
+catch (e) {
+ if (e !== "valueOf-2") {
$ERROR("#2: The 2nd step is calling ToNumber(month)");
}
}
//CHECK#3
-try{
+try {
var x3 = new Date(1, 2, new myObj(3), new myObj(4));
$ERROR("#3: The 3rd step is calling ToNumber(date)");
}
-catch(e){
- if(e !== "valueOf-3"){
+catch (e) {
+ if (e !== "valueOf-3") {
$ERROR("#3: The 3rd step is calling ToNumber(date)");
}
}
//CHECK#4
-try{
+try {
var x4 = new Date(1, 2, 3, new myObj(4));
$ERROR("#4: The 4th step is calling ToNumber(hours)");
}
-catch(e){
- if(e !== "valueOf-4"){
+catch (e) {
+ if (e !== "valueOf-4") {
$ERROR("#4: The 4th step is calling ToNumber(hours)");
}
}
diff --git a/test/built-ins/Date/S15.9.3.1_A4_T4.js b/test/built-ins/Date/S15.9.3.1_A4_T4.js
index c9377d599..49a0d15d2 100644
--- a/test/built-ins/Date/S15.9.3.1_A4_T4.js
+++ b/test/built-ins/Date/S15.9.3.1_A4_T4.js
@@ -17,63 +17,67 @@ es5id: 15.9.3.1_A4_T4
description: 5 arguments, (year, month, date, hours, minutes)
---*/
-var myObj = function(val){
+var myObj = function(val) {
this.value = val;
- this.valueOf = function(){throw "valueOf-"+this.value;};
- this.toString = function(){throw "toString-"+this.value;};
+ this.valueOf = function() {
+ throw "valueOf-" + this.value;
+ };
+ this.toString = function() {
+ throw "toString-" + this.value;
+ };
};
//CHECK#1
-try{
+try {
var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4), new myObj(5));
$ERROR("#1: The 1st step is calling ToNumber(year)");
}
-catch(e){
- if(e !== "valueOf-1"){
+catch (e) {
+ if (e !== "valueOf-1") {
$ERROR("#1: The 1st step is calling ToNumber(year)");
}
}
//CHECK#2
-try{
+try {
var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4), new myObj(5));
$ERROR("#2: The 2nd step is calling ToNumber(month)");
}
-catch(e){
- if(e !== "valueOf-2"){
+catch (e) {
+ if (e !== "valueOf-2") {
$ERROR("#2: The 2nd step is calling ToNumber(month)");
}
}
//CHECK#3
-try{
+try {
var x3 = new Date(1, 2, new myObj(3), new myObj(4), new myObj(5));
$ERROR("#3: The 3rd step is calling ToNumber(date)");
}
-catch(e){
- if(e !== "valueOf-3"){
+catch (e) {
+ if (e !== "valueOf-3") {
$ERROR("#3: The 3rd step is calling ToNumber(date)");
}
}
//CHECK#4
-try{
+try {
var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5));
$ERROR("#4: The 4th step is calling ToNumber(hours)");
}
-catch(e){
- if(e !== "valueOf-4"){
+catch (e) {
+ if (e !== "valueOf-4") {
$ERROR("#4: The 4th step is calling ToNumber(hours)");
}
}
//CHECK#5
-try{
+try {
var x5 = new Date(1, 2, 3, 4, new myObj(5));
$ERROR("#5: The 5th step is calling ToNumber(minutes)");
}
-catch(e){
- if(e !== "valueOf-5"){
+catch (e) {
+ if (e !== "valueOf-5") {
$ERROR("#5: The 5th step is calling ToNumber(minutes)");
}
}
diff --git a/test/built-ins/Date/S15.9.3.1_A4_T5.js b/test/built-ins/Date/S15.9.3.1_A4_T5.js
index 646a93696..f7bf7f204 100644
--- a/test/built-ins/Date/S15.9.3.1_A4_T5.js
+++ b/test/built-ins/Date/S15.9.3.1_A4_T5.js
@@ -17,74 +17,78 @@ es5id: 15.9.3.1_A4_T5
description: 6 arguments, (year, month, date, hours, minutes, seconds)
---*/
-var myObj = function(val){
+var myObj = function(val) {
this.value = val;
- this.valueOf = function(){throw "valueOf-"+this.value;};
- this.toString = function(){throw "toString-"+this.value;};
+ this.valueOf = function() {
+ throw "valueOf-" + this.value;
+ };
+ this.toString = function() {
+ throw "toString-" + this.value;
+ };
};
//CHECK#1
-try{
+try {
var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6));
$ERROR("#1: The 1st step is calling ToNumber(year)");
}
-catch(e){
- if(e !== "valueOf-1"){
+catch (e) {
+ if (e !== "valueOf-1") {
$ERROR("#1: The 1st step is calling ToNumber(year)");
}
}
//CHECK#2
-try{
+try {
var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6));
$ERROR("#2: The 2nd step is calling ToNumber(month)");
}
-catch(e){
- if(e !== "valueOf-2"){
+catch (e) {
+ if (e !== "valueOf-2") {
$ERROR("#2: The 2nd step is calling ToNumber(month)");
}
}
//CHECK#3
-try{
+try {
var x3 = new Date(1, 2, new myObj(3), new myObj(4), new myObj(5), new myObj(6));
$ERROR("#3: The 3rd step is calling ToNumber(date)");
}
-catch(e){
- if(e !== "valueOf-3"){
+catch (e) {
+ if (e !== "valueOf-3") {
$ERROR("#3: The 3rd step is calling ToNumber(date)");
}
}
//CHECK#4
-try{
+try {
var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5), new myObj(6));
$ERROR("#4: The 4th step is calling ToNumber(hours)");
}
-catch(e){
- if(e !== "valueOf-4"){
+catch (e) {
+ if (e !== "valueOf-4") {
$ERROR("#4: The 4th step is calling ToNumber(hours)");
}
}
//CHECK#5
-try{
+try {
var x5 = new Date(1, 2, 3, 4, new myObj(5), new myObj(6));
$ERROR("#5: The 5th step is calling ToNumber(minutes)");
}
-catch(e){
- if(e !== "valueOf-5"){
+catch (e) {
+ if (e !== "valueOf-5") {
$ERROR("#5: The 5th step is calling ToNumber(minutes)");
}
}
//CHECK#6
-try{
+try {
var x6 = new Date(1, 2, 3, 4, 5, new myObj(6));
$ERROR("#6: The 6th step is calling ToNumber(seconds)");
}
-catch(e){
- if(e !== "valueOf-6"){
+catch (e) {
+ if (e !== "valueOf-6") {
$ERROR("#6: The 6th step is calling ToNumber(seconds)");
}
}
diff --git a/test/built-ins/Date/S15.9.3.1_A4_T6.js b/test/built-ins/Date/S15.9.3.1_A4_T6.js
index 16f6dedb8..8eebc2ec6 100644
--- a/test/built-ins/Date/S15.9.3.1_A4_T6.js
+++ b/test/built-ins/Date/S15.9.3.1_A4_T6.js
@@ -17,85 +17,89 @@ es5id: 15.9.3.1_A4_T6
description: 7 arguments, (year, month, date, hours, minutes, seconds, ms)
---*/
-var myObj = function(val){
+var myObj = function(val) {
this.value = val;
- this.valueOf = function(){throw "valueOf-"+this.value;};
- this.toString = function(){throw "toString-"+this.value;};
+ this.valueOf = function() {
+ throw "valueOf-" + this.value;
+ };
+ this.toString = function() {
+ throw "toString-" + this.value;
+ };
};
//CHECK#1
-try{
+try {
var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6), new myObj(7));
$ERROR("#1: The 1st step is calling ToNumber(year)");
}
-catch(e){
- if(e !== "valueOf-1"){
+catch (e) {
+ if (e !== "valueOf-1") {
$ERROR("#1: The 1st step is calling ToNumber(year)");
}
}
//CHECK#2
-try{
+try {
var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6), new myObj(7));
$ERROR("#2: The 2nd step is calling ToNumber(month)");
}
-catch(e){
- if(e !== "valueOf-2"){
+catch (e) {
+ if (e !== "valueOf-2") {
$ERROR("#2: The 2nd step is calling ToNumber(month)");
}
}
//CHECK#3
-try{
+try {
var x3 = new Date(1, 2, new myObj(3), new myObj(4), new myObj(5), new myObj(6), new myObj(7));
$ERROR("#3: The 3rd step is calling ToNumber(date)");
}
-catch(e){
- if(e !== "valueOf-3"){
+catch (e) {
+ if (e !== "valueOf-3") {
$ERROR("#3: The 3rd step is calling ToNumber(date)");
}
}
//CHECK#4
-try{
+try {
var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5), new myObj(6), new myObj(7));
$ERROR("#4: The 4th step is calling ToNumber(hours)");
}
-catch(e){
- if(e !== "valueOf-4"){
+catch (e) {
+ if (e !== "valueOf-4") {
$ERROR("#4: The 4th step is calling ToNumber(hours)");
}
}
//CHECK#5
-try{
+try {
var x5 = new Date(1, 2, 3, 4, new myObj(5), new myObj(6), new myObj(7));
$ERROR("#5: The 5th step is calling ToNumber(minutes)");
}
-catch(e){
- if(e !== "valueOf-5"){
+catch (e) {
+ if (e !== "valueOf-5") {
$ERROR("#5: The 5th step is calling ToNumber(minutes)");
}
}
//CHECK#6
-try{
+try {
var x6 = new Date(1, 2, 3, 4, 5, new myObj(6), new myObj(7));
$ERROR("#6: The 6th step is calling ToNumber(seconds)");
}
-catch(e){
- if(e !== "valueOf-6"){
+catch (e) {
+ if (e !== "valueOf-6") {
$ERROR("#6: The 6th step is calling ToNumber(seconds)");
}
}
//CHECK#7
-try{
+try {
var x7 = new Date(1, 2, 3, 4, 5, 6, new myObj(7));
$ERROR("#7: The 7th step is calling ToNumber(ms)");
}
-catch(e){
- if(e !== "valueOf-7"){
+catch (e) {
+ if (e !== "valueOf-7") {
$ERROR("#7: The 7th step is calling ToNumber(ms)");
}
}
diff --git a/test/built-ins/Date/S15.9.3.1_A5_T1.js b/test/built-ins/Date/S15.9.3.1_A5_T1.js
index 9c98a6a64..e9f2d545c 100644
--- a/test/built-ins/Date/S15.9.3.1_A5_T1.js
+++ b/test/built-ins/Date/S15.9.3.1_A5_T1.js
@@ -33,7 +33,7 @@ assertRelativeDateMs(new Date(1999, 11), 944006400000);
assertRelativeDateMs(new Date(1999, 12), 946684800000);
-assertRelativeDateMs(new Date(2000, 0), 946684800000);
+assertRelativeDateMs(new Date(2000, 0), 946684800000);
assertRelativeDateMs(new Date(2099, 11), 4099766400000);
diff --git a/test/built-ins/Date/S15.9.3.1_A6_T1.js b/test/built-ins/Date/S15.9.3.1_A6_T1.js
index 28a0f459f..90c8ac12d 100644
--- a/test/built-ins/Date/S15.9.3.1_A6_T1.js
+++ b/test/built-ins/Date/S15.9.3.1_A6_T1.js
@@ -10,7 +10,7 @@ es5id: 15.9.3.1_A6_T1
description: 2 arguments, (year, month)
---*/
-function DateValue(year, month, date, hours, minutes, seconds, ms){
+function DateValue(year, month, date, hours, minutes, seconds, ms) {
return new Date(year, month, date, hours, minutes, seconds, ms).valueOf();
}
diff --git a/test/built-ins/Date/S15.9.3.1_A6_T2.js b/test/built-ins/Date/S15.9.3.1_A6_T2.js
index 83e35fd24..cc3c1a289 100644
--- a/test/built-ins/Date/S15.9.3.1_A6_T2.js
+++ b/test/built-ins/Date/S15.9.3.1_A6_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.3.1_A6_T2
description: 3 arguments, (year, month, date)
---*/
-function DateValue(year, month, date, hours, minutes, seconds, ms){
+function DateValue(year, month, date, hours, minutes, seconds, ms) {
return new Date(year, month, date, hours, minutes, seconds, ms).valueOf();
}
diff --git a/test/built-ins/Date/S15.9.3.1_A6_T3.js b/test/built-ins/Date/S15.9.3.1_A6_T3.js
index aec94cc40..f7d549bb9 100644
--- a/test/built-ins/Date/S15.9.3.1_A6_T3.js
+++ b/test/built-ins/Date/S15.9.3.1_A6_T3.js
@@ -10,7 +10,7 @@ es5id: 15.9.3.1_A6_T3
description: 4 arguments, (year, month, date, hours)
---*/
-function DateValue(year, month, date, hours, minutes, seconds, ms){
+function DateValue(year, month, date, hours, minutes, seconds, ms) {
return new Date(year, month, date, hours, minutes, seconds, ms).valueOf();
}
diff --git a/test/built-ins/Date/S15.9.3.1_A6_T4.js b/test/built-ins/Date/S15.9.3.1_A6_T4.js
index db3d3e990..69d00640c 100644
--- a/test/built-ins/Date/S15.9.3.1_A6_T4.js
+++ b/test/built-ins/Date/S15.9.3.1_A6_T4.js
@@ -10,7 +10,7 @@ es5id: 15.9.3.1_A6_T4
description: 5 arguments, (year, month, date, hours, minutes)
---*/
-function DateValue(year, month, date, hours, minutes, seconds, ms){
+function DateValue(year, month, date, hours, minutes, seconds, ms) {
return new Date(year, month, date, hours, minutes, seconds, ms).valueOf();
}
diff --git a/test/built-ins/Date/S15.9.3.1_A6_T5.js b/test/built-ins/Date/S15.9.3.1_A6_T5.js
index e222772c2..ae5c324d7 100644
--- a/test/built-ins/Date/S15.9.3.1_A6_T5.js
+++ b/test/built-ins/Date/S15.9.3.1_A6_T5.js
@@ -10,7 +10,7 @@ es5id: 15.9.3.1_A6_T5
description: 6 arguments, (year, month, date, hours, minutes, seconds)
---*/
-function DateValue(year, month, date, hours, minutes, seconds, ms){
+function DateValue(year, month, date, hours, minutes, seconds, ms) {
return new Date(year, month, date, hours, minutes, seconds, ms).valueOf();
}
diff --git a/test/built-ins/Date/S15.9.3.2_A1_T1.js b/test/built-ins/Date/S15.9.3.2_A1_T1.js
index ebde6e4bd..bd82eadd9 100644
--- a/test/built-ins/Date/S15.9.3.2_A1_T1.js
+++ b/test/built-ins/Date/S15.9.3.2_A1_T1.js
@@ -20,12 +20,12 @@ if (new Date(date_1899_end) === undefined) {
}
var x13 = new Date(date_1899_end);
-if(typeof x13 !== "object"){
+if (typeof x13 !== "object") {
$ERROR("#1.3: typeof new Date(date_1899_end) !== 'object'");
}
var x14 = new Date(date_1899_end);
-if(x14 === undefined){
+if (x14 === undefined) {
$ERROR("#1.4: new Date(date_1899_end) !== undefined");
}
@@ -38,12 +38,12 @@ if (new Date(date_1900_start) === undefined) {
}
var x23 = new Date(date_1900_start);
-if(typeof x23 !== "object"){
+if (typeof x23 !== "object") {
$ERROR("#2.3: typeof new Date(date_1900_start) !== 'object'");
}
var x24 = new Date(date_1900_start);
-if(x24 === undefined){
+if (x24 === undefined) {
$ERROR("#2.4: new Date(date_1900_start) !== undefined");
}
@@ -56,12 +56,12 @@ if (new Date(date_1969_end) === undefined) {
}
var x33 = new Date(date_1969_end);
-if(typeof x33 !== "object"){
+if (typeof x33 !== "object") {
$ERROR("#3.3: typeof new Date(date_1969_end) !== 'object'");
}
var x34 = new Date(date_1969_end);
-if(x34 === undefined){
+if (x34 === undefined) {
$ERROR("#3.4: new Date(date_1969_end) !== undefined");
}
@@ -74,12 +74,12 @@ if (new Date(date_1970_start) === undefined) {
}
var x43 = new Date(date_1970_start);
-if(typeof x43 !== "object"){
+if (typeof x43 !== "object") {
$ERROR("#4.3: typeof new Date(date_1970_start) !== 'object'");
}
var x44 = new Date(date_1970_start);
-if(x44 === undefined){
+if (x44 === undefined) {
$ERROR("#4.4: new Date(date_1970_start) !== undefined");
}
@@ -92,12 +92,12 @@ if (new Date(date_1999_end) === undefined) {
}
var x53 = new Date(date_1999_end);
-if(typeof x53 !== "object"){
+if (typeof x53 !== "object") {
$ERROR("#5.3: typeof new Date(date_1999_end) !== 'object'");
}
var x54 = new Date(date_1999_end);
-if(x54 === undefined){
+if (x54 === undefined) {
$ERROR("#5.4: new Date(date_1999_end) !== undefined");
}
@@ -110,12 +110,12 @@ if (new Date(date_2000_start) === undefined) {
}
var x63 = new Date(date_2000_start);
-if(typeof x63 !== "object"){
+if (typeof x63 !== "object") {
$ERROR("#6.3: typeof new Date(date_2000_start) !== 'object'");
}
var x64 = new Date(date_2000_start);
-if(x64 === undefined){
+if (x64 === undefined) {
$ERROR("#6.4: new Date(date_2000_start) !== undefined");
}
@@ -128,12 +128,12 @@ if (new Date(date_2099_end) === undefined) {
}
var x73 = new Date(date_2099_end);
-if(typeof x73 !== "object"){
+if (typeof x73 !== "object") {
$ERROR("#7.3: typeof new Date(date_2099_end) !== 'object'");
}
var x74 = new Date(date_2099_end);
-if(x74 === undefined){
+if (x74 === undefined) {
$ERROR("#7.4: new Date(date_2099_end) !== undefined");
}
@@ -146,11 +146,11 @@ if (new Date(date_2100_start) === undefined) {
}
var x83 = new Date(date_2100_start);
-if(typeof x83 !== "object"){
+if (typeof x83 !== "object") {
$ERROR("#8.3: typeof new Date(date_2100_start) !== 'object'");
}
var x84 = new Date(date_2100_start);
-if(x84 === undefined){
+if (x84 === undefined) {
$ERROR("#8.4: new Date(date_2100_start) !== undefined");
}
diff --git a/test/built-ins/Date/S15.9.3.2_A2_T1.js b/test/built-ins/Date/S15.9.3.2_A2_T1.js
index 3cc1825c6..80e2dacd8 100644
--- a/test/built-ins/Date/S15.9.3.2_A2_T1.js
+++ b/test/built-ins/Date/S15.9.3.2_A2_T1.js
@@ -23,7 +23,7 @@ if (!Date.prototype.isPrototypeOf(x12)) {
}
var x13 = new Date(date_1899_end);
-if(Date.prototype !== x13.constructor.prototype){
+if (Date.prototype !== x13.constructor.prototype) {
$ERROR("#1.3: Date.prototype !== x13.constructor.prototype");
}
@@ -38,7 +38,7 @@ if (!Date.prototype.isPrototypeOf(x22)) {
}
var x23 = new Date(date_1900_start);
-if(Date.prototype !== x23.constructor.prototype){
+if (Date.prototype !== x23.constructor.prototype) {
$ERROR("#2.3: Date.prototype !== x23.constructor.prototype");
}
@@ -53,7 +53,7 @@ if (!Date.prototype.isPrototypeOf(x32)) {
}
var x33 = new Date(date_1969_end);
-if(Date.prototype !== x33.constructor.prototype){
+if (Date.prototype !== x33.constructor.prototype) {
$ERROR("#3.3: Date.prototype !== x33.constructor.prototype");
}
@@ -68,7 +68,7 @@ if (!Date.prototype.isPrototypeOf(x42)) {
}
var x43 = new Date(date_1970_start);
-if(Date.prototype !== x43.constructor.prototype){
+if (Date.prototype !== x43.constructor.prototype) {
$ERROR("#4.3: Date.prototype !== x43.constructor.prototype");
}
@@ -83,7 +83,7 @@ if (!Date.prototype.isPrototypeOf(x52)) {
}
var x53 = new Date(date_1999_end);
-if(Date.prototype !== x53.constructor.prototype){
+if (Date.prototype !== x53.constructor.prototype) {
$ERROR("#5.3: Date.prototype !== x53.constructor.prototype");
}
@@ -98,7 +98,7 @@ if (!Date.prototype.isPrototypeOf(x62)) {
}
var x63 = new Date(date_2000_start);
-if(Date.prototype !== x63.constructor.prototype){
+if (Date.prototype !== x63.constructor.prototype) {
$ERROR("#6.3: Date.prototype !== x63.constructor.prototype");
}
@@ -113,7 +113,7 @@ if (!Date.prototype.isPrototypeOf(x72)) {
}
var x73 = new Date(date_2099_end);
-if(Date.prototype !== x73.constructor.prototype){
+if (Date.prototype !== x73.constructor.prototype) {
$ERROR("#7.3: Date.prototype !== x73.constructor.prototype");
}
@@ -128,6 +128,6 @@ if (!Date.prototype.isPrototypeOf(x82)) {
}
var x83 = new Date(date_2100_start);
-if(Date.prototype !== x83.constructor.prototype){
+if (Date.prototype !== x83.constructor.prototype) {
$ERROR("#8.3: Date.prototype !== x83.constructor.prototype");
}
diff --git a/test/built-ins/Date/S15.9.4_A1.js b/test/built-ins/Date/S15.9.4_A1.js
index 02b7842b7..7957670f6 100644
--- a/test/built-ins/Date/S15.9.4_A1.js
+++ b/test/built-ins/Date/S15.9.4_A1.js
@@ -8,6 +8,6 @@ es5id: 15.9.4_A1
description: Checking existence of the property "prototype"
---*/
-if(!Date.hasOwnProperty("prototype")){
+if (!Date.hasOwnProperty("prototype")) {
$ERROR('#1: The Date constructor has the property "prototype"');
}
diff --git a/test/built-ins/Date/S15.9.4_A2.js b/test/built-ins/Date/S15.9.4_A2.js
index 3090a39e0..dd0652d88 100644
--- a/test/built-ins/Date/S15.9.4_A2.js
+++ b/test/built-ins/Date/S15.9.4_A2.js
@@ -8,6 +8,6 @@ es5id: 15.9.4_A2
description: Checking existence of the property "parse"
---*/
-if(!Date.hasOwnProperty("parse")){
+if (!Date.hasOwnProperty("parse")) {
$ERROR('#1: The Date constructor has the property "parse"');
}
diff --git a/test/built-ins/Date/S15.9.4_A3.js b/test/built-ins/Date/S15.9.4_A3.js
index 0c8633861..162bf922f 100644
--- a/test/built-ins/Date/S15.9.4_A3.js
+++ b/test/built-ins/Date/S15.9.4_A3.js
@@ -8,6 +8,6 @@ es5id: 15.9.4_A3
description: Checking existence of the property "UTC"
---*/
-if(!Date.hasOwnProperty("UTC")){
+if (!Date.hasOwnProperty("UTC")) {
$ERROR('#1: The Date constructor has the property "UTC"');
}
diff --git a/test/built-ins/Date/S15.9.4_A5.js b/test/built-ins/Date/S15.9.4_A5.js
index 96d9b652f..066e575b0 100644
--- a/test/built-ins/Date/S15.9.4_A5.js
+++ b/test/built-ins/Date/S15.9.4_A5.js
@@ -9,7 +9,7 @@ description: Checking Date.length property
---*/
//CHECK#1
-if (!Date.hasOwnProperty("length")){
+if (!Date.hasOwnProperty("length")) {
$ERROR('#1: Date constructor has length property');
}
diff --git a/test/built-ins/Date/UTC/S15.9.4.3_A1_T1.js b/test/built-ins/Date/UTC/S15.9.4.3_A1_T1.js
index 8f30c2988..7def6880c 100644
--- a/test/built-ins/Date/UTC/S15.9.4.3_A1_T1.js
+++ b/test/built-ins/Date/UTC/S15.9.4.3_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.UTC;
-if(x === 1)
+if (x === 1)
Date.UTC = 2;
else
Date.UTC = 1;
diff --git a/test/built-ins/Date/UTC/S15.9.4.3_A1_T2.js b/test/built-ins/Date/UTC/S15.9.4.3_A1_T2.js
index 6a930ef7f..a6c590a81 100644
--- a/test/built-ins/Date/UTC/S15.9.4.3_A1_T2.js
+++ b/test/built-ins/Date/UTC/S15.9.4.3_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.4.3_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.UTC === false) {
+if (delete Date.UTC === false) {
$ERROR('#1: The Date.UTC property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/UTC/S15.9.4.3_A1_T3.js b/test/built-ins/Date/UTC/S15.9.4.3_A1_T3.js
index af50c5f72..3db47612a 100644
--- a/test/built-ins/Date/UTC/S15.9.4.3_A1_T3.js
+++ b/test/built-ins/Date/UTC/S15.9.4.3_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.propertyIsEnumerable('UTC')) {
$ERROR('#1: The Date.UTC property has the attribute DontEnum');
}
-for(var x in Date) {
- if(x === "UTC") {
+for (var x in Date) {
+ if (x === "UTC") {
$ERROR('#2: The Date.UTC has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/UTC/S15.9.4.3_A2_T1.js b/test/built-ins/Date/UTC/S15.9.4.3_A2_T1.js
index 3846946cd..ced511687 100644
--- a/test/built-ins/Date/UTC/S15.9.4.3_A2_T1.js
+++ b/test/built-ins/Date/UTC/S15.9.4.3_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.4.3_A2_T1
description: The "length" property of the "UTC" is 7
---*/
-if(Date.UTC.hasOwnProperty("length") !== true){
+if (Date.UTC.hasOwnProperty("length") !== true) {
$ERROR('#1: The UTC has a "length" property');
}
-if(Date.UTC.length !== 7){
+if (Date.UTC.length !== 7) {
$ERROR('#2: The "length" property of the UTC is 7');
}
diff --git a/test/built-ins/Date/UTC/S15.9.4.3_A3_T2.js b/test/built-ins/Date/UTC/S15.9.4.3_A3_T2.js
index ce29d4b9d..79d0468c7 100644
--- a/test/built-ins/Date/UTC/S15.9.4.3_A3_T2.js
+++ b/test/built-ins/Date/UTC/S15.9.4.3_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.4.3_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.UTC.length !== true) {
+if (delete Date.UTC.length !== true) {
$ERROR('#1: The Date.UTC.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/UTC/S15.9.4.3_A3_T3.js b/test/built-ins/Date/UTC/S15.9.4.3_A3_T3.js
index e14dccda3..99fc8db1b 100644
--- a/test/built-ins/Date/UTC/S15.9.4.3_A3_T3.js
+++ b/test/built-ins/Date/UTC/S15.9.4.3_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.UTC.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.UTC.length property has the attribute DontEnum');
}
-for(var x in Date.UTC) {
- if(x === "length") {
+for (var x in Date.UTC) {
+ if (x === "length") {
$ERROR('#2: The Date.UTC.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/UTC/coercion-errors.js b/test/built-ins/Date/UTC/coercion-errors.js
index bbca1753e..ccdefb1d1 100644
--- a/test/built-ins/Date/UTC/coercion-errors.js
+++ b/test/built-ins/Date/UTC/coercion-errors.js
@@ -17,8 +17,16 @@ info: |
9. Return TimeClip(MakeDate(MakeDay(yr, m, dt), MakeTime(h, min, s, milli))).
---*/
-var thrower = { toString: function() { throw new Test262Error(); } };
-var counter = { toString: function() { callCount += 1; } };
+var thrower = {
+ toString: function() {
+ throw new Test262Error();
+ }
+};
+var counter = {
+ toString: function() {
+ callCount += 1;
+ }
+};
var callCount = 0;
assert.throws(Test262Error, function() {
diff --git a/test/built-ins/Date/UTC/coercion-order.js b/test/built-ins/Date/UTC/coercion-order.js
index eb1d00c5f..ec0bcd940 100644
--- a/test/built-ins/Date/UTC/coercion-order.js
+++ b/test/built-ins/Date/UTC/coercion-order.js
@@ -18,14 +18,49 @@ info: |
---*/
var log = '';
-var year = { toString: function() { log += 'year'; return 0; } };
-var month = { toString: function() { log += 'month'; return 0; } };
-var date = { toString: function() { log += 'date'; return 1; } };
-var hours = { toString: function() { log += 'hours'; return 0; } };
-var minutes = { toString: function() { log += 'minutes'; return 0; } };
-var seconds = { toString: function() { log += 'seconds'; return 0; } };
-var ms = { toString: function() { log += 'ms'; return 0; } };
+var year = {
+ toString: function() {
+ log += 'year';
+ return 0;
+ }
+};
+var month = {
+ toString: function() {
+ log += 'month';
+ return 0;
+ }
+};
+var date = {
+ toString: function() {
+ log += 'date';
+ return 1;
+ }
+};
+var hours = {
+ toString: function() {
+ log += 'hours';
+ return 0;
+ }
+};
+var minutes = {
+ toString: function() {
+ log += 'minutes';
+ return 0;
+ }
+};
+var seconds = {
+ toString: function() {
+ log += 'seconds';
+ return 0;
+ }
+};
+var ms = {
+ toString: function() {
+ log += 'ms';
+ return 0;
+ }
+};
-Date.UTC(year, month, date, hours,minutes, seconds, ms);
+Date.UTC(year, month, date, hours, minutes, seconds, ms);
assert.sameValue(log, 'yearmonthdatehoursminutessecondsms');
diff --git a/test/built-ins/Date/UTC/infinity-make-day.js b/test/built-ins/Date/UTC/infinity-make-day.js
index f0362a4c0..0fee93fd6 100644
--- a/test/built-ins/Date/UTC/infinity-make-day.js
+++ b/test/built-ins/Date/UTC/infinity-make-day.js
@@ -25,4 +25,3 @@ assert.sameValue(Date.UTC(0, -Infinity), NaN, 'month: -Infinity');
assert.sameValue(Date.UTC(0, 0, Infinity), NaN, 'date: Infinity');
assert.sameValue(Date.UTC(0, 0, -Infinity), NaN, 'date: -Infinity');
-
diff --git a/test/built-ins/Date/coercion-errors.js b/test/built-ins/Date/coercion-errors.js
index 70aef6382..32f11d815 100644
--- a/test/built-ins/Date/coercion-errors.js
+++ b/test/built-ins/Date/coercion-errors.js
@@ -21,8 +21,16 @@ info: |
l. Return O.
---*/
-var thrower = { toString: function() { throw new Test262Error(); } };
-var counter = { toString: function() { callCount += 1; } };
+var thrower = {
+ toString: function() {
+ throw new Test262Error();
+ }
+};
+var counter = {
+ toString: function() {
+ callCount += 1;
+ }
+};
var callCount = 0;
assert.throws(Test262Error, function() {
diff --git a/test/built-ins/Date/coercion-order.js b/test/built-ins/Date/coercion-order.js
index f794b4d91..6ecba56b9 100644
--- a/test/built-ins/Date/coercion-order.js
+++ b/test/built-ins/Date/coercion-order.js
@@ -22,14 +22,49 @@ info: |
---*/
var log = '';
-var year = { toString: function() { log += 'year'; return 0; } };
-var month = { toString: function() { log += 'month'; return 0; } };
-var date = { toString: function() { log += 'date'; return 1; } };
-var hours = { toString: function() { log += 'hours'; return 0; } };
-var minutes = { toString: function() { log += 'minutes'; return 0; } };
-var seconds = { toString: function() { log += 'seconds'; return 0; } };
-var ms = { toString: function() { log += 'ms'; return 0; } };
+var year = {
+ toString: function() {
+ log += 'year';
+ return 0;
+ }
+};
+var month = {
+ toString: function() {
+ log += 'month';
+ return 0;
+ }
+};
+var date = {
+ toString: function() {
+ log += 'date';
+ return 1;
+ }
+};
+var hours = {
+ toString: function() {
+ log += 'hours';
+ return 0;
+ }
+};
+var minutes = {
+ toString: function() {
+ log += 'minutes';
+ return 0;
+ }
+};
+var seconds = {
+ toString: function() {
+ log += 'seconds';
+ return 0;
+ }
+};
+var ms = {
+ toString: function() {
+ log += 'ms';
+ return 0;
+ }
+};
-new Date(year, month, date, hours,minutes, seconds, ms);
+new Date(year, month, date, hours, minutes, seconds, ms);
assert.sameValue(log, 'yearmonthdatehoursminutessecondsms');
diff --git a/test/built-ins/Date/now/15.9.4.4-0-3.js b/test/built-ins/Date/now/15.9.4.4-0-3.js
index bafb8bcdd..49c7ac425 100644
--- a/test/built-ins/Date/now/15.9.4.4-0-3.js
+++ b/test/built-ins/Date/now/15.9.4.4-0-3.js
@@ -7,6 +7,6 @@ es5id: 15.9.4.4-0-3
description: Date.now must exist as a function
---*/
- var fun = Date.now;
+var fun = Date.now;
-assert.sameValue(typeof (fun), "function", 'typeof (fun)');
+assert.sameValue(typeof(fun), "function", 'typeof (fun)');
diff --git a/test/built-ins/Date/parse/S15.9.4.2_A1_T1.js b/test/built-ins/Date/parse/S15.9.4.2_A1_T1.js
index 48587d9d6..e820b95d0 100644
--- a/test/built-ins/Date/parse/S15.9.4.2_A1_T1.js
+++ b/test/built-ins/Date/parse/S15.9.4.2_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.parse;
-if(x === 1)
+if (x === 1)
Date.parse = 2;
else
Date.parse = 1;
diff --git a/test/built-ins/Date/parse/S15.9.4.2_A1_T2.js b/test/built-ins/Date/parse/S15.9.4.2_A1_T2.js
index 1b7e25f8d..65bb436f5 100644
--- a/test/built-ins/Date/parse/S15.9.4.2_A1_T2.js
+++ b/test/built-ins/Date/parse/S15.9.4.2_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.4.2_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.parse === false) {
+if (delete Date.parse === false) {
$ERROR('#1: The Date.parse property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/parse/S15.9.4.2_A1_T3.js b/test/built-ins/Date/parse/S15.9.4.2_A1_T3.js
index b91821807..28de1c497 100644
--- a/test/built-ins/Date/parse/S15.9.4.2_A1_T3.js
+++ b/test/built-ins/Date/parse/S15.9.4.2_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.propertyIsEnumerable('parse')) {
$ERROR('#1: The Date.parse property has the attribute DontEnum');
}
-for(var x in Date) {
- if(x === "parse") {
+for (var x in Date) {
+ if (x === "parse") {
$ERROR('#2: The Date.parse has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/parse/S15.9.4.2_A2_T1.js b/test/built-ins/Date/parse/S15.9.4.2_A2_T1.js
index bfec5f908..83b526abc 100644
--- a/test/built-ins/Date/parse/S15.9.4.2_A2_T1.js
+++ b/test/built-ins/Date/parse/S15.9.4.2_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.4.2_A2_T1
description: The "length" property of the "parse" is 1
---*/
-if(Date.parse.hasOwnProperty("length") !== true){
+if (Date.parse.hasOwnProperty("length") !== true) {
$ERROR('#1: The parse has a "length" property');
}
-if(Date.parse.length !== 1){
+if (Date.parse.length !== 1) {
$ERROR('#2: The "length" property of the parse is 1');
}
diff --git a/test/built-ins/Date/parse/S15.9.4.2_A3_T2.js b/test/built-ins/Date/parse/S15.9.4.2_A3_T2.js
index dc2af6291..50c4f3128 100644
--- a/test/built-ins/Date/parse/S15.9.4.2_A3_T2.js
+++ b/test/built-ins/Date/parse/S15.9.4.2_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.4.2_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.parse.length !== true) {
+if (delete Date.parse.length !== true) {
$ERROR('#1: The Date.parse.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/parse/S15.9.4.2_A3_T3.js b/test/built-ins/Date/parse/S15.9.4.2_A3_T3.js
index 404fbfa25..5e2de082f 100644
--- a/test/built-ins/Date/parse/S15.9.4.2_A3_T3.js
+++ b/test/built-ins/Date/parse/S15.9.4.2_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.parse.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.parse.length property has the attribute DontEnum');
}
-for(var x in Date.parse) {
- if(x === "length") {
+for (var x in Date.parse) {
+ if (x === "length") {
$ERROR('#2: The Date.parse.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/S15.9.4.1_A1_T3.js b/test/built-ins/Date/prototype/S15.9.4.1_A1_T3.js
index e40edd102..584534f08 100644
--- a/test/built-ins/Date/prototype/S15.9.4.1_A1_T3.js
+++ b/test/built-ins/Date/prototype/S15.9.4.1_A1_T3.js
@@ -14,8 +14,8 @@ if (Date.propertyIsEnumerable('prototype')) {
$ERROR('#1: The Date.prototype property has the attribute DontEnum');
}
-for(var x in Date) {
- if(x === "prototype") {
+for (var x in Date) {
+ if (x === "prototype") {
$ERROR('#2: The Date.prototype has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A01_T1.js b/test/built-ins/Date/prototype/S15.9.5_A01_T1.js
index 03fa78a01..4e8aa39a4 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A01_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A01_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A01_T1
description: The Date.prototype has the property "constructor"
---*/
-if(Date.prototype.hasOwnProperty("constructor") !== true){
+if (Date.prototype.hasOwnProperty("constructor") !== true) {
$ERROR('#1: The Date.prototype has the property "constructor"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A02_T1.js b/test/built-ins/Date/prototype/S15.9.5_A02_T1.js
index dc4be9ce9..2eed4f1eb 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A02_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A02_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A02_T1
description: The Date.prototype has the property "toString"
---*/
-if(Date.prototype.hasOwnProperty("toString") !== true){
+if (Date.prototype.hasOwnProperty("toString") !== true) {
$ERROR('#1: The Date.prototype has the property "toString"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A03_T1.js b/test/built-ins/Date/prototype/S15.9.5_A03_T1.js
index 9aefb6afe..0ee361179 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A03_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A03_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A03_T1
description: The Date.prototype has the property "toDateString"
---*/
-if(Date.prototype.hasOwnProperty("toDateString") !== true){
+if (Date.prototype.hasOwnProperty("toDateString") !== true) {
$ERROR('#1: The Date.prototype has the property "toDateString"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A04_T1.js b/test/built-ins/Date/prototype/S15.9.5_A04_T1.js
index 45f26ff7b..c069dc245 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A04_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A04_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A04_T1
description: The Date.prototype has the property "toTimeString"
---*/
-if(Date.prototype.hasOwnProperty("toTimeString") !== true){
+if (Date.prototype.hasOwnProperty("toTimeString") !== true) {
$ERROR('#1: The Date.prototype has the property "toTimeString"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A05_T1.js b/test/built-ins/Date/prototype/S15.9.5_A05_T1.js
index 748d927dd..93d0473d5 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A05_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A05_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A05_T1
description: The Date.prototype has the property "toLocaleString"
---*/
-if(Date.prototype.hasOwnProperty("toLocaleString") !== true){
+if (Date.prototype.hasOwnProperty("toLocaleString") !== true) {
$ERROR('#1: The Date.prototype has the property "toLocaleString"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A06_T1.js b/test/built-ins/Date/prototype/S15.9.5_A06_T1.js
index 1c3a6f0fa..03d792523 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A06_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A06_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A06_T1
description: The Date.prototype has the property "toLocaleDateString"
---*/
-if(Date.prototype.hasOwnProperty("toLocaleDateString") !== true){
+if (Date.prototype.hasOwnProperty("toLocaleDateString") !== true) {
$ERROR('#1: The Date.prototype has the property "toLocaleDateString"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A07_T1.js b/test/built-ins/Date/prototype/S15.9.5_A07_T1.js
index eb79567f3..d4e616a3b 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A07_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A07_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A07_T1
description: The Date.prototype has the property "toLocaleTimeString"
---*/
-if(Date.prototype.hasOwnProperty("toLocaleTimeString") !== true){
+if (Date.prototype.hasOwnProperty("toLocaleTimeString") !== true) {
$ERROR('#1: The Date.prototype has the property "toLocaleTimeString"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A08_T1.js b/test/built-ins/Date/prototype/S15.9.5_A08_T1.js
index bb6927638..956c54030 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A08_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A08_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A08_T1
description: The Date.prototype has the property "valueOf"
---*/
-if(Date.prototype.hasOwnProperty("valueOf") !== true){
+if (Date.prototype.hasOwnProperty("valueOf") !== true) {
$ERROR('#1: The Date.prototype has the property "valueOf"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A09_T1.js b/test/built-ins/Date/prototype/S15.9.5_A09_T1.js
index 7f28f0e7e..1702b4f79 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A09_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A09_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A09_T1
description: The Date.prototype has the property "getTime"
---*/
-if(Date.prototype.hasOwnProperty("getTime") !== true){
+if (Date.prototype.hasOwnProperty("getTime") !== true) {
$ERROR('#1: The Date.prototype has the property "getTime"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A10_T1.js b/test/built-ins/Date/prototype/S15.9.5_A10_T1.js
index 4c6c2369d..a97e2830e 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A10_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A10_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A10_T1
description: The Date.prototype has the property "getFullYear"
---*/
-if(Date.prototype.hasOwnProperty("getFullYear") !== true){
+if (Date.prototype.hasOwnProperty("getFullYear") !== true) {
$ERROR('#1: The Date.prototype has the property "getFullYear"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A11_T1.js b/test/built-ins/Date/prototype/S15.9.5_A11_T1.js
index 2e12494f1..a808725ad 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A11_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A11_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A11_T1
description: The Date.prototype has the property "getUTCFullYear"
---*/
-if(Date.prototype.hasOwnProperty("getUTCFullYear") !== true){
+if (Date.prototype.hasOwnProperty("getUTCFullYear") !== true) {
$ERROR('#1: The Date.prototype has the property "getUTCFullYear"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A12_T1.js b/test/built-ins/Date/prototype/S15.9.5_A12_T1.js
index 22a6ea411..8d697d665 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A12_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A12_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A12_T1
description: The Date.prototype has the property "getMonth"
---*/
-if(Date.prototype.hasOwnProperty("getMonth") !== true){
+if (Date.prototype.hasOwnProperty("getMonth") !== true) {
$ERROR('#1: The Date.prototype has the property "getMonth"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A13_T1.js b/test/built-ins/Date/prototype/S15.9.5_A13_T1.js
index f99b87ae6..4e8e7e1c6 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A13_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A13_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A13_T1
description: The Date.prototype has the property "getUTCMonth"
---*/
-if(Date.prototype.hasOwnProperty("getUTCMonth") !== true){
+if (Date.prototype.hasOwnProperty("getUTCMonth") !== true) {
$ERROR('#1: The Date.prototype has the property "getUTCMonth"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A14_T1.js b/test/built-ins/Date/prototype/S15.9.5_A14_T1.js
index 6decf276d..901af6df6 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A14_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A14_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A14_T1
description: The Date.prototype has the property "getDate"
---*/
-if(Date.prototype.hasOwnProperty("getDate") !== true){
+if (Date.prototype.hasOwnProperty("getDate") !== true) {
$ERROR('#1: The Date.prototype has the property "getDate"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A15_T1.js b/test/built-ins/Date/prototype/S15.9.5_A15_T1.js
index 8ea541620..1ea076f8b 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A15_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A15_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A15_T1
description: The Date.prototype has the property "getUTCDate"
---*/
-if(Date.prototype.hasOwnProperty("getUTCDate") !== true){
+if (Date.prototype.hasOwnProperty("getUTCDate") !== true) {
$ERROR('#1: The Date.prototype has the property "getUTCDate"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A16_T1.js b/test/built-ins/Date/prototype/S15.9.5_A16_T1.js
index f45c81f91..e6e74d724 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A16_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A16_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A16_T1
description: The Date.prototype has the property "getDay"
---*/
-if(Date.prototype.hasOwnProperty("getDay") !== true){
+if (Date.prototype.hasOwnProperty("getDay") !== true) {
$ERROR('#1: The Date.prototype has the property "getDay"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A17_T1.js b/test/built-ins/Date/prototype/S15.9.5_A17_T1.js
index f4131a387..a1bfd2a82 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A17_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A17_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A17_T1
description: The Date.prototype has the property "getUTCDay"
---*/
-if(Date.prototype.hasOwnProperty("getUTCDay") !== true){
+if (Date.prototype.hasOwnProperty("getUTCDay") !== true) {
$ERROR('#1: The Date.prototype has the property "getUTCDay"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A18_T1.js b/test/built-ins/Date/prototype/S15.9.5_A18_T1.js
index 1bfad7edd..b0c5d9914 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A18_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A18_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A18_T1
description: The Date.prototype has the property "getHours"
---*/
-if(Date.prototype.hasOwnProperty("getHours") !== true){
+if (Date.prototype.hasOwnProperty("getHours") !== true) {
$ERROR('#1: The Date.prototype has the property "getHours"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A19_T1.js b/test/built-ins/Date/prototype/S15.9.5_A19_T1.js
index d023a173d..121995f93 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A19_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A19_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A19_T1
description: The Date.prototype has the property "getUTCHours"
---*/
-if(Date.prototype.hasOwnProperty("getUTCHours") !== true){
+if (Date.prototype.hasOwnProperty("getUTCHours") !== true) {
$ERROR('#1: The Date.prototype has the property "getUTCHours"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A20_T1.js b/test/built-ins/Date/prototype/S15.9.5_A20_T1.js
index fa1eb9a96..91af4cab8 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A20_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A20_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A20_T1
description: The Date.prototype has the property "getMinutes"
---*/
-if(Date.prototype.hasOwnProperty("getMinutes") !== true){
+if (Date.prototype.hasOwnProperty("getMinutes") !== true) {
$ERROR('#1: The Date.prototype has the property "getMinutes"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A21_T1.js b/test/built-ins/Date/prototype/S15.9.5_A21_T1.js
index 004239f0b..f6b144d32 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A21_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A21_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A21_T1
description: The Date.prototype has the property "getUTCMinutes"
---*/
-if(Date.prototype.hasOwnProperty("getUTCMinutes") !== true){
+if (Date.prototype.hasOwnProperty("getUTCMinutes") !== true) {
$ERROR('#1: The Date.prototype has the property "getUTCMinutes"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A22_T1.js b/test/built-ins/Date/prototype/S15.9.5_A22_T1.js
index 77de3c964..7e06d8020 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A22_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A22_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A22_T1
description: The Date.prototype has the property "getSeconds"
---*/
-if(Date.prototype.hasOwnProperty("getSeconds") !== true){
+if (Date.prototype.hasOwnProperty("getSeconds") !== true) {
$ERROR('#1: The Date.prototype has the property "getSeconds"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A23_T1.js b/test/built-ins/Date/prototype/S15.9.5_A23_T1.js
index 63cc54853..8dab8344e 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A23_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A23_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A23_T1
description: The Date.prototype has the property "getUTCSeconds"
---*/
-if(Date.prototype.hasOwnProperty("getUTCSeconds") !== true){
+if (Date.prototype.hasOwnProperty("getUTCSeconds") !== true) {
$ERROR('#1: The Date.prototype has the property "getUTCSeconds"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A24_T1.js b/test/built-ins/Date/prototype/S15.9.5_A24_T1.js
index 745978484..62bf0c5fe 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A24_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A24_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A24_T1
description: The Date.prototype has the property "getMilliseconds"
---*/
-if(Date.prototype.hasOwnProperty("getMilliseconds") !== true){
+if (Date.prototype.hasOwnProperty("getMilliseconds") !== true) {
$ERROR('#1: The Date.prototype has the property "getMilliseconds"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A25_T1.js b/test/built-ins/Date/prototype/S15.9.5_A25_T1.js
index 945c9f495..a3fa23e11 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A25_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A25_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A25_T1
description: The Date.prototype has the property "getUTCMilliseconds"
---*/
-if(Date.prototype.hasOwnProperty("getUTCMilliseconds") !== true){
+if (Date.prototype.hasOwnProperty("getUTCMilliseconds") !== true) {
$ERROR('#1: The Date.prototype has the property "getUTCMilliseconds"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A26_T1.js b/test/built-ins/Date/prototype/S15.9.5_A26_T1.js
index 2b04f057b..dce48a446 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A26_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A26_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A26_T1
description: The Date.prototype has the property "getTimezoneOffset"
---*/
-if(Date.prototype.hasOwnProperty("getTimezoneOffset") !== true){
+if (Date.prototype.hasOwnProperty("getTimezoneOffset") !== true) {
$ERROR('#1: The Date.prototype has the property "getTimezoneOffset"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A27_T1.js b/test/built-ins/Date/prototype/S15.9.5_A27_T1.js
index 29ca2ca87..5cfb076ed 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A27_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A27_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A27_T1
description: The Date.prototype has the property "setTime"
---*/
-if(Date.prototype.hasOwnProperty("setTime") !== true){
+if (Date.prototype.hasOwnProperty("setTime") !== true) {
$ERROR('#1: The Date.prototype has the property "setTime"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A28_T1.js b/test/built-ins/Date/prototype/S15.9.5_A28_T1.js
index 757515d0a..9477085b7 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A28_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A28_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A28_T1
description: The Date.prototype has the property "setMilliseconds"
---*/
-if(Date.prototype.hasOwnProperty("setMilliseconds") !== true){
+if (Date.prototype.hasOwnProperty("setMilliseconds") !== true) {
$ERROR('#1: The Date.prototype has the property "setMilliseconds"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A29_T1.js b/test/built-ins/Date/prototype/S15.9.5_A29_T1.js
index 73e634993..c9fe329cb 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A29_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A29_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A29_T1
description: The Date.prototype has the property "setUTCMilliseconds"
---*/
-if(Date.prototype.hasOwnProperty("setUTCMilliseconds") !== true){
+if (Date.prototype.hasOwnProperty("setUTCMilliseconds") !== true) {
$ERROR('#1: The Date.prototype has the property "setUTCMilliseconds"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A30_T1.js b/test/built-ins/Date/prototype/S15.9.5_A30_T1.js
index 87df1a922..e65718a73 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A30_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A30_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A30_T1
description: The Date.prototype has the property "setSeconds"
---*/
-if(Date.prototype.hasOwnProperty("setSeconds") !== true){
+if (Date.prototype.hasOwnProperty("setSeconds") !== true) {
$ERROR('#1: The Date.prototype has the property "setSeconds"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A31_T1.js b/test/built-ins/Date/prototype/S15.9.5_A31_T1.js
index 332509563..64f801900 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A31_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A31_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A31_T1
description: The Date.prototype has the property "setUTCSeconds"
---*/
-if(Date.prototype.hasOwnProperty("setUTCSeconds") !== true){
+if (Date.prototype.hasOwnProperty("setUTCSeconds") !== true) {
$ERROR('#1: The Date.prototype has the property "setUTCSeconds"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A32_T1.js b/test/built-ins/Date/prototype/S15.9.5_A32_T1.js
index 086486601..19e349e8b 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A32_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A32_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A32_T1
description: The Date.prototype has the property "setMinutes"
---*/
-if(Date.prototype.hasOwnProperty("setMinutes") !== true){
+if (Date.prototype.hasOwnProperty("setMinutes") !== true) {
$ERROR('#1: The Date.prototype has the property "setMinutes"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A33_T1.js b/test/built-ins/Date/prototype/S15.9.5_A33_T1.js
index e64d4dade..85f07b5f2 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A33_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A33_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A33_T1
description: The Date.prototype has the property "setUTCMinutes"
---*/
-if(Date.prototype.hasOwnProperty("setUTCMinutes") !== true){
+if (Date.prototype.hasOwnProperty("setUTCMinutes") !== true) {
$ERROR('#1: The Date.prototype has the property "setUTCMinutes"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A34_T1.js b/test/built-ins/Date/prototype/S15.9.5_A34_T1.js
index 887364be2..4810950ba 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A34_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A34_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A34_T1
description: The Date.prototype has the property "setHours"
---*/
-if(Date.prototype.hasOwnProperty("setHours") !== true){
+if (Date.prototype.hasOwnProperty("setHours") !== true) {
$ERROR('#1: The Date.prototype has the property "setHours"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A35_T1.js b/test/built-ins/Date/prototype/S15.9.5_A35_T1.js
index ef6a352ad..c2a98b414 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A35_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A35_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A35_T1
description: The Date.prototype has the property "setUTCHours"
---*/
-if(Date.prototype.hasOwnProperty("setUTCHours") !== true){
+if (Date.prototype.hasOwnProperty("setUTCHours") !== true) {
$ERROR('#1: The Date.prototype has the property "setUTCHours"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A36_T1.js b/test/built-ins/Date/prototype/S15.9.5_A36_T1.js
index 7eff33046..4fa278360 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A36_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A36_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A36_T1
description: The Date.prototype has the property "setDate"
---*/
-if(Date.prototype.hasOwnProperty("setDate") !== true){
+if (Date.prototype.hasOwnProperty("setDate") !== true) {
$ERROR('#1: The Date.prototype has the property "setDate"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A37_T1.js b/test/built-ins/Date/prototype/S15.9.5_A37_T1.js
index 2d76fab11..1c88f55bd 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A37_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A37_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A37_T1
description: The Date.prototype has the property "setUTCDate"
---*/
-if(Date.prototype.hasOwnProperty("setUTCDate") !== true){
+if (Date.prototype.hasOwnProperty("setUTCDate") !== true) {
$ERROR('#1: The Date.prototype has the property "setUTCDate"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A38_T1.js b/test/built-ins/Date/prototype/S15.9.5_A38_T1.js
index 562c03ec1..1b4ce8b06 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A38_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A38_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A38_T1
description: The Date.prototype has the property "setMonth"
---*/
-if(Date.prototype.hasOwnProperty("setMonth") !== true){
+if (Date.prototype.hasOwnProperty("setMonth") !== true) {
$ERROR('#1: The Date.prototype has the property "setMonth"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A39_T1.js b/test/built-ins/Date/prototype/S15.9.5_A39_T1.js
index b5d13f4bf..0798b7148 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A39_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A39_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A39_T1
description: The Date.prototype has the property "setUTCMonth"
---*/
-if(Date.prototype.hasOwnProperty("setUTCMonth") !== true){
+if (Date.prototype.hasOwnProperty("setUTCMonth") !== true) {
$ERROR('#1: The Date.prototype has the property "setUTCMonth"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A40_T1.js b/test/built-ins/Date/prototype/S15.9.5_A40_T1.js
index 096cb7f62..b32f6858f 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A40_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A40_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A40_T1
description: The Date.prototype has the property "setFullYear"
---*/
-if(Date.prototype.hasOwnProperty("setFullYear") !== true){
+if (Date.prototype.hasOwnProperty("setFullYear") !== true) {
$ERROR('#1: The Date.prototype has the property "setFullYear"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A41_T1.js b/test/built-ins/Date/prototype/S15.9.5_A41_T1.js
index af8535a37..879e1bfc9 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A41_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A41_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A41_T1
description: The Date.prototype has the property "setUTCFullYear"
---*/
-if(Date.prototype.hasOwnProperty("setUTCFullYear") !== true){
+if (Date.prototype.hasOwnProperty("setUTCFullYear") !== true) {
$ERROR('#1: The Date.prototype has the property "setUTCFullYear"');
}
diff --git a/test/built-ins/Date/prototype/S15.9.5_A42_T1.js b/test/built-ins/Date/prototype/S15.9.5_A42_T1.js
index c6c4eb4b4..61dc0ef4c 100644
--- a/test/built-ins/Date/prototype/S15.9.5_A42_T1.js
+++ b/test/built-ins/Date/prototype/S15.9.5_A42_T1.js
@@ -8,6 +8,6 @@ es5id: 15.9.5_A42_T1
description: The Date.prototype has the property "toUTCString"
---*/
-if(Date.prototype.hasOwnProperty("toUTCString") !== true){
+if (Date.prototype.hasOwnProperty("toUTCString") !== true) {
$ERROR('#1: The Date.prototype has the property "toUTCString"');
}
diff --git a/test/built-ins/Date/prototype/Symbol.toPrimitive/hint-invalid.js b/test/built-ins/Date/prototype/Symbol.toPrimitive/hint-invalid.js
index 61e0ee127..207f28c6a 100644
--- a/test/built-ins/Date/prototype/Symbol.toPrimitive/hint-invalid.js
+++ b/test/built-ins/Date/prototype/Symbol.toPrimitive/hint-invalid.js
@@ -48,5 +48,9 @@ assert.throws(TypeError, function() {
});
assert.throws(TypeError, function() {
- d[Symbol.toPrimitive]({ toString: function() { 'number'; } });
+ d[Symbol.toPrimitive]({
+ toString: function() {
+ 'number';
+ }
+ });
});
diff --git a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T1.js b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T1.js
index 015869e87..7b31914c4 100644
--- a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T1.js
+++ b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.constructor;
-if(x === 1)
+if (x === 1)
Date.prototype.constructor = 2;
else
Date.prototype.constructor = 1;
diff --git a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T2.js b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T2.js
index 1969ffc3e..fb7f63813 100644
--- a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T2.js
+++ b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.1_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.constructor === false) {
+if (delete Date.prototype.constructor === false) {
$ERROR('#1: The Date.prototype.constructor property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T3.js b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T3.js
index 4c0bd7cb3..585613408 100644
--- a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T3.js
+++ b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('constructor')) {
$ERROR('#1: The Date.prototype.constructor property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "constructor") {
+for (var x in Date.prototype) {
+ if (x === "constructor") {
$ERROR('#2: The Date.prototype.constructor has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A2_T1.js b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A2_T1.js
index e7fe30436..49cd15ab2 100644
--- a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A2_T1.js
+++ b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.1_A2_T1
description: The "length" property of the "constructor" is 7
---*/
-if(Date.prototype.constructor.hasOwnProperty("length") !== true){
+if (Date.prototype.constructor.hasOwnProperty("length") !== true) {
$ERROR('#1: The constructor has a "length" property');
}
-if(Date.prototype.constructor.length !== 7){
+if (Date.prototype.constructor.length !== 7) {
$ERROR('#2: The "length" property of the constructor is 7');
}
diff --git a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T2.js b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T2.js
index 529e66b44..b5beb2284 100644
--- a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T2.js
+++ b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.1_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.constructor.length !== true) {
+if (delete Date.prototype.constructor.length !== true) {
$ERROR('#1: The Date.prototype.constructor.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T3.js b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T3.js
index e913c47d3..d920a2e81 100644
--- a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T3.js
+++ b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.constructor.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.constructor.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.constructor) {
- if(x === "length") {
+for (var x in Date.prototype.constructor) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.constructor.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T1.js b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T1.js
index 602a86f0e..3a75f29c6 100644
--- a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T1.js
+++ b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.getDate;
-if(x === 1)
+if (x === 1)
Date.prototype.getDate = 2;
else
Date.prototype.getDate = 1;
diff --git a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T2.js b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T2.js
index 1b88c0dfa..61047cc75 100644
--- a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T2.js
+++ b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.14_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.getDate === false) {
+if (delete Date.prototype.getDate === false) {
$ERROR('#1: The Date.prototype.getDate property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T3.js b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T3.js
index 8c8984d23..76ad845df 100644
--- a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T3.js
+++ b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getDate')) {
$ERROR('#1: The Date.prototype.getDate property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "getDate") {
+for (var x in Date.prototype) {
+ if (x === "getDate") {
$ERROR('#2: The Date.prototype.getDate has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A2_T1.js b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A2_T1.js
index 14a92d6e3..4756c8aa0 100644
--- a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A2_T1.js
+++ b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.14_A2_T1
description: The "length" property of the "getDate" is 0
---*/
-if(Date.prototype.getDate.hasOwnProperty("length") !== true){
+if (Date.prototype.getDate.hasOwnProperty("length") !== true) {
$ERROR('#1: The getDate has a "length" property');
}
-if(Date.prototype.getDate.length !== 0){
+if (Date.prototype.getDate.length !== 0) {
$ERROR('#2: The "length" property of the getDate is 0');
}
diff --git a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T2.js b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T2.js
index d52223e2d..464dd1a2f 100644
--- a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T2.js
+++ b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.14_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.getDate.length !== true) {
+if (delete Date.prototype.getDate.length !== true) {
$ERROR('#1: The Date.prototype.getDate.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T3.js b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T3.js
index 2bfb76a14..1838bde8e 100644
--- a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T3.js
+++ b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.getDate.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.getDate.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.getDate) {
- if(x === "length") {
+for (var x in Date.prototype.getDate) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.getDate.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getDate/this-value-non-date.js b/test/built-ins/Date/prototype/getDate/this-value-non-date.js
index 6734712ca..31eb39ad3 100644
--- a/test/built-ins/Date/prototype/getDate/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/getDate/this-value-non-date.js
@@ -16,7 +16,9 @@ info: |
---*/
var getDate = Date.prototype.getDate;
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof getDate, 'function');
diff --git a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T1.js b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T1.js
index 646100bc1..dd0195edc 100644
--- a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T1.js
+++ b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.getDay;
-if(x === 1)
+if (x === 1)
Date.prototype.getDay = 2;
else
Date.prototype.getDay = 1;
diff --git a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T2.js b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T2.js
index 2524225ed..dc5b54584 100644
--- a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T2.js
+++ b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.16_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.getDay === false) {
+if (delete Date.prototype.getDay === false) {
$ERROR('#1: The Date.prototype.getDay property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T3.js b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T3.js
index ec4cc8a1a..d7c241aaa 100644
--- a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T3.js
+++ b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getDay')) {
$ERROR('#1: The Date.prototype.getDay property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "getDay") {
+for (var x in Date.prototype) {
+ if (x === "getDay") {
$ERROR('#2: The Date.prototype.getDay has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A2_T1.js b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A2_T1.js
index a1d10c6dc..f9ab23268 100644
--- a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A2_T1.js
+++ b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.16_A2_T1
description: The "length" property of the "getDay" is 0
---*/
-if(Date.prototype.getDay.hasOwnProperty("length") !== true){
+if (Date.prototype.getDay.hasOwnProperty("length") !== true) {
$ERROR('#1: The getDay has a "length" property');
}
-if(Date.prototype.getDay.length !== 0){
+if (Date.prototype.getDay.length !== 0) {
$ERROR('#2: The "length" property of the getDay is 0');
}
diff --git a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T2.js b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T2.js
index 44019e9b9..fa7ea6a93 100644
--- a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T2.js
+++ b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.16_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.getDay.length !== true) {
+if (delete Date.prototype.getDay.length !== true) {
$ERROR('#1: The Date.prototype.getDay.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T3.js b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T3.js
index 8d062a86b..e0c5e04e3 100644
--- a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T3.js
+++ b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.getDay.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.getDay.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.getDay) {
- if(x === "length") {
+for (var x in Date.prototype.getDay) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.getDay.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getDay/this-value-non-date.js b/test/built-ins/Date/prototype/getDay/this-value-non-date.js
index 71adf2c09..f03661dd9 100644
--- a/test/built-ins/Date/prototype/getDay/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/getDay/this-value-non-date.js
@@ -16,7 +16,9 @@ info: |
---*/
var getDay = Date.prototype.getDay;
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof getDay, 'function');
diff --git a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T1.js b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T1.js
index e965ed28d..54897a558 100644
--- a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T1.js
+++ b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.getFullYear;
-if(x === 1)
+if (x === 1)
Date.prototype.getFullYear = 2;
else
Date.prototype.getFullYear = 1;
diff --git a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T2.js b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T2.js
index 087abbffb..bfc30f439 100644
--- a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T2.js
+++ b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.10_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.getFullYear === false) {
+if (delete Date.prototype.getFullYear === false) {
$ERROR('#1: The Date.prototype.getFullYear property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T3.js b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T3.js
index e410c9213..bc6e97309 100644
--- a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T3.js
+++ b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getFullYear')) {
$ERROR('#1: The Date.prototype.getFullYear property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "getFullYear") {
+for (var x in Date.prototype) {
+ if (x === "getFullYear") {
$ERROR('#2: The Date.prototype.getFullYear has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A2_T1.js b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A2_T1.js
index 76682ac39..e6126c6a1 100644
--- a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A2_T1.js
+++ b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.10_A2_T1
description: The "length" property of the "getFullYear" is 0
---*/
-if(Date.prototype.getFullYear.hasOwnProperty("length") !== true){
+if (Date.prototype.getFullYear.hasOwnProperty("length") !== true) {
$ERROR('#1: The getFullYear has a "length" property');
}
-if(Date.prototype.getFullYear.length !== 0){
+if (Date.prototype.getFullYear.length !== 0) {
$ERROR('#2: The "length" property of the getFullYear is 0');
}
diff --git a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T2.js b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T2.js
index 8b35eb11b..9bdbc7d89 100644
--- a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T2.js
+++ b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.10_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.getFullYear.length !== true) {
+if (delete Date.prototype.getFullYear.length !== true) {
$ERROR('#1: The Date.prototype.getFullYear.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T3.js b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T3.js
index 36e66960f..7fedce52a 100644
--- a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T3.js
+++ b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.getFullYear.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.getFullYear.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.getFullYear) {
- if(x === "length") {
+for (var x in Date.prototype.getFullYear) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.getFullYear.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getFullYear/this-value-non-date.js b/test/built-ins/Date/prototype/getFullYear/this-value-non-date.js
index db86b65f9..f191bd5a6 100644
--- a/test/built-ins/Date/prototype/getFullYear/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/getFullYear/this-value-non-date.js
@@ -16,7 +16,9 @@ info: |
---*/
var getFullYear = Date.prototype.getFullYear;
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof getFullYear, 'function');
diff --git a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T1.js b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T1.js
index 77a92e2fd..b587f199e 100644
--- a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T1.js
+++ b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.getHours;
-if(x === 1)
+if (x === 1)
Date.prototype.getHours = 2;
else
Date.prototype.getHours = 1;
diff --git a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T2.js b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T2.js
index b0c1a1677..08824758c 100644
--- a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T2.js
+++ b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.18_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.getHours === false) {
+if (delete Date.prototype.getHours === false) {
$ERROR('#1: The Date.prototype.getHours property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T3.js b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T3.js
index b9a4dd05b..eb6d46501 100644
--- a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T3.js
+++ b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getHours')) {
$ERROR('#1: The Date.prototype.getHours property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "getHours") {
+for (var x in Date.prototype) {
+ if (x === "getHours") {
$ERROR('#2: The Date.prototype.getHours has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A2_T1.js b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A2_T1.js
index 675c26289..81af2ec44 100644
--- a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A2_T1.js
+++ b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.18_A2_T1
description: The "length" property of the "getHours" is 0
---*/
-if(Date.prototype.getHours.hasOwnProperty("length") !== true){
+if (Date.prototype.getHours.hasOwnProperty("length") !== true) {
$ERROR('#1: The getHours has a "length" property');
}
-if(Date.prototype.getHours.length !== 0){
+if (Date.prototype.getHours.length !== 0) {
$ERROR('#2: The "length" property of the getHours is 0');
}
diff --git a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T2.js b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T2.js
index 44b400259..2f00e05fd 100644
--- a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T2.js
+++ b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.18_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.getHours.length !== true) {
+if (delete Date.prototype.getHours.length !== true) {
$ERROR('#1: The Date.prototype.getHours.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T3.js b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T3.js
index 57b77bb9d..ad3d3e28a 100644
--- a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T3.js
+++ b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.getHours.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.getHours.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.getHours) {
- if(x === "length") {
+for (var x in Date.prototype.getHours) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.getHours.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getHours/this-value-non-date.js b/test/built-ins/Date/prototype/getHours/this-value-non-date.js
index 7c922a9b2..075c0dd9a 100644
--- a/test/built-ins/Date/prototype/getHours/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/getHours/this-value-non-date.js
@@ -16,7 +16,9 @@ info: |
---*/
var getHours = Date.prototype.getHours;
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof getHours, 'function');
diff --git a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T1.js b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T1.js
index 765dcd7e0..d1e27ba34 100644
--- a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T1.js
+++ b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.getMilliseconds;
-if(x === 1)
+if (x === 1)
Date.prototype.getMilliseconds = 2;
else
Date.prototype.getMilliseconds = 1;
diff --git a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T2.js b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T2.js
index f4e40a3e0..41309fa45 100644
--- a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T2.js
+++ b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.24_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.getMilliseconds === false) {
+if (delete Date.prototype.getMilliseconds === false) {
$ERROR('#1: The Date.prototype.getMilliseconds property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T3.js b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T3.js
index 3e16f9726..38483bcc4 100644
--- a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T3.js
+++ b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getMilliseconds')) {
$ERROR('#1: The Date.prototype.getMilliseconds property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "getMilliseconds") {
+for (var x in Date.prototype) {
+ if (x === "getMilliseconds") {
$ERROR('#2: The Date.prototype.getMilliseconds has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A2_T1.js b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A2_T1.js
index 8ad8bf927..e564b8cb8 100644
--- a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A2_T1.js
+++ b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.24_A2_T1
description: The "length" property of the "getMilliseconds" is 0
---*/
-if(Date.prototype.getMilliseconds.hasOwnProperty("length") !== true){
+if (Date.prototype.getMilliseconds.hasOwnProperty("length") !== true) {
$ERROR('#1: The getMilliseconds has a "length" property');
}
-if(Date.prototype.getMilliseconds.length !== 0){
+if (Date.prototype.getMilliseconds.length !== 0) {
$ERROR('#2: The "length" property of the getMilliseconds is 0');
}
diff --git a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T2.js b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T2.js
index 47e7ee0fd..02f01b39e 100644
--- a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T2.js
+++ b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.24_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.getMilliseconds.length !== true) {
+if (delete Date.prototype.getMilliseconds.length !== true) {
$ERROR('#1: The Date.prototype.getMilliseconds.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T3.js b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T3.js
index fd1e1c674..303c244a2 100644
--- a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T3.js
+++ b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.getMilliseconds.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.getMilliseconds.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.getMilliseconds) {
- if(x === "length") {
+for (var x in Date.prototype.getMilliseconds) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.getMilliseconds.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getMilliseconds/this-value-non-date.js b/test/built-ins/Date/prototype/getMilliseconds/this-value-non-date.js
index 1c71dc383..284cbcbfe 100644
--- a/test/built-ins/Date/prototype/getMilliseconds/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/getMilliseconds/this-value-non-date.js
@@ -16,7 +16,9 @@ info: |
---*/
var getMilliseconds = Date.prototype.getMilliseconds;
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof getMilliseconds, 'function');
diff --git a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T1.js b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T1.js
index f3d30e6bf..b41afec04 100644
--- a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T1.js
+++ b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.getMinutes;
-if(x === 1)
+if (x === 1)
Date.prototype.getMinutes = 2;
else
Date.prototype.getMinutes = 1;
diff --git a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T2.js b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T2.js
index 0ef201732..a21989305 100644
--- a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T2.js
+++ b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.20_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.getMinutes === false) {
+if (delete Date.prototype.getMinutes === false) {
$ERROR('#1: The Date.prototype.getMinutes property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T3.js b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T3.js
index bf774828d..5992ea3fe 100644
--- a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T3.js
+++ b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getMinutes')) {
$ERROR('#1: The Date.prototype.getMinutes property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "getMinutes") {
+for (var x in Date.prototype) {
+ if (x === "getMinutes") {
$ERROR('#2: The Date.prototype.getMinutes has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A2_T1.js b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A2_T1.js
index 92f972fb1..6b83032da 100644
--- a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A2_T1.js
+++ b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.20_A2_T1
description: The "length" property of the "getMinutes" is 0
---*/
-if(Date.prototype.getMinutes.hasOwnProperty("length") !== true){
+if (Date.prototype.getMinutes.hasOwnProperty("length") !== true) {
$ERROR('#1: The getMinutes has a "length" property');
}
-if(Date.prototype.getMinutes.length !== 0){
+if (Date.prototype.getMinutes.length !== 0) {
$ERROR('#2: The "length" property of the getMinutes is 0');
}
diff --git a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T2.js b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T2.js
index 7d6952bf7..f8b013db8 100644
--- a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T2.js
+++ b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.20_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.getMinutes.length !== true) {
+if (delete Date.prototype.getMinutes.length !== true) {
$ERROR('#1: The Date.prototype.getMinutes.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T3.js b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T3.js
index 35b1fe5fa..92454620e 100644
--- a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T3.js
+++ b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.getMinutes.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.getMinutes.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.getMinutes) {
- if(x === "length") {
+for (var x in Date.prototype.getMinutes) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.getMinutes.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getMinutes/this-value-non-date.js b/test/built-ins/Date/prototype/getMinutes/this-value-non-date.js
index b8e220a5a..1eca182ac 100644
--- a/test/built-ins/Date/prototype/getMinutes/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/getMinutes/this-value-non-date.js
@@ -16,7 +16,9 @@ info: |
---*/
var getMinutes = Date.prototype.getMinutes;
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof getMinutes, 'function');
diff --git a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T1.js b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T1.js
index 98da5f955..a21e5c917 100644
--- a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T1.js
+++ b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.getMonth;
-if(x === 1)
+if (x === 1)
Date.prototype.getMonth = 2;
else
Date.prototype.getMonth = 1;
diff --git a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T2.js b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T2.js
index 82c5bc31f..1ebae46de 100644
--- a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T2.js
+++ b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.12_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.getMonth === false) {
+if (delete Date.prototype.getMonth === false) {
$ERROR('#1: The Date.prototype.getMonth property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T3.js b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T3.js
index 45b981bf7..ad2707c4c 100644
--- a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T3.js
+++ b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getMonth')) {
$ERROR('#1: The Date.prototype.getMonth property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "getMonth") {
+for (var x in Date.prototype) {
+ if (x === "getMonth") {
$ERROR('#2: The Date.prototype.getMonth has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A2_T1.js b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A2_T1.js
index 57b392e3c..369327b27 100644
--- a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A2_T1.js
+++ b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.12_A2_T1
description: The "length" property of the "getMonth" is 0
---*/
-if(Date.prototype.getMonth.hasOwnProperty("length") !== true){
+if (Date.prototype.getMonth.hasOwnProperty("length") !== true) {
$ERROR('#1: The getMonth has a "length" property');
}
-if(Date.prototype.getMonth.length !== 0){
+if (Date.prototype.getMonth.length !== 0) {
$ERROR('#2: The "length" property of the getMonth is 0');
}
diff --git a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T2.js b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T2.js
index 7352f0fe7..f138e4541 100644
--- a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T2.js
+++ b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.12_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.getMonth.length !== true) {
+if (delete Date.prototype.getMonth.length !== true) {
$ERROR('#1: The Date.prototype.getMonth.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T3.js b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T3.js
index 6f8e68167..ef10bf216 100644
--- a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T3.js
+++ b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.getMonth.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.getMonth.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.getMonth) {
- if(x === "length") {
+for (var x in Date.prototype.getMonth) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.getMonth.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getMonth/this-value-non-date.js b/test/built-ins/Date/prototype/getMonth/this-value-non-date.js
index 35e9a49c8..0dbd2ef09 100644
--- a/test/built-ins/Date/prototype/getMonth/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/getMonth/this-value-non-date.js
@@ -16,7 +16,9 @@ info: |
---*/
var getMonth = Date.prototype.getMonth;
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof getMonth, 'function');
diff --git a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T1.js b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T1.js
index 2a323bf2f..c3ecf9670 100644
--- a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T1.js
+++ b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.getSeconds;
-if(x === 1)
+if (x === 1)
Date.prototype.getSeconds = 2;
else
Date.prototype.getSeconds = 1;
diff --git a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T2.js b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T2.js
index 5a54ceef2..0f5b25ac6 100644
--- a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T2.js
+++ b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.22_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.getSeconds === false) {
+if (delete Date.prototype.getSeconds === false) {
$ERROR('#1: The Date.prototype.getSeconds property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T3.js b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T3.js
index 8bdef21e5..c8ef094ed 100644
--- a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T3.js
+++ b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getSeconds')) {
$ERROR('#1: The Date.prototype.getSeconds property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "getSeconds") {
+for (var x in Date.prototype) {
+ if (x === "getSeconds") {
$ERROR('#2: The Date.prototype.getSeconds has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A2_T1.js b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A2_T1.js
index 2421448a4..4670ca41c 100644
--- a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A2_T1.js
+++ b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.22_A2_T1
description: The "length" property of the "getSeconds" is 0
---*/
-if(Date.prototype.getSeconds.hasOwnProperty("length") !== true){
+if (Date.prototype.getSeconds.hasOwnProperty("length") !== true) {
$ERROR('#1: The getSeconds has a "length" property');
}
-if(Date.prototype.getSeconds.length !== 0){
+if (Date.prototype.getSeconds.length !== 0) {
$ERROR('#2: The "length" property of the getSeconds is 0');
}
diff --git a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T2.js b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T2.js
index 0d15087da..6bf3900c9 100644
--- a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T2.js
+++ b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.22_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.getSeconds.length !== true) {
+if (delete Date.prototype.getSeconds.length !== true) {
$ERROR('#1: The Date.prototype.getSeconds.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T3.js b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T3.js
index f60e80489..5f3a77b80 100644
--- a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T3.js
+++ b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.getSeconds.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.getSeconds.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.getSeconds) {
- if(x === "length") {
+for (var x in Date.prototype.getSeconds) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.getSeconds.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getSeconds/this-value-non-date.js b/test/built-ins/Date/prototype/getSeconds/this-value-non-date.js
index e2068723e..01b061bb6 100644
--- a/test/built-ins/Date/prototype/getSeconds/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/getSeconds/this-value-non-date.js
@@ -16,7 +16,9 @@ info: |
---*/
var getSeconds = Date.prototype.getSeconds;
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof getSeconds, 'function');
diff --git a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T1.js b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T1.js
index 48649c664..d64c25bda 100644
--- a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T1.js
+++ b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.getTime;
-if(x === 1)
+if (x === 1)
Date.prototype.getTime = 2;
else
Date.prototype.getTime = 1;
diff --git a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T2.js b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T2.js
index f8989220a..c492eeb3e 100644
--- a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T2.js
+++ b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.9_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.getTime === false) {
+if (delete Date.prototype.getTime === false) {
$ERROR('#1: The Date.prototype.getTime property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T3.js b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T3.js
index c390183cc..03899aedb 100644
--- a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T3.js
+++ b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getTime')) {
$ERROR('#1: The Date.prototype.getTime property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "getTime") {
+for (var x in Date.prototype) {
+ if (x === "getTime") {
$ERROR('#2: The Date.prototype.getTime has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A2_T1.js b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A2_T1.js
index 3c5840532..bfb10ee71 100644
--- a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A2_T1.js
+++ b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.9_A2_T1
description: The "length" property of the "getTime" is 0
---*/
-if(Date.prototype.getTime.hasOwnProperty("length") !== true){
+if (Date.prototype.getTime.hasOwnProperty("length") !== true) {
$ERROR('#1: The getTime has a "length" property');
}
-if(Date.prototype.getTime.length !== 0){
+if (Date.prototype.getTime.length !== 0) {
$ERROR('#2: The "length" property of the getTime is 0');
}
diff --git a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T2.js b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T2.js
index 7a966b47f..ed9a191ef 100644
--- a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T2.js
+++ b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.9_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.getTime.length !== true) {
+if (delete Date.prototype.getTime.length !== true) {
$ERROR('#1: The Date.prototype.getTime.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T3.js b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T3.js
index bdd9c3d20..9c70eb7d3 100644
--- a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T3.js
+++ b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.getTime.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.getTime.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.getTime) {
- if(x === "length") {
+for (var x in Date.prototype.getTime) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.getTime.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getTime/this-value-non-date.js b/test/built-ins/Date/prototype/getTime/this-value-non-date.js
index ee4bb53d5..5e97078b7 100644
--- a/test/built-ins/Date/prototype/getTime/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/getTime/this-value-non-date.js
@@ -16,7 +16,9 @@ info: |
---*/
var getTime = Date.prototype.getTime;
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof getTime, 'function');
diff --git a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T1.js b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T1.js
index 7255118e1..f3a664fcb 100644
--- a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T1.js
+++ b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T1.js
@@ -11,7 +11,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.getTimezoneOffset;
-if(x === 1)
+if (x === 1)
Date.prototype.getTimezoneOffset = 2;
else
Date.prototype.getTimezoneOffset = 1;
diff --git a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T2.js b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T2.js
index 721d0a657..553711f41 100644
--- a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T2.js
+++ b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.26_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.getTimezoneOffset === false) {
+if (delete Date.prototype.getTimezoneOffset === false) {
$ERROR('#1: The Date.prototype.getTimezoneOffset property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T3.js b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T3.js
index d52abbf4c..6665c7a28 100644
--- a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T3.js
+++ b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.propertyIsEnumerable('getTimezoneOffset')) {
$ERROR('#1: The Date.prototype.getTimezoneOffset property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "getTimezoneOffset") {
+for (var x in Date.prototype) {
+ if (x === "getTimezoneOffset") {
$ERROR('#2: The Date.prototype.getTimezoneOffset has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A2_T1.js b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A2_T1.js
index 75f1923f7..606a8b167 100644
--- a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A2_T1.js
+++ b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.26_A2_T1
description: The "length" property of the "getTimezoneOffset" is 0
---*/
-if(Date.prototype.getTimezoneOffset.hasOwnProperty("length") !== true){
+if (Date.prototype.getTimezoneOffset.hasOwnProperty("length") !== true) {
$ERROR('#1: The getTimezoneOffset has a "length" property');
}
-if(Date.prototype.getTimezoneOffset.length !== 0){
+if (Date.prototype.getTimezoneOffset.length !== 0) {
$ERROR('#2: The "length" property of the getTimezoneOffset is 0');
}
diff --git a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T2.js b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T2.js
index 68b62628a..2d122a878 100644
--- a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T2.js
+++ b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.26_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.getTimezoneOffset.length !== true) {
+if (delete Date.prototype.getTimezoneOffset.length !== true) {
$ERROR('#1: The Date.prototype.getTimezoneOffset.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T3.js b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T3.js
index e49b97ebe..07d60f18a 100644
--- a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T3.js
+++ b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.getTimezoneOffset.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.getTimezoneOffset.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.getTimezoneOffset) {
- if(x === "length") {
+for (var x in Date.prototype.getTimezoneOffset) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.getTimezoneOffset.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getTimezoneOffset/this-value-non-date.js b/test/built-ins/Date/prototype/getTimezoneOffset/this-value-non-date.js
index 5cda48211..a2babe656 100644
--- a/test/built-ins/Date/prototype/getTimezoneOffset/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/getTimezoneOffset/this-value-non-date.js
@@ -16,7 +16,9 @@ info: |
---*/
var getTimezoneOffset = Date.prototype.getTimezoneOffset;
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof getTimezoneOffset, 'function');
diff --git a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T1.js b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T1.js
index 2d827c88a..a0dbe95e8 100644
--- a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T1.js
+++ b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.getUTCDate;
-if(x === 1)
+if (x === 1)
Date.prototype.getUTCDate = 2;
else
Date.prototype.getUTCDate = 1;
diff --git a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T2.js b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T2.js
index 70c26e283..90ab47a5d 100644
--- a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T2.js
+++ b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.15_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.getUTCDate === false) {
+if (delete Date.prototype.getUTCDate === false) {
$ERROR('#1: The Date.prototype.getUTCDate property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T3.js b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T3.js
index 522c090fc..e91f04ae8 100644
--- a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T3.js
+++ b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getUTCDate')) {
$ERROR('#1: The Date.prototype.getUTCDate property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "getUTCDate") {
+for (var x in Date.prototype) {
+ if (x === "getUTCDate") {
$ERROR('#2: The Date.prototype.getUTCDate has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A2_T1.js b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A2_T1.js
index 92141a35e..d9a4b4075 100644
--- a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A2_T1.js
+++ b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.15_A2_T1
description: The "length" property of the "getUTCDate" is 0
---*/
-if(Date.prototype.getUTCDate.hasOwnProperty("length") !== true){
+if (Date.prototype.getUTCDate.hasOwnProperty("length") !== true) {
$ERROR('#1: The getUTCDate has a "length" property');
}
-if(Date.prototype.getUTCDate.length !== 0){
+if (Date.prototype.getUTCDate.length !== 0) {
$ERROR('#2: The "length" property of the getUTCDate is 0');
}
diff --git a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T2.js b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T2.js
index e03366735..de279e6ea 100644
--- a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T2.js
+++ b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.15_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.getUTCDate.length !== true) {
+if (delete Date.prototype.getUTCDate.length !== true) {
$ERROR('#1: The Date.prototype.getUTCDate.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T3.js b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T3.js
index 780ec6ea4..5f7607bda 100644
--- a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T3.js
+++ b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.getUTCDate.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.getUTCDate.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.getUTCDate) {
- if(x === "length") {
+for (var x in Date.prototype.getUTCDate) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.getUTCDate.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getUTCDate/this-value-non-date.js b/test/built-ins/Date/prototype/getUTCDate/this-value-non-date.js
index d2dae6634..19c4ffdb2 100644
--- a/test/built-ins/Date/prototype/getUTCDate/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/getUTCDate/this-value-non-date.js
@@ -16,7 +16,9 @@ info: |
---*/
var getUTCDate = Date.prototype.getUTCDate;
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof getUTCDate, 'function');
diff --git a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T1.js b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T1.js
index e7d0f56a3..b461a8e7b 100644
--- a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T1.js
+++ b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.getUTCDay;
-if(x === 1)
+if (x === 1)
Date.prototype.getUTCDay = 2;
else
Date.prototype.getUTCDay = 1;
diff --git a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T2.js b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T2.js
index 526741c0a..05074a1e1 100644
--- a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T2.js
+++ b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.17_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.getUTCDay === false) {
+if (delete Date.prototype.getUTCDay === false) {
$ERROR('#1: The Date.prototype.getUTCDay property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T3.js b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T3.js
index 49aeeec1b..3c7bc11a9 100644
--- a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T3.js
+++ b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getUTCDay')) {
$ERROR('#1: The Date.prototype.getUTCDay property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "getUTCDay") {
+for (var x in Date.prototype) {
+ if (x === "getUTCDay") {
$ERROR('#2: The Date.prototype.getUTCDay has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A2_T1.js b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A2_T1.js
index f506616e0..616287d5b 100644
--- a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A2_T1.js
+++ b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.17_A2_T1
description: The "length" property of the "getUTCDay" is 0
---*/
-if(Date.prototype.getUTCDay.hasOwnProperty("length") !== true){
+if (Date.prototype.getUTCDay.hasOwnProperty("length") !== true) {
$ERROR('#1: The getUTCDay has a "length" property');
}
-if(Date.prototype.getUTCDay.length !== 0){
+if (Date.prototype.getUTCDay.length !== 0) {
$ERROR('#2: The "length" property of the getUTCDay is 0');
}
diff --git a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T2.js b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T2.js
index 0eac97f72..e16a345ee 100644
--- a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T2.js
+++ b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.17_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.getUTCDay.length !== true) {
+if (delete Date.prototype.getUTCDay.length !== true) {
$ERROR('#1: The Date.prototype.getUTCDay.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T3.js b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T3.js
index 00f0e984c..edbb9776c 100644
--- a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T3.js
+++ b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.getUTCDay.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.getUTCDay.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.getUTCDay) {
- if(x === "length") {
+for (var x in Date.prototype.getUTCDay) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.getUTCDay.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getUTCDay/this-value-non-date.js b/test/built-ins/Date/prototype/getUTCDay/this-value-non-date.js
index a7cbdb953..156fe2099 100644
--- a/test/built-ins/Date/prototype/getUTCDay/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/getUTCDay/this-value-non-date.js
@@ -16,7 +16,9 @@ info: |
---*/
var getUTCDay = Date.prototype.getUTCDay;
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof getUTCDay, 'function');
diff --git a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T1.js b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T1.js
index b1fa8320d..c96f0d581 100644
--- a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T1.js
+++ b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.getUTCFullYear;
-if(x === 1)
+if (x === 1)
Date.prototype.getUTCFullYear = 2;
else
Date.prototype.getUTCFullYear = 1;
diff --git a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T2.js b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T2.js
index 1af48d17c..db54c4e56 100644
--- a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T2.js
+++ b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.11_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.getUTCFullYear === false) {
+if (delete Date.prototype.getUTCFullYear === false) {
$ERROR('#1: The Date.prototype.getUTCFullYear property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T3.js b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T3.js
index 1a306a52a..76ac39c61 100644
--- a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T3.js
+++ b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getUTCFullYear')) {
$ERROR('#1: The Date.prototype.getUTCFullYear property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "getUTCFullYear") {
+for (var x in Date.prototype) {
+ if (x === "getUTCFullYear") {
$ERROR('#2: The Date.prototype.getUTCFullYear has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A2_T1.js b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A2_T1.js
index 106f8dbfd..392c4f227 100644
--- a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A2_T1.js
+++ b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.11_A2_T1
description: The "length" property of the "getUTCFullYear" is 0
---*/
-if(Date.prototype.getUTCFullYear.hasOwnProperty("length") !== true){
+if (Date.prototype.getUTCFullYear.hasOwnProperty("length") !== true) {
$ERROR('#1: The getUTCFullYear has a "length" property');
}
-if(Date.prototype.getUTCFullYear.length !== 0){
+if (Date.prototype.getUTCFullYear.length !== 0) {
$ERROR('#2: The "length" property of the getUTCFullYear is 0');
}
diff --git a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T2.js b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T2.js
index 587a257d1..12616454f 100644
--- a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T2.js
+++ b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.11_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.getUTCFullYear.length !== true) {
+if (delete Date.prototype.getUTCFullYear.length !== true) {
$ERROR('#1: The Date.prototype.getUTCFullYear.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T3.js b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T3.js
index a2f421570..973396f11 100644
--- a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T3.js
+++ b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.getUTCFullYear.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.getUTCFullYear.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.getUTCFullYear) {
- if(x === "length") {
+for (var x in Date.prototype.getUTCFullYear) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.getUTCFullYear.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getUTCFullYear/this-value-non-date.js b/test/built-ins/Date/prototype/getUTCFullYear/this-value-non-date.js
index deb4325ec..b64b3df41 100644
--- a/test/built-ins/Date/prototype/getUTCFullYear/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/getUTCFullYear/this-value-non-date.js
@@ -16,7 +16,9 @@ info: |
---*/
var getUTCFullYear = Date.prototype.getUTCFullYear;
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof getUTCFullYear, 'function');
diff --git a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T1.js b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T1.js
index 7836d0c30..a34f02109 100644
--- a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T1.js
+++ b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.getUTCHours;
-if(x === 1)
+if (x === 1)
Date.prototype.getUTCHours = 2;
else
Date.prototype.getUTCHours = 1;
diff --git a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T2.js b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T2.js
index d874fb162..da81ad63d 100644
--- a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T2.js
+++ b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.19_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.getUTCHours === false) {
+if (delete Date.prototype.getUTCHours === false) {
$ERROR('#1: The Date.prototype.getUTCHours property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T3.js b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T3.js
index fd140cd31..1109de1d0 100644
--- a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T3.js
+++ b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getUTCHours')) {
$ERROR('#1: The Date.prototype.getUTCHours property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "getUTCHours") {
+for (var x in Date.prototype) {
+ if (x === "getUTCHours") {
$ERROR('#2: The Date.prototype.getUTCHours has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A2_T1.js b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A2_T1.js
index 040c4f959..1d9e61e9f 100644
--- a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A2_T1.js
+++ b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.19_A2_T1
description: The "length" property of the "getUTCHours" is 0
---*/
-if(Date.prototype.getUTCHours.hasOwnProperty("length") !== true){
+if (Date.prototype.getUTCHours.hasOwnProperty("length") !== true) {
$ERROR('#1: The getUTCHours has a "length" property');
}
-if(Date.prototype.getUTCHours.length !== 0){
+if (Date.prototype.getUTCHours.length !== 0) {
$ERROR('#2: The "length" property of the getUTCHours is 0');
}
diff --git a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T2.js b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T2.js
index 9d5cc2186..9a83ba968 100644
--- a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T2.js
+++ b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.19_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.getUTCHours.length !== true) {
+if (delete Date.prototype.getUTCHours.length !== true) {
$ERROR('#1: The Date.prototype.getUTCHours.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T3.js b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T3.js
index 4e567e4fa..f8f01c1f6 100644
--- a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T3.js
+++ b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.getUTCHours.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.getUTCHours.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.getUTCHours) {
- if(x === "length") {
+for (var x in Date.prototype.getUTCHours) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.getUTCHours.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getUTCHours/this-value-non-date.js b/test/built-ins/Date/prototype/getUTCHours/this-value-non-date.js
index 6eeee6196..5a094cf77 100644
--- a/test/built-ins/Date/prototype/getUTCHours/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/getUTCHours/this-value-non-date.js
@@ -16,7 +16,9 @@ info: |
---*/
var getUTCHours = Date.prototype.getUTCHours;
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof getUTCHours, 'function');
diff --git a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T1.js b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T1.js
index 66f8ac106..7ca02ffca 100644
--- a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T1.js
+++ b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T1.js
@@ -11,7 +11,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.getUTCMilliseconds;
-if(x === 1)
+if (x === 1)
Date.prototype.getUTCMilliseconds = 2;
else
Date.prototype.getUTCMilliseconds = 1;
diff --git a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T2.js b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T2.js
index 63c9005a2..5d8c8b31f 100644
--- a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T2.js
+++ b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.25_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.getUTCMilliseconds === false) {
+if (delete Date.prototype.getUTCMilliseconds === false) {
$ERROR('#1: The Date.prototype.getUTCMilliseconds property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T3.js b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T3.js
index dcb538084..0c0a8d319 100644
--- a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T3.js
+++ b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.propertyIsEnumerable('getUTCMilliseconds')) {
$ERROR('#1: The Date.prototype.getUTCMilliseconds property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "getUTCMilliseconds") {
+for (var x in Date.prototype) {
+ if (x === "getUTCMilliseconds") {
$ERROR('#2: The Date.prototype.getUTCMilliseconds has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A2_T1.js b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A2_T1.js
index b14b5e9a4..2d8a11c1b 100644
--- a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A2_T1.js
+++ b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.25_A2_T1
description: The "length" property of the "getUTCMilliseconds" is 0
---*/
-if(Date.prototype.getUTCMilliseconds.hasOwnProperty("length") !== true){
+if (Date.prototype.getUTCMilliseconds.hasOwnProperty("length") !== true) {
$ERROR('#1: The getUTCMilliseconds has a "length" property');
}
-if(Date.prototype.getUTCMilliseconds.length !== 0){
+if (Date.prototype.getUTCMilliseconds.length !== 0) {
$ERROR('#2: The "length" property of the getUTCMilliseconds is 0');
}
diff --git a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T2.js b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T2.js
index 665f2989e..9b079694f 100644
--- a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T2.js
+++ b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.25_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.getUTCMilliseconds.length !== true) {
+if (delete Date.prototype.getUTCMilliseconds.length !== true) {
$ERROR('#1: The Date.prototype.getUTCMilliseconds.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T3.js b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T3.js
index 3e9443080..7a33960ae 100644
--- a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T3.js
+++ b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.getUTCMilliseconds.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.getUTCMilliseconds.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.getUTCMilliseconds) {
- if(x === "length") {
+for (var x in Date.prototype.getUTCMilliseconds) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.getUTCMilliseconds.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getUTCMilliseconds/this-value-non-date.js b/test/built-ins/Date/prototype/getUTCMilliseconds/this-value-non-date.js
index f819746d1..6c20b2ed7 100644
--- a/test/built-ins/Date/prototype/getUTCMilliseconds/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/getUTCMilliseconds/this-value-non-date.js
@@ -16,7 +16,9 @@ info: |
---*/
var getUTCMilliseconds = Date.prototype.getUTCMilliseconds;
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof getUTCMilliseconds, 'function');
diff --git a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T1.js b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T1.js
index 3ddc4e156..de48fbbab 100644
--- a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T1.js
+++ b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.getUTCMinutes;
-if(x === 1)
+if (x === 1)
Date.prototype.getUTCMinutes = 2;
else
Date.prototype.getUTCMinutes = 1;
diff --git a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T2.js b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T2.js
index 7bca0c22d..04951c393 100644
--- a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T2.js
+++ b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.21_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.getUTCMinutes === false) {
+if (delete Date.prototype.getUTCMinutes === false) {
$ERROR('#1: The Date.prototype.getUTCMinutes property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T3.js b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T3.js
index 2cac17d36..bcf79fcdc 100644
--- a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T3.js
+++ b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getUTCMinutes')) {
$ERROR('#1: The Date.prototype.getUTCMinutes property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "getUTCMinutes") {
+for (var x in Date.prototype) {
+ if (x === "getUTCMinutes") {
$ERROR('#2: The Date.prototype.getUTCMinutes has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A2_T1.js b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A2_T1.js
index ec48a5454..0704d95d0 100644
--- a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A2_T1.js
+++ b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.21_A2_T1
description: The "length" property of the "getUTCMinutes" is 0
---*/
-if(Date.prototype.getUTCMinutes.hasOwnProperty("length") !== true){
+if (Date.prototype.getUTCMinutes.hasOwnProperty("length") !== true) {
$ERROR('#1: The getUTCMinutes has a "length" property');
}
-if(Date.prototype.getUTCMinutes.length !== 0){
+if (Date.prototype.getUTCMinutes.length !== 0) {
$ERROR('#2: The "length" property of the getUTCMinutes is 0');
}
diff --git a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T2.js b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T2.js
index 6991e9530..c33ebaaea 100644
--- a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T2.js
+++ b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.21_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.getUTCMinutes.length !== true) {
+if (delete Date.prototype.getUTCMinutes.length !== true) {
$ERROR('#1: The Date.prototype.getUTCMinutes.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T3.js b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T3.js
index de2100e16..b5b26ff33 100644
--- a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T3.js
+++ b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.getUTCMinutes.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.getUTCMinutes.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.getUTCMinutes) {
- if(x === "length") {
+for (var x in Date.prototype.getUTCMinutes) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.getUTCMinutes.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getUTCMinutes/this-value-non-date.js b/test/built-ins/Date/prototype/getUTCMinutes/this-value-non-date.js
index d1ce694e4..10e42c208 100644
--- a/test/built-ins/Date/prototype/getUTCMinutes/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/getUTCMinutes/this-value-non-date.js
@@ -16,7 +16,9 @@ info: |
---*/
var getUTCMinutes = Date.prototype.getUTCMinutes;
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof getUTCMinutes, 'function');
diff --git a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T1.js b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T1.js
index 705c403c3..7e18abfda 100644
--- a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T1.js
+++ b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.getUTCMonth;
-if(x === 1)
+if (x === 1)
Date.prototype.getUTCMonth = 2;
else
Date.prototype.getUTCMonth = 1;
diff --git a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T2.js b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T2.js
index 9ea891483..a36fde2db 100644
--- a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T2.js
+++ b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.13_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.getUTCMonth === false) {
+if (delete Date.prototype.getUTCMonth === false) {
$ERROR('#1: The Date.prototype.getUTCMonth property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T3.js b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T3.js
index 70498de04..bdff66e89 100644
--- a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T3.js
+++ b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getUTCMonth')) {
$ERROR('#1: The Date.prototype.getUTCMonth property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "getUTCMonth") {
+for (var x in Date.prototype) {
+ if (x === "getUTCMonth") {
$ERROR('#2: The Date.prototype.getUTCMonth has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A2_T1.js b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A2_T1.js
index c75a98145..987754bcc 100644
--- a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A2_T1.js
+++ b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.13_A2_T1
description: The "length" property of the "getUTCMonth" is 0
---*/
-if(Date.prototype.getUTCMonth.hasOwnProperty("length") !== true){
+if (Date.prototype.getUTCMonth.hasOwnProperty("length") !== true) {
$ERROR('#1: The getUTCMonth has a "length" property');
}
-if(Date.prototype.getUTCMonth.length !== 0){
+if (Date.prototype.getUTCMonth.length !== 0) {
$ERROR('#2: The "length" property of the getUTCMonth is 0');
}
diff --git a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T2.js b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T2.js
index da0788086..7f1b9e911 100644
--- a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T2.js
+++ b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.13_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.getUTCMonth.length !== true) {
+if (delete Date.prototype.getUTCMonth.length !== true) {
$ERROR('#1: The Date.prototype.getUTCMonth.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T3.js b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T3.js
index f6755a860..f2258b315 100644
--- a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T3.js
+++ b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.getUTCMonth.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.getUTCMonth.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.getUTCMonth) {
- if(x === "length") {
+for (var x in Date.prototype.getUTCMonth) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.getUTCMonth.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getUTCMonth/this-value-non-date.js b/test/built-ins/Date/prototype/getUTCMonth/this-value-non-date.js
index 0dacaba82..cfb11a6a9 100644
--- a/test/built-ins/Date/prototype/getUTCMonth/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/getUTCMonth/this-value-non-date.js
@@ -16,7 +16,9 @@ info: |
---*/
var getUTCMonth = Date.prototype.getUTCMonth;
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof getUTCMonth, 'function');
diff --git a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T1.js b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T1.js
index b12f8f56c..634414bb1 100644
--- a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T1.js
+++ b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.getUTCSeconds;
-if(x === 1)
+if (x === 1)
Date.prototype.getUTCSeconds = 2;
else
Date.prototype.getUTCSeconds = 1;
diff --git a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T2.js b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T2.js
index 80019c13e..4a56c810f 100644
--- a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T2.js
+++ b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.23_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.getUTCSeconds === false) {
+if (delete Date.prototype.getUTCSeconds === false) {
$ERROR('#1: The Date.prototype.getUTCSeconds property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T3.js b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T3.js
index 1d0051b56..c72724973 100644
--- a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T3.js
+++ b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getUTCSeconds')) {
$ERROR('#1: The Date.prototype.getUTCSeconds property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "getUTCSeconds") {
+for (var x in Date.prototype) {
+ if (x === "getUTCSeconds") {
$ERROR('#2: The Date.prototype.getUTCSeconds has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A2_T1.js b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A2_T1.js
index 80a364e36..e621eb0bc 100644
--- a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A2_T1.js
+++ b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.23_A2_T1
description: The "length" property of the "getUTCSeconds" is 0
---*/
-if(Date.prototype.getUTCSeconds.hasOwnProperty("length") !== true){
+if (Date.prototype.getUTCSeconds.hasOwnProperty("length") !== true) {
$ERROR('#1: The getUTCSeconds has a "length" property');
}
-if(Date.prototype.getUTCSeconds.length !== 0){
+if (Date.prototype.getUTCSeconds.length !== 0) {
$ERROR('#2: The "length" property of the getUTCSeconds is 0');
}
diff --git a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T2.js b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T2.js
index 37ca26af5..8ee7aa797 100644
--- a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T2.js
+++ b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.23_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.getUTCSeconds.length !== true) {
+if (delete Date.prototype.getUTCSeconds.length !== true) {
$ERROR('#1: The Date.prototype.getUTCSeconds.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T3.js b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T3.js
index 208feef43..2a3556675 100644
--- a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T3.js
+++ b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.getUTCSeconds.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.getUTCSeconds.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.getUTCSeconds) {
- if(x === "length") {
+for (var x in Date.prototype.getUTCSeconds) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.getUTCSeconds.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/getUTCSeconds/this-value-non-date.js b/test/built-ins/Date/prototype/getUTCSeconds/this-value-non-date.js
index 0b4fc5f08..7e05c1440 100644
--- a/test/built-ins/Date/prototype/getUTCSeconds/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/getUTCSeconds/this-value-non-date.js
@@ -16,7 +16,9 @@ info: |
---*/
var getUTCSeconds = Date.prototype.getUTCSeconds;
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof getUTCSeconds, 'function');
diff --git a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T1.js b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T1.js
index 9745d426d..44bf2281f 100644
--- a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T1.js
+++ b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.setDate;
-if(x === 1)
+if (x === 1)
Date.prototype.setDate = 2;
else
Date.prototype.setDate = 1;
diff --git a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T2.js b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T2.js
index ead65ce16..106d19e4f 100644
--- a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T2.js
+++ b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.36_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.setDate === false) {
+if (delete Date.prototype.setDate === false) {
$ERROR('#1: The Date.prototype.setDate property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T3.js b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T3.js
index 9d30e635b..90cdad160 100644
--- a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T3.js
+++ b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setDate')) {
$ERROR('#1: The Date.prototype.setDate property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "setDate") {
+for (var x in Date.prototype) {
+ if (x === "setDate") {
$ERROR('#2: The Date.prototype.setDate has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A2_T1.js b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A2_T1.js
index 51be0cd06..c85ae0c50 100644
--- a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A2_T1.js
+++ b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.36_A2_T1
description: The "length" property of the "setDate" is 1
---*/
-if(Date.prototype.setDate.hasOwnProperty("length") !== true){
+if (Date.prototype.setDate.hasOwnProperty("length") !== true) {
$ERROR('#1: The setDate has a "length" property');
}
-if(Date.prototype.setDate.length !== 1){
+if (Date.prototype.setDate.length !== 1) {
$ERROR('#2: The "length" property of the setDate is 1');
}
diff --git a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T2.js b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T2.js
index d58c65078..83862dd21 100644
--- a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T2.js
+++ b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.36_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.setDate.length !== true) {
+if (delete Date.prototype.setDate.length !== true) {
$ERROR('#1: The Date.prototype.setDate.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T3.js b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T3.js
index 2a523fedb..52762004e 100644
--- a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T3.js
+++ b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.setDate.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.setDate.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.setDate) {
- if(x === "length") {
+for (var x in Date.prototype.setDate) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.setDate.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setDate/this-value-non-date.js b/test/built-ins/Date/prototype/setDate/this-value-non-date.js
index 8cfe10631..b09fd4e3e 100644
--- a/test/built-ins/Date/prototype/setDate/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/setDate/this-value-non-date.js
@@ -23,7 +23,9 @@ var arg = {
return 1;
}
};
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof setDate, 'function');
diff --git a/test/built-ins/Date/prototype/setFullYear/15.9.5.40_1.js b/test/built-ins/Date/prototype/setFullYear/15.9.5.40_1.js
index cde7bec69..446066cec 100644
--- a/test/built-ins/Date/prototype/setFullYear/15.9.5.40_1.js
+++ b/test/built-ins/Date/prototype/setFullYear/15.9.5.40_1.js
@@ -11,5 +11,5 @@ description: >
assert.throws(TypeError, function() {
- Date.prototype.setFullYear(2012);
+ Date.prototype.setFullYear(2012);
});
diff --git a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T1.js b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T1.js
index f148514c4..87c6dfcec 100644
--- a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T1.js
+++ b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.setFullYear;
-if(x === 1)
+if (x === 1)
Date.prototype.setFullYear = 2;
else
Date.prototype.setFullYear = 1;
diff --git a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T2.js b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T2.js
index 6b430e528..2614ce2be 100644
--- a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T2.js
+++ b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.40_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.setFullYear === false) {
+if (delete Date.prototype.setFullYear === false) {
$ERROR('#1: The Date.prototype.setFullYear property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T3.js b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T3.js
index 2ecf10d65..506cc0869 100644
--- a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T3.js
+++ b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setFullYear')) {
$ERROR('#1: The Date.prototype.setFullYear property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "setFullYear") {
+for (var x in Date.prototype) {
+ if (x === "setFullYear") {
$ERROR('#2: The Date.prototype.setFullYear has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A2_T1.js b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A2_T1.js
index 0a49250a5..4cab3b334 100644
--- a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A2_T1.js
+++ b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.40_A2_T1
description: The "length" property of the "setFullYear" is 3
---*/
-if(Date.prototype.setFullYear.hasOwnProperty("length") !== true){
+if (Date.prototype.setFullYear.hasOwnProperty("length") !== true) {
$ERROR('#1: The setFullYear has a "length" property');
}
-if(Date.prototype.setFullYear.length !== 3){
+if (Date.prototype.setFullYear.length !== 3) {
$ERROR('#2: The "length" property of the setFullYear is 3');
}
diff --git a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T2.js b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T2.js
index ba5017746..5dab62ff4 100644
--- a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T2.js
+++ b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.40_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.setFullYear.length !== true) {
+if (delete Date.prototype.setFullYear.length !== true) {
$ERROR('#1: The Date.prototype.setFullYear.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T3.js b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T3.js
index 565a1f80a..170c26f65 100644
--- a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T3.js
+++ b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.setFullYear.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.setFullYear.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.setFullYear) {
- if(x === "length") {
+for (var x in Date.prototype.setFullYear) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.setFullYear.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setFullYear/this-value-non-date.js b/test/built-ins/Date/prototype/setFullYear/this-value-non-date.js
index ece79ddc4..9a4d316d3 100644
--- a/test/built-ins/Date/prototype/setFullYear/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/setFullYear/this-value-non-date.js
@@ -23,7 +23,9 @@ var arg = {
return 1;
}
};
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof setFullYear, 'function');
diff --git a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T1.js b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T1.js
index 7b709c759..95b5a5a21 100644
--- a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T1.js
+++ b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.setHours;
-if(x === 1)
+if (x === 1)
Date.prototype.setHours = 2;
else
Date.prototype.setHours = 1;
diff --git a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T2.js b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T2.js
index fbca2081e..a46d72b43 100644
--- a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T2.js
+++ b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.34_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.setHours === false) {
+if (delete Date.prototype.setHours === false) {
$ERROR('#1: The Date.prototype.setHours property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T3.js b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T3.js
index 614e46e97..9d005c8e7 100644
--- a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T3.js
+++ b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setHours')) {
$ERROR('#1: The Date.prototype.setHours property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "setHours") {
+for (var x in Date.prototype) {
+ if (x === "setHours") {
$ERROR('#2: The Date.prototype.setHours has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A2_T1.js b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A2_T1.js
index e000d2ab6..7b8bfb66a 100644
--- a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A2_T1.js
+++ b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.34_A2_T1
description: The "length" property of the "setHours" is 4
---*/
-if(Date.prototype.setHours.hasOwnProperty("length") !== true){
+if (Date.prototype.setHours.hasOwnProperty("length") !== true) {
$ERROR('#1: The setHours has a "length" property');
}
-if(Date.prototype.setHours.length !== 4){
+if (Date.prototype.setHours.length !== 4) {
$ERROR('#2: The "length" property of the setHours is 4');
}
diff --git a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T2.js b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T2.js
index c15bc6d2e..83d468f5d 100644
--- a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T2.js
+++ b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.34_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.setHours.length !== true) {
+if (delete Date.prototype.setHours.length !== true) {
$ERROR('#1: The Date.prototype.setHours.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T3.js b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T3.js
index 318de235b..d33d529cd 100644
--- a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T3.js
+++ b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.setHours.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.setHours.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.setHours) {
- if(x === "length") {
+for (var x in Date.prototype.setHours) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.setHours.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setHours/this-value-non-date.js b/test/built-ins/Date/prototype/setHours/this-value-non-date.js
index 1f0c79bff..e1f4fc3be 100644
--- a/test/built-ins/Date/prototype/setHours/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/setHours/this-value-non-date.js
@@ -23,7 +23,9 @@ var arg = {
return 1;
}
};
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof setHours, 'function');
diff --git a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T1.js b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T1.js
index 5942a2006..ff1c5768b 100644
--- a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T1.js
+++ b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.setMilliseconds;
-if(x === 1)
+if (x === 1)
Date.prototype.setMilliseconds = 2;
else
Date.prototype.setMilliseconds = 1;
diff --git a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T2.js b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T2.js
index 2bbc4a908..7af41c60d 100644
--- a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T2.js
+++ b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.28_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.setMilliseconds === false) {
+if (delete Date.prototype.setMilliseconds === false) {
$ERROR('#1: The Date.prototype.setMilliseconds property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T3.js b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T3.js
index 304c43553..9f8624a50 100644
--- a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T3.js
+++ b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setMilliseconds')) {
$ERROR('#1: The Date.prototype.setMilliseconds property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "setMilliseconds") {
+for (var x in Date.prototype) {
+ if (x === "setMilliseconds") {
$ERROR('#2: The Date.prototype.setMilliseconds has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A2_T1.js b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A2_T1.js
index 4d123f0ee..e784ed356 100644
--- a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A2_T1.js
+++ b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.28_A2_T1
description: The "length" property of the "setMilliseconds" is 1
---*/
-if(Date.prototype.setMilliseconds.hasOwnProperty("length") !== true){
+if (Date.prototype.setMilliseconds.hasOwnProperty("length") !== true) {
$ERROR('#1: The setMilliseconds has a "length" property');
}
-if(Date.prototype.setMilliseconds.length !== 1){
+if (Date.prototype.setMilliseconds.length !== 1) {
$ERROR('#2: The "length" property of the setMilliseconds is 1');
}
diff --git a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T2.js b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T2.js
index c53633c55..44772a4fb 100644
--- a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T2.js
+++ b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.28_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.setMilliseconds.length !== true) {
+if (delete Date.prototype.setMilliseconds.length !== true) {
$ERROR('#1: The Date.prototype.setMilliseconds.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T3.js b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T3.js
index 264f0c077..f0af044b5 100644
--- a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T3.js
+++ b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.setMilliseconds.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.setMilliseconds.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.setMilliseconds) {
- if(x === "length") {
+for (var x in Date.prototype.setMilliseconds) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.setMilliseconds.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setMilliseconds/arg-to-number.js b/test/built-ins/Date/prototype/setMilliseconds/arg-to-number.js
index 4ec16e589..7e8d6c2fe 100644
--- a/test/built-ins/Date/prototype/setMilliseconds/arg-to-number.js
+++ b/test/built-ins/Date/prototype/setMilliseconds/arg-to-number.js
@@ -54,7 +54,7 @@ assert.sameValue(returnValue, new Date(2016, 6, 1).getTime(), 'false');
returnValue = date.setMilliseconds(' +00200.000E-0002 ');
assert.sameValue(
- returnValue, new Date(2016, 6, 1, 0, 0, 0 , 2).getTime(), 'string'
+ returnValue, new Date(2016, 6, 1, 0, 0, 0, 2).getTime(), 'string'
);
returnValue = date.setMilliseconds();
diff --git a/test/built-ins/Date/prototype/setMilliseconds/this-value-non-date.js b/test/built-ins/Date/prototype/setMilliseconds/this-value-non-date.js
index df836da90..f0b001094 100644
--- a/test/built-ins/Date/prototype/setMilliseconds/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/setMilliseconds/this-value-non-date.js
@@ -23,7 +23,9 @@ var arg = {
return 1;
}
};
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof setMilliseconds, 'function');
diff --git a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T1.js b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T1.js
index 0eb55d509..66a039333 100644
--- a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T1.js
+++ b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.setMinutes;
-if(x === 1)
+if (x === 1)
Date.prototype.setMinutes = 2;
else
Date.prototype.setMinutes = 1;
diff --git a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T2.js b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T2.js
index a326bb1dc..050e72b87 100644
--- a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T2.js
+++ b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.32_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.setMinutes === false) {
+if (delete Date.prototype.setMinutes === false) {
$ERROR('#1: The Date.prototype.setMinutes property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T3.js b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T3.js
index 7df0448c5..aa2534cba 100644
--- a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T3.js
+++ b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setMinutes')) {
$ERROR('#1: The Date.prototype.setMinutes property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "setMinutes") {
+for (var x in Date.prototype) {
+ if (x === "setMinutes") {
$ERROR('#2: The Date.prototype.setMinutes has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A2_T1.js b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A2_T1.js
index 63b492e5a..307c3faf8 100644
--- a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A2_T1.js
+++ b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.32_A2_T1
description: The "length" property of the "setMinutes" is 3
---*/
-if(Date.prototype.setMinutes.hasOwnProperty("length") !== true){
+if (Date.prototype.setMinutes.hasOwnProperty("length") !== true) {
$ERROR('#1: The setMinutes has a "length" property');
}
-if(Date.prototype.setMinutes.length !== 3){
+if (Date.prototype.setMinutes.length !== 3) {
$ERROR('#2: The "length" property of the setMinutes is 3');
}
diff --git a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T2.js b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T2.js
index 027585d5f..2defce23d 100644
--- a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T2.js
+++ b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.32_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.setMinutes.length !== true) {
+if (delete Date.prototype.setMinutes.length !== true) {
$ERROR('#1: The Date.prototype.setMinutes.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T3.js b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T3.js
index 90f2d2a07..8d0ec1215 100644
--- a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T3.js
+++ b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.setMinutes.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.setMinutes.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.setMinutes) {
- if(x === "length") {
+for (var x in Date.prototype.setMinutes) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.setMinutes.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setMinutes/this-value-non-date.js b/test/built-ins/Date/prototype/setMinutes/this-value-non-date.js
index dfb851f09..dfd21f485 100644
--- a/test/built-ins/Date/prototype/setMinutes/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/setMinutes/this-value-non-date.js
@@ -23,7 +23,9 @@ var arg = {
return 1;
}
};
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof setMinutes, 'function');
diff --git a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T1.js b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T1.js
index db7ec51ac..c38de0214 100644
--- a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T1.js
+++ b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.setMonth;
-if(x === 1)
+if (x === 1)
Date.prototype.setMonth = 2;
else
Date.prototype.setMonth = 1;
diff --git a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T2.js b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T2.js
index a2d3318c1..9c1ab2a20 100644
--- a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T2.js
+++ b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.38_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.setMonth === false) {
+if (delete Date.prototype.setMonth === false) {
$ERROR('#1: The Date.prototype.setMonth property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T3.js b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T3.js
index 2998b51cf..14a0d1537 100644
--- a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T3.js
+++ b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setMonth')) {
$ERROR('#1: The Date.prototype.setMonth property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "setMonth") {
+for (var x in Date.prototype) {
+ if (x === "setMonth") {
$ERROR('#2: The Date.prototype.setMonth has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A2_T1.js b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A2_T1.js
index dd68de3b0..8a5de9ca4 100644
--- a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A2_T1.js
+++ b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.38_A2_T1
description: The "length" property of the "setMonth" is 2
---*/
-if(Date.prototype.setMonth.hasOwnProperty("length") !== true){
+if (Date.prototype.setMonth.hasOwnProperty("length") !== true) {
$ERROR('#1: The setMonth has a "length" property');
}
-if(Date.prototype.setMonth.length !== 2){
+if (Date.prototype.setMonth.length !== 2) {
$ERROR('#2: The "length" property of the setMonth is 2');
}
diff --git a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T2.js b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T2.js
index 17adaeb47..efca28cee 100644
--- a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T2.js
+++ b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.38_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.setMonth.length !== true) {
+if (delete Date.prototype.setMonth.length !== true) {
$ERROR('#1: The Date.prototype.setMonth.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T3.js b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T3.js
index 8169cab41..ef07cbb5c 100644
--- a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T3.js
+++ b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.setMonth.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.setMonth.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.setMonth) {
- if(x === "length") {
+for (var x in Date.prototype.setMonth) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.setMonth.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setMonth/this-value-non-date.js b/test/built-ins/Date/prototype/setMonth/this-value-non-date.js
index 282894467..6d16b1ff4 100644
--- a/test/built-ins/Date/prototype/setMonth/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/setMonth/this-value-non-date.js
@@ -23,7 +23,9 @@ var arg = {
return 1;
}
};
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof setMonth, 'function');
diff --git a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T1.js b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T1.js
index 1ebdb5b51..519120b36 100644
--- a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T1.js
+++ b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.setSeconds;
-if(x === 1)
+if (x === 1)
Date.prototype.setSeconds = 2;
else
Date.prototype.setSeconds = 1;
diff --git a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T2.js b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T2.js
index 43b17d0f8..f9f122a64 100644
--- a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T2.js
+++ b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.30_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.setSeconds === false) {
+if (delete Date.prototype.setSeconds === false) {
$ERROR('#1: The Date.prototype.setSeconds property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T3.js b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T3.js
index f4215dd83..8d960dcb6 100644
--- a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T3.js
+++ b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setSeconds')) {
$ERROR('#1: The Date.prototype.setSeconds property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "setSeconds") {
+for (var x in Date.prototype) {
+ if (x === "setSeconds") {
$ERROR('#2: The Date.prototype.setSeconds has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A2_T1.js b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A2_T1.js
index 49c6c9083..a2fe30e52 100644
--- a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A2_T1.js
+++ b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.30_A2_T1
description: The "length" property of the "setSeconds" is 2
---*/
-if(Date.prototype.setSeconds.hasOwnProperty("length") !== true){
+if (Date.prototype.setSeconds.hasOwnProperty("length") !== true) {
$ERROR('#1: The setSeconds has a "length" property');
}
-if(Date.prototype.setSeconds.length !== 2){
+if (Date.prototype.setSeconds.length !== 2) {
$ERROR('#2: The "length" property of the setSeconds is 2');
}
diff --git a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T2.js b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T2.js
index ef7f322d8..be61ed9a8 100644
--- a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T2.js
+++ b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.30_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.setSeconds.length !== true) {
+if (delete Date.prototype.setSeconds.length !== true) {
$ERROR('#1: The Date.prototype.setSeconds.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T3.js b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T3.js
index bfd04c09d..5a281d8d0 100644
--- a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T3.js
+++ b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.setSeconds.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.setSeconds.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.setSeconds) {
- if(x === "length") {
+for (var x in Date.prototype.setSeconds) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.setSeconds.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setSeconds/this-value-non-date.js b/test/built-ins/Date/prototype/setSeconds/this-value-non-date.js
index 23821c06a..e63ed9c37 100644
--- a/test/built-ins/Date/prototype/setSeconds/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/setSeconds/this-value-non-date.js
@@ -23,7 +23,9 @@ var arg = {
return 1;
}
};
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof setSeconds, 'function');
diff --git a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T1.js b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T1.js
index 1358fd8f9..2a56bf3ae 100644
--- a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T1.js
+++ b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.setTime;
-if(x === 1)
+if (x === 1)
Date.prototype.setTime = 2;
else
Date.prototype.setTime = 1;
diff --git a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T2.js b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T2.js
index 1718c4213..2e872fd72 100644
--- a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T2.js
+++ b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.27_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.setTime === false) {
+if (delete Date.prototype.setTime === false) {
$ERROR('#1: The Date.prototype.setTime property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T3.js b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T3.js
index ed64ee5ed..0a9fd6ce5 100644
--- a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T3.js
+++ b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setTime')) {
$ERROR('#1: The Date.prototype.setTime property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "setTime") {
+for (var x in Date.prototype) {
+ if (x === "setTime") {
$ERROR('#2: The Date.prototype.setTime has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A2_T1.js b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A2_T1.js
index 0b47d76ce..f7f68712d 100644
--- a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A2_T1.js
+++ b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.27_A2_T1
description: The "length" property of the "setTime" is 1
---*/
-if(Date.prototype.setTime.hasOwnProperty("length") !== true){
+if (Date.prototype.setTime.hasOwnProperty("length") !== true) {
$ERROR('#1: The setTime has a "length" property');
}
-if(Date.prototype.setTime.length !== 1){
+if (Date.prototype.setTime.length !== 1) {
$ERROR('#2: The "length" property of the setTime is 1');
}
diff --git a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T2.js b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T2.js
index 95b02e0d5..f804e38d9 100644
--- a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T2.js
+++ b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.27_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.setTime.length !== true) {
+if (delete Date.prototype.setTime.length !== true) {
$ERROR('#1: The Date.prototype.setTime.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T3.js b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T3.js
index 1981007be..cdd444a6b 100644
--- a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T3.js
+++ b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.setTime.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.setTime.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.setTime) {
- if(x === "length") {
+for (var x in Date.prototype.setTime) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.setTime.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setTime/this-value-non-date.js b/test/built-ins/Date/prototype/setTime/this-value-non-date.js
index c2fb0f4b6..ca4ade5b2 100644
--- a/test/built-ins/Date/prototype/setTime/this-value-non-date.js
+++ b/test/built-ins/Date/prototype/setTime/this-value-non-date.js
@@ -23,7 +23,9 @@ var arg = {
return 1;
}
};
-var args = (function() { return arguments; }());
+var args = (function() {
+ return arguments;
+}());
assert.sameValue(typeof setTime, 'function');
diff --git a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T1.js b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T1.js
index fb0106d71..c296387b8 100644
--- a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T1.js
+++ b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.setUTCDate;
-if(x === 1)
+if (x === 1)
Date.prototype.setUTCDate = 2;
else
Date.prototype.setUTCDate = 1;
diff --git a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T2.js b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T2.js
index 5cb5c8bb1..3ef3186fa 100644
--- a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T2.js
+++ b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.37_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.setUTCDate === false) {
+if (delete Date.prototype.setUTCDate === false) {
$ERROR('#1: The Date.prototype.setUTCDate property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T3.js b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T3.js
index f99b22fcc..90decdc77 100644
--- a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T3.js
+++ b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setUTCDate')) {
$ERROR('#1: The Date.prototype.setUTCDate property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "setUTCDate") {
+for (var x in Date.prototype) {
+ if (x === "setUTCDate") {
$ERROR('#2: The Date.prototype.setUTCDate has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A2_T1.js b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A2_T1.js
index 4e810092e..3cbefe81a 100644
--- a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A2_T1.js
+++ b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.37_A2_T1
description: The "length" property of the "setUTCDate" is 1
---*/
-if(Date.prototype.setUTCDate.hasOwnProperty("length") !== true){
+if (Date.prototype.setUTCDate.hasOwnProperty("length") !== true) {
$ERROR('#1: The setUTCDate has a "length" property');
}
-if(Date.prototype.setUTCDate.length !== 1){
+if (Date.prototype.setUTCDate.length !== 1) {
$ERROR('#2: The "length" property of the setUTCDate is 1');
}
diff --git a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T2.js b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T2.js
index 732f6bf78..5e29f15a8 100644
--- a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T2.js
+++ b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.37_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.setUTCDate.length !== true) {
+if (delete Date.prototype.setUTCDate.length !== true) {
$ERROR('#1: The Date.prototype.setUTCDate.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T3.js b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T3.js
index eb097a6ac..ffebf0797 100644
--- a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T3.js
+++ b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.setUTCDate.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.setUTCDate.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.setUTCDate) {
- if(x === "length") {
+for (var x in Date.prototype.setUTCDate) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.setUTCDate.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T1.js b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T1.js
index ff165c535..fa2e021e2 100644
--- a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T1.js
+++ b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.setUTCFullYear;
-if(x === 1)
+if (x === 1)
Date.prototype.setUTCFullYear = 2;
else
Date.prototype.setUTCFullYear = 1;
diff --git a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T2.js b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T2.js
index a12b7435d..1d8a1262c 100644
--- a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T2.js
+++ b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.41_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.setUTCFullYear === false) {
+if (delete Date.prototype.setUTCFullYear === false) {
$ERROR('#1: The Date.prototype.setUTCFullYear property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T3.js b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T3.js
index 1a388a682..7abfca465 100644
--- a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T3.js
+++ b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setUTCFullYear')) {
$ERROR('#1: The Date.prototype.setUTCFullYear property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "setUTCFullYear") {
+for (var x in Date.prototype) {
+ if (x === "setUTCFullYear") {
$ERROR('#2: The Date.prototype.setUTCFullYear has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A2_T1.js b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A2_T1.js
index 185a24888..1c332dd81 100644
--- a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A2_T1.js
+++ b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.41_A2_T1
description: The "length" property of the "setUTCFullYear" is 3
---*/
-if(Date.prototype.setUTCFullYear.hasOwnProperty("length") !== true){
+if (Date.prototype.setUTCFullYear.hasOwnProperty("length") !== true) {
$ERROR('#1: The setUTCFullYear has a "length" property');
}
-if(Date.prototype.setUTCFullYear.length !== 3){
+if (Date.prototype.setUTCFullYear.length !== 3) {
$ERROR('#2: The "length" property of the setUTCFullYear is 3');
}
diff --git a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T2.js b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T2.js
index a35c41590..a2228d589 100644
--- a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T2.js
+++ b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.41_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.setUTCFullYear.length !== true) {
+if (delete Date.prototype.setUTCFullYear.length !== true) {
$ERROR('#1: The Date.prototype.setUTCFullYear.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T3.js b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T3.js
index f67269dc1..6ef0033d8 100644
--- a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T3.js
+++ b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.setUTCFullYear.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.setUTCFullYear.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.setUTCFullYear) {
- if(x === "length") {
+for (var x in Date.prototype.setUTCFullYear) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.setUTCFullYear.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T1.js b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T1.js
index f59d7877c..887d73eca 100644
--- a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T1.js
+++ b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.setUTCHours;
-if(x === 1)
+if (x === 1)
Date.prototype.setUTCHours = 2;
else
Date.prototype.setUTCHours = 1;
diff --git a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T2.js b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T2.js
index 48a615ba2..c314b25bd 100644
--- a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T2.js
+++ b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.35_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.setUTCHours === false) {
+if (delete Date.prototype.setUTCHours === false) {
$ERROR('#1: The Date.prototype.setUTCHours property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T3.js b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T3.js
index a7355fa1d..e7645db48 100644
--- a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T3.js
+++ b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setUTCHours')) {
$ERROR('#1: The Date.prototype.setUTCHours property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "setUTCHours") {
+for (var x in Date.prototype) {
+ if (x === "setUTCHours") {
$ERROR('#2: The Date.prototype.setUTCHours has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A2_T1.js b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A2_T1.js
index 4101fa7e6..aff70c61e 100644
--- a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A2_T1.js
+++ b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.35_A2_T1
description: The "length" property of the "setUTCHours" is 4
---*/
-if(Date.prototype.setUTCHours.hasOwnProperty("length") !== true){
+if (Date.prototype.setUTCHours.hasOwnProperty("length") !== true) {
$ERROR('#1: The setUTCHours has a "length" property');
}
-if(Date.prototype.setUTCHours.length !== 4){
+if (Date.prototype.setUTCHours.length !== 4) {
$ERROR('#2: The "length" property of the setUTCHours is 4');
}
diff --git a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T2.js b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T2.js
index 6f4e2dd0d..907b8712e 100644
--- a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T2.js
+++ b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.35_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.setUTCHours.length !== true) {
+if (delete Date.prototype.setUTCHours.length !== true) {
$ERROR('#1: The Date.prototype.setUTCHours.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T3.js b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T3.js
index 745bfc88f..c80cf6219 100644
--- a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T3.js
+++ b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.setUTCHours.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.setUTCHours.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.setUTCHours) {
- if(x === "length") {
+for (var x in Date.prototype.setUTCHours) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.setUTCHours.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T1.js b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T1.js
index 76f4e76b0..a1d0a1947 100644
--- a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T1.js
+++ b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T1.js
@@ -11,7 +11,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.setUTCMilliseconds;
-if(x === 1)
+if (x === 1)
Date.prototype.setUTCMilliseconds = 2;
else
Date.prototype.setUTCMilliseconds = 1;
diff --git a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T2.js b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T2.js
index 75d82db9e..4d8fc8fa5 100644
--- a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T2.js
+++ b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.29_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.setUTCMilliseconds === false) {
+if (delete Date.prototype.setUTCMilliseconds === false) {
$ERROR('#1: The Date.prototype.setUTCMilliseconds property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T3.js b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T3.js
index caebe55dd..c24ff83d5 100644
--- a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T3.js
+++ b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.propertyIsEnumerable('setUTCMilliseconds')) {
$ERROR('#1: The Date.prototype.setUTCMilliseconds property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "setUTCMilliseconds") {
+for (var x in Date.prototype) {
+ if (x === "setUTCMilliseconds") {
$ERROR('#2: The Date.prototype.setUTCMilliseconds has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A2_T1.js b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A2_T1.js
index 881c01fcc..345a3e3d3 100644
--- a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A2_T1.js
+++ b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.29_A2_T1
description: The "length" property of the "setUTCMilliseconds" is 1
---*/
-if(Date.prototype.setUTCMilliseconds.hasOwnProperty("length") !== true){
+if (Date.prototype.setUTCMilliseconds.hasOwnProperty("length") !== true) {
$ERROR('#1: The setUTCMilliseconds has a "length" property');
}
-if(Date.prototype.setUTCMilliseconds.length !== 1){
+if (Date.prototype.setUTCMilliseconds.length !== 1) {
$ERROR('#2: The "length" property of the setUTCMilliseconds is 1');
}
diff --git a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T2.js b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T2.js
index 57cd4142a..f70f57b13 100644
--- a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T2.js
+++ b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.29_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.setUTCMilliseconds.length !== true) {
+if (delete Date.prototype.setUTCMilliseconds.length !== true) {
$ERROR('#1: The Date.prototype.setUTCMilliseconds.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T3.js b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T3.js
index 6dde346d8..a47a18c29 100644
--- a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T3.js
+++ b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.setUTCMilliseconds.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.setUTCMilliseconds.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.setUTCMilliseconds) {
- if(x === "length") {
+for (var x in Date.prototype.setUTCMilliseconds) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.setUTCMilliseconds.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T1.js b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T1.js
index 688f48e21..44c08e64f 100644
--- a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T1.js
+++ b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.setUTCMinutes;
-if(x === 1)
+if (x === 1)
Date.prototype.setUTCMinutes = 2;
else
Date.prototype.setUTCMinutes = 1;
diff --git a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T2.js b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T2.js
index 9d9f27c44..3bde3ee4d 100644
--- a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T2.js
+++ b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.33_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.setUTCMinutes === false) {
+if (delete Date.prototype.setUTCMinutes === false) {
$ERROR('#1: The Date.prototype.setUTCMinutes property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T3.js b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T3.js
index cce942cbf..edc715a86 100644
--- a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T3.js
+++ b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setUTCMinutes')) {
$ERROR('#1: The Date.prototype.setUTCMinutes property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "setUTCMinutes") {
+for (var x in Date.prototype) {
+ if (x === "setUTCMinutes") {
$ERROR('#2: The Date.prototype.setUTCMinutes has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A2_T1.js b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A2_T1.js
index c6aa7f7d0..bf0efd476 100644
--- a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A2_T1.js
+++ b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.33_A2_T1
description: The "length" property of the "setUTCMinutes" is 3
---*/
-if(Date.prototype.setUTCMinutes.hasOwnProperty("length") !== true){
+if (Date.prototype.setUTCMinutes.hasOwnProperty("length") !== true) {
$ERROR('#1: The setUTCMinutes has a "length" property');
}
-if(Date.prototype.setUTCMinutes.length !== 3){
+if (Date.prototype.setUTCMinutes.length !== 3) {
$ERROR('#2: The "length" property of the setUTCMinutes is 3');
}
diff --git a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T2.js b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T2.js
index d512247e6..5b19af2ea 100644
--- a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T2.js
+++ b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.33_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.setUTCMinutes.length !== true) {
+if (delete Date.prototype.setUTCMinutes.length !== true) {
$ERROR('#1: The Date.prototype.setUTCMinutes.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T3.js b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T3.js
index 28b7f7499..0614a194b 100644
--- a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T3.js
+++ b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.setUTCMinutes.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.setUTCMinutes.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.setUTCMinutes) {
- if(x === "length") {
+for (var x in Date.prototype.setUTCMinutes) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.setUTCMinutes.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T1.js b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T1.js
index 078ac39c1..da43ff45f 100644
--- a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T1.js
+++ b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.setUTCMonth;
-if(x === 1)
+if (x === 1)
Date.prototype.setUTCMonth = 2;
else
Date.prototype.setUTCMonth = 1;
diff --git a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T2.js b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T2.js
index 48de38d72..9790d9a99 100644
--- a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T2.js
+++ b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.39_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.setUTCMonth === false) {
+if (delete Date.prototype.setUTCMonth === false) {
$ERROR('#1: The Date.prototype.setUTCMonth property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T3.js b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T3.js
index ed6ca3fe1..ed7332bd2 100644
--- a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T3.js
+++ b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setUTCMonth')) {
$ERROR('#1: The Date.prototype.setUTCMonth property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "setUTCMonth") {
+for (var x in Date.prototype) {
+ if (x === "setUTCMonth") {
$ERROR('#2: The Date.prototype.setUTCMonth has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A2_T1.js b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A2_T1.js
index a4c5d29ed..682dd9f72 100644
--- a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A2_T1.js
+++ b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.39_A2_T1
description: The "length" property of the "setUTCMonth" is 2
---*/
-if(Date.prototype.setUTCMonth.hasOwnProperty("length") !== true){
+if (Date.prototype.setUTCMonth.hasOwnProperty("length") !== true) {
$ERROR('#1: The setUTCMonth has a "length" property');
}
-if(Date.prototype.setUTCMonth.length !== 2){
+if (Date.prototype.setUTCMonth.length !== 2) {
$ERROR('#2: The "length" property of the setUTCMonth is 2');
}
diff --git a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T2.js b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T2.js
index 82c3bf8b4..07e8dda60 100644
--- a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T2.js
+++ b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.39_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.setUTCMonth.length !== true) {
+if (delete Date.prototype.setUTCMonth.length !== true) {
$ERROR('#1: The Date.prototype.setUTCMonth.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T3.js b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T3.js
index d02f44bbe..1fee64d56 100644
--- a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T3.js
+++ b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.setUTCMonth.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.setUTCMonth.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.setUTCMonth) {
- if(x === "length") {
+for (var x in Date.prototype.setUTCMonth) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.setUTCMonth.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T1.js b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T1.js
index 2e7d84561..903d2dc77 100644
--- a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T1.js
+++ b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.setUTCSeconds;
-if(x === 1)
+if (x === 1)
Date.prototype.setUTCSeconds = 2;
else
Date.prototype.setUTCSeconds = 1;
diff --git a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T2.js b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T2.js
index 0e74c82ad..7d3d1d09e 100644
--- a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T2.js
+++ b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.31_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.setUTCSeconds === false) {
+if (delete Date.prototype.setUTCSeconds === false) {
$ERROR('#1: The Date.prototype.setUTCSeconds property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T3.js b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T3.js
index 1ca934a4a..eb427b1ff 100644
--- a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T3.js
+++ b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setUTCSeconds')) {
$ERROR('#1: The Date.prototype.setUTCSeconds property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "setUTCSeconds") {
+for (var x in Date.prototype) {
+ if (x === "setUTCSeconds") {
$ERROR('#2: The Date.prototype.setUTCSeconds has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A2_T1.js b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A2_T1.js
index 5dc03a2ad..edcc69006 100644
--- a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A2_T1.js
+++ b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.31_A2_T1
description: The "length" property of the "setUTCSeconds" is 2
---*/
-if(Date.prototype.setUTCSeconds.hasOwnProperty("length") !== true){
+if (Date.prototype.setUTCSeconds.hasOwnProperty("length") !== true) {
$ERROR('#1: The setUTCSeconds has a "length" property');
}
-if(Date.prototype.setUTCSeconds.length !== 2){
+if (Date.prototype.setUTCSeconds.length !== 2) {
$ERROR('#2: The "length" property of the setUTCSeconds is 2');
}
diff --git a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T2.js b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T2.js
index b05658309..26c083340 100644
--- a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T2.js
+++ b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.31_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.setUTCSeconds.length !== true) {
+if (delete Date.prototype.setUTCSeconds.length !== true) {
$ERROR('#1: The Date.prototype.setUTCSeconds.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T3.js b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T3.js
index 17ec0c0ee..2cb04dd62 100644
--- a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T3.js
+++ b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.setUTCSeconds.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.setUTCSeconds.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.setUTCSeconds) {
- if(x === "length") {
+for (var x in Date.prototype.setUTCSeconds) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.setUTCSeconds.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T1.js b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T1.js
index c133ffc5a..ce21f347a 100644
--- a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T1.js
+++ b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.toDateString;
-if(x === 1)
+if (x === 1)
Date.prototype.toDateString = 2;
else
Date.prototype.toDateString = 1;
diff --git a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T2.js b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T2.js
index 3afef1875..e72d1fbd8 100644
--- a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T2.js
+++ b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.3_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.toDateString === false) {
+if (delete Date.prototype.toDateString === false) {
$ERROR('#1: The Date.prototype.toDateString property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T3.js b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T3.js
index a17110e05..ab2d1e72d 100644
--- a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T3.js
+++ b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('toDateString')) {
$ERROR('#1: The Date.prototype.toDateString property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "toDateString") {
+for (var x in Date.prototype) {
+ if (x === "toDateString") {
$ERROR('#2: The Date.prototype.toDateString has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A2_T1.js b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A2_T1.js
index 0248330b0..32c140ce9 100644
--- a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A2_T1.js
+++ b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.3_A2_T1
description: The "length" property of the "toDateString" is 0
---*/
-if(Date.prototype.toDateString.hasOwnProperty("length") !== true){
+if (Date.prototype.toDateString.hasOwnProperty("length") !== true) {
$ERROR('#1: The toDateString has a "length" property');
}
-if(Date.prototype.toDateString.length !== 0){
+if (Date.prototype.toDateString.length !== 0) {
$ERROR('#2: The "length" property of the toDateString is 0');
}
diff --git a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T2.js b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T2.js
index 090b9646d..19bc54bb6 100644
--- a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T2.js
+++ b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.3_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.toDateString.length !== true) {
+if (delete Date.prototype.toDateString.length !== true) {
$ERROR('#1: The Date.prototype.toDateString.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T3.js b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T3.js
index 6c52d43db..0f83f7f21 100644
--- a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T3.js
+++ b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.toDateString.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.toDateString.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.toDateString) {
- if(x === "length") {
+for (var x in Date.prototype.toDateString) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.toDateString.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/toDateString/invalid-date.js b/test/built-ins/Date/prototype/toDateString/invalid-date.js
index 5ea87075e..9f7cffda7 100644
--- a/test/built-ins/Date/prototype/toDateString/invalid-date.js
+++ b/test/built-ins/Date/prototype/toDateString/invalid-date.js
@@ -13,5 +13,3 @@ info: |
---*/
assert.sameValue(new Date(NaN).toDateString(), "Invalid Date");
-
-
diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-10.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-10.js
index 596f80343..f94e964d4 100644
--- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-10.js
+++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-10.js
@@ -10,19 +10,19 @@ description: >
UTC(0)
---*/
- var timeZoneMinutes = new Date().getTimezoneOffset() * (-1);
- var date, dateStr;
+var timeZoneMinutes = new Date().getTimezoneOffset() * (-1);
+var date, dateStr;
- if (timeZoneMinutes > 0) {
- date = new Date(1970, 0, -99999999, 0, 0, 0, 1);
+if (timeZoneMinutes > 0) {
+ date = new Date(1970, 0, -99999999, 0, 0, 0, 1);
- assert.throws(RangeError, function() {
- date.toISOString();
- });
- } else {
- date = new Date(1970, 0, -99999999, 0, 0 + timeZoneMinutes + 60, 0, 1);
+ assert.throws(RangeError, function() {
+ date.toISOString();
+ });
+} else {
+ date = new Date(1970, 0, -99999999, 0, 0 + timeZoneMinutes + 60, 0, 1);
- dateStr = date.toISOString();
+ dateStr = date.toISOString();
- assert.sameValue(dateStr[dateStr.length - 1], "Z");
- }
+ assert.sameValue(dateStr[dateStr.length - 1], "Z");
+}
diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-11.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-11.js
index 63feb9075..b08fa6538 100644
--- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-11.js
+++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-11.js
@@ -10,10 +10,10 @@ description: >
UTC(0)
---*/
- var timeZoneMinutes = new Date().getTimezoneOffset() * (-1);
- var date, dateStr;
+var timeZoneMinutes = new Date().getTimezoneOffset() * (-1);
+var date, dateStr;
- date = new Date(1970, 0, 100000001, 0, 0 + timeZoneMinutes - 60, 0, -1);
- dateStr = date.toISOString();
+date = new Date(1970, 0, 100000001, 0, 0 + timeZoneMinutes - 60, 0, -1);
+dateStr = date.toISOString();
assert.sameValue(dateStr[dateStr.length - 1], "Z", 'dateStr[dateStr.length - 1]');
diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-12.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-12.js
index 5e976d17e..2086f48a9 100644
--- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-12.js
+++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-12.js
@@ -10,10 +10,10 @@ description: >
UTC(0)
---*/
- var timeZoneMinutes = new Date().getTimezoneOffset() * (-1);
- var date, dateStr;
+var timeZoneMinutes = new Date().getTimezoneOffset() * (-1);
+var date, dateStr;
- date = new Date(1970, 0, 100000001, 0, 0 + timeZoneMinutes - 60, 0, 0);
- dateStr = date.toISOString();
+date = new Date(1970, 0, 100000001, 0, 0 + timeZoneMinutes - 60, 0, 0);
+dateStr = date.toISOString();
assert.sameValue(dateStr[dateStr.length - 1], "Z", 'dateStr[dateStr.length - 1]');
diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-13.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-13.js
index 431a79c41..71a9232eb 100644
--- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-13.js
+++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-13.js
@@ -9,8 +9,8 @@ description: >
date is outside the valid range of time.
---*/
- // As specified in ES5 15.9.1.14, time > 8.64e15 is not in the valid range.
- var date = new Date(8.64e15 + 1);
+// As specified in ES5 15.9.1.14, time > 8.64e15 is not in the valid range.
+var date = new Date(8.64e15 + 1);
assert.throws(RangeError, function() {
- date.toISOString();
+ date.toISOString();
});
diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-14.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-14.js
index 49a859c59..7dc2be64a 100644
--- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-14.js
+++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-14.js
@@ -9,7 +9,7 @@ description: >
Date.prototype.toISOString throw the RangeError
---*/
- var date = new Date(-Infinity, 1, 70, 0, 0, 0);
+var date = new Date(-Infinity, 1, 70, 0, 0, 0);
assert.throws(RangeError, function() {
- date.toISOString();
+ date.toISOString();
});
diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-15.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-15.js
index f08686324..752120dfc 100644
--- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-15.js
+++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-15.js
@@ -9,7 +9,7 @@ description: >
Date.prototype.toISOString throw the RangeError
---*/
- var date = new Date(Infinity, 1, 70, 0, 0, 0);
+var date = new Date(Infinity, 1, 70, 0, 0, 0);
assert.throws(RangeError, function() {
- date.toISOString();
+ date.toISOString();
});
diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-16.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-16.js
index e27b08feb..d3be4f9fb 100644
--- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-16.js
+++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-16.js
@@ -10,7 +10,7 @@ description: >
Date.prototype.toISOString throw the TypeError
---*/
- var date = new String("1970-01-00000:00:00.000Z");
+var date = new String("1970-01-00000:00:00.000Z");
assert.throws(TypeError, function() {
- Date.prototype.toISOString.call(date);
+ Date.prototype.toISOString.call(date);
});
diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-3.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-3.js
index f2c53adbf..9703836e1 100644
--- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-3.js
+++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-3.js
@@ -7,4 +7,4 @@ es5id: 15.9.5.43-0-3
description: Date.prototype.toISOString must exist as a function
---*/
-assert.sameValue(typeof (Date.prototype.toISOString), "function", 'typeof (Date.prototype.toISOString)');
+assert.sameValue(typeof(Date.prototype.toISOString), "function", 'typeof (Date.prototype.toISOString)');
diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-4.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-4.js
index f27f7e0ae..d2f2e391e 100644
--- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-4.js
+++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-4.js
@@ -9,7 +9,7 @@ description: >
'YYYY-MM-DDTHH:mm:ss.sssZ', the time zone is UTC(0)
---*/
- var date = new Date(1999, 9, 10, 10, 10, 10, 10);
- var localDate = new Date(date.getTime() - date.getTimezoneOffset() * 60000);
+var date = new Date(1999, 9, 10, 10, 10, 10, 10);
+var localDate = new Date(date.getTime() - date.getTimezoneOffset() * 60000);
assert.sameValue(localDate.toISOString(), "1999-10-10T10:10:10.010Z", 'localDate.toISOString()');
diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-5.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-5.js
index 35359f902..0dc17db6f 100644
--- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-5.js
+++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-5.js
@@ -9,6 +9,6 @@ description: >
zone(0)
---*/
- var dateStr = (new Date()).toISOString();
+var dateStr = (new Date()).toISOString();
assert.sameValue(dateStr[dateStr.length - 1], "Z", 'dateStr[dateStr.length - 1]');
diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-6.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-6.js
index 53b001d87..dda74767f 100644
--- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-6.js
+++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-6.js
@@ -11,5 +11,5 @@ description: >
assert.throws(TypeError, function() {
- Date.prototype.toISOString.call([]);
+ Date.prototype.toISOString.call([]);
});
diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-7.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-7.js
index b4d5bc800..517fb7453 100644
--- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-7.js
+++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-7.js
@@ -11,5 +11,5 @@ description: >
assert.throws(TypeError, function() {
- Date.prototype.toISOString.call(15);
+ Date.prototype.toISOString.call(15);
});
diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-8.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-8.js
index 3c55da5fa..e85077c6c 100644
--- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-8.js
+++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-8.js
@@ -10,14 +10,14 @@ description: >
UTC(0)
---*/
- var timeZoneMinutes = new Date().getTimezoneOffset() * (-1);
- var date, dateStr;
+var timeZoneMinutes = new Date().getTimezoneOffset() * (-1);
+var date, dateStr;
assert.throws(RangeError, function() {
- if (timeZoneMinutes > 0) {
- date = new Date(1970, 0, -99999999, 0, 0, 0, -1);
- } else {
- date = new Date(1970, 0, -99999999, 0, 0 + timeZoneMinutes - 60, 0, -1);
- }
+ if (timeZoneMinutes > 0) {
+ date = new Date(1970, 0, -99999999, 0, 0, 0, -1);
+ } else {
+ date = new Date(1970, 0, -99999999, 0, 0 + timeZoneMinutes - 60, 0, -1);
+ }
- dateStr = date.toISOString();
+ dateStr = date.toISOString();
});
diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-9.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-9.js
index 8907ccb68..04c9fd69c 100644
--- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-9.js
+++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-9.js
@@ -10,19 +10,19 @@ description: >
UTC(0)
---*/
- var timeZoneMinutes = new Date().getTimezoneOffset() * (-1);
- var date, dateStr;
+var timeZoneMinutes = new Date().getTimezoneOffset() * (-1);
+var date, dateStr;
- if (timeZoneMinutes > 0) {
- date = new Date(1970, 0, -99999999, 0, 0, 0, 0);
+if (timeZoneMinutes > 0) {
+ date = new Date(1970, 0, -99999999, 0, 0, 0, 0);
- assert.throws(RangeError, function() {
- date.toISOString();
- });
- } else {
- date = new Date(1970, 0, -99999999, 0, 0 + timeZoneMinutes + 60, 0, 0);
+ assert.throws(RangeError, function() {
+ date.toISOString();
+ });
+} else {
+ date = new Date(1970, 0, -99999999, 0, 0 + timeZoneMinutes + 60, 0, 0);
- dateStr = date.toISOString();
+ dateStr = date.toISOString();
- assert.sameValue(dateStr[dateStr.length - 1], "Z");
- }
+ assert.sameValue(dateStr[dateStr.length - 1], "Z");
+}
diff --git a/test/built-ins/Date/prototype/toJSON/15.9.5.44-0-1.js b/test/built-ins/Date/prototype/toJSON/15.9.5.44-0-1.js
index 16804d115..baafe4540 100644
--- a/test/built-ins/Date/prototype/toJSON/15.9.5.44-0-1.js
+++ b/test/built-ins/Date/prototype/toJSON/15.9.5.44-0-1.js
@@ -7,6 +7,6 @@ es5id: 15.9.5.44-0-1
description: Date.prototype.toJSON must exist as a function
---*/
- var f = Date.prototype.toJSON;
+var f = Date.prototype.toJSON;
assert.sameValue(typeof(f), "function", 'typeof(f)');
diff --git a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T1.js b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T1.js
index 0c41bc3be..8e976f0ed 100644
--- a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T1.js
+++ b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T1.js
@@ -11,7 +11,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.toLocaleDateString;
-if(x === 1)
+if (x === 1)
Date.prototype.toLocaleDateString = 2;
else
Date.prototype.toLocaleDateString = 1;
diff --git a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T2.js b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T2.js
index 045c649f0..656300446 100644
--- a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T2.js
+++ b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.6_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.toLocaleDateString === false) {
+if (delete Date.prototype.toLocaleDateString === false) {
$ERROR('#1: The Date.prototype.toLocaleDateString property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T3.js b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T3.js
index 704b25ff7..6a8cef0a6 100644
--- a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T3.js
+++ b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.propertyIsEnumerable('toLocaleDateString')) {
$ERROR('#1: The Date.prototype.toLocaleDateString property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "toLocaleDateString") {
+for (var x in Date.prototype) {
+ if (x === "toLocaleDateString") {
$ERROR('#2: The Date.prototype.toLocaleDateString has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A2_T1.js b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A2_T1.js
index 96541c978..5b7959dc7 100644
--- a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A2_T1.js
+++ b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.6_A2_T1
description: The "length" property of the "toLocaleDateString" is 0
---*/
-if(Date.prototype.toLocaleDateString.hasOwnProperty("length") !== true){
+if (Date.prototype.toLocaleDateString.hasOwnProperty("length") !== true) {
$ERROR('#1: The toLocaleDateString has a "length" property');
}
-if(Date.prototype.toLocaleDateString.length !== 0){
+if (Date.prototype.toLocaleDateString.length !== 0) {
$ERROR('#2: The "length" property of the toLocaleDateString is 0');
}
diff --git a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T2.js b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T2.js
index 75c0ad18a..85565c6bc 100644
--- a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T2.js
+++ b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.6_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.toLocaleDateString.length !== true) {
+if (delete Date.prototype.toLocaleDateString.length !== true) {
$ERROR('#1: The Date.prototype.toLocaleDateString.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T3.js b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T3.js
index f015937cd..63440c550 100644
--- a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T3.js
+++ b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.toLocaleDateString.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.toLocaleDateString.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.toLocaleDateString) {
- if(x === "length") {
+for (var x in Date.prototype.toLocaleDateString) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.toLocaleDateString.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T1.js b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T1.js
index a2d621c88..4f20c546b 100644
--- a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T1.js
+++ b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.toLocaleString;
-if(x === 1)
+if (x === 1)
Date.prototype.toLocaleString = 2;
else
Date.prototype.toLocaleString = 1;
diff --git a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T2.js b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T2.js
index 845ad90eb..44476c8e4 100644
--- a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T2.js
+++ b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.5_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.toLocaleString === false) {
+if (delete Date.prototype.toLocaleString === false) {
$ERROR('#1: The Date.prototype.toLocaleString property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T3.js b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T3.js
index 2aa877b57..aa96373cb 100644
--- a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T3.js
+++ b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('toLocaleString')) {
$ERROR('#1: The Date.prototype.toLocaleString property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "toLocaleString") {
+for (var x in Date.prototype) {
+ if (x === "toLocaleString") {
$ERROR('#2: The Date.prototype.toLocaleString has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A2_T1.js b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A2_T1.js
index 7713b34ae..29ba76ea9 100644
--- a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A2_T1.js
+++ b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.5_A2_T1
description: The "length" property of the "toLocaleString" is 0
---*/
-if(Date.prototype.toLocaleString.hasOwnProperty("length") !== true){
+if (Date.prototype.toLocaleString.hasOwnProperty("length") !== true) {
$ERROR('#1: The toLocaleString has a "length" property');
}
-if(Date.prototype.toLocaleString.length !== 0){
+if (Date.prototype.toLocaleString.length !== 0) {
$ERROR('#2: The "length" property of the toLocaleString is 0');
}
diff --git a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T2.js b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T2.js
index 4deaaa40a..161ab9541 100644
--- a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T2.js
+++ b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.5_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.toLocaleString.length !== true) {
+if (delete Date.prototype.toLocaleString.length !== true) {
$ERROR('#1: The Date.prototype.toLocaleString.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T3.js b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T3.js
index c5d11f4e8..506819909 100644
--- a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T3.js
+++ b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.toLocaleString.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.toLocaleString.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.toLocaleString) {
- if(x === "length") {
+for (var x in Date.prototype.toLocaleString) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.toLocaleString.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T1.js b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T1.js
index 3c1aa5317..eec3df6ac 100644
--- a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T1.js
+++ b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T1.js
@@ -11,7 +11,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.toLocaleTimeString;
-if(x === 1)
+if (x === 1)
Date.prototype.toLocaleTimeString = 2;
else
Date.prototype.toLocaleTimeString = 1;
diff --git a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T2.js b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T2.js
index 564821c33..4fc755ef2 100644
--- a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T2.js
+++ b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.7_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.toLocaleTimeString === false) {
+if (delete Date.prototype.toLocaleTimeString === false) {
$ERROR('#1: The Date.prototype.toLocaleTimeString property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T3.js b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T3.js
index 50d48f8d7..5e7cff2a0 100644
--- a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T3.js
+++ b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.propertyIsEnumerable('toLocaleTimeString')) {
$ERROR('#1: The Date.prototype.toLocaleTimeString property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "toLocaleTimeString") {
+for (var x in Date.prototype) {
+ if (x === "toLocaleTimeString") {
$ERROR('#2: The Date.prototype.toLocaleTimeString has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A2_T1.js b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A2_T1.js
index 9471cf556..14f226a02 100644
--- a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A2_T1.js
+++ b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.7_A2_T1
description: The "length" property of the "toLocaleTimeString" is 0
---*/
-if(Date.prototype.toLocaleTimeString.hasOwnProperty("length") !== true){
+if (Date.prototype.toLocaleTimeString.hasOwnProperty("length") !== true) {
$ERROR('#1: The toLocaleTimeString has a "length" property');
}
-if(Date.prototype.toLocaleTimeString.length !== 0){
+if (Date.prototype.toLocaleTimeString.length !== 0) {
$ERROR('#2: The "length" property of the toLocaleTimeString is 0');
}
diff --git a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T2.js b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T2.js
index 1a034dba4..8e02b4e6f 100644
--- a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T2.js
+++ b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.7_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.toLocaleTimeString.length !== true) {
+if (delete Date.prototype.toLocaleTimeString.length !== true) {
$ERROR('#1: The Date.prototype.toLocaleTimeString.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T3.js b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T3.js
index 6562daad4..53aea089b 100644
--- a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T3.js
+++ b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.toLocaleTimeString.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.toLocaleTimeString.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.toLocaleTimeString) {
- if(x === "length") {
+for (var x in Date.prototype.toLocaleTimeString) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.toLocaleTimeString.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T1.js b/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T1.js
index 04e6d7ffa..c4938dc06 100644
--- a/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T1.js
+++ b/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.toString;
-if(x === 1)
+if (x === 1)
Date.prototype.toString = 2;
else
Date.prototype.toString = 1;
diff --git a/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T2.js b/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T2.js
index 63c170fe6..e39133756 100644
--- a/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T2.js
+++ b/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.2_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.toString === false) {
+if (delete Date.prototype.toString === false) {
$ERROR('#1: The Date.prototype.toString property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T3.js b/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T3.js
index 1317b0abd..382fc242c 100644
--- a/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T3.js
+++ b/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('toString')) {
$ERROR('#1: The Date.prototype.toString property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "toString") {
+for (var x in Date.prototype) {
+ if (x === "toString") {
$ERROR('#2: The Date.prototype.toString has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/toString/S15.9.5.2_A2_T1.js b/test/built-ins/Date/prototype/toString/S15.9.5.2_A2_T1.js
index 861d62cab..a5026ecfd 100644
--- a/test/built-ins/Date/prototype/toString/S15.9.5.2_A2_T1.js
+++ b/test/built-ins/Date/prototype/toString/S15.9.5.2_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.2_A2_T1
description: The "length" property of the "toString" is 0
---*/
-if(Date.prototype.toString.hasOwnProperty("length") !== true){
+if (Date.prototype.toString.hasOwnProperty("length") !== true) {
$ERROR('#1: The toString has a "length" property');
}
-if(Date.prototype.toString.length !== 0){
+if (Date.prototype.toString.length !== 0) {
$ERROR('#2: The "length" property of the toString is 0');
}
diff --git a/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T2.js b/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T2.js
index b264985cb..3bc1f906c 100644
--- a/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T2.js
+++ b/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.2_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.toString.length !== true) {
+if (delete Date.prototype.toString.length !== true) {
$ERROR('#1: The Date.prototype.toString.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T3.js b/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T3.js
index 15c54f020..0c4a7fe58 100644
--- a/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T3.js
+++ b/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.toString.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.toString.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.toString) {
- if(x === "length") {
+for (var x in Date.prototype.toString) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.toString.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/toString/non-date-receiver.js b/test/built-ins/Date/prototype/toString/non-date-receiver.js
index 4273975b1..3d0885b9c 100644
--- a/test/built-ins/Date/prototype/toString/non-date-receiver.js
+++ b/test/built-ins/Date/prototype/toString/non-date-receiver.js
@@ -15,6 +15,6 @@ assert.throws(TypeError, () => Date.prototype.toString.call(undefined));
assert.throws(TypeError, () => Date.prototype.toString.call(0));
assert.throws(TypeError, () => Date.prototype.toString.call({}));
assert.throws(TypeError, () =>
- Date.prototype.toString.call("Tue Mar 21 2017 12:16:43 GMT-0400 (EDT)"));
+ Date.prototype.toString.call("Tue Mar 21 2017 12:16:43 GMT-0400 (EDT)"));
assert.throws(TypeError, () =>
- Date.prototype.toString.call(1490113011493));
+ Date.prototype.toString.call(1490113011493));
diff --git a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T1.js b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T1.js
index 4739c7cf1..9ca9f0008 100644
--- a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T1.js
+++ b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.toTimeString;
-if(x === 1)
+if (x === 1)
Date.prototype.toTimeString = 2;
else
Date.prototype.toTimeString = 1;
diff --git a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T2.js b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T2.js
index 2c4d753a9..0b0ecf006 100644
--- a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T2.js
+++ b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.4_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.toTimeString === false) {
+if (delete Date.prototype.toTimeString === false) {
$ERROR('#1: The Date.prototype.toTimeString property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T3.js b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T3.js
index b8b070ebd..6d4babc06 100644
--- a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T3.js
+++ b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('toTimeString')) {
$ERROR('#1: The Date.prototype.toTimeString property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "toTimeString") {
+for (var x in Date.prototype) {
+ if (x === "toTimeString") {
$ERROR('#2: The Date.prototype.toTimeString has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A2_T1.js b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A2_T1.js
index 305b2a96a..880915233 100644
--- a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A2_T1.js
+++ b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.4_A2_T1
description: The "length" property of the "toTimeString" is 0
---*/
-if(Date.prototype.toTimeString.hasOwnProperty("length") !== true){
+if (Date.prototype.toTimeString.hasOwnProperty("length") !== true) {
$ERROR('#1: The toTimeString has a "length" property');
}
-if(Date.prototype.toTimeString.length !== 0){
+if (Date.prototype.toTimeString.length !== 0) {
$ERROR('#2: The "length" property of the toTimeString is 0');
}
diff --git a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T2.js b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T2.js
index f05985402..92e4da323 100644
--- a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T2.js
+++ b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.4_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.toTimeString.length !== true) {
+if (delete Date.prototype.toTimeString.length !== true) {
$ERROR('#1: The Date.prototype.toTimeString.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T3.js b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T3.js
index 36232375d..6476bf513 100644
--- a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T3.js
+++ b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.toTimeString.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.toTimeString.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.toTimeString) {
- if(x === "length") {
+for (var x in Date.prototype.toTimeString) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.toTimeString.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/toTimeString/invalid-date.js b/test/built-ins/Date/prototype/toTimeString/invalid-date.js
index 1078d9557..39cc97528 100644
--- a/test/built-ins/Date/prototype/toTimeString/invalid-date.js
+++ b/test/built-ins/Date/prototype/toTimeString/invalid-date.js
@@ -13,5 +13,3 @@ info: |
---*/
assert.sameValue(new Date(NaN).toTimeString(), "Invalid Date");
-
-
diff --git a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T1.js b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T1.js
index de0313086..3fee728b2 100644
--- a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T1.js
+++ b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.toUTCString;
-if(x === 1)
+if (x === 1)
Date.prototype.toUTCString = 2;
else
Date.prototype.toUTCString = 1;
diff --git a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T2.js b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T2.js
index d515e3446..caca517fc 100644
--- a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T2.js
+++ b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.42_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.toUTCString === false) {
+if (delete Date.prototype.toUTCString === false) {
$ERROR('#1: The Date.prototype.toUTCString property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T3.js b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T3.js
index 27d217a35..6149d52a9 100644
--- a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T3.js
+++ b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('toUTCString')) {
$ERROR('#1: The Date.prototype.toUTCString property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "toUTCString") {
+for (var x in Date.prototype) {
+ if (x === "toUTCString") {
$ERROR('#2: The Date.prototype.toUTCString has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A2_T1.js b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A2_T1.js
index 8d56631ed..ad2262d32 100644
--- a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A2_T1.js
+++ b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.42_A2_T1
description: The "length" property of the "toUTCString" is 0
---*/
-if(Date.prototype.toUTCString.hasOwnProperty("length") !== true){
+if (Date.prototype.toUTCString.hasOwnProperty("length") !== true) {
$ERROR('#1: The toUTCString has a "length" property');
}
-if(Date.prototype.toUTCString.length !== 0){
+if (Date.prototype.toUTCString.length !== 0) {
$ERROR('#2: The "length" property of the toUTCString is 0');
}
diff --git a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T2.js b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T2.js
index b001e606c..26cebb299 100644
--- a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T2.js
+++ b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.42_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.toUTCString.length !== true) {
+if (delete Date.prototype.toUTCString.length !== true) {
$ERROR('#1: The Date.prototype.toUTCString.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T3.js b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T3.js
index e5a2ae8c6..c3e445fb5 100644
--- a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T3.js
+++ b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.toUTCString.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.toUTCString.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.toUTCString) {
- if(x === "length") {
+for (var x in Date.prototype.toUTCString) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.toUTCString.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/toUTCString/day-names.js b/test/built-ins/Date/prototype/toUTCString/day-names.js
index ce9cdfaab..7f164060f 100644
--- a/test/built-ins/Date/prototype/toUTCString/day-names.js
+++ b/test/built-ins/Date/prototype/toUTCString/day-names.js
@@ -7,16 +7,16 @@ description: Test the names of days
---*/
assert.sameValue("Sun, 23 Mar 2014 00:00:00 GMT",
- (new Date("2014-03-23T00:00:00Z")).toUTCString());
+ (new Date("2014-03-23T00:00:00Z")).toUTCString());
assert.sameValue("Mon, 24 Mar 2014 00:00:00 GMT",
- (new Date("2014-03-24T00:00:00Z")).toUTCString());
+ (new Date("2014-03-24T00:00:00Z")).toUTCString());
assert.sameValue("Tue, 25 Mar 2014 00:00:00 GMT",
- (new Date("2014-03-25T00:00:00Z")).toUTCString());
+ (new Date("2014-03-25T00:00:00Z")).toUTCString());
assert.sameValue("Wed, 26 Mar 2014 00:00:00 GMT",
- (new Date("2014-03-26T00:00:00Z")).toUTCString());
+ (new Date("2014-03-26T00:00:00Z")).toUTCString());
assert.sameValue("Thu, 27 Mar 2014 00:00:00 GMT",
- (new Date("2014-03-27T00:00:00Z")).toUTCString());
+ (new Date("2014-03-27T00:00:00Z")).toUTCString());
assert.sameValue("Fri, 28 Mar 2014 00:00:00 GMT",
- (new Date("2014-03-28T00:00:00Z")).toUTCString());
+ (new Date("2014-03-28T00:00:00Z")).toUTCString());
assert.sameValue("Sat, 29 Mar 2014 00:00:00 GMT",
- (new Date("2014-03-29T00:00:00Z")).toUTCString());
+ (new Date("2014-03-29T00:00:00Z")).toUTCString());
diff --git a/test/built-ins/Date/prototype/toUTCString/invalid-date.js b/test/built-ins/Date/prototype/toUTCString/invalid-date.js
index 3430e4b3c..0f81fe11e 100644
--- a/test/built-ins/Date/prototype/toUTCString/invalid-date.js
+++ b/test/built-ins/Date/prototype/toUTCString/invalid-date.js
@@ -13,4 +13,3 @@ info: |
---*/
assert.sameValue(new Date(NaN).toUTCString(), "Invalid Date");
-
diff --git a/test/built-ins/Date/prototype/toUTCString/month-names.js b/test/built-ins/Date/prototype/toUTCString/month-names.js
index a50dc18b3..465827090 100644
--- a/test/built-ins/Date/prototype/toUTCString/month-names.js
+++ b/test/built-ins/Date/prototype/toUTCString/month-names.js
@@ -7,26 +7,26 @@ description: Test the names of months
---*/
assert.sameValue("Wed, 01 Jan 2014 00:00:00 GMT",
- (new Date("2014-01-01T00:00:00Z")).toUTCString());
+ (new Date("2014-01-01T00:00:00Z")).toUTCString());
assert.sameValue("Sat, 01 Feb 2014 00:00:00 GMT",
- (new Date("2014-02-01T00:00:00Z")).toUTCString());
+ (new Date("2014-02-01T00:00:00Z")).toUTCString());
assert.sameValue("Sat, 01 Mar 2014 00:00:00 GMT",
- (new Date("2014-03-01T00:00:00Z")).toUTCString());
+ (new Date("2014-03-01T00:00:00Z")).toUTCString());
assert.sameValue("Tue, 01 Apr 2014 00:00:00 GMT",
- (new Date("2014-04-01T00:00:00Z")).toUTCString());
+ (new Date("2014-04-01T00:00:00Z")).toUTCString());
assert.sameValue("Thu, 01 May 2014 00:00:00 GMT",
- (new Date("2014-05-01T00:00:00Z")).toUTCString());
+ (new Date("2014-05-01T00:00:00Z")).toUTCString());
assert.sameValue("Sun, 01 Jun 2014 00:00:00 GMT",
- (new Date("2014-06-01T00:00:00Z")).toUTCString());
+ (new Date("2014-06-01T00:00:00Z")).toUTCString());
assert.sameValue("Tue, 01 Jul 2014 00:00:00 GMT",
- (new Date("2014-07-01T00:00:00Z")).toUTCString());
+ (new Date("2014-07-01T00:00:00Z")).toUTCString());
assert.sameValue("Fri, 01 Aug 2014 00:00:00 GMT",
- (new Date("2014-08-01T00:00:00Z")).toUTCString());
+ (new Date("2014-08-01T00:00:00Z")).toUTCString());
assert.sameValue("Mon, 01 Sep 2014 00:00:00 GMT",
- (new Date("2014-09-01T00:00:00Z")).toUTCString());
+ (new Date("2014-09-01T00:00:00Z")).toUTCString());
assert.sameValue("Wed, 01 Oct 2014 00:00:00 GMT",
- (new Date("2014-10-01T00:00:00Z")).toUTCString());
+ (new Date("2014-10-01T00:00:00Z")).toUTCString());
assert.sameValue("Sat, 01 Nov 2014 00:00:00 GMT",
- (new Date("2014-11-01T00:00:00Z")).toUTCString());
+ (new Date("2014-11-01T00:00:00Z")).toUTCString());
assert.sameValue("Mon, 01 Dec 2014 00:00:00 GMT",
- (new Date("2014-12-01T00:00:00Z")).toUTCString());
+ (new Date("2014-12-01T00:00:00Z")).toUTCString());
diff --git a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T1.js b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T1.js
index 6a33b59ee..9492a8ae8 100644
--- a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T1.js
+++ b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T1.js
@@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute
---*/
var x = Date.prototype.valueOf;
-if(x === 1)
+if (x === 1)
Date.prototype.valueOf = 2;
else
Date.prototype.valueOf = 1;
diff --git a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T2.js b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T2.js
index 96d3028b5..d6a5b8eb0 100644
--- a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T2.js
+++ b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T2.js
@@ -8,7 +8,7 @@ es5id: 15.9.5.8_A1_T2
description: Checking absence of DontDelete attribute
---*/
-if (delete Date.prototype.valueOf === false) {
+if (delete Date.prototype.valueOf === false) {
$ERROR('#1: The Date.prototype.valueOf property has not the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T3.js b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T3.js
index dd791639f..81f7098e9 100644
--- a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T3.js
+++ b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T3.js
@@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('valueOf')) {
$ERROR('#1: The Date.prototype.valueOf property has the attribute DontEnum');
}
-for(var x in Date.prototype) {
- if(x === "valueOf") {
+for (var x in Date.prototype) {
+ if (x === "valueOf") {
$ERROR('#2: The Date.prototype.valueOf has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A2_T1.js b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A2_T1.js
index 514ec3605..8a95d40db 100644
--- a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A2_T1.js
+++ b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A2_T1.js
@@ -8,10 +8,10 @@ es5id: 15.9.5.8_A2_T1
description: The "length" property of the "valueOf" is 0
---*/
-if(Date.prototype.valueOf.hasOwnProperty("length") !== true){
+if (Date.prototype.valueOf.hasOwnProperty("length") !== true) {
$ERROR('#1: The valueOf has a "length" property');
}
-if(Date.prototype.valueOf.length !== 0){
+if (Date.prototype.valueOf.length !== 0) {
$ERROR('#2: The "length" property of the valueOf is 0');
}
diff --git a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T2.js b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T2.js
index cdebc7dd5..3ad642916 100644
--- a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T2.js
+++ b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T2.js
@@ -10,7 +10,7 @@ es5id: 15.9.5.8_A3_T2
description: Checking DontDelete attribute
---*/
-if (delete Date.prototype.valueOf.length !== true) {
+if (delete Date.prototype.valueOf.length !== true) {
$ERROR('#1: The Date.prototype.valueOf.length property does not have the attributes DontDelete');
}
diff --git a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T3.js b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T3.js
index e7ab16930..dfedf8c62 100644
--- a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T3.js
+++ b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T3.js
@@ -14,8 +14,8 @@ if (Date.prototype.valueOf.propertyIsEnumerable('length')) {
$ERROR('#1: The Date.prototype.valueOf.length property has the attribute DontEnum');
}
-for(var x in Date.prototype.valueOf) {
- if(x === "length") {
+for (var x in Date.prototype.valueOf) {
+ if (x === "length") {
$ERROR('#2: The Date.prototype.valueOf.length has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Date/value-symbol-to-prim-return-obj.js b/test/built-ins/Date/value-symbol-to-prim-return-obj.js
index 732217448..457e126aa 100644
--- a/test/built-ins/Date/value-symbol-to-prim-return-obj.js
+++ b/test/built-ins/Date/value-symbol-to-prim-return-obj.js
@@ -39,7 +39,9 @@ assert.throws(TypeError, function() {
new Date(y);
}, 'ordinary object');
-retVal = (function() { return arguments; }());
+retVal = (function() {
+ return arguments;
+}());
assert.throws(TypeError, function() {
new Date(y);
}, 'arguments exotic object');
diff --git a/test/built-ins/Date/value-to-primitive-result-faulty.js b/test/built-ins/Date/value-to-primitive-result-faulty.js
index 50ff50e29..3f2ae125c 100644
--- a/test/built-ins/Date/value-to-primitive-result-faulty.js
+++ b/test/built-ins/Date/value-to-primitive-result-faulty.js
@@ -40,7 +40,9 @@ assert.throws(TypeError, function() {
new Date(faultyToPrimitive);
}, 'Array exotic object');
-returnValue = (function() { return arguments; }());
+returnValue = (function() {
+ return arguments;
+}());
assert.throws(TypeError, function() {
new Date(faultyToPrimitive);
}, 'arguments exotic object');
diff --git a/test/built-ins/Error/S15.11.1.1_A1_T1.js b/test/built-ins/Error/S15.11.1.1_A1_T1.js
index 351059e76..a30502f42 100644
--- a/test/built-ins/Error/S15.11.1.1_A1_T1.js
+++ b/test/built-ins/Error/S15.11.1.1_A1_T1.js
@@ -16,36 +16,36 @@ function otherScope(msg)
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-var err1=Error('msg1');
-if(err1.message!=="msg1"){
- $ERROR('#1: var err1=Error(\'msg1\'); err1.message==="msg1". Actual: '+err1.message);
+var err1 = Error('msg1');
+if (err1.message !== "msg1") {
+ $ERROR('#1: var err1=Error(\'msg1\'); err1.message==="msg1". Actual: ' + err1.message);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-var err2=otherScope('msg2');
-if(err2.message!=="msg2"){
- $ERROR('#2: function otherScope(msg){return Error(msg);} var err2=otherScope(\'msg2\'); err2.message==="msg2". Actual: '+err2.message);
+var err2 = otherScope('msg2');
+if (err2.message !== "msg2") {
+ $ERROR('#2: function otherScope(msg){return Error(msg);} var err2=otherScope(\'msg2\'); err2.message==="msg2". Actual: ' + err2.message);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-var err3=otherScope();
-if(err3.hasOwnProperty('message')){
- $ERROR('#3: function otherScope(msg){return Error(msg);} var err3=otherScope(); err3.hasOwnProperty("message"). Actual: '+err3.message);
+var err3 = otherScope();
+if (err3.hasOwnProperty('message')) {
+ $ERROR('#3: function otherScope(msg){return Error(msg);} var err3=otherScope(); err3.hasOwnProperty("message"). Actual: ' + err3.message);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-var err4=eval("Error('msg4')");
-if(err4.message!=="msg4"){
- $ERROR('#4: var err4=eval("Error(\'msg4\')"); err4.message==="msg4". Actual: '+err4.message);
+var err4 = eval("Error('msg4')");
+if (err4.message !== "msg4") {
+ $ERROR('#4: var err4=eval("Error(\'msg4\')"); err4.message==="msg4". Actual: ' + err4.message);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/S15.11.1.1_A2_T1.js b/test/built-ins/Error/S15.11.1.1_A2_T1.js
index 72f734359..5e0c1bd83 100644
--- a/test/built-ins/Error/S15.11.1.1_A2_T1.js
+++ b/test/built-ins/Error/S15.11.1.1_A2_T1.js
@@ -11,9 +11,9 @@ description: Checking prototype of the newly constructed Error object
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-var err1=Error('msg1');
-if(!Error.prototype.isPrototypeOf(err1)){
- $ERROR('#1: var err1=Error(\'msg1\'); Error.prototype.isPrototypeOf(err1) return true. Actual: '+Error.prototype.isPrototypeOf(err1));
+var err1 = Error('msg1');
+if (!Error.prototype.isPrototypeOf(err1)) {
+ $ERROR('#1: var err1=Error(\'msg1\'); Error.prototype.isPrototypeOf(err1) return true. Actual: ' + Error.prototype.isPrototypeOf(err1));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/S15.11.1.1_A3_T1.js b/test/built-ins/Error/S15.11.1.1_A3_T1.js
index 6add7727b..b6709d8cc 100644
--- a/test/built-ins/Error/S15.11.1.1_A3_T1.js
+++ b/test/built-ins/Error/S15.11.1.1_A3_T1.js
@@ -11,10 +11,10 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-Error.prototype.toString=Object.prototype.toString;
-var err1=Error();
-if(err1.toString()!=='[object '+ 'Error' +']'){
- $ERROR('#1: Error.prototype.toString=Object.prototype.toString; var err1=Error(); err1.toString()===\'[object Error]\'. Actual: '+err1.toString());
+Error.prototype.toString = Object.prototype.toString;
+var err1 = Error();
+if (err1.toString() !== '[object ' + 'Error' + ']') {
+ $ERROR('#1: Error.prototype.toString=Object.prototype.toString; var err1=Error(); err1.toString()===\'[object Error]\'. Actual: ' + err1.toString());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/S15.11.1_A1_T1.js b/test/built-ins/Error/S15.11.1_A1_T1.js
index d45ddac8e..5892170d2 100644
--- a/test/built-ins/Error/S15.11.1_A1_T1.js
+++ b/test/built-ins/Error/S15.11.1_A1_T1.js
@@ -11,10 +11,10 @@ description: Checking constructor of the newly constructed Error object
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-Error.prototype.toString=Object.prototype.toString;
-var err1=Error();
-if(err1.constructor!==Error){
- $ERROR('#1: Error.prototype.toString=Object.prototype.toString; var err1=Error(); err1.constructor===Error. Actual: '+err1.constructor);
+Error.prototype.toString = Object.prototype.toString;
+var err1 = Error();
+if (err1.constructor !== Error) {
+ $ERROR('#1: Error.prototype.toString=Object.prototype.toString; var err1=Error(); err1.constructor===Error. Actual: ' + err1.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/S15.11.2.1_A1_T1.js b/test/built-ins/Error/S15.11.2.1_A1_T1.js
index 4ea3e05ef..804116b32 100644
--- a/test/built-ins/Error/S15.11.2.1_A1_T1.js
+++ b/test/built-ins/Error/S15.11.2.1_A1_T1.js
@@ -16,36 +16,36 @@ function otherScope(msg)
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-var err1=new Error('msg1');
-if(err1.message!=="msg1"){
- $ERROR('#1: var err1=new Error(\'msg1\'); err1.message==="msg1". Actual: '+err1.message);
+var err1 = new Error('msg1');
+if (err1.message !== "msg1") {
+ $ERROR('#1: var err1=new Error(\'msg1\'); err1.message==="msg1". Actual: ' + err1.message);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-var err2=otherScope('msg2');
-if(err2.message!=="msg2"){
- $ERROR('#2: function otherScope(msg){return new Error(msg);} var err2=otherScope(\'msg2\'); err2.message==="msg2". Actual: '+err2.message);
+var err2 = otherScope('msg2');
+if (err2.message !== "msg2") {
+ $ERROR('#2: function otherScope(msg){return new Error(msg);} var err2=otherScope(\'msg2\'); err2.message==="msg2". Actual: ' + err2.message);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-var err3=otherScope();
-if(err3.hasOwnProperty('message')){
- $ERROR('#3: function otherScope(msg){return new Error(msg);} var err3=otherScope(); err3.hasOwnProperty("message"). Actual: '+err3.message);
+var err3 = otherScope();
+if (err3.hasOwnProperty('message')) {
+ $ERROR('#3: function otherScope(msg){return new Error(msg);} var err3=otherScope(); err3.hasOwnProperty("message"). Actual: ' + err3.message);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-var err4=eval("new Error('msg4')");
-if(err4.message!=="msg4"){
- $ERROR('#4: var err4=eval("new Error(\'msg4\')"); err4.message==="msg4". Actual: '+err4.message);
+var err4 = eval("new Error('msg4')");
+if (err4.message !== "msg4") {
+ $ERROR('#4: var err4=eval("new Error(\'msg4\')"); err4.message==="msg4". Actual: ' + err4.message);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/S15.11.2.1_A2_T1.js b/test/built-ins/Error/S15.11.2.1_A2_T1.js
index 6ad2ef59f..5848bcd4c 100644
--- a/test/built-ins/Error/S15.11.2.1_A2_T1.js
+++ b/test/built-ins/Error/S15.11.2.1_A2_T1.js
@@ -11,9 +11,9 @@ description: Checking prototype of the newly constructed Error object
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-var err1=new Error('msg1');
-if(!Error.prototype.isPrototypeOf(err1)){
- $ERROR('#1: Error.prototype.isPrototypeOf(err1) return true. Actual: '+Error.prototype.isPrototypeOf(err1));
+var err1 = new Error('msg1');
+if (!Error.prototype.isPrototypeOf(err1)) {
+ $ERROR('#1: Error.prototype.isPrototypeOf(err1) return true. Actual: ' + Error.prototype.isPrototypeOf(err1));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/S15.11.2.1_A3_T1.js b/test/built-ins/Error/S15.11.2.1_A3_T1.js
index 8c653807f..4cd39953a 100644
--- a/test/built-ins/Error/S15.11.2.1_A3_T1.js
+++ b/test/built-ins/Error/S15.11.2.1_A3_T1.js
@@ -11,10 +11,10 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-Error.prototype.toString=Object.prototype.toString;
-var err1=new Error();
-if(err1.toString()!=='[object '+ 'Error' +']'){
- $ERROR('#1: err1.toString()===\'[object Error]\'. Actual: '+err1.toString());
+Error.prototype.toString = Object.prototype.toString;
+var err1 = new Error();
+if (err1.toString() !== '[object ' + 'Error' + ']') {
+ $ERROR('#1: err1.toString()===\'[object Error]\'. Actual: ' + err1.toString());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/S15.11.3_A1_T1.js b/test/built-ins/Error/S15.11.3_A1_T1.js
index 534d5f032..c0074b6a8 100644
--- a/test/built-ins/Error/S15.11.3_A1_T1.js
+++ b/test/built-ins/Error/S15.11.3_A1_T1.js
@@ -13,17 +13,17 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-var err1=Error("err");
-if(!Function.prototype.isPrototypeOf(err1.constructor)){
- $ERROR('#1: var err1=Error("err"); Function.prototype.isPrototypeOf(err1.constructor) return true. Actual:'+Function.prototype.isPrototypeOf(err1.constructor));
+var err1 = Error("err");
+if (!Function.prototype.isPrototypeOf(err1.constructor)) {
+ $ERROR('#1: var err1=Error("err"); Function.prototype.isPrototypeOf(err1.constructor) return true. Actual:' + Function.prototype.isPrototypeOf(err1.constructor));
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if(!Function.prototype.isPrototypeOf(Error.constructor)){
- $ERROR('#2: Function.prototype.isPrototypeOf(Error.constructor) return true. Actual:'+Function.prototype.isPrototypeOf(Error.constructor));
+if (!Function.prototype.isPrototypeOf(Error.constructor)) {
+ $ERROR('#2: Function.prototype.isPrototypeOf(Error.constructor) return true. Actual:' + Function.prototype.isPrototypeOf(Error.constructor));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/S15.11.3_A2_T1.js b/test/built-ins/Error/S15.11.3_A2_T1.js
index 41e8e6b76..6cf25327a 100644
--- a/test/built-ins/Error/S15.11.3_A2_T1.js
+++ b/test/built-ins/Error/S15.11.3_A2_T1.js
@@ -9,17 +9,17 @@ description: Checking length property
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-var err1=Error("err");
-if(err1.constructor.length!==1){
- $ERROR('#1: var err1=Error("err"); err1.constructor.length===1. Actual: '+err1.constructor.length);
+var err1 = Error("err");
+if (err1.constructor.length !== 1) {
+ $ERROR('#1: var err1=Error("err"); err1.constructor.length===1. Actual: ' + err1.constructor.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if(Error.constructor.length!==1){
- $ERROR('#2: Error.constructor.length===1. Actual: '+Error.constructor.length);
+if (Error.constructor.length !== 1) {
+ $ERROR('#2: Error.constructor.length===1. Actual: ' + Error.constructor.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/prototype/S15.11.3.1_A1_T1.js b/test/built-ins/Error/prototype/S15.11.3.1_A1_T1.js
index e7bc80e56..b7da126aa 100644
--- a/test/built-ins/Error/prototype/S15.11.3.1_A1_T1.js
+++ b/test/built-ins/Error/prototype/S15.11.3.1_A1_T1.js
@@ -8,7 +8,7 @@ description: Checking if deleting the Error.prototype property fails
includes: [propertyHelper.js]
---*/
-var proto=Error.prototype;
+var proto = Error.prototype;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
verifyNotConfigurable(Error, "prototype");
@@ -25,8 +25,8 @@ try {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if(Error.prototype!==proto){
- $ERROR('#2: var proto=Error.prototype; delete Error.prototype; Error.prototype===proto. Actual: '+Error.prototype);
+if (Error.prototype !== proto) {
+ $ERROR('#2: var proto=Error.prototype; delete Error.prototype; Error.prototype===proto. Actual: ' + Error.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/prototype/S15.11.3.1_A2_T1.js b/test/built-ins/Error/prototype/S15.11.3.1_A2_T1.js
index 29a397af7..d8ab08a9e 100644
--- a/test/built-ins/Error/prototype/S15.11.3.1_A2_T1.js
+++ b/test/built-ins/Error/prototype/S15.11.3.1_A2_T1.js
@@ -10,7 +10,7 @@ description: Checking if enumerating the Error.prototype property fails
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(Error.hasOwnProperty('prototype'))) {
- $ERROR('#0: Error.hasOwnProperty(\'prototype\') return true. Actual: '+Error.hasOwnProperty('prototype'));
+ $ERROR('#0: Error.hasOwnProperty(\'prototype\') return true. Actual: ' + Error.hasOwnProperty('prototype'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -19,7 +19,7 @@ if (!(Error.hasOwnProperty('prototype'))) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#1
if (Error.propertyIsEnumerable('prototype')) {
- $ERROR('#1: Error.propertyIsEnumerable(\'prototype\') return false. Actual: '+Error.propertyIsEnumerable('prototype'));
+ $ERROR('#1: Error.propertyIsEnumerable(\'prototype\') return false. Actual: ' + Error.propertyIsEnumerable('prototype'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,14 +27,14 @@ if (Error.propertyIsEnumerable('prototype')) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#2
-var cout=0;
+var cout = 0;
-for (var p in Error){
- if (p==="prototype") cout++;
+for (var p in Error) {
+ if (p === "prototype") cout++;
}
if (cout !== 0) {
- $ERROR('#2: cout === 0. Actual: '+cout );
+ $ERROR('#2: cout === 0. Actual: ' + cout);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/prototype/S15.11.3.1_A3_T1.js b/test/built-ins/Error/prototype/S15.11.3.1_A3_T1.js
index d76e90fb5..2d2c78f91 100644
--- a/test/built-ins/Error/prototype/S15.11.3.1_A3_T1.js
+++ b/test/built-ins/Error/prototype/S15.11.3.1_A3_T1.js
@@ -11,19 +11,21 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(Error.hasOwnProperty('prototype'))) {
- $ERROR('#1: Error.hasOwnProperty(\'prototype\') return true. Actual: '+Error.hasOwnProperty('prototype'));
+ $ERROR('#1: Error.hasOwnProperty(\'prototype\') return true. Actual: ' + Error.hasOwnProperty('prototype'));
}
//
//////////////////////////////////////////////////////////////////////////////
var __obj = Error.prototype;
-verifyNotWritable(Error, "prototype", null, function(){return "shifted";});
+verifyNotWritable(Error, "prototype", null, function() {
+ return "shifted";
+});
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (Error.prototype !== __obj) {
- $ERROR('#2: __obj = Error.prototype; Error.prototype = function(){return "shifted";}; Error.prototype === __obj. Actual: '+Error.prototype );
+ $ERROR('#2: __obj = Error.prototype; Error.prototype = function(){return "shifted";}; Error.prototype === __obj. Actual: ' + Error.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/prototype/S15.11.3.1_A4_T1.js b/test/built-ins/Error/prototype/S15.11.3.1_A4_T1.js
index 1770637ce..258f205e2 100644
--- a/test/built-ins/Error/prototype/S15.11.3.1_A4_T1.js
+++ b/test/built-ins/Error/prototype/S15.11.3.1_A4_T1.js
@@ -10,7 +10,7 @@ description: Checking Error.hasOwnProperty('prototype')
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(Error.hasOwnProperty('prototype'))) {
- $ERROR('#1: Error.hasOwnProperty(\'prototype\') return true. Actual: '+Error.hasOwnProperty('prototype'));
+ $ERROR('#1: Error.hasOwnProperty(\'prototype\') return true. Actual: ' + Error.hasOwnProperty('prototype'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/prototype/S15.11.4_A1.js b/test/built-ins/Error/prototype/S15.11.4_A1.js
index cbb35f4bb..c3b9afef4 100644
--- a/test/built-ins/Error/prototype/S15.11.4_A1.js
+++ b/test/built-ins/Error/prototype/S15.11.4_A1.js
@@ -12,7 +12,7 @@ description: Get Error.prototype and compare with Object.prototype
//////////////////////////////////////////////////////////////////////////////
// CHECK#1
if (!Object.prototype.isPrototypeOf(Error.prototype)) {
- $ERROR('#1: Object.prototype.isPrototypeOf(Error.prototype) return true. Actual: '+Object.prototype.isPrototypeOf(Error.prototype));
+ $ERROR('#1: Object.prototype.isPrototypeOf(Error.prototype) return true. Actual: ' + Object.prototype.isPrototypeOf(Error.prototype));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/prototype/S15.11.4_A2.js b/test/built-ins/Error/prototype/S15.11.4_A2.js
index 80f6cbc2b..bb85666d1 100644
--- a/test/built-ins/Error/prototype/S15.11.4_A2.js
+++ b/test/built-ins/Error/prototype/S15.11.4_A2.js
@@ -11,13 +11,13 @@ description: >
Error.prototype.toString() function
---*/
-Error.prototype.toString=Object.prototype.toString;
+Error.prototype.toString = Object.prototype.toString;
var __tostr = Error.prototype.toString();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__tostr !== "[object Object]") {
- $ERROR('#1: Error.prototype.toString=Object.prototype.toString; __tostr = Error.prototype.toString(); __tostr === "[object Object]". Actual: '+__tostr );
+ $ERROR('#1: Error.prototype.toString=Object.prototype.toString; __tostr = Error.prototype.toString(); __tostr === "[object Object]". Actual: ' + __tostr);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/prototype/S15.11.4_A3.js b/test/built-ins/Error/prototype/S15.11.4_A3.js
index e514df09a..72b2daf6b 100644
--- a/test/built-ins/Error/prototype/S15.11.4_A3.js
+++ b/test/built-ins/Error/prototype/S15.11.4_A3.js
@@ -10,10 +10,10 @@ description: Checking if call of Error prototype as a function fails
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try {
- Error.prototype();
- $ERROR('#1: "Error.prototype()" lead to throwing exception');
+ Error.prototype();
+ $ERROR('#1: "Error.prototype()" lead to throwing exception');
} catch (e) {
- if (e instanceof Test262Error) throw e;
+ if (e instanceof Test262Error) throw e;
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/prototype/S15.11.4_A4.js b/test/built-ins/Error/prototype/S15.11.4_A4.js
index 751033a83..354fd7802 100644
--- a/test/built-ins/Error/prototype/S15.11.4_A4.js
+++ b/test/built-ins/Error/prototype/S15.11.4_A4.js
@@ -10,10 +10,10 @@ description: Checking if creating "new Error.prototype" fails
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try {
- var __instance = new Error.prototype;
- $ERROR('#1: "var __instance = new Error.prototype" lead to throwing exception');
+ var __instance = new Error.prototype;
+ $ERROR('#1: "var __instance = new Error.prototype" lead to throwing exception');
} catch (e) {
- if (e instanceof Test262Error) throw e;
+ if (e instanceof Test262Error) throw e;
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/prototype/constructor/S15.11.4.1_A1_T1.js b/test/built-ins/Error/prototype/constructor/S15.11.4.1_A1_T1.js
index ced9d0090..01508f865 100644
--- a/test/built-ins/Error/prototype/constructor/S15.11.4.1_A1_T1.js
+++ b/test/built-ins/Error/prototype/constructor/S15.11.4.1_A1_T1.js
@@ -12,7 +12,7 @@ description: Checking Error.prototype.constructor
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (Error.prototype.constructor !== Error) {
- $ERROR('#1: Error.prototype.constructor === Error. Actual: '+Error.prototype.constructor );
+ $ERROR('#1: Error.prototype.constructor === Error. Actual: ' + Error.prototype.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/prototype/constructor/S15.11.4.1_A1_T2.js b/test/built-ins/Error/prototype/constructor/S15.11.4.1_A1_T2.js
index 14869ce39..5a530d90f 100644
--- a/test/built-ins/Error/prototype/constructor/S15.11.4.1_A1_T2.js
+++ b/test/built-ins/Error/prototype/constructor/S15.11.4.1_A1_T2.js
@@ -18,7 +18,7 @@ var err = new constr;
//////////////////////////////////////////////////////////////////////////////
// CHECK#0
if (err === undefined) {
- $ERROR('#0: constr = Error.prototype.constructor; err = new constr; err === undefined');
+ $ERROR('#0: constr = Error.prototype.constructor; err = new constr; err === undefined');
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (err === undefined) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#1
if (err.constructor !== Error) {
- $ERROR('#1: constr = Error.prototype.constructor; err = new constr; err.constructor === Error. Actual: '+err.constructor );
+ $ERROR('#1: constr = Error.prototype.constructor; err = new constr; err.constructor === Error. Actual: ' + err.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,17 +34,17 @@ if (err.constructor !== Error) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#2
if (!(Error.prototype.isPrototypeOf(err))) {
- $ERROR('#2: constr = Error.prototype.constructor; err = new constr; Error.prototype.isPrototypeOf(err) return true. Actual: '+Error.prototype.isPrototypeOf(err));
+ $ERROR('#2: constr = Error.prototype.constructor; err = new constr; Error.prototype.isPrototypeOf(err) return true. Actual: ' + Error.prototype.isPrototypeOf(err));
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
// CHECK#3
-Error.prototype.toString=Object.prototype.toString;
-var to_string_result = '[object '+ 'Error' +']';
+Error.prototype.toString = Object.prototype.toString;
+var to_string_result = '[object ' + 'Error' + ']';
if (err.toString() !== to_string_result) {
- $ERROR('#3: constr = Error.prototype.constructor; err = new constr; Error.prototype.toString=Object.prototype.toString; err.toString() === \'[object Error]\'. Actual: '+err.toString() );
+ $ERROR('#3: constr = Error.prototype.constructor; err = new constr; Error.prototype.toString=Object.prototype.toString; err.toString() === \'[object Error]\'. Actual: ' + err.toString());
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -52,7 +52,7 @@ if (err.toString() !== to_string_result) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#4
if (err.valueOf().toString() !== to_string_result) {
- $ERROR('#4: constr = Error.prototype.constructor; err = new constr; Error.prototype.toString=Object.prototype.toString; err.valueOf().toString() === \'[object Error]\'. Actual: '+err.valueOf().toString() );
+ $ERROR('#4: constr = Error.prototype.constructor; err = new constr; Error.prototype.toString=Object.prototype.toString; err.valueOf().toString() === \'[object Error]\'. Actual: ' + err.valueOf().toString());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/prototype/message/15.11.4.3-1.js b/test/built-ins/Error/prototype/message/15.11.4.3-1.js
index 6860135a9..303078ba8 100644
--- a/test/built-ins/Error/prototype/message/15.11.4.3-1.js
+++ b/test/built-ins/Error/prototype/message/15.11.4.3-1.js
@@ -6,6 +6,6 @@ es5id: 15.11.4.3-1
description: Error.prototype.message is not enumerable.
---*/
- for (var i in Error.prototype) {
- assert.notSameValue(i, "message", 'i');
- }
+for (var i in Error.prototype) {
+ assert.notSameValue(i, "message", 'i');
+}
diff --git a/test/built-ins/Error/prototype/message/S15.11.4.3_A1.js b/test/built-ins/Error/prototype/message/S15.11.4.3_A1.js
index 14517881b..a5cad6d0e 100644
--- a/test/built-ins/Error/prototype/message/S15.11.4.3_A1.js
+++ b/test/built-ins/Error/prototype/message/S15.11.4.3_A1.js
@@ -10,7 +10,7 @@ description: Checking Error.prototype.message
//////////////////////////////////////////////////////////////////////////////
// CHECK#1
if (!Error.prototype.hasOwnProperty('message')) {
- $ERROR('#1: Error.prototype.hasOwnProperty(\'message\') reurn true. Actual: '+Error.prototype.hasOwnProperty('message'));
+ $ERROR('#1: Error.prototype.hasOwnProperty(\'message\') reurn true. Actual: ' + Error.prototype.hasOwnProperty('message'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/prototype/name/15.11.4.2-1.js b/test/built-ins/Error/prototype/name/15.11.4.2-1.js
index 7df0656c1..de519ef06 100644
--- a/test/built-ins/Error/prototype/name/15.11.4.2-1.js
+++ b/test/built-ins/Error/prototype/name/15.11.4.2-1.js
@@ -6,6 +6,6 @@ es5id: 15.11.4.2-1
description: Error.prototype.name is not enumerable.
---*/
- for (var i in Error.prototype) {
- assert.notSameValue(i, "name", 'i');
- }
+for (var i in Error.prototype) {
+ assert.notSameValue(i, "name", 'i');
+}
diff --git a/test/built-ins/Error/prototype/name/S15.11.4.2_A1.js b/test/built-ins/Error/prototype/name/S15.11.4.2_A1.js
index 9f9acadf0..3c3a6475a 100644
--- a/test/built-ins/Error/prototype/name/S15.11.4.2_A1.js
+++ b/test/built-ins/Error/prototype/name/S15.11.4.2_A1.js
@@ -10,7 +10,7 @@ description: Checking Error.prototype.name
//////////////////////////////////////////////////////////////////////////////
// CHECK#1
if (!Error.prototype.hasOwnProperty('name')) {
- $ERROR('#1: Error.prototype.hasOwnProperty(\'name\') return true. Actual: '+Error.prototype.hasOwnProperty('name'));
+ $ERROR('#1: Error.prototype.hasOwnProperty(\'name\') return true. Actual: ' + Error.prototype.hasOwnProperty('name'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/prototype/name/S15.11.4.2_A2.js b/test/built-ins/Error/prototype/name/S15.11.4.2_A2.js
index 05f044cc7..8ee95946e 100644
--- a/test/built-ins/Error/prototype/name/S15.11.4.2_A2.js
+++ b/test/built-ins/Error/prototype/name/S15.11.4.2_A2.js
@@ -9,8 +9,8 @@ description: Checking value of Error.prototype.name
//////////////////////////////////////////////////////////////////////////////
// CHECK#1
-if (Error.prototype.name!=="Error") {
- $ERROR('#1: Error.prototype.name==="Error". Actual: '+Error.prototype.name);
+if (Error.prototype.name !== "Error") {
+ $ERROR('#1: Error.prototype.name==="Error". Actual: ' + Error.prototype.name);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/prototype/toString/15.11.4.4-10-1.js b/test/built-ins/Error/prototype/toString/15.11.4.4-10-1.js
index dd30cf0ea..f4a2b6357 100644
--- a/test/built-ins/Error/prototype/toString/15.11.4.4-10-1.js
+++ b/test/built-ins/Error/prototype/toString/15.11.4.4-10-1.js
@@ -9,7 +9,7 @@ description: >
'msg' are non-empty string
---*/
- var errObj = new Error("ErrorMessage");
- errObj.name = "ErrorName";
+var errObj = new Error("ErrorMessage");
+errObj.name = "ErrorName";
assert.sameValue(errObj.toString(), "ErrorName: ErrorMessage", 'errObj.toString()');
diff --git a/test/built-ins/Error/prototype/toString/15.11.4.4-6-1.js b/test/built-ins/Error/prototype/toString/15.11.4.4-6-1.js
index efd54b91d..0235303d8 100644
--- a/test/built-ins/Error/prototype/toString/15.11.4.4-6-1.js
+++ b/test/built-ins/Error/prototype/toString/15.11.4.4-6-1.js
@@ -8,6 +8,6 @@ description: >
absent and empty string is returned when 'msg' is undefined
---*/
- var errObj = new Error();
+var errObj = new Error();
assert.sameValue(errObj.toString(), "Error", 'errObj.toString()');
diff --git a/test/built-ins/Error/prototype/toString/15.11.4.4-6-2.js b/test/built-ins/Error/prototype/toString/15.11.4.4-6-2.js
index 28db42997..c10b3a9f6 100644
--- a/test/built-ins/Error/prototype/toString/15.11.4.4-6-2.js
+++ b/test/built-ins/Error/prototype/toString/15.11.4.4-6-2.js
@@ -9,6 +9,6 @@ description: >
string
---*/
- var errObj = new Error("ErrorMessage");
+var errObj = new Error("ErrorMessage");
assert.sameValue(errObj.toString(), "Error: ErrorMessage", 'errObj.toString()');
diff --git a/test/built-ins/Error/prototype/toString/15.11.4.4-8-1.js b/test/built-ins/Error/prototype/toString/15.11.4.4-8-1.js
index 835145acb..7aa42aa76 100644
--- a/test/built-ins/Error/prototype/toString/15.11.4.4-8-1.js
+++ b/test/built-ins/Error/prototype/toString/15.11.4.4-8-1.js
@@ -8,7 +8,7 @@ description: >
empty string and 'msg' isn't undefined
---*/
- var errObj = new Error("ErrorMessage");
- errObj.name = "";
+var errObj = new Error("ErrorMessage");
+errObj.name = "";
assert.sameValue(errObj.toString(), "ErrorMessage", 'errObj.toString()');
diff --git a/test/built-ins/Error/prototype/toString/15.11.4.4-8-2.js b/test/built-ins/Error/prototype/toString/15.11.4.4-8-2.js
index b79e46eed..7534084cb 100644
--- a/test/built-ins/Error/prototype/toString/15.11.4.4-8-2.js
+++ b/test/built-ins/Error/prototype/toString/15.11.4.4-8-2.js
@@ -11,8 +11,8 @@ description: >
var errObj = new Error();
errObj.name = "";
if (errObj.name !== "") {
- $ERROR("Expected errObj.name to be '', actually " + errObj.name);
+ $ERROR("Expected errObj.name to be '', actually " + errObj.name);
}
if (errObj.toString() !== "") {
- $ERROR("Expected errObj.toString() to be '', actually " + errObj.toString());
+ $ERROR("Expected errObj.toString() to be '', actually " + errObj.toString());
}
diff --git a/test/built-ins/Error/prototype/toString/15.11.4.4-9-1.js b/test/built-ins/Error/prototype/toString/15.11.4.4-9-1.js
index 2f86f3150..be197606b 100644
--- a/test/built-ins/Error/prototype/toString/15.11.4.4-9-1.js
+++ b/test/built-ins/Error/prototype/toString/15.11.4.4-9-1.js
@@ -8,7 +8,7 @@ description: >
string and 'msg' is empty string
---*/
- var errObj = new Error();
- errObj.name = "ErrorName";
+var errObj = new Error();
+errObj.name = "ErrorName";
assert.sameValue(errObj.toString(), "ErrorName", 'errObj.toString()');
diff --git a/test/built-ins/Error/prototype/toString/S15.11.4.4_A1.js b/test/built-ins/Error/prototype/toString/S15.11.4.4_A1.js
index bcd99d2f7..d5d22db6f 100644
--- a/test/built-ins/Error/prototype/toString/S15.11.4.4_A1.js
+++ b/test/built-ins/Error/prototype/toString/S15.11.4.4_A1.js
@@ -10,7 +10,7 @@ description: Checking Error.prototype.toString
//////////////////////////////////////////////////////////////////////////////
// CHECK#1
if (!Error.prototype.hasOwnProperty('toString')) {
- $ERROR('#1: Error.prototype.hasOwnProperty(\'toString\') return true. Actual: '+Error.prototype.hasOwnProperty('toString'));
+ $ERROR('#1: Error.prototype.hasOwnProperty(\'toString\') return true. Actual: ' + Error.prototype.hasOwnProperty('toString'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Error/prototype/toString/S15.11.4.4_A2.js b/test/built-ins/Error/prototype/toString/S15.11.4.4_A2.js
index 35ce0d95e..de13b6242 100644
--- a/test/built-ins/Error/prototype/toString/S15.11.4.4_A2.js
+++ b/test/built-ins/Error/prototype/toString/S15.11.4.4_A2.js
@@ -9,15 +9,15 @@ description: Checking if call of Error.prototype.toSting() fails
//////////////////////////////////////////////////////////////////////////////
// CHECK#1
-var err1=new Error("Error");
-try{
- var toStr=err1.toString();
+var err1 = new Error("Error");
+try {
+ var toStr = err1.toString();
}
-catch(e){
- $ERROR('#1: var err1=new Error("Error"); var toStr=err1.toString(); lead to throwing exception. Exception is '+e);
+catch (e) {
+ $ERROR('#1: var err1=new Error("Error"); var toStr=err1.toString(); lead to throwing exception. Exception is ' + e);
}
-if (toStr===undefined) {
- $ERROR('#2: var err1=new Error("Error"); var toStr=err1.toString(); toStr!==undefined. Actual: '+toStr);
+if (toStr === undefined) {
+ $ERROR('#2: var err1=new Error("Error"); var toStr=err1.toString(); toStr!==undefined. Actual: ' + toStr);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/Function/15.3.2.1-11-1-s.js b/test/built-ins/Function/15.3.2.1-11-1-s.js
index e03cedaf5..dabfb8ab7 100644
--- a/test/built-ins/Function/15.3.2.1-11-1-s.js
+++ b/test/built-ins/Function/15.3.2.1-11-1-s.js
@@ -9,7 +9,7 @@ description: >
flags: [noStrict]
---*/
-
+
assert.throws(SyntaxError, function() {
- Function('a','a','"use strict";');
+ Function('a', 'a', '"use strict";');
});
diff --git a/test/built-ins/Function/15.3.2.1-11-1.js b/test/built-ins/Function/15.3.2.1-11-1.js
index 8caa5e5f7..9c6706de1 100644
--- a/test/built-ins/Function/15.3.2.1-11-1.js
+++ b/test/built-ins/Function/15.3.2.1-11-1.js
@@ -8,4 +8,4 @@ description: >
if body not strict
---*/
- Function('a','a','return;');
+Function('a', 'a', 'return;');
diff --git a/test/built-ins/Function/15.3.2.1-11-2-s.js b/test/built-ins/Function/15.3.2.1-11-2-s.js
index 7f670f147..4ed4ad8c9 100644
--- a/test/built-ins/Function/15.3.2.1-11-2-s.js
+++ b/test/built-ins/Function/15.3.2.1-11-2-s.js
@@ -9,4 +9,4 @@ description: >
flags: [onlyStrict]
---*/
- Function('a','a','return;');
+Function('a', 'a', 'return;');
diff --git a/test/built-ins/Function/15.3.2.1-11-3-s.js b/test/built-ins/Function/15.3.2.1-11-3-s.js
index 29adf517d..204f9724b 100644
--- a/test/built-ins/Function/15.3.2.1-11-3-s.js
+++ b/test/built-ins/Function/15.3.2.1-11-3-s.js
@@ -11,5 +11,5 @@ flags: [noStrict]
assert.throws(SyntaxError, function() {
- Function('eval', '"use strict";');
+ Function('eval', '"use strict";');
});
diff --git a/test/built-ins/Function/15.3.2.1-11-3.js b/test/built-ins/Function/15.3.2.1-11-3.js
index a1d3cf431..95e89dd53 100644
--- a/test/built-ins/Function/15.3.2.1-11-3.js
+++ b/test/built-ins/Function/15.3.2.1-11-3.js
@@ -8,4 +8,4 @@ description: >
body is not strict mode
---*/
- Function('eval', 'return;');
+Function('eval', 'return;');
diff --git a/test/built-ins/Function/15.3.2.1-11-4-s.js b/test/built-ins/Function/15.3.2.1-11-4-s.js
index 858a9d7ac..155a55fd6 100644
--- a/test/built-ins/Function/15.3.2.1-11-4-s.js
+++ b/test/built-ins/Function/15.3.2.1-11-4-s.js
@@ -10,4 +10,4 @@ description: >
flags: [onlyStrict]
---*/
- Function('eval', 'return;');
+Function('eval', 'return;');
diff --git a/test/built-ins/Function/15.3.2.1-11-5-s.js b/test/built-ins/Function/15.3.2.1-11-5-s.js
index 00db23462..6017374b1 100644
--- a/test/built-ins/Function/15.3.2.1-11-5-s.js
+++ b/test/built-ins/Function/15.3.2.1-11-5-s.js
@@ -9,7 +9,7 @@ description: >
flags: [noStrict]
---*/
-
+
assert.throws(SyntaxError, function() {
- Function('a,a','"use strict";');
+ Function('a,a', '"use strict";');
});
diff --git a/test/built-ins/Function/15.3.2.1-11-5.js b/test/built-ins/Function/15.3.2.1-11-5.js
index 90d419572..debbe409b 100644
--- a/test/built-ins/Function/15.3.2.1-11-5.js
+++ b/test/built-ins/Function/15.3.2.1-11-5.js
@@ -8,4 +8,4 @@ description: >
if body is not strict
---*/
- Function('a,a','return;');
+Function('a,a', 'return;');
diff --git a/test/built-ins/Function/15.3.2.1-11-6-s.js b/test/built-ins/Function/15.3.2.1-11-6-s.js
index 5d5362cbb..6f840ef8d 100644
--- a/test/built-ins/Function/15.3.2.1-11-6-s.js
+++ b/test/built-ins/Function/15.3.2.1-11-6-s.js
@@ -9,4 +9,4 @@ description: >
flags: [onlyStrict]
---*/
- Function('a,a','return a;');
+Function('a,a', 'return a;');
diff --git a/test/built-ins/Function/15.3.2.1-11-7-s.js b/test/built-ins/Function/15.3.2.1-11-7-s.js
index dd1d6e55a..e82253bc1 100644
--- a/test/built-ins/Function/15.3.2.1-11-7-s.js
+++ b/test/built-ins/Function/15.3.2.1-11-7-s.js
@@ -10,4 +10,4 @@ description: >
flags: [onlyStrict]
---*/
- Function('arguments', 'return;');
+Function('arguments', 'return;');
diff --git a/test/built-ins/Function/15.3.2.1-11-8-s.js b/test/built-ins/Function/15.3.2.1-11-8-s.js
index 2795b4ddf..a9ec023b0 100644
--- a/test/built-ins/Function/15.3.2.1-11-8-s.js
+++ b/test/built-ins/Function/15.3.2.1-11-8-s.js
@@ -11,4 +11,4 @@ description: >
flags: [onlyStrict]
---*/
- var foo = new Function("baz", "qux", "baz", "return 0;");
+var foo = new Function("baz", "qux", "baz", "return 0;");
diff --git a/test/built-ins/Function/15.3.2.1-11-9-s.js b/test/built-ins/Function/15.3.2.1-11-9-s.js
index fef8fdade..a80d3e15f 100644
--- a/test/built-ins/Function/15.3.2.1-11-9-s.js
+++ b/test/built-ins/Function/15.3.2.1-11-9-s.js
@@ -10,4 +10,4 @@ description: >
body
---*/
- var foo = new Function("baz", "baz", "baz", "return 0;");
+var foo = new Function("baz", "baz", "baz", "return 0;");
diff --git a/test/built-ins/Function/15.3.5-1gs.js b/test/built-ins/Function/15.3.5-1gs.js
index 129fa7834..ee28fb1ef 100644
--- a/test/built-ins/Function/15.3.5-1gs.js
+++ b/test/built-ins/Function/15.3.5-1gs.js
@@ -10,6 +10,7 @@ flags: [onlyStrict]
---*/
"use strict";
+
function _15_3_5_1_gs() {}
assert.throws(TypeError, function() {
diff --git a/test/built-ins/Function/15.3.5.4_2-10gs.js b/test/built-ins/Function/15.3.5.4_2-10gs.js
index 70be7b5f0..70f1e76a9 100644
--- a/test/built-ins/Function/15.3.5.4_2-10gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-10gs.js
@@ -13,9 +13,9 @@ flags: [noStrict]
var f = new Function("\"use strict\";\ngNonStrict();");
assert.throws(TypeError, function() {
- f();
+ f();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-11gs.js b/test/built-ins/Function/15.3.5.4_2-11gs.js
index 25824f937..8303b2068 100644
--- a/test/built-ins/Function/15.3.5.4_2-11gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-11gs.js
@@ -10,10 +10,10 @@ flags: [onlyStrict]
---*/
assert.throws(TypeError, function() {
- eval("gNonStrict();");
+ eval("gNonStrict();");
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-12gs.js b/test/built-ins/Function/15.3.5.4_2-12gs.js
index 4b1fc5363..a63cb49e0 100644
--- a/test/built-ins/Function/15.3.5.4_2-12gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-12gs.js
@@ -14,5 +14,5 @@ eval("\"use strict\";\ngNonStrict();");
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-13gs.js b/test/built-ins/Function/15.3.5.4_2-13gs.js
index 2d641a9d6..0ad5d98a6 100644
--- a/test/built-ins/Function/15.3.5.4_2-13gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-13gs.js
@@ -12,9 +12,9 @@ flags: [onlyStrict]
var my_eval = eval;
assert.throws(TypeError, function() {
- my_eval("gNonStrict();");
+ my_eval("gNonStrict();");
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-14gs.js b/test/built-ins/Function/15.3.5.4_2-14gs.js
index 0df946d58..dd7bae085 100644
--- a/test/built-ins/Function/15.3.5.4_2-14gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-14gs.js
@@ -16,5 +16,5 @@ my_eval("\"use strict\";\ngNonStrict();");
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-15gs.js b/test/built-ins/Function/15.3.5.4_2-15gs.js
index 73478f877..beb5bf508 100644
--- a/test/built-ins/Function/15.3.5.4_2-15gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-15gs.js
@@ -11,13 +11,13 @@ flags: [onlyStrict]
---*/
function f() {
- gNonStrict();
+ gNonStrict();
}
assert.throws(TypeError, function() {
- new f();
+ new f();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-16gs.js b/test/built-ins/Function/15.3.5.4_2-16gs.js
index 8046f5457..bcc4de265 100644
--- a/test/built-ins/Function/15.3.5.4_2-16gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-16gs.js
@@ -11,14 +11,14 @@ flags: [noStrict]
---*/
function f() {
- "use strict";
- gNonStrict();
+ "use strict";
+ gNonStrict();
}
assert.throws(TypeError, function() {
- new f();
+ new f();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-17gs.js b/test/built-ins/Function/15.3.5.4_2-17gs.js
index 4a911e805..2aa9d93b0 100644
--- a/test/built-ins/Function/15.3.5.4_2-17gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-17gs.js
@@ -10,14 +10,14 @@ description: >
flags: [onlyStrict]
---*/
-var f = function () {
- gNonStrict();
+var f = function() {
+ gNonStrict();
}
assert.throws(TypeError, function() {
- new f();
+ new f();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-18gs.js b/test/built-ins/Function/15.3.5.4_2-18gs.js
index 01aba8242..87b858905 100644
--- a/test/built-ins/Function/15.3.5.4_2-18gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-18gs.js
@@ -10,15 +10,15 @@ description: >
flags: [noStrict]
---*/
-var f = function () {
- "use strict";
- gNonStrict();
+var f = function() {
+ "use strict";
+ gNonStrict();
}
assert.throws(TypeError, function() {
- new f();
+ new f();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-19gs.js b/test/built-ins/Function/15.3.5.4_2-19gs.js
index be861cf0c..71aba8065 100644
--- a/test/built-ins/Function/15.3.5.4_2-19gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-19gs.js
@@ -11,11 +11,11 @@ flags: [onlyStrict]
---*/
assert.throws(TypeError, function() {
- var obj = new (function () {
- gNonStrict();
- });
+ var obj = new(function() {
+ gNonStrict();
+ });
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-1gs.js b/test/built-ins/Function/15.3.5.4_2-1gs.js
index 302881fcc..97d6b0615 100644
--- a/test/built-ins/Function/15.3.5.4_2-1gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-1gs.js
@@ -10,13 +10,13 @@ flags: [onlyStrict]
---*/
function f() {
- gNonStrict();
+ gNonStrict();
}
assert.throws(TypeError, function() {
- f();
+ f();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-20gs.js b/test/built-ins/Function/15.3.5.4_2-20gs.js
index 0e2a8219a..579f9624a 100644
--- a/test/built-ins/Function/15.3.5.4_2-20gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-20gs.js
@@ -11,13 +11,13 @@ flags: [noStrict]
---*/
assert.throws(TypeError, function() {
- var obj = new (function () {
- "use strict";
- gNonStrict();
- });
+ var obj = new(function() {
+ "use strict";
+ gNonStrict();
+ });
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-21gs.js b/test/built-ins/Function/15.3.5.4_2-21gs.js
index a99ee52a7..67c4da277 100644
--- a/test/built-ins/Function/15.3.5.4_2-21gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-21gs.js
@@ -11,16 +11,16 @@ flags: [onlyStrict]
---*/
function f1() {
- function f() {
- gNonStrict();
- }
- f();
+ function f() {
+ gNonStrict();
+ }
+ f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-22gs.js b/test/built-ins/Function/15.3.5.4_2-22gs.js
index 363d5b4e2..cd0e1fbae 100644
--- a/test/built-ins/Function/15.3.5.4_2-22gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-22gs.js
@@ -11,16 +11,16 @@ flags: [onlyStrict]
---*/
function f1() {
- var f = function () {
- gNonStrict();
- }
- f();
+ var f = function() {
+ gNonStrict();
+ }
+ f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-23gs.js b/test/built-ins/Function/15.3.5.4_2-23gs.js
index e57bf63ab..f1bc42f74 100644
--- a/test/built-ins/Function/15.3.5.4_2-23gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-23gs.js
@@ -11,15 +11,15 @@ flags: [onlyStrict]
---*/
function f1() {
- (function () {
- gNonStrict();
- })();
+ (function() {
+ gNonStrict();
+ })();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-24gs.js b/test/built-ins/Function/15.3.5.4_2-24gs.js
index 327752133..3e7b58f3a 100644
--- a/test/built-ins/Function/15.3.5.4_2-24gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-24gs.js
@@ -10,18 +10,18 @@ description: >
flags: [onlyStrict]
---*/
-var f1 = function () {
- function f() {
- gNonStrict();
- }
- f();
+var f1 = function() {
+ function f() {
+ gNonStrict();
+ }
+ f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-25gs.js b/test/built-ins/Function/15.3.5.4_2-25gs.js
index f4c7b216e..03f885642 100644
--- a/test/built-ins/Function/15.3.5.4_2-25gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-25gs.js
@@ -10,17 +10,17 @@ description: >
flags: [onlyStrict]
---*/
-var f1 = function () {
- var f = function () {
- gNonStrict();
- }
- f();
+var f1 = function() {
+ var f = function() {
+ gNonStrict();
+ }
+ f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-26gs.js b/test/built-ins/Function/15.3.5.4_2-26gs.js
index 0fdee36d2..c37e20a70 100644
--- a/test/built-ins/Function/15.3.5.4_2-26gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-26gs.js
@@ -10,16 +10,16 @@ description: >
flags: [onlyStrict]
---*/
-var f1 = function () {
- (function () {
- gNonStrict();
- })();
+var f1 = function() {
+ (function() {
+ gNonStrict();
+ })();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-27gs.js b/test/built-ins/Function/15.3.5.4_2-27gs.js
index 9c3b4388c..ba70939a0 100644
--- a/test/built-ins/Function/15.3.5.4_2-27gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-27gs.js
@@ -11,14 +11,14 @@ flags: [onlyStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- function f() {
- gNonStrict();
- }
- f();
- })();
+ (function() {
+ function f() {
+ gNonStrict();
+ }
+ f();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-28gs.js b/test/built-ins/Function/15.3.5.4_2-28gs.js
index 70fa7f3ee..3d70c7489 100644
--- a/test/built-ins/Function/15.3.5.4_2-28gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-28gs.js
@@ -11,15 +11,15 @@ flags: [onlyStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- var f = function () {
- gNonStrict();
- }
- f();
- })();
+ (function() {
+ var f = function() {
+ gNonStrict();
+ }
+ f();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-29gs.js b/test/built-ins/Function/15.3.5.4_2-29gs.js
index 5f792dbb8..5aeff3ea9 100644
--- a/test/built-ins/Function/15.3.5.4_2-29gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-29gs.js
@@ -11,13 +11,13 @@ flags: [onlyStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- (function () {
- gNonStrict();
- })();
+ (function() {
+ (function() {
+ gNonStrict();
})();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-2gs.js b/test/built-ins/Function/15.3.5.4_2-2gs.js
index fed111eb2..f942fcf19 100644
--- a/test/built-ins/Function/15.3.5.4_2-2gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-2gs.js
@@ -11,14 +11,14 @@ flags: [noStrict]
---*/
function f() {
- "use strict";
- gNonStrict();
+ "use strict";
+ gNonStrict();
}
assert.throws(TypeError, function() {
- f();
+ f();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-30gs.js b/test/built-ins/Function/15.3.5.4_2-30gs.js
index d49e9861e..bec9e4323 100644
--- a/test/built-ins/Function/15.3.5.4_2-30gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-30gs.js
@@ -11,17 +11,18 @@ flags: [noStrict]
---*/
function f1() {
- "use strict";
- function f() {
- gNonStrict();
- }
- f();
+ "use strict";
+
+ function f() {
+ gNonStrict();
+ }
+ f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-31gs.js b/test/built-ins/Function/15.3.5.4_2-31gs.js
index 9401b802e..2a041c132 100644
--- a/test/built-ins/Function/15.3.5.4_2-31gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-31gs.js
@@ -11,17 +11,17 @@ flags: [noStrict]
---*/
function f1() {
- "use strict";
- var f = function () {
- gNonStrict();
- }
- f();
+ "use strict";
+ var f = function() {
+ gNonStrict();
+ }
+ f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-32gs.js b/test/built-ins/Function/15.3.5.4_2-32gs.js
index 9b5ae34a6..a1300daca 100644
--- a/test/built-ins/Function/15.3.5.4_2-32gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-32gs.js
@@ -11,16 +11,16 @@ flags: [noStrict]
---*/
function f1() {
- "use strict";
- (function () {
- gNonStrict();
- })();
+ "use strict";
+ (function() {
+ gNonStrict();
+ })();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-33gs.js b/test/built-ins/Function/15.3.5.4_2-33gs.js
index 9f366b3f6..6508770f4 100644
--- a/test/built-ins/Function/15.3.5.4_2-33gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-33gs.js
@@ -10,18 +10,19 @@ description: >
flags: [noStrict]
---*/
-var f1 = function () {
- "use strict";
- function f() {
- gNonStrict();
- }
- f();
+var f1 = function() {
+ "use strict";
+
+ function f() {
+ gNonStrict();
+ }
+ f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-34gs.js b/test/built-ins/Function/15.3.5.4_2-34gs.js
index 7c028bcbf..257211176 100644
--- a/test/built-ins/Function/15.3.5.4_2-34gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-34gs.js
@@ -10,18 +10,18 @@ description: >
flags: [noStrict]
---*/
-var f1 = function () {
- "use strict";
- var f = function () {
- gNonStrict();
- }
- f();
+var f1 = function() {
+ "use strict";
+ var f = function() {
+ gNonStrict();
+ }
+ f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-35gs.js b/test/built-ins/Function/15.3.5.4_2-35gs.js
index 2c4d8c6c4..f6e683ba2 100644
--- a/test/built-ins/Function/15.3.5.4_2-35gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-35gs.js
@@ -10,17 +10,17 @@ description: >
flags: [noStrict]
---*/
-var f1 = function () {
- "use strict";
- (function () {
- gNonStrict();
- })();
+var f1 = function() {
+ "use strict";
+ (function() {
+ gNonStrict();
+ })();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-36gs.js b/test/built-ins/Function/15.3.5.4_2-36gs.js
index 5625d5fbf..ded271ba8 100644
--- a/test/built-ins/Function/15.3.5.4_2-36gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-36gs.js
@@ -11,15 +11,16 @@ flags: [noStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- "use strict";
- function f() {
- gNonStrict();
- }
- f();
- })();
+ (function() {
+ "use strict";
+
+ function f() {
+ gNonStrict();
+ }
+ f();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-37gs.js b/test/built-ins/Function/15.3.5.4_2-37gs.js
index d3eab113f..8a515705b 100644
--- a/test/built-ins/Function/15.3.5.4_2-37gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-37gs.js
@@ -11,15 +11,15 @@ flags: [noStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- "use strict";
- var f = function () {
- gNonStrict();
- }
- f();
- })();
+ (function() {
+ "use strict";
+ var f = function() {
+ gNonStrict();
+ }
+ f();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-38gs.js b/test/built-ins/Function/15.3.5.4_2-38gs.js
index d824dc0a2..998fecee0 100644
--- a/test/built-ins/Function/15.3.5.4_2-38gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-38gs.js
@@ -11,14 +11,14 @@ flags: [noStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- "use strict";
- (function () {
- gNonStrict();
- })();
+ (function() {
+ "use strict";
+ (function() {
+ gNonStrict();
})();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-39gs.js b/test/built-ins/Function/15.3.5.4_2-39gs.js
index 5a651dd7b..1f7ee2cca 100644
--- a/test/built-ins/Function/15.3.5.4_2-39gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-39gs.js
@@ -11,17 +11,17 @@ flags: [noStrict]
---*/
function f1() {
- function f() {
- "use strict";
- gNonStrict();
- }
- return f();
+ function f() {
+ "use strict";
+ gNonStrict();
+ }
+ return f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-3gs.js b/test/built-ins/Function/15.3.5.4_2-3gs.js
index ec2224106..05378cc29 100644
--- a/test/built-ins/Function/15.3.5.4_2-3gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-3gs.js
@@ -9,14 +9,14 @@ description: >
flags: [onlyStrict]
---*/
-var f = function () {
- gNonStrict();
+var f = function() {
+ gNonStrict();
}
assert.throws(TypeError, function() {
- f();
+ f();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-40gs.js b/test/built-ins/Function/15.3.5.4_2-40gs.js
index 102b70265..3e616381f 100644
--- a/test/built-ins/Function/15.3.5.4_2-40gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-40gs.js
@@ -11,17 +11,17 @@ flags: [noStrict]
---*/
function f1() {
- var f = function () {
- "use strict";
- gNonStrict();
- }
- return f();
+ var f = function() {
+ "use strict";
+ gNonStrict();
+ }
+ return f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-41gs.js b/test/built-ins/Function/15.3.5.4_2-41gs.js
index 2e17cff15..5cf5456b5 100644
--- a/test/built-ins/Function/15.3.5.4_2-41gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-41gs.js
@@ -11,16 +11,16 @@ flags: [noStrict]
---*/
function f1() {
- return (function () {
- "use strict";
- gNonStrict();
- })();
+ return (function() {
+ "use strict";
+ gNonStrict();
+ })();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-42gs.js b/test/built-ins/Function/15.3.5.4_2-42gs.js
index 43af9ac80..7d5deece0 100644
--- a/test/built-ins/Function/15.3.5.4_2-42gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-42gs.js
@@ -10,18 +10,18 @@ description: >
flags: [noStrict]
---*/
-var f1 = function () {
- function f() {
- "use strict";
- gNonStrict();
- }
- return f();
+var f1 = function() {
+ function f() {
+ "use strict";
+ gNonStrict();
+ }
+ return f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-43gs.js b/test/built-ins/Function/15.3.5.4_2-43gs.js
index 40f2e23cb..c09efeb66 100644
--- a/test/built-ins/Function/15.3.5.4_2-43gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-43gs.js
@@ -10,18 +10,18 @@ description: >
flags: [noStrict]
---*/
-var f1 = function () {
- var f = function () {
- "use strict";
- gNonStrict();
- }
- return f();
+var f1 = function() {
+ var f = function() {
+ "use strict";
+ gNonStrict();
+ }
+ return f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-44gs.js b/test/built-ins/Function/15.3.5.4_2-44gs.js
index c23e618ab..8ce197b44 100644
--- a/test/built-ins/Function/15.3.5.4_2-44gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-44gs.js
@@ -10,17 +10,17 @@ description: >
flags: [noStrict]
---*/
-var f1 = function () {
- return (function () {
- "use strict";
- gNonStrict();
- })();
+var f1 = function() {
+ return (function() {
+ "use strict";
+ gNonStrict();
+ })();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-45gs.js b/test/built-ins/Function/15.3.5.4_2-45gs.js
index e2745596d..175bdae72 100644
--- a/test/built-ins/Function/15.3.5.4_2-45gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-45gs.js
@@ -11,15 +11,15 @@ flags: [noStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- function f() {
- "use strict";
- gNonStrict();
- }
- return f();
- })();
+ (function() {
+ function f() {
+ "use strict";
+ gNonStrict();
+ }
+ return f();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-46gs.js b/test/built-ins/Function/15.3.5.4_2-46gs.js
index 6dea39b00..c120259a7 100644
--- a/test/built-ins/Function/15.3.5.4_2-46gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-46gs.js
@@ -11,15 +11,15 @@ flags: [noStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- var f = function () {
- "use strict";
- gNonStrict();
- }
- return f();
- })();
+ (function() {
+ var f = function() {
+ "use strict";
+ gNonStrict();
+ }
+ return f();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-47gs.js b/test/built-ins/Function/15.3.5.4_2-47gs.js
index 180c64dd2..a845ba280 100644
--- a/test/built-ins/Function/15.3.5.4_2-47gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-47gs.js
@@ -11,15 +11,15 @@ flags: [noStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- return (function () {
- "use strict";
- gNonStrict();
- })();
+ (function() {
+ return (function() {
+ "use strict";
+ gNonStrict();
})();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-48gs.js b/test/built-ins/Function/15.3.5.4_2-48gs.js
index 7a06d7280..1b15f29f1 100644
--- a/test/built-ins/Function/15.3.5.4_2-48gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-48gs.js
@@ -9,12 +9,16 @@ description: >
flags: [onlyStrict]
---*/
-var o = { get foo() { gNonStrict(); } }
+var o = {
+ get foo() {
+ gNonStrict();
+ }
+}
assert.throws(TypeError, function() {
- o.foo;
+ o.foo;
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-49gs.js b/test/built-ins/Function/15.3.5.4_2-49gs.js
index a53963530..36b004570 100644
--- a/test/built-ins/Function/15.3.5.4_2-49gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-49gs.js
@@ -10,12 +10,17 @@ description: >
flags: [noStrict]
---*/
-var o = { get foo() { "use strict"; gNonStrict(); } }
+var o = {
+ get foo() {
+ "use strict";
+ gNonStrict();
+ }
+}
assert.throws(TypeError, function() {
- o.foo;
+ o.foo;
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-4gs.js b/test/built-ins/Function/15.3.5.4_2-4gs.js
index 3f03d5202..eae7c646d 100644
--- a/test/built-ins/Function/15.3.5.4_2-4gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-4gs.js
@@ -10,15 +10,15 @@ description: >
flags: [noStrict]
---*/
-var f = function () {
- "use strict";
- gNonStrict();
+var f = function() {
+ "use strict";
+ gNonStrict();
}
assert.throws(TypeError, function() {
- f();
+ f();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-50gs.js b/test/built-ins/Function/15.3.5.4_2-50gs.js
index 2c7ab8abf..30d3c2676 100644
--- a/test/built-ins/Function/15.3.5.4_2-50gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-50gs.js
@@ -9,12 +9,16 @@ description: >
flags: [onlyStrict]
---*/
-var o = { set foo(stuff) { gNonStrict(); } }
+var o = {
+ set foo(stuff) {
+ gNonStrict();
+ }
+}
assert.throws(TypeError, function() {
- o.foo = 7;
+ o.foo = 7;
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-51gs.js b/test/built-ins/Function/15.3.5.4_2-51gs.js
index f087b3180..f99cf0245 100644
--- a/test/built-ins/Function/15.3.5.4_2-51gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-51gs.js
@@ -10,12 +10,17 @@ description: >
flags: [noStrict]
---*/
-var o = { set foo(stuff) { "use strict"; gNonStrict(); } }
+var o = {
+ set foo(stuff) {
+ "use strict";
+ gNonStrict();
+ }
+}
assert.throws(TypeError, function() {
- o.foo = 8;
+ o.foo = 8;
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-52gs.js b/test/built-ins/Function/15.3.5.4_2-52gs.js
index b996eadf7..7bd5c98fd 100644
--- a/test/built-ins/Function/15.3.5.4_2-52gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-52gs.js
@@ -10,12 +10,16 @@ flags: [onlyStrict]
---*/
var o = {};
-Object.defineProperty(o, "foo", { get: function() { gNonStrict(); } });
+Object.defineProperty(o, "foo", {
+ get: function() {
+ gNonStrict();
+ }
+});
assert.throws(TypeError, function() {
- o.foo;
+ o.foo;
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-53gs.js b/test/built-ins/Function/15.3.5.4_2-53gs.js
index 50bfb37e3..662870cbf 100644
--- a/test/built-ins/Function/15.3.5.4_2-53gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-53gs.js
@@ -11,12 +11,17 @@ flags: [noStrict]
---*/
var o = {};
-Object.defineProperty(o, "foo", { get: function() { "use strict"; gNonStrict(); } });
+Object.defineProperty(o, "foo", {
+ get: function() {
+ "use strict";
+ gNonStrict();
+ }
+});
assert.throws(TypeError, function() {
- o.foo;
+ o.foo;
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-54gs.js b/test/built-ins/Function/15.3.5.4_2-54gs.js
index 6182bd6e1..dc45d8916 100644
--- a/test/built-ins/Function/15.3.5.4_2-54gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-54gs.js
@@ -10,12 +10,16 @@ flags: [onlyStrict]
---*/
var o = {};
-Object.defineProperty(o, "foo", { set: function(stuff) { gNonStrict(); } });
+Object.defineProperty(o, "foo", {
+ set: function(stuff) {
+ gNonStrict();
+ }
+});
assert.throws(TypeError, function() {
- o.foo = 9;
+ o.foo = 9;
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-55gs.js b/test/built-ins/Function/15.3.5.4_2-55gs.js
index 9656eecfb..35a776849 100644
--- a/test/built-ins/Function/15.3.5.4_2-55gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-55gs.js
@@ -11,12 +11,17 @@ flags: [noStrict]
---*/
var o = {};
-Object.defineProperty(o, "foo", { set: function(stuff) { "use strict"; gNonStrict(); } });
+Object.defineProperty(o, "foo", {
+ set: function(stuff) {
+ "use strict";
+ gNonStrict();
+ }
+});
assert.throws(TypeError, function() {
- o.foo = 10;
+ o.foo = 10;
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-56gs.js b/test/built-ins/Function/15.3.5.4_2-56gs.js
index ab4190fda..28094f41b 100644
--- a/test/built-ins/Function/15.3.5.4_2-56gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-56gs.js
@@ -10,13 +10,19 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict(); };
-function foo() { return f();}
+function f() {
+ "use strict";
+ gNonStrict();
+};
+
+function foo() {
+ return f();
+}
assert.throws(TypeError, function() {
- foo();
+ foo();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-57gs.js b/test/built-ins/Function/15.3.5.4_2-57gs.js
index 771c4a0bf..4d2be9314 100644
--- a/test/built-ins/Function/15.3.5.4_2-57gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-57gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict(); };
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- eval("f();");
+ eval("f();");
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-58gs.js b/test/built-ins/Function/15.3.5.4_2-58gs.js
index d903bdc47..796733335 100644
--- a/test/built-ins/Function/15.3.5.4_2-58gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-58gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict(); };
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- Function("return f();")();
+ Function("return f();")();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-59gs.js b/test/built-ins/Function/15.3.5.4_2-59gs.js
index 75d85d2fd..6df2cdfc9 100644
--- a/test/built-ins/Function/15.3.5.4_2-59gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-59gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict(); };
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- new Function("return f();")();
+ new Function("return f();")();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-5gs.js b/test/built-ins/Function/15.3.5.4_2-5gs.js
index 6e6f67821..299e8ce1b 100644
--- a/test/built-ins/Function/15.3.5.4_2-5gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-5gs.js
@@ -11,11 +11,11 @@ flags: [onlyStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- gNonStrict();
- })();
+ (function() {
+ gNonStrict();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-60gs.js b/test/built-ins/Function/15.3.5.4_2-60gs.js
index eed2e180a..2064f51c4 100644
--- a/test/built-ins/Function/15.3.5.4_2-60gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-60gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.apply();
+ f.apply();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-61gs.js b/test/built-ins/Function/15.3.5.4_2-61gs.js
index 696449b69..fb1ed900f 100644
--- a/test/built-ins/Function/15.3.5.4_2-61gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-61gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.apply(null);
+ f.apply(null);
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-62gs.js b/test/built-ins/Function/15.3.5.4_2-62gs.js
index 57dd44c7a..e2ca68809 100644
--- a/test/built-ins/Function/15.3.5.4_2-62gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-62gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.apply(undefined);
+ f.apply(undefined);
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-63gs.js b/test/built-ins/Function/15.3.5.4_2-63gs.js
index 83dbe0b4f..2f8cf457c 100644
--- a/test/built-ins/Function/15.3.5.4_2-63gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-63gs.js
@@ -10,13 +10,16 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
var o = {};
assert.throws(TypeError, function() {
- f.apply(o);
+ f.apply(o);
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-64gs.js b/test/built-ins/Function/15.3.5.4_2-64gs.js
index a95d82a41..b4b18805f 100644
--- a/test/built-ins/Function/15.3.5.4_2-64gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-64gs.js
@@ -11,12 +11,16 @@ flags: [noStrict]
---*/
var global = this;
-function f() { "use strict"; gNonStrict();};
+
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.apply(global);
+ f.apply(global);
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-65gs.js b/test/built-ins/Function/15.3.5.4_2-65gs.js
index 6062b1d81..7fe4ebbcb 100644
--- a/test/built-ins/Function/15.3.5.4_2-65gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-65gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.call();
+ f.call();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-66gs.js b/test/built-ins/Function/15.3.5.4_2-66gs.js
index 1c410c7e7..ef1d045d9 100644
--- a/test/built-ins/Function/15.3.5.4_2-66gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-66gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.call(null);
+ f.call(null);
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-67gs.js b/test/built-ins/Function/15.3.5.4_2-67gs.js
index 76308260f..2c1e85967 100644
--- a/test/built-ins/Function/15.3.5.4_2-67gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-67gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.call(undefined);
+ f.call(undefined);
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-68gs.js b/test/built-ins/Function/15.3.5.4_2-68gs.js
index 0f23492bd..37667415d 100644
--- a/test/built-ins/Function/15.3.5.4_2-68gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-68gs.js
@@ -10,13 +10,16 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
var o = {};
assert.throws(TypeError, function() {
- f.call(o);
+ f.call(o);
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-69gs.js b/test/built-ins/Function/15.3.5.4_2-69gs.js
index 0572d8603..664a8003d 100644
--- a/test/built-ins/Function/15.3.5.4_2-69gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-69gs.js
@@ -11,12 +11,16 @@ flags: [noStrict]
---*/
var global = this;
-function f() { "use strict"; gNonStrict();};
+
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.call(this);
+ f.call(this);
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-6gs.js b/test/built-ins/Function/15.3.5.4_2-6gs.js
index 425f3dcc8..5a3ca1b07 100644
--- a/test/built-ins/Function/15.3.5.4_2-6gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-6gs.js
@@ -11,13 +11,13 @@ flags: [noStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- "use strict";
- gNonStrict();
- })();
+ (function() {
+ "use strict";
+ gNonStrict();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-70gs.js b/test/built-ins/Function/15.3.5.4_2-70gs.js
index 0ce9f72af..67c58c301 100644
--- a/test/built-ins/Function/15.3.5.4_2-70gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-70gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.bind()();
+ f.bind()();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-71gs.js b/test/built-ins/Function/15.3.5.4_2-71gs.js
index 3c3a1567e..73977b200 100644
--- a/test/built-ins/Function/15.3.5.4_2-71gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-71gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.bind(null)();
+ f.bind(null)();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-72gs.js b/test/built-ins/Function/15.3.5.4_2-72gs.js
index 7cd70c9da..a2db6d625 100644
--- a/test/built-ins/Function/15.3.5.4_2-72gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-72gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.bind(undefined)();
+ f.bind(undefined)();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-73gs.js b/test/built-ins/Function/15.3.5.4_2-73gs.js
index c616c07e4..0c463d764 100644
--- a/test/built-ins/Function/15.3.5.4_2-73gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-73gs.js
@@ -10,13 +10,16 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
var o = {};
assert.throws(TypeError, function() {
- f.bind(o)();
+ f.bind(o)();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-74gs.js b/test/built-ins/Function/15.3.5.4_2-74gs.js
index e1c730c23..4918478c2 100644
--- a/test/built-ins/Function/15.3.5.4_2-74gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-74gs.js
@@ -11,12 +11,16 @@ flags: [noStrict]
---*/
var global = this;
-function f() { "use strict"; gNonStrict();};
+
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.bind(global)();
+ f.bind(global)();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-75gs.js b/test/built-ins/Function/15.3.5.4_2-75gs.js
index b39e30f70..8f02e17e7 100644
--- a/test/built-ins/Function/15.3.5.4_2-75gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-75gs.js
@@ -11,11 +11,17 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-function foo() { "use strict"; f();}
-foo();
+function f() {
+ return gNonStrict();
+};
+
+function foo() {
+ "use strict";
+ f();
+}
+foo();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-76gs.js b/test/built-ins/Function/15.3.5.4_2-76gs.js
index 9da118714..51bb190b2 100644
--- a/test/built-ins/Function/15.3.5.4_2-76gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-76gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; return eval("f();"); })();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ return eval("f();");
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-77gs.js b/test/built-ins/Function/15.3.5.4_2-77gs.js
index 572e38205..fa9345310 100644
--- a/test/built-ins/Function/15.3.5.4_2-77gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-77gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() {return gNonStrict();};
-(function () {"use strict"; Function("return f();")(); })();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ Function("return f();")();
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-78gs.js b/test/built-ins/Function/15.3.5.4_2-78gs.js
index 80aa51604..7ee58dd31 100644
--- a/test/built-ins/Function/15.3.5.4_2-78gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-78gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; return new Function("return f();")(); })();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ return new Function("return f();")();
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-79gs.js b/test/built-ins/Function/15.3.5.4_2-79gs.js
index e0814d0d2..6754f8fd0 100644
--- a/test/built-ins/Function/15.3.5.4_2-79gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-79gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; f.apply();})();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.apply();
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-7gs.js b/test/built-ins/Function/15.3.5.4_2-7gs.js
index f66abe159..9630356d3 100644
--- a/test/built-ins/Function/15.3.5.4_2-7gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-7gs.js
@@ -12,9 +12,9 @@ flags: [onlyStrict]
var f = Function("return gNonStrict();");
assert.throws(TypeError, function() {
- f();
+ f();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-80gs.js b/test/built-ins/Function/15.3.5.4_2-80gs.js
index aa03f3ec2..17efe2a02 100644
--- a/test/built-ins/Function/15.3.5.4_2-80gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-80gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; f.apply(null); })();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.apply(null);
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-81gs.js b/test/built-ins/Function/15.3.5.4_2-81gs.js
index e3f028da4..d4a12ba2f 100644
--- a/test/built-ins/Function/15.3.5.4_2-81gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-81gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; f.apply(undefined); })();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.apply(undefined);
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-82gs.js b/test/built-ins/Function/15.3.5.4_2-82gs.js
index 7a78c1726..101a01f50 100644
--- a/test/built-ins/Function/15.3.5.4_2-82gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-82gs.js
@@ -11,11 +11,16 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
+function f() {
+ return gNonStrict();
+};
var o = {};
-(function () {"use strict"; f.apply(o); })();
+(function() {
+ "use strict";
+ f.apply(o);
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-83gs.js b/test/built-ins/Function/15.3.5.4_2-83gs.js
index 940e7d7e4..a7ba40be0 100644
--- a/test/built-ins/Function/15.3.5.4_2-83gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-83gs.js
@@ -12,10 +12,16 @@ features: [caller]
---*/
var global = this;
-function f() { return gNonStrict();};
-(function () {"use strict"; f.apply(global); })();
+
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.apply(global);
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-84gs.js b/test/built-ins/Function/15.3.5.4_2-84gs.js
index ecc1e152d..0246f8b6a 100644
--- a/test/built-ins/Function/15.3.5.4_2-84gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-84gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; f.call();})();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.call();
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-85gs.js b/test/built-ins/Function/15.3.5.4_2-85gs.js
index ff899ce7c..8dcb404c6 100644
--- a/test/built-ins/Function/15.3.5.4_2-85gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-85gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; f.call(null);})();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.call(null);
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-86gs.js b/test/built-ins/Function/15.3.5.4_2-86gs.js
index c617f4eb7..f8375dd90 100644
--- a/test/built-ins/Function/15.3.5.4_2-86gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-86gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; f.call(undefined); })();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.call(undefined);
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-87gs.js b/test/built-ins/Function/15.3.5.4_2-87gs.js
index c2ba65142..37e027c76 100644
--- a/test/built-ins/Function/15.3.5.4_2-87gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-87gs.js
@@ -11,11 +11,16 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
+function f() {
+ return gNonStrict();
+};
var o = {};
-(function () {"use strict"; f.call(o); })();
+(function() {
+ "use strict";
+ f.call(o);
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-88gs.js b/test/built-ins/Function/15.3.5.4_2-88gs.js
index 7d1b0825c..58ee449f0 100644
--- a/test/built-ins/Function/15.3.5.4_2-88gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-88gs.js
@@ -12,10 +12,16 @@ features: [caller]
---*/
var global = this;
-function f() { return gNonStrict();};
-(function () {"use strict"; f.call(global); })();
+
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.call(global);
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-89gs.js b/test/built-ins/Function/15.3.5.4_2-89gs.js
index ec574b3a7..ed310abed 100644
--- a/test/built-ins/Function/15.3.5.4_2-89gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-89gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; f.bind()();})();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.bind()();
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-8gs.js b/test/built-ins/Function/15.3.5.4_2-8gs.js
index dd20678dd..437514a5a 100644
--- a/test/built-ins/Function/15.3.5.4_2-8gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-8gs.js
@@ -13,9 +13,9 @@ flags: [noStrict]
var f = Function("\"use strict\";\ngNonStrict();");
assert.throws(TypeError, function() {
- f();
+ f();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-90gs.js b/test/built-ins/Function/15.3.5.4_2-90gs.js
index bbab075d1..8ad718946 100644
--- a/test/built-ins/Function/15.3.5.4_2-90gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-90gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; f.bind(null)(); })();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.bind(null)();
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-91gs.js b/test/built-ins/Function/15.3.5.4_2-91gs.js
index 1049047f0..ccab0095c 100644
--- a/test/built-ins/Function/15.3.5.4_2-91gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-91gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; f.bind(undefined)(); })();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.bind(undefined)();
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-92gs.js b/test/built-ins/Function/15.3.5.4_2-92gs.js
index 8ff2abc39..9a2f49972 100644
--- a/test/built-ins/Function/15.3.5.4_2-92gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-92gs.js
@@ -11,11 +11,16 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
+function f() {
+ return gNonStrict();
+};
var o = {};
-(function () {"use strict"; f.bind(o)(); })();
+(function() {
+ "use strict";
+ f.bind(o)();
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-93gs.js b/test/built-ins/Function/15.3.5.4_2-93gs.js
index bad743269..8fe3b1120 100644
--- a/test/built-ins/Function/15.3.5.4_2-93gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-93gs.js
@@ -12,10 +12,16 @@ features: [caller]
---*/
var global = this;
-function f() { return gNonStrict();};
-(function () {"use strict"; f.bind(global)(); })();
+
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.bind(global)();
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-94gs.js b/test/built-ins/Function/15.3.5.4_2-94gs.js
index fefc31e18..81bcd689a 100644
--- a/test/built-ins/Function/15.3.5.4_2-94gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-94gs.js
@@ -10,15 +10,15 @@ description: >
flags: [noStrict]
---*/
-var gNonStrict = function () {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+var gNonStrict = function() {
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
function f() {
- "use strict";
- gNonStrict();
+ "use strict";
+ gNonStrict();
}
assert.throws(TypeError, function() {
- f();
+ f();
});
diff --git a/test/built-ins/Function/15.3.5.4_2-95gs.js b/test/built-ins/Function/15.3.5.4_2-95gs.js
index 836017045..34f7c5b64 100644
--- a/test/built-ins/Function/15.3.5.4_2-95gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-95gs.js
@@ -13,10 +13,10 @@ flags: [noStrict]
var gNonStrict = Function("return gNonStrict.caller || gNonStrict.caller.throwTypeError;");
function f() {
- "use strict";
- gNonStrict();
+ "use strict";
+ gNonStrict();
}
assert.throws(TypeError, function() {
- f();
+ f();
});
diff --git a/test/built-ins/Function/15.3.5.4_2-96gs.js b/test/built-ins/Function/15.3.5.4_2-96gs.js
index bb601c08f..03dc813f5 100644
--- a/test/built-ins/Function/15.3.5.4_2-96gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-96gs.js
@@ -10,19 +10,19 @@ description: >
flags: [noStrict]
---*/
-var o = {
- get gNonStrict() {
- var tmp = Object.getOwnPropertyDescriptor(o, "gNonStrict").get;
- return tmp.caller || tmp.caller.throwTypeError;
- }
+var o = {
+ get gNonStrict() {
+ var tmp = Object.getOwnPropertyDescriptor(o, "gNonStrict").get;
+ return tmp.caller || tmp.caller.throwTypeError;
+ }
};
function f() {
- "use strict";
- return o.gNonStrict;
+ "use strict";
+ return o.gNonStrict;
}
assert.throws(TypeError, function() {
- f();
+ f();
});
diff --git a/test/built-ins/Function/15.3.5.4_2-97gs.js b/test/built-ins/Function/15.3.5.4_2-97gs.js
index 7c4d7474b..61c923331 100644
--- a/test/built-ins/Function/15.3.5.4_2-97gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-97gs.js
@@ -13,14 +13,14 @@ flags: [noStrict]
var gNonStrict = gNonStrictBindee.bind(null);
function f() {
- "use strict";
- gNonStrict();
+ "use strict";
+ gNonStrict();
}
assert.throws(TypeError, function() {
- f();
+ f();
});
function gNonStrictBindee() {
- return gNonStrictBindee.caller || gNonStrictBindee.caller.throwTypeError;
+ return gNonStrictBindee.caller || gNonStrictBindee.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-9gs.js b/test/built-ins/Function/15.3.5.4_2-9gs.js
index 08fbd5cb3..07c0decbc 100644
--- a/test/built-ins/Function/15.3.5.4_2-9gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-9gs.js
@@ -13,9 +13,9 @@ flags: [onlyStrict]
var f = new Function("return gNonStrict();");
assert.throws(TypeError, function() {
- f();
+ f();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/S10.1.1_A1_T3.js b/test/built-ins/Function/S10.1.1_A1_T3.js
index 503a17fd3..3a9d96b63 100644
--- a/test/built-ins/Function/S10.1.1_A1_T3.js
+++ b/test/built-ins/Function/S10.1.1_A1_T3.js
@@ -12,6 +12,8 @@ description: >
---*/
//CHECK#1
-var x=new function f1(){return 1;};
-if(typeof(x.constructor)!=="function")
+var x = new function f1() {
+ return 1;
+};
+if (typeof(x.constructor) !== "function")
$ERROR('#1: typeof(x.constructor)!=="function"');
diff --git a/test/built-ins/Function/S15.3.1_A1_T1.js b/test/built-ins/Function/S15.3.1_A1_T1.js
index 43129631d..8175c337d 100644
--- a/test/built-ins/Function/S15.3.1_A1_T1.js
+++ b/test/built-ins/Function/S15.3.1_A1_T1.js
@@ -12,7 +12,7 @@ description: Create simple functions and check returned values
var f = Function("return arguments[0];");
//CHECK#1
-if (!(f instanceof Function)){
+if (!(f instanceof Function)) {
$ERROR('#1: f instanceof Function');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T1.js b/test/built-ins/Function/S15.3.2.1_A1_T1.js
index 12c037b04..52e20e1fd 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T1.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T1.js
@@ -14,7 +14,11 @@ es5id: 15.3.2.1_A1_T1
description: "The body of the function is \"{toString:function(){throw 7;}}\""
---*/
-var body = {toString:function(){throw 7;}}
+var body = {
+ toString: function() {
+ throw 7;
+ }
+}
//CHECK#1
try {
@@ -22,6 +26,6 @@ try {
$ERROR('#1: When the Function constructor is called with one argument then body be that argument the following step are taken: call ToString(body)');
} catch (e) {
if (e !== 7) {
- $ERROR('#1.1: When the Function constructor is called with one argument then body be that argument the following step are taken: call ToString(body)');
+ $ERROR('#1.1: When the Function constructor is called with one argument then body be that argument the following step are taken: call ToString(body)');
}
}
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T10.js b/test/built-ins/Function/S15.3.2.1_A1_T10.js
index f1ed2fe5c..764e5b2a0 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T10.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T10.js
@@ -18,7 +18,7 @@ description: Value of the function constructor argument is "null"
try {
var f = new Function(null);
} catch (e) {
- $ERROR('#1: test fails with error '+e);
+ $ERROR('#1: test fails with error ' + e);
}
//CHECK#2
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T11.js b/test/built-ins/Function/S15.3.2.1_A1_T11.js
index 18baa8e9a..74248f283 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T11.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T11.js
@@ -18,7 +18,7 @@ description: Value of the function constructor argument is "undefined"
try {
var f = new Function(undefined);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T12.js b/test/built-ins/Function/S15.3.2.1_A1_T12.js
index bc4646e08..81d816f38 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T12.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T12.js
@@ -18,7 +18,7 @@ description: Value of the function constructor argument is "void 0"
try {
var f = new Function(void 0);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -27,6 +27,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==undefined) {
+if (f() !== undefined) {
$ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T13.js b/test/built-ins/Function/S15.3.2.1_A1_T13.js
index fbc01fc89..09942b2c5 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T13.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T13.js
@@ -17,9 +17,9 @@ description: Value of the function constructor argument is "{}"
//CHECK#1
try {
var f = new Function({});
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
} catch (e) {
if (!(e instanceof SyntaxError)) {
- $ERROR('#1.1: If body is not parsable as FunctionBody then throw a SyntaxError exception');
+ $ERROR('#1.1: If body is not parsable as FunctionBody then throw a SyntaxError exception');
}
}
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T2.js b/test/built-ins/Function/S15.3.2.1_A1_T2.js
index 0e971af37..a1424960b 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T2.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T2.js
@@ -16,13 +16,17 @@ description: >
1;";}}"
---*/
-var body={toString:function(){return "return 1;";}};
+var body = {
+ toString: function() {
+ return "return 1;";
+ }
+};
//CHECK#1
try {
- var f = new Function(body);
+ var f = new Function(body);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -31,6 +35,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==1) {
+if (f() !== 1) {
$ERROR('#3: hen the Function constructor is called with one argument then body be that argument the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T3.js b/test/built-ins/Function/S15.3.2.1_A1_T3.js
index aec811fe1..25e9f5493 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T3.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T3.js
@@ -18,7 +18,7 @@ description: Value of the function constructor argument is 1
try {
var f = new Function(1);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -27,6 +27,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==undefined) {
+if (f() !== undefined) {
$ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T4.js b/test/built-ins/Function/S15.3.2.1_A1_T4.js
index 2d862279d..2b9be51a5 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T4.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T4.js
@@ -20,7 +20,7 @@ description: >
try {
var f = new Function(x);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -29,7 +29,7 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==undefined) {
+if (f() !== undefined) {
$ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T5.js b/test/built-ins/Function/S15.3.2.1_A1_T5.js
index 9cde6597f..c7c3df4c0 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T5.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T5.js
@@ -22,7 +22,7 @@ var body = Object("return \'A\'");
try {
var f = new Function(body);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -31,6 +31,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!=="\u0041") {
+if (f() !== "\u0041") {
$ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T6.js b/test/built-ins/Function/S15.3.2.1_A1_T6.js
index 9ed5398b4..548718444 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T6.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T6.js
@@ -20,7 +20,7 @@ description: >
try {
var f = new Function("return true;");
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T7.js b/test/built-ins/Function/S15.3.2.1_A1_T7.js
index 23bde2777..bb68c4257 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T7.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T7.js
@@ -20,7 +20,7 @@ var body = new Object(1);
try {
var f = new Function(body);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -29,6 +29,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==undefined) {
+if (f() !== undefined) {
$ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T8.js b/test/built-ins/Function/S15.3.2.1_A1_T8.js
index 0b1c5d4db..e17847cbd 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T8.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T8.js
@@ -22,6 +22,6 @@ try {
$ERROR('#1: If body is not parsable as FunctionBody then throw a SyntaxError exception');
} catch (e) {
if (!(e instanceof SyntaxError)) {
- $ERROR('#1.1: If body is not parsable as FunctionBody then throw a SyntaxError exception');
+ $ERROR('#1.1: If body is not parsable as FunctionBody then throw a SyntaxError exception');
}
}
diff --git a/test/built-ins/Function/S15.3.2.1_A2_T1.js b/test/built-ins/Function/S15.3.2.1_A2_T1.js
index 8316ce12a..e007a4af0 100644
--- a/test/built-ins/Function/S15.3.2.1_A2_T1.js
+++ b/test/built-ins/Function/S15.3.2.1_A2_T1.js
@@ -19,11 +19,11 @@ try {
}
//CHECK#2
-if (!(f instanceof Function)){
+if (!(f instanceof Function)) {
$ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
//CHECK#3
-if (f(1,2,3) !== 6) {
+if (f(1, 2, 3) !== 6) {
$ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A2_T2.js b/test/built-ins/Function/S15.3.2.1_A2_T2.js
index e02bc648f..241712a5b 100644
--- a/test/built-ins/Function/S15.3.2.1_A2_T2.js
+++ b/test/built-ins/Function/S15.3.2.1_A2_T2.js
@@ -19,11 +19,11 @@ try {
}
//CHECK#2
-if (!(f instanceof Function)){
+if (!(f instanceof Function)) {
$ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
//CHECK#3
-if (f("AB","BA",1) !== "ABBA1") {
+if (f("AB", "BA", 1) !== "ABBA1") {
$ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A2_T3.js b/test/built-ins/Function/S15.3.2.1_A2_T3.js
index afa0b05de..dee237ec5 100644
--- a/test/built-ins/Function/S15.3.2.1_A2_T3.js
+++ b/test/built-ins/Function/S15.3.2.1_A2_T3.js
@@ -19,11 +19,11 @@ try {
}
//CHECK#2
-if (!(f instanceof Function)){
+if (!(f instanceof Function)) {
$ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
//CHECK#3
-if (f(1,1,"ABBA") !== "2ABBA") {
+if (f(1, 1, "ABBA") !== "2ABBA") {
$ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A2_T4.js b/test/built-ins/Function/S15.3.2.1_A2_T4.js
index 973be30e4..d2e54ebb2 100644
--- a/test/built-ins/Function/S15.3.2.1_A2_T4.js
+++ b/test/built-ins/Function/S15.3.2.1_A2_T4.js
@@ -11,9 +11,13 @@ description: >
various results
---*/
-var i=0;
+var i = 0;
-var p={toString:function(){return "arg"+(++i);}};
+var p = {
+ toString: function() {
+ return "arg" + (++i);
+ }
+};
//CHECK#1
try {
@@ -23,11 +27,11 @@ try {
}
//CHECK#2
-if (!(f instanceof Function)){
+if (!(f instanceof Function)) {
$ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
//CHECK#3
-if (f(4,"2","QUESTION") !== "42QUESTION") {
+if (f(4, "2", "QUESTION") !== "42QUESTION") {
$ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A2_T5.js b/test/built-ins/Function/S15.3.2.1_A2_T5.js
index 70ca03e73..bc9b1f0b4 100644
--- a/test/built-ins/Function/S15.3.2.1_A2_T5.js
+++ b/test/built-ins/Function/S15.3.2.1_A2_T5.js
@@ -11,23 +11,27 @@ description: >
various results and a concotenation of strings
---*/
-var i=0;
+var i = 0;
-var p={toString:function(){return "arg"+(++i)}};
+var p = {
+ toString: function() {
+ return "arg" + (++i)
+ }
+};
//CHECK#1
try {
- var f = Function(p+","+p,p, "return arg1+arg2+arg3;");
+ var f = Function(p + "," + p, p, "return arg1+arg2+arg3;");
} catch (e) {
$ERROR('#1: test failed');
}
//CHECK#2
-if (!(f instanceof Function)){
+if (!(f instanceof Function)) {
$ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
//CHECK#3
-if (f("",1,2) !== "12") {
+if (f("", 1, 2) !== "12") {
$ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A2_T6.js b/test/built-ins/Function/S15.3.2.1_A2_T6.js
index 15fe4beb5..0d658808d 100644
--- a/test/built-ins/Function/S15.3.2.1_A2_T6.js
+++ b/test/built-ins/Function/S15.3.2.1_A2_T6.js
@@ -11,23 +11,27 @@ description: >
various results and a concotenation of strings
---*/
-var i=0;
+var i = 0;
-var p={toString:function(){return "arg"+(++i)}};
+var p = {
+ toString: function() {
+ return "arg" + (++i)
+ }
+};
//CHECK#1
try {
- var f = Function(p+","+p+","+p, "return arg1+arg2+arg3;");
+ var f = Function(p + "," + p + "," + p, "return arg1+arg2+arg3;");
} catch (e) {
$ERROR('#1: test failed');
}
//CHECK#2
-if (!(f instanceof Function)){
+if (!(f instanceof Function)) {
$ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
//CHECK#3
-if (f("",1,p) !== "1arg4") {
+if (f("", 1, p) !== "1arg4") {
$ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T1.js b/test/built-ins/Function/S15.3.2.1_A3_T1.js
index 3a1013ecd..b5c796b35 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T1.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T1.js
@@ -19,15 +19,23 @@ description: >
'body';}}"
---*/
-var p = {toString:function(){throw 1;}};
-var body = {toString:function(){throw "body";}};
+var p = {
+ toString: function() {
+ throw 1;
+ }
+};
+var body = {
+ toString: function() {
+ throw "body";
+ }
+};
//CHECK#1
try {
- var f = new Function(p,body);
+ var f = new Function(p, body);
$ERROR('#1: test failed');
} catch (e) {
if (e !== 1) {
- $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))');
+ $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))');
}
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T10.js b/test/built-ins/Function/S15.3.2.1_A3_T10.js
index 1945adbbe..684c1e7da 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T10.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T10.js
@@ -19,14 +19,18 @@ description: >
---*/
var body = "return this;";
-var p={toString:function(){return "z;x"}};
+var p = {
+ toString: function() {
+ return "z;x"
+ }
+};
//CHECK#1
try {
- var f = new Function(p,body);
+ var f = new Function(p, body);
$ERROR('#1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception');
} catch (e) {
if (!(e instanceof SyntaxError)) {
- $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception');
+ $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception');
}
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T11.js b/test/built-ins/Function/S15.3.2.1_A3_T11.js
index f547d6973..1091a94b3 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T11.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T11.js
@@ -24,7 +24,7 @@ var p = "a,b,c";
try {
var f = new Function(p, void 0);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -33,6 +33,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==undefined) {
+if (f() !== undefined) {
$ERROR('#3: When the Function constructor is called with arguments p, body the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T12.js b/test/built-ins/Function/S15.3.2.1_A3_T12.js
index a3698bbfd..a87f0ba3e 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T12.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T12.js
@@ -24,7 +24,7 @@ var p = "a,b,c";
try {
var f = new Function(p, undefined);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -33,6 +33,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==undefined) {
+if (f() !== undefined) {
$ERROR('#3: When the Function constructor is called with arguments p, body the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T13.js b/test/built-ins/Function/S15.3.2.1_A3_T13.js
index f74d02cf6..e2d5c251a 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T13.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T13.js
@@ -22,7 +22,7 @@ var p = "a,b,c";
try {
var f = new Function(p, null);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -31,6 +31,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==undefined) {
+if (f() !== undefined) {
$ERROR('#3: When the Function constructor is called with arguments p, body the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T14.js b/test/built-ins/Function/S15.3.2.1_A3_T14.js
index 0d7a87192..38af3ccdf 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T14.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T14.js
@@ -24,7 +24,7 @@ var p = "a,b,c";
try {
var f = new Function(p, body);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -33,7 +33,7 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==undefined) {
+if (f() !== undefined) {
$ERROR('#3: When the Function constructor is called with arguments p, body the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T15.js b/test/built-ins/Function/S15.3.2.1_A3_T15.js
index e3f6eb2bd..43796ef88 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T15.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T15.js
@@ -22,7 +22,7 @@ description: >
try {
var f = new Function("", "");
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -31,6 +31,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==undefined) {
+if (f() !== undefined) {
$ERROR('#3: When the Function constructor is called with arguments p, body the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T2.js b/test/built-ins/Function/S15.3.2.1_A3_T2.js
index 1649e9fad..069ddeabf 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T2.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T2.js
@@ -18,14 +18,18 @@ description: >
"{toString:function(){return 'a';}}" and "return a;"
---*/
-var p = {toString:function(){return "a";}};
+var p = {
+ toString: function() {
+ return "a";
+ }
+};
var body = "return a;";
//CHECK#1
try {
- var f = new Function(p,body);
+ var f = new Function(p, body);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -34,6 +38,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f(42)!==42) {
+if (f(42) !== 42) {
$ERROR('#3: When the Function constructor is called with arguments p, body creates a new Function object as specified in 13.2');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T3.js b/test/built-ins/Function/S15.3.2.1_A3_T3.js
index 4ba1f0f48..29454c2f9 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T3.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T3.js
@@ -19,16 +19,25 @@ description: >
"{toString:function(){throw "body";}}"
---*/
-var p = {toString:function(){p=1;return "a";}};
-var body = {toString:function(){throw "body";}};
+var p = {
+ toString: function() {
+ p = 1;
+ return "a";
+ }
+};
+var body = {
+ toString: function() {
+ throw "body";
+ }
+};
//CHECK#1
try {
- var f = new Function(p,body);
+ var f = new Function(p, body);
$ERROR('#1: test failed');
} catch (e) {
if (e !== "body") {
- $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))');
+ $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))');
}
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T4.js b/test/built-ins/Function/S15.3.2.1_A3_T4.js
index e817ba1b3..7a0ec0d00 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T4.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T4.js
@@ -22,9 +22,9 @@ var body = "return 1.1;";
//CHECK#1
try {
- var f = new Function(p,body);
+ var f = new Function(p, body);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -33,7 +33,7 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==1.1) {
+if (f() !== 1.1) {
$ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T5.js b/test/built-ins/Function/S15.3.2.1_A3_T5.js
index 67887edd3..47a69636b 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T5.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T5.js
@@ -22,9 +22,9 @@ var body = "return \"A\";";
//CHECK#1
try {
- var f = new Function(void 0,body);
+ var f = new Function(void 0, body);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -33,6 +33,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!=='\u0041') {
+if (f() !== '\u0041') {
$ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T6.js b/test/built-ins/Function/S15.3.2.1_A3_T6.js
index 129c462f2..f39efaffc 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T6.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T6.js
@@ -22,10 +22,10 @@ var body = "return true;";
//CHECK#1
try {
- var f = new Function(null,body);
+ var f = new Function(null, body);
$ERROR('#1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception');
} catch (e) {
if (!(e instanceof SyntaxError)) {
- $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception');
+ $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception');
}
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T7.js b/test/built-ins/Function/S15.3.2.1_A3_T7.js
index fa680f6b5..de41763f2 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T7.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T7.js
@@ -20,13 +20,13 @@ description: >
var body = "return a;";
-var p=Object("a");
+var p = Object("a");
//CHECK#1
try {
var f = new Function(p, body);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -35,6 +35,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f(1)!==1) {
+if (f(1) !== 1) {
$ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T8.js b/test/built-ins/Function/S15.3.2.1_A3_T8.js
index 2e3c36110..33d353c92 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T8.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T8.js
@@ -22,9 +22,9 @@ var body = "return this;";
//CHECK#1
try {
- var f = new Function(undefined,body);
+ var f = new Function(undefined, body);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -33,6 +33,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==this) {
+if (f() !== this) {
$ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T9.js b/test/built-ins/Function/S15.3.2.1_A3_T9.js
index 4d5d1a042..d4134cb37 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T9.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T9.js
@@ -19,14 +19,14 @@ description: >
---*/
var body = "return this;";
-var p="1,1";
+var p = "1,1";
//CHECK#1
try {
- var f = new Function(p,body);
+ var f = new Function(p, body);
$ERROR('#1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception');
} catch (e) {
if (!(e instanceof SyntaxError)) {
- $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception');
+ $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception');
}
}
diff --git a/test/built-ins/Function/S15.3.3_A1.js b/test/built-ins/Function/S15.3.3_A1.js
index 05200e212..a498f0131 100644
--- a/test/built-ins/Function/S15.3.3_A1.js
+++ b/test/built-ins/Function/S15.3.3_A1.js
@@ -7,6 +7,6 @@ es5id: 15.3.3_A1
description: Checking existence of the property "prototype"
---*/
-if(!Function.hasOwnProperty("prototype")){
+if (!Function.hasOwnProperty("prototype")) {
$ERROR('#1: The Function constructor has the property "prototype"');
}
diff --git a/test/built-ins/Function/S15.3.3_A3.js b/test/built-ins/Function/S15.3.3_A3.js
index a22a560d0..b4fb57879 100644
--- a/test/built-ins/Function/S15.3.3_A3.js
+++ b/test/built-ins/Function/S15.3.3_A3.js
@@ -8,7 +8,7 @@ description: Checking Function.length property
---*/
//CHECK#1
-if (!Function.hasOwnProperty("length")){
+if (!Function.hasOwnProperty("length")) {
$ERROR('#1: Function constructor has length property');
}
diff --git a/test/built-ins/Function/S15.3.5_A2_T2.js b/test/built-ins/Function/S15.3.5_A2_T2.js
index 16f1e7ae3..00b25df86 100644
--- a/test/built-ins/Function/S15.3.5_A2_T2.js
+++ b/test/built-ins/Function/S15.3.5_A2_T2.js
@@ -10,7 +10,7 @@ description: >
---*/
//CHECK#1
-if ((new Function("arg1,arg2","var x =arg1; this.y=arg2;return arg1+arg2;"))("1",2) !== "12") {
+if ((new Function("arg1,arg2", "var x =arg1; this.y=arg2;return arg1+arg2;"))("1", 2) !== "12") {
$ERROR('#1: Every function instance has a [[Call]] property');
}
diff --git a/test/built-ins/Function/S15.3.5_A3_T2.js b/test/built-ins/Function/S15.3.5_A3_T2.js
index 861e754d4..5a233d07f 100644
--- a/test/built-ins/Function/S15.3.5_A3_T2.js
+++ b/test/built-ins/Function/S15.3.5_A3_T2.js
@@ -9,8 +9,8 @@ description: >
this.y=arg1+arg2;return \"OK\";")
---*/
-var FACTORY = new Function("arg1,arg2","var x =1; this.y=arg1+arg2;return \"OK\";");
-var obj = new FACTORY("1",2);
+var FACTORY = new Function("arg1,arg2", "var x =1; this.y=arg1+arg2;return \"OK\";");
+var obj = new FACTORY("1", 2);
//CHECK#1
if (typeof obj !== "object") {
diff --git a/test/built-ins/Function/S15.3_A2_T1.js b/test/built-ins/Function/S15.3_A2_T1.js
index f7cc03dd0..92448aaf0 100644
--- a/test/built-ins/Function/S15.3_A2_T1.js
+++ b/test/built-ins/Function/S15.3_A2_T1.js
@@ -11,10 +11,10 @@ description: Checking if executing "Function.call(this, "var x / = 1;")" fails
---*/
//CHECK#
-try{
+try {
Function.call(this, "var x / = 1;");
-} catch(e){
+} catch (e) {
if (!(e instanceof SyntaxError)) {
- $ERROR('#1: function body must be valid');
+ $ERROR('#1: function body must be valid');
}
}
diff --git a/test/built-ins/Function/S15.3_A2_T2.js b/test/built-ins/Function/S15.3_A2_T2.js
index 6fbc17a5c..1c3de3f64 100644
--- a/test/built-ins/Function/S15.3_A2_T2.js
+++ b/test/built-ins/Function/S15.3_A2_T2.js
@@ -11,10 +11,10 @@ description: Checking if executing "Function.call(this, "var #x = 1;")" fails
---*/
//CHECK#
-try{
+try {
Function.call(this, "var #x = 1;");
-} catch(e){
+} catch (e) {
if (!(e instanceof SyntaxError)) {
- $ERROR('#1: function body must be valid');
+ $ERROR('#1: function body must be valid');
}
}
diff --git a/test/built-ins/Function/S15.3_A3_T1.js b/test/built-ins/Function/S15.3_A3_T1.js
index 97d3d2ec9..8574cfb87 100644
--- a/test/built-ins/Function/S15.3_A3_T1.js
+++ b/test/built-ins/Function/S15.3_A3_T1.js
@@ -11,7 +11,11 @@ description: First argument is object
//CHECK#1 - does not throw
var f = Function.call(mars, "return name;");
-var mars={name:"mars", color:"red", number:4};
+var mars = {
+ name: "mars",
+ color: "red",
+ number: 4
+};
var f = Function.call(mars, "this.godname=\"ares\"; return this.color;");
@@ -23,6 +27,6 @@ if (about_mars !== undefined) {
}
//CHECK#3
-if (this.godname !== "ares" && mars.godname===undefined) {
+if (this.godname !== "ares" && mars.godname === undefined) {
$ERROR('#3: When applied to the Function object itself, thisArg should be ignored');
}
diff --git a/test/built-ins/Function/S15.3_A3_T2.js b/test/built-ins/Function/S15.3_A3_T2.js
index 72f827fea..aa0fe3961 100644
--- a/test/built-ins/Function/S15.3_A3_T2.js
+++ b/test/built-ins/Function/S15.3_A3_T2.js
@@ -9,8 +9,8 @@ es5id: 15.3_A3_T2
description: First argument is string and null
---*/
-this.color="red";
-var planet="mars";
+this.color = "red";
+var planet = "mars";
var f = Function.call("blablastring", "return this.color;");
diff --git a/test/built-ins/Function/S15.3_A3_T3.js b/test/built-ins/Function/S15.3_A3_T3.js
index 7c2b0d6d7..7ac27927d 100644
--- a/test/built-ins/Function/S15.3_A3_T3.js
+++ b/test/built-ins/Function/S15.3_A3_T3.js
@@ -9,15 +9,15 @@ es5id: 15.3_A3_T3
description: First argument is this, and this don`t have needed variable
---*/
-var f=Function.call(this, "return planet;");
-var g=Function.call(this, "return color;");
+var f = Function.call(this, "return planet;");
+var g = Function.call(this, "return color;");
//CHECK#1
-if (f()!==undefined) {
+if (f() !== undefined) {
$ERROR('#1: ');
}
-var planet="mars";
+var planet = "mars";
//CHECK#2
if (f() !== "mars") {
@@ -25,15 +25,15 @@ if (f() !== "mars") {
}
//CHECK#3
-try{
+try {
g();
$ERROR('#3: ');
-} catch(e){
+} catch (e) {
if (!(e instanceof ReferenceError))
- $ERROR('#3.1: ');
-}
+ $ERROR('#3.1: ');
+}
-this.color="red";
+this.color = "red";
//CHECK#4
if (g() !== "red") {
diff --git a/test/built-ins/Function/S15.3_A3_T4.js b/test/built-ins/Function/S15.3_A3_T4.js
index 69c045d2d..769f6bbb4 100644
--- a/test/built-ins/Function/S15.3_A3_T4.js
+++ b/test/built-ins/Function/S15.3_A3_T4.js
@@ -9,14 +9,14 @@ es5id: 15.3_A3_T4
description: First argument is this, and this have needed variable
---*/
-var f=Function.call(this, "return planet;");
+var f = Function.call(this, "return planet;");
//CHECK#1
if (f() !== undefined) {
$ERROR('#1: ');
-}
+}
-var planet="mars";
+var planet = "mars";
//CHECK#2
if (f() !== "mars") {
diff --git a/test/built-ins/Function/S15.3_A3_T5.js b/test/built-ins/Function/S15.3_A3_T5.js
index 3129b520c..753410f5c 100644
--- a/test/built-ins/Function/S15.3_A3_T5.js
+++ b/test/built-ins/Function/S15.3_A3_T5.js
@@ -11,15 +11,15 @@ description: >
Function return this.var_name
---*/
-var f=Function.call(this, "return this.planet;");
-var g=Function.call(this, "return this.color;");
+var f = Function.call(this, "return this.planet;");
+var g = Function.call(this, "return this.color;");
//CHECK#1
if (f() !== undefined) {
$ERROR('#2: ');
}
-var planet="mars";
+var planet = "mars";
//CHECK#2
if (f() !== "mars") {
@@ -29,9 +29,9 @@ if (f() !== "mars") {
//CHECK#3
if (g() !== undefined) {
$ERROR('#3: ');
-}
+}
-this.color="red";
+this.color = "red";
//CHECK#4
if (g() !== "red") {
diff --git a/test/built-ins/Function/S15.3_A3_T6.js b/test/built-ins/Function/S15.3_A3_T6.js
index 44af50aaa..fa88d7e5a 100644
--- a/test/built-ins/Function/S15.3_A3_T6.js
+++ b/test/built-ins/Function/S15.3_A3_T6.js
@@ -11,14 +11,14 @@ description: >
return this.var_name
---*/
-var f=Function.call(this, "return this.planet;");
+var f = Function.call(this, "return this.planet;");
//CHECK#1
if (f() !== undefined) {
$ERROR('#1: ');
-}
+}
-var planet="mars";
+var planet = "mars";
//CHECK#2
if (f() !== "mars") {
diff --git a/test/built-ins/Function/length/15.3.3.2-1.js b/test/built-ins/Function/length/15.3.3.2-1.js
index 84c73661f..5371dbf61 100644
--- a/test/built-ins/Function/length/15.3.3.2-1.js
+++ b/test/built-ins/Function/length/15.3.3.2-1.js
@@ -6,7 +6,7 @@ es5id: 15.3.3.2-1
description: Function.length - data property with value 1
---*/
- var desc = Object.getOwnPropertyDescriptor(Function,"length");
+var desc = Object.getOwnPropertyDescriptor(Function, "length");
assert.sameValue(desc.value, 1, 'desc.value');
assert.sameValue(desc.writable, false, 'desc.writable');
diff --git a/test/built-ins/Function/length/S15.3.5.1_A1_T2.js b/test/built-ins/Function/length/S15.3.5.1_A1_T2.js
index 2a8ee4e26..0ee96c124 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A1_T2.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A1_T2.js
@@ -11,7 +11,7 @@ description: >
null)
---*/
-var f = Function("arg1,arg2,arg3","arg4,arg5", null);
+var f = Function("arg1,arg2,arg3", "arg4,arg5", null);
//CHECK#1
if (!(f.hasOwnProperty('length'))) {
diff --git a/test/built-ins/Function/length/S15.3.5.1_A1_T3.js b/test/built-ins/Function/length/S15.3.5.1_A1_T3.js
index 09f5776a6..ff5452aaa 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A1_T3.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A1_T3.js
@@ -11,7 +11,7 @@ description: >
Function("arg1,arg2,arg3","arg1,arg2","arg3", null)
---*/
-var f = new Function("arg1,arg2,arg3","arg1,arg2","arg3", null);
+var f = new Function("arg1,arg2,arg3", "arg1,arg2", "arg3", null);
//CHECK#1
if (!(f.hasOwnProperty('length'))) {
diff --git a/test/built-ins/Function/length/S15.3.5.1_A2_T1.js b/test/built-ins/Function/length/S15.3.5.1_A2_T1.js
index ccc4b1043..2e773dda3 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A2_T1.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A2_T1.js
@@ -17,7 +17,7 @@ if (!(f.hasOwnProperty('length'))) {
}
//CHECK#2
-if(!delete f.length){
+if (!delete f.length) {
$ERROR('#2: the function.length property does not have the attributes DontDelete.');
}
diff --git a/test/built-ins/Function/length/S15.3.5.1_A2_T2.js b/test/built-ins/Function/length/S15.3.5.1_A2_T2.js
index 7684cd918..dc6f91375 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A2_T2.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A2_T2.js
@@ -9,7 +9,7 @@ description: >
Function("arg1,arg2,arg3","arg4,arg5", null) succeeds
---*/
-var f = Function("arg1,arg2,arg3","arg4,arg5", null);
+var f = Function("arg1,arg2,arg3", "arg4,arg5", null);
//CHECK#1
if (!(f.hasOwnProperty('length'))) {
diff --git a/test/built-ins/Function/length/S15.3.5.1_A2_T3.js b/test/built-ins/Function/length/S15.3.5.1_A2_T3.js
index f65035071..882152b04 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A2_T3.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A2_T3.js
@@ -9,7 +9,7 @@ description: >
Function("arg1,arg2,arg3","arg1,arg2","arg3", null) succeeds
---*/
-var f = new Function("arg1,arg2,arg3","arg1,arg2","arg3", null);
+var f = new Function("arg1,arg2,arg3", "arg1,arg2", "arg3", null);
//CHECK#1
if (!(f.hasOwnProperty('length'))) {
diff --git a/test/built-ins/Function/length/S15.3.5.1_A3_T1.js b/test/built-ins/Function/length/S15.3.5.1_A3_T1.js
index c10714b3f..02d981a45 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A3_T1.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A3_T1.js
@@ -10,7 +10,7 @@ description: >
includes: [propertyHelper.js]
---*/
-var f = new Function("arg1,arg2,arg3","arg4,arg5", null);
+var f = new Function("arg1,arg2,arg3", "arg4,arg5", null);
//CHECK#1
if (!(f.hasOwnProperty('length'))) {
@@ -19,7 +19,7 @@ if (!(f.hasOwnProperty('length'))) {
var flength = f.length;
-verifyNotWritable(f, "length", null, function(){});
+verifyNotWritable(f, "length", null, function() {});
//CHECK#2
if (f.length !== flength) {
diff --git a/test/built-ins/Function/length/S15.3.5.1_A3_T2.js b/test/built-ins/Function/length/S15.3.5.1_A3_T2.js
index 2482faecd..e6cb737b3 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A3_T2.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A3_T2.js
@@ -10,7 +10,7 @@ description: >
includes: [propertyHelper.js]
---*/
-var f = Function("arg1,arg2,arg3", null);
+var f = Function("arg1,arg2,arg3", null);
//CHECK#1
if (!(f.hasOwnProperty('length'))) {
@@ -19,7 +19,7 @@ if (!(f.hasOwnProperty('length'))) {
var flength = f.length;
-verifyNotWritable(f, "length", null, function(){});
+verifyNotWritable(f, "length", null, function() {});
//CHECK#2
if (f.length !== flength) {
diff --git a/test/built-ins/Function/length/S15.3.5.1_A3_T3.js b/test/built-ins/Function/length/S15.3.5.1_A3_T3.js
index ed321e683..818d82d63 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A3_T3.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A3_T3.js
@@ -10,7 +10,7 @@ description: >
includes: [propertyHelper.js]
---*/
-var f = new Function("arg1,arg2,arg3","arg1,arg2","arg3", null);
+var f = new Function("arg1,arg2,arg3", "arg1,arg2", "arg3", null);
//CHECK#1
if (!(f.hasOwnProperty('length'))) {
@@ -19,7 +19,7 @@ if (!(f.hasOwnProperty('length'))) {
var flength = f.length;
-verifyNotWritable(f, "length", null, function(){});
+verifyNotWritable(f, "length", null, function() {});
//CHECK#2
if (f.length !== flength) {
diff --git a/test/built-ins/Function/length/S15.3.5.1_A4_T1.js b/test/built-ins/Function/length/S15.3.5.1_A4_T1.js
index 14f9cc410..894c65e92 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A4_T1.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A4_T1.js
@@ -16,10 +16,10 @@ if (!(f.hasOwnProperty('length'))) {
$ERROR('#1: the function has length property.');
}
-for(var key in f)
- if(key=="length")
- var lengthenumed=true;
-
+for (var key in f)
+ if (key == "length")
+ var lengthenumed = true;
+
//CHECK#2
if (lengthenumed) {
$ERROR('#2: the length property has the attributes { DontEnum }');
diff --git a/test/built-ins/Function/length/S15.3.5.1_A4_T2.js b/test/built-ins/Function/length/S15.3.5.1_A4_T2.js
index c67c5f6a5..8e1d150c6 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A4_T2.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A4_T2.js
@@ -9,17 +9,17 @@ description: >
Function("arg1,arg2,arg3","arg4,arg5", null) fails
---*/
-var f = Function("arg1,arg2,arg3","arg5,arg4", null);
+var f = Function("arg1,arg2,arg3", "arg5,arg4", null);
//CHECK#1
if (!(f.hasOwnProperty('length'))) {
$ERROR('#1: the function has length property.');
}
-for(var key in f)
- if(key=="length")
- var lengthenumed=true;
-
+for (var key in f)
+ if (key == "length")
+ var lengthenumed = true;
+
//CHECK#2
if (lengthenumed) {
$ERROR('#2: the length property has the attributes { DontEnum }');
diff --git a/test/built-ins/Function/length/S15.3.5.1_A4_T3.js b/test/built-ins/Function/length/S15.3.5.1_A4_T3.js
index cdf721374..44e16e8f8 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A4_T3.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A4_T3.js
@@ -9,17 +9,17 @@ description: >
Function("arg1,arg2,arg3","arg1,arg2","arg3", null) fails
---*/
-var f = new Function("arg1,arg2,arg3","arg1,arg2","arg3", null);
+var f = new Function("arg1,arg2,arg3", "arg1,arg2", "arg3", null);
//CHECK#1
if (!(f.hasOwnProperty('length'))) {
$ERROR('#1: the function has length property.');
}
-for(var key in f)
- if(key=="length")
- var lengthenumed=true;
-
+for (var key in f)
+ if (key == "length")
+ var lengthenumed = true;
+
//CHECK#2
if (lengthenumed) {
$ERROR('#2: the length property has the attributes { DontEnum }');
diff --git a/test/built-ins/Function/prototype/S15.3.3.1_A1.js b/test/built-ins/Function/prototype/S15.3.3.1_A1.js
index af9795ab9..f06c15489 100644
--- a/test/built-ins/Function/prototype/S15.3.3.1_A1.js
+++ b/test/built-ins/Function/prototype/S15.3.3.1_A1.js
@@ -10,7 +10,9 @@ includes: [propertyHelper.js]
var obj = Function.prototype;
-verifyNotWritable(Function, "prototype", null, function(){return "shifted";});
+verifyNotWritable(Function, "prototype", null, function() {
+ return "shifted";
+});
//CHECK#1
if (Function.prototype !== obj) {
@@ -19,9 +21,9 @@ if (Function.prototype !== obj) {
//CHECK#2
try {
- if(Function.prototype()!==undefined){
- $ERROR('#2: the Function.prototype property has the attributes ReadOnly');
+ if (Function.prototype() !== undefined) {
+ $ERROR('#2: the Function.prototype property has the attributes ReadOnly');
}
} catch (e) {
- $ERROR('#2.1: the Function.prototype property has the attributes ReadOnly: '+e);
+ $ERROR('#2.1: the Function.prototype property has the attributes ReadOnly: ' + e);
}
diff --git a/test/built-ins/Function/prototype/S15.3.3.1_A2.js b/test/built-ins/Function/prototype/S15.3.3.1_A2.js
index 280e6d3a5..8642fe1d6 100644
--- a/test/built-ins/Function/prototype/S15.3.3.1_A2.js
+++ b/test/built-ins/Function/prototype/S15.3.3.1_A2.js
@@ -13,10 +13,10 @@ if (Function.propertyIsEnumerable('prototype')) {
}
// CHECK#2
-var count=0;
+var count = 0;
-for (var p in Function){
- if (p==="prototype") count++;
+for (var p in Function) {
+ if (p === "prototype") count++;
}
if (count !== 0) {
diff --git a/test/built-ins/Function/prototype/S15.3.3.1_A4.js b/test/built-ins/Function/prototype/S15.3.3.1_A4.js
index 17f5d057b..9feac6cb2 100644
--- a/test/built-ins/Function/prototype/S15.3.3.1_A4.js
+++ b/test/built-ins/Function/prototype/S15.3.3.1_A4.js
@@ -15,8 +15,10 @@ description: >
function foo() {}
-Object.defineProperty(foo, 'prototype', { value: {} });
+Object.defineProperty(foo, 'prototype', {
+ value: {}
+});
if (foo.prototype !==
- Object.getOwnPropertyDescriptor(foo, 'prototype').value) {
+ Object.getOwnPropertyDescriptor(foo, 'prototype').value) {
$ERROR("A function.prototype's descriptor lies");
}
diff --git a/test/built-ins/Function/prototype/S15.3.4_A1.js b/test/built-ins/Function/prototype/S15.3.4_A1.js
index b1b163bb5..b54a90c55 100644
--- a/test/built-ins/Function/prototype/S15.3.4_A1.js
+++ b/test/built-ins/Function/prototype/S15.3.4_A1.js
@@ -11,5 +11,5 @@ description: Object.prototype.toString returns [object+[[Class]]+]
if (Object.prototype.toString.call(Function.prototype) !== "[object Function]") {
$ERROR('#2: The Function prototype object is itself a Function ' +
- 'object (its [[Class]] is "Function") (15.3.4)');
+ 'object (its [[Class]] is "Function") (15.3.4)');
}
diff --git a/test/built-ins/Function/prototype/S15.3.4_A2_T1.js b/test/built-ins/Function/prototype/S15.3.4_A2_T1.js
index ebfcef721..cd8afff2f 100644
--- a/test/built-ins/Function/prototype/S15.3.4_A2_T1.js
+++ b/test/built-ins/Function/prototype/S15.3.4_A2_T1.js
@@ -15,5 +15,5 @@ try {
$ERROR('#1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined');
}
} catch (e) {
- $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: '+e);
+ $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: ' + e);
}
diff --git a/test/built-ins/Function/prototype/S15.3.4_A2_T2.js b/test/built-ins/Function/prototype/S15.3.4_A2_T2.js
index 48dffef53..5ddc03b77 100644
--- a/test/built-ins/Function/prototype/S15.3.4_A2_T2.js
+++ b/test/built-ins/Function/prototype/S15.3.4_A2_T2.js
@@ -11,9 +11,9 @@ description: Call Function.prototype(null,void 0)
//CHECK#1
try {
- if (Function.prototype(null,void 0) !== undefined) {
+ if (Function.prototype(null, void 0) !== undefined) {
$ERROR('#1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined');
}
} catch (e) {
- $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: '+e);
+ $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: ' + e);
}
diff --git a/test/built-ins/Function/prototype/S15.3.4_A2_T3.js b/test/built-ins/Function/prototype/S15.3.4_A2_T3.js
index f72522a14..5b4b159cd 100644
--- a/test/built-ins/Function/prototype/S15.3.4_A2_T3.js
+++ b/test/built-ins/Function/prototype/S15.3.4_A2_T3.js
@@ -16,5 +16,5 @@ try {
$ERROR('#1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined');
}
} catch (e) {
- $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: '+e);
+ $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: ' + e);
}
diff --git a/test/built-ins/Function/prototype/S15.3.4_A3_T1.js b/test/built-ins/Function/prototype/S15.3.4_A3_T1.js
index 2d31234ce..7f8550234 100644
--- a/test/built-ins/Function/prototype/S15.3.4_A3_T1.js
+++ b/test/built-ins/Function/prototype/S15.3.4_A3_T1.js
@@ -11,6 +11,6 @@ description: Checking prototype of Function.prototype
if (Object.getPrototypeOf(Function.prototype) !== Object.prototype) {
$ERROR('#1: The value of the internal [[Prototype]] property of ' +
- 'the Function prototype object is the Object prototype ' +
- 'object (15.3.4)');
+ 'the Function prototype object is the Object prototype ' +
+ 'object (15.3.4)');
}
diff --git a/test/built-ins/Function/prototype/S15.3.4_A3_T2.js b/test/built-ins/Function/prototype/S15.3.4_A3_T2.js
index 5fdee9b54..eb6eaa1aa 100644
--- a/test/built-ins/Function/prototype/S15.3.4_A3_T2.js
+++ b/test/built-ins/Function/prototype/S15.3.4_A3_T2.js
@@ -14,6 +14,6 @@ description: >
Object.prototype.indicator = 1;
//CHECK#1
-if (Function.prototype.indicator!==1) {
+if (Function.prototype.indicator !== 1) {
$ERROR('#1: The value of the internal [[Prototype]] property of the Function prototype object is the Object prototype object (15.3.2.1)');
}
diff --git a/test/built-ins/Function/prototype/Symbol.hasInstance/this-val-poisoned-prototype.js b/test/built-ins/Function/prototype/Symbol.hasInstance/this-val-poisoned-prototype.js
index 33d46760d..8e97762be 100644
--- a/test/built-ins/Function/prototype/Symbol.hasInstance/this-val-poisoned-prototype.js
+++ b/test/built-ins/Function/prototype/Symbol.hasInstance/this-val-poisoned-prototype.js
@@ -16,7 +16,9 @@ features: [Symbol.hasInstance]
---*/
// Create a callable object without a `prototype` property
-var f = Object.getOwnPropertyDescriptor({ get f() {} }, 'f').get;
+var f = Object.getOwnPropertyDescriptor({
+ get f() {}
+}, 'f').get;
Object.defineProperty(f, 'prototype', {
get: function() {
diff --git a/test/built-ins/Function/prototype/apply/15.3.4.3-1-s.js b/test/built-ins/Function/prototype/apply/15.3.4.3-1-s.js
index 7ee954176..daeed835d 100644
--- a/test/built-ins/Function/prototype/apply/15.3.4.3-1-s.js
+++ b/test/built-ins/Function/prototype/apply/15.3.4.3-1-s.js
@@ -10,8 +10,8 @@ description: >
flags: [onlyStrict]
---*/
- function fun() {
- return (this instanceof String);
- }
+function fun() {
+ return (this instanceof String);
+}
assert.sameValue(fun.apply("", Array), false, 'fun.apply("", Array)');
diff --git a/test/built-ins/Function/prototype/apply/15.3.4.3-2-s.js b/test/built-ins/Function/prototype/apply/15.3.4.3-2-s.js
index a717204bd..0c792e14a 100644
--- a/test/built-ins/Function/prototype/apply/15.3.4.3-2-s.js
+++ b/test/built-ins/Function/prototype/apply/15.3.4.3-2-s.js
@@ -10,8 +10,8 @@ description: >
flags: [onlyStrict]
---*/
- function fun() {
- return (this instanceof Number);
- }
+function fun() {
+ return (this instanceof Number);
+}
assert.sameValue(fun.apply(-12, Array), false, 'fun.apply(-12, Array)');
diff --git a/test/built-ins/Function/prototype/apply/15.3.4.3-3-s.js b/test/built-ins/Function/prototype/apply/15.3.4.3-3-s.js
index 762c5c593..f62f5d967 100644
--- a/test/built-ins/Function/prototype/apply/15.3.4.3-3-s.js
+++ b/test/built-ins/Function/prototype/apply/15.3.4.3-3-s.js
@@ -10,8 +10,8 @@ description: >
flags: [onlyStrict]
---*/
- function fun() {
- return (this instanceof Boolean);
- }
+function fun() {
+ return (this instanceof Boolean);
+}
assert.sameValue(fun.apply(false, Array), false, 'fun.apply(false, Array)');
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A10.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A10.js
index ce9541aa0..244c35acd 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A10.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A10.js
@@ -17,7 +17,9 @@ if (!(Function.prototype.apply.hasOwnProperty('length'))) {
var obj = Function.prototype.apply.length;
-verifyNotWritable(Function.prototype.apply, "length", null, function(){return "shifted";});
+verifyNotWritable(Function.prototype.apply, "length", null, function() {
+ return "shifted";
+});
//CHECK#2
if (Function.prototype.apply.length !== obj) {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A11.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A11.js
index 18da556b6..dcab5610c 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A11.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A11.js
@@ -21,7 +21,7 @@ if (Function.prototype.apply.propertyIsEnumerable('length')) {
}
// CHECK#2
-for (var p in Function.prototype.apply){
- if (p==="length")
- $ERROR('#2: the Function.prototype.apply.length property has the attributes DontEnum');
+for (var p in Function.prototype.apply) {
+ if (p === "length")
+ $ERROR('#2: the Function.prototype.apply.length property has the attributes DontEnum');
}
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A12.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A12.js
index c84faf776..50ea57ee8 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A12.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A12.js
@@ -11,5 +11,5 @@ description: >
//CHECK#1
if (Function.prototype.apply.prototype !== undefined) {
- $ERROR('#1: Function.prototype.apply has not prototype property'+Function.prototype.apply.prototype);
+ $ERROR('#1: Function.prototype.apply has not prototype property' + Function.prototype.apply.prototype);
}
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A16.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A16.js
index ce11c7e88..bf25dfed3 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A16.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A16.js
@@ -17,7 +17,7 @@ if (typeof re === 'function') {
try {
Function.prototype.bind.call(re, undefined);
$ERROR('#1: If IsCallable(func) is false, ' +
- 'then (bind should) throw a TypeError exception');
+ 'then (bind should) throw a TypeError exception');
} catch (e) {
if (!(e instanceof TypeError)) {
$ERROR('#1: TypeError expected. Actual: ' + e);
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T1.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T1.js
index c8a7711c8..77e0ffe08 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T1.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T1.js
@@ -12,11 +12,11 @@ description: >
property. Prototype of the object is Function()
---*/
-var proto=Function();
+var proto = Function();
-function FACTORY(){};
+function FACTORY() {};
-FACTORY.prototype=proto;
+FACTORY.prototype = proto;
var obj = new FACTORY;
@@ -31,6 +31,6 @@ try {
$ERROR('#2: If the object does not have a [[Call]] property, a TypeError exception is thrown');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown');
+ $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown');
}
}
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T2.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T2.js
index 8d65c78db..ad2b14770 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T2.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T2.js
@@ -12,9 +12,9 @@ description: >
property. Prototype of the object is Function.prototype
---*/
-function FACTORY(){};
+function FACTORY() {};
-FACTORY.prototype=Function.prototype;
+FACTORY.prototype = Function.prototype;
var obj = new FACTORY;
@@ -29,6 +29,6 @@ try {
$ERROR('#2: If the object does not have a [[Call]] property, a TypeError exception is thrown');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown');
+ $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown');
}
}
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A2_T2.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A2_T2.js
index a56a6b4d1..872e46597 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A2_T2.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A2_T2.js
@@ -7,7 +7,7 @@ es5id: 15.3.4.3_A2_T2
description: Checking f.apply.length, where f is new Function
---*/
-var f=new Function;
+var f = new Function;
//CHECK#1
if (typeof f.apply !== "function") {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T5.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T5.js
index b2667397c..2864ae8e3 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T5.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T5.js
@@ -11,7 +11,7 @@ description: >
declaration
---*/
-function FACTORY(){
+function FACTORY() {
Function("this.feat=\"in da haus\"").apply();
};
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T6.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T6.js
index de2baaba0..c4fe40482 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T6.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T6.js
@@ -12,8 +12,10 @@ description: >
flags: [noStrict]
---*/
-function FACTORY(){
- (function(){this.feat="kamon beyba"}).apply(null);
+function FACTORY() {
+ (function() {
+ this.feat = "kamon beyba"
+ }).apply(null);
};
var obj = new FACTORY;
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T7.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T7.js
index 7138f11cd..1065e8d27 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T7.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T7.js
@@ -11,7 +11,7 @@ description: >
declaration
---*/
-(function FACTORY(){
+(function FACTORY() {
Function("this.feat=\"in da haus\"").apply(void 0);
})();
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T8.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T8.js
index bec48bd99..94449eb37 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T8.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T8.js
@@ -12,8 +12,10 @@ description: >
flags: [noStrict]
---*/
-(function FACTORY(){
- (function(){this.feat="kamon beyba"}).apply(undefined);
+(function FACTORY() {
+ (function() {
+ this.feat = "kamon beyba"
+ }).apply(undefined);
})();
//CHECK#1
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T9.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T9.js
index e7055f830..4fe65248a 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T9.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T9.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.3_A3_T9
description: Checking by using eval, argument at apply function is void 0
---*/
-eval( " Function(\"this.feat=1\").apply(void 0) " );
+eval(" Function(\"this.feat=1\").apply(void 0) ");
//CHECK#1
if (this["feat"] !== 1) {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T1.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T1.js
index b0a73eab7..937f8cb9f 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T1.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T1.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.3_A5_T1
description: thisArg is number
---*/
-var obj=1;
+var obj = 1;
var retobj = Function("this.touched= true; return this;").apply(obj);
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T2.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T2.js
index 88e6a92cb..79d6cf816 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T2.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T2.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.3_A5_T2
description: thisArg is boolean true
---*/
-var obj=true;
+var obj = true;
var retobj = new Function("this.touched= true; return this;").apply(obj);
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T3.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T3.js
index 8ec4feae5..eeb07e45e 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T3.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T3.js
@@ -10,9 +10,12 @@ description: thisArg is string
flags: [noStrict]
---*/
-var obj="soap";
+var obj = "soap";
-var retobj = ( function(){this.touched= true; return this;} ).apply(obj);
+var retobj = (function() {
+ this.touched = true;
+ return this;
+}).apply(obj);
//CHECK#1
if (typeof obj.touched !== "undefined") {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js
index 65230c6eb..527311ae9 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js
@@ -10,7 +10,10 @@ description: thisArg is function variable that return this
flags: [noStrict]
---*/
-f = function(){this.touched= true; return this;};
+f = function() {
+ this.touched = true;
+ return this;
+};
retobj = f.apply(obj);
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js
index b4947b223..8d88bfdd1 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js
@@ -9,9 +9,11 @@ es5id: 15.3.4.3_A5_T5
description: thisArg is function variable
---*/
-var f = function(){this.touched= true;};
+var f = function() {
+ this.touched = true;
+};
-var obj={};
+var obj = {};
f.apply(obj);
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js
index 3a852f770..ffabe93c3 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js
@@ -9,9 +9,11 @@ es5id: 15.3.4.3_A5_T6
description: thisArg is new String()
---*/
-var obj=new String("soap");
+var obj = new String("soap");
-( function(){this.touched= true;}).apply(obj);
+(function() {
+ this.touched = true;
+}).apply(obj);
//CHECK#1
if (!(obj.touched)) {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T7.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T7.js
index 3aea79d4c..f99dfe61f 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T7.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T7.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.3_A5_T7
description: thisArg is new Number()
---*/
-var obj=new Number(1);
+var obj = new Number(1);
Function("this.touched= true;").apply(obj);
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T8.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T8.js
index 3e7ff7743..26ce5a6ec 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T8.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T8.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.3_A5_T8
description: thisArg is Function()
---*/
-var obj=Function();
+var obj = Function();
new Function("this.touched= true; return this;").apply(obj);
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T2.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T2.js
index ddeca4bbb..a21265dd3 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T2.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T2.js
@@ -11,10 +11,10 @@ description: argArray is (null,1)
//CHECK#1
try {
- Function().apply(null,1);
+ Function().apply(null, 1);
$ERROR('#1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#1.1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown');
+ $ERROR('#1.1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown');
}
}
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T3.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T3.js
index 2fa2501c3..313e89d79 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T3.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T3.js
@@ -9,14 +9,14 @@ es5id: 15.3.4.3_A6_T3
description: argArray is (object,"1,3,4")
---*/
-var obj={};
+var obj = {};
//CHECK#1
try {
- Function().apply(obj,"1,3,4");
+ Function().apply(obj, "1,3,4");
$ERROR('#1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#1.1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown');
+ $ERROR('#1.1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown');
}
}
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T1.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T1.js
index afa24ed01..018dcc7bd 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T1.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T1.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.3_A7_T1
description: argArray is (null,[1])
---*/
-Function("a1,a2,a3","this.shifted=a1;").apply(null,[1]);
+Function("a1,a2,a3", "this.shifted=a1;").apply(null, [1]);
//CHECK#1
if (this["shifted"] !== 1) {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T10.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T10.js
index 8e518ebd6..7a77fd2d1 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T10.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T10.js
@@ -11,11 +11,11 @@ description: >
without declaration used
---*/
-var obj={};
+var obj = {};
-(function (){
- Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(obj,arguments);
-})("",4,2);
+(function() {
+ Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(obj, arguments);
+})("", 4, 2);
//CHECK#1
if (obj["shifted"] !== "42") {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T2.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T2.js
index fbfadbdb7..f54f65d30 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T2.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T2.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.3_A7_T2
description: argArray is (null,[1,2,3])
---*/
-new Function("a1,a2","a3","this.shifted=a2;").apply(null,[1,2,3]);
+new Function("a1,a2", "a3", "this.shifted=a2;").apply(null, [1, 2, 3]);
//CHECK#1
if (this["shifted"] !== 2) {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T3.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T3.js
index 1f27d4ef2..d4ce5fc1d 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T3.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T3.js
@@ -9,13 +9,17 @@ es5id: 15.3.4.3_A7_T3
description: argArray is (empty object, new Array("nine","inch","nails"))
---*/
-var i=0;
+var i = 0;
-var p={toString:function(){return "a"+(++i);}};
+var p = {
+ toString: function() {
+ return "a" + (++i);
+ }
+};
-var obj={};
+var obj = {};
-Function(p,"a2,a3","this.shifted=a1;").apply(obj, new Array("nine","inch","nails"));
+Function(p, "a2,a3", "this.shifted=a1;").apply(obj, new Array("nine", "inch", "nails"));
//CHECK#1
if (obj["shifted"] !== "nine") {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js
index a88cc9e73..9a747b4a1 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js
@@ -11,13 +11,19 @@ description: >
("a","b","c"))
---*/
-var i=0;
+var i = 0;
-var p={toString:function(){return "a"+(++i);}};
+var p = {
+ toString: function() {
+ return "a" + (++i);
+ }
+};
-var obj={};
+var obj = {};
-new Function(p,p,p, "this.shifted=a3;").apply( obj,( function(){return arguments;}) ("a","b","c") );
+new Function(p, p, p, "this.shifted=a3;").apply(obj, (function() {
+ return arguments;
+})("a", "b", "c"));
//CHECK#1
if (obj["shifted"] !== "c") {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T5.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T5.js
index 26d0b1a28..44ab20da0 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T5.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T5.js
@@ -9,11 +9,11 @@ es5id: 15.3.4.3_A7_T5
description: argArray is (null, arguments), inside function declaration used
---*/
-function FACTORY(){
- Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(null,arguments);
+function FACTORY() {
+ Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(null, arguments);
}
-var obj=new FACTORY("",1,2);
+var obj = new FACTORY("", 1, 2);
//CHECK#1
if (this["shifted"] !== "12") {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T6.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T6.js
index 2e2f76d64..23e9ac8ec 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T6.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T6.js
@@ -9,11 +9,11 @@ es5id: 15.3.4.3_A7_T6
description: argArray is (this, arguments), inside function declaration used
---*/
-function FACTORY(){
- Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(this,arguments);
+function FACTORY() {
+ Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(this, arguments);
}
-var obj=new FACTORY("",4,2);
+var obj = new FACTORY("", 4, 2);
//CHECK#1
if (obj["shifted"] !== "42") {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T7.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T7.js
index 0ee4e41ee..59dbd059a 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T7.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T7.js
@@ -11,9 +11,9 @@ description: >
declaration used
---*/
-(function (){
- Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(null,arguments);
-})("",1,2);
+(function() {
+ Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(null, arguments);
+})("", 1, 2);
//CHECK#1
if (this["shifted"] !== "12") {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T8.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T8.js
index b3cf86486..f0c0215cd 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T8.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T8.js
@@ -11,9 +11,9 @@ description: >
declaration used
---*/
-(function (){
- Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(this,arguments);
-})("",4,2);
+(function() {
+ Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(this, arguments);
+})("", 4, 2);
//CHECK#2
if (this["shifted"] !== "42") {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T9.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T9.js
index 8781ceff1..d478bc629 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T9.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T9.js
@@ -11,13 +11,13 @@ description: >
used
---*/
-function FACTORY(){
+function FACTORY() {
var obj = {};
- Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(obj,arguments);
+ Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(obj, arguments);
return obj;
}
-var obj=new FACTORY("",1,2);
+var obj = new FACTORY("", 1, 2);
//CHECK#1
if (typeof this["shifted"] !== "undefined") {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T4.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T4.js
index 0279d3e1e..75eeb6534 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T4.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T4.js
@@ -8,7 +8,7 @@ description: Checking if creating "new (Function("this.p1=1").apply)" fails
---*/
try {
- var obj = new (Function("this.p1=1").apply);
+ var obj = new(Function("this.p1=1").apply);
$ERROR('#1: Function.prototype.apply can\'t be used as [[Construct]] caller');
} catch (e) {
if (!(e instanceof TypeError)) {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T6.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T6.js
index ea44af1c2..94169ef9d 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T6.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T6.js
@@ -11,12 +11,12 @@ description: >
//CHECK#1
try {
- var obj = new (Function("function f(){this.p1=1;};return f").apply());
+ var obj = new(Function("function f(){this.p1=1;};return f").apply());
} catch (e) {
$ERROR('#1: Function.prototype.apply can\'t be used as [[Construct]] caller');
}
//CHECK#2
-if (obj.p1!== 1) {
+if (obj.p1 !== 1) {
$ERROR('#2: Function.prototype.apply can\'t be used as [[Construct]] caller');
}
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-0-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-0-1.js
index 721390cf7..6a5c1ec34 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-0-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-0-1.js
@@ -6,6 +6,6 @@ es5id: 15.3.4.5-0-1
description: Function.prototype.bind must exist as a function
---*/
- var f = Function.prototype.bind;
+var f = Function.prototype.bind;
assert.sameValue(typeof(f), "function", 'typeof(f)');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-10-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-10-1.js
index 7486fce8d..757d27d50 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-10-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-10-1.js
@@ -8,8 +8,8 @@ description: >
set as Function
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
+var obj = foo.bind({});
assert.sameValue(Object.prototype.toString.call(obj), "[object Function]", 'Object.prototype.toString.call(obj)');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-11-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-11-1.js
index 924da6e02..cc302b88d 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-11-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-11-1.js
@@ -8,9 +8,9 @@ description: >
is set as Function.prototype
---*/
- var foo = function () { };
+var foo = function() {};
- Function.prototype.property = 12;
- var obj = foo.bind({});
+Function.prototype.property = 12;
+var obj = foo.bind({});
assert.sameValue(obj.property, 12, 'obj.property');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-1.js
index 76a189908..c1dfb471a 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-1.js
@@ -6,9 +6,9 @@ es5id: 15.3.4.5-13.b-1
description: Function.prototype.bind, bound fn has a 'length' own property
---*/
- function foo() { }
- var o = {};
-
- var bf = foo.bind(o);
+function foo() {}
+var o = {};
+
+var bf = foo.bind(o);
assert(bf.hasOwnProperty('length'), 'bf.hasOwnProperty("length") !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-2.js
index d0aedf906..a99ce8cd2 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-2.js
@@ -8,9 +8,9 @@ description: >
expected args
---*/
- function foo(x, y) { }
- var o = {};
-
- var bf = foo.bind(o);
+function foo(x, y) {}
+var o = {};
+
+var bf = foo.bind(o);
assert.sameValue(bf.length, 2, 'bf.length');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-3.js
index b2a968ed3..c712aad44 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-3.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-3.js
@@ -8,9 +8,9 @@ description: >
expected args (all args prefilled)
---*/
- function foo(x, y) { }
- var o = {};
-
- var bf = foo.bind(o, 42, 101);
+function foo(x, y) {}
+var o = {};
+
+var bf = foo.bind(o, 42, 101);
assert.sameValue(bf.length, 0, 'bf.length');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-4.js
index 152d1eb8b..8fe162a20 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-4.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-4.js
@@ -8,9 +8,9 @@ description: >
expected args (target takes 0 args)
---*/
- function foo() { }
- var o = {};
-
- var bf = foo.bind(o);
+function foo() {}
+var o = {};
+
+var bf = foo.bind(o);
assert.sameValue(bf.length, 0, 'bf.length');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-5.js
index fcf6139fa..c95236da2 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-5.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-5.js
@@ -8,9 +8,9 @@ description: >
expected args (target provided extra args)
---*/
- function foo() { }
- var o = {};
-
- var bf = foo.bind(o, 42);
+function foo() {}
+var o = {};
+
+var bf = foo.bind(o, 42);
assert.sameValue(bf.length, 0, 'bf.length');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-6.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-6.js
index 038084b1a..8b50e1347 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-6.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-6.js
@@ -8,9 +8,9 @@ description: >
expected args
---*/
- function foo(x, y) { }
- var o = {};
+function foo(x, y) {}
+var o = {};
- var bf = foo.bind(o, 42);
+var bf = foo.bind(o, 42);
assert.sameValue(bf.length, 1, 'bf.length');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-1.js
index ff341342e..e2ca7cfe8 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-1.js
@@ -6,11 +6,11 @@ es5id: 15.3.4.5-15-1
description: Function.prototype.bind, 'length' is a data valued own property
---*/
- function foo() { }
- var o = {};
-
- var bf = foo.bind(o);
- var desc = Object.getOwnPropertyDescriptor(bf, 'length');
+function foo() {}
+var o = {};
+
+var bf = foo.bind(o);
+var desc = Object.getOwnPropertyDescriptor(bf, 'length');
assert.sameValue(desc.hasOwnProperty('value'), true, 'desc.hasOwnProperty("value")');
assert.sameValue(desc.hasOwnProperty('get'), false, 'desc.hasOwnProperty("get")');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-2.js
index 19ed95b0d..11cad43ed 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-2.js
@@ -7,11 +7,11 @@ description: >
Function.prototype.bind, 'length' is a data valued own property
---*/
- function foo() { }
- var o = {};
-
- var bf = foo.bind(o);
- var desc = Object.getOwnPropertyDescriptor(bf, 'length');
+function foo() {}
+var o = {};
+
+var bf = foo.bind(o);
+var desc = Object.getOwnPropertyDescriptor(bf, 'length');
assert.sameValue(desc.value, 0, 'desc.value');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-3.js
index f0305bbe4..8c5f06f4c 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-3.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-3.js
@@ -9,7 +9,7 @@ description: >
includes: [propertyHelper.js]
---*/
-function foo() { }
+function foo() {}
var obj = foo.bind({});
var flength = obj.length;
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-4.js
index f0f5a41e6..1ac7dc4c6 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-4.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-4.js
@@ -8,16 +8,17 @@ description: >
property in F set as false
---*/
- var canEnumerable = false;
- var hasProperty = false;
- function foo() { }
- var obj = foo.bind({});
- hasProperty = obj.hasOwnProperty("length");
- for (var prop in obj) {
- if (prop === "length") {
- canEnumerable = true;
- }
- }
+var canEnumerable = false;
+var hasProperty = false;
+
+function foo() {}
+var obj = foo.bind({});
+hasProperty = obj.hasOwnProperty("length");
+for (var prop in obj) {
+ if (prop === "length") {
+ canEnumerable = true;
+ }
+}
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(canEnumerable, false, 'canEnumerable');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js
index 9a0e9fe66..447d9d617 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js
@@ -8,13 +8,14 @@ description: >
property in F set as true
---*/
- var canConfigurable = false;
- var hasProperty = false;
- function foo() { }
- var obj = foo.bind({});
- hasProperty = obj.hasOwnProperty("length");
- delete obj.length;
- canConfigurable = !obj.hasOwnProperty("length");
+var canConfigurable = false;
+var hasProperty = false;
+
+function foo() {}
+var obj = foo.bind({});
+hasProperty = obj.hasOwnProperty("length");
+delete obj.length;
+canConfigurable = !obj.hasOwnProperty("length");
assert(hasProperty, 'hasProperty !== true');
assert(canConfigurable, 'canConfigurable !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-16-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-16-1.js
index 385cc179a..ddec313c6 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-16-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-16-1.js
@@ -6,10 +6,10 @@ es5id: 15.3.4.5-16-1
description: Function.prototype.bind, [[Extensible]] of the bound fn is true
---*/
- function foo() { }
- var o = {};
-
- var bf = foo.bind(o);
- var ex = Object.isExtensible(bf);
+function foo() {}
+var o = {};
+
+var bf = foo.bind(o);
+var ex = Object.isExtensible(bf);
assert.sameValue(ex, true, 'ex');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-16-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-16-2.js
index 0a1d79541..2bb3449a6 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-16-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-16-2.js
@@ -8,8 +8,8 @@ description: >
property in F set as true
---*/
- function foo() { }
- var obj = foo.bind({});
- obj.property = 12;
+function foo() {}
+var obj = foo.bind({});
+obj.property = 12;
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-1.js
index 22274ec43..4fe22c9ad 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-1.js
@@ -11,10 +11,10 @@ description: >
callable (but an instance of Function)
---*/
- foo.prototype = Function.prototype;
- // dummy function
- function foo() {}
- var f = new foo();
+foo.prototype = Function.prototype;
+// dummy function
+function foo() {}
+var f = new foo();
assert.throws(TypeError, function() {
- f.bind();
+ f.bind();
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-10.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-10.js
index b7cc355aa..d351a8085 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-10.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-10.js
@@ -8,5 +8,5 @@ description: Function.prototype.bind throws TypeError if 'Target' is undefined
assert.throws(TypeError, function() {
- Function.prototype.bind.call(undefined);
+ Function.prototype.bind.call(undefined);
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-11.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-11.js
index a6b2d2536..cb8b5bb00 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-11.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-11.js
@@ -8,5 +8,5 @@ description: Function.prototype.bind throws TypeError if 'Target' is NULL
assert.throws(TypeError, function() {
- Function.prototype.bind.call(null);
+ Function.prototype.bind.call(null);
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-12.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-12.js
index ac81d90cb..bb5299cb6 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-12.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-12.js
@@ -8,5 +8,5 @@ description: Function.prototype.bind throws TypeError if 'Target' is a boolean
assert.throws(TypeError, function() {
- Function.prototype.bind.call(true);
+ Function.prototype.bind.call(true);
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-13.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-13.js
index 0745139ad..8e99cd6f6 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-13.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-13.js
@@ -8,5 +8,5 @@ description: Function.prototype.bind throws TypeError if 'Target' is a number
assert.throws(TypeError, function() {
- Function.prototype.bind.call(5);
+ Function.prototype.bind.call(5);
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-14.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-14.js
index 64b0899f7..48710b1df 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-14.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-14.js
@@ -8,5 +8,5 @@ description: Function.prototype.bind throws TypeError if 'Target' is a string
assert.throws(TypeError, function() {
- Function.prototype.bind.call("abc");
+ Function.prototype.bind.call("abc");
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-15.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-15.js
index 887441b2c..83c763a95 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-15.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-15.js
@@ -10,5 +10,5 @@ description: >
assert.throws(TypeError, function() {
- Function.prototype.bind.call({});
+ Function.prototype.bind.call({});
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-16.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-16.js
index 4d72a31fe..55832a1c1 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-16.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-16.js
@@ -6,6 +6,6 @@ es5id: 15.3.4.5-2-16
description: Function.prototype.bind - 'Target' is a function
---*/
- function testFunc() {}
+function testFunc() {}
- testFunc.bind();
+testFunc.bind();
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-2.js
index 17fc39e38..83f9770a8 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-2.js
@@ -11,10 +11,10 @@ description: >
callable (bind attached to object)
---*/
- // dummy function
- function foo() {}
- var f = new foo();
- f.bind = Function.prototype.bind;
+// dummy function
+function foo() {}
+var f = new foo();
+f.bind = Function.prototype.bind;
assert.throws(TypeError, function() {
- f.bind();
+ f.bind();
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-3.js
index 72842e357..38baf8fa0 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-3.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-3.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.5-2-3
description: Function.prototype.bind allows Target to be a constructor (Number)
---*/
- var bnc = Number.bind(null);
- var n = bnc(42);
+var bnc = Number.bind(null);
+var n = bnc(42);
assert.sameValue(n, 42, 'n');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-4.js
index b33445051..c4c97b310 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-4.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-4.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.5-2-4
description: Function.prototype.bind allows Target to be a constructor (String)
---*/
- var bsc = String.bind(null);
- var s = bsc("hello world");
+var bsc = String.bind(null);
+var s = bsc("hello world");
assert.sameValue(s, "hello world", 's');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-5.js
index 935f654cb..893d19b53 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-5.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-5.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.5-2-5
description: Function.prototype.bind allows Target to be a constructor (Boolean)
---*/
- var bbc = Boolean.bind(null);
- var b = bbc(true);
+var bbc = Boolean.bind(null);
+var b = bbc(true);
assert.sameValue(b, true, 'b');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-6.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-6.js
index e9924b7d2..d659c61b0 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-6.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-6.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.5-2-6
description: Function.prototype.bind allows Target to be a constructor (Object)
---*/
- var boc = Object.bind(null);
- var o = boc(42);
+var boc = Object.bind(null);
+var o = boc(42);
assert((o == 42), '(o == 42) !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-7.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-7.js
index 8df945394..124f1f87e 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-7.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-7.js
@@ -13,5 +13,5 @@ description: >
assert.throws(TypeError, function() {
- JSON.bind();
+ JSON.bind();
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-8.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-8.js
index 79efe3ccf..99474ac4d 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-8.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-8.js
@@ -9,10 +9,10 @@ es5id: 15.3.4.5-2-8
description: Function.prototype.bind allows Target to be a constructor (Array)
---*/
- var bac = Array.bind(null);
- var a = bac(42);
- a.prop = "verifyPropertyExist";
- a[41] = 41;
+var bac = Array.bind(null);
+var a = bac(42);
+a.prop = "verifyPropertyExist";
+a[41] = 41;
assert.sameValue(a.prop, "verifyPropertyExist", 'a.prop');
assert.sameValue(a[41], 41, 'a[41]');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-9.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-9.js
index 337e8b6da..f16e2404f 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-9.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-9.js
@@ -6,7 +6,7 @@ es5id: 15.3.4.5-2-9
description: Function.prototype.bind allows Target to be a constructor (Date)
---*/
- var bdc = Date.bind(null);
- var s = bdc(0, 0, 0);
+var bdc = Date.bind(null);
+var s = bdc(0, 0, 0);
assert.sameValue(typeof(s), 'string', 'typeof(s)');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-20-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-20-2.js
index c07b78a05..ce141fdab 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-20-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-20-2.js
@@ -8,9 +8,9 @@ description: >
in 'F' is thrower
---*/
- function foo() { }
- var obj = foo.bind({});
+function foo() {}
+var obj = foo.bind({});
assert.throws(TypeError, function() {
- obj.caller;
+ obj.caller;
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-20-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-20-3.js
index 15516ceb6..b3f830dbb 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-20-3.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-20-3.js
@@ -8,8 +8,8 @@ description: >
in 'F' is thrower
---*/
- function foo() { }
- var obj = foo.bind({});
+function foo() {}
+var obj = foo.bind({});
assert.throws(TypeError, function() {
- obj.caller = 12;
+ obj.caller = 12;
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-21-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-21-2.js
index 8779bc06d..2d7c5dfca 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-21-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-21-2.js
@@ -8,9 +8,9 @@ description: >
property in 'F' is thrower
---*/
- function foo() { }
- var obj = foo.bind({});
+function foo() {}
+var obj = foo.bind({});
assert.throws(TypeError, function() {
- obj.arguments;
+ obj.arguments;
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-21-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-21-3.js
index c132f9d09..34bf7d6f2 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-21-3.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-21-3.js
@@ -8,8 +8,8 @@ description: >
property in 'F' is thrower
---*/
- function foo() { }
- var obj = foo.bind({});
+function foo() {}
+var obj = foo.bind({});
assert.throws(TypeError, function() {
- obj.arguments = 12;
+ obj.arguments = 12;
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-3-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-3-1.js
index 0a88f6d3b..f6aab4e45 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-3-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-3-1.js
@@ -6,11 +6,11 @@ es5id: 15.3.4.5-3-1
description: Function.prototype.bind - each arg is defined in A in list order
---*/
- var foo = function (x, y) {
- return new Boolean((x + y) === "ab" && arguments[0] === "a" &&
- arguments[1] === "b" && arguments.length === 2);
- };
+var foo = function(x, y) {
+ return new Boolean((x + y) === "ab" && arguments[0] === "a" &&
+ arguments[1] === "b" && arguments.length === 2);
+};
- var obj = foo.bind({}, "a", "b");
+var obj = foo.bind({}, "a", "b");
assert((obj() == true), '(obj() == true) !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-1.js
index 89e32473e..5a2427399 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-1.js
@@ -6,9 +6,9 @@ es5id: 15.3.4.5-6-1
description: Function.prototype.bind - F can get own data property
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
- obj.property = 12;
+var obj = foo.bind({});
+obj.property = 12;
assert.sameValue(obj.property, 12, 'obj.property');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-10.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-10.js
index d4d1b0996..7d46c866e 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-10.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-10.js
@@ -8,19 +8,19 @@ description: >
a get function that overrides an inherited accessor property
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
+var obj = foo.bind({});
- Object.defineProperty(Function.prototype, "property", {
- get: function () {
- return 3;
- },
- configurable: true
- });
+Object.defineProperty(Function.prototype, "property", {
+ get: function() {
+ return 3;
+ },
+ configurable: true
+});
- Object.defineProperty(obj, "property", {
- set: function () { }
- });
+Object.defineProperty(obj, "property", {
+ set: function() {}
+});
-assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
+assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-11.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-11.js
index 2f3939817..3febd3790 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-11.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-11.js
@@ -8,13 +8,13 @@ description: >
without a get function
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
+var obj = foo.bind({});
- Object.defineProperty(Function.prototype, "property", {
- set: function () { },
- configurable: true
- });
+Object.defineProperty(Function.prototype, "property", {
+ set: function() {},
+ configurable: true
+});
-assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
+assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-12.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-12.js
index 416294bc0..8ac9fab50 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-12.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-12.js
@@ -6,8 +6,8 @@ es5id: 15.3.4.5-6-12
description: Function.prototype.bind - F cannot get property which doesn't exist
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
+var obj = foo.bind({});
-assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
+assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-2.js
index e6718ada4..b770d4876 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-2.js
@@ -6,10 +6,10 @@ es5id: 15.3.4.5-6-2
description: Function.prototype.bind - F can get inherited data property
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
+var obj = foo.bind({});
- Function.prototype.property = 12;
+Function.prototype.property = 12;
assert.sameValue(obj.property, 12, 'obj.property');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-3.js
index a3cc6aaac..ea79e26d2 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-3.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-3.js
@@ -8,11 +8,11 @@ description: >
overrides an inherited data property
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
+var obj = foo.bind({});
- Function.prototype.property = 3;
- obj.property = 12;
+Function.prototype.property = 3;
+obj.property = 12;
assert.sameValue(obj.property, 12, 'obj.property');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-4.js
index 914e18209..f1c1bdb02 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-4.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-4.js
@@ -8,19 +8,19 @@ description: >
overrides an inherited accessor property
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
+var obj = foo.bind({});
- Object.defineProperty(Function.prototype, "property", {
- get: function () {
- return 3;
- },
- configurable: true
- });
-
- Object.defineProperty(obj, "property", {
- value: 12
- });
+Object.defineProperty(Function.prototype, "property", {
+ get: function() {
+ return 3;
+ },
+ configurable: true
+});
+
+Object.defineProperty(obj, "property", {
+ value: 12
+});
assert.sameValue(obj.property, 12, 'obj.property');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-5.js
index e75c71ee1..4f12d470a 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-5.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-5.js
@@ -6,13 +6,13 @@ es5id: 15.3.4.5-6-5
description: Function.prototype.bind - F can get own accessor property
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
- Object.defineProperty(obj, "property", {
- get: function () {
- return 12;
- }
- });
+var obj = foo.bind({});
+Object.defineProperty(obj, "property", {
+ get: function() {
+ return 12;
+ }
+});
assert.sameValue(obj.property, 12, 'obj.property');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-6.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-6.js
index 4abb56c50..d32741530 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-6.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-6.js
@@ -6,15 +6,15 @@ es5id: 15.3.4.5-6-6
description: Function.prototype.bind - F can get inherited accessor property
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
+var obj = foo.bind({});
- Object.defineProperty(Function.prototype, "property", {
- get: function () {
- return 12;
- },
- configurable: true
- });
+Object.defineProperty(Function.prototype, "property", {
+ get: function() {
+ return 12;
+ },
+ configurable: true
+});
assert.sameValue(obj.property, 12, 'obj.property');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-7.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-7.js
index 7dc8018d1..a5037a2f4 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-7.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-7.js
@@ -8,15 +8,15 @@ description: >
overrides an inherited data property
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
+var obj = foo.bind({});
- Function.prototype.property = 3;
- Object.defineProperty(obj, "property", {
- get: function () {
- return 12;
- }
- });
+Function.prototype.property = 3;
+Object.defineProperty(obj, "property", {
+ get: function() {
+ return 12;
+ }
+});
assert.sameValue(obj.property, 12, 'obj.property');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-8.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-8.js
index 65bf83aad..8ccd3143f 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-8.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-8.js
@@ -8,21 +8,21 @@ description: >
overrides an inherited accessor property
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
+var obj = foo.bind({});
- Object.defineProperty(Function.prototype, "property", {
- get: function () {
- return 3;
- },
- configurable: true
- });
+Object.defineProperty(Function.prototype, "property", {
+ get: function() {
+ return 3;
+ },
+ configurable: true
+});
- Object.defineProperty(obj, "property", {
- get: function () {
- return 12;
- }
- });
+Object.defineProperty(obj, "property", {
+ get: function() {
+ return 12;
+ }
+});
assert.sameValue(obj.property, 12, 'obj.property');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-9.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-9.js
index bedb8acfb..6f2465005 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-9.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-9.js
@@ -8,12 +8,12 @@ description: >
a get function
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
- Object.defineProperty(obj, "property", {
- set: function () {}
- });
+var obj = foo.bind({});
+Object.defineProperty(obj, "property", {
+ set: function() {}
+});
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
-assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
+assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-8-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-8-1.js
index 3ef542bdc..71eda47c4 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-8-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-8-1.js
@@ -6,9 +6,9 @@ es5id: 15.3.4.5-8-1
description: Function.prototype.bind, type of bound function must be 'function'
---*/
- function foo() { }
- var o = {};
-
- var bf = foo.bind(o);
+function foo() {}
+var o = {};
+
+var bf = foo.bind(o);
assert.sameValue(typeof(bf), 'function', 'typeof(bf)');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-8-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-8-2.js
index cc9ca589b..7edffd174 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-8-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-8-2.js
@@ -8,10 +8,10 @@ description: >
'Function'
---*/
- function foo() { }
- var o = {};
-
- var bf = foo.bind(o);
- var s = Object.prototype.toString.call(bf);
+function foo() {}
+var o = {};
+
+var bf = foo.bind(o);
+var s = Object.prototype.toString.call(bf);
assert.sameValue(s, '[object Function]', 's');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-9-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-9-1.js
index ff231a57b..b2e9a05b6 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-9-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-9-1.js
@@ -6,9 +6,9 @@ es5id: 15.3.4.5-9-1
description: Function.prototype.bind, [[Prototype]] is Function.prototype
---*/
- function foo() { }
- var o = {};
-
- var bf = foo.bind(o);
+function foo() {}
+var o = {};
+
+var bf = foo.bind(o);
assert(Function.prototype.isPrototypeOf(bf), 'Function.prototype.isPrototypeOf(bf) !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-9-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-9-2.js
index 597e3ca15..e8f93ad8d 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-9-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-9-2.js
@@ -8,9 +8,9 @@ description: >
(using getPrototypeOf)
---*/
- function foo() { }
- var o = {};
-
- var bf = foo.bind(o);
+function foo() {}
+var o = {};
+
+var bf = foo.bind(o);
assert.sameValue(Object.getPrototypeOf(bf), Function.prototype, 'Object.getPrototypeOf(bf)');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-1.js
index 9d386aa4f..d29e6ada9 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-1.js
@@ -9,10 +9,10 @@ description: >
[[TargetFunction]] when 'F' is called
---*/
- var func = function (x, y, z) {
- return x + y + z;
- };
+var func = function(x, y, z) {
+ return x + y + z;
+};
- var newFunc = Function.prototype.bind.call(func, {}, "a", "b", "c");
+var newFunc = Function.prototype.bind.call(func, {}, "a", "b", "c");
assert.sameValue(newFunc(), "abc", 'newFunc()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-10.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-10.js
index 13c4a05bc..48116b915 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-10.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-10.js
@@ -8,12 +8,14 @@ description: >
'boundArgs' is 0, length of 'ExtraArgs' is 0, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- var func = function (x) {
- return this === obj && typeof x === "undefined";
- };
+var func = function(x) {
+ return this === obj && typeof x === "undefined";
+};
- var newFunc = Function.prototype.bind.call(func, obj);
+var newFunc = Function.prototype.bind.call(func, obj);
assert(newFunc(), 'newFunc() !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js
index 162dfdbc2..5f9e6167e 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js
@@ -8,12 +8,14 @@ description: >
'boundArgs' is 0, length of 'ExtraArgs' is 1, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- var func = function (x) {
- return this === obj && x === 1 && arguments[0] === 1 && arguments.length === 1 && this.prop === "abc";
- };
+var func = function(x) {
+ return this === obj && x === 1 && arguments[0] === 1 && arguments.length === 1 && this.prop === "abc";
+};
- var newFunc = Function.prototype.bind.call(func, obj);
+var newFunc = Function.prototype.bind.call(func, obj);
assert(newFunc(1), 'newFunc(1) !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js
index 0185bd3e2..c2ac2a3dd 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js
@@ -8,13 +8,15 @@ description: >
'boundArgs' is 0, length of 'ExtraArgs' is 2, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- var func = function (x) {
- return this === obj && x === 1 && arguments[1] === 2 &&
- arguments[0] === 1 && arguments.length === 2 && this.prop === "abc";
- };
+var func = function(x) {
+ return this === obj && x === 1 && arguments[1] === 2 &&
+ arguments[0] === 1 && arguments.length === 2 && this.prop === "abc";
+};
- var newFunc = Function.prototype.bind.call(func, obj);
+var newFunc = Function.prototype.bind.call(func, obj);
assert(newFunc(1, 2), 'newFunc(1, 2) !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js
index 477b95d8e..5bf792565 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js
@@ -8,13 +8,15 @@ description: >
'boundArgs' is 1, length of 'ExtraArgs' is 0, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- var func = function (x) {
- return this === obj && x === 1 &&
- arguments[0] === 1 && arguments.length === 1 && this.prop === "abc";
- };
+var func = function(x) {
+ return this === obj && x === 1 &&
+ arguments[0] === 1 && arguments.length === 1 && this.prop === "abc";
+};
- var newFunc = Function.prototype.bind.call(func, obj, 1);
+var newFunc = Function.prototype.bind.call(func, obj, 1);
assert(newFunc(), 'newFunc() !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js
index 3c844f557..8090b28f3 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js
@@ -8,13 +8,15 @@ description: >
'boundArgs' is 1, length of 'ExtraArgs' is 1, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- var func = function (x) {
- return this === obj && x === 1 && arguments[1] === 2 &&
- arguments[0] === 1 && arguments.length === 2 && this.prop === "abc";
- };
+var func = function(x) {
+ return this === obj && x === 1 && arguments[1] === 2 &&
+ arguments[0] === 1 && arguments.length === 2 && this.prop === "abc";
+};
- var newFunc = Function.prototype.bind.call(func, obj, 1);
+var newFunc = Function.prototype.bind.call(func, obj, 1);
assert(newFunc(2), 'newFunc(2) !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js
index 772059d8f..d10b5a53b 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js
@@ -8,13 +8,15 @@ description: >
'boundArgs' is 2, length of 'ExtraArgs' is 0, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- var func = function (x) {
- return this === obj && x === 1 && arguments[1] === 2 &&
- arguments[0] === 1 && arguments.length === 2 && this.prop === "abc";
- };
+var func = function(x) {
+ return this === obj && x === 1 && arguments[1] === 2 &&
+ arguments[0] === 1 && arguments.length === 2 && this.prop === "abc";
+};
- var newFunc = Function.prototype.bind.call(func, obj, 1, 2);
+var newFunc = Function.prototype.bind.call(func, obj, 1, 2);
assert(newFunc(), 'newFunc() !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js
index 329b1e78c..77ad47716 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js
@@ -9,12 +9,14 @@ description: >
when 'F' is called
---*/
- var obj = { "prop": "a" };
+var obj = {
+ "prop": "a"
+};
- var func = function () {
- return this;
- };
+var func = function() {
+ return this;
+};
- var newFunc = Function.prototype.bind.call(func, obj);
+var newFunc = Function.prototype.bind.call(func, obj);
assert.sameValue(newFunc(), obj, 'newFunc()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-3.js
index c0bb824d0..138e22f6c 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-3.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-3.js
@@ -9,10 +9,10 @@ description: >
[[TargetFunction]] when 'F' is called
---*/
- var func = function (x, y, z) {
- return z;
- };
+var func = function(x, y, z) {
+ return z;
+};
- var newFunc = Function.prototype.bind.call(func, {}, "a", "b");
+var newFunc = Function.prototype.bind.call(func, {}, "a", "b");
assert.sameValue(newFunc("c"), "c", 'newFunc("c")');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-4.js
index 829615fff..c7575ddc3 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-4.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-4.js
@@ -9,10 +9,10 @@ description: >
'boundThis'
---*/
- var func = function () {
- return arguments.length === 0;
- };
+var func = function() {
+ return arguments.length === 0;
+};
- var newFunc = Function.prototype.bind.call(func);
+var newFunc = Function.prototype.bind.call(func);
assert(newFunc(), 'newFunc() !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-5.js
index 7342bbdd3..40f2188b4 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-5.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-5.js
@@ -9,10 +9,10 @@ description: >
'boundThis'
---*/
- var func = function () {
- return arguments[0] === 1;
- };
+var func = function() {
+ return arguments[0] === 1;
+};
- var newFunc = Function.prototype.bind.call(func);
+var newFunc = Function.prototype.bind.call(func);
assert(newFunc(1), 'newFunc(1) !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-6.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-6.js
index 88da5973c..4188a07b6 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-6.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-6.js
@@ -8,12 +8,14 @@ description: >
'boundArgs' is 0, length of 'ExtraArgs' is 0, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- var func = function () {
- return this === obj && arguments.length === 0;
- };
+var func = function() {
+ return this === obj && arguments.length === 0;
+};
- var newFunc = Function.prototype.bind.call(func, obj);
+var newFunc = Function.prototype.bind.call(func, obj);
assert(newFunc(), 'newFunc() !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js
index 2e90afd02..a541eaaad 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js
@@ -8,12 +8,14 @@ description: >
'boundArgs' is 1, length of 'ExtraArgs' is 0, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- var func = function () {
- return this === obj && arguments[0] === 1;
- };
+var func = function() {
+ return this === obj && arguments[0] === 1;
+};
- var newFunc = Function.prototype.bind.call(func, obj, 1);
+var newFunc = Function.prototype.bind.call(func, obj, 1);
assert(newFunc(), 'newFunc() !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js
index 7203696e8..405ece18f 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js
@@ -8,12 +8,14 @@ description: >
'boundArgs' is 0, length of 'ExtraArgs' is 1, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- var func = function () {
- return this === obj && arguments[0] === 1;
- };
+var func = function() {
+ return this === obj && arguments[0] === 1;
+};
- var newFunc = Function.prototype.bind.call(func, obj);
+var newFunc = Function.prototype.bind.call(func, obj);
assert(newFunc(1), 'newFunc(1) !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js
index 496a18584..d3c13c4e4 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js
@@ -8,12 +8,14 @@ description: >
'boundArgs' is 1, length of 'ExtraArgs' is 1, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- var func = function () {
- return this === obj && arguments[0] === 1 && arguments[1] === 2;
- };
+var func = function() {
+ return this === obj && arguments[0] === 1 && arguments[1] === 2;
+};
- var newFunc = Function.prototype.bind.call(func, obj, 1);
+var newFunc = Function.prototype.bind.call(func, obj, 1);
assert(newFunc(2), 'newFunc(2) !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-1.js
index 5088d7335..b71c21678 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-1.js
@@ -9,16 +9,16 @@ description: >
[[TargetFunction]] when 'F' is called as constructor
---*/
- var func = function (x, y, z) {
- var objResult = {};
- objResult.returnValue = x + y + z;
- objResult.returnVerifyResult = arguments[0] === "a" && arguments.length === 3;
- return objResult;
- };
+var func = function(x, y, z) {
+ var objResult = {};
+ objResult.returnValue = x + y + z;
+ objResult.returnVerifyResult = arguments[0] === "a" && arguments.length === 3;
+ return objResult;
+};
- var NewFunc = Function.prototype.bind.call(func, {}, "a", "b", "c");
+var NewFunc = Function.prototype.bind.call(func, {}, "a", "b", "c");
- var newInstance = new NewFunc();
+var newInstance = new NewFunc();
assert(newInstance.hasOwnProperty("returnValue"), 'newInstance.hasOwnProperty("returnValue") !== true');
assert.sameValue(newInstance.returnValue, "abc", 'newInstance.returnValue');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-10.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-10.js
index c3a9014e1..182b4bcec 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-10.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-10.js
@@ -8,12 +8,12 @@ description: >
'boundArgs' is 0, length of 'ExtraArgs' is 1
---*/
- var func = function (x) {
- return new Boolean(arguments.length === 1 && x === 1 && arguments[0] === 1);
- };
+var func = function(x) {
+ return new Boolean(arguments.length === 1 && x === 1 && arguments[0] === 1);
+};
- var NewFunc = Function.prototype.bind.call(func, {});
+var NewFunc = Function.prototype.bind.call(func, {});
- var newInstance = new NewFunc(1);
+var newInstance = new NewFunc(1);
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-11.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-11.js
index 1d385d081..7588ba3c6 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-11.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-11.js
@@ -8,12 +8,12 @@ description: >
'boundArgs' is 0, length of 'ExtraArgs' is 2
---*/
- var func = function (x) {
- return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1);
- };
+var func = function(x) {
+ return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1);
+};
- var NewFunc = Function.prototype.bind.call(func, {});
+var NewFunc = Function.prototype.bind.call(func, {});
- var newInstance = new NewFunc(1, 2);
+var newInstance = new NewFunc(1, 2);
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-12.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-12.js
index 2a3ab1bf2..cc813fe58 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-12.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-12.js
@@ -8,12 +8,12 @@ description: >
'boundArgs' is 1, length of 'ExtraArgs' is 0
---*/
- var func = function (x) {
- return new Boolean(arguments.length === 1 && x === 1 && arguments[0] === 1);
- };
+var func = function(x) {
+ return new Boolean(arguments.length === 1 && x === 1 && arguments[0] === 1);
+};
- var NewFunc = Function.prototype.bind.call(func, {}, 1);
+var NewFunc = Function.prototype.bind.call(func, {}, 1);
- var newInstance = new NewFunc();
+var newInstance = new NewFunc();
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-13.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-13.js
index ad86f0904..d31433b28 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-13.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-13.js
@@ -8,12 +8,12 @@ description: >
'boundArgs' is 1, length of 'ExtraArgs' is 1
---*/
- var func = function (x) {
- return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1);
- };
+var func = function(x) {
+ return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1);
+};
- var NewFunc = Function.prototype.bind.call(func, {}, 1);
+var NewFunc = Function.prototype.bind.call(func, {}, 1);
- var newInstance = new NewFunc(2);
+var newInstance = new NewFunc(2);
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-14.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-14.js
index e893ad5a8..2650b236f 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-14.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-14.js
@@ -8,12 +8,12 @@ description: >
'boundArgs' is 2, length of 'ExtraArgs' is 0
---*/
- var func = function (x) {
- return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1);
- };
+var func = function(x) {
+ return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1);
+};
- var NewFunc = Function.prototype.bind.call(func, {}, 1, 2);
+var NewFunc = Function.prototype.bind.call(func, {}, 1, 2);
- var newInstance = new NewFunc();
+var newInstance = new NewFunc();
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-2.js
index cdee9fae6..4109332f1 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-2.js
@@ -9,16 +9,16 @@ description: >
[[TargetFunction]] when 'F' is called as constructor
---*/
- var func = function (x, y, z) {
- var objResult = {};
- objResult.returnValue = x + y + z;
- objResult.returnVerifyResult = arguments[0] === "a" && arguments.length === 3;
- return objResult;
- };
+var func = function(x, y, z) {
+ var objResult = {};
+ objResult.returnValue = x + y + z;
+ objResult.returnVerifyResult = arguments[0] === "a" && arguments.length === 3;
+ return objResult;
+};
- var NewFunc = Function.prototype.bind.call(func, {});
+var NewFunc = Function.prototype.bind.call(func, {});
- var newInstance = new NewFunc("a", "b", "c");
+var newInstance = new NewFunc("a", "b", "c");
assert(newInstance.hasOwnProperty("returnValue"), 'newInstance.hasOwnProperty("returnValue") !== true');
assert.sameValue(newInstance.returnValue, "abc", 'newInstance.returnValue');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-3.js
index 535e38e0e..4e191f160 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-3.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-3.js
@@ -9,12 +9,12 @@ description: >
'boundThis'
---*/
- var func = function () {
- return new Boolean(arguments.length === 0);
- };
+var func = function() {
+ return new Boolean(arguments.length === 0);
+};
- var NewFunc = Function.prototype.bind.call(func);
+var NewFunc = Function.prototype.bind.call(func);
- var newInstance = new NewFunc();
+var newInstance = new NewFunc();
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-4.js
index 2fdf32fd3..c668db2ac 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-4.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-4.js
@@ -9,12 +9,12 @@ description: >
'boundThis'
---*/
- var func = function () {
- return new Boolean(arguments[0] === 1 && arguments.length === 1);
- };
+var func = function() {
+ return new Boolean(arguments[0] === 1 && arguments.length === 1);
+};
- var NewFunc = Function.prototype.bind.call(func);
+var NewFunc = Function.prototype.bind.call(func);
- var newInstance = new NewFunc(1);
+var newInstance = new NewFunc(1);
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-5.js
index 1bc2037b5..dc04a872e 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-5.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-5.js
@@ -8,16 +8,18 @@ description: >
'boundArgs' is 0, length of 'ExtraArgs' is 0, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- Object.prototype.verifyThis = "verifyThis";
- var func = function () {
- return new Boolean(arguments.length === 0 && Object.prototype.toString.call(this) === "[object Object]" &&
- this.verifyThis === "verifyThis");
- };
+Object.prototype.verifyThis = "verifyThis";
+var func = function() {
+ return new Boolean(arguments.length === 0 && Object.prototype.toString.call(this) === "[object Object]" &&
+ this.verifyThis === "verifyThis");
+};
- var NewFunc = Function.prototype.bind.call(func, obj);
+var NewFunc = Function.prototype.bind.call(func, obj);
- var newInstance = new NewFunc();
+var newInstance = new NewFunc();
assert(newInstance.valueOf(), 'newInstance.valueOf() !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-6.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-6.js
index 1afb3b7cf..90fe291b0 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-6.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-6.js
@@ -8,12 +8,12 @@ description: >
'boundArgs' is 1, length of 'ExtraArgs' is 0
---*/
- var func = function () {
- return new Boolean(arguments.length === 1 && arguments[0] === 1);
- };
+var func = function() {
+ return new Boolean(arguments.length === 1 && arguments[0] === 1);
+};
- var NewFunc = Function.prototype.bind.call(func, {}, 1);
+var NewFunc = Function.prototype.bind.call(func, {}, 1);
- var newInstance = new NewFunc();
+var newInstance = new NewFunc();
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-7.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-7.js
index 085e9545e..217c01c90 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-7.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-7.js
@@ -8,12 +8,12 @@ description: >
'boundArgs' is 0, length of 'ExtraArgs' is 1
---*/
- var func = function () {
- return new Boolean(arguments.length === 1 && arguments[0] === 1);
- };
+var func = function() {
+ return new Boolean(arguments.length === 1 && arguments[0] === 1);
+};
- var NewFunc = Function.prototype.bind.call(func, {});
+var NewFunc = Function.prototype.bind.call(func, {});
- var newInstance = new NewFunc(1);
+var newInstance = new NewFunc(1);
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-8.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-8.js
index 4207a187c..2dc27e06c 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-8.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-8.js
@@ -8,12 +8,12 @@ description: >
'boundArgs' is 1, length of 'ExtraArgs' is 1
---*/
- var func = function () {
- return new Boolean(arguments.length === 2 && arguments[0] === 1 && arguments[1] === 2);
- };
+var func = function() {
+ return new Boolean(arguments.length === 2 && arguments[0] === 1 && arguments[1] === 2);
+};
- var NewFunc = Function.prototype.bind.call(func, {}, 1);
+var NewFunc = Function.prototype.bind.call(func, {}, 1);
- var newInstance = new NewFunc(2);
+var newInstance = new NewFunc(2);
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-9.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-9.js
index 4c25b405d..ff53ee612 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-9.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-9.js
@@ -8,12 +8,12 @@ description: >
'boundArgs' is 0, length of 'ExtraArgs' is 0
---*/
- var func = function (x) {
- return new Boolean(arguments.length === 0 && typeof x === "undefined");
- };
+var func = function(x) {
+ return new Boolean(arguments.length === 0 && typeof x === "undefined");
+};
- var NewFunc = Function.prototype.bind.call(func, {});
+var NewFunc = Function.prototype.bind.call(func, {});
- var newInstance = new NewFunc();
+var newInstance = new NewFunc();
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/S15.3.4.5_A1.js b/test/built-ins/Function/prototype/bind/S15.3.4.5_A1.js
index 02d66d06d..cae9bb2ae 100644
--- a/test/built-ins/Function/prototype/bind/S15.3.4.5_A1.js
+++ b/test/built-ins/Function/prototype/bind/S15.3.4.5_A1.js
@@ -7,9 +7,14 @@ es5id: 15.3.4.5_A1
description: A bound function should fail to find its "caller"
---*/
-function foo() { return bar.caller; }
+function foo() {
+ return bar.caller;
+}
var bar = foo.bind({});
-function baz() { return bar(); }
+
+function baz() {
+ return bar();
+}
assert.throws(TypeError, function() {
baz();
diff --git a/test/built-ins/Function/prototype/bind/S15.3.4.5_A16.js b/test/built-ins/Function/prototype/bind/S15.3.4.5_A16.js
index 92d5f82d8..b53e5d61c 100644
--- a/test/built-ins/Function/prototype/bind/S15.3.4.5_A16.js
+++ b/test/built-ins/Function/prototype/bind/S15.3.4.5_A16.js
@@ -17,7 +17,7 @@ if (typeof re === 'function') {
try {
Function.prototype.bind.call(re, undefined);
$ERROR('#1: If IsCallable(func) is false, ' +
- 'then (bind should) throw a TypeError exception');
+ 'then (bind should) throw a TypeError exception');
} catch (e) {
if (!(e instanceof TypeError)) {
$ERROR('#1: TypeError expected. Actual: ' + e);
diff --git a/test/built-ins/Function/prototype/bind/S15.3.4.5_A2.js b/test/built-ins/Function/prototype/bind/S15.3.4.5_A2.js
index 25ef64935..d7dd27869 100644
--- a/test/built-ins/Function/prototype/bind/S15.3.4.5_A2.js
+++ b/test/built-ins/Function/prototype/bind/S15.3.4.5_A2.js
@@ -7,9 +7,14 @@ es5id: 15.3.4.5_A2
description: a bound function should fail to find the bound function "arguments"
---*/
-function foo() { return bar.arguments; }
+function foo() {
+ return bar.arguments;
+}
var bar = foo.bind({});
-function baz() { return bar(); }
+
+function baz() {
+ return bar();
+}
assert.throws(TypeError, function() {
baz();
diff --git a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget-bound.js b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget-bound.js
index 465b4664e..97e37f9e4 100644
--- a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget-bound.js
+++ b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget-bound.js
@@ -16,6 +16,7 @@ features: [Reflect, new.target]
---*/
var newTarget;
+
function A() {
newTarget = new.target;
}
diff --git a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget.js b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget.js
index b889634db..a8b869699 100644
--- a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget.js
+++ b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget.js
@@ -15,6 +15,7 @@ features: [Reflect, new.target]
---*/
var newTarget;
+
function A() {
newTarget = new.target;
}
diff --git a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-new.js b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-new.js
index f183dbf79..5177da492 100644
--- a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-new.js
+++ b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-new.js
@@ -14,6 +14,7 @@ features: [new.target]
---*/
var newTarget;
+
function A() {
newTarget = new.target;
}
diff --git a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-reflect.js b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-reflect.js
index 8664a6eea..fa8a94894 100644
--- a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-reflect.js
+++ b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-reflect.js
@@ -15,6 +15,7 @@ features: [Reflect, new.target]
---*/
var newTarget;
+
function A() {
newTarget = new.target;
}
diff --git a/test/built-ins/Function/prototype/bind/instance-name-chained.js b/test/built-ins/Function/prototype/bind/instance-name-chained.js
index a9ad72bb8..2b8ce18d6 100644
--- a/test/built-ins/Function/prototype/bind/instance-name-chained.js
+++ b/test/built-ins/Function/prototype/bind/instance-name-chained.js
@@ -13,7 +13,9 @@ info: |
includes: [propertyHelper.js]
---*/
-var target = Object.defineProperty(function() {}, 'name', { value: 'target' });
+var target = Object.defineProperty(function() {}, 'name', {
+ value: 'target'
+});
assert.sameValue(target.bind().bind().name, 'bound bound target');
verifyNotEnumerable(target.bind().bind(), 'name');
diff --git a/test/built-ins/Function/prototype/bind/instance-name-non-string.js b/test/built-ins/Function/prototype/bind/instance-name-non-string.js
index 4ef412a19..63e74038d 100644
--- a/test/built-ins/Function/prototype/bind/instance-name-non-string.js
+++ b/test/built-ins/Function/prototype/bind/instance-name-non-string.js
@@ -16,42 +16,54 @@ features: [Symbol]
var target;
-target = Object.defineProperty(function() {}, 'name', { value: undefined });
+target = Object.defineProperty(function() {}, 'name', {
+ value: undefined
+});
assert.sameValue(target.bind().name, 'bound ');
verifyNotEnumerable(target.bind(), 'name');
verifyNotWritable(target.bind(), 'name');
verifyConfigurable(target.bind(), 'name');
-target = Object.defineProperty(function() {}, 'name', { value: null });
+target = Object.defineProperty(function() {}, 'name', {
+ value: null
+});
assert.sameValue(target.bind().name, 'bound ');
verifyNotEnumerable(target.bind(), 'name');
verifyNotWritable(target.bind(), 'name');
verifyConfigurable(target.bind(), 'name');
-target = Object.defineProperty(function() {}, 'name', { value: true });
+target = Object.defineProperty(function() {}, 'name', {
+ value: true
+});
assert.sameValue(target.bind().name, 'bound ');
verifyNotEnumerable(target.bind(), 'name');
verifyNotWritable(target.bind(), 'name');
verifyConfigurable(target.bind(), 'name');
-target = Object.defineProperty(function() {}, 'name', { value: Symbol('s') });
+target = Object.defineProperty(function() {}, 'name', {
+ value: Symbol('s')
+});
assert.sameValue(target.bind().name, 'bound ');
verifyNotEnumerable(target.bind(), 'name');
verifyNotWritable(target.bind(), 'name');
verifyConfigurable(target.bind(), 'name');
-target = Object.defineProperty(function() {}, 'name', { value: 23 });
+target = Object.defineProperty(function() {}, 'name', {
+ value: 23
+});
assert.sameValue(target.bind().name, 'bound ');
verifyNotEnumerable(target.bind(), 'name');
verifyNotWritable(target.bind(), 'name');
verifyConfigurable(target.bind(), 'name');
-target = Object.defineProperty(function() {}, 'name', { value: {} });
+target = Object.defineProperty(function() {}, 'name', {
+ value: {}
+});
assert.sameValue(target.bind().name, 'bound ');
verifyNotEnumerable(target.bind(), 'name');
diff --git a/test/built-ins/Function/prototype/bind/instance-name.js b/test/built-ins/Function/prototype/bind/instance-name.js
index 1750d98d1..b69f8c655 100644
--- a/test/built-ins/Function/prototype/bind/instance-name.js
+++ b/test/built-ins/Function/prototype/bind/instance-name.js
@@ -12,7 +12,9 @@ info: |
includes: [propertyHelper.js]
---*/
-var target = Object.defineProperty(function() {}, 'name', { value: 'target' });
+var target = Object.defineProperty(function() {}, 'name', {
+ value: 'target'
+});
assert.sameValue(target.bind().name, 'bound target');
verifyNotEnumerable(target.bind(), 'name');
diff --git a/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js b/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js
index 76e163d46..1963de281 100644
--- a/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js
+++ b/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js
@@ -23,7 +23,7 @@ var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;
-var D = function(){}.bind();
+var D = function() {}.bind();
var d = Reflect.construct(D, [], C);
diff --git a/test/built-ins/Function/prototype/call/15.3.4.4-1-s.js b/test/built-ins/Function/prototype/call/15.3.4.4-1-s.js
index a4f618bb1..a7e12df0d 100644
--- a/test/built-ins/Function/prototype/call/15.3.4.4-1-s.js
+++ b/test/built-ins/Function/prototype/call/15.3.4.4-1-s.js
@@ -10,8 +10,8 @@ description: >
flags: [onlyStrict]
---*/
- function fun() {
- return (this instanceof String);
- }
+function fun() {
+ return (this instanceof String);
+}
assert.sameValue(fun.call(""), false, 'fun.call("")');
diff --git a/test/built-ins/Function/prototype/call/15.3.4.4-2-s.js b/test/built-ins/Function/prototype/call/15.3.4.4-2-s.js
index 687003b5c..27563643a 100644
--- a/test/built-ins/Function/prototype/call/15.3.4.4-2-s.js
+++ b/test/built-ins/Function/prototype/call/15.3.4.4-2-s.js
@@ -10,8 +10,8 @@ description: >
flags: [onlyStrict]
---*/
- function fun() {
- return (this instanceof Number);
- }
+function fun() {
+ return (this instanceof Number);
+}
assert.sameValue(fun.call(-12), false, 'fun.call(-12)');
diff --git a/test/built-ins/Function/prototype/call/15.3.4.4-3-s.js b/test/built-ins/Function/prototype/call/15.3.4.4-3-s.js
index a92bdea11..cc7fb1998 100644
--- a/test/built-ins/Function/prototype/call/15.3.4.4-3-s.js
+++ b/test/built-ins/Function/prototype/call/15.3.4.4-3-s.js
@@ -10,8 +10,8 @@ description: >
flags: [onlyStrict]
---*/
- function fun() {
- return (this instanceof Boolean);
- }
+function fun() {
+ return (this instanceof Boolean);
+}
assert.sameValue(fun.call(false), false, 'fun.call(false)');
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A10.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A10.js
index dd8819d49..bf2aa724c 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A10.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A10.js
@@ -17,7 +17,9 @@ if (!(Function.prototype.call.hasOwnProperty('length'))) {
var obj = Function.prototype.call.length;
-verifyNotWritable(Function.prototype.call, "length", null, function(){return "shifted";});
+verifyNotWritable(Function.prototype.call, "length", null, function() {
+ return "shifted";
+});
//CHECK#2
if (Function.prototype.call.length !== obj) {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A11.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A11.js
index c9be0531d..830678ae9 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A11.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A11.js
@@ -21,7 +21,7 @@ if (Function.prototype.call.propertyIsEnumerable('length')) {
}
// CHECK#2
-for (var p in Function.prototype.call){
- if (p==="length")
+for (var p in Function.prototype.call) {
+ if (p === "length")
$ERROR('#2: the Function.prototype.call.length property has the attributes DontEnum');
}
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A12.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A12.js
index a75e65fcb..dde3a6c71 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A12.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A12.js
@@ -11,5 +11,5 @@ description: >
//CHECK#1
if (Function.prototype.call.prototype !== undefined) {
- $ERROR('#1: Function.prototype.call has not prototype property'+Function.prototype.call.prototype);
+ $ERROR('#1: Function.prototype.call has not prototype property' + Function.prototype.call.prototype);
}
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A16.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A16.js
index 2bde783dd..383666a13 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A16.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A16.js
@@ -17,7 +17,7 @@ if (typeof re === 'function') {
try {
Function.prototype.bind.call(re, undefined);
$ERROR('#1: If IsCallable(func) is false, ' +
- 'then (bind should) throw a TypeError exception');
+ 'then (bind should) throw a TypeError exception');
} catch (e) {
if (!(e instanceof TypeError)) {
$ERROR('#1: TypeError expected. Actual: ' + e);
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T1.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T1.js
index 993391795..7d3f3dddb 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T1.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T1.js
@@ -12,11 +12,11 @@ description: >
property. Prototype of the object is Function()
---*/
-var proto=Function();
+var proto = Function();
-function FACTORY(){};
+function FACTORY() {};
-FACTORY.prototype=proto;
+FACTORY.prototype = proto;
var obj = new FACTORY;
@@ -31,6 +31,6 @@ try {
$ERROR('#2: If the object does not have a [[Call]] property, a TypeError exception is thrown');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown');
+ $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown');
}
}
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T2.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T2.js
index a07cbd0ef..de04b43dd 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T2.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T2.js
@@ -12,9 +12,9 @@ description: >
property. Prototype of the object is Function.prototype
---*/
-function FACTORY(){};
+function FACTORY() {};
-FACTORY.prototype=Function.prototype;
+FACTORY.prototype = Function.prototype;
var obj = new FACTORY;
@@ -29,6 +29,6 @@ try {
$ERROR('#2: If the object does not have a [[Call]] property, a TypeError exception is thrown');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown');
+ $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown');
}
}
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A2_T2.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A2_T2.js
index 45f06ff71..a6c9d6ead 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A2_T2.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A2_T2.js
@@ -7,7 +7,7 @@ es5id: 15.3.4.4_A2_T2
description: Checking f.call.length, where f is new Function
---*/
-var f=new Function;
+var f = new Function;
//CHECK#1
if (typeof f.call !== "function") {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T5.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T5.js
index de55a0129..df370cdee 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T5.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T5.js
@@ -11,7 +11,7 @@ description: >
declaration
---*/
-function FACTORY(){
+function FACTORY() {
Function("this.feat=\"in da haus\"").call();
};
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T6.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T6.js
index 20a4d2fad..297d48abf 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T6.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T6.js
@@ -12,8 +12,10 @@ description: >
flags: [noStrict]
---*/
-function FACTORY(){
- (function(){this.feat="kamon beyba"}).call(null);
+function FACTORY() {
+ (function() {
+ this.feat = "kamon beyba"
+ }).call(null);
};
var obj = new FACTORY;
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T7.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T7.js
index b31ef5ae4..d6a3e721b 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T7.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T7.js
@@ -11,7 +11,7 @@ description: >
declaration
---*/
-(function FACTORY(){
+(function FACTORY() {
Function("this.feat=\"in da haus\"").call(void 0);
})();
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T8.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T8.js
index 06362d1a0..60ec21eb9 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T8.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T8.js
@@ -12,8 +12,10 @@ description: >
flags: [noStrict]
---*/
-(function FACTORY(){
- (function(){this.feat="kamon beyba"}).call(undefined);
+(function FACTORY() {
+ (function() {
+ this.feat = "kamon beyba"
+ }).call(undefined);
})();
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T9.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T9.js
index ead02bfc2..94e0aecc7 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T9.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T9.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.4_A3_T9
description: Checking by using eval, argument at call function is void 0
---*/
-eval( " Function(\"this.feat=1\").call(void 0) " );
+eval(" Function(\"this.feat=1\").call(void 0) ");
//CHECK#1
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T1.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T1.js
index 7e09b3902..91db8755e 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T1.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T1.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.4_A5_T1
description: thisArg is number
---*/
-var obj=1;
+var obj = 1;
var retobj = Function("this.touched= true; return this;").call(obj);
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T2.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T2.js
index dd6f658ce..84b8fc456 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T2.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T2.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.4_A5_T2
description: thisArg is boolean true
---*/
-var obj=true;
+var obj = true;
var retobj = new Function("this.touched= true; return this;").call(obj);
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T3.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T3.js
index d71867222..b4d2167fd 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T3.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T3.js
@@ -10,9 +10,12 @@ description: thisArg is string
flags: [noStrict]
---*/
-var obj="soap";
+var obj = "soap";
-var retobj = ( function(){this.touched= true; return this;} ).call(obj);
+var retobj = (function() {
+ this.touched = true;
+ return this;
+}).call(obj);
//CHECK#1
if (typeof obj.touched !== "undefined") {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js
index b0799cf00..23fa06219 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js
@@ -10,7 +10,10 @@ description: thisArg is function variable that return this
flags: [noStrict]
---*/
-var f = function(){this.touched= true; return this;};
+var f = function() {
+ this.touched = true;
+ return this;
+};
var retobj = f.call(obj);
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js
index a2e307928..9857f09e4 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js
@@ -9,9 +9,11 @@ es5id: 15.3.4.4_A5_T5
description: thisArg is function variable
---*/
-var f = function(){this.touched= true;};
+var f = function() {
+ this.touched = true;
+};
-var obj={};
+var obj = {};
f.call(obj);
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js
index e8fe5d4d8..7ffe1a4d6 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js
@@ -9,9 +9,11 @@ es5id: 15.3.4.4_A5_T6
description: thisArg is new String()
---*/
-var obj=new String("soap");
+var obj = new String("soap");
-( function(){this.touched= true;}).call(obj);
+(function() {
+ this.touched = true;
+}).call(obj);
//CHECK#1
if (!(obj.touched)) {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T7.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T7.js
index 7cbce9229..9dc90b7ca 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T7.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T7.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.4_A5_T7
description: thisArg is new Number()
---*/
-var obj=new Number(1);
+var obj = new Number(1);
Function("this.touched= true;").call(obj);
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T8.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T8.js
index debf82396..9955eb6d5 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T8.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T8.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.4_A5_T8
description: thisArg is Function()
---*/
-var obj=Function();
+var obj = Function();
new Function("this.touched= true; return this;").call(obj);
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T1.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T1.js
index f8e0aba15..089063475 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T1.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T1.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.4_A6_T1
description: Argunemts of call function is (null,[1])
---*/
-Function("a1,a2,a3","this.shifted=a1;").call(null,[1]);
+Function("a1,a2,a3", "this.shifted=a1;").call(null, [1]);
//CHECK#1
if (this["shifted"].constructor !== Array) {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T10.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T10.js
index fed1b7aad..be97b1f58 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T10.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T10.js
@@ -11,11 +11,11 @@ description: >
inside function call without declaration used
---*/
-var obj={};
+var obj = {};
-(function (){
- Function("a1,a2,a3","this.shifted=a1.length+a2+a3;").call(obj,arguments,"","2");
-})("",4,2,"a");
+(function() {
+ Function("a1,a2,a3", "this.shifted=a1.length+a2+a3;").call(obj, arguments, "", "2");
+})("", 4, 2, "a");
//CHECK#1
if (obj["shifted"] !== "42") {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T2.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T2.js
index 989080fa0..5620f4077 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T2.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T2.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.4_A6_T2
description: Argunemts of call function is (null,[3,2,1])
---*/
-new Function("a1,a2","a3","this.shifted=a1;").call(null,[3,2,1]);
+new Function("a1,a2", "a3", "this.shifted=a1;").call(null, [3, 2, 1]);
//CHECK#1
if (this["shifted"].length !== 3) {
@@ -17,6 +17,6 @@ if (this["shifted"].length !== 3) {
}
//CHECK#2
-if ((this["shifted"][0] !== 3)||(this["shifted"][1] !== 2)||(this["shifted"][2] !== 1)) {
+if ((this["shifted"][0] !== 3) || (this["shifted"][1] !== 2) || (this["shifted"][2] !== 1)) {
$ERROR('#2: The call method takes one or more arguments, thisArg and (optionally) arg1, arg2 etc, and performs a function call using the [[Call]] property of the object');
}
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T3.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T3.js
index b70556e03..05368a6c2 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T3.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T3.js
@@ -11,13 +11,17 @@ description: >
Array("nine","inch","nails"))
---*/
-var i=0;
+var i = 0;
-var p={toString:function(){return "a"+(++i);}};
+var p = {
+ toString: function() {
+ return "a" + (++i);
+ }
+};
-var obj={};
+var obj = {};
-Function(p,"a2,a3","this.shifted=a1;").call(obj, new Array("nine","inch","nails"));
+Function(p, "a2,a3", "this.shifted=a1;").call(obj, new Array("nine", "inch", "nails"));
//CHECK#1
if (obj["shifted"].length !== 3) {
@@ -25,7 +29,7 @@ if (obj["shifted"].length !== 3) {
}
//CHECK#2
-if ((obj["shifted"][0] !== "nine")||(obj["shifted"][1] !== "inch")||(obj["shifted"][2] !== "nails")) {
+if ((obj["shifted"][0] !== "nine") || (obj["shifted"][1] !== "inch") || (obj["shifted"][2] !== "nails")) {
$ERROR('#2: The call method takes one or more arguments, thisArg and (optionally) arg1, arg2 etc, and performs a function call using the [[Call]] property of the object');
}
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js
index 5b51b1d8e..312557514 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js
@@ -11,13 +11,19 @@ description: >
arguments;})("a","b","c","d"),"",2)
---*/
-var i=0;
+var i = 0;
-var p={toString:function(){return "a"+(++i);}};
+var p = {
+ toString: function() {
+ return "a" + (++i);
+ }
+};
-var obj={};
+var obj = {};
-new Function(p,p,p, "this.shifted=a3+a2+a1.length;").call( obj,( function(){return arguments;})("a","b","c","d"),"",2 );
+new Function(p, p, p, "this.shifted=a3+a2+a1.length;").call(obj, (function() {
+ return arguments;
+})("a", "b", "c", "d"), "", 2);
//CHECK#1
if (obj["shifted"] !== "24") {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T5.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T5.js
index b049d45ce..ac798300c 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T5.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T5.js
@@ -11,11 +11,11 @@ description: >
function declaration used
---*/
-function FACTORY(){
- Function("a1,a2,a3","this.shifted=a1.length+a2+a3;").call(null,arguments,"",2);
+function FACTORY() {
+ Function("a1,a2,a3", "this.shifted=a1.length+a2+a3;").call(null, arguments, "", 2);
}
-var obj=new FACTORY("",1,2,"A");
+var obj = new FACTORY("", 1, 2, "A");
//CHECK#1
if (this["shifted"] !== "42") {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T6.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T6.js
index 597feba63..7956ab5ac 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T6.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T6.js
@@ -11,11 +11,11 @@ description: >
function declaration used
---*/
-function FACTORY(){
- Function("a1,a2,a3","this.shifted=a1.length+a2+a3;").call(this,arguments,"",2);
+function FACTORY() {
+ Function("a1,a2,a3", "this.shifted=a1.length+a2+a3;").call(this, arguments, "", 2);
}
-var obj=new FACTORY("",4,2,"A");
+var obj = new FACTORY("", 4, 2, "A");
//CHECK#1
if (obj["shifted"] !== "42") {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T7.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T7.js
index cfce0647d..2c29c4725 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T7.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T7.js
@@ -11,9 +11,9 @@ description: >
function call without declaration used
---*/
-(function (){
- Function("a1,a2,a3","this.shifted=a1.length+a2+a3;").call(null,arguments,"",2);
-})("",1,2,true);
+(function() {
+ Function("a1,a2,a3", "this.shifted=a1.length+a2+a3;").call(null, arguments, "", 2);
+})("", 1, 2, true);
//CHECK#1
if (this["shifted"] !== "42") {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T8.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T8.js
index 9601af80c..1978d9acf 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T8.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T8.js
@@ -11,9 +11,9 @@ description: >
function call without declaration used
---*/
-(function (){
- Function("a1,a2,a3","this.shifted=a1.length+a2+a3;").call(this,arguments,"",2);
-})("",4,2,null);
+(function() {
+ Function("a1,a2,a3", "this.shifted=a1.length+a2+a3;").call(this, arguments, "", 2);
+})("", 4, 2, null);
//CHECK#2
if (this["shifted"] !== "42") {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T9.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T9.js
index d93a3e2a1..99bf13b9d 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T9.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T9.js
@@ -11,13 +11,13 @@ description: >
inside function declaration used
---*/
-function FACTORY(){
+function FACTORY() {
var obj = {};
- Function("a1,a2,a3","this.shifted=a1+a2.length+a3;").call(obj,"",arguments,2);
+ Function("a1,a2,a3", "this.shifted=a1+a2.length+a3;").call(obj, "", arguments, 2);
return obj;
}
-var obj=new FACTORY("",1,2,void 0);
+var obj = new FACTORY("", 1, 2, void 0);
//CHECK#1
if (typeof this["shifted"] !== "undefined") {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T4.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T4.js
index f3dee9603..7cec40c13 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T4.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T4.js
@@ -8,7 +8,7 @@ description: Checking if creating "new (Function("this.p1=1").call)" fails
---*/
try {
- var obj = new (Function("this.p1=1").call);
+ var obj = new(Function("this.p1=1").call);
$ERROR('#1: Function.prototype.call can\'t be used as [[Construct]] caller');
} catch (e) {
if (!(e instanceof TypeError)) {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T6.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T6.js
index d88e10c02..8bf0e67bb 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T6.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T6.js
@@ -11,12 +11,12 @@ description: >
//CHECK#1
try {
- var obj = new (Function("function f(){this.p1=1;};return f").call());
+ var obj = new(Function("function f(){this.p1=1;};return f").call());
} catch (e) {
$ERROR('#1: Function.prototype.call can\'t be used as [[Construct]] caller');
}
//CHECK#2
-if (obj.p1!== 1) {
+if (obj.p1 !== 1) {
$ERROR('#2: Function.prototype.call can\'t be used as [[Construct]] caller');
}
diff --git a/test/built-ins/Function/prototype/restricted-property-arguments.js b/test/built-ins/Function/prototype/restricted-property-arguments.js
index 5010b3dee..1faf047ba 100644
--- a/test/built-ins/Function/prototype/restricted-property-arguments.js
+++ b/test/built-ins/Function/prototype/restricted-property-arguments.js
@@ -17,7 +17,7 @@ assert.sameValue(typeof descriptor.set, 'function', '%FunctionPrototype%.argumen
assert.sameValue(descriptor.get, descriptor.set, '%FunctionPrototype%.arguments getter/setter are both %ThrowTypeError%');
assert.throws(TypeError, function() {
- return FunctionPrototype.arguments;
+ return FunctionPrototype.arguments;
});
assert.throws(TypeError, function() {
diff --git a/test/built-ins/Function/prototype/restricted-property-caller.js b/test/built-ins/Function/prototype/restricted-property-caller.js
index bd4003298..e069ee7c9 100644
--- a/test/built-ins/Function/prototype/restricted-property-caller.js
+++ b/test/built-ins/Function/prototype/restricted-property-caller.js
@@ -18,7 +18,7 @@ assert.sameValue(typeof descriptor.set, 'function', '%FunctionPrototype%.caller
assert.sameValue(descriptor.get, descriptor.set, '%FunctionPrototype%.caller getter/setter are both %ThrowTypeError%');
assert.throws(TypeError, function() {
- return FunctionPrototype.caller;
+ return FunctionPrototype.caller;
});
assert.throws(TypeError, function() {
diff --git a/test/built-ins/Function/prototype/toString/AsyncFunction.js b/test/built-ins/Function/prototype/toString/AsyncFunction.js
index 804d9e17f..c9d1d4495 100644
--- a/test/built-ins/Function/prototype/toString/AsyncFunction.js
+++ b/test/built-ins/Function/prototype/toString/AsyncFunction.js
@@ -11,5 +11,5 @@ features: [async-functions]
---*/
async function f() {}
var AsyncFunction = f.constructor;
-var g = /* before */AsyncFunction("a", " /* a */ b, c /* b */ //", "/* c */ ; /* d */ //")/* after */;
+var g = /* before */ AsyncFunction("a", " /* a */ b, c /* b */ //", "/* c */ ; /* d */ //") /* after */ ;
assert.sameValue(g.toString(), "async function anonymous(a, /* a */ b, c /* b */ //\n) {\n/* c */ ; /* d */ //\n}");
diff --git a/test/built-ins/Function/prototype/toString/AsyncGenerator.js b/test/built-ins/Function/prototype/toString/AsyncGenerator.js
index 43cce215e..de753afdd 100644
--- a/test/built-ins/Function/prototype/toString/AsyncGenerator.js
+++ b/test/built-ins/Function/prototype/toString/AsyncGenerator.js
@@ -12,5 +12,5 @@ features: [async-iteration]
async function* f() {}
var AsyncGenerator = f.constructor;
-var g = /* before */AsyncGenerator("a", " /* a */ b, c /* b */ //", "/* c */ ; /* d */ //")/* after */;
+var g = /* before */ AsyncGenerator("a", " /* a */ b, c /* b */ //", "/* c */ ; /* d */ //") /* after */ ;
assert.sameValue(g.toString(), "async function* anonymous(a, /* a */ b, c /* b */ //\n) {\n/* c */ ; /* d */ //\n}");
diff --git a/test/built-ins/Function/prototype/toString/Function.js b/test/built-ins/Function/prototype/toString/Function.js
index 2f0362a8d..dd75ab84f 100644
--- a/test/built-ins/Function/prototype/toString/Function.js
+++ b/test/built-ins/Function/prototype/toString/Function.js
@@ -6,6 +6,6 @@ esid: sec-createdynamicfunction
description: Function.prototype.toString on a function created with the Function constructor
---*/
-let f = /* before */Function("a", " /* a */ b, c /* b */ //", "/* c */ ; /* d */ //")/* after */;
+let f = /* before */ Function("a", " /* a */ b, c /* b */ //", "/* c */ ; /* d */ //") /* after */ ;
assert.sameValue(f.toString(), "function anonymous(a, /* a */ b, c /* b */ //\n) {\n/* c */ ; /* d */ //\n}");
diff --git a/test/built-ins/Function/prototype/toString/GeneratorFunction.js b/test/built-ins/Function/prototype/toString/GeneratorFunction.js
index 523f1cd2a..35a5a7a7e 100644
--- a/test/built-ins/Function/prototype/toString/GeneratorFunction.js
+++ b/test/built-ins/Function/prototype/toString/GeneratorFunction.js
@@ -7,7 +7,7 @@ description: Function.prototype.toString on a generator function created with th
features: [generators]
---*/
-let GeneratorFunction = Object.getPrototypeOf(function*(){}).constructor;
-let g = /* before */GeneratorFunction("a", " /* a */ b, c /* b */ //", "/* c */ yield yield; /* d */ //")/* after */;
+let GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor;
+let g = /* before */ GeneratorFunction("a", " /* a */ b, c /* b */ //", "/* c */ yield yield; /* d */ //") /* after */ ;
assert.sameValue(g.toString(), "function* anonymous(a, /* a */ b, c /* b */ //\n) {\n/* c */ yield yield; /* d */ //\n}");
diff --git a/test/built-ins/Function/prototype/toString/S15.3.4.2_A10.js b/test/built-ins/Function/prototype/toString/S15.3.4.2_A10.js
index 7391b67ed..99c46fb0e 100644
--- a/test/built-ins/Function/prototype/toString/S15.3.4.2_A10.js
+++ b/test/built-ins/Function/prototype/toString/S15.3.4.2_A10.js
@@ -17,7 +17,9 @@ if (!(Function.prototype.toString.hasOwnProperty('length'))) {
var obj = Function.prototype.toString.length;
-verifyNotWritable(Function.prototype.toString, "length", null, function(){return "shifted";});
+verifyNotWritable(Function.prototype.toString, "length", null, function() {
+ return "shifted";
+});
//CHECK#2
if (Function.prototype.toString.length !== obj) {
diff --git a/test/built-ins/Function/prototype/toString/S15.3.4.2_A16.js b/test/built-ins/Function/prototype/toString/S15.3.4.2_A16.js
index 4cba0c3b5..5f367dd45 100644
--- a/test/built-ins/Function/prototype/toString/S15.3.4.2_A16.js
+++ b/test/built-ins/Function/prototype/toString/S15.3.4.2_A16.js
@@ -12,7 +12,9 @@ description: >
bound to that object.
---*/
-var obj = {toString: Function.prototype.toString};
+var obj = {
+ toString: Function.prototype.toString
+};
assert.throws(TypeError, function() {
String(obj);
diff --git a/test/built-ins/Function/prototype/toString/S15.3.4.2_A6.js b/test/built-ins/Function/prototype/toString/S15.3.4.2_A6.js
index a3d4e3b16..e85937944 100644
--- a/test/built-ins/Function/prototype/toString/S15.3.4.2_A6.js
+++ b/test/built-ins/Function/prototype/toString/S15.3.4.2_A6.js
@@ -11,5 +11,5 @@ description: >
//CHECK#1
if (Function.prototype.toString.prototype !== undefined) {
- $ERROR('#1: Function.prototype.toString has not prototype property'+Function.prototype.toString.prototype);
+ $ERROR('#1: Function.prototype.toString has not prototype property' + Function.prototype.toString.prototype);
}
diff --git a/test/built-ins/Function/prototype/toString/S15.3.4.2_A8.js b/test/built-ins/Function/prototype/toString/S15.3.4.2_A8.js
index b730a6ec2..23b8b0ee2 100644
--- a/test/built-ins/Function/prototype/toString/S15.3.4.2_A8.js
+++ b/test/built-ins/Function/prototype/toString/S15.3.4.2_A8.js
@@ -21,7 +21,7 @@ if (Function.prototype.toString.propertyIsEnumerable('length')) {
}
// CHECK#2
-for (var p in Function.prototype.toString){
- if (p==="length")
- $ERROR('#2: the Function.prototype.toString.length property has the attributes DontEnum');
+for (var p in Function.prototype.toString) {
+ if (p === "length")
+ $ERROR('#2: the Function.prototype.toString.length property has the attributes DontEnum');
}
diff --git a/test/built-ins/Function/prototype/toString/arrow-function.js b/test/built-ins/Function/prototype/toString/arrow-function.js
index 06990b14c..62fab71ae 100644
--- a/test/built-ins/Function/prototype/toString/arrow-function.js
+++ b/test/built-ins/Function/prototype/toString/arrow-function.js
@@ -6,9 +6,10 @@ esid: sec-arrow-function-definitions-runtime-semantics-evaluation
description: Function.prototype.toString on an arrow function
---*/
-let f = /* before */( /* a */ a /* b */ , /* c */ b /* d */ ) /* e */ => /* f */ { /* g */ ; /* h */ }/* after */;
-let g = /* before */( /* a */ ) /* b */ => /* c */ 0/* after */;
-let h = /* before */a /* a */ => /* b */ 0/* after */;
+let f = /* before */ ( /* a */ a /* b */ , /* c */ b /* d */ ) /* e */ => /* f */ { /* g */ ; /* h */
+} /* after */ ;
+let g = /* before */ ( /* a */ ) /* b */ => /* c */ 0 /* after */ ;
+let h = /* before */ a /* a */ => /* b */ 0 /* after */ ;
assert.sameValue(f.toString(), "( /* a */ a /* b */ , /* c */ b /* d */ ) /* e */ => /* f */ { /* g */ ; /* h */ }");
assert.sameValue(g.toString(), "( /* a */ ) /* b */ => /* c */ 0");
diff --git a/test/built-ins/Function/prototype/toString/async-arrow-function.js b/test/built-ins/Function/prototype/toString/async-arrow-function.js
index 39a2a0388..1dff802ee 100644
--- a/test/built-ins/Function/prototype/toString/async-arrow-function.js
+++ b/test/built-ins/Function/prototype/toString/async-arrow-function.js
@@ -7,9 +7,10 @@ description: Function.prototype.toString on an async arrow function
features: [async-functions]
---*/
-let f = /* before */async /* a */ ( /* b */ a /* c */ , /* d */ b /* e */ ) /* f */ => /* g */ { /* h */ ; /* i */ }/* after */;
-let g = /* before */async /* a */ ( /* b */ ) /* c */ => /* d */ 0/* after */;
-let h = /* before */async /* a */ a /* b */ => /* c */ 0/* after */;
+let f = /* before */ async /* a */ ( /* b */ a /* c */ , /* d */ b /* e */ ) /* f */ => /* g */ { /* h */ ; /* i */
+} /* after */ ;
+let g = /* before */ async /* a */ ( /* b */ ) /* c */ => /* d */ 0 /* after */ ;
+let h = /* before */ async /* a */ a /* b */ => /* c */ 0 /* after */ ;
assert.sameValue(f.toString(), "async /* a */ ( /* b */ a /* c */ , /* d */ b /* e */ ) /* f */ => /* g */ { /* h */ ; /* i */ }");
assert.sameValue(g.toString(), "async /* a */ ( /* b */ ) /* c */ => /* d */ 0");
diff --git a/test/built-ins/Function/prototype/toString/async-function-declaration.js b/test/built-ins/Function/prototype/toString/async-function-declaration.js
index 4b909bbf7..c1f62a5f0 100644
--- a/test/built-ins/Function/prototype/toString/async-function-declaration.js
+++ b/test/built-ins/Function/prototype/toString/async-function-declaration.js
@@ -8,6 +8,8 @@ description: Function.prototype.toString on an async function declaration
features: [async-functions]
---*/
-/* before */async function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */
+/* before */
+async function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */
+} /* after */
assert.sameValue(f.toString(), "async function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }");
diff --git a/test/built-ins/Function/prototype/toString/async-function-expression.js b/test/built-ins/Function/prototype/toString/async-function-expression.js
index 6b7f26bd5..6d38d2746 100644
--- a/test/built-ins/Function/prototype/toString/async-function-expression.js
+++ b/test/built-ins/Function/prototype/toString/async-function-expression.js
@@ -8,8 +8,10 @@ description: Function.prototype.toString on an async function expression
features: [async-functions]
---*/
-let f = /* before */async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */;
-let g = /* before */async function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }/* after */;
+let f = /* before */ async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */
+} /* after */ ;
+let g = /* before */ async function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */
+} /* after */ ;
assert.sameValue(f.toString(), "async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }");
assert.sameValue(g.toString(), "async function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }");
diff --git a/test/built-ins/Function/prototype/toString/async-generator-declaration.js b/test/built-ins/Function/prototype/toString/async-generator-declaration.js
index 9a5bb3f3d..f4bdcde60 100644
--- a/test/built-ins/Function/prototype/toString/async-generator-declaration.js
+++ b/test/built-ins/Function/prototype/toString/async-generator-declaration.js
@@ -7,6 +7,8 @@ description: Function.prototype.toString on an async generator declaration
features: [async-iteration]
---*/
-/* before */async /* a */ function /* b */ * /* c */ f /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ }/* after */
+/* before */
+async /* a */ function /* b */ * /* c */ f /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */
+} /* after */
assert.sameValue(f.toString(), "async /* a */ function /* b */ * /* c */ f /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ }");
diff --git a/test/built-ins/Function/prototype/toString/async-generator-expression.js b/test/built-ins/Function/prototype/toString/async-generator-expression.js
index 60a712820..1332f6c93 100644
--- a/test/built-ins/Function/prototype/toString/async-generator-expression.js
+++ b/test/built-ins/Function/prototype/toString/async-generator-expression.js
@@ -7,8 +7,10 @@ description: Function.prototype.toString on an async generator expression
features: [async-iteration]
---*/
-let f = /* before */async /* a */ function /* b */ * /* c */ F /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ }/* after */;
-let g = /* before */async /* a */ function /* b */ * /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }/* after */;
+let f = /* before */ async /* a */ function /* b */ * /* c */ F /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */
+} /* after */ ;
+let g = /* before */ async /* a */ function /* b */ * /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */
+} /* after */ ;
assert.sameValue(f.toString(), "async /* a */ function /* b */ * /* c */ F /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ }");
assert.sameValue(g.toString(), "async /* a */ function /* b */ * /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }");
diff --git a/test/built-ins/Function/prototype/toString/async-generator-method-class-expression-static.js b/test/built-ins/Function/prototype/toString/async-generator-method-class-expression-static.js
index 03ac897e2..fbe7fd3a9 100644
--- a/test/built-ins/Function/prototype/toString/async-generator-method-class-expression-static.js
+++ b/test/built-ins/Function/prototype/toString/async-generator-method-class-expression-static.js
@@ -8,9 +8,15 @@ features: [async-iteration]
---*/
let x = "h";
-let f = class { static /* before */async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.f;
-let g = class { static /* before */async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.g;
-let h = class { static /* before */async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.h;
+let f = class {
+ static /* before */ async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */
+}.f;
+let g = class {
+ static /* before */ async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */
+}.g;
+let h = class {
+ static /* before */ async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */
+}.h;
assert.sameValue(f.toString(), "async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }");
assert.sameValue(g.toString(), "async /* a */ * /* b */ [ /* c */ \"g\" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }");
diff --git a/test/built-ins/Function/prototype/toString/async-generator-method-class-expression.js b/test/built-ins/Function/prototype/toString/async-generator-method-class-expression.js
index 3c9848558..f51f2ee2c 100644
--- a/test/built-ins/Function/prototype/toString/async-generator-method-class-expression.js
+++ b/test/built-ins/Function/prototype/toString/async-generator-method-class-expression.js
@@ -8,9 +8,15 @@ features: [async-iteration]
---*/
let x = "h";
-let f = class { /* before */async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.prototype.f;
-let g = class { /* before */async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.prototype.g;
-let h = class { /* before */async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.prototype.h;
+let f = class { /* before */
+ async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */
+}.prototype.f;
+let g = class { /* before */
+ async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */
+}.prototype.g;
+let h = class { /* before */
+ async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */
+}.prototype.h;
assert.sameValue(f.toString(), "async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }");
assert.sameValue(g.toString(), "async /* a */ * /* b */ [ /* c */ \"g\" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }");
diff --git a/test/built-ins/Function/prototype/toString/async-generator-method-class-statement-static.js b/test/built-ins/Function/prototype/toString/async-generator-method-class-statement-static.js
index 58d5835eb..bdbd18607 100644
--- a/test/built-ins/Function/prototype/toString/async-generator-method-class-statement-static.js
+++ b/test/built-ins/Function/prototype/toString/async-generator-method-class-statement-static.js
@@ -8,9 +8,15 @@ features: [async-iteration]
---*/
let x = "h";
-class F { static /* before */async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }
-class G { static /* before */async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }
-class H { static /* before */async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }
+class F {
+ static /* before */ async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */
+}
+class G {
+ static /* before */ async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */
+}
+class H {
+ static /* before */ async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */
+}
let f = F.f;
let g = G.g;
diff --git a/test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js b/test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js
index 1001b983c..acd8b9a52 100644
--- a/test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js
+++ b/test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js
@@ -8,9 +8,15 @@ features: [async-iteration]
---*/
let x = "h";
-class F { /* before */async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }
-class G { /* before */async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }
-class H { /* before */async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }
+class F { /* before */
+ async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */
+}
+class G { /* before */
+ async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */
+}
+class H { /* before */
+ async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */
+}
let f = F.prototype.f;
let g = G.prototype.g;
diff --git a/test/built-ins/Function/prototype/toString/async-generator-method-object.js b/test/built-ins/Function/prototype/toString/async-generator-method-object.js
index 58a274a85..f6b2760c5 100644
--- a/test/built-ins/Function/prototype/toString/async-generator-method-object.js
+++ b/test/built-ins/Function/prototype/toString/async-generator-method-object.js
@@ -8,9 +8,15 @@ features: [async-iteration]
---*/
let x = "h";
-let f = { /* before */async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.f;
-let g = { /* before */async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.g;
-let h = { /* before */async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.h;
+let f = { /* before */
+ async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */
+}.f;
+let g = { /* before */
+ async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */
+}.g;
+let h = { /* before */
+ async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */
+}.h;
assert.sameValue(f.toString(), "async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }");
assert.sameValue(g.toString(), "async /* a */ * /* b */ [ /* c */ \"g\" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }");
diff --git a/test/built-ins/Function/prototype/toString/async-method-class-expression-static.js b/test/built-ins/Function/prototype/toString/async-method-class-expression-static.js
index 8388c4dda..b2bc520ee 100644
--- a/test/built-ins/Function/prototype/toString/async-method-class-expression-static.js
+++ b/test/built-ins/Function/prototype/toString/async-method-class-expression-static.js
@@ -8,9 +8,15 @@ features: [async-functions]
---*/
let x = "h";
-let f = class { static /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.f;
-let g = class { static /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.g;
-let h = class { static /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.h;
+let f = class {
+ static /* before */ async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */
+}.f;
+let g = class {
+ static /* before */ async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}.g;
+let h = class {
+ static /* before */ async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}.h;
assert.sameValue(f.toString(), "async f /* a */ ( /* b */ ) /* c */ { /* d */ }");
assert.sameValue(g.toString(), "async /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }");
diff --git a/test/built-ins/Function/prototype/toString/async-method-class-expression.js b/test/built-ins/Function/prototype/toString/async-method-class-expression.js
index dcacd9c9d..a4c84fc76 100644
--- a/test/built-ins/Function/prototype/toString/async-method-class-expression.js
+++ b/test/built-ins/Function/prototype/toString/async-method-class-expression.js
@@ -8,9 +8,15 @@ features: [async-functions]
---*/
let x = "h";
-let f = class { /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.prototype.f;
-let g = class { /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.prototype.g;
-let h = class { /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.prototype.h;
+let f = class { /* before */
+ async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */
+}.prototype.f;
+let g = class { /* before */
+ async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}.prototype.g;
+let h = class { /* before */
+ async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}.prototype.h;
assert.sameValue(f.toString(), "async f /* a */ ( /* b */ ) /* c */ { /* d */ }");
assert.sameValue(g.toString(), "async /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }");
diff --git a/test/built-ins/Function/prototype/toString/async-method-class-statement-static.js b/test/built-ins/Function/prototype/toString/async-method-class-statement-static.js
index 56e27d0ea..641489fbf 100644
--- a/test/built-ins/Function/prototype/toString/async-method-class-statement-static.js
+++ b/test/built-ins/Function/prototype/toString/async-method-class-statement-static.js
@@ -8,9 +8,15 @@ features: [async-functions]
---*/
let x = "h";
-class F { static /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }
-class G { static /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }
-class H { static /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }
+class F {
+ static /* before */ async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */
+}
+class G {
+ static /* before */ async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}
+class H {
+ static /* before */ async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}
let f = F.f;
let g = G.g;
diff --git a/test/built-ins/Function/prototype/toString/async-method-class-statement.js b/test/built-ins/Function/prototype/toString/async-method-class-statement.js
index 50f512607..c5a00b124 100644
--- a/test/built-ins/Function/prototype/toString/async-method-class-statement.js
+++ b/test/built-ins/Function/prototype/toString/async-method-class-statement.js
@@ -8,9 +8,15 @@ features: [async-functions]
---*/
let x = "h";
-class F { /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }
-class G { /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }
-class H { /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }
+class F { /* before */
+ async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */
+}
+class G { /* before */
+ async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}
+class H { /* before */
+ async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}
let f = F.prototype.f;
let g = G.prototype.g;
diff --git a/test/built-ins/Function/prototype/toString/async-method-object.js b/test/built-ins/Function/prototype/toString/async-method-object.js
index de117ed4f..99e6e7670 100644
--- a/test/built-ins/Function/prototype/toString/async-method-object.js
+++ b/test/built-ins/Function/prototype/toString/async-method-object.js
@@ -9,9 +9,15 @@ features: [async-functions]
---*/
let x = "h";
-let f = { /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.f;
-let g = { /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.g;
-let h = { /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.h;
+let f = { /* before */
+ async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */
+}.f;
+let g = { /* before */
+ async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}.g;
+let h = { /* before */
+ async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}.h;
assert.sameValue(f.toString(), "async f /* a */ ( /* b */ ) /* c */ { /* d */ }");
assert.sameValue(g.toString(), "async /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }");
diff --git a/test/built-ins/Function/prototype/toString/bound-function.js b/test/built-ins/Function/prototype/toString/bound-function.js
index b6ceb116e..f8eca49a5 100644
--- a/test/built-ins/Function/prototype/toString/bound-function.js
+++ b/test/built-ins/Function/prototype/toString/bound-function.js
@@ -7,6 +7,6 @@ description: Function.prototype.toString on bound function exotic objects
includes: [nativeFunctionMatcher.js]
---*/
-let f = function(){}.bind(null);
+let f = function() {}.bind(null);
assert(NATIVE_FUNCTION_RE.test("" + f), "looks pretty much like a NativeFunction");
diff --git a/test/built-ins/Function/prototype/toString/class-declaration-complex-heritage.js b/test/built-ins/Function/prototype/toString/class-declaration-complex-heritage.js
index dbf60ee83..b2956cf56 100644
--- a/test/built-ins/Function/prototype/toString/class-declaration-complex-heritage.js
+++ b/test/built-ins/Function/prototype/toString/class-declaration-complex-heritage.js
@@ -6,6 +6,7 @@ esid: sec-runtime-semantics-bindingclassdeclarationevaluation
description: Function.prototype.toString on a class declaration (with complex heritage)
---*/
-/* before */class /* a */ A /* b */ extends /* c */ class /* d */ B /* e */ { /* f */ } /* g */ { /* h */ }/* after */
+/* before */
+class /* a */ A /* b */ extends /* c */ class /* d */ B /* e */ { /* f */ } /* g */ { /* h */ } /* after */
assert.sameValue(A.toString(), "class /* a */ A /* b */ extends /* c */ class /* d */ B /* e */ { /* f */ } /* g */ { /* h */ }");
diff --git a/test/built-ins/Function/prototype/toString/class-declaration-explicit-ctor.js b/test/built-ins/Function/prototype/toString/class-declaration-explicit-ctor.js
index c3b4b264f..a015ab88d 100644
--- a/test/built-ins/Function/prototype/toString/class-declaration-explicit-ctor.js
+++ b/test/built-ins/Function/prototype/toString/class-declaration-explicit-ctor.js
@@ -6,8 +6,13 @@ esid: sec-runtime-semantics-bindingclassdeclarationevaluation
description: Function.prototype.toString on a class declaration (explicit constructor)
---*/
-/* before */class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ } /* k */ m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ }/* after */
+/* before */
+class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */
+ constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */
+ } /* k */
+ m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */
+} /* after */
assert.sameValue(A.toString(), "class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ } /* k */ m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ }");
-function B(){}
+function B() {}
diff --git a/test/built-ins/Function/prototype/toString/class-declaration-implicit-ctor.js b/test/built-ins/Function/prototype/toString/class-declaration-implicit-ctor.js
index 9dea84bb6..bb89e2969 100644
--- a/test/built-ins/Function/prototype/toString/class-declaration-implicit-ctor.js
+++ b/test/built-ins/Function/prototype/toString/class-declaration-implicit-ctor.js
@@ -6,9 +6,14 @@ esid: sec-runtime-semantics-bindingclassdeclarationevaluation
description: Function.prototype.toString on a class declaration (implicit constructor)
---*/
-/* before */class /* a */ A /* b */ { /* c */ }/* after */
-/* before */class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ }/* after */
-/* before */class /* a */ C /* b */ extends /* c */ B /* d */ { /* e */ m /* f */ ( /* g */ ) /* h */ { /* i */ } /* j */ }/* after */
+/* before */
+class /* a */ A /* b */ { /* c */ } /* after */
+/* before */
+class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ } /* after */
+/* before */
+class /* a */ C /* b */ extends /* c */ B /* d */ { /* e */
+ m /* f */ ( /* g */ ) /* h */ { /* i */ } /* j */
+} /* after */
assert.sameValue(A.toString(), "class /* a */ A /* b */ { /* c */ }");
assert.sameValue(B.toString(), "class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ }");
diff --git a/test/built-ins/Function/prototype/toString/class-expression-explicit-ctor.js b/test/built-ins/Function/prototype/toString/class-expression-explicit-ctor.js
index 93d744847..c6fdcc5b1 100644
--- a/test/built-ins/Function/prototype/toString/class-expression-explicit-ctor.js
+++ b/test/built-ins/Function/prototype/toString/class-expression-explicit-ctor.js
@@ -6,8 +6,12 @@ esid: sec-class-definitions-runtime-semantics-evaluation
description: Function.prototype.toString on a class expression (explicit constructor)
---*/
-let A = /* before */class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ } /* k */ m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ }/* after */;
+let A = /* before */ class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */
+ constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */
+ } /* k */
+ m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */
+} /* after */ ;
assert.sameValue(A.toString(), "class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ } /* k */ m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ }");
-function B(){}
+function B() {}
diff --git a/test/built-ins/Function/prototype/toString/class-expression-implicit-ctor.js b/test/built-ins/Function/prototype/toString/class-expression-implicit-ctor.js
index 91ab62134..07b2a9a00 100644
--- a/test/built-ins/Function/prototype/toString/class-expression-implicit-ctor.js
+++ b/test/built-ins/Function/prototype/toString/class-expression-implicit-ctor.js
@@ -6,9 +6,11 @@ esid: sec-class-definitions-runtime-semantics-evaluation
description: Function.prototype.toString on a class expression (implicit constructor)
---*/
-let A = /* before */class /* a */ A /* b */ { /* c */ }/* after */;
-let B = /* before */class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ }/* after */;
-let C = /* before */class /* a */ C /* b */ extends /* c */ B /* d */ { /* e */ m /* f */ ( /* g */ ) /* h */ { /* i */ } /* j */ }/* after */;
+let A = /* before */ class /* a */ A /* b */ { /* c */ } /* after */ ;
+let B = /* before */ class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ } /* after */ ;
+let C = /* before */ class /* a */ C /* b */ extends /* c */ B /* d */ { /* e */
+ m /* f */ ( /* g */ ) /* h */ { /* i */ } /* j */
+} /* after */ ;
assert.sameValue(A.toString(), "class /* a */ A /* b */ { /* c */ }");
assert.sameValue(B.toString(), "class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ }");
diff --git a/test/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js b/test/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js
index 7ff7971e0..3b5acaa73 100644
--- a/test/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js
+++ b/test/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js
@@ -6,6 +6,9 @@ esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject
description: Function.prototype.toString on a function with a non-simple parameter list
---*/
-/* before */function /* a */ f /* b */ ( /* c */ a /* d */ = /* e */ 0 /* f */ , /* g */ { /* h */ b /* i */ = /* j */ 0 /* k */ } /* l */ ) /* m */ { /* n */ }/* after */
+/* before */
+function /* a */ f /* b */ ( /* c */ a /* d */ = /* e */ 0 /* f */ , /* g */ { /* h */
+ b /* i */ = /* j */ 0 /* k */
+} /* l */ ) /* m */ { /* n */ } /* after */
assert.sameValue(f.toString(), "function /* a */ f /* b */ ( /* c */ a /* d */ = /* e */ 0 /* f */ , /* g */ { /* h */ b /* i */ = /* j */ 0 /* k */ } /* l */ ) /* m */ { /* n */ }");
diff --git a/test/built-ins/Function/prototype/toString/function-declaration.js b/test/built-ins/Function/prototype/toString/function-declaration.js
index a0446ba71..0d2db3877 100644
--- a/test/built-ins/Function/prototype/toString/function-declaration.js
+++ b/test/built-ins/Function/prototype/toString/function-declaration.js
@@ -6,6 +6,8 @@ esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject
description: Function.prototype.toString on a function declaration
---*/
-/* before */function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */
+/* before */
+function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */
+} /* after */
assert.sameValue(f.toString(), "function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }");
diff --git a/test/built-ins/Function/prototype/toString/function-expression.js b/test/built-ins/Function/prototype/toString/function-expression.js
index b1bcedaf4..5c67dd8af 100644
--- a/test/built-ins/Function/prototype/toString/function-expression.js
+++ b/test/built-ins/Function/prototype/toString/function-expression.js
@@ -6,8 +6,10 @@ esid: sec-function-definitions-runtime-semantics-evaluation
description: Function.prototype.toString on a function expression
---*/
-let f = /* before */function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */;
-let g = /* before */function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }/* after */;
+let f = /* before */ function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */
+} /* after */ ;
+let g = /* before */ function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */
+} /* after */ ;
assert.sameValue(f.toString(), "function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }");
assert.sameValue(g.toString(), "function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }");
diff --git a/test/built-ins/Function/prototype/toString/generator-function-declaration.js b/test/built-ins/Function/prototype/toString/generator-function-declaration.js
index 133f9af8c..cab7f840d 100644
--- a/test/built-ins/Function/prototype/toString/generator-function-declaration.js
+++ b/test/built-ins/Function/prototype/toString/generator-function-declaration.js
@@ -6,6 +6,8 @@ esid: sec-generator-function-definitions-runtime-semantics-instantiatefunctionob
description: Function.prototype.toString on a generator function declaration
---*/
-/* before */function /* a */ * /* b */ g /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }/* after */
+/* before */
+function /* a */ * /* b */ g /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */
+} /* after */
assert.sameValue(g.toString(), "function /* a */ * /* b */ g /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }");
diff --git a/test/built-ins/Function/prototype/toString/generator-function-expression.js b/test/built-ins/Function/prototype/toString/generator-function-expression.js
index d175055ec..6d1dae971 100644
--- a/test/built-ins/Function/prototype/toString/generator-function-expression.js
+++ b/test/built-ins/Function/prototype/toString/generator-function-expression.js
@@ -6,8 +6,10 @@ esid: sec-generator-function-definitions-runtime-semantics-evaluation
description: Function.prototype.toString on a generator function expression
---*/
-let f = /* before */function /* a */ * /* b */ F /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }/* after */
-let g = /* before */function /* a */ * /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */
+let f = /* before */ function /* a */ * /* b */ F /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */
+} /* after */
+let g = /* before */ function /* a */ * /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */
+} /* after */
assert.sameValue(f.toString(), "function /* a */ * /* b */ F /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }");
assert.sameValue(g.toString(), "function /* a */ * /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }");
diff --git a/test/built-ins/Function/prototype/toString/generator-method.js b/test/built-ins/Function/prototype/toString/generator-method.js
index f5cb5d218..041fcbcc6 100644
--- a/test/built-ins/Function/prototype/toString/generator-method.js
+++ b/test/built-ins/Function/prototype/toString/generator-method.js
@@ -7,9 +7,12 @@ description: Function.prototype.toString on a generator method
---*/
let x = "h";
-let f = { /* before */* /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ }.f;
-let g = { /* before */* /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.g;
-let h = { /* before */* /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.h;
+let f = { /* before */ * /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */
+}.f;
+let g = { /* before */ * /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}.g;
+let h = { /* before */ * /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}.h;
assert.sameValue(f.toString(), "* /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }");
assert.sameValue(g.toString(), "* /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }");
diff --git a/test/built-ins/Function/prototype/toString/getter-class-expression-static.js b/test/built-ins/Function/prototype/toString/getter-class-expression-static.js
index 009d92127..e220cf435 100644
--- a/test/built-ins/Function/prototype/toString/getter-class-expression-static.js
+++ b/test/built-ins/Function/prototype/toString/getter-class-expression-static.js
@@ -7,9 +7,15 @@ description: Function.prototype.toString on a getter (class; static)
---*/
let x = "h";
-let f = Object.getOwnPropertyDescriptor(class { static /* before */get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ }, "f").get;
-let g = Object.getOwnPropertyDescriptor(class { static /* before */get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }, "g").get;
-let h = Object.getOwnPropertyDescriptor(class { static /* before */get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }, "h").get;
+let f = Object.getOwnPropertyDescriptor(class {
+ static /* before */ get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */
+}, "f").get;
+let g = Object.getOwnPropertyDescriptor(class {
+ static /* before */ get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}, "g").get;
+let h = Object.getOwnPropertyDescriptor(class {
+ static /* before */ get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}, "h").get;
assert.sameValue(f.toString(), "get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }");
assert.sameValue(g.toString(), "get /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }");
diff --git a/test/built-ins/Function/prototype/toString/getter-class-expression.js b/test/built-ins/Function/prototype/toString/getter-class-expression.js
index 7b3eef410..b5e1d9d69 100644
--- a/test/built-ins/Function/prototype/toString/getter-class-expression.js
+++ b/test/built-ins/Function/prototype/toString/getter-class-expression.js
@@ -7,9 +7,15 @@ description: Function.prototype.toString on a getter (class)
---*/
let x = "h";
-let f = Object.getOwnPropertyDescriptor(class { /* before */get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ }.prototype, "f").get;
-let g = Object.getOwnPropertyDescriptor(class { /* before */get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.prototype, "g").get;
-let h = Object.getOwnPropertyDescriptor(class { /* before */get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.prototype, "h").get;
+let f = Object.getOwnPropertyDescriptor(class { /* before */
+ get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */
+}.prototype, "f").get;
+let g = Object.getOwnPropertyDescriptor(class { /* before */
+ get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}.prototype, "g").get;
+let h = Object.getOwnPropertyDescriptor(class { /* before */
+ get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}.prototype, "h").get;
assert.sameValue(f.toString(), "get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }");
assert.sameValue(g.toString(), "get /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }");
diff --git a/test/built-ins/Function/prototype/toString/getter-class-statement-static.js b/test/built-ins/Function/prototype/toString/getter-class-statement-static.js
index 4ac72bccd..411a51cbd 100644
--- a/test/built-ins/Function/prototype/toString/getter-class-statement-static.js
+++ b/test/built-ins/Function/prototype/toString/getter-class-statement-static.js
@@ -7,9 +7,15 @@ description: Function.prototype.toString on a getter (class; static)
---*/
let x = "h";
-class F { static /* before */get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ }
-class G { static /* before */get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }
-class H { static /* before */get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }
+class F {
+ static /* before */ get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */
+}
+class G {
+ static /* before */ get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}
+class H {
+ static /* before */ get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}
let f = Object.getOwnPropertyDescriptor(F, "f").get;
let g = Object.getOwnPropertyDescriptor(G, "g").get;
diff --git a/test/built-ins/Function/prototype/toString/getter-class-statement.js b/test/built-ins/Function/prototype/toString/getter-class-statement.js
index 83139c33c..768500ad2 100644
--- a/test/built-ins/Function/prototype/toString/getter-class-statement.js
+++ b/test/built-ins/Function/prototype/toString/getter-class-statement.js
@@ -7,9 +7,15 @@ description: Function.prototype.toString on a getter (class)
---*/
let x = "h";
-class F { /* before */get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ }
-class G { /* before */get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }
-class H { /* before */get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }
+class F { /* before */
+ get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */
+}
+class G { /* before */
+ get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}
+class H { /* before */
+ get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}
let f = Object.getOwnPropertyDescriptor(F.prototype, "f").get;
let g = Object.getOwnPropertyDescriptor(G.prototype, "g").get;
diff --git a/test/built-ins/Function/prototype/toString/getter-object.js b/test/built-ins/Function/prototype/toString/getter-object.js
index 3e794d04b..2a7625cd9 100644
--- a/test/built-ins/Function/prototype/toString/getter-object.js
+++ b/test/built-ins/Function/prototype/toString/getter-object.js
@@ -7,9 +7,15 @@ description: Function.prototype.toString on a getter (object)
---*/
let x = "h";
-let f = Object.getOwnPropertyDescriptor({ /* before */get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ }, "f").get;
-let g = Object.getOwnPropertyDescriptor({ /* before */get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }, "g").get;
-let h = Object.getOwnPropertyDescriptor({ /* before */get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }, "h").get;
+let f = Object.getOwnPropertyDescriptor({ /* before */
+ get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */
+}, "f").get;
+let g = Object.getOwnPropertyDescriptor({ /* before */
+ get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}, "g").get;
+let h = Object.getOwnPropertyDescriptor({ /* before */
+ get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */
+}, "h").get;
assert.sameValue(f.toString(), "get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }");
assert.sameValue(g.toString(), "get /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }");
diff --git a/test/built-ins/Function/prototype/toString/intrinsics.js b/test/built-ins/Function/prototype/toString/intrinsics.js
index dc1319596..61cbff78b 100644
--- a/test/built-ins/Function/prototype/toString/intrinsics.js
+++ b/test/built-ins/Function/prototype/toString/intrinsics.js
@@ -8,11 +8,48 @@ includes: [nativeFunctionMatcher.js]
---*/
let intrinsics = {
- Array, ArrayBuffer, Boolean, DataView, Date, decodeURI, decodeURIComponent, encodeURI,
- encodeURIComponent, Error, eval, EvalError, Float32Array, Float64Array, Function, Int8Array,
- Int16Array, Int32Array, isFinite, isNaN, Map, Number, Object, parseFloat, parseInt, Promise,
- Proxy, RangeError, ReferenceError, RegExp, Set, String, Symbol, SyntaxError, TypeError,
- Uint8Array, Uint8ClampedArray, Uint16Array, Uint32Array, URIError, WeakMap, WeakSet,
+ Array,
+ ArrayBuffer,
+ Boolean,
+ DataView,
+ Date,
+ decodeURI,
+ decodeURIComponent,
+ encodeURI,
+ encodeURIComponent,
+ Error,
+ eval,
+ EvalError,
+ Float32Array,
+ Float64Array,
+ Function,
+ Int8Array,
+ Int16Array,
+ Int32Array,
+ isFinite,
+ isNaN,
+ Map,
+ Number,
+ Object,
+ parseFloat,
+ parseInt,
+ Promise,
+ Proxy,
+ RangeError,
+ ReferenceError,
+ RegExp,
+ Set,
+ String,
+ Symbol,
+ SyntaxError,
+ TypeError,
+ Uint8Array,
+ Uint8ClampedArray,
+ Uint16Array,
+ Uint32Array,
+ URIError,
+ WeakMap,
+ WeakSet,
};
for (let intrinsicName in intrinsics) {
diff --git a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR-LF.js b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR-LF.js
index 93f653936..8b362356f 100644
--- a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR-LF.js
+++ b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR-LF.js
@@ -1,36 +1,36 @@
-// Copyright (C) 2016 Michael Ficarra. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/*---
-esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject
-description: Function.prototype.toString line terminator normalisation (CR-LF)
-info: |
- Function.prototype.toString should not normalise line terminator sequences to Line Feed characters.
- This file uses (Carriage Return, Line Feed) sequences as line terminators.
----*/
-
-// before
-function
-// a
-f
-// b
-(
-// c
-x
-// d
-,
-// e
-y
-// f
-)
-// g
-{
-// h
-;
-// i
-;
-// j
-}
-// after
-
-assert.sameValue(f.toString(), "function\r\n// a\r\nf\r\n// b\r\n(\r\n// c\r\nx\r\n// d\r\n,\r\n// e\r\ny\r\n// f\r\n)\r\n// g\r\n{\r\n// h\r\n;\r\n// i\r\n;\r\n// j\r\n}");
+// Copyright (C) 2016 Michael Ficarra. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject
+description: Function.prototype.toString line terminator normalisation (CR-LF)
+info: |
+ Function.prototype.toString should not normalise line terminator sequences to Line Feed characters.
+ This file uses (Carriage Return, Line Feed) sequences as line terminators.
+---*/
+
+// before
+function
+// a
+f
+// b
+(
+ // c
+ x
+ // d
+ ,
+ // e
+ y
+ // f
+)
+// g
+{
+ // h
+ ;
+ // i
+ ;
+ // j
+}
+// after
+
+assert.sameValue(f.toString(), "function\r\n// a\r\nf\r\n// b\r\n(\r\n// c\r\nx\r\n// d\r\n,\r\n// e\r\ny\r\n// f\r\n)\r\n// g\r\n{\r\n// h\r\n;\r\n// i\r\n;\r\n// j\r\n}");
diff --git a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR.js b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR.js
index 4e55706f6..d71053779 100644
--- a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR.js
+++ b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR.js
@@ -1 +1,36 @@
-// Copyright (C) 2016 Michael Ficarra. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject description: Function.prototype.toString line terminator normalisation (CR) info: | Function.prototype.toString should not normalise line terminator sequences to Line Feed characters. This file uses Carriage Return characters as line terminators. ---*/ // before function // a f // b ( // c x // d , // e y // f ) // g { // h ; // i ; // j } // after assert.sameValue(f.toString(), "function\r// a\rf\r// b\r(\r// c\rx\r// d\r,\r// e\ry\r// f\r)\r// g\r{\r// h\r;\r// i\r;\r// j\r}");
+// Copyright (C) 2016 Michael Ficarra. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject
+description: Function.prototype.toString line terminator normalisation (CR)
+info: |
+ Function.prototype.toString should not normalise line terminator sequences to Line Feed characters.
+ This file uses Carriage Return characters as line terminators.
+---*/
+
+// before
+function
+// a
+f
+// b
+(
+ // c
+ x
+ // d
+ ,
+ // e
+ y
+ // f
+)
+// g
+{
+ // h
+ ;
+ // i
+ ;
+ // j
+}
+// after
+
+assert.sameValue(f.toString(), "function\r// a\rf\r// b\r(\r// c\rx\r// d\r,\r// e\ry\r// f\r)\r// g\r{\r// h\r;\r// i\r;\r// j\r}");
diff --git a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-LF.js b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-LF.js
index 69b785543..35d0a9cf5 100644
--- a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-LF.js
+++ b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-LF.js
@@ -15,21 +15,21 @@ function
f
// b
(
-// c
-x
-// d
-,
-// e
-y
-// f
+ // c
+ x
+ // d
+ ,
+ // e
+ y
+ // f
)
// g
{
-// h
-;
-// i
-;
-// j
+ // h
+ ;
+ // i
+ ;
+ // j
}
// after
diff --git a/test/built-ins/Function/prototype/toString/method-class-expression-static.js b/test/built-ins/Function/prototype/toString/method-class-expression-static.js
index 9a81f8f10..752c9d085 100644
--- a/test/built-ins/Function/prototype/toString/method-class-expression-static.js
+++ b/test/built-ins/Function/prototype/toString/method-class-expression-static.js
@@ -7,9 +7,15 @@ description: Function.prototype.toString on a method (class; static)
---*/
let x = "h";
-let f = class { static /* before */f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.f;
-let g = class { static /* before */[ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.g;
-let h = class { static /* before */[ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.h;
+let f = class {
+ static /* before */ f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */
+}.f;
+let g = class {
+ static /* before */ [ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */
+}.g;
+let h = class {
+ static /* before */ [ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */
+}.h;
assert.sameValue(f.toString(), "f /* a */ ( /* b */ ) /* c */ { /* d */ }");
assert.sameValue(g.toString(), "[ /* a */ \"g\" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }");
diff --git a/test/built-ins/Function/prototype/toString/method-class-expression.js b/test/built-ins/Function/prototype/toString/method-class-expression.js
index cdfe9643e..a77b6b163 100644
--- a/test/built-ins/Function/prototype/toString/method-class-expression.js
+++ b/test/built-ins/Function/prototype/toString/method-class-expression.js
@@ -7,9 +7,15 @@ description: Function.prototype.toString on a method (class)
---*/
let x = "h";
-let f = class { /* before */f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.prototype.f;
-let g = class { /* before */[ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.prototype.g;
-let h = class { /* before */[ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.prototype.h;
+let f = class { /* before */
+ f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */
+}.prototype.f;
+let g = class { /* before */
+ [ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */
+}.prototype.g;
+let h = class { /* before */
+ [ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */
+}.prototype.h;
assert.sameValue(f.toString(), "f /* a */ ( /* b */ ) /* c */ { /* d */ }");
assert.sameValue(g.toString(), "[ /* a */ \"g\" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }");
diff --git a/test/built-ins/Function/prototype/toString/method-class-statement-static.js b/test/built-ins/Function/prototype/toString/method-class-statement-static.js
index f8e9817a8..5bb809870 100644
--- a/test/built-ins/Function/prototype/toString/method-class-statement-static.js
+++ b/test/built-ins/Function/prototype/toString/method-class-statement-static.js
@@ -7,9 +7,15 @@ description: Function.prototype.toString on a method (class; static)
---*/
let x = "h";
-class F { static /* before */f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }
-class G { static /* before */[ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }
-class H { static /* before */[ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }
+class F {
+ static /* before */ f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */
+}
+class G {
+ static /* before */ [ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */
+}
+class H {
+ static /* before */ [ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */
+}
let f = F.f;
let g = G.g;
diff --git a/test/built-ins/Function/prototype/toString/method-class-statement.js b/test/built-ins/Function/prototype/toString/method-class-statement.js
index 3ee83d514..63f7e3871 100644
--- a/test/built-ins/Function/prototype/toString/method-class-statement.js
+++ b/test/built-ins/Function/prototype/toString/method-class-statement.js
@@ -7,9 +7,15 @@ description: Function.prototype.toString on a method (class)
---*/
let x = "h";
-class F { /* before */f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }
-class G { /* before */[ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }
-class H { /* before */[ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }
+class F { /* before */
+ f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */
+}
+class G { /* before */
+ [ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */
+}
+class H { /* before */
+ [ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */
+}
let f = F.prototype.f;
let g = G.prototype.g;
diff --git a/test/built-ins/Function/prototype/toString/method-computed-property-name.js b/test/built-ins/Function/prototype/toString/method-computed-property-name.js
index dcf692d23..af4d893be 100644
--- a/test/built-ins/Function/prototype/toString/method-computed-property-name.js
+++ b/test/built-ins/Function/prototype/toString/method-computed-property-name.js
@@ -6,8 +6,14 @@ esid: sec-runtime-semantics-definemethod
description: Function.prototype.toString on a method (object)
---*/
-let f = { /* before */[ /* a */ "f" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.f;
-let g = { [ { a(){} }.a ](){ } }["a(){}"];
+let f = { /* before */
+ [ /* a */ "f" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */
+}.f;
+let g = {
+ [{
+ a() {}
+ }.a]() {}
+}["a(){}"];
assert.sameValue(f.toString(), "[ /* a */ \"f\" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }");
assert.sameValue("" + g, "[ { a(){} }.a ](){ }");
diff --git a/test/built-ins/Function/prototype/toString/method-object.js b/test/built-ins/Function/prototype/toString/method-object.js
index 6930964ed..0e1567873 100644
--- a/test/built-ins/Function/prototype/toString/method-object.js
+++ b/test/built-ins/Function/prototype/toString/method-object.js
@@ -6,6 +6,8 @@ esid: sec-runtime-semantics-definemethod
description: Function.prototype.toString on a method (object)
---*/
-let f = { /* before */f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.f;
+let f = { /* before */
+ f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */
+}.f;
assert.sameValue(f.toString(), "f /* a */ ( /* b */ ) /* c */ { /* d */ }");
diff --git a/test/built-ins/Function/prototype/toString/setter-class-expression-static.js b/test/built-ins/Function/prototype/toString/setter-class-expression-static.js
index ab0b1ede4..f276c8657 100644
--- a/test/built-ins/Function/prototype/toString/setter-class-expression-static.js
+++ b/test/built-ins/Function/prototype/toString/setter-class-expression-static.js
@@ -7,9 +7,15 @@ description: Function.prototype.toString on a setter (class; static)
---*/
let x = "h";
-let f = Object.getOwnPropertyDescriptor(class { static /* before */set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }/* after */ }, "f").set;
-let g = Object.getOwnPropertyDescriptor(class { static /* before */set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }, "g").set;
-let h = Object.getOwnPropertyDescriptor(class { static /* before */set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }, "h").set;
+let f = Object.getOwnPropertyDescriptor(class {
+ static /* before */ set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ } /* after */
+}, "f").set;
+let g = Object.getOwnPropertyDescriptor(class {
+ static /* before */ set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */
+}, "g").set;
+let h = Object.getOwnPropertyDescriptor(class {
+ static /* before */ set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */
+}, "h").set;
assert.sameValue(f.toString(), "set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }");
assert.sameValue(g.toString(), "set /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }");
diff --git a/test/built-ins/Function/prototype/toString/setter-class-expression.js b/test/built-ins/Function/prototype/toString/setter-class-expression.js
index b34b4128e..954d6d52f 100644
--- a/test/built-ins/Function/prototype/toString/setter-class-expression.js
+++ b/test/built-ins/Function/prototype/toString/setter-class-expression.js
@@ -7,9 +7,15 @@ description: Function.prototype.toString on a setter (class)
---*/
let x = "h";
-let f = Object.getOwnPropertyDescriptor(class { /* before */set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }/* after */ }.prototype, "f").set;
-let g = Object.getOwnPropertyDescriptor(class { /* before */set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }.prototype, "g").set;
-let h = Object.getOwnPropertyDescriptor(class { /* before */set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }.prototype, "h").set;
+let f = Object.getOwnPropertyDescriptor(class { /* before */
+ set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ } /* after */
+}.prototype, "f").set;
+let g = Object.getOwnPropertyDescriptor(class { /* before */
+ set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */
+}.prototype, "g").set;
+let h = Object.getOwnPropertyDescriptor(class { /* before */
+ set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */
+}.prototype, "h").set;
assert.sameValue(f.toString(), "set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }");
assert.sameValue(g.toString(), "set /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }");
diff --git a/test/built-ins/Function/prototype/toString/setter-class-statement-static.js b/test/built-ins/Function/prototype/toString/setter-class-statement-static.js
index 7a5a37de0..dec3c2471 100644
--- a/test/built-ins/Function/prototype/toString/setter-class-statement-static.js
+++ b/test/built-ins/Function/prototype/toString/setter-class-statement-static.js
@@ -7,9 +7,15 @@ description: Function.prototype.toString on a setter (class; static)
---*/
let x = "h";
-class F { static /* before */set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }/* after */ }
-class G { static /* before */set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }
-class H { static /* before */set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }
+class F {
+ static /* before */ set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ } /* after */
+}
+class G {
+ static /* before */ set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */
+}
+class H {
+ static /* before */ set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */
+}
let f = Object.getOwnPropertyDescriptor(F, "f").set;
let g = Object.getOwnPropertyDescriptor(G, "g").set;
diff --git a/test/built-ins/Function/prototype/toString/setter-class-statement.js b/test/built-ins/Function/prototype/toString/setter-class-statement.js
index 7c0c2b3e0..4534d8aa1 100644
--- a/test/built-ins/Function/prototype/toString/setter-class-statement.js
+++ b/test/built-ins/Function/prototype/toString/setter-class-statement.js
@@ -7,9 +7,15 @@ description: Function.prototype.toString on a setter (class)
---*/
let x = "h";
-class F { /* before */set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }/* after */ }
-class G { /* before */set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }
-class H { /* before */set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }
+class F { /* before */
+ set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ } /* after */
+}
+class G { /* before */
+ set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */
+}
+class H { /* before */
+ set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */
+}
let f = Object.getOwnPropertyDescriptor(F.prototype, "f").set;
let g = Object.getOwnPropertyDescriptor(G.prototype, "g").set;
diff --git a/test/built-ins/Function/prototype/toString/setter-object.js b/test/built-ins/Function/prototype/toString/setter-object.js
index 20adbe3e0..0e207d25c 100644
--- a/test/built-ins/Function/prototype/toString/setter-object.js
+++ b/test/built-ins/Function/prototype/toString/setter-object.js
@@ -7,9 +7,15 @@ description: Function.prototype.toString on a setter (object)
---*/
let x = "h";
-let f = Object.getOwnPropertyDescriptor({ /* before */set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }/* after */ }, "f").set;
-let g = Object.getOwnPropertyDescriptor({ /* before */set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }, "g").set;
-let h = Object.getOwnPropertyDescriptor({ /* before */set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }, "h").set;
+let f = Object.getOwnPropertyDescriptor({ /* before */
+ set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ } /* after */
+}, "f").set;
+let g = Object.getOwnPropertyDescriptor({ /* before */
+ set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */
+}, "g").set;
+let h = Object.getOwnPropertyDescriptor({ /* before */
+ set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */
+}, "h").set;
assert.sameValue(f.toString(), "set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }");
assert.sameValue(g.toString(), "set /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }");
diff --git a/test/built-ins/Function/prototype/toString/unicode.js b/test/built-ins/Function/prototype/toString/unicode.js
index fa176fac2..a46303ef9 100644
--- a/test/built-ins/Function/prototype/toString/unicode.js
+++ b/test/built-ins/Function/prototype/toString/unicode.js
@@ -9,6 +9,13 @@ info: |
any potential Unicode escape sequence substitution in identifiers
---*/
-function \u0061(\u{62}, \u0063) { \u0062 = \u{00063}; return b; }
+function\ u0061(\u {
+ 62
+}, \u0063) {\
+ u0062 = \u {
+ 00063
+ };
+ return b;
+}
assert.sameValue(a.toString(), "function \\u0061(\\u{62}, \\u0063) { \\u0062 = \\u{00063}; return b; }");
diff --git a/test/built-ins/GeneratorFunction/extensibility.js b/test/built-ins/GeneratorFunction/extensibility.js
index 265cffc02..4328a904e 100644
--- a/test/built-ins/GeneratorFunction/extensibility.js
+++ b/test/built-ins/GeneratorFunction/extensibility.js
@@ -10,6 +10,6 @@ info: |
features: [generators]
---*/
-var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
+var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor;
assert(Object.isExtensible(GeneratorFunction));
diff --git a/test/built-ins/GeneratorFunction/has-instance.js b/test/built-ins/GeneratorFunction/has-instance.js
index 80d176b78..3b5ad67f8 100644
--- a/test/built-ins/GeneratorFunction/has-instance.js
+++ b/test/built-ins/GeneratorFunction/has-instance.js
@@ -8,10 +8,10 @@ description: >
features: [generators]
---*/
-var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
+var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor;
function* gDecl() {}
-var gExpr = function* () {};
+var gExpr = function*() {};
assert(
gDecl instanceof GeneratorFunction,
diff --git a/test/built-ins/GeneratorFunction/instance-construct-throws.js b/test/built-ins/GeneratorFunction/instance-construct-throws.js
index 8225a4776..1cec55dd7 100644
--- a/test/built-ins/GeneratorFunction/instance-construct-throws.js
+++ b/test/built-ins/GeneratorFunction/instance-construct-throws.js
@@ -21,10 +21,10 @@ info: |
features: [generators]
---*/
-var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
+var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor;
var instance = GeneratorFunction();
assert.throws(TypeError, function() {
- new instance();
+ new instance();
})
diff --git a/test/built-ins/GeneratorFunction/instance-length.js b/test/built-ins/GeneratorFunction/instance-length.js
index fb1389f73..0951a1a2a 100644
--- a/test/built-ins/GeneratorFunction/instance-length.js
+++ b/test/built-ins/GeneratorFunction/instance-length.js
@@ -25,7 +25,7 @@ includes: [propertyHelper.js]
features: [generators]
---*/
-var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
+var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor;
assert.sameValue(GeneratorFunction().length, 0);
assert.sameValue(GeneratorFunction('').length, 0);
diff --git a/test/built-ins/GeneratorFunction/instance-name.js b/test/built-ins/GeneratorFunction/instance-name.js
index 5dab8a312..88fcd961a 100644
--- a/test/built-ins/GeneratorFunction/instance-name.js
+++ b/test/built-ins/GeneratorFunction/instance-name.js
@@ -17,7 +17,7 @@ includes: [propertyHelper.js]
features: [generators]
---*/
-var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
+var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor;
assert.sameValue(GeneratorFunction().name, 'anonymous');
verifyNotEnumerable(GeneratorFunction(), 'name');
diff --git a/test/built-ins/GeneratorFunction/instance-prototype.js b/test/built-ins/GeneratorFunction/instance-prototype.js
index 3f6db037d..e542b8964 100644
--- a/test/built-ins/GeneratorFunction/instance-prototype.js
+++ b/test/built-ins/GeneratorFunction/instance-prototype.js
@@ -21,7 +21,7 @@ includes: [propertyHelper.js]
features: [generators]
---*/
-var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
+var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor;
var instance = GeneratorFunction();
diff --git a/test/built-ins/GeneratorFunction/instance-yield-expr-in-param.js b/test/built-ins/GeneratorFunction/instance-yield-expr-in-param.js
index a04982da8..419360a88 100644
--- a/test/built-ins/GeneratorFunction/instance-yield-expr-in-param.js
+++ b/test/built-ins/GeneratorFunction/instance-yield-expr-in-param.js
@@ -17,7 +17,7 @@ info: |
features: [generators]
---*/
-var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
+var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor;
// YieldExpression is permitted in function body.
GeneratorFunction('x = yield');
diff --git a/test/built-ins/GeneratorFunction/invoked-as-constructor-no-arguments.js b/test/built-ins/GeneratorFunction/invoked-as-constructor-no-arguments.js
index cb5bf8e8a..564810fa1 100644
--- a/test/built-ins/GeneratorFunction/invoked-as-constructor-no-arguments.js
+++ b/test/built-ins/GeneratorFunction/invoked-as-constructor-no-arguments.js
@@ -8,7 +8,7 @@ description: >
features: [generators]
---*/
-var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
+var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor;
var g = new GeneratorFunction();
var iter = g();
diff --git a/test/built-ins/GeneratorFunction/invoked-as-function-multiple-arguments.js b/test/built-ins/GeneratorFunction/invoked-as-function-multiple-arguments.js
index a32adad02..7b7ac8429 100644
--- a/test/built-ins/GeneratorFunction/invoked-as-function-multiple-arguments.js
+++ b/test/built-ins/GeneratorFunction/invoked-as-function-multiple-arguments.js
@@ -10,7 +10,7 @@ description: >
features: [generators]
---*/
-var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
+var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor;
var g = GeneratorFunction('x', 'y', 'yield x + y;');
var iter = g(2, 3);
diff --git a/test/built-ins/GeneratorFunction/invoked-as-function-no-arguments.js b/test/built-ins/GeneratorFunction/invoked-as-function-no-arguments.js
index 928f73374..204d5a30b 100644
--- a/test/built-ins/GeneratorFunction/invoked-as-function-no-arguments.js
+++ b/test/built-ins/GeneratorFunction/invoked-as-function-no-arguments.js
@@ -8,7 +8,7 @@ description: >
features: [generators]
---*/
-var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
+var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor;
var g = GeneratorFunction();
var iter = g();
diff --git a/test/built-ins/GeneratorFunction/invoked-as-function-single-argument.js b/test/built-ins/GeneratorFunction/invoked-as-function-single-argument.js
index e49ddcbc4..279bfd129 100644
--- a/test/built-ins/GeneratorFunction/invoked-as-function-single-argument.js
+++ b/test/built-ins/GeneratorFunction/invoked-as-function-single-argument.js
@@ -9,7 +9,7 @@ description: >
features: [generators]
---*/
-var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
+var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor;
var g = GeneratorFunction('yield 1;');
var iter = g();
diff --git a/test/built-ins/GeneratorFunction/length.js b/test/built-ins/GeneratorFunction/length.js
index f118d1de6..b989303de 100644
--- a/test/built-ins/GeneratorFunction/length.js
+++ b/test/built-ins/GeneratorFunction/length.js
@@ -10,7 +10,7 @@ includes: [propertyHelper.js]
features: [generators]
---*/
-var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
+var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor;
assert.sameValue(GeneratorFunction.length, 1);
diff --git a/test/built-ins/GeneratorFunction/name.js b/test/built-ins/GeneratorFunction/name.js
index 99f02561c..2d517748b 100644
--- a/test/built-ins/GeneratorFunction/name.js
+++ b/test/built-ins/GeneratorFunction/name.js
@@ -20,7 +20,7 @@ includes: [propertyHelper.js]
features: [generators]
---*/
-var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
+var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor;
assert.sameValue(GeneratorFunction.name, 'GeneratorFunction');
diff --git a/test/built-ins/GeneratorFunction/proto-from-ctor-realm.js b/test/built-ins/GeneratorFunction/proto-from-ctor-realm.js
index b8215acf4..313fd4baa 100644
--- a/test/built-ins/GeneratorFunction/proto-from-ctor-realm.js
+++ b/test/built-ins/GeneratorFunction/proto-from-ctor-realm.js
@@ -29,10 +29,10 @@ info: |
features: [generators, cross-realm, Reflect]
---*/
-var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
+var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor;
var other = $262.createRealm().global;
var OtherGeneratorFunction = Object.getPrototypeOf(
- other.eval('(0, function* () {})')
+ other.eval('(0, function* () {})')
).constructor;
var C = new other.Function();
C.prototype = null;
diff --git a/test/built-ins/GeneratorFunction/prototype/constructor.js b/test/built-ins/GeneratorFunction/prototype/constructor.js
index 26c4370b1..87cb43184 100644
--- a/test/built-ins/GeneratorFunction/prototype/constructor.js
+++ b/test/built-ins/GeneratorFunction/prototype/constructor.js
@@ -15,7 +15,7 @@ includes: [propertyHelper.js]
features: [generators]
---*/
-var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
+var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor;
assert.sameValue(GeneratorFunction.prototype.constructor, GeneratorFunction);
diff --git a/test/built-ins/GeneratorFunction/prototype/extensibility.js b/test/built-ins/GeneratorFunction/prototype/extensibility.js
index 4a7134769..ca9f59099 100644
--- a/test/built-ins/GeneratorFunction/prototype/extensibility.js
+++ b/test/built-ins/GeneratorFunction/prototype/extensibility.js
@@ -10,6 +10,6 @@ info: |
features: [generators]
---*/
-var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
+var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor;
assert(Object.isExtensible(GeneratorFunction.prototype));
diff --git a/test/built-ins/GeneratorFunction/prototype/prop-desc.js b/test/built-ins/GeneratorFunction/prototype/prop-desc.js
index 1ba38ae8a..e28a1d04b 100644
--- a/test/built-ins/GeneratorFunction/prototype/prop-desc.js
+++ b/test/built-ins/GeneratorFunction/prototype/prop-desc.js
@@ -10,7 +10,7 @@ includes: [propertyHelper.js]
features: [generators]
---*/
-var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
+var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor;
verifyNotEnumerable(GeneratorFunction, 'prototype');
verifyNotWritable(GeneratorFunction, 'prototype');
diff --git a/test/built-ins/GeneratorPrototype/next/consecutive-yields.js b/test/built-ins/GeneratorPrototype/next/consecutive-yields.js
index 3f6332163..3986c63d0 100644
--- a/test/built-ins/GeneratorPrototype/next/consecutive-yields.js
+++ b/test/built-ins/GeneratorPrototype/next/consecutive-yields.js
@@ -8,7 +8,10 @@ description: >
features: [generators]
---*/
-function* g() { yield 1; yield 2; }
+function* g() {
+ yield 1;
+ yield 2;
+}
var iter = g();
var result;
diff --git a/test/built-ins/GeneratorPrototype/next/context-method-invocation.js b/test/built-ins/GeneratorPrototype/next/context-method-invocation.js
index 5e6f3ed5a..aff5667ad 100644
--- a/test/built-ins/GeneratorPrototype/next/context-method-invocation.js
+++ b/test/built-ins/GeneratorPrototype/next/context-method-invocation.js
@@ -9,8 +9,13 @@ features: [generators]
---*/
var context;
-function* g() { context = this; }
-var obj = { g: g };
+
+function* g() {
+ context = this;
+}
+var obj = {
+ g: g
+};
var iter = obj.g();
iter.next();
diff --git a/test/built-ins/GeneratorPrototype/next/from-state-executing.js b/test/built-ins/GeneratorPrototype/next/from-state-executing.js
index 29461cc11..2a05f8c2f 100644
--- a/test/built-ins/GeneratorPrototype/next/from-state-executing.js
+++ b/test/built-ins/GeneratorPrototype/next/from-state-executing.js
@@ -37,9 +37,11 @@ features: [generators]
---*/
var iter, result;
+
function* withoutVal() {
iter.next();
}
+
function* withVal() {
iter.next(42);
}
diff --git a/test/built-ins/GeneratorPrototype/next/lone-return.js b/test/built-ins/GeneratorPrototype/next/lone-return.js
index cae93289b..0a444cbc1 100644
--- a/test/built-ins/GeneratorPrototype/next/lone-return.js
+++ b/test/built-ins/GeneratorPrototype/next/lone-return.js
@@ -8,7 +8,9 @@ description: >
features: [generators]
---*/
-function* g() { return 23; }
+function* g() {
+ return 23;
+}
var iter = g();
var result;
diff --git a/test/built-ins/GeneratorPrototype/next/lone-yield.js b/test/built-ins/GeneratorPrototype/next/lone-yield.js
index 76199c672..c909af148 100644
--- a/test/built-ins/GeneratorPrototype/next/lone-yield.js
+++ b/test/built-ins/GeneratorPrototype/next/lone-yield.js
@@ -8,7 +8,9 @@ description: >
features: [generators]
---*/
-function* g() { yield 1; }
+function* g() {
+ yield 1;
+}
var iter = g();
var result;
diff --git a/test/built-ins/GeneratorPrototype/next/this-val-not-generator.js b/test/built-ins/GeneratorPrototype/next/this-val-not-generator.js
index dee7dfc4e..25727d062 100644
--- a/test/built-ins/GeneratorPrototype/next/this-val-not-generator.js
+++ b/test/built-ins/GeneratorPrototype/next/this-val-not-generator.js
@@ -27,44 +27,60 @@ var GeneratorPrototype = Object.getPrototypeOf(g).prototype;
assert.throws(
TypeError,
- function() { GeneratorPrototype.next.call({}); },
+ function() {
+ GeneratorPrototype.next.call({});
+ },
'ordinary object (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.next.call({}, 1); },
+ function() {
+ GeneratorPrototype.next.call({}, 1);
+ },
'ordinary object (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.next.call(function() {}); },
+ function() {
+ GeneratorPrototype.next.call(function() {});
+ },
'function object (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.next.call(function() {}, 1); },
+ function() {
+ GeneratorPrototype.next.call(function() {}, 1);
+ },
'function object (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.next.call(g); },
+ function() {
+ GeneratorPrototype.next.call(g);
+ },
'generator function object (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.next.call(g, 1); },
+ function() {
+ GeneratorPrototype.next.call(g, 1);
+ },
'generator function object (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.next.call(g.prototype); },
+ function() {
+ GeneratorPrototype.next.call(g.prototype);
+ },
'generator function prototype object (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.next.call(g.prototype, 1); },
+ function() {
+ GeneratorPrototype.next.call(g.prototype, 1);
+ },
'generator function prototype object (with value)'
);
diff --git a/test/built-ins/GeneratorPrototype/next/this-val-not-object.js b/test/built-ins/GeneratorPrototype/next/this-val-not-object.js
index 646590b6f..c42b5777f 100644
--- a/test/built-ins/GeneratorPrototype/next/this-val-not-object.js
+++ b/test/built-ins/GeneratorPrototype/next/this-val-not-object.js
@@ -26,66 +26,90 @@ var symbol = Symbol();
assert.throws(
TypeError,
- function() { GeneratorPrototype.next.call(undefined); },
+ function() {
+ GeneratorPrototype.next.call(undefined);
+ },
'undefined (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.next.call(undefined, 1); },
+ function() {
+ GeneratorPrototype.next.call(undefined, 1);
+ },
'undefined (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.next.call(null); },
+ function() {
+ GeneratorPrototype.next.call(null);
+ },
'null (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.next.call(null, 1); },
+ function() {
+ GeneratorPrototype.next.call(null, 1);
+ },
'null (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.next.call(true); },
+ function() {
+ GeneratorPrototype.next.call(true);
+ },
'boolean (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.next.call(true, 1); },
+ function() {
+ GeneratorPrototype.next.call(true, 1);
+ },
'boolean (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.next.call('s'); },
+ function() {
+ GeneratorPrototype.next.call('s');
+ },
'string (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.next.call('s', 1); },
+ function() {
+ GeneratorPrototype.next.call('s', 1);
+ },
'string (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.next.call(1); },
+ function() {
+ GeneratorPrototype.next.call(1);
+ },
'number (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.next.call(1, 1); },
+ function() {
+ GeneratorPrototype.next.call(1, 1);
+ },
'number (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.next.call(symbol); },
+ function() {
+ GeneratorPrototype.next.call(symbol);
+ },
'symbol (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.next.call(symbol, 1); },
+ function() {
+ GeneratorPrototype.next.call(symbol, 1);
+ },
'symbol (with value)'
);
diff --git a/test/built-ins/GeneratorPrototype/return/from-state-executing.js b/test/built-ins/GeneratorPrototype/return/from-state-executing.js
index 9cf5a78bd..203c1a746 100644
--- a/test/built-ins/GeneratorPrototype/return/from-state-executing.js
+++ b/test/built-ins/GeneratorPrototype/return/from-state-executing.js
@@ -37,6 +37,7 @@ features: [generators]
---*/
var iter, result;
+
function* g() {
iter.return(42);
}
diff --git a/test/built-ins/GeneratorPrototype/return/from-state-suspended-start.js b/test/built-ins/GeneratorPrototype/return/from-state-suspended-start.js
index b20ad0aed..34e6eebfb 100644
--- a/test/built-ins/GeneratorPrototype/return/from-state-suspended-start.js
+++ b/test/built-ins/GeneratorPrototype/return/from-state-suspended-start.js
@@ -10,6 +10,7 @@ features: [generators]
---*/
var bodyCount = 0;
+
function* G() {
bodyCount += 1;
}
diff --git a/test/built-ins/GeneratorPrototype/return/this-val-not-generator.js b/test/built-ins/GeneratorPrototype/return/this-val-not-generator.js
index 1af04d299..dd0ff4b33 100644
--- a/test/built-ins/GeneratorPrototype/return/this-val-not-generator.js
+++ b/test/built-ins/GeneratorPrototype/return/this-val-not-generator.js
@@ -27,44 +27,60 @@ var GeneratorPrototype = Object.getPrototypeOf(g).prototype;
assert.throws(
TypeError,
- function() { GeneratorPrototype.return.call({}); },
+ function() {
+ GeneratorPrototype.return.call({});
+ },
'ordinary object (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.return.call({}, 1); },
+ function() {
+ GeneratorPrototype.return.call({}, 1);
+ },
'ordinary object (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.return.call(function() {}); },
+ function() {
+ GeneratorPrototype.return.call(function() {});
+ },
'function object (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.return.call(function() {}, 1); },
+ function() {
+ GeneratorPrototype.return.call(function() {}, 1);
+ },
'function object (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.return.call(g); },
+ function() {
+ GeneratorPrototype.return.call(g);
+ },
'generator function object (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.return.call(g, 1); },
+ function() {
+ GeneratorPrototype.return.call(g, 1);
+ },
'generator function object (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.return.call(g.prototype); },
+ function() {
+ GeneratorPrototype.return.call(g.prototype);
+ },
'generator function prototype object (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.return.call(g.prototype, 1); },
+ function() {
+ GeneratorPrototype.return.call(g.prototype, 1);
+ },
'generator function prototype object (with value)'
);
diff --git a/test/built-ins/GeneratorPrototype/return/this-val-not-object.js b/test/built-ins/GeneratorPrototype/return/this-val-not-object.js
index edf0b124e..c8431b407 100644
--- a/test/built-ins/GeneratorPrototype/return/this-val-not-object.js
+++ b/test/built-ins/GeneratorPrototype/return/this-val-not-object.js
@@ -26,66 +26,90 @@ var symbol = Symbol();
assert.throws(
TypeError,
- function() { GeneratorPrototype.return.call(undefined); },
+ function() {
+ GeneratorPrototype.return.call(undefined);
+ },
'undefined (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.return.call(undefined, 1); },
+ function() {
+ GeneratorPrototype.return.call(undefined, 1);
+ },
'undefined (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.return.call(null); },
+ function() {
+ GeneratorPrototype.return.call(null);
+ },
'null (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.return.call(null, 1); },
+ function() {
+ GeneratorPrototype.return.call(null, 1);
+ },
'null (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.return.call(true); },
+ function() {
+ GeneratorPrototype.return.call(true);
+ },
'boolean (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.return.call(true, 1); },
+ function() {
+ GeneratorPrototype.return.call(true, 1);
+ },
'boolean (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.return.call('s'); },
+ function() {
+ GeneratorPrototype.return.call('s');
+ },
'string (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.return.call('s', 1); },
+ function() {
+ GeneratorPrototype.return.call('s', 1);
+ },
'string (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.return.call(1); },
+ function() {
+ GeneratorPrototype.return.call(1);
+ },
'number (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.return.call(1, 1); },
+ function() {
+ GeneratorPrototype.return.call(1, 1);
+ },
'number (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.return.call(symbol); },
+ function() {
+ GeneratorPrototype.return.call(symbol);
+ },
'symbol (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.return.call(symbol, 1); },
+ function() {
+ GeneratorPrototype.return.call(symbol, 1);
+ },
'symbol (with value)'
);
diff --git a/test/built-ins/GeneratorPrototype/return/try-catch-before-try.js b/test/built-ins/GeneratorPrototype/return/try-catch-before-try.js
index f1b1bdc44..d7c40026d 100644
--- a/test/built-ins/GeneratorPrototype/return/try-catch-before-try.js
+++ b/test/built-ins/GeneratorPrototype/return/try-catch-before-try.js
@@ -10,6 +10,7 @@ features: [generators]
---*/
var unreachable = 0;
+
function* g() {
yield;
try {
diff --git a/test/built-ins/GeneratorPrototype/return/try-catch-following-catch.js b/test/built-ins/GeneratorPrototype/return/try-catch-following-catch.js
index f354530be..b7880cea8 100644
--- a/test/built-ins/GeneratorPrototype/return/try-catch-following-catch.js
+++ b/test/built-ins/GeneratorPrototype/return/try-catch-following-catch.js
@@ -11,6 +11,7 @@ features: [generators]
var afterCatch = 0;
var unreachable = 0;
+
function* g() {
try {
throw new Error();
diff --git a/test/built-ins/GeneratorPrototype/return/try-catch-within-catch.js b/test/built-ins/GeneratorPrototype/return/try-catch-within-catch.js
index 16c9573f6..a995017d2 100644
--- a/test/built-ins/GeneratorPrototype/return/try-catch-within-catch.js
+++ b/test/built-ins/GeneratorPrototype/return/try-catch-within-catch.js
@@ -11,6 +11,7 @@ features: [generators]
var inCatch = 0;
var unreachable = 0;
+
function* g() {
try {
throw new Error();
diff --git a/test/built-ins/GeneratorPrototype/return/try-catch-within-try.js b/test/built-ins/GeneratorPrototype/return/try-catch-within-try.js
index 3e925ba10..2d86cb3bf 100644
--- a/test/built-ins/GeneratorPrototype/return/try-catch-within-try.js
+++ b/test/built-ins/GeneratorPrototype/return/try-catch-within-try.js
@@ -11,6 +11,7 @@ features: [generators]
var inTry = 0;
var unreachable = 0;
+
function* g() {
try {
inTry += 1;
diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-before-try.js b/test/built-ins/GeneratorPrototype/return/try-finally-before-try.js
index 1f1522fbb..24be6db3c 100644
--- a/test/built-ins/GeneratorPrototype/return/try-finally-before-try.js
+++ b/test/built-ins/GeneratorPrototype/return/try-finally-before-try.js
@@ -10,12 +10,11 @@ features: [generators]
---*/
var unreachable = 0;
+
function* g() {
yield;
unreachable += 1;
- try {
- } finally {
- }
+ try {} finally {}
}
var iter = g();
var result;
diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-following-finally.js b/test/built-ins/GeneratorPrototype/return/try-finally-following-finally.js
index 9066852be..665e968b4 100644
--- a/test/built-ins/GeneratorPrototype/return/try-finally-following-finally.js
+++ b/test/built-ins/GeneratorPrototype/return/try-finally-following-finally.js
@@ -11,9 +11,9 @@ features: [generators]
var afterFinally = 0;
var unreachable = 0;
+
function* g() {
- try {
- } finally {}
+ try {} finally {}
afterFinally += 1;
yield;
unreachable += 1;
diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-catch.js b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-catch.js
index 25e1c134e..937a0bd28 100644
--- a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-catch.js
+++ b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-catch.js
@@ -13,6 +13,7 @@ features: [generators]
var inCatch = 0;
var inFinally = 0;
var unreachable = 0;
+
function* g() {
try {
try {
diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-finally.js b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-finally.js
index 42ff56701..6bfef0e30 100644
--- a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-finally.js
+++ b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-finally.js
@@ -11,11 +11,11 @@ features: [generators]
var inFinally = 0;
var unreachable = 0;
+
function* g() {
try {
throw new Error();
- try {
- } catch (e) {}
+ try {} catch (e) {}
} finally {
inFinally += 1;
yield;
diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-inner-try.js b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-inner-try.js
index 8cb4b6ba1..9d8d5b6ae 100644
--- a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-inner-try.js
+++ b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-inner-try.js
@@ -13,6 +13,7 @@ features: [generators]
var inTry = 0;
var inFinally = 0;
var unreachable = 0;
+
function* g() {
try {
try {
diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-after-nested.js b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-after-nested.js
index 2342f69a6..5e056c140 100644
--- a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-after-nested.js
+++ b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-after-nested.js
@@ -13,6 +13,7 @@ features: [generators]
var inCatch = 0;
var inFinally = 0;
var unreachable = 0;
+
function* g() {
try {
try {
@@ -29,7 +30,7 @@ function* g() {
var iter = g();
var result;
- iter.next();
+iter.next();
assert.sameValue(inCatch, 1, '`catch` code path executed');
assert.sameValue(inFinally, 1, '`finally` code path executed');
diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-before-nested.js b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-before-nested.js
index f97d9bb48..7121ebd77 100644
--- a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-before-nested.js
+++ b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-before-nested.js
@@ -13,6 +13,7 @@ features: [generators]
var inTry = 0;
var inFinally = 0;
var unreachable = 0;
+
function* g() {
try {
inTry += 1;
diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-within-finally.js b/test/built-ins/GeneratorPrototype/return/try-finally-within-finally.js
index 4ea893dc3..fbec889d9 100644
--- a/test/built-ins/GeneratorPrototype/return/try-finally-within-finally.js
+++ b/test/built-ins/GeneratorPrototype/return/try-finally-within-finally.js
@@ -11,9 +11,9 @@ features: [generators]
var inFinally = 0;
var unreachable = 0;
+
function* g() {
- try {
- } finally {
+ try {} finally {
inFinally += 1;
yield;
unreachable += 1;
diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-within-try.js b/test/built-ins/GeneratorPrototype/return/try-finally-within-try.js
index 5b0dce6ef..336c0389b 100644
--- a/test/built-ins/GeneratorPrototype/return/try-finally-within-try.js
+++ b/test/built-ins/GeneratorPrototype/return/try-finally-within-try.js
@@ -12,6 +12,7 @@ features: [generators]
var inTry = 0;
var inFinally = 0;
var unreachable = 0;
+
function* g() {
try {
inTry += 1;
diff --git a/test/built-ins/GeneratorPrototype/throw/from-state-completed.js b/test/built-ins/GeneratorPrototype/throw/from-state-completed.js
index 3d8e6cbf5..209ab9fed 100644
--- a/test/built-ins/GeneratorPrototype/throw/from-state-completed.js
+++ b/test/built-ins/GeneratorPrototype/throw/from-state-completed.js
@@ -9,13 +9,16 @@ features: [generators]
---*/
function E() {}
+
function* G() {}
var iter;
iter = G();
iter.next();
-assert.throws(E, function() { iter.throw(new E()); });
+assert.throws(E, function() {
+ iter.throw(new E());
+});
var result = iter.next();
diff --git a/test/built-ins/GeneratorPrototype/throw/from-state-executing.js b/test/built-ins/GeneratorPrototype/throw/from-state-executing.js
index 2af2f73ab..df1601517 100644
--- a/test/built-ins/GeneratorPrototype/throw/from-state-executing.js
+++ b/test/built-ins/GeneratorPrototype/throw/from-state-executing.js
@@ -37,6 +37,7 @@ features: [generators]
---*/
var iter, result;
+
function* g() {
iter.throw(42);
}
diff --git a/test/built-ins/GeneratorPrototype/throw/from-state-suspended-start.js b/test/built-ins/GeneratorPrototype/throw/from-state-suspended-start.js
index 53d44904e..3bf6296c3 100644
--- a/test/built-ins/GeneratorPrototype/throw/from-state-suspended-start.js
+++ b/test/built-ins/GeneratorPrototype/throw/from-state-suspended-start.js
@@ -10,6 +10,7 @@ features: [generators]
---*/
function E() {}
+
function* G() {
yield 1;
yield 2;
@@ -17,7 +18,9 @@ function* G() {
var iter;
iter = G();
-assert.throws(E, function() { iter.throw(new E()); });
+assert.throws(E, function() {
+ iter.throw(new E());
+});
var result = iter.next();
diff --git a/test/built-ins/GeneratorPrototype/throw/this-val-not-generator.js b/test/built-ins/GeneratorPrototype/throw/this-val-not-generator.js
index 8667ad897..fae6fe7b7 100644
--- a/test/built-ins/GeneratorPrototype/throw/this-val-not-generator.js
+++ b/test/built-ins/GeneratorPrototype/throw/this-val-not-generator.js
@@ -27,44 +27,60 @@ var GeneratorPrototype = Object.getPrototypeOf(g).prototype;
assert.throws(
TypeError,
- function() { GeneratorPrototype.throw.call({}); },
+ function() {
+ GeneratorPrototype.throw.call({});
+ },
'ordinary object (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.throw.call({}, 1); },
+ function() {
+ GeneratorPrototype.throw.call({}, 1);
+ },
'ordinary object (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.throw.call(function() {}); },
+ function() {
+ GeneratorPrototype.throw.call(function() {});
+ },
'function object (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.throw.call(function() {}, 1); },
+ function() {
+ GeneratorPrototype.throw.call(function() {}, 1);
+ },
'function object (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.throw.call(g); },
+ function() {
+ GeneratorPrototype.throw.call(g);
+ },
'generator function object (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.throw.call(g, 1); },
+ function() {
+ GeneratorPrototype.throw.call(g, 1);
+ },
'generator function object (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.throw.call(g.prototype); },
+ function() {
+ GeneratorPrototype.throw.call(g.prototype);
+ },
'generator function prototype object (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.throw.call(g.prototype, 1); },
+ function() {
+ GeneratorPrototype.throw.call(g.prototype, 1);
+ },
'generator function prototype object (with value)'
);
diff --git a/test/built-ins/GeneratorPrototype/throw/this-val-not-object.js b/test/built-ins/GeneratorPrototype/throw/this-val-not-object.js
index 8b4d342be..8122f2b38 100644
--- a/test/built-ins/GeneratorPrototype/throw/this-val-not-object.js
+++ b/test/built-ins/GeneratorPrototype/throw/this-val-not-object.js
@@ -26,66 +26,90 @@ var symbol = Symbol();
assert.throws(
TypeError,
- function() { GeneratorPrototype.throw.call(undefined); },
+ function() {
+ GeneratorPrototype.throw.call(undefined);
+ },
'undefined (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.throw.call(undefined, 1); },
+ function() {
+ GeneratorPrototype.throw.call(undefined, 1);
+ },
'undefined (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.throw.call(null); },
+ function() {
+ GeneratorPrototype.throw.call(null);
+ },
'null (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.throw.call(null, 1); },
+ function() {
+ GeneratorPrototype.throw.call(null, 1);
+ },
'null (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.throw.call(true); },
+ function() {
+ GeneratorPrototype.throw.call(true);
+ },
'boolean (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.throw.call(true, 1); },
+ function() {
+ GeneratorPrototype.throw.call(true, 1);
+ },
'boolean (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.throw.call('s'); },
+ function() {
+ GeneratorPrototype.throw.call('s');
+ },
'string (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.throw.call('s', 1); },
+ function() {
+ GeneratorPrototype.throw.call('s', 1);
+ },
'string (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.throw.call(1); },
+ function() {
+ GeneratorPrototype.throw.call(1);
+ },
'number (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.throw.call(1, 1); },
+ function() {
+ GeneratorPrototype.throw.call(1, 1);
+ },
'number (with value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.throw.call(symbol); },
+ function() {
+ GeneratorPrototype.throw.call(symbol);
+ },
'symbol (without value)'
);
assert.throws(
TypeError,
- function() { GeneratorPrototype.throw.call(symbol, 1); },
+ function() {
+ GeneratorPrototype.throw.call(symbol, 1);
+ },
'symbol (with value)'
);
diff --git a/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js b/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js
index bfd3086c7..bc2707e5c 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js
@@ -10,6 +10,7 @@ features: [generators]
---*/
var unreachable = 0;
+
function* g() {
yield 1;
unreachable += 1;
@@ -31,7 +32,9 @@ assert.sameValue(
unreachable, 0, 'statement following `yield` not executed (paused at yield)'
);
-assert.throws(Test262Error, function() { iter.throw(new Test262Error()); });
+assert.throws(Test262Error, function() {
+ iter.throw(new Test262Error());
+});
assert.sameValue(
unreachable,
diff --git a/test/built-ins/GeneratorPrototype/throw/try-catch-following-catch.js b/test/built-ins/GeneratorPrototype/throw/try-catch-following-catch.js
index 1e6912542..1866ad20d 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-catch-following-catch.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-catch-following-catch.js
@@ -11,6 +11,7 @@ features: [generators]
var obj = {};
var unreachable = 0;
+
function* g() {
yield 1;
try {
@@ -41,7 +42,9 @@ result = iter.next();
assert.sameValue(result.value, 3, 'Fourth result `value`');
assert.sameValue(result.done, false, 'Fourth result `done` flag');
-assert.throws(Test262Error, function() { iter.throw(new Test262Error()); });
+assert.throws(Test262Error, function() {
+ iter.throw(new Test262Error());
+});
assert.sameValue(
unreachable,
diff --git a/test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js b/test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js
index 176b4cc41..937004428 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js
@@ -10,6 +10,7 @@ features: [generators]
---*/
var unreachable = 0;
+
function* g() {
yield 1;
try {
@@ -38,7 +39,9 @@ result = iter.next();
assert.sameValue(result.value, exception, 'Third result `value`');
assert.sameValue(result.done, false, 'Third result `done` flag');
-assert.throws(Test262Error, function() { iter.throw(new Test262Error()); });
+assert.throws(Test262Error, function() {
+ iter.throw(new Test262Error());
+});
assert.sameValue(
unreachable,
diff --git a/test/built-ins/GeneratorPrototype/throw/try-catch-within-try.js b/test/built-ins/GeneratorPrototype/throw/try-catch-within-try.js
index af352ae29..e63430ce6 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-catch-within-try.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-catch-within-try.js
@@ -10,6 +10,7 @@ features: [generators]
---*/
var unreachable = 0;
+
function* g() {
yield 1;
try {
diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-before-try.js b/test/built-ins/GeneratorPrototype/throw/try-finally-before-try.js
index 4ecd883b9..daad602d0 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-finally-before-try.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-finally-before-try.js
@@ -10,6 +10,7 @@ features: [generators]
---*/
var unreachable = 0;
+
function* g() {
yield 1;
unreachable += 1;
@@ -33,7 +34,9 @@ assert.sameValue(
unreachable, 0, 'statement following `yield` not executed (paused at yield)'
);
-assert.throws(Test262Error, function() { iter.throw(new Test262Error()); });
+assert.throws(Test262Error, function() {
+ iter.throw(new Test262Error());
+});
assert.sameValue(
unreachable,
@@ -45,7 +48,7 @@ result = iter.next();
assert.sameValue(
result.value, undefined, 'Result `value` is undefined when done'
);
-assert.sameValue( result.done, true, 'Result `done` flag is `true` when done');
+assert.sameValue(result.done, true, 'Result `done` flag is `true` when done');
assert.sameValue(
unreachable, 0, 'statement following `yield` not executed (once "completed")'
);
diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-following-finally.js b/test/built-ins/GeneratorPrototype/throw/try-finally-following-finally.js
index fdc9fa55d..aac9dd130 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-finally-following-finally.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-finally-following-finally.js
@@ -10,6 +10,7 @@ features: [generators]
---*/
var unreachable = 0;
+
function* g() {
yield 1;
try {
@@ -39,7 +40,9 @@ result = iter.next();
assert.sameValue(result.value, 4, 'Third result `value`');
assert.sameValue(result.done, false, 'Third result `done` flag');
-assert.throws(Test262Error, function() { iter.throw(new Test262Error()); });
+assert.throws(Test262Error, function() {
+ iter.throw(new Test262Error());
+});
assert.sameValue(
unreachable,
diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-catch.js b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-catch.js
index c69d12f42..16c78fe31 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-catch.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-catch.js
@@ -11,6 +11,7 @@ features: [generators]
---*/
var unreachable = 0;
+
function* g() {
try {
yield 1;
@@ -47,7 +48,9 @@ result = iter.throw(new Test262Error());
assert.sameValue(result.value, 4, 'Fourth result `value`');
assert.sameValue(result.done, false, 'Fourth result `done` flag');
-assert.throws(Test262Error, function() { iter.next(); });
+assert.throws(Test262Error, function() {
+ iter.next();
+});
assert.sameValue(
unreachable,
diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-finally.js b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-finally.js
index 8c5392ea7..eb691f39c 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-finally.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-finally.js
@@ -10,6 +10,7 @@ features: [generators]
---*/
var unreachable = 0;
+
function* g() {
try {
yield 1;
@@ -38,7 +39,9 @@ result = iter.next();
assert.sameValue(result.value, 4, 'Second result `value`');
assert.sameValue(result.done, false, 'First result `done` flag');
-assert.throws(Test262Error, function() { iter.throw(new Test262Error()); });
+assert.throws(Test262Error, function() {
+ iter.throw(new Test262Error());
+});
assert.sameValue(
unreachable,
diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-inner-try.js b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-inner-try.js
index 6b0ae2647..20c833b45 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-inner-try.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-inner-try.js
@@ -11,6 +11,7 @@ features: [generators]
---*/
var unreachable = 0;
+
function* g() {
try {
yield 1;
diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-after-nested.js b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-after-nested.js
index 93c9cbad5..cb1c4318b 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-after-nested.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-after-nested.js
@@ -11,6 +11,7 @@ features: [generators]
---*/
var unreachable = 0;
+
function* g() {
try {
yield 1;
@@ -57,7 +58,9 @@ assert.sameValue(
'statement following `yield` not executed (following `throw`)'
);
-assert.throws(Test262Error, function() { iter.next(); });
+assert.throws(Test262Error, function() {
+ iter.next();
+});
result = iter.next();
assert.sameValue(
diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-before-nested.js b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-before-nested.js
index 942234e3c..5ce3a0516 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-before-nested.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-before-nested.js
@@ -11,6 +11,7 @@ features: [generators]
---*/
var unreachable = 0;
+
function* g() {
try {
yield 1;
@@ -43,7 +44,9 @@ assert.sameValue(
'statement following `yield` not executed (following `throw`)'
);
-assert.throws(Test262Error, function() { iter.next(); });
+assert.throws(Test262Error, function() {
+ iter.next();
+});
result = iter.next();
assert.sameValue(
diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-within-finally.js b/test/built-ins/GeneratorPrototype/throw/try-finally-within-finally.js
index 8a83967c5..628987116 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-finally-within-finally.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-finally-within-finally.js
@@ -10,6 +10,7 @@ features: [generators]
---*/
var unreachable = 0;
+
function* g() {
yield 1;
try {
@@ -35,7 +36,9 @@ result = iter.next();
assert.sameValue(result.value, 3, 'Third result `value`');
assert.sameValue(result.done, false, 'Third result `done` flag');
-assert.throws(Test262Error, function() { iter.throw(new Test262Error()); });
+assert.throws(Test262Error, function() {
+ iter.throw(new Test262Error());
+});
assert.sameValue(
unreachable,
diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-within-try.js b/test/built-ins/GeneratorPrototype/throw/try-finally-within-try.js
index 19764d8b7..91105b8b7 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-finally-within-try.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-finally-within-try.js
@@ -10,6 +10,7 @@ features: [generators]
---*/
var unreachable = 0;
+
function* g() {
yield 1;
try {
@@ -41,7 +42,9 @@ assert.sameValue(
'statement following `yield` not executed (following `throw`)'
);
-assert.throws(Test262Error, function() { iter.next(); });
+assert.throws(Test262Error, function() {
+ iter.next();
+});
result = iter.next();
assert.sameValue(
diff --git a/test/built-ins/Infinity/15.1.1.2-0.js b/test/built-ins/Infinity/15.1.1.2-0.js
index a2e63985e..4c713b591 100644
--- a/test/built-ins/Infinity/15.1.1.2-0.js
+++ b/test/built-ins/Infinity/15.1.1.2-0.js
@@ -8,7 +8,7 @@ description: >
(false)
---*/
- var desc = Object.getOwnPropertyDescriptor(this, 'Infinity');
+var desc = Object.getOwnPropertyDescriptor(this, 'Infinity');
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Infinity/S15.1.1.2_A1.js b/test/built-ins/Infinity/S15.1.1.2_A1.js
index 063168d55..5895191bd 100644
--- a/test/built-ins/Infinity/S15.1.1.2_A1.js
+++ b/test/built-ins/Infinity/S15.1.1.2_A1.js
@@ -9,21 +9,21 @@ description: Use typeof, isNaN, isFinite
// CHECK#1
if (typeof(Infinity) !== "number") {
- $ERROR('#1: typeof(Infinity) === "number". Actual: ' + (typeof(Infinity)));
+ $ERROR('#1: typeof(Infinity) === "number". Actual: ' + (typeof(Infinity)));
}
// CHECK#2
if (isFinite(Infinity) !== false) {
- $ERROR('#2: Infinity === Not-a-Finite. Actual: ' + (Infinity));
+ $ERROR('#2: Infinity === Not-a-Finite. Actual: ' + (Infinity));
}
// CHECK#3
if (isNaN(Infinity) !== false) {
- $ERROR('#3: Infinity === Not-a-Number. Actual: ' + (Infinity));
+ $ERROR('#3: Infinity === Not-a-Number. Actual: ' + (Infinity));
}
// CHECK#4
if (Infinity !== Number.POSITIVE_INFINITY) {
- $ERROR('#4: Infinity === Number.POSITIVE_INFINITY. Actual: ' + (Infinity));
+ $ERROR('#4: Infinity === Number.POSITIVE_INFINITY. Actual: ' + (Infinity));
}
diff --git a/test/built-ins/Infinity/S15.1.1.2_A2_T1.js b/test/built-ins/Infinity/S15.1.1.2_A2_T1.js
index 0a6435466..1575771b2 100644
--- a/test/built-ins/Infinity/S15.1.1.2_A2_T1.js
+++ b/test/built-ins/Infinity/S15.1.1.2_A2_T1.js
@@ -11,5 +11,5 @@ includes: [propertyHelper.js]
// CHECK#1
verifyNotWritable(this, "Infinity", null, true);
if (typeof(Infinity) === "boolean") {
- $ERROR('#1: Infinity = true; typeof(Infinity) !== "boolean". Actual: ' + (typeof(Infinity)));
+ $ERROR('#1: Infinity = true; typeof(Infinity) !== "boolean". Actual: ' + (typeof(Infinity)));
}
diff --git a/test/built-ins/Infinity/S15.1.1.2_A2_T2.js b/test/built-ins/Infinity/S15.1.1.2_A2_T2.js
index d6c409387..ea99c3061 100644
--- a/test/built-ins/Infinity/S15.1.1.2_A2_T2.js
+++ b/test/built-ins/Infinity/S15.1.1.2_A2_T2.js
@@ -11,5 +11,5 @@ flags: [noStrict]
// CHECK#1
Infinity = true;
if (typeof(Infinity) === "boolean") {
- $ERROR('#1: Infinity = true; typeof(Infinity) !== "boolean". Actual: ' + (typeof(Infinity)));
+ $ERROR('#1: Infinity = true; typeof(Infinity) !== "boolean". Actual: ' + (typeof(Infinity)));
}
diff --git a/test/built-ins/Infinity/S15.1.1.2_A3_T2.js b/test/built-ins/Infinity/S15.1.1.2_A3_T2.js
index 8e8433f4d..09b1a7467 100644
--- a/test/built-ins/Infinity/S15.1.1.2_A3_T2.js
+++ b/test/built-ins/Infinity/S15.1.1.2_A3_T2.js
@@ -10,5 +10,5 @@ flags: [noStrict]
// CHECK#1
if (delete Infinity !== false) {
- $ERROR('#1: delete Infinity === false. Actual: ' + (delete Infinity));
+ $ERROR('#1: delete Infinity === false. Actual: ' + (delete Infinity));
}
diff --git a/test/built-ins/Infinity/S15.1.1.2_A4.js b/test/built-ins/Infinity/S15.1.1.2_A4.js
index fe9c76f6d..73dadfecc 100644
--- a/test/built-ins/Infinity/S15.1.1.2_A4.js
+++ b/test/built-ins/Infinity/S15.1.1.2_A4.js
@@ -10,6 +10,6 @@ description: Use for-in statement
// CHECK#1
for (var prop in this) {
if (prop === "Infinity") {
- $ERROR('#1: The Infinity is DontEnum');
+ $ERROR('#1: The Infinity is DontEnum');
}
}
diff --git a/test/built-ins/JSON/15.12-0-1.js b/test/built-ins/JSON/15.12-0-1.js
index 7dcb5975b..1d0776cc7 100644
--- a/test/built-ins/JSON/15.12-0-1.js
+++ b/test/built-ins/JSON/15.12-0-1.js
@@ -10,6 +10,6 @@ es5id: 15.12-0-1
description: JSON must be a built-in object
---*/
- var o = JSON;
+var o = JSON;
assert.sameValue(typeof(o), "object", 'typeof(o)');
diff --git a/test/built-ins/JSON/15.12-0-2.js b/test/built-ins/JSON/15.12-0-2.js
index 924b54991..5c086b533 100644
--- a/test/built-ins/JSON/15.12-0-2.js
+++ b/test/built-ins/JSON/15.12-0-2.js
@@ -10,7 +10,7 @@ es5id: 15.12-0-2
description: JSON must not support the [[Construct]] method
---*/
- var o = JSON;
+var o = JSON;
assert.throws(TypeError, function() {
- var j = new JSON();
+ var j = new JSON();
});
diff --git a/test/built-ins/JSON/15.12-0-3.js b/test/built-ins/JSON/15.12-0-3.js
index 4a511110a..4e082c49f 100644
--- a/test/built-ins/JSON/15.12-0-3.js
+++ b/test/built-ins/JSON/15.12-0-3.js
@@ -10,7 +10,7 @@ es5id: 15.12-0-3
description: JSON must not support the [[Call]] method
---*/
- var o = JSON;
+var o = JSON;
assert.throws(TypeError, function() {
- var j = JSON();
+ var j = JSON();
});
diff --git a/test/built-ins/JSON/15.12-0-4.js b/test/built-ins/JSON/15.12-0-4.js
index 565dcc95b..804c33687 100644
--- a/test/built-ins/JSON/15.12-0-4.js
+++ b/test/built-ins/JSON/15.12-0-4.js
@@ -12,11 +12,11 @@ es5id: 15.12-0-4
description: JSON object's properties must be non enumerable
---*/
- var o = JSON;
- var i = 0;
- for (var p in o) {
- i++;
- }
-
+var o = JSON;
+var i = 0;
+for (var p in o) {
+ i++;
+}
+
assert.sameValue(i, 0, 'i');
diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-1.js b/test/built-ins/JSON/parse/15.12.1.1-0-1.js
index d1bb9eecd..6134ce18f 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-0-1.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-0-1.js
@@ -7,5 +7,5 @@ description: The JSON lexical grammar treats whitespace as a token seperator
---*/
assert.throws(SyntaxError, function() {
- JSON.parse('12\t\r\n 34'); // should produce a syntax error as whitespace results in two tokens
+ JSON.parse('12\t\r\n 34'); // should produce a syntax error as whitespace results in two tokens
});
diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-2.js b/test/built-ins/JSON/parse/15.12.1.1-0-2.js
index 8254a4d62..e2e3f87e1 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-0-2.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-0-2.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(SyntaxError, function() {
- JSON.parse('\u000b1234'); // should produce a syntax error
+ JSON.parse('\u000b1234'); // should produce a syntax error
});
diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-3.js b/test/built-ins/JSON/parse/15.12.1.1-0-3.js
index fb213cb00..32fe77231 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-0-3.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-0-3.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(SyntaxError, function() {
- JSON.parse('\u000c1234'); // should produce a syntax error
+ JSON.parse('\u000c1234'); // should produce a syntax error
});
diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-4.js b/test/built-ins/JSON/parse/15.12.1.1-0-4.js
index 34b31816c..879335aa1 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-0-4.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-0-4.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(SyntaxError, function() {
- JSON.parse('\u00a01234'); // should produce a syntax error
+ JSON.parse('\u00a01234'); // should produce a syntax error
});
diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-5.js b/test/built-ins/JSON/parse/15.12.1.1-0-5.js
index e18222fd2..59aff18b6 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-0-5.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-0-5.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(SyntaxError, function() {
- JSON.parse('\u200b1234'); // should produce a syntax error
+ JSON.parse('\u200b1234'); // should produce a syntax error
});
diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-6.js b/test/built-ins/JSON/parse/15.12.1.1-0-6.js
index cfaf7d050..ff2889373 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-0-6.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-0-6.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(SyntaxError, function() {
- JSON.parse('\ufeff1234'); // should produce a syntax error a
+ JSON.parse('\ufeff1234'); // should produce a syntax error a
});
diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-8.js b/test/built-ins/JSON/parse/15.12.1.1-0-8.js
index fa7bb87b3..d342003b9 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-0-8.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-0-8.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(SyntaxError, function() {
- JSON.parse('\u2028\u20291234'); // should produce a syntax error
+ JSON.parse('\u2028\u20291234'); // should produce a syntax error
});
diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-9.js b/test/built-ins/JSON/parse/15.12.1.1-0-9.js
index e669bb290..5deb8a581 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-0-9.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-0-9.js
@@ -6,8 +6,8 @@ es5id: 15.12.1.1-0-9
description: Whitespace characters can appear before/after any JSONtoken
---*/
- JSON.parse('\t\r \n{\t\r \n'+
- '"property"\t\r \n:\t\r \n{\t\r \n}\t\r \n,\t\r \n' +
- '"prop2"\t\r \n:\t\r \n'+
- '[\t\r \ntrue\t\r \n,\t\r \nnull\t\r \n,123.456\t\r \n]'+
- '\t\r \n}\t\r \n'); // should JOSN parse without error
+JSON.parse('\t\r \n{\t\r \n' +
+ '"property"\t\r \n:\t\r \n{\t\r \n}\t\r \n,\t\r \n' +
+ '"prop2"\t\r \n:\t\r \n' +
+ '[\t\r \ntrue\t\r \n,\t\r \nnull\t\r \n,123.456\t\r \n]' +
+ '\t\r \n}\t\r \n'); // should JOSN parse without error
diff --git a/test/built-ins/JSON/parse/15.12.1.1-g1-1.js b/test/built-ins/JSON/parse/15.12.1.1-g1-1.js
index 4325a2899..3b0ccd470 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-g1-1.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-g1-1.js
@@ -9,5 +9,5 @@ description: The JSON lexical grammar treats <TAB> as a whitespace character
assert.sameValue(JSON.parse('\t1234'), 1234, '<TAB> should be ignored');
assert.throws(SyntaxError, function() {
- JSON.parse('12\t34');
+ JSON.parse('12\t34');
}, '<TAB> should produce a syntax error as whitespace results in two tokens');
diff --git a/test/built-ins/JSON/parse/15.12.1.1-g1-2.js b/test/built-ins/JSON/parse/15.12.1.1-g1-2.js
index 4c71c01a7..f42e2c7a8 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-g1-2.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-g1-2.js
@@ -9,5 +9,5 @@ description: The JSON lexical grammar treats <CR> as a whitespace character
assert.sameValue(JSON.parse('\r1234'), 1234, '<cr> should be ignored');
assert.throws(SyntaxError, function() {
- JSON.parse('12\r34');
+ JSON.parse('12\r34');
}, '<CR> should produce a syntax error as whitespace results in two tokens');
diff --git a/test/built-ins/JSON/parse/15.12.1.1-g1-3.js b/test/built-ins/JSON/parse/15.12.1.1-g1-3.js
index 80e533c41..7de418059 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-g1-3.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-g1-3.js
@@ -9,5 +9,5 @@ description: The JSON lexical grammar treats <LF> as a whitespace character
assert.sameValue(JSON.parse('\n1234'), 1234, '<LF> should be ignored');
assert.throws(SyntaxError, function() {
- JSON.parse('12\n34');
+ JSON.parse('12\n34');
}, '<LF> should produce a syntax error as whitespace results in two tokens');
diff --git a/test/built-ins/JSON/parse/15.12.1.1-g1-4.js b/test/built-ins/JSON/parse/15.12.1.1-g1-4.js
index b00e82b55..03684d8f5 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-g1-4.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-g1-4.js
@@ -9,5 +9,5 @@ description: The JSON lexical grammar treats <SP> as a whitespace character
assert.sameValue(JSON.parse(' 1234'), 1234, '<SP> should be ignored');
assert.throws(SyntaxError, function() {
- JSON.parse('12 34');
+ JSON.parse('12 34');
}, '<SP> should produce a syntax error as whitespace results in two tokens');
diff --git a/test/built-ins/JSON/parse/15.12.1.1-g2-4.js b/test/built-ins/JSON/parse/15.12.1.1-g2-4.js
index cf4a5d47f..97a669bbb 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-g2-4.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-g2-4.js
@@ -7,5 +7,5 @@ description: A JSONString must both begin and end with double quotes
---*/
assert.throws(SyntaxError, function() {
- JSON.parse('"ab'+"c'");
+ JSON.parse('"ab' + "c'");
});
diff --git a/test/built-ins/JSON/parse/15.12.1.1-g4-1.js b/test/built-ins/JSON/parse/15.12.1.1-g4-1.js
index d7b8a4584..6015ce798 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-g4-1.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-g4-1.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(SyntaxError, function() {
- JSON.parse('"\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007"'); // invalid string characters should produce a syntax error
+ JSON.parse('"\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007"'); // invalid string characters should produce a syntax error
});
diff --git a/test/built-ins/JSON/parse/15.12.1.1-g4-2.js b/test/built-ins/JSON/parse/15.12.1.1-g4-2.js
index 5022dcbca..a5d434e6d 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-g4-2.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-g4-2.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(SyntaxError, function() {
- JSON.parse('"\u0008\u0009\u000a\u000b\u000c\u000d\u000e\u000f"'); // invalid string characters should produce a syntax error
+ JSON.parse('"\u0008\u0009\u000a\u000b\u000c\u000d\u000e\u000f"'); // invalid string characters should produce a syntax error
});
diff --git a/test/built-ins/JSON/parse/15.12.1.1-g4-3.js b/test/built-ins/JSON/parse/15.12.1.1-g4-3.js
index 9d13dbb69..da95a89e9 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-g4-3.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-g4-3.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(SyntaxError, function() {
- JSON.parse('"\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017"'); // invalid string characters should produce a syntax error
+ JSON.parse('"\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017"'); // invalid string characters should produce a syntax error
});
diff --git a/test/built-ins/JSON/parse/15.12.1.1-g4-4.js b/test/built-ins/JSON/parse/15.12.1.1-g4-4.js
index e222184eb..9e584f0ff 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-g4-4.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-g4-4.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(SyntaxError, function() {
- JSON.parse('"\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f"'); // invalid string characters should produce a syntax error
+ JSON.parse('"\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f"'); // invalid string characters should produce a syntax error
});
diff --git a/test/built-ins/JSON/parse/15.12.1.1-g5-2.js b/test/built-ins/JSON/parse/15.12.1.1-g5-2.js
index d03a29920..5ba676d88 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-g5-2.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-g5-2.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(SyntaxError, function() {
- JSON.parse('"\\u005"')
+ JSON.parse('"\\u005"')
});
diff --git a/test/built-ins/JSON/parse/15.12.1.1-g5-3.js b/test/built-ins/JSON/parse/15.12.1.1-g5-3.js
index e577bd6f6..d6085f082 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-g5-3.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-g5-3.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(SyntaxError, function() {
- JSON.parse('"\\u0X50"')
+ JSON.parse('"\\u0X50"')
});
diff --git a/test/built-ins/JSON/parse/15.12.2-0-1.js b/test/built-ins/JSON/parse/15.12.2-0-1.js
index 7d3cc1d3e..2bb777949 100644
--- a/test/built-ins/JSON/parse/15.12.2-0-1.js
+++ b/test/built-ins/JSON/parse/15.12.2-0-1.js
@@ -17,6 +17,6 @@ es5id: 15.12.2-0-1
description: JSON.parse must exist as a function
---*/
- var f = JSON.parse;
+var f = JSON.parse;
assert.sameValue(typeof(f), "function", 'typeof(f)');
diff --git a/test/built-ins/JSON/parse/15.12.2-0-2.js b/test/built-ins/JSON/parse/15.12.2-0-2.js
index 40ebfdb2f..fe9569381 100644
--- a/test/built-ins/JSON/parse/15.12.2-0-2.js
+++ b/test/built-ins/JSON/parse/15.12.2-0-2.js
@@ -17,7 +17,7 @@ es5id: 15.12.2-0-2
description: JSON.parse must exist as a function taking 2 parameters
---*/
- var f = JSON.parse;
+var f = JSON.parse;
assert.sameValue(typeof(f), "function", 'typeof(f)');
assert.sameValue(f.length, 2, 'f.length');
diff --git a/test/built-ins/JSON/parse/15.12.2-0-3.js b/test/built-ins/JSON/parse/15.12.2-0-3.js
index 068cf69fc..de7d3f825 100644
--- a/test/built-ins/JSON/parse/15.12.2-0-3.js
+++ b/test/built-ins/JSON/parse/15.12.2-0-3.js
@@ -10,7 +10,7 @@ es5id: 15.12.2-0-3
description: JSON.parse must be deletable (configurable)
---*/
- var o = JSON;
- var desc = Object.getOwnPropertyDescriptor(o, "parse");
+var o = JSON;
+var desc = Object.getOwnPropertyDescriptor(o, "parse");
assert.sameValue(desc.configurable, true, 'desc.configurable');
diff --git a/test/built-ins/JSON/parse/15.12.2-2-1.js b/test/built-ins/JSON/parse/15.12.2-2-1.js
index a2a42946f..d307ad6d0 100644
--- a/test/built-ins/JSON/parse/15.12.2-2-1.js
+++ b/test/built-ins/JSON/parse/15.12.2-2-1.js
@@ -8,42 +8,42 @@ description: >
character
---*/
- var nullChars = new Array();
- nullChars[0] = '\"\u0000\"';
- nullChars[1] = '\"\u0001\"';
- nullChars[2] = '\"\u0002\"';
- nullChars[3] = '\"\u0003\"';
- nullChars[4] = '\"\u0004\"';
- nullChars[5] = '\"\u0005\"';
- nullChars[6] = '\"\u0006\"';
- nullChars[7] = '\"\u0007\"';
- nullChars[8] = '\"\u0008\"';
- nullChars[9] = '\"\u0009\"';
- nullChars[10] = '\"\u000A\"';
- nullChars[11] = '\"\u000B\"';
- nullChars[12] = '\"\u000C\"';
- nullChars[13] = '\"\u000D\"';
- nullChars[14] = '\"\u000E\"';
- nullChars[15] = '\"\u000F\"';
- nullChars[16] = '\"\u0010\"';
- nullChars[17] = '\"\u0011\"';
- nullChars[18] = '\"\u0012\"';
- nullChars[19] = '\"\u0013\"';
- nullChars[20] = '\"\u0014\"';
- nullChars[21] = '\"\u0015\"';
- nullChars[22] = '\"\u0016\"';
- nullChars[23] = '\"\u0017\"';
- nullChars[24] = '\"\u0018\"';
- nullChars[25] = '\"\u0019\"';
- nullChars[26] = '\"\u001A\"';
- nullChars[27] = '\"\u001B\"';
- nullChars[28] = '\"\u001C\"';
- nullChars[29] = '\"\u001D\"';
- nullChars[30] = '\"\u001E\"';
- nullChars[31] = '\"\u001F\"';
+var nullChars = new Array();
+nullChars[0] = '\"\u0000\"';
+nullChars[1] = '\"\u0001\"';
+nullChars[2] = '\"\u0002\"';
+nullChars[3] = '\"\u0003\"';
+nullChars[4] = '\"\u0004\"';
+nullChars[5] = '\"\u0005\"';
+nullChars[6] = '\"\u0006\"';
+nullChars[7] = '\"\u0007\"';
+nullChars[8] = '\"\u0008\"';
+nullChars[9] = '\"\u0009\"';
+nullChars[10] = '\"\u000A\"';
+nullChars[11] = '\"\u000B\"';
+nullChars[12] = '\"\u000C\"';
+nullChars[13] = '\"\u000D\"';
+nullChars[14] = '\"\u000E\"';
+nullChars[15] = '\"\u000F\"';
+nullChars[16] = '\"\u0010\"';
+nullChars[17] = '\"\u0011\"';
+nullChars[18] = '\"\u0012\"';
+nullChars[19] = '\"\u0013\"';
+nullChars[20] = '\"\u0014\"';
+nullChars[21] = '\"\u0015\"';
+nullChars[22] = '\"\u0016\"';
+nullChars[23] = '\"\u0017\"';
+nullChars[24] = '\"\u0018\"';
+nullChars[25] = '\"\u0019\"';
+nullChars[26] = '\"\u001A\"';
+nullChars[27] = '\"\u001B\"';
+nullChars[28] = '\"\u001C\"';
+nullChars[29] = '\"\u001D\"';
+nullChars[30] = '\"\u001E\"';
+nullChars[31] = '\"\u001F\"';
- for (var index in nullChars) {
- assert.throws(SyntaxError, function() {
- var obj = JSON.parse('{ ' + nullChars[index] + ' : "John" } ');
- });
- }
+for (var index in nullChars) {
+ assert.throws(SyntaxError, function() {
+ var obj = JSON.parse('{ ' + nullChars[index] + ' : "John" } ');
+ });
+}
diff --git a/test/built-ins/JSON/parse/15.12.2-2-10.js b/test/built-ins/JSON/parse/15.12.2-2-10.js
index 0f3c73ac1..24f298c88 100644
--- a/test/built-ins/JSON/parse/15.12.2-2-10.js
+++ b/test/built-ins/JSON/parse/15.12.2-2-10.js
@@ -8,42 +8,42 @@ description: >
null character
---*/
- var nullChars = new Array();
- nullChars[0] = '\"\u0000\"';
- nullChars[1] = '\"\u0001\"';
- nullChars[2] = '\"\u0002\"';
- nullChars[3] = '\"\u0003\"';
- nullChars[4] = '\"\u0004\"';
- nullChars[5] = '\"\u0005\"';
- nullChars[6] = '\"\u0006\"';
- nullChars[7] = '\"\u0007\"';
- nullChars[8] = '\"\u0008\"';
- nullChars[9] = '\"\u0009\"';
- nullChars[10] = '\"\u000A\"';
- nullChars[11] = '\"\u000B\"';
- nullChars[12] = '\"\u000C\"';
- nullChars[13] = '\"\u000D\"';
- nullChars[14] = '\"\u000E\"';
- nullChars[15] = '\"\u000F\"';
- nullChars[16] = '\"\u0010\"';
- nullChars[17] = '\"\u0011\"';
- nullChars[18] = '\"\u0012\"';
- nullChars[19] = '\"\u0013\"';
- nullChars[20] = '\"\u0014\"';
- nullChars[21] = '\"\u0015\"';
- nullChars[22] = '\"\u0016\"';
- nullChars[23] = '\"\u0017\"';
- nullChars[24] = '\"\u0018\"';
- nullChars[25] = '\"\u0019\"';
- nullChars[26] = '\"\u001A\"';
- nullChars[27] = '\"\u001B\"';
- nullChars[28] = '\"\u001C\"';
- nullChars[29] = '\"\u001D\"';
- nullChars[30] = '\"\u001E\"';
- nullChars[31] = '\"\u001F\"';
+var nullChars = new Array();
+nullChars[0] = '\"\u0000\"';
+nullChars[1] = '\"\u0001\"';
+nullChars[2] = '\"\u0002\"';
+nullChars[3] = '\"\u0003\"';
+nullChars[4] = '\"\u0004\"';
+nullChars[5] = '\"\u0005\"';
+nullChars[6] = '\"\u0006\"';
+nullChars[7] = '\"\u0007\"';
+nullChars[8] = '\"\u0008\"';
+nullChars[9] = '\"\u0009\"';
+nullChars[10] = '\"\u000A\"';
+nullChars[11] = '\"\u000B\"';
+nullChars[12] = '\"\u000C\"';
+nullChars[13] = '\"\u000D\"';
+nullChars[14] = '\"\u000E\"';
+nullChars[15] = '\"\u000F\"';
+nullChars[16] = '\"\u0010\"';
+nullChars[17] = '\"\u0011\"';
+nullChars[18] = '\"\u0012\"';
+nullChars[19] = '\"\u0013\"';
+nullChars[20] = '\"\u0014\"';
+nullChars[21] = '\"\u0015\"';
+nullChars[22] = '\"\u0016\"';
+nullChars[23] = '\"\u0017\"';
+nullChars[24] = '\"\u0018\"';
+nullChars[25] = '\"\u0019\"';
+nullChars[26] = '\"\u001A\"';
+nullChars[27] = '\"\u001B\"';
+nullChars[28] = '\"\u001C\"';
+nullChars[29] = '\"\u001D\"';
+nullChars[30] = '\"\u001E\"';
+nullChars[31] = '\"\u001F\"';
- for (var index in nullChars) {
- assert.throws(SyntaxError, function() {
- var obj = JSON.parse('{ "name" : ' + "Jo" + nullChars[index] + "hn" + ' } ');
- });
- }
+for (var index in nullChars) {
+ assert.throws(SyntaxError, function() {
+ var obj = JSON.parse('{ "name" : ' + "Jo" + nullChars[index] + "hn" + ' } ');
+ });
+}
diff --git a/test/built-ins/JSON/parse/15.12.2-2-2.js b/test/built-ins/JSON/parse/15.12.2-2-2.js
index d577d5b76..6af5601ae 100644
--- a/test/built-ins/JSON/parse/15.12.2-2-2.js
+++ b/test/built-ins/JSON/parse/15.12.2-2-2.js
@@ -8,42 +8,42 @@ description: >
null character
---*/
- var nullChars = new Array();
- nullChars[0] = '\"\u0000\"';
- nullChars[1] = '\"\u0001\"';
- nullChars[2] = '\"\u0002\"';
- nullChars[3] = '\"\u0003\"';
- nullChars[4] = '\"\u0004\"';
- nullChars[5] = '\"\u0005\"';
- nullChars[6] = '\"\u0006\"';
- nullChars[7] = '\"\u0007\"';
- nullChars[8] = '\"\u0008\"';
- nullChars[9] = '\"\u0009\"';
- nullChars[10] = '\"\u000A\"';
- nullChars[11] = '\"\u000B\"';
- nullChars[12] = '\"\u000C\"';
- nullChars[13] = '\"\u000D\"';
- nullChars[14] = '\"\u000E\"';
- nullChars[15] = '\"\u000F\"';
- nullChars[16] = '\"\u0010\"';
- nullChars[17] = '\"\u0011\"';
- nullChars[18] = '\"\u0012\"';
- nullChars[19] = '\"\u0013\"';
- nullChars[20] = '\"\u0014\"';
- nullChars[21] = '\"\u0015\"';
- nullChars[22] = '\"\u0016\"';
- nullChars[23] = '\"\u0017\"';
- nullChars[24] = '\"\u0018\"';
- nullChars[25] = '\"\u0019\"';
- nullChars[26] = '\"\u001A\"';
- nullChars[27] = '\"\u001B\"';
- nullChars[28] = '\"\u001C\"';
- nullChars[29] = '\"\u001D\"';
- nullChars[30] = '\"\u001E\"';
- nullChars[31] = '\"\u001F\"';
+var nullChars = new Array();
+nullChars[0] = '\"\u0000\"';
+nullChars[1] = '\"\u0001\"';
+nullChars[2] = '\"\u0002\"';
+nullChars[3] = '\"\u0003\"';
+nullChars[4] = '\"\u0004\"';
+nullChars[5] = '\"\u0005\"';
+nullChars[6] = '\"\u0006\"';
+nullChars[7] = '\"\u0007\"';
+nullChars[8] = '\"\u0008\"';
+nullChars[9] = '\"\u0009\"';
+nullChars[10] = '\"\u000A\"';
+nullChars[11] = '\"\u000B\"';
+nullChars[12] = '\"\u000C\"';
+nullChars[13] = '\"\u000D\"';
+nullChars[14] = '\"\u000E\"';
+nullChars[15] = '\"\u000F\"';
+nullChars[16] = '\"\u0010\"';
+nullChars[17] = '\"\u0011\"';
+nullChars[18] = '\"\u0012\"';
+nullChars[19] = '\"\u0013\"';
+nullChars[20] = '\"\u0014\"';
+nullChars[21] = '\"\u0015\"';
+nullChars[22] = '\"\u0016\"';
+nullChars[23] = '\"\u0017\"';
+nullChars[24] = '\"\u0018\"';
+nullChars[25] = '\"\u0019\"';
+nullChars[26] = '\"\u001A\"';
+nullChars[27] = '\"\u001B\"';
+nullChars[28] = '\"\u001C\"';
+nullChars[29] = '\"\u001D\"';
+nullChars[30] = '\"\u001E\"';
+nullChars[31] = '\"\u001F\"';
- for (var index in nullChars) {
- assert.throws(SyntaxError, function() {
- var obj = JSON.parse('{ ' + nullChars[index] + "name" + ' : "John" } ');
- });
- }
+for (var index in nullChars) {
+ assert.throws(SyntaxError, function() {
+ var obj = JSON.parse('{ ' + nullChars[index] + "name" + ' : "John" } ');
+ });
+}
diff --git a/test/built-ins/JSON/parse/15.12.2-2-3.js b/test/built-ins/JSON/parse/15.12.2-2-3.js
index 20f19e1b2..0bd6dc9e9 100644
--- a/test/built-ins/JSON/parse/15.12.2-2-3.js
+++ b/test/built-ins/JSON/parse/15.12.2-2-3.js
@@ -8,42 +8,42 @@ description: >
null character
---*/
- var nullChars = new Array();
- nullChars[0] = '\"\u0000\"';
- nullChars[1] = '\"\u0001\"';
- nullChars[2] = '\"\u0002\"';
- nullChars[3] = '\"\u0003\"';
- nullChars[4] = '\"\u0004\"';
- nullChars[5] = '\"\u0005\"';
- nullChars[6] = '\"\u0006\"';
- nullChars[7] = '\"\u0007\"';
- nullChars[8] = '\"\u0008\"';
- nullChars[9] = '\"\u0009\"';
- nullChars[10] = '\"\u000A\"';
- nullChars[11] = '\"\u000B\"';
- nullChars[12] = '\"\u000C\"';
- nullChars[13] = '\"\u000D\"';
- nullChars[14] = '\"\u000E\"';
- nullChars[15] = '\"\u000F\"';
- nullChars[16] = '\"\u0010\"';
- nullChars[17] = '\"\u0011\"';
- nullChars[18] = '\"\u0012\"';
- nullChars[19] = '\"\u0013\"';
- nullChars[20] = '\"\u0014\"';
- nullChars[21] = '\"\u0015\"';
- nullChars[22] = '\"\u0016\"';
- nullChars[23] = '\"\u0017\"';
- nullChars[24] = '\"\u0018\"';
- nullChars[25] = '\"\u0019\"';
- nullChars[26] = '\"\u001A\"';
- nullChars[27] = '\"\u001B\"';
- nullChars[28] = '\"\u001C\"';
- nullChars[29] = '\"\u001D\"';
- nullChars[30] = '\"\u001E\"';
- nullChars[31] = '\"\u001F\"';
+var nullChars = new Array();
+nullChars[0] = '\"\u0000\"';
+nullChars[1] = '\"\u0001\"';
+nullChars[2] = '\"\u0002\"';
+nullChars[3] = '\"\u0003\"';
+nullChars[4] = '\"\u0004\"';
+nullChars[5] = '\"\u0005\"';
+nullChars[6] = '\"\u0006\"';
+nullChars[7] = '\"\u0007\"';
+nullChars[8] = '\"\u0008\"';
+nullChars[9] = '\"\u0009\"';
+nullChars[10] = '\"\u000A\"';
+nullChars[11] = '\"\u000B\"';
+nullChars[12] = '\"\u000C\"';
+nullChars[13] = '\"\u000D\"';
+nullChars[14] = '\"\u000E\"';
+nullChars[15] = '\"\u000F\"';
+nullChars[16] = '\"\u0010\"';
+nullChars[17] = '\"\u0011\"';
+nullChars[18] = '\"\u0012\"';
+nullChars[19] = '\"\u0013\"';
+nullChars[20] = '\"\u0014\"';
+nullChars[21] = '\"\u0015\"';
+nullChars[22] = '\"\u0016\"';
+nullChars[23] = '\"\u0017\"';
+nullChars[24] = '\"\u0018\"';
+nullChars[25] = '\"\u0019\"';
+nullChars[26] = '\"\u001A\"';
+nullChars[27] = '\"\u001B\"';
+nullChars[28] = '\"\u001C\"';
+nullChars[29] = '\"\u001D\"';
+nullChars[30] = '\"\u001E\"';
+nullChars[31] = '\"\u001F\"';
- for (var index in nullChars) {
- assert.throws(SyntaxError, function() {
- var obj = JSON.parse('{' + "name" + nullChars[index] + ' : "John" } ');
- });
- }
+for (var index in nullChars) {
+ assert.throws(SyntaxError, function() {
+ var obj = JSON.parse('{' + "name" + nullChars[index] + ' : "John" } ');
+ });
+}
diff --git a/test/built-ins/JSON/parse/15.12.2-2-4.js b/test/built-ins/JSON/parse/15.12.2-2-4.js
index 755f4578f..819f7160f 100644
--- a/test/built-ins/JSON/parse/15.12.2-2-4.js
+++ b/test/built-ins/JSON/parse/15.12.2-2-4.js
@@ -8,42 +8,42 @@ description: >
with a null character
---*/
- var nullChars = new Array();
- nullChars[0] = '\"\u0000\"';
- nullChars[1] = '\"\u0001\"';
- nullChars[2] = '\"\u0002\"';
- nullChars[3] = '\"\u0003\"';
- nullChars[4] = '\"\u0004\"';
- nullChars[5] = '\"\u0005\"';
- nullChars[6] = '\"\u0006\"';
- nullChars[7] = '\"\u0007\"';
- nullChars[8] = '\"\u0008\"';
- nullChars[9] = '\"\u0009\"';
- nullChars[10] = '\"\u000A\"';
- nullChars[11] = '\"\u000B\"';
- nullChars[12] = '\"\u000C\"';
- nullChars[13] = '\"\u000D\"';
- nullChars[14] = '\"\u000E\"';
- nullChars[15] = '\"\u000F\"';
- nullChars[16] = '\"\u0010\"';
- nullChars[17] = '\"\u0011\"';
- nullChars[18] = '\"\u0012\"';
- nullChars[19] = '\"\u0013\"';
- nullChars[20] = '\"\u0014\"';
- nullChars[21] = '\"\u0015\"';
- nullChars[22] = '\"\u0016\"';
- nullChars[23] = '\"\u0017\"';
- nullChars[24] = '\"\u0018\"';
- nullChars[25] = '\"\u0019\"';
- nullChars[26] = '\"\u001A\"';
- nullChars[27] = '\"\u001B\"';
- nullChars[28] = '\"\u001C\"';
- nullChars[29] = '\"\u001D\"';
- nullChars[30] = '\"\u001E\"';
- nullChars[31] = '\"\u001F\"';
+var nullChars = new Array();
+nullChars[0] = '\"\u0000\"';
+nullChars[1] = '\"\u0001\"';
+nullChars[2] = '\"\u0002\"';
+nullChars[3] = '\"\u0003\"';
+nullChars[4] = '\"\u0004\"';
+nullChars[5] = '\"\u0005\"';
+nullChars[6] = '\"\u0006\"';
+nullChars[7] = '\"\u0007\"';
+nullChars[8] = '\"\u0008\"';
+nullChars[9] = '\"\u0009\"';
+nullChars[10] = '\"\u000A\"';
+nullChars[11] = '\"\u000B\"';
+nullChars[12] = '\"\u000C\"';
+nullChars[13] = '\"\u000D\"';
+nullChars[14] = '\"\u000E\"';
+nullChars[15] = '\"\u000F\"';
+nullChars[16] = '\"\u0010\"';
+nullChars[17] = '\"\u0011\"';
+nullChars[18] = '\"\u0012\"';
+nullChars[19] = '\"\u0013\"';
+nullChars[20] = '\"\u0014\"';
+nullChars[21] = '\"\u0015\"';
+nullChars[22] = '\"\u0016\"';
+nullChars[23] = '\"\u0017\"';
+nullChars[24] = '\"\u0018\"';
+nullChars[25] = '\"\u0019\"';
+nullChars[26] = '\"\u001A\"';
+nullChars[27] = '\"\u001B\"';
+nullChars[28] = '\"\u001C\"';
+nullChars[29] = '\"\u001D\"';
+nullChars[30] = '\"\u001E\"';
+nullChars[31] = '\"\u001F\"';
- for (var index in nullChars) {
- assert.throws(SyntaxError, function() {
- var obj = JSON.parse('{' + nullChars[index] + "name" + nullChars[index] + ' : "John" } ');
- });
- }
+for (var index in nullChars) {
+ assert.throws(SyntaxError, function() {
+ var obj = JSON.parse('{' + nullChars[index] + "name" + nullChars[index] + ' : "John" } ');
+ });
+}
diff --git a/test/built-ins/JSON/parse/15.12.2-2-5.js b/test/built-ins/JSON/parse/15.12.2-2-5.js
index 1b0a6240b..ebd3e27be 100644
--- a/test/built-ins/JSON/parse/15.12.2-2-5.js
+++ b/test/built-ins/JSON/parse/15.12.2-2-5.js
@@ -8,42 +8,42 @@ description: >
null character
---*/
- var nullChars = new Array();
- nullChars[0] = '\"\u0000\"';
- nullChars[1] = '\"\u0001\"';
- nullChars[2] = '\"\u0002\"';
- nullChars[3] = '\"\u0003\"';
- nullChars[4] = '\"\u0004\"';
- nullChars[5] = '\"\u0005\"';
- nullChars[6] = '\"\u0006\"';
- nullChars[7] = '\"\u0007\"';
- nullChars[8] = '\"\u0008\"';
- nullChars[9] = '\"\u0009\"';
- nullChars[10] = '\"\u000A\"';
- nullChars[11] = '\"\u000B\"';
- nullChars[12] = '\"\u000C\"';
- nullChars[13] = '\"\u000D\"';
- nullChars[14] = '\"\u000E\"';
- nullChars[15] = '\"\u000F\"';
- nullChars[16] = '\"\u0010\"';
- nullChars[17] = '\"\u0011\"';
- nullChars[18] = '\"\u0012\"';
- nullChars[19] = '\"\u0013\"';
- nullChars[20] = '\"\u0014\"';
- nullChars[21] = '\"\u0015\"';
- nullChars[22] = '\"\u0016\"';
- nullChars[23] = '\"\u0017\"';
- nullChars[24] = '\"\u0018\"';
- nullChars[25] = '\"\u0019\"';
- nullChars[26] = '\"\u001A\"';
- nullChars[27] = '\"\u001B\"';
- nullChars[28] = '\"\u001C\"';
- nullChars[29] = '\"\u001D\"';
- nullChars[30] = '\"\u001E\"';
- nullChars[31] = '\"\u001F\"';
+var nullChars = new Array();
+nullChars[0] = '\"\u0000\"';
+nullChars[1] = '\"\u0001\"';
+nullChars[2] = '\"\u0002\"';
+nullChars[3] = '\"\u0003\"';
+nullChars[4] = '\"\u0004\"';
+nullChars[5] = '\"\u0005\"';
+nullChars[6] = '\"\u0006\"';
+nullChars[7] = '\"\u0007\"';
+nullChars[8] = '\"\u0008\"';
+nullChars[9] = '\"\u0009\"';
+nullChars[10] = '\"\u000A\"';
+nullChars[11] = '\"\u000B\"';
+nullChars[12] = '\"\u000C\"';
+nullChars[13] = '\"\u000D\"';
+nullChars[14] = '\"\u000E\"';
+nullChars[15] = '\"\u000F\"';
+nullChars[16] = '\"\u0010\"';
+nullChars[17] = '\"\u0011\"';
+nullChars[18] = '\"\u0012\"';
+nullChars[19] = '\"\u0013\"';
+nullChars[20] = '\"\u0014\"';
+nullChars[21] = '\"\u0015\"';
+nullChars[22] = '\"\u0016\"';
+nullChars[23] = '\"\u0017\"';
+nullChars[24] = '\"\u0018\"';
+nullChars[25] = '\"\u0019\"';
+nullChars[26] = '\"\u001A\"';
+nullChars[27] = '\"\u001B\"';
+nullChars[28] = '\"\u001C\"';
+nullChars[29] = '\"\u001D\"';
+nullChars[30] = '\"\u001E\"';
+nullChars[31] = '\"\u001F\"';
- for (var index in nullChars) {
- assert.throws(SyntaxError, function() {
- var obj = JSON.parse('{ ' + "na" + nullChars[index] + "me" + ' : "John" } ');
- });
- }
+for (var index in nullChars) {
+ assert.throws(SyntaxError, function() {
+ var obj = JSON.parse('{ ' + "na" + nullChars[index] + "me" + ' : "John" } ');
+ });
+}
diff --git a/test/built-ins/JSON/parse/15.12.2-2-6.js b/test/built-ins/JSON/parse/15.12.2-2-6.js
index c4fb8b863..80f4a5de6 100644
--- a/test/built-ins/JSON/parse/15.12.2-2-6.js
+++ b/test/built-ins/JSON/parse/15.12.2-2-6.js
@@ -8,42 +8,42 @@ description: >
character
---*/
- var nullChars = new Array();
- nullChars[0] = '\"\u0000\"';
- nullChars[1] = '\"\u0001\"';
- nullChars[2] = '\"\u0002\"';
- nullChars[3] = '\"\u0003\"';
- nullChars[4] = '\"\u0004\"';
- nullChars[5] = '\"\u0005\"';
- nullChars[6] = '\"\u0006\"';
- nullChars[7] = '\"\u0007\"';
- nullChars[8] = '\"\u0008\"';
- nullChars[9] = '\"\u0009\"';
- nullChars[10] = '\"\u000A\"';
- nullChars[11] = '\"\u000B\"';
- nullChars[12] = '\"\u000C\"';
- nullChars[13] = '\"\u000D\"';
- nullChars[14] = '\"\u000E\"';
- nullChars[15] = '\"\u000F\"';
- nullChars[16] = '\"\u0010\"';
- nullChars[17] = '\"\u0011\"';
- nullChars[18] = '\"\u0012\"';
- nullChars[19] = '\"\u0013\"';
- nullChars[20] = '\"\u0014\"';
- nullChars[21] = '\"\u0015\"';
- nullChars[22] = '\"\u0016\"';
- nullChars[23] = '\"\u0017\"';
- nullChars[24] = '\"\u0018\"';
- nullChars[25] = '\"\u0019\"';
- nullChars[26] = '\"\u001A\"';
- nullChars[27] = '\"\u001B\"';
- nullChars[28] = '\"\u001C\"';
- nullChars[29] = '\"\u001D\"';
- nullChars[30] = '\"\u001E\"';
- nullChars[31] = '\"\u001F\"';
+var nullChars = new Array();
+nullChars[0] = '\"\u0000\"';
+nullChars[1] = '\"\u0001\"';
+nullChars[2] = '\"\u0002\"';
+nullChars[3] = '\"\u0003\"';
+nullChars[4] = '\"\u0004\"';
+nullChars[5] = '\"\u0005\"';
+nullChars[6] = '\"\u0006\"';
+nullChars[7] = '\"\u0007\"';
+nullChars[8] = '\"\u0008\"';
+nullChars[9] = '\"\u0009\"';
+nullChars[10] = '\"\u000A\"';
+nullChars[11] = '\"\u000B\"';
+nullChars[12] = '\"\u000C\"';
+nullChars[13] = '\"\u000D\"';
+nullChars[14] = '\"\u000E\"';
+nullChars[15] = '\"\u000F\"';
+nullChars[16] = '\"\u0010\"';
+nullChars[17] = '\"\u0011\"';
+nullChars[18] = '\"\u0012\"';
+nullChars[19] = '\"\u0013\"';
+nullChars[20] = '\"\u0014\"';
+nullChars[21] = '\"\u0015\"';
+nullChars[22] = '\"\u0016\"';
+nullChars[23] = '\"\u0017\"';
+nullChars[24] = '\"\u0018\"';
+nullChars[25] = '\"\u0019\"';
+nullChars[26] = '\"\u001A\"';
+nullChars[27] = '\"\u001B\"';
+nullChars[28] = '\"\u001C\"';
+nullChars[29] = '\"\u001D\"';
+nullChars[30] = '\"\u001E\"';
+nullChars[31] = '\"\u001F\"';
- for (var index in nullChars) {
- assert.throws(SyntaxError, function() {
- var obj = JSON.parse('{ "name" : ' + nullChars[index] + ' } ');
- });
- }
+for (var index in nullChars) {
+ assert.throws(SyntaxError, function() {
+ var obj = JSON.parse('{ "name" : ' + nullChars[index] + ' } ');
+ });
+}
diff --git a/test/built-ins/JSON/parse/15.12.2-2-7.js b/test/built-ins/JSON/parse/15.12.2-2-7.js
index 2cb912b1f..ed1db8a09 100644
--- a/test/built-ins/JSON/parse/15.12.2-2-7.js
+++ b/test/built-ins/JSON/parse/15.12.2-2-7.js
@@ -8,42 +8,42 @@ description: >
null character
---*/
- var nullChars = new Array();
- nullChars[0] = '\"\u0000\"';
- nullChars[1] = '\"\u0001\"';
- nullChars[2] = '\"\u0002\"';
- nullChars[3] = '\"\u0003\"';
- nullChars[4] = '\"\u0004\"';
- nullChars[5] = '\"\u0005\"';
- nullChars[6] = '\"\u0006\"';
- nullChars[7] = '\"\u0007\"';
- nullChars[8] = '\"\u0008\"';
- nullChars[9] = '\"\u0009\"';
- nullChars[10] = '\"\u000A\"';
- nullChars[11] = '\"\u000B\"';
- nullChars[12] = '\"\u000C\"';
- nullChars[13] = '\"\u000D\"';
- nullChars[14] = '\"\u000E\"';
- nullChars[15] = '\"\u000F\"';
- nullChars[16] = '\"\u0010\"';
- nullChars[17] = '\"\u0011\"';
- nullChars[18] = '\"\u0012\"';
- nullChars[19] = '\"\u0013\"';
- nullChars[20] = '\"\u0014\"';
- nullChars[21] = '\"\u0015\"';
- nullChars[22] = '\"\u0016\"';
- nullChars[23] = '\"\u0017\"';
- nullChars[24] = '\"\u0018\"';
- nullChars[25] = '\"\u0019\"';
- nullChars[26] = '\"\u001A\"';
- nullChars[27] = '\"\u001B\"';
- nullChars[28] = '\"\u001C\"';
- nullChars[29] = '\"\u001D\"';
- nullChars[30] = '\"\u001E\"';
- nullChars[31] = '\"\u001F\"';
+var nullChars = new Array();
+nullChars[0] = '\"\u0000\"';
+nullChars[1] = '\"\u0001\"';
+nullChars[2] = '\"\u0002\"';
+nullChars[3] = '\"\u0003\"';
+nullChars[4] = '\"\u0004\"';
+nullChars[5] = '\"\u0005\"';
+nullChars[6] = '\"\u0006\"';
+nullChars[7] = '\"\u0007\"';
+nullChars[8] = '\"\u0008\"';
+nullChars[9] = '\"\u0009\"';
+nullChars[10] = '\"\u000A\"';
+nullChars[11] = '\"\u000B\"';
+nullChars[12] = '\"\u000C\"';
+nullChars[13] = '\"\u000D\"';
+nullChars[14] = '\"\u000E\"';
+nullChars[15] = '\"\u000F\"';
+nullChars[16] = '\"\u0010\"';
+nullChars[17] = '\"\u0011\"';
+nullChars[18] = '\"\u0012\"';
+nullChars[19] = '\"\u0013\"';
+nullChars[20] = '\"\u0014\"';
+nullChars[21] = '\"\u0015\"';
+nullChars[22] = '\"\u0016\"';
+nullChars[23] = '\"\u0017\"';
+nullChars[24] = '\"\u0018\"';
+nullChars[25] = '\"\u0019\"';
+nullChars[26] = '\"\u001A\"';
+nullChars[27] = '\"\u001B\"';
+nullChars[28] = '\"\u001C\"';
+nullChars[29] = '\"\u001D\"';
+nullChars[30] = '\"\u001E\"';
+nullChars[31] = '\"\u001F\"';
- for (var index in nullChars) {
- assert.throws(SyntaxError, function() {
- var obj = JSON.parse('{ "name" : ' + nullChars[index] + "John" + ' } ');
- });
- }
+for (var index in nullChars) {
+ assert.throws(SyntaxError, function() {
+ var obj = JSON.parse('{ "name" : ' + nullChars[index] + "John" + ' } ');
+ });
+}
diff --git a/test/built-ins/JSON/parse/15.12.2-2-8.js b/test/built-ins/JSON/parse/15.12.2-2-8.js
index ab571c59f..ae58602b3 100644
--- a/test/built-ins/JSON/parse/15.12.2-2-8.js
+++ b/test/built-ins/JSON/parse/15.12.2-2-8.js
@@ -8,42 +8,42 @@ description: >
null character
---*/
- var nullChars = new Array();
- nullChars[0] = '\"\u0000\"';
- nullChars[1] = '\"\u0001\"';
- nullChars[2] = '\"\u0002\"';
- nullChars[3] = '\"\u0003\"';
- nullChars[4] = '\"\u0004\"';
- nullChars[5] = '\"\u0005\"';
- nullChars[6] = '\"\u0006\"';
- nullChars[7] = '\"\u0007\"';
- nullChars[8] = '\"\u0008\"';
- nullChars[9] = '\"\u0009\"';
- nullChars[10] = '\"\u000A\"';
- nullChars[11] = '\"\u000B\"';
- nullChars[12] = '\"\u000C\"';
- nullChars[13] = '\"\u000D\"';
- nullChars[14] = '\"\u000E\"';
- nullChars[15] = '\"\u000F\"';
- nullChars[16] = '\"\u0010\"';
- nullChars[17] = '\"\u0011\"';
- nullChars[18] = '\"\u0012\"';
- nullChars[19] = '\"\u0013\"';
- nullChars[20] = '\"\u0014\"';
- nullChars[21] = '\"\u0015\"';
- nullChars[22] = '\"\u0016\"';
- nullChars[23] = '\"\u0017\"';
- nullChars[24] = '\"\u0018\"';
- nullChars[25] = '\"\u0019\"';
- nullChars[26] = '\"\u001A\"';
- nullChars[27] = '\"\u001B\"';
- nullChars[28] = '\"\u001C\"';
- nullChars[29] = '\"\u001D\"';
- nullChars[30] = '\"\u001E\"';
- nullChars[31] = '\"\u001F\"';
+var nullChars = new Array();
+nullChars[0] = '\"\u0000\"';
+nullChars[1] = '\"\u0001\"';
+nullChars[2] = '\"\u0002\"';
+nullChars[3] = '\"\u0003\"';
+nullChars[4] = '\"\u0004\"';
+nullChars[5] = '\"\u0005\"';
+nullChars[6] = '\"\u0006\"';
+nullChars[7] = '\"\u0007\"';
+nullChars[8] = '\"\u0008\"';
+nullChars[9] = '\"\u0009\"';
+nullChars[10] = '\"\u000A\"';
+nullChars[11] = '\"\u000B\"';
+nullChars[12] = '\"\u000C\"';
+nullChars[13] = '\"\u000D\"';
+nullChars[14] = '\"\u000E\"';
+nullChars[15] = '\"\u000F\"';
+nullChars[16] = '\"\u0010\"';
+nullChars[17] = '\"\u0011\"';
+nullChars[18] = '\"\u0012\"';
+nullChars[19] = '\"\u0013\"';
+nullChars[20] = '\"\u0014\"';
+nullChars[21] = '\"\u0015\"';
+nullChars[22] = '\"\u0016\"';
+nullChars[23] = '\"\u0017\"';
+nullChars[24] = '\"\u0018\"';
+nullChars[25] = '\"\u0019\"';
+nullChars[26] = '\"\u001A\"';
+nullChars[27] = '\"\u001B\"';
+nullChars[28] = '\"\u001C\"';
+nullChars[29] = '\"\u001D\"';
+nullChars[30] = '\"\u001E\"';
+nullChars[31] = '\"\u001F\"';
- for (var index in nullChars) {
- assert.throws(SyntaxError, function() {
- var obj = JSON.parse('{ "name" : ' + "John" + nullChars[index] + ' } ');
- });
- }
+for (var index in nullChars) {
+ assert.throws(SyntaxError, function() {
+ var obj = JSON.parse('{ "name" : ' + "John" + nullChars[index] + ' } ');
+ });
+}
diff --git a/test/built-ins/JSON/parse/15.12.2-2-9.js b/test/built-ins/JSON/parse/15.12.2-2-9.js
index ab7ca39cc..02b7bb72d 100644
--- a/test/built-ins/JSON/parse/15.12.2-2-9.js
+++ b/test/built-ins/JSON/parse/15.12.2-2-9.js
@@ -8,42 +8,42 @@ description: >
ends with a null character
---*/
- var nullChars = new Array();
- nullChars[0] = '\"\u0000\"';
- nullChars[1] = '\"\u0001\"';
- nullChars[2] = '\"\u0002\"';
- nullChars[3] = '\"\u0003\"';
- nullChars[4] = '\"\u0004\"';
- nullChars[5] = '\"\u0005\"';
- nullChars[6] = '\"\u0006\"';
- nullChars[7] = '\"\u0007\"';
- nullChars[8] = '\"\u0008\"';
- nullChars[9] = '\"\u0009\"';
- nullChars[10] = '\"\u000A\"';
- nullChars[11] = '\"\u000B\"';
- nullChars[12] = '\"\u000C\"';
- nullChars[13] = '\"\u000D\"';
- nullChars[14] = '\"\u000E\"';
- nullChars[15] = '\"\u000F\"';
- nullChars[16] = '\"\u0010\"';
- nullChars[17] = '\"\u0011\"';
- nullChars[18] = '\"\u0012\"';
- nullChars[19] = '\"\u0013\"';
- nullChars[20] = '\"\u0014\"';
- nullChars[21] = '\"\u0015\"';
- nullChars[22] = '\"\u0016\"';
- nullChars[23] = '\"\u0017\"';
- nullChars[24] = '\"\u0018\"';
- nullChars[25] = '\"\u0019\"';
- nullChars[26] = '\"\u001A\"';
- nullChars[27] = '\"\u001B\"';
- nullChars[28] = '\"\u001C\"';
- nullChars[29] = '\"\u001D\"';
- nullChars[30] = '\"\u001E\"';
- nullChars[31] = '\"\u001F\"';
+var nullChars = new Array();
+nullChars[0] = '\"\u0000\"';
+nullChars[1] = '\"\u0001\"';
+nullChars[2] = '\"\u0002\"';
+nullChars[3] = '\"\u0003\"';
+nullChars[4] = '\"\u0004\"';
+nullChars[5] = '\"\u0005\"';
+nullChars[6] = '\"\u0006\"';
+nullChars[7] = '\"\u0007\"';
+nullChars[8] = '\"\u0008\"';
+nullChars[9] = '\"\u0009\"';
+nullChars[10] = '\"\u000A\"';
+nullChars[11] = '\"\u000B\"';
+nullChars[12] = '\"\u000C\"';
+nullChars[13] = '\"\u000D\"';
+nullChars[14] = '\"\u000E\"';
+nullChars[15] = '\"\u000F\"';
+nullChars[16] = '\"\u0010\"';
+nullChars[17] = '\"\u0011\"';
+nullChars[18] = '\"\u0012\"';
+nullChars[19] = '\"\u0013\"';
+nullChars[20] = '\"\u0014\"';
+nullChars[21] = '\"\u0015\"';
+nullChars[22] = '\"\u0016\"';
+nullChars[23] = '\"\u0017\"';
+nullChars[24] = '\"\u0018\"';
+nullChars[25] = '\"\u0019\"';
+nullChars[26] = '\"\u001A\"';
+nullChars[27] = '\"\u001B\"';
+nullChars[28] = '\"\u001C\"';
+nullChars[29] = '\"\u001D\"';
+nullChars[30] = '\"\u001E\"';
+nullChars[31] = '\"\u001F\"';
- for (var index in nullChars) {
- assert.throws(SyntaxError, function() {
- var obj = JSON.parse('{ "name" : ' + nullChars[index] + "John" + nullChars[index] + ' } ');
- });
- }
+for (var index in nullChars) {
+ assert.throws(SyntaxError, function() {
+ var obj = JSON.parse('{ "name" : ' + nullChars[index] + "John" + nullChars[index] + ' } ');
+ });
+}
diff --git a/test/built-ins/JSON/parse/revived-proxy.js b/test/built-ins/JSON/parse/revived-proxy.js
index fe3686849..fbcb3aa46 100644
--- a/test/built-ins/JSON/parse/revived-proxy.js
+++ b/test/built-ins/JSON/parse/revived-proxy.js
@@ -35,7 +35,10 @@ info: |
features: [Proxy]
---*/
-var objectProxy = new Proxy({ length: 0, other: 0 }, {});
+var objectProxy = new Proxy({
+ length: 0,
+ other: 0
+}, {});
var arrayProxy = new Proxy([], {});
var arrayProxyProxy = new Proxy(arrayProxy, {});
var visitedOther, injectProxy;
diff --git a/test/built-ins/JSON/parse/reviver-object-define-prop-err.js b/test/built-ins/JSON/parse/reviver-object-define-prop-err.js
index c42cff0a6..d62dbaf89 100644
--- a/test/built-ins/JSON/parse/reviver-object-define-prop-err.js
+++ b/test/built-ins/JSON/parse/reviver-object-define-prop-err.js
@@ -30,7 +30,9 @@ info: |
features: [Proxy]
---*/
-var badDefine = new Proxy({ 0: null }, {
+var badDefine = new Proxy({
+ 0: null
+}, {
defineProperty: function() {
throw new Test262Error();
}
diff --git a/test/built-ins/JSON/parse/reviver-object-delete-err.js b/test/built-ins/JSON/parse/reviver-object-delete-err.js
index d596d4e27..edded21fa 100644
--- a/test/built-ins/JSON/parse/reviver-object-delete-err.js
+++ b/test/built-ins/JSON/parse/reviver-object-delete-err.js
@@ -28,7 +28,9 @@ info: |
features: [Proxy]
---*/
-var badDelete = new Proxy({ a: 1 }, {
+var badDelete = new Proxy({
+ a: 1
+}, {
deleteProperty: function() {
throw new Test262Error();
}
diff --git a/test/built-ins/JSON/stringify/15.12.3-0-1.js b/test/built-ins/JSON/stringify/15.12.3-0-1.js
index c79c6f026..5cc4240c7 100644
--- a/test/built-ins/JSON/stringify/15.12.3-0-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3-0-1.js
@@ -17,6 +17,6 @@ es5id: 15.12.3-0-1
description: JSON.stringify must exist as be a function
---*/
- var f = JSON.stringify;
+var f = JSON.stringify;
assert.sameValue(typeof(f), "function", 'typeof(f)');
diff --git a/test/built-ins/JSON/stringify/15.12.3-0-2.js b/test/built-ins/JSON/stringify/15.12.3-0-2.js
index 3f5fe1ec0..08e864d0c 100644
--- a/test/built-ins/JSON/stringify/15.12.3-0-2.js
+++ b/test/built-ins/JSON/stringify/15.12.3-0-2.js
@@ -17,7 +17,7 @@ es5id: 15.12.3-0-2
description: JSON.stringify must exist as be a function taking 3 parameters
---*/
- var f = JSON.stringify;
+var f = JSON.stringify;
assert.sameValue(typeof(f), "function", 'typeof(f)');
assert.sameValue(f.length, 3, 'f.length');
diff --git a/test/built-ins/JSON/stringify/15.12.3-0-3.js b/test/built-ins/JSON/stringify/15.12.3-0-3.js
index d8a575973..76e41ffb8 100644
--- a/test/built-ins/JSON/stringify/15.12.3-0-3.js
+++ b/test/built-ins/JSON/stringify/15.12.3-0-3.js
@@ -10,7 +10,7 @@ es5id: 15.12.3-0-3
description: JSON.stringify must be deletable (configurable)
---*/
- var o = JSON;
- var desc = Object.getOwnPropertyDescriptor(o, "stringify");
+var o = JSON;
+var desc = Object.getOwnPropertyDescriptor(o, "stringify");
assert.sameValue(desc.configurable, true, 'desc.configurable');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-10.js b/test/built-ins/JSON/stringify/15.12.3-11-10.js
index f15173196..c59045ebb 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-10.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-10.js
@@ -8,4 +8,6 @@ description: >
value can return undefined.
---*/
-assert.sameValue(JSON.stringify(42, function(k, v) { return undefined }), undefined, 'JSON.stringify(42, function(k, v) { return undefined })');
+assert.sameValue(JSON.stringify(42, function(k, v) {
+ return undefined
+}), undefined, 'JSON.stringify(42, function(k, v) { return undefined })');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-11.js b/test/built-ins/JSON/stringify/15.12.3-11-11.js
index da886044b..f4da04f92 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-11.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-11.js
@@ -8,4 +8,8 @@ description: >
can return undefined.
---*/
-assert.sameValue(JSON.stringify({prop:1}, function(k, v) { return undefined }), undefined, 'JSON.stringify({prop:1}, function(k, v) { return undefined })');
+assert.sameValue(JSON.stringify({
+ prop: 1
+}, function(k, v) {
+ return undefined
+}), undefined, 'JSON.stringify({prop:1}, function(k, v) { return undefined })');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-12.js b/test/built-ins/JSON/stringify/15.12.3-11-12.js
index 5fdfea838..1238189a0 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-12.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-12.js
@@ -8,4 +8,6 @@ description: >
can return an Array.
---*/
-assert.sameValue(JSON.stringify(42, function(k, v) { return v==42 ?[4,2]:v }), '[4,2]', 'JSON.stringify(42, function(k, v) { return v==42 ?[4,2]:v })');
+assert.sameValue(JSON.stringify(42, function(k, v) {
+ return v == 42 ? [4, 2] : v
+}), '[4,2]', 'JSON.stringify(42, function(k, v) { return v==42 ?[4,2]:v })');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-13.js b/test/built-ins/JSON/stringify/15.12.3-11-13.js
index e98f67116..22b244c0b 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-13.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-13.js
@@ -8,4 +8,8 @@ description: >
can return an Object.
---*/
-assert.sameValue(JSON.stringify(42, function(k, v) { return v==42 ? {forty:2}: v}), '{"forty":2}', 'JSON.stringify(42, function(k, v) { return v==42 ? {forty:2}: v})');
+assert.sameValue(JSON.stringify(42, function(k, v) {
+ return v == 42 ? {
+ forty: 2
+ } : v
+}), '{"forty":2}', 'JSON.stringify(42, function(k, v) { return v==42 ? {forty:2}: v})');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-15.js b/test/built-ins/JSON/stringify/15.12.3-11-15.js
index d2cb93191..5a4b35c96 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-15.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-15.js
@@ -8,4 +8,6 @@ description: >
returns the replacer value.
---*/
-assert.sameValue(JSON.stringify(function() {}, function(k,v) {return 99}), '99', 'JSON.stringify(function() {}, function(k,v) {return 99})');
+assert.sameValue(JSON.stringify(function() {}, function(k, v) {
+ return 99
+}), '99', 'JSON.stringify(function() {}, function(k,v) {return 99})');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-16.js b/test/built-ins/JSON/stringify/15.12.3-11-16.js
index e9d92d5c2..23f89c2f9 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-16.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-16.js
@@ -9,46 +9,48 @@ description: >
step 2.c)
---*/
- var result = true;
+var result = true;
- var expectedNullChars = new Array();
- expectedNullChars[0] = "\\u0000";
- expectedNullChars[1] = "\\u0001";
- expectedNullChars[2] = "\\u0002";
- expectedNullChars[3] = "\\u0003";
- expectedNullChars[4] = "\\u0004";
- expectedNullChars[5] = "\\u0005";
- expectedNullChars[6] = "\\u0006";
- expectedNullChars[7] = "\\u0007";
- expectedNullChars[8] = "\\b";
- expectedNullChars[9] = "\\t";
- expectedNullChars[10] = "\\n";
- expectedNullChars[11] = "\\u000b";
- expectedNullChars[12] = "\\f";
- expectedNullChars[13] = "\\r";
- expectedNullChars[14] = "\\u000e";
- expectedNullChars[15] = "\\u000f";
- expectedNullChars[16] = "\\u0010";
- expectedNullChars[17] = "\\u0011";
- expectedNullChars[18] = "\\u0012";
- expectedNullChars[19] = "\\u0013";
- expectedNullChars[20] = "\\u0014";
- expectedNullChars[21] = "\\u0015";
- expectedNullChars[22] = "\\u0016";
- expectedNullChars[23] = "\\u0017";
- expectedNullChars[24] = "\\u0018";
- expectedNullChars[25] = "\\u0019";
- expectedNullChars[26] = "\\u001a";
- expectedNullChars[27] = "\\u001b";
- expectedNullChars[28] = "\\u001c";
- expectedNullChars[29] = "\\u001d";
- expectedNullChars[30] = "\\u001e";
- expectedNullChars[31] = "\\u001f";
+var expectedNullChars = new Array();
+expectedNullChars[0] = "\\u0000";
+expectedNullChars[1] = "\\u0001";
+expectedNullChars[2] = "\\u0002";
+expectedNullChars[3] = "\\u0003";
+expectedNullChars[4] = "\\u0004";
+expectedNullChars[5] = "\\u0005";
+expectedNullChars[6] = "\\u0006";
+expectedNullChars[7] = "\\u0007";
+expectedNullChars[8] = "\\b";
+expectedNullChars[9] = "\\t";
+expectedNullChars[10] = "\\n";
+expectedNullChars[11] = "\\u000b";
+expectedNullChars[12] = "\\f";
+expectedNullChars[13] = "\\r";
+expectedNullChars[14] = "\\u000e";
+expectedNullChars[15] = "\\u000f";
+expectedNullChars[16] = "\\u0010";
+expectedNullChars[17] = "\\u0011";
+expectedNullChars[18] = "\\u0012";
+expectedNullChars[19] = "\\u0013";
+expectedNullChars[20] = "\\u0014";
+expectedNullChars[21] = "\\u0015";
+expectedNullChars[22] = "\\u0016";
+expectedNullChars[23] = "\\u0017";
+expectedNullChars[24] = "\\u0018";
+expectedNullChars[25] = "\\u0019";
+expectedNullChars[26] = "\\u001a";
+expectedNullChars[27] = "\\u001b";
+expectedNullChars[28] = "\\u001c";
+expectedNullChars[29] = "\\u001d";
+expectedNullChars[30] = "\\u001e";
+expectedNullChars[31] = "\\u001f";
- for (var index in expectedNullChars) {
+for (var index in expectedNullChars) {
- var str = JSON.stringify({ "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John" });
- result = (result && str.indexOf(expectedNullChars[index]) !== -1);
- }
+ var str = JSON.stringify({
+ "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John"
+ });
+ result = (result && str.indexOf(expectedNullChars[index]) !== -1);
+}
assert(result, 'result !== true');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-17.js b/test/built-ins/JSON/stringify/15.12.3-11-17.js
index fe8a268b6..972323629 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-17.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-17.js
@@ -9,46 +9,48 @@ description: >
Quote(value) step 2.c)
---*/
- var result = true;
+var result = true;
- var expectedNullChars = new Array();
- expectedNullChars[0] = "\\u0000";
- expectedNullChars[1] = "\\u0001";
- expectedNullChars[2] = "\\u0002";
- expectedNullChars[3] = "\\u0003";
- expectedNullChars[4] = "\\u0004";
- expectedNullChars[5] = "\\u0005";
- expectedNullChars[6] = "\\u0006";
- expectedNullChars[7] = "\\u0007";
- expectedNullChars[8] = "\\b";
- expectedNullChars[9] = "\\t";
- expectedNullChars[10] = "\\n";
- expectedNullChars[11] = "\\u000b";
- expectedNullChars[12] = "\\f";
- expectedNullChars[13] = "\\r";
- expectedNullChars[14] = "\\u000e";
- expectedNullChars[15] = "\\u000f";
- expectedNullChars[16] = "\\u0010";
- expectedNullChars[17] = "\\u0011";
- expectedNullChars[18] = "\\u0012";
- expectedNullChars[19] = "\\u0013";
- expectedNullChars[20] = "\\u0014";
- expectedNullChars[21] = "\\u0015";
- expectedNullChars[22] = "\\u0016";
- expectedNullChars[23] = "\\u0017";
- expectedNullChars[24] = "\\u0018";
- expectedNullChars[25] = "\\u0019";
- expectedNullChars[26] = "\\u001a";
- expectedNullChars[27] = "\\u001b";
- expectedNullChars[28] = "\\u001c";
- expectedNullChars[29] = "\\u001d";
- expectedNullChars[30] = "\\u001e";
- expectedNullChars[31] = "\\u001f";
+var expectedNullChars = new Array();
+expectedNullChars[0] = "\\u0000";
+expectedNullChars[1] = "\\u0001";
+expectedNullChars[2] = "\\u0002";
+expectedNullChars[3] = "\\u0003";
+expectedNullChars[4] = "\\u0004";
+expectedNullChars[5] = "\\u0005";
+expectedNullChars[6] = "\\u0006";
+expectedNullChars[7] = "\\u0007";
+expectedNullChars[8] = "\\b";
+expectedNullChars[9] = "\\t";
+expectedNullChars[10] = "\\n";
+expectedNullChars[11] = "\\u000b";
+expectedNullChars[12] = "\\f";
+expectedNullChars[13] = "\\r";
+expectedNullChars[14] = "\\u000e";
+expectedNullChars[15] = "\\u000f";
+expectedNullChars[16] = "\\u0010";
+expectedNullChars[17] = "\\u0011";
+expectedNullChars[18] = "\\u0012";
+expectedNullChars[19] = "\\u0013";
+expectedNullChars[20] = "\\u0014";
+expectedNullChars[21] = "\\u0015";
+expectedNullChars[22] = "\\u0016";
+expectedNullChars[23] = "\\u0017";
+expectedNullChars[24] = "\\u0018";
+expectedNullChars[25] = "\\u0019";
+expectedNullChars[26] = "\\u001a";
+expectedNullChars[27] = "\\u001b";
+expectedNullChars[28] = "\\u001c";
+expectedNullChars[29] = "\\u001d";
+expectedNullChars[30] = "\\u001e";
+expectedNullChars[31] = "\\u001f";
- for (var index in expectedNullChars) {
+for (var index in expectedNullChars) {
- var str = JSON.stringify({ "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fname": "John" });
- result = (result && str.indexOf(expectedNullChars[index]) !== -1);
- }
+ var str = JSON.stringify({
+ "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fname": "John"
+ });
+ result = (result && str.indexOf(expectedNullChars[index]) !== -1);
+}
assert(result, 'result !== true');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-18.js b/test/built-ins/JSON/stringify/15.12.3-11-18.js
index 721fe41e3..6766a4e19 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-18.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-18.js
@@ -9,46 +9,48 @@ description: >
Quote(value) step 2.c)
---*/
- var result = true;
+var result = true;
- var expectedNullChars = new Array();
- expectedNullChars[0] = "\\u0000";
- expectedNullChars[1] = "\\u0001";
- expectedNullChars[2] = "\\u0002";
- expectedNullChars[3] = "\\u0003";
- expectedNullChars[4] = "\\u0004";
- expectedNullChars[5] = "\\u0005";
- expectedNullChars[6] = "\\u0006";
- expectedNullChars[7] = "\\u0007";
- expectedNullChars[8] = "\\b";
- expectedNullChars[9] = "\\t";
- expectedNullChars[10] = "\\n";
- expectedNullChars[11] = "\\u000b";
- expectedNullChars[12] = "\\f";
- expectedNullChars[13] = "\\r";
- expectedNullChars[14] = "\\u000e";
- expectedNullChars[15] = "\\u000f";
- expectedNullChars[16] = "\\u0010";
- expectedNullChars[17] = "\\u0011";
- expectedNullChars[18] = "\\u0012";
- expectedNullChars[19] = "\\u0013";
- expectedNullChars[20] = "\\u0014";
- expectedNullChars[21] = "\\u0015";
- expectedNullChars[22] = "\\u0016";
- expectedNullChars[23] = "\\u0017";
- expectedNullChars[24] = "\\u0018";
- expectedNullChars[25] = "\\u0019";
- expectedNullChars[26] = "\\u001a";
- expectedNullChars[27] = "\\u001b";
- expectedNullChars[28] = "\\u001c";
- expectedNullChars[29] = "\\u001d";
- expectedNullChars[30] = "\\u001e";
- expectedNullChars[31] = "\\u001f";
+var expectedNullChars = new Array();
+expectedNullChars[0] = "\\u0000";
+expectedNullChars[1] = "\\u0001";
+expectedNullChars[2] = "\\u0002";
+expectedNullChars[3] = "\\u0003";
+expectedNullChars[4] = "\\u0004";
+expectedNullChars[5] = "\\u0005";
+expectedNullChars[6] = "\\u0006";
+expectedNullChars[7] = "\\u0007";
+expectedNullChars[8] = "\\b";
+expectedNullChars[9] = "\\t";
+expectedNullChars[10] = "\\n";
+expectedNullChars[11] = "\\u000b";
+expectedNullChars[12] = "\\f";
+expectedNullChars[13] = "\\r";
+expectedNullChars[14] = "\\u000e";
+expectedNullChars[15] = "\\u000f";
+expectedNullChars[16] = "\\u0010";
+expectedNullChars[17] = "\\u0011";
+expectedNullChars[18] = "\\u0012";
+expectedNullChars[19] = "\\u0013";
+expectedNullChars[20] = "\\u0014";
+expectedNullChars[21] = "\\u0015";
+expectedNullChars[22] = "\\u0016";
+expectedNullChars[23] = "\\u0017";
+expectedNullChars[24] = "\\u0018";
+expectedNullChars[25] = "\\u0019";
+expectedNullChars[26] = "\\u001a";
+expectedNullChars[27] = "\\u001b";
+expectedNullChars[28] = "\\u001c";
+expectedNullChars[29] = "\\u001d";
+expectedNullChars[30] = "\\u001e";
+expectedNullChars[31] = "\\u001f";
- for (var index in expectedNullChars) {
+for (var index in expectedNullChars) {
- var str = JSON.stringify({ "name\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John" });
- result = (result && str.indexOf(expectedNullChars[index]) !== -1);
- }
+ var str = JSON.stringify({
+ "name\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John"
+ });
+ result = (result && str.indexOf(expectedNullChars[index]) !== -1);
+}
assert(result, 'result !== true');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-19.js b/test/built-ins/JSON/stringify/15.12.3-11-19.js
index c372e890f..052e394f2 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-19.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-19.js
@@ -9,46 +9,48 @@ description: >
operation Quote(value) step 2.c)
---*/
- var result = true;
+var result = true;
- var expectedNullChars = new Array();
- expectedNullChars[0] = "\\u0000";
- expectedNullChars[1] = "\\u0001";
- expectedNullChars[2] = "\\u0002";
- expectedNullChars[3] = "\\u0003";
- expectedNullChars[4] = "\\u0004";
- expectedNullChars[5] = "\\u0005";
- expectedNullChars[6] = "\\u0006";
- expectedNullChars[7] = "\\u0007";
- expectedNullChars[8] = "\\b";
- expectedNullChars[9] = "\\t";
- expectedNullChars[10] = "\\n";
- expectedNullChars[11] = "\\u000b";
- expectedNullChars[12] = "\\f";
- expectedNullChars[13] = "\\r";
- expectedNullChars[14] = "\\u000e";
- expectedNullChars[15] = "\\u000f";
- expectedNullChars[16] = "\\u0010";
- expectedNullChars[17] = "\\u0011";
- expectedNullChars[18] = "\\u0012";
- expectedNullChars[19] = "\\u0013";
- expectedNullChars[20] = "\\u0014";
- expectedNullChars[21] = "\\u0015";
- expectedNullChars[22] = "\\u0016";
- expectedNullChars[23] = "\\u0017";
- expectedNullChars[24] = "\\u0018";
- expectedNullChars[25] = "\\u0019";
- expectedNullChars[26] = "\\u001a";
- expectedNullChars[27] = "\\u001b";
- expectedNullChars[28] = "\\u001c";
- expectedNullChars[29] = "\\u001d";
- expectedNullChars[30] = "\\u001e";
- expectedNullChars[31] = "\\u001f";
+var expectedNullChars = new Array();
+expectedNullChars[0] = "\\u0000";
+expectedNullChars[1] = "\\u0001";
+expectedNullChars[2] = "\\u0002";
+expectedNullChars[3] = "\\u0003";
+expectedNullChars[4] = "\\u0004";
+expectedNullChars[5] = "\\u0005";
+expectedNullChars[6] = "\\u0006";
+expectedNullChars[7] = "\\u0007";
+expectedNullChars[8] = "\\b";
+expectedNullChars[9] = "\\t";
+expectedNullChars[10] = "\\n";
+expectedNullChars[11] = "\\u000b";
+expectedNullChars[12] = "\\f";
+expectedNullChars[13] = "\\r";
+expectedNullChars[14] = "\\u000e";
+expectedNullChars[15] = "\\u000f";
+expectedNullChars[16] = "\\u0010";
+expectedNullChars[17] = "\\u0011";
+expectedNullChars[18] = "\\u0012";
+expectedNullChars[19] = "\\u0013";
+expectedNullChars[20] = "\\u0014";
+expectedNullChars[21] = "\\u0015";
+expectedNullChars[22] = "\\u0016";
+expectedNullChars[23] = "\\u0017";
+expectedNullChars[24] = "\\u0018";
+expectedNullChars[25] = "\\u0019";
+expectedNullChars[26] = "\\u001a";
+expectedNullChars[27] = "\\u001b";
+expectedNullChars[28] = "\\u001c";
+expectedNullChars[29] = "\\u001d";
+expectedNullChars[30] = "\\u001e";
+expectedNullChars[31] = "\\u001f";
- for (var index in expectedNullChars) {
+for (var index in expectedNullChars) {
- var str = JSON.stringify({ "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fname\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John" });
- result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1);
- }
+ var str = JSON.stringify({
+ "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fname\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John"
+ });
+ result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1);
+}
assert(result, 'result !== true');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-2.js b/test/built-ins/JSON/stringify/15.12.3-11-2.js
index f6dc5e862..adc1c36c8 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-2.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-2.js
@@ -8,4 +8,6 @@ description: >
undefined value.
---*/
-assert.sameValue(JSON.stringify(undefined, function(k, v) { return "replacement" }), '"replacement"', 'JSON.stringify(undefined, function(k, v) { return "replacement" })');
+assert.sameValue(JSON.stringify(undefined, function(k, v) {
+ return "replacement"
+}), '"replacement"', 'JSON.stringify(undefined, function(k, v) { return "replacement" })');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-20.js b/test/built-ins/JSON/stringify/15.12.3-11-20.js
index 6b7c2e6f4..8c9bc2783 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-20.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-20.js
@@ -9,46 +9,48 @@ description: >
operation Quote(value) step 2.c)
---*/
- var result = true;
+var result = true;
- var expectedNullChars = new Array();
- expectedNullChars[0] = "\\u0000";
- expectedNullChars[1] = "\\u0001";
- expectedNullChars[2] = "\\u0002";
- expectedNullChars[3] = "\\u0003";
- expectedNullChars[4] = "\\u0004";
- expectedNullChars[5] = "\\u0005";
- expectedNullChars[6] = "\\u0006";
- expectedNullChars[7] = "\\u0007";
- expectedNullChars[8] = "\\b";
- expectedNullChars[9] = "\\t";
- expectedNullChars[10] = "\\n";
- expectedNullChars[11] = "\\u000b";
- expectedNullChars[12] = "\\f";
- expectedNullChars[13] = "\\r";
- expectedNullChars[14] = "\\u000e";
- expectedNullChars[15] = "\\u000f";
- expectedNullChars[16] = "\\u0010";
- expectedNullChars[17] = "\\u0011";
- expectedNullChars[18] = "\\u0012";
- expectedNullChars[19] = "\\u0013";
- expectedNullChars[20] = "\\u0014";
- expectedNullChars[21] = "\\u0015";
- expectedNullChars[22] = "\\u0016";
- expectedNullChars[23] = "\\u0017";
- expectedNullChars[24] = "\\u0018";
- expectedNullChars[25] = "\\u0019";
- expectedNullChars[26] = "\\u001a";
- expectedNullChars[27] = "\\u001b";
- expectedNullChars[28] = "\\u001c";
- expectedNullChars[29] = "\\u001d";
- expectedNullChars[30] = "\\u001e";
- expectedNullChars[31] = "\\u001f";
+var expectedNullChars = new Array();
+expectedNullChars[0] = "\\u0000";
+expectedNullChars[1] = "\\u0001";
+expectedNullChars[2] = "\\u0002";
+expectedNullChars[3] = "\\u0003";
+expectedNullChars[4] = "\\u0004";
+expectedNullChars[5] = "\\u0005";
+expectedNullChars[6] = "\\u0006";
+expectedNullChars[7] = "\\u0007";
+expectedNullChars[8] = "\\b";
+expectedNullChars[9] = "\\t";
+expectedNullChars[10] = "\\n";
+expectedNullChars[11] = "\\u000b";
+expectedNullChars[12] = "\\f";
+expectedNullChars[13] = "\\r";
+expectedNullChars[14] = "\\u000e";
+expectedNullChars[15] = "\\u000f";
+expectedNullChars[16] = "\\u0010";
+expectedNullChars[17] = "\\u0011";
+expectedNullChars[18] = "\\u0012";
+expectedNullChars[19] = "\\u0013";
+expectedNullChars[20] = "\\u0014";
+expectedNullChars[21] = "\\u0015";
+expectedNullChars[22] = "\\u0016";
+expectedNullChars[23] = "\\u0017";
+expectedNullChars[24] = "\\u0018";
+expectedNullChars[25] = "\\u0019";
+expectedNullChars[26] = "\\u001a";
+expectedNullChars[27] = "\\u001b";
+expectedNullChars[28] = "\\u001c";
+expectedNullChars[29] = "\\u001d";
+expectedNullChars[30] = "\\u001e";
+expectedNullChars[31] = "\\u001f";
- for (var index in expectedNullChars) {
+for (var index in expectedNullChars) {
- var str = JSON.stringify({ "na\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fme": "John" });
- result = (result && str.indexOf(expectedNullChars[index]) !== -1);
- }
+ var str = JSON.stringify({
+ "na\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fme": "John"
+ });
+ result = (result && str.indexOf(expectedNullChars[index]) !== -1);
+}
assert(result, 'result !== true');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-21.js b/test/built-ins/JSON/stringify/15.12.3-11-21.js
index e22b848cc..ca7e598d6 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-21.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-21.js
@@ -9,46 +9,48 @@ description: >
Quote(value) step 2.c)
---*/
- var result = true;
+var result = true;
- var expectedNullChars = new Array();
- expectedNullChars[0] = "\\u0000";
- expectedNullChars[1] = "\\u0001";
- expectedNullChars[2] = "\\u0002";
- expectedNullChars[3] = "\\u0003";
- expectedNullChars[4] = "\\u0004";
- expectedNullChars[5] = "\\u0005";
- expectedNullChars[6] = "\\u0006";
- expectedNullChars[7] = "\\u0007";
- expectedNullChars[8] = "\\b";
- expectedNullChars[9] = "\\t";
- expectedNullChars[10] = "\\n";
- expectedNullChars[11] = "\\u000b";
- expectedNullChars[12] = "\\f";
- expectedNullChars[13] = "\\r";
- expectedNullChars[14] = "\\u000e";
- expectedNullChars[15] = "\\u000f";
- expectedNullChars[16] = "\\u0010";
- expectedNullChars[17] = "\\u0011";
- expectedNullChars[18] = "\\u0012";
- expectedNullChars[19] = "\\u0013";
- expectedNullChars[20] = "\\u0014";
- expectedNullChars[21] = "\\u0015";
- expectedNullChars[22] = "\\u0016";
- expectedNullChars[23] = "\\u0017";
- expectedNullChars[24] = "\\u0018";
- expectedNullChars[25] = "\\u0019";
- expectedNullChars[26] = "\\u001a";
- expectedNullChars[27] = "\\u001b";
- expectedNullChars[28] = "\\u001c";
- expectedNullChars[29] = "\\u001d";
- expectedNullChars[30] = "\\u001e";
- expectedNullChars[31] = "\\u001f";
+var expectedNullChars = new Array();
+expectedNullChars[0] = "\\u0000";
+expectedNullChars[1] = "\\u0001";
+expectedNullChars[2] = "\\u0002";
+expectedNullChars[3] = "\\u0003";
+expectedNullChars[4] = "\\u0004";
+expectedNullChars[5] = "\\u0005";
+expectedNullChars[6] = "\\u0006";
+expectedNullChars[7] = "\\u0007";
+expectedNullChars[8] = "\\b";
+expectedNullChars[9] = "\\t";
+expectedNullChars[10] = "\\n";
+expectedNullChars[11] = "\\u000b";
+expectedNullChars[12] = "\\f";
+expectedNullChars[13] = "\\r";
+expectedNullChars[14] = "\\u000e";
+expectedNullChars[15] = "\\u000f";
+expectedNullChars[16] = "\\u0010";
+expectedNullChars[17] = "\\u0011";
+expectedNullChars[18] = "\\u0012";
+expectedNullChars[19] = "\\u0013";
+expectedNullChars[20] = "\\u0014";
+expectedNullChars[21] = "\\u0015";
+expectedNullChars[22] = "\\u0016";
+expectedNullChars[23] = "\\u0017";
+expectedNullChars[24] = "\\u0018";
+expectedNullChars[25] = "\\u0019";
+expectedNullChars[26] = "\\u001a";
+expectedNullChars[27] = "\\u001b";
+expectedNullChars[28] = "\\u001c";
+expectedNullChars[29] = "\\u001d";
+expectedNullChars[30] = "\\u001e";
+expectedNullChars[31] = "\\u001f";
- for (var index in expectedNullChars) {
+for (var index in expectedNullChars) {
- var str = JSON.stringify({ "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" });
- result = (result && str.indexOf(expectedNullChars[index]) !== -1);
- }
+ var str = JSON.stringify({
+ "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F"
+ });
+ result = (result && str.indexOf(expectedNullChars[index]) !== -1);
+}
assert(result, 'result !== true');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-22.js b/test/built-ins/JSON/stringify/15.12.3-11-22.js
index 238b6c35f..eec132500 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-22.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-22.js
@@ -9,46 +9,48 @@ description: >
operation Quote(value) step 2.c)
---*/
- var result = true;
+var result = true;
- var expectedNullChars = new Array();
- expectedNullChars[0] = "\\u0000";
- expectedNullChars[1] = "\\u0001";
- expectedNullChars[2] = "\\u0002";
- expectedNullChars[3] = "\\u0003";
- expectedNullChars[4] = "\\u0004";
- expectedNullChars[5] = "\\u0005";
- expectedNullChars[6] = "\\u0006";
- expectedNullChars[7] = "\\u0007";
- expectedNullChars[8] = "\\b";
- expectedNullChars[9] = "\\t";
- expectedNullChars[10] = "\\n";
- expectedNullChars[11] = "\\u000b";
- expectedNullChars[12] = "\\f";
- expectedNullChars[13] = "\\r";
- expectedNullChars[14] = "\\u000e";
- expectedNullChars[15] = "\\u000f";
- expectedNullChars[16] = "\\u0010";
- expectedNullChars[17] = "\\u0011";
- expectedNullChars[18] = "\\u0012";
- expectedNullChars[19] = "\\u0013";
- expectedNullChars[20] = "\\u0014";
- expectedNullChars[21] = "\\u0015";
- expectedNullChars[22] = "\\u0016";
- expectedNullChars[23] = "\\u0017";
- expectedNullChars[24] = "\\u0018";
- expectedNullChars[25] = "\\u0019";
- expectedNullChars[26] = "\\u001a";
- expectedNullChars[27] = "\\u001b";
- expectedNullChars[28] = "\\u001c";
- expectedNullChars[29] = "\\u001d";
- expectedNullChars[30] = "\\u001e";
- expectedNullChars[31] = "\\u001f";
+var expectedNullChars = new Array();
+expectedNullChars[0] = "\\u0000";
+expectedNullChars[1] = "\\u0001";
+expectedNullChars[2] = "\\u0002";
+expectedNullChars[3] = "\\u0003";
+expectedNullChars[4] = "\\u0004";
+expectedNullChars[5] = "\\u0005";
+expectedNullChars[6] = "\\u0006";
+expectedNullChars[7] = "\\u0007";
+expectedNullChars[8] = "\\b";
+expectedNullChars[9] = "\\t";
+expectedNullChars[10] = "\\n";
+expectedNullChars[11] = "\\u000b";
+expectedNullChars[12] = "\\f";
+expectedNullChars[13] = "\\r";
+expectedNullChars[14] = "\\u000e";
+expectedNullChars[15] = "\\u000f";
+expectedNullChars[16] = "\\u0010";
+expectedNullChars[17] = "\\u0011";
+expectedNullChars[18] = "\\u0012";
+expectedNullChars[19] = "\\u0013";
+expectedNullChars[20] = "\\u0014";
+expectedNullChars[21] = "\\u0015";
+expectedNullChars[22] = "\\u0016";
+expectedNullChars[23] = "\\u0017";
+expectedNullChars[24] = "\\u0018";
+expectedNullChars[25] = "\\u0019";
+expectedNullChars[26] = "\\u001a";
+expectedNullChars[27] = "\\u001b";
+expectedNullChars[28] = "\\u001c";
+expectedNullChars[29] = "\\u001d";
+expectedNullChars[30] = "\\u001e";
+expectedNullChars[31] = "\\u001f";
- for (var index in expectedNullChars) {
+for (var index in expectedNullChars) {
- var str = JSON.stringify({ "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001FJohn" });
- result = (result && str.indexOf(expectedNullChars[index]) !== -1);
- }
+ var str = JSON.stringify({
+ "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001FJohn"
+ });
+ result = (result && str.indexOf(expectedNullChars[index]) !== -1);
+}
assert(result, 'result !== true');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-23.js b/test/built-ins/JSON/stringify/15.12.3-11-23.js
index c19435273..982968f34 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-23.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-23.js
@@ -9,46 +9,48 @@ description: >
Quote(value) step 2.c)
---*/
- var result = true;
+var result = true;
- var expectedNullChars = new Array();
- expectedNullChars[0] = "\\u0000";
- expectedNullChars[1] = "\\u0001";
- expectedNullChars[2] = "\\u0002";
- expectedNullChars[3] = "\\u0003";
- expectedNullChars[4] = "\\u0004";
- expectedNullChars[5] = "\\u0005";
- expectedNullChars[6] = "\\u0006";
- expectedNullChars[7] = "\\u0007";
- expectedNullChars[8] = "\\b";
- expectedNullChars[9] = "\\t";
- expectedNullChars[10] = "\\n";
- expectedNullChars[11] = "\\u000b";
- expectedNullChars[12] = "\\f";
- expectedNullChars[13] = "\\r";
- expectedNullChars[14] = "\\u000e";
- expectedNullChars[15] = "\\u000f";
- expectedNullChars[16] = "\\u0010";
- expectedNullChars[17] = "\\u0011";
- expectedNullChars[18] = "\\u0012";
- expectedNullChars[19] = "\\u0013";
- expectedNullChars[20] = "\\u0014";
- expectedNullChars[21] = "\\u0015";
- expectedNullChars[22] = "\\u0016";
- expectedNullChars[23] = "\\u0017";
- expectedNullChars[24] = "\\u0018";
- expectedNullChars[25] = "\\u0019";
- expectedNullChars[26] = "\\u001a";
- expectedNullChars[27] = "\\u001b";
- expectedNullChars[28] = "\\u001c";
- expectedNullChars[29] = "\\u001d";
- expectedNullChars[30] = "\\u001e";
- expectedNullChars[31] = "\\u001f";
+var expectedNullChars = new Array();
+expectedNullChars[0] = "\\u0000";
+expectedNullChars[1] = "\\u0001";
+expectedNullChars[2] = "\\u0002";
+expectedNullChars[3] = "\\u0003";
+expectedNullChars[4] = "\\u0004";
+expectedNullChars[5] = "\\u0005";
+expectedNullChars[6] = "\\u0006";
+expectedNullChars[7] = "\\u0007";
+expectedNullChars[8] = "\\b";
+expectedNullChars[9] = "\\t";
+expectedNullChars[10] = "\\n";
+expectedNullChars[11] = "\\u000b";
+expectedNullChars[12] = "\\f";
+expectedNullChars[13] = "\\r";
+expectedNullChars[14] = "\\u000e";
+expectedNullChars[15] = "\\u000f";
+expectedNullChars[16] = "\\u0010";
+expectedNullChars[17] = "\\u0011";
+expectedNullChars[18] = "\\u0012";
+expectedNullChars[19] = "\\u0013";
+expectedNullChars[20] = "\\u0014";
+expectedNullChars[21] = "\\u0015";
+expectedNullChars[22] = "\\u0016";
+expectedNullChars[23] = "\\u0017";
+expectedNullChars[24] = "\\u0018";
+expectedNullChars[25] = "\\u0019";
+expectedNullChars[26] = "\\u001a";
+expectedNullChars[27] = "\\u001b";
+expectedNullChars[28] = "\\u001c";
+expectedNullChars[29] = "\\u001d";
+expectedNullChars[30] = "\\u001e";
+expectedNullChars[31] = "\\u001f";
- for (var index in expectedNullChars) {
+for (var index in expectedNullChars) {
- var str = JSON.stringify({ "name": "John\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" });
- result = (result && str.indexOf(expectedNullChars[index]) !== -1);
- }
+ var str = JSON.stringify({
+ "name": "John\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F"
+ });
+ result = (result && str.indexOf(expectedNullChars[index]) !== -1);
+}
assert(result, 'result !== true');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-24.js b/test/built-ins/JSON/stringify/15.12.3-11-24.js
index 17a9c9631..3fc4140a2 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-24.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-24.js
@@ -9,46 +9,48 @@ description: >
operation Quote(value) step 2.c)
---*/
- var result = true;
+var result = true;
- var expectedNullChars = new Array();
- expectedNullChars[0] = "\\u0000";
- expectedNullChars[1] = "\\u0001";
- expectedNullChars[2] = "\\u0002";
- expectedNullChars[3] = "\\u0003";
- expectedNullChars[4] = "\\u0004";
- expectedNullChars[5] = "\\u0005";
- expectedNullChars[6] = "\\u0006";
- expectedNullChars[7] = "\\u0007";
- expectedNullChars[8] = "\\b";
- expectedNullChars[9] = "\\t";
- expectedNullChars[10] = "\\n";
- expectedNullChars[11] = "\\u000b";
- expectedNullChars[12] = "\\f";
- expectedNullChars[13] = "\\r";
- expectedNullChars[14] = "\\u000e";
- expectedNullChars[15] = "\\u000f";
- expectedNullChars[16] = "\\u0010";
- expectedNullChars[17] = "\\u0011";
- expectedNullChars[18] = "\\u0012";
- expectedNullChars[19] = "\\u0013";
- expectedNullChars[20] = "\\u0014";
- expectedNullChars[21] = "\\u0015";
- expectedNullChars[22] = "\\u0016";
- expectedNullChars[23] = "\\u0017";
- expectedNullChars[24] = "\\u0018";
- expectedNullChars[25] = "\\u0019";
- expectedNullChars[26] = "\\u001a";
- expectedNullChars[27] = "\\u001b";
- expectedNullChars[28] = "\\u001c";
- expectedNullChars[29] = "\\u001d";
- expectedNullChars[30] = "\\u001e";
- expectedNullChars[31] = "\\u001f";
+var expectedNullChars = new Array();
+expectedNullChars[0] = "\\u0000";
+expectedNullChars[1] = "\\u0001";
+expectedNullChars[2] = "\\u0002";
+expectedNullChars[3] = "\\u0003";
+expectedNullChars[4] = "\\u0004";
+expectedNullChars[5] = "\\u0005";
+expectedNullChars[6] = "\\u0006";
+expectedNullChars[7] = "\\u0007";
+expectedNullChars[8] = "\\b";
+expectedNullChars[9] = "\\t";
+expectedNullChars[10] = "\\n";
+expectedNullChars[11] = "\\u000b";
+expectedNullChars[12] = "\\f";
+expectedNullChars[13] = "\\r";
+expectedNullChars[14] = "\\u000e";
+expectedNullChars[15] = "\\u000f";
+expectedNullChars[16] = "\\u0010";
+expectedNullChars[17] = "\\u0011";
+expectedNullChars[18] = "\\u0012";
+expectedNullChars[19] = "\\u0013";
+expectedNullChars[20] = "\\u0014";
+expectedNullChars[21] = "\\u0015";
+expectedNullChars[22] = "\\u0016";
+expectedNullChars[23] = "\\u0017";
+expectedNullChars[24] = "\\u0018";
+expectedNullChars[25] = "\\u0019";
+expectedNullChars[26] = "\\u001a";
+expectedNullChars[27] = "\\u001b";
+expectedNullChars[28] = "\\u001c";
+expectedNullChars[29] = "\\u001d";
+expectedNullChars[30] = "\\u001e";
+expectedNullChars[31] = "\\u001f";
- for (var index in expectedNullChars) {
+for (var index in expectedNullChars) {
- var str = JSON.stringify({ "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001FJohn\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" });
- result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1);
- }
+ var str = JSON.stringify({
+ "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001FJohn\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F"
+ });
+ result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1);
+}
assert(result, 'result !== true');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-25.js b/test/built-ins/JSON/stringify/15.12.3-11-25.js
index 146d71200..9a26fa418 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-25.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-25.js
@@ -9,46 +9,48 @@ description: >
operation Quote(value) step 2.c)
---*/
- var result = true;
+var result = true;
- var expectedNullChars = new Array();
- expectedNullChars[0] = "\\u0000";
- expectedNullChars[1] = "\\u0001";
- expectedNullChars[2] = "\\u0002";
- expectedNullChars[3] = "\\u0003";
- expectedNullChars[4] = "\\u0004";
- expectedNullChars[5] = "\\u0005";
- expectedNullChars[6] = "\\u0006";
- expectedNullChars[7] = "\\u0007";
- expectedNullChars[8] = "\\b";
- expectedNullChars[9] = "\\t";
- expectedNullChars[10] = "\\n";
- expectedNullChars[11] = "\\u000b";
- expectedNullChars[12] = "\\f";
- expectedNullChars[13] = "\\r";
- expectedNullChars[14] = "\\u000e";
- expectedNullChars[15] = "\\u000f";
- expectedNullChars[16] = "\\u0010";
- expectedNullChars[17] = "\\u0011";
- expectedNullChars[18] = "\\u0012";
- expectedNullChars[19] = "\\u0013";
- expectedNullChars[20] = "\\u0014";
- expectedNullChars[21] = "\\u0015";
- expectedNullChars[22] = "\\u0016";
- expectedNullChars[23] = "\\u0017";
- expectedNullChars[24] = "\\u0018";
- expectedNullChars[25] = "\\u0019";
- expectedNullChars[26] = "\\u001a";
- expectedNullChars[27] = "\\u001b";
- expectedNullChars[28] = "\\u001c";
- expectedNullChars[29] = "\\u001d";
- expectedNullChars[30] = "\\u001e";
- expectedNullChars[31] = "\\u001f";
+var expectedNullChars = new Array();
+expectedNullChars[0] = "\\u0000";
+expectedNullChars[1] = "\\u0001";
+expectedNullChars[2] = "\\u0002";
+expectedNullChars[3] = "\\u0003";
+expectedNullChars[4] = "\\u0004";
+expectedNullChars[5] = "\\u0005";
+expectedNullChars[6] = "\\u0006";
+expectedNullChars[7] = "\\u0007";
+expectedNullChars[8] = "\\b";
+expectedNullChars[9] = "\\t";
+expectedNullChars[10] = "\\n";
+expectedNullChars[11] = "\\u000b";
+expectedNullChars[12] = "\\f";
+expectedNullChars[13] = "\\r";
+expectedNullChars[14] = "\\u000e";
+expectedNullChars[15] = "\\u000f";
+expectedNullChars[16] = "\\u0010";
+expectedNullChars[17] = "\\u0011";
+expectedNullChars[18] = "\\u0012";
+expectedNullChars[19] = "\\u0013";
+expectedNullChars[20] = "\\u0014";
+expectedNullChars[21] = "\\u0015";
+expectedNullChars[22] = "\\u0016";
+expectedNullChars[23] = "\\u0017";
+expectedNullChars[24] = "\\u0018";
+expectedNullChars[25] = "\\u0019";
+expectedNullChars[26] = "\\u001a";
+expectedNullChars[27] = "\\u001b";
+expectedNullChars[28] = "\\u001c";
+expectedNullChars[29] = "\\u001d";
+expectedNullChars[30] = "\\u001e";
+expectedNullChars[31] = "\\u001f";
- for (var index in expectedNullChars) {
+for (var index in expectedNullChars) {
- var str = JSON.stringify({ "name": "Jo\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fhn" });
- result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1);
- }
+ var str = JSON.stringify({
+ "name": "Jo\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fhn"
+ });
+ result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1);
+}
assert(result, 'result !== true');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-26.js b/test/built-ins/JSON/stringify/15.12.3-11-26.js
index a04f354a0..142160ce5 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-26.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-26.js
@@ -8,11 +8,11 @@ description: >
abstract operation JA(value) step 10.b.iii)
---*/
- var arrObj = [];
- arrObj[0] = "a";
- arrObj[1] = "b";
- arrObj[2] = "c";
+var arrObj = [];
+arrObj[0] = "a";
+arrObj[1] = "b";
+arrObj[2] = "c";
- var jsonText = JSON.stringify(arrObj, undefined, "").toString();
+var jsonText = JSON.stringify(arrObj, undefined, "").toString();
assert.sameValue(jsonText.charAt(jsonText.length - 1), "]", 'jsonText.charAt(jsonText.length - 1)');
diff --git a/test/built-ins/JSON/stringify/15.12.3-4-1.js b/test/built-ins/JSON/stringify/15.12.3-4-1.js
index 0f7eafd11..d68148698 100644
--- a/test/built-ins/JSON/stringify/15.12.3-4-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3-4-1.js
@@ -8,4 +8,4 @@ description: >
or arrays..
---*/
-assert.sameValue(JSON.stringify([42],{}), '[42]', 'JSON.stringify([42],{})');
+assert.sameValue(JSON.stringify([42], {}), '[42]', 'JSON.stringify([42],{})');
diff --git a/test/built-ins/JSON/stringify/15.12.3-5-a-i-1.js b/test/built-ins/JSON/stringify/15.12.3-5-a-i-1.js
index 719f653c9..0304b03c2 100644
--- a/test/built-ins/JSON/stringify/15.12.3-5-a-i-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3-5-a-i-1.js
@@ -8,6 +8,15 @@ description: >
Number values
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
-assert.sameValue(JSON.stringify(obj,null, new Number(5)), JSON.stringify(obj,null, 5), 'JSON.stringify(obj,null, new Number(5))');
+assert.sameValue(JSON.stringify(obj, null, new Number(5)), JSON.stringify(obj, null, 5), 'JSON.stringify(obj,null, new Number(5))');
diff --git a/test/built-ins/JSON/stringify/15.12.3-5-b-i-1.js b/test/built-ins/JSON/stringify/15.12.3-5-b-i-1.js
index 034123aec..baf3d06f5 100644
--- a/test/built-ins/JSON/stringify/15.12.3-5-b-i-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3-5-b-i-1.js
@@ -8,6 +8,15 @@ description: >
String values
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
-assert.sameValue(JSON.stringify(obj,null, new String('xxx')), JSON.stringify(obj,null, 'xxx'), 'JSON.stringify(obj,null, new String("xxx"))');
+assert.sameValue(JSON.stringify(obj, null, new String('xxx')), JSON.stringify(obj, null, 'xxx'), 'JSON.stringify(obj,null, new String("xxx"))');
diff --git a/test/built-ins/JSON/stringify/15.12.3-6-a-1.js b/test/built-ins/JSON/stringify/15.12.3-6-a-1.js
index fd0d4ded4..2d7e6386f 100644
--- a/test/built-ins/JSON/stringify/15.12.3-6-a-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3-6-a-1.js
@@ -8,6 +8,15 @@ description: >
same as a space argument of 10.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
-assert.sameValue(JSON.stringify(obj,null, 10), JSON.stringify(obj,null, 100), 'JSON.stringify(obj,null, 10)');
+assert.sameValue(JSON.stringify(obj, null, 10), JSON.stringify(obj, null, 100), 'JSON.stringify(obj,null, 10)');
diff --git a/test/built-ins/JSON/stringify/15.12.3-6-a-2.js b/test/built-ins/JSON/stringify/15.12.3-6-a-2.js
index 1cfe50a80..16349f1f3 100644
--- a/test/built-ins/JSON/stringify/15.12.3-6-a-2.js
+++ b/test/built-ins/JSON/stringify/15.12.3-6-a-2.js
@@ -8,6 +8,15 @@ description: >
their integer part.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
-assert.sameValue(JSON.stringify(obj,null, 5.99999), JSON.stringify(obj,null, 5), 'JSON.stringify(obj,null, 5.99999)');
+assert.sameValue(JSON.stringify(obj, null, 5.99999), JSON.stringify(obj, null, 5), 'JSON.stringify(obj,null, 5.99999)');
diff --git a/test/built-ins/JSON/stringify/15.12.3-6-b-1.js b/test/built-ins/JSON/stringify/15.12.3-6-b-1.js
index d5eea1024..d178f1eef 100644
--- a/test/built-ins/JSON/stringify/15.12.3-6-b-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3-6-b-1.js
@@ -8,7 +8,16 @@ description: >
(0.999999)the same as empty string space argument.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
/* empty string should be same as no space arg */
-assert.sameValue(JSON.stringify(obj,null, 0.999999), JSON.stringify(obj));
+assert.sameValue(JSON.stringify(obj, null, 0.999999), JSON.stringify(obj));
diff --git a/test/built-ins/JSON/stringify/15.12.3-6-b-2.js b/test/built-ins/JSON/stringify/15.12.3-6-b-2.js
index d1bf8401b..504e939e6 100644
--- a/test/built-ins/JSON/stringify/15.12.3-6-b-2.js
+++ b/test/built-ins/JSON/stringify/15.12.3-6-b-2.js
@@ -8,7 +8,16 @@ description: >
same as empty string space argument.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
/* empty string should be same as no space arg */
-assert.sameValue(JSON.stringify(obj,null, 0), JSON.stringify(obj));
+assert.sameValue(JSON.stringify(obj, null, 0), JSON.stringify(obj));
diff --git a/test/built-ins/JSON/stringify/15.12.3-6-b-3.js b/test/built-ins/JSON/stringify/15.12.3-6-b-3.js
index 9310f9470..92db3c825 100644
--- a/test/built-ins/JSON/stringify/15.12.3-6-b-3.js
+++ b/test/built-ins/JSON/stringify/15.12.3-6-b-3.js
@@ -8,7 +8,16 @@ description: >
same as empty string space argument.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
- /* empty string should be same as no space arg */
- assert.sameValue(JSON.stringify(obj,null, -5), JSON.stringify(obj));
+/* empty string should be same as no space arg */
+assert.sameValue(JSON.stringify(obj, null, -5), JSON.stringify(obj));
diff --git a/test/built-ins/JSON/stringify/15.12.3-6-b-4.js b/test/built-ins/JSON/stringify/15.12.3-6-b-4.js
index de0330367..e492e43a3 100644
--- a/test/built-ins/JSON/stringify/15.12.3-6-b-4.js
+++ b/test/built-ins/JSON/stringify/15.12.3-6-b-4.js
@@ -8,8 +8,17 @@ description: >
is equivalent to a string of spaces of that length.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
- var fiveSpaces = ' ';
- // '12345'
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
+var fiveSpaces = ' ';
+// '12345'
-assert.sameValue(JSON.stringify(obj,null, 5), JSON.stringify(obj, null, fiveSpaces), 'JSON.stringify(obj,null, 5)');
+assert.sameValue(JSON.stringify(obj, null, 5), JSON.stringify(obj, null, fiveSpaces), 'JSON.stringify(obj,null, 5)');
diff --git a/test/built-ins/JSON/stringify/15.12.3-7-a-1.js b/test/built-ins/JSON/stringify/15.12.3-7-a-1.js
index e16a25e6f..fd579d854 100644
--- a/test/built-ins/JSON/stringify/15.12.3-7-a-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3-7-a-1.js
@@ -8,6 +8,15 @@ description: >
arguments.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
-assert.sameValue(JSON.stringify(obj,null, '0123456789xxxxxxxxx'), JSON.stringify(obj,null, '0123456789'), 'JSON.stringify(obj,null, "0123456789xxxxxxxxx")');
+assert.sameValue(JSON.stringify(obj, null, '0123456789xxxxxxxxx'), JSON.stringify(obj, null, '0123456789'), 'JSON.stringify(obj,null, "0123456789xxxxxxxxx")');
diff --git a/test/built-ins/JSON/stringify/15.12.3-8-a-1.js b/test/built-ins/JSON/stringify/15.12.3-8-a-1.js
index c95e950e6..7fc0583f6 100644
--- a/test/built-ins/JSON/stringify/15.12.3-8-a-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3-8-a-1.js
@@ -8,6 +8,15 @@ description: >
missing space argument.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
-assert.sameValue(JSON.stringify(obj), JSON.stringify(obj,null, ''), 'JSON.stringify(obj)');
+assert.sameValue(JSON.stringify(obj), JSON.stringify(obj, null, ''), 'JSON.stringify(obj)');
diff --git a/test/built-ins/JSON/stringify/15.12.3-8-a-2.js b/test/built-ins/JSON/stringify/15.12.3-8-a-2.js
index 0443eb753..eacd51d52 100644
--- a/test/built-ins/JSON/stringify/15.12.3-8-a-2.js
+++ b/test/built-ins/JSON/stringify/15.12.3-8-a-2.js
@@ -8,6 +8,15 @@ description: >
missing space argument.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
-assert.sameValue(JSON.stringify(obj), JSON.stringify(obj,null, true), 'JSON.stringify(obj)');
+assert.sameValue(JSON.stringify(obj), JSON.stringify(obj, null, true), 'JSON.stringify(obj)');
diff --git a/test/built-ins/JSON/stringify/15.12.3-8-a-3.js b/test/built-ins/JSON/stringify/15.12.3-8-a-3.js
index 6d4bc3eb8..072eb9d53 100644
--- a/test/built-ins/JSON/stringify/15.12.3-8-a-3.js
+++ b/test/built-ins/JSON/stringify/15.12.3-8-a-3.js
@@ -8,6 +8,15 @@ description: >
space argument.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
-assert.sameValue(JSON.stringify(obj), JSON.stringify(obj,null, null), 'JSON.stringify(obj)');
+assert.sameValue(JSON.stringify(obj), JSON.stringify(obj, null, null), 'JSON.stringify(obj)');
diff --git a/test/built-ins/JSON/stringify/15.12.3-8-a-4.js b/test/built-ins/JSON/stringify/15.12.3-8-a-4.js
index d13b9c5c8..7ac1a28ec 100644
--- a/test/built-ins/JSON/stringify/15.12.3-8-a-4.js
+++ b/test/built-ins/JSON/stringify/15.12.3-8-a-4.js
@@ -8,6 +8,15 @@ description: >
as a missing space argument.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
-assert.sameValue(JSON.stringify(obj), JSON.stringify(obj,null, new Boolean(true)), 'JSON.stringify(obj)');
+assert.sameValue(JSON.stringify(obj), JSON.stringify(obj, null, new Boolean(true)), 'JSON.stringify(obj)');
diff --git a/test/built-ins/JSON/stringify/15.12.3-8-a-5.js b/test/built-ins/JSON/stringify/15.12.3-8-a-5.js
index 56532c4ec..4f05d178f 100644
--- a/test/built-ins/JSON/stringify/15.12.3-8-a-5.js
+++ b/test/built-ins/JSON/stringify/15.12.3-8-a-5.js
@@ -8,6 +8,15 @@ description: >
the same as a missing space argument.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
-assert.sameValue(JSON.stringify(obj), JSON.stringify(obj,null, obj), 'JSON.stringify(obj)');
+assert.sameValue(JSON.stringify(obj), JSON.stringify(obj, null, obj), 'JSON.stringify(obj)');
diff --git a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-1.js b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-1.js
index 6f6fa62da..447652a8b 100644
--- a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-1.js
@@ -8,9 +8,11 @@ description: >
toJSON call to literal strings.
---*/
- var obj = {
- prop:42,
- toJSON: function () {return 'fortytwo objects'}
- };
+var obj = {
+ prop: 42,
+ toJSON: function() {
+ return 'fortytwo objects'
+ }
+};
assert.sameValue(JSON.stringify([obj]), '["fortytwo objects"]', 'JSON.stringify([obj])');
diff --git a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-2.js b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-2.js
index b665d8004..aa418fefd 100644
--- a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-2.js
+++ b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-2.js
@@ -8,9 +8,11 @@ description: >
toJSON call to literal Number.
---*/
- var obj = {
- prop:42,
- toJSON: function () {return new Number(42)}
- };
+var obj = {
+ prop: 42,
+ toJSON: function() {
+ return new Number(42)
+ }
+};
assert.sameValue(JSON.stringify([obj]), '[42]', 'JSON.stringify([obj])');
diff --git a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-3.js b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-3.js
index 9a192f26c..6f4eaccdf 100644
--- a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-3.js
+++ b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-3.js
@@ -8,9 +8,11 @@ description: >
toJSON call to literal Boolean values.
---*/
- var obj = {
- prop:42,
- toJSON: function () {return new Boolean(true)}
- };
+var obj = {
+ prop: 42,
+ toJSON: function() {
+ return new Boolean(true)
+ }
+};
assert.sameValue(JSON.stringify([obj]), '[true]', 'JSON.stringify([obj])');
diff --git a/test/built-ins/JSON/stringify/15.12.3_2-3-a-1.js b/test/built-ins/JSON/stringify/15.12.3_2-3-a-1.js
index 853acb01d..aefb5d77c 100644
--- a/test/built-ins/JSON/stringify/15.12.3_2-3-a-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3_2-3-a-1.js
@@ -8,4 +8,6 @@ description: >
replacer functions to literal strings.
---*/
-assert.sameValue(JSON.stringify([42], function(k,v) {return v===42? new String('fortytwo'):v}), '["fortytwo"]', 'JSON.stringify([42], function(k,v) {return v===42? new String("fortytwo"):v})');
+assert.sameValue(JSON.stringify([42], function(k, v) {
+ return v === 42 ? new String('fortytwo') : v
+}), '["fortytwo"]', 'JSON.stringify([42], function(k,v) {return v===42? new String("fortytwo"):v})');
diff --git a/test/built-ins/JSON/stringify/15.12.3_2-3-a-2.js b/test/built-ins/JSON/stringify/15.12.3_2-3-a-2.js
index 7888996d7..87b0df0ac 100644
--- a/test/built-ins/JSON/stringify/15.12.3_2-3-a-2.js
+++ b/test/built-ins/JSON/stringify/15.12.3_2-3-a-2.js
@@ -8,4 +8,6 @@ description: >
replacer functions to literal numbers.
---*/
-assert.sameValue(JSON.stringify([42], function(k,v) {return v===42? new Number(84):v}), '[84]', 'JSON.stringify([42], function(k,v) {return v===42? new Number(84):v})');
+assert.sameValue(JSON.stringify([42], function(k, v) {
+ return v === 42 ? new Number(84) : v
+}), '[84]', 'JSON.stringify([42], function(k,v) {return v===42? new Number(84):v})');
diff --git a/test/built-ins/JSON/stringify/15.12.3_2-3-a-3.js b/test/built-ins/JSON/stringify/15.12.3_2-3-a-3.js
index adb582fe2..a26ae4b2f 100644
--- a/test/built-ins/JSON/stringify/15.12.3_2-3-a-3.js
+++ b/test/built-ins/JSON/stringify/15.12.3_2-3-a-3.js
@@ -8,4 +8,6 @@ description: >
replacer functions to literal numbers.
---*/
-assert.sameValue(JSON.stringify([42], function(k,v) {return v===42? new Boolean(false):v}), '[false]', 'JSON.stringify([42], function(k,v) {return v===42? new Boolean(false):v})');
+assert.sameValue(JSON.stringify([42], function(k, v) {
+ return v === 42 ? new Boolean(false) : v
+}), '[false]', 'JSON.stringify([42], function(k,v) {return v===42? new Boolean(false):v})');
diff --git a/test/built-ins/JSON/stringify/15.12.3_4-1-1.js b/test/built-ins/JSON/stringify/15.12.3_4-1-1.js
index f9b5f68ab..40b42f574 100644
--- a/test/built-ins/JSON/stringify/15.12.3_4-1-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3_4-1-1.js
@@ -6,9 +6,9 @@ es5id: 15.12.3_4-1-1
description: JSON.stringify a circular object throws a error
---*/
- var obj = {};
- obj.prop = obj;
+var obj = {};
+obj.prop = obj;
assert.throws(TypeError, function() {
- JSON.stringify(obj);
+ JSON.stringify(obj);
});
diff --git a/test/built-ins/JSON/stringify/15.12.3_4-1-2.js b/test/built-ins/JSON/stringify/15.12.3_4-1-2.js
index a79907bd0..299853c91 100644
--- a/test/built-ins/JSON/stringify/15.12.3_4-1-2.js
+++ b/test/built-ins/JSON/stringify/15.12.3_4-1-2.js
@@ -6,9 +6,9 @@ es5id: 15.12.3_4-1-2
description: JSON.stringify a circular object throws a TypeError
---*/
- var obj = {};
- obj.prop = obj;
+var obj = {};
+obj.prop = obj;
assert.throws(TypeError, function() {
- JSON.stringify(obj);
+ JSON.stringify(obj);
});
diff --git a/test/built-ins/JSON/stringify/15.12.3_4-1-3.js b/test/built-ins/JSON/stringify/15.12.3_4-1-3.js
index 30d0a4339..feb1a6c9c 100644
--- a/test/built-ins/JSON/stringify/15.12.3_4-1-3.js
+++ b/test/built-ins/JSON/stringify/15.12.3_4-1-3.js
@@ -6,9 +6,13 @@ es5id: 15.12.3_4-1-3
description: JSON.stringify a indirectly circular object throws a error
---*/
- var obj = {p1: {p2: {}}};
- obj.p1.p2.prop = obj;
+var obj = {
+ p1: {
+ p2: {}
+ }
+};
+obj.p1.p2.prop = obj;
assert.throws(TypeError, function() {
- JSON.stringify(obj);
+ JSON.stringify(obj);
});
diff --git a/test/built-ins/JSON/stringify/bigint-order.js b/test/built-ins/JSON/stringify/bigint-order.js
index 7dc1d9672..a6de33687 100644
--- a/test/built-ins/JSON/stringify/bigint-order.js
+++ b/test/built-ins/JSON/stringify/bigint-order.js
@@ -27,16 +27,19 @@ let step;
function replacer(x, k, v)
{
assert.sameValue(step++, 1);
- assert.sameValue(v, 1n);
+ assert.sameValue(v, 1 n);
return x;
}
-BigInt.prototype.toJSON = function () { assert.sameValue(step++, 0); return 1n; };
+BigInt.prototype.toJSON = function() {
+ assert.sameValue(step++, 0);
+ return 1 n;
+};
step = 0;
-assert.throws(TypeError, () => JSON.stringify(0n, (k, v) => replacer(2n, k, v)));
+assert.throws(TypeError, () => JSON.stringify(0 n, (k, v) => replacer(2 n, k, v)));
assert.sameValue(step, 2);
step = 0;
-assert.throws(TypeError, () => JSON.stringify(0n, (k, v) => replacer(Object(2n), k, v)));
+assert.throws(TypeError, () => JSON.stringify(0 n, (k, v) => replacer(Object(2 n), k, v)));
assert.sameValue(step, 2);
diff --git a/test/built-ins/JSON/stringify/bigint-replacer.js b/test/built-ins/JSON/stringify/bigint-replacer.js
index 03878ec5c..72e19c149 100644
--- a/test/built-ins/JSON/stringify/bigint-replacer.js
+++ b/test/built-ins/JSON/stringify/bigint-replacer.js
@@ -14,11 +14,13 @@ features: [BigInt]
function replacer(k, v)
{
- if (typeof v === "bigint")
- return "bigint";
- else
- return v;
+ if (typeof v === "bigint")
+ return "bigint";
+ else
+ return v;
}
assert.sameValue(JSON.stringify(0n, replacer), '"bigint"');
-assert.sameValue(JSON.stringify({x: 0n}, replacer), '{"x":"bigint"}');
+assert.sameValue(JSON.stringify({
+ x: 0n
+}, replacer), '{"x":"bigint"}');
diff --git a/test/built-ins/JSON/stringify/bigint-tojson.js b/test/built-ins/JSON/stringify/bigint-tojson.js
index bf4f531f2..c314d74bd 100644
--- a/test/built-ins/JSON/stringify/bigint-tojson.js
+++ b/test/built-ins/JSON/stringify/bigint-tojson.js
@@ -14,5 +14,7 @@ info: |
features: [BigInt]
---*/
-BigInt.prototype.toJSON = function () { return this.toString(); };
+BigInt.prototype.toJSON = function() {
+ return this.toString();
+};
assert.sameValue(JSON.stringify(0n), '"0"');
diff --git a/test/built-ins/JSON/stringify/bigint.js b/test/built-ins/JSON/stringify/bigint.js
index 80d17799e..bba26f4dc 100644
--- a/test/built-ins/JSON/stringify/bigint.js
+++ b/test/built-ins/JSON/stringify/bigint.js
@@ -9,4 +9,6 @@ features: [BigInt]
assert.throws(TypeError, () => JSON.stringify(0n));
assert.throws(TypeError, () => JSON.stringify(Object(0n)));
-assert.throws(TypeError, () => JSON.stringify({x: 0n}));
+assert.throws(TypeError, () => JSON.stringify({
+ x: 0n
+}));
diff --git a/test/built-ins/JSON/stringify/replacer-proxy.js b/test/built-ins/JSON/stringify/replacer-proxy.js
index 9ac8d5bb5..8ec585a98 100644
--- a/test/built-ins/JSON/stringify/replacer-proxy.js
+++ b/test/built-ins/JSON/stringify/replacer-proxy.js
@@ -36,10 +36,14 @@ var arrayProxyProxy = new Proxy(arrayProxy, {});
assert.sameValue(JSON.stringify(objectProxy), '{}');
assert.sameValue(JSON.stringify(arrayProxy), '[]', 'proxy for an array');
assert.sameValue(
- JSON.stringify([[arrayProxy]]), '[[[]]]', 'proxy for an array (nested)'
+ JSON.stringify([
+ [arrayProxy]
+ ]), '[[[]]]', 'proxy for an array (nested)'
);
assert.sameValue(
- JSON.stringify([[arrayProxyProxy]]),
+ JSON.stringify([
+ [arrayProxyProxy]
+ ]),
'[[[]]]',
'proxy for a proxy for an array (nested)'
);
diff --git a/test/built-ins/JSON/stringify/value-proxy-revoked.js b/test/built-ins/JSON/stringify/value-proxy-revoked.js
index 24b34f5dc..81cd50d98 100644
--- a/test/built-ins/JSON/stringify/value-proxy-revoked.js
+++ b/test/built-ins/JSON/stringify/value-proxy-revoked.js
@@ -38,5 +38,9 @@ assert.throws(TypeError, function() {
}, 'top-level value');
assert.throws(TypeError, function() {
- JSON.stringify([[[handle.proxy]]]);
+ JSON.stringify([
+ [
+ [handle.proxy]
+ ]
+ ]);
}, 'nested value');
diff --git a/test/built-ins/Map/iterable-calls-set.js b/test/built-ins/Map/iterable-calls-set.js
index 989cab985..3b512eb4b 100644
--- a/test/built-ins/Map/iterable-calls-set.js
+++ b/test/built-ins/Map/iterable-calls-set.js
@@ -18,7 +18,10 @@ includes: [compareArray.js]
var mapSet = Map.prototype.set;
var counter = 0;
-var iterable = [["foo", 1], ["bar", 2]];
+var iterable = [
+ ["foo", 1],
+ ["bar", 2]
+];
var results = [];
var _this = [];
diff --git a/test/built-ins/Map/iterator-close-after-set-failure.js b/test/built-ins/Map/iterator-close-after-set-failure.js
index 144d74373..321c0a729 100644
--- a/test/built-ins/Map/iterator-close-after-set-failure.js
+++ b/test/built-ins/Map/iterator-close-after-set-failure.js
@@ -20,14 +20,19 @@ var iterable = {};
iterable[Symbol.iterator] = function() {
return {
next: function() {
- return { value: [], done: false };
+ return {
+ value: [],
+ done: false
+ };
},
return: function() {
count += 1;
}
};
};
-Map.prototype.set = function() { throw new Test262Error(); }
+Map.prototype.set = function() {
+ throw new Test262Error();
+}
assert.throws(Test262Error, function() {
new Map(iterable);
diff --git a/test/built-ins/Map/iterator-items-are-not-object-close-iterator.js b/test/built-ins/Map/iterator-items-are-not-object-close-iterator.js
index 4e8e10a6c..8c9bc4fe8 100644
--- a/test/built-ins/Map/iterator-items-are-not-object-close-iterator.js
+++ b/test/built-ins/Map/iterator-items-are-not-object-close-iterator.js
@@ -27,7 +27,10 @@ var iterable = {};
iterable[Symbol.iterator] = function() {
return {
next: function() {
- return { value: nextItem, done: false };
+ return {
+ value: nextItem,
+ done: false
+ };
},
return: function() {
count += 1;
diff --git a/test/built-ins/Map/iterator-items-are-not-object.js b/test/built-ins/Map/iterator-items-are-not-object.js
index 18b2b6df2..aceebcef7 100644
--- a/test/built-ins/Map/iterator-items-are-not-object.js
+++ b/test/built-ins/Map/iterator-items-are-not-object.js
@@ -44,5 +44,7 @@ assert.throws(TypeError, function() {
});
assert.throws(TypeError, function() {
- new Map([['a', 1], 2]);
+ new Map([
+ ['a', 1], 2
+ ]);
});
diff --git a/test/built-ins/Map/map-iterable-throws-when-set-is-not-callable.js b/test/built-ins/Map/map-iterable-throws-when-set-is-not-callable.js
index d4ec50d3f..89fc9ce3c 100644
--- a/test/built-ins/Map/map-iterable-throws-when-set-is-not-callable.js
+++ b/test/built-ins/Map/map-iterable-throws-when-set-is-not-callable.js
@@ -23,5 +23,8 @@ info: |
Map.prototype.set = null;
assert.throws(TypeError, function() {
- new Map([[1,1], [2,2]]);
+ new Map([
+ [1, 1],
+ [2, 2]
+ ]);
});
diff --git a/test/built-ins/Map/map-iterable.js b/test/built-ins/Map/map-iterable.js
index 3aab35f3d..e46330ead 100644
--- a/test/built-ins/Map/map-iterable.js
+++ b/test/built-ins/Map/map-iterable.js
@@ -17,8 +17,8 @@ info: |
---*/
var m = new Map([
- [ "attr", 1 ],
- [ "foo", 2 ]
+ ["attr", 1],
+ ["foo", 2]
]);
assert.sameValue(m.size, 2, 'The value of `m.size` is `2`');
diff --git a/test/built-ins/Map/newtarget.js b/test/built-ins/Map/newtarget.js
index a9589a4cc..0206d23b1 100644
--- a/test/built-ins/Map/newtarget.js
+++ b/test/built-ins/Map/newtarget.js
@@ -25,7 +25,10 @@ assert.sameValue(
"`Object.getPrototypeOf(m1)` returns `Map.prototype`"
);
-var m2 = new Map([[1, 1], [2, 2]]);
+var m2 = new Map([
+ [1, 1],
+ [2, 2]
+]);
assert.sameValue(
Object.getPrototypeOf(m2),
diff --git a/test/built-ins/Map/prototype/clear/clear-map.js b/test/built-ins/Map/prototype/clear/clear-map.js
index b6580d0a4..e5341fbdd 100644
--- a/test/built-ins/Map/prototype/clear/clear-map.js
+++ b/test/built-ins/Map/prototype/clear/clear-map.js
@@ -17,11 +17,14 @@ info: |
features: [Symbol]
---*/
-var m1 = new Map([['foo', 'bar'], [1, 1]]);
+var m1 = new Map([
+ ['foo', 'bar'],
+ [1, 1]
+]);
var m2 = new Map();
var m3 = new Map();
m2.set('foo', 'bar');
-m2.set(1,1);
+m2.set(1, 1);
m2.set(Symbol('a'), Symbol('a'));
m1.clear();
diff --git a/test/built-ins/Map/prototype/clear/clear.js b/test/built-ins/Map/prototype/clear/clear.js
index 59f28de2e..80fe0ac78 100644
--- a/test/built-ins/Map/prototype/clear/clear.js
+++ b/test/built-ins/Map/prototype/clear/clear.js
@@ -11,9 +11,9 @@ includes: [propertyHelper.js]
---*/
assert.sameValue(
- typeof Map.prototype.clear,
- 'function',
- 'typeof Map.prototype.clear is "function"'
+ typeof Map.prototype.clear,
+ 'function',
+ 'typeof Map.prototype.clear is "function"'
);
verifyNotEnumerable(Map.prototype, 'clear');
diff --git a/test/built-ins/Map/prototype/clear/map-data-list-is-preserved.js b/test/built-ins/Map/prototype/clear/map-data-list-is-preserved.js
index f49aefda0..e83b87d5c 100644
--- a/test/built-ins/Map/prototype/clear/map-data-list-is-preserved.js
+++ b/test/built-ins/Map/prototype/clear/map-data-list-is-preserved.js
@@ -20,7 +20,11 @@ info: |
6. Return undefined.
---*/
-var m = new Map([[1,1], [2,2], [3,3]]);
+var m = new Map([
+ [1, 1],
+ [2, 2],
+ [3, 3]
+]);
var e = m.entries();
e.next();
diff --git a/test/built-ins/Map/prototype/clear/returns-undefined.js b/test/built-ins/Map/prototype/clear/returns-undefined.js
index 1e1d662aa..ce4cfcff2 100644
--- a/test/built-ins/Map/prototype/clear/returns-undefined.js
+++ b/test/built-ins/Map/prototype/clear/returns-undefined.js
@@ -16,7 +16,10 @@ info: |
6. Return undefined.
---*/
-var m1 = new Map([['foo', 'bar'], [1, 1]]);
+var m1 = new Map([
+ ['foo', 'bar'],
+ [1, 1]
+]);
assert.sameValue(m1.clear(), undefined, 'clears a map and returns undefined');
assert.sameValue(m1.clear(), undefined, 'returns undefined on an empty map');
diff --git a/test/built-ins/Map/prototype/delete/delete.js b/test/built-ins/Map/prototype/delete/delete.js
index 4bf8688ef..6d01496fe 100644
--- a/test/built-ins/Map/prototype/delete/delete.js
+++ b/test/built-ins/Map/prototype/delete/delete.js
@@ -11,9 +11,9 @@ includes: [propertyHelper.js]
---*/
assert.sameValue(
- typeof Map.prototype.delete,
- 'function',
- 'typeof Map.prototype.delete is "function"'
+ typeof Map.prototype.delete,
+ 'function',
+ 'typeof Map.prototype.delete is "function"'
);
verifyNotEnumerable(Map.prototype, 'delete');
diff --git a/test/built-ins/Map/prototype/delete/does-not-break-iterators.js b/test/built-ins/Map/prototype/delete/does-not-break-iterators.js
index 895a7ecef..1a788fdc0 100644
--- a/test/built-ins/Map/prototype/delete/does-not-break-iterators.js
+++ b/test/built-ins/Map/prototype/delete/does-not-break-iterators.js
@@ -16,7 +16,11 @@ info: |
...
---*/
-var m = new Map([['a',1], ['b', 2], ['c', 3]]);
+var m = new Map([
+ ['a', 1],
+ ['b', 2],
+ ['c', 3]
+]);
var e = m.entries();
e.next();
diff --git a/test/built-ins/Map/prototype/delete/returns-false.js b/test/built-ins/Map/prototype/delete/returns-false.js
index 2f2300d35..d1db1c97c 100644
--- a/test/built-ins/Map/prototype/delete/returns-false.js
+++ b/test/built-ins/Map/prototype/delete/returns-false.js
@@ -15,7 +15,10 @@ info: |
6. Return false.
---*/
-var m = new Map([['a',1], ['b', 2]]);
+var m = new Map([
+ ['a', 1],
+ ['b', 2]
+]);
assert.sameValue(m.delete('not-in-the-map'), false);
diff --git a/test/built-ins/Map/prototype/delete/returns-true-for-deleted-entry.js b/test/built-ins/Map/prototype/delete/returns-true-for-deleted-entry.js
index 02ad4b12d..1f4ccb52e 100644
--- a/test/built-ins/Map/prototype/delete/returns-true-for-deleted-entry.js
+++ b/test/built-ins/Map/prototype/delete/returns-true-for-deleted-entry.js
@@ -16,7 +16,10 @@ info: |
...
---*/
-var m = new Map([['a',1], ['b', 2]]);
+var m = new Map([
+ ['a', 1],
+ ['b', 2]
+]);
var result = m.delete('a');
diff --git a/test/built-ins/Map/prototype/entries/returns-iterator.js b/test/built-ins/Map/prototype/entries/returns-iterator.js
index b2a8ef5c4..96626b244 100644
--- a/test/built-ins/Map/prototype/entries/returns-iterator.js
+++ b/test/built-ins/Map/prototype/entries/returns-iterator.js
@@ -17,9 +17,9 @@ info: |
---*/
var map = new Map();
-map.set('a',1);
-map.set('b',2);
-map.set('c',3);
+map.set('a', 1);
+map.set('b', 2);
+map.set('c', 3);
var iterator = map.entries();
var result;
diff --git a/test/built-ins/Map/prototype/forEach/callback-result-is-abrupt.js b/test/built-ins/Map/prototype/forEach/callback-result-is-abrupt.js
index d61bb4e2d..f377e9c6e 100644
--- a/test/built-ins/Map/prototype/forEach/callback-result-is-abrupt.js
+++ b/test/built-ins/Map/prototype/forEach/callback-result-is-abrupt.js
@@ -19,7 +19,9 @@ info: |
flags: [noStrict]
---*/
-var map = new Map([[0, 0]]);
+var map = new Map([
+ [0, 0]
+]);
assert.throws(Test262Error, function() {
map.forEach(function() {
diff --git a/test/built-ins/Map/prototype/get/returns-undefined.js b/test/built-ins/Map/prototype/get/returns-undefined.js
index 42744d8c6..84f511184 100644
--- a/test/built-ins/Map/prototype/get/returns-undefined.js
+++ b/test/built-ins/Map/prototype/get/returns-undefined.js
@@ -20,7 +20,7 @@ var map = new Map();
assert.sameValue(
map.get('item'), undefined,
- 'returns undefined if key is not on the map'
+ 'returns undefined if key is not on the map'
);
map.set('item', 1);
diff --git a/test/built-ins/Map/prototype/has/return-false-different-key-types.js b/test/built-ins/Map/prototype/has/return-false-different-key-types.js
index 0be565021..86c0897c0 100644
--- a/test/built-ins/Map/prototype/has/return-false-different-key-types.js
+++ b/test/built-ins/Map/prototype/has/return-false-different-key-types.js
@@ -18,7 +18,7 @@ features: [Symbol]
var map = new Map();
assert.sameValue(map.has('str'), false);
-assert.sameValue(map.has(1), false);
+assert.sameValue(map.has(1), false);
assert.sameValue(map.has(NaN), false);
assert.sameValue(map.has(true), false);
assert.sameValue(map.has(false), false);
diff --git a/test/built-ins/Map/prototype/has/return-true-different-key-types.js b/test/built-ins/Map/prototype/has/return-true-different-key-types.js
index 591f45109..bcdaa0418 100644
--- a/test/built-ins/Map/prototype/has/return-true-different-key-types.js
+++ b/test/built-ins/Map/prototype/has/return-true-different-key-types.js
@@ -33,7 +33,7 @@ map.set(null, undefined);
map.set(undefined, undefined);
assert.sameValue(map.has('str'), true);
-assert.sameValue(map.has(1), true);
+assert.sameValue(map.has(1), true);
assert.sameValue(map.has(NaN), true);
assert.sameValue(map.has(true), true);
assert.sameValue(map.has(false), true);
diff --git a/test/built-ins/Map/prototype/set/append-new-values-return-map.js b/test/built-ins/Map/prototype/set/append-new-values-return-map.js
index 8e5d43069..5d84eb8a2 100644
--- a/test/built-ins/Map/prototype/set/append-new-values-return-map.js
+++ b/test/built-ins/Map/prototype/set/append-new-values-return-map.js
@@ -20,7 +20,7 @@ var result = map.set(1, 1);
assert.sameValue(result, map);
-result = map.set(1,1).set(2,2).set(3,3);
+result = map.set(1, 1).set(2, 2).set(3, 3);
assert.sameValue(result, map, 'Map.prototype.set is chainable');
diff --git a/test/built-ins/Map/prototype/set/append-new-values.js b/test/built-ins/Map/prototype/set/append-new-values.js
index 3cc9f6f62..93b99dcd9 100644
--- a/test/built-ins/Map/prototype/set/append-new-values.js
+++ b/test/built-ins/Map/prototype/set/append-new-values.js
@@ -17,7 +17,11 @@ features: [Symbol]
---*/
var s = Symbol(2);
-var map = new Map([[4, 4], ['foo3', 3], [s, 2]]);
+var map = new Map([
+ [4, 4],
+ ['foo3', 3],
+ [s, 2]
+]);
map.set(null, 42);
map.set(1, 'valid');
diff --git a/test/built-ins/Map/prototype/set/replaces-a-value-normalizes-zero-key.js b/test/built-ins/Map/prototype/set/replaces-a-value-normalizes-zero-key.js
index 991c8a277..427e7eb2c 100644
--- a/test/built-ins/Map/prototype/set/replaces-a-value-normalizes-zero-key.js
+++ b/test/built-ins/Map/prototype/set/replaces-a-value-normalizes-zero-key.js
@@ -16,11 +16,15 @@ info: |
...
---*/
-var map = new Map([[+0, 1]]);
+var map = new Map([
+ [+0, 1]
+]);
map.set(-0, 42);
assert.sameValue(map.get(+0), 42, 'zero key is normalized in SameValueZero');
-map = new Map([[-0, 1]]);
+map = new Map([
+ [-0, 1]
+]);
map.set(+0, 42);
assert.sameValue(map.get(-0), 42, 'zero key is normalized in SameValueZero');
diff --git a/test/built-ins/Map/prototype/set/replaces-a-value-returns-map.js b/test/built-ins/Map/prototype/set/replaces-a-value-returns-map.js
index 447a8c4d9..f211e63a5 100644
--- a/test/built-ins/Map/prototype/set/replaces-a-value-returns-map.js
+++ b/test/built-ins/Map/prototype/set/replaces-a-value-returns-map.js
@@ -17,7 +17,9 @@ info: |
...
---*/
-var map = new Map([['item', 0]]);
+var map = new Map([
+ ['item', 0]
+]);
var map2 = new Map();
var x = map.set('item', 42);
diff --git a/test/built-ins/Map/prototype/set/replaces-a-value.js b/test/built-ins/Map/prototype/set/replaces-a-value.js
index 35b339dc6..21f48ea88 100644
--- a/test/built-ins/Map/prototype/set/replaces-a-value.js
+++ b/test/built-ins/Map/prototype/set/replaces-a-value.js
@@ -16,7 +16,9 @@ info: |
...
---*/
-var m = new Map([['item', 1]]);
+var m = new Map([
+ ['item', 1]
+]);
m.set('item', 42);
assert.sameValue(m.get('item'), 42);
diff --git a/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots-map.js b/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots-map.js
index 9d80385e5..68782caab 100644
--- a/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots-map.js
+++ b/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots-map.js
@@ -16,7 +16,10 @@ info: |
features: [Symbol.iterator]
---*/
-var map = new Map([[1, 11], [2, 22]]);
+var map = new Map([
+ [1, 11],
+ [2, 22]
+]);
var iterator = map[Symbol.iterator]();
assert.throws(TypeError, function() {
diff --git a/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots.js b/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots.js
index 93e0c4cef..0190d8c35 100644
--- a/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots.js
+++ b/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots.js
@@ -16,7 +16,10 @@ info: |
features: [Symbol.iterator]
---*/
-var map = new Map([[1, 11], [2, 22]]);
+var map = new Map([
+ [1, 11],
+ [2, 22]
+]);
var iterator = map[Symbol.iterator]();
assert.throws(TypeError, function() {
diff --git a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-entries.js b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-entries.js
index 968f79a34..56d0a4cd4 100644
--- a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-entries.js
+++ b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-entries.js
@@ -17,7 +17,10 @@ features:
- Symbol.iterator
---*/
-var map = new Map([[1, 11], [2, 22]]);
+var map = new Map([
+ [1, 11],
+ [2, 22]
+]);
var iterator = map.entries();
assert.throws(TypeError, function() {
diff --git a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-keys.js b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-keys.js
index 06ac501d2..875ba5f36 100644
--- a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-keys.js
+++ b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-keys.js
@@ -17,7 +17,10 @@ features:
- Symbol.iterator
---*/
-var map = new Map([[1, 11], [2, 22]]);
+var map = new Map([
+ [1, 11],
+ [2, 22]
+]);
var iterator = map.keys();
assert.throws(TypeError, function() {
diff --git a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-prototype-iterator.js b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-prototype-iterator.js
index dccb08c52..912f5f15e 100644
--- a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-prototype-iterator.js
+++ b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-prototype-iterator.js
@@ -17,7 +17,10 @@ features:
- Symbol.iterator
---*/
-var map = new Map([[1, 11], [2, 22]]);
+var map = new Map([
+ [1, 11],
+ [2, 22]
+]);
var iterator = map[Symbol.iterator]();
assert.throws(TypeError, function() {
diff --git a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-values.js b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-values.js
index 55a61d9a3..79822a393 100644
--- a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-values.js
+++ b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-values.js
@@ -17,7 +17,10 @@ features:
- Symbol.iterator
---*/
-var map = new Map([[1, 11], [2, 22]]);
+var map = new Map([
+ [1, 11],
+ [2, 22]
+]);
var iterator = map.values();
assert.throws(TypeError, function() {
diff --git a/test/built-ins/Math/abs/S15.8.2.1_A3.js b/test/built-ins/Math/abs/S15.8.2.1_A3.js
index 4584dc9c9..da4ec1890 100644
--- a/test/built-ins/Math/abs/S15.8.2.1_A3.js
+++ b/test/built-ins/Math/abs/S15.8.2.1_A3.js
@@ -11,5 +11,5 @@ description: Checking if Math.abs(-Infinity) equals to +Infinity
var x = -Infinity;
if (Math.abs(x) !== +Infinity)
{
- $ERROR("#1: 'var x=-Infinity; Math.abs(x) !== +Infinity'");
+ $ERROR("#1: 'var x=-Infinity; Math.abs(x) !== +Infinity'");
}
diff --git a/test/built-ins/Math/acosh/nan-returns.js b/test/built-ins/Math/acosh/nan-returns.js
index 4917b4905..b58e45dd5 100644
--- a/test/built-ins/Math/acosh/nan-returns.js
+++ b/test/built-ins/Math/acosh/nan-returns.js
@@ -1,18 +1,18 @@
-// Copyright 2015 Microsoft Corporation. All rights reserved.
-// This code is governed by the license found in the LICENSE file.
-
-/*---
-description: Math.acosh with special values
-es6id: 20.2.2.3
-info: |
- Math.acosh ( x )
-
- - If x is NaN, the result is NaN.
- - If x is less than 1, the result is NaN.
----*/
-
-assert.sameValue(Math.acosh(NaN), NaN, "NaN");
-assert.sameValue(Math.acosh(0.999999), NaN, "0.999999");
-assert.sameValue(Math.acosh(0), NaN, "0");
-assert.sameValue(Math.acosh(-1), NaN, "-1");
-assert.sameValue(Math.acosh(-Infinity), NaN, "-Infinity");
+// Copyright 2015 Microsoft Corporation. All rights reserved.
+// This code is governed by the license found in the LICENSE file.
+
+/*---
+description: Math.acosh with special values
+es6id: 20.2.2.3
+info: |
+ Math.acosh ( x )
+
+ - If x is NaN, the result is NaN.
+ - If x is less than 1, the result is NaN.
+---*/
+
+assert.sameValue(Math.acosh(NaN), NaN, "NaN");
+assert.sameValue(Math.acosh(0.999999), NaN, "0.999999");
+assert.sameValue(Math.acosh(0), NaN, "0");
+assert.sameValue(Math.acosh(-1), NaN, "-1");
+assert.sameValue(Math.acosh(-Infinity), NaN, "-Infinity");
diff --git a/test/built-ins/Math/asinh/asinh-specialVals.js b/test/built-ins/Math/asinh/asinh-specialVals.js
index 0c2fda965..33d88207c 100644
--- a/test/built-ins/Math/asinh/asinh-specialVals.js
+++ b/test/built-ins/Math/asinh/asinh-specialVals.js
@@ -1,18 +1,18 @@
-// Copyright 2015 Microsoft Corporation. All rights reserved.
-// This code is governed by the license found in the LICENSE file.
-
-/*---
-description: Math.asinh with special values
-es6id: 20.2.2.5
----*/
-
-assert.sameValue(Math.asinh(NaN), Number.NaN,
- "Math.asinh produces incorrect output for NaN");
-assert.sameValue(Math.asinh(Number.NEGATIVE_INFINITY), Number.NEGATIVE_INFINITY,
- "Math.asinh should produce negative infinity for Number.NEGATIVE_INFINITY");
-assert.sameValue(Math.asinh(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY,
- "Math.asinh should produce positive infinity for Number.POSITIVE_INFINITY");
-assert.sameValue(1 / Math.asinh(-0), Number.NEGATIVE_INFINITY,
- "Math.asinh should produce -0 for -0");
-assert.sameValue(1 / Math.asinh(0), Number.POSITIVE_INFINITY,
- "Math.asinh should produce +0 for +0");
+// Copyright 2015 Microsoft Corporation. All rights reserved.
+// This code is governed by the license found in the LICENSE file.
+
+/*---
+description: Math.asinh with special values
+es6id: 20.2.2.5
+---*/
+
+assert.sameValue(Math.asinh(NaN), Number.NaN,
+ "Math.asinh produces incorrect output for NaN");
+assert.sameValue(Math.asinh(Number.NEGATIVE_INFINITY), Number.NEGATIVE_INFINITY,
+ "Math.asinh should produce negative infinity for Number.NEGATIVE_INFINITY");
+assert.sameValue(Math.asinh(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY,
+ "Math.asinh should produce positive infinity for Number.POSITIVE_INFINITY");
+assert.sameValue(1 / Math.asinh(-0), Number.NEGATIVE_INFINITY,
+ "Math.asinh should produce -0 for -0");
+assert.sameValue(1 / Math.asinh(0), Number.POSITIVE_INFINITY,
+ "Math.asinh should produce +0 for +0");
diff --git a/test/built-ins/Math/atan2/S15.8.2.5_A1.js b/test/built-ins/Math/atan2/S15.8.2.5_A1.js
index 0b1d92a2a..fafadc81b 100644
--- a/test/built-ins/Math/atan2/S15.8.2.5_A1.js
+++ b/test/built-ins/Math/atan2/S15.8.2.5_A1.js
@@ -24,14 +24,14 @@ var valnum = 7;
var args = new Array();
for (var i = 0; i < 2; i++)
{
- args[i] = NaN;
- for (var j = 0; j < valnum; j++)
- {
- args[1-i] = vals[j];
- assert.sameValue(
- Math.atan2(args[0], args[1]),
- NaN,
- "(" + args[0] + ", " + args[1] + ")"
- );
- }
+ args[i] = NaN;
+ for (var j = 0; j < valnum; j++)
+ {
+ args[1 - i] = vals[j];
+ assert.sameValue(
+ Math.atan2(args[0], args[1]),
+ NaN,
+ "(" + args[0] + ", " + args[1] + ")"
+ );
+ }
}
diff --git a/test/built-ins/Math/atan2/S15.8.2.5_A16.js b/test/built-ins/Math/atan2/S15.8.2.5_A16.js
index 19f2509a1..5c0ea9823 100644
--- a/test/built-ins/Math/atan2/S15.8.2.5_A16.js
+++ b/test/built-ins/Math/atan2/S15.8.2.5_A16.js
@@ -20,8 +20,7 @@ var ynum = 3;
for (var i = 0; i < ynum; i++)
{
assert.sameValue(
- Math.atan2(y[i], x),
- -0,
+ Math.atan2(y[i], x), -0,
"(" + y[i] + ", Infinity)"
);
}
diff --git a/test/built-ins/Math/atan2/S15.8.2.5_A4.js b/test/built-ins/Math/atan2/S15.8.2.5_A4.js
index ef663e63f..5472b973f 100644
--- a/test/built-ins/Math/atan2/S15.8.2.5_A4.js
+++ b/test/built-ins/Math/atan2/S15.8.2.5_A4.js
@@ -12,7 +12,7 @@ var y = +0;
var x = new Array();
x[0] = 0.000000000000001;
x[2] = +Infinity;
-x[1] = 1;
+x[1] = 1;
var xnum = 3;
for (var i = 0; i < xnum; i++)
diff --git a/test/built-ins/Math/atan2/S15.8.2.5_A8.js b/test/built-ins/Math/atan2/S15.8.2.5_A8.js
index 64dc40028..de7ff4e1e 100644
--- a/test/built-ins/Math/atan2/S15.8.2.5_A8.js
+++ b/test/built-ins/Math/atan2/S15.8.2.5_A8.js
@@ -12,14 +12,13 @@ var y = -0;
var x = new Array();
x[0] = 0.000000000000001;
x[2] = +Infinity;
-x[1] = 1;
+x[1] = 1;
var xnum = 3;
for (var i = 0; i < xnum; i++)
{
assert.sameValue(
- Math.atan2(y, x[i]),
- -0,
+ Math.atan2(y, x[i]), -0,
"(-0, " + x[i] + ")"
);
}
diff --git a/test/built-ins/Math/atanh/atanh-specialVals.js b/test/built-ins/Math/atanh/atanh-specialVals.js
index b144e4bb5..9148c1bb4 100644
--- a/test/built-ins/Math/atanh/atanh-specialVals.js
+++ b/test/built-ins/Math/atanh/atanh-specialVals.js
@@ -1,31 +1,31 @@
-// Copyright 2015 Microsoft Corporation. All rights reserved.
-// This code is governed by the license found in the LICENSE file.
-
-/*---
-description: Math.atanh with special values
-es6id: 20.2.2.7
----*/
-
-assert.sameValue(Math.atanh(-1.9), Number.NaN,
- "Math.atanh produces incorrect output for -1.9");
-assert.sameValue(Math.atanh(NaN), Number.NaN,
- "Math.atanh produces incorrect output for NaN");
-assert.sameValue(Math.atanh(-10), Number.NaN,
- "Math.atanh produces incorrect output for -10");
-assert.sameValue(Math.atanh(-Infinity), Number.NaN,
- "Math.atanh produces incorrect output for -Infinity");
-assert.sameValue(Math.atanh(1.9), Number.NaN,
- "Math.atanh produces incorrect output for 1.9");
-assert.sameValue(Math.atanh(10), Number.NaN,
- "Math.atanh produces incorrect output for 10");
-assert.sameValue(Math.atanh(Number.POSITIVE_INFINITY), Number.NaN,
- "Math.atanh produces incorrect output for Number.POSITIVE_INFINITY");
-
-assert.sameValue(Math.atanh(-1), Number.NEGATIVE_INFINITY,
- "Math.atanh should produce negative infinity for -1");
-assert.sameValue(Math.atanh(+1), Number.POSITIVE_INFINITY,
- "Math.atanh should produce positive infinity for +1");
-assert.sameValue(1/Math.atanh(-0), Number.NEGATIVE_INFINITY,
- "Math.atanh should produce -0 for -0");
-assert.sameValue(1/Math.atanh(0), Number.POSITIVE_INFINITY,
- "Math.atanh should produce +0 for +0");
+// Copyright 2015 Microsoft Corporation. All rights reserved.
+// This code is governed by the license found in the LICENSE file.
+
+/*---
+description: Math.atanh with special values
+es6id: 20.2.2.7
+---*/
+
+assert.sameValue(Math.atanh(-1.9), Number.NaN,
+ "Math.atanh produces incorrect output for -1.9");
+assert.sameValue(Math.atanh(NaN), Number.NaN,
+ "Math.atanh produces incorrect output for NaN");
+assert.sameValue(Math.atanh(-10), Number.NaN,
+ "Math.atanh produces incorrect output for -10");
+assert.sameValue(Math.atanh(-Infinity), Number.NaN,
+ "Math.atanh produces incorrect output for -Infinity");
+assert.sameValue(Math.atanh(1.9), Number.NaN,
+ "Math.atanh produces incorrect output for 1.9");
+assert.sameValue(Math.atanh(10), Number.NaN,
+ "Math.atanh produces incorrect output for 10");
+assert.sameValue(Math.atanh(Number.POSITIVE_INFINITY), Number.NaN,
+ "Math.atanh produces incorrect output for Number.POSITIVE_INFINITY");
+
+assert.sameValue(Math.atanh(-1), Number.NEGATIVE_INFINITY,
+ "Math.atanh should produce negative infinity for -1");
+assert.sameValue(Math.atanh(+1), Number.POSITIVE_INFINITY,
+ "Math.atanh should produce positive infinity for +1");
+assert.sameValue(1 / Math.atanh(-0), Number.NEGATIVE_INFINITY,
+ "Math.atanh should produce -0 for -0");
+assert.sameValue(1 / Math.atanh(0), Number.POSITIVE_INFINITY,
+ "Math.atanh should produce +0 for +0");
diff --git a/test/built-ins/Math/cbrt/cbrt-specialValues.js b/test/built-ins/Math/cbrt/cbrt-specialValues.js
index a1f9fcde0..9ac640cab 100644
--- a/test/built-ins/Math/cbrt/cbrt-specialValues.js
+++ b/test/built-ins/Math/cbrt/cbrt-specialValues.js
@@ -1,18 +1,18 @@
-// Copyright 2015 Microsoft Corporation. All rights reserved.
-// This code is governed by the license found in the LICENSE file.
-
-/*---
-description: Math.cbrt with special values
-es6id: 20.2.2.9
----*/
-
-assert.sameValue(Math.cbrt(NaN), Number.NaN,
- "Math.cbrt produces incorrect output for NaN");
-assert.sameValue(Math.cbrt(Number.NEGATIVE_INFINITY), Number.NEGATIVE_INFINITY,
- "Math.cbrt should produce negative infinity for Number.NEGATIVE_INFINITY");
-assert.sameValue(Math.cbrt(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY,
- "Math.cbrt should produce positive infinity for Number.POSITIVE_INFINITY");
-assert.sameValue(1/Math.cbrt(-0), Number.NEGATIVE_INFINITY,
- "Math.cbrt should produce -0 for -0");
-assert.sameValue(1/Math.cbrt(0), Number.POSITIVE_INFINITY,
- "Math.cbrt should produce +0 for +0");
+// Copyright 2015 Microsoft Corporation. All rights reserved.
+// This code is governed by the license found in the LICENSE file.
+
+/*---
+description: Math.cbrt with special values
+es6id: 20.2.2.9
+---*/
+
+assert.sameValue(Math.cbrt(NaN), Number.NaN,
+ "Math.cbrt produces incorrect output for NaN");
+assert.sameValue(Math.cbrt(Number.NEGATIVE_INFINITY), Number.NEGATIVE_INFINITY,
+ "Math.cbrt should produce negative infinity for Number.NEGATIVE_INFINITY");
+assert.sameValue(Math.cbrt(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY,
+ "Math.cbrt should produce positive infinity for Number.POSITIVE_INFINITY");
+assert.sameValue(1 / Math.cbrt(-0), Number.NEGATIVE_INFINITY,
+ "Math.cbrt should produce -0 for -0");
+assert.sameValue(1 / Math.cbrt(0), Number.POSITIVE_INFINITY,
+ "Math.cbrt should produce +0 for +0");
diff --git a/test/built-ins/Math/cbrt/prop-desc.js b/test/built-ins/Math/cbrt/prop-desc.js
index 0a5a2657c..e7d83a78f 100644
--- a/test/built-ins/Math/cbrt/prop-desc.js
+++ b/test/built-ins/Math/cbrt/prop-desc.js
@@ -1,12 +1,12 @@
-// Copyright 2015 Microsoft Corporation. All rights reserved.
-// This code is governed by the license found in the LICENSE file.
-
-/*---
-description: Testing descriptor property of Math.cbrt
-includes: [propertyHelper.js]
-es6id: 20.2.2.9
----*/
-
-verifyNotEnumerable(Math, "cbrt");
-verifyWritable(Math, "cbrt");
-verifyConfigurable(Math, "cbrt");
+// Copyright 2015 Microsoft Corporation. All rights reserved.
+// This code is governed by the license found in the LICENSE file.
+
+/*---
+description: Testing descriptor property of Math.cbrt
+includes: [propertyHelper.js]
+es6id: 20.2.2.9
+---*/
+
+verifyNotEnumerable(Math, "cbrt");
+verifyWritable(Math, "cbrt");
+verifyConfigurable(Math, "cbrt");
diff --git a/test/built-ins/Math/ceil/S15.8.2.6_A4.js b/test/built-ins/Math/ceil/S15.8.2.6_A4.js
index e600908cb..6339e327e 100644
--- a/test/built-ins/Math/ceil/S15.8.2.6_A4.js
+++ b/test/built-ins/Math/ceil/S15.8.2.6_A4.js
@@ -11,5 +11,5 @@ description: Checking if Math.ceil(x) is +Infinity, where x is +Infinity
var x = +Infinity;
if (Math.ceil(x) !== +Infinity)
{
- $ERROR("#1: 'var x = +Infinity; Math.ceil(x) !== +Infinity'");
+ $ERROR("#1: 'var x = +Infinity; Math.ceil(x) !== +Infinity'");
}
diff --git a/test/built-ins/Math/ceil/S15.8.2.6_A5.js b/test/built-ins/Math/ceil/S15.8.2.6_A5.js
index 74e605aab..c37068f60 100644
--- a/test/built-ins/Math/ceil/S15.8.2.6_A5.js
+++ b/test/built-ins/Math/ceil/S15.8.2.6_A5.js
@@ -11,5 +11,5 @@ description: Checking if Math.ceil(x) is -Infinity, where x is -Infinity
var x = -Infinity;
if (Math.ceil(x) !== -Infinity)
{
- $ERROR("#1: 'var x = -Infinity; Math.ceil(x) !== -Infinity'");
+ $ERROR("#1: 'var x = -Infinity; Math.ceil(x) !== -Infinity'");
}
diff --git a/test/built-ins/Math/ceil/S15.8.2.6_A7.js b/test/built-ins/Math/ceil/S15.8.2.6_A7.js
index 9f6f71592..b951f80d4 100644
--- a/test/built-ins/Math/ceil/S15.8.2.6_A7.js
+++ b/test/built-ins/Math/ceil/S15.8.2.6_A7.js
@@ -10,11 +10,11 @@ description: >
---*/
// CHECK#1
-for (var i=-1000; i<1000; i++)
+for (var i = -1000; i < 1000; i++)
{
- var x = i/10.0;
- if (Math.ceil(x) !== -Math.floor(-x))
- {
- $ERROR("#1: 'x = " + x + "; Math.ceil(x) !== -Math.floor(-x)'");
- }
+ var x = i / 10.0;
+ if (Math.ceil(x) !== -Math.floor(-x))
+ {
+ $ERROR("#1: 'x = " + x + "; Math.ceil(x) !== -Math.floor(-x)'");
+ }
}
diff --git a/test/built-ins/Math/cos/S15.8.2.7_A2.js b/test/built-ins/Math/cos/S15.8.2.7_A2.js
index a22ee05a7..8d3ca7f5a 100644
--- a/test/built-ins/Math/cos/S15.8.2.7_A2.js
+++ b/test/built-ins/Math/cos/S15.8.2.7_A2.js
@@ -11,5 +11,5 @@ description: Checking if Math.cos(+0) is 1
var x = +0;
if (Math.cos(x) !== 1)
{
- $ERROR("#1: 'var x = +0; Math.cos(x) !== 1'");
+ $ERROR("#1: 'var x = +0; Math.cos(x) !== 1'");
}
diff --git a/test/built-ins/Math/cos/S15.8.2.7_A3.js b/test/built-ins/Math/cos/S15.8.2.7_A3.js
index b567b4406..ef100a283 100644
--- a/test/built-ins/Math/cos/S15.8.2.7_A3.js
+++ b/test/built-ins/Math/cos/S15.8.2.7_A3.js
@@ -11,5 +11,5 @@ description: Checking if Math.cos(-0) is 1
var x = -0;
if (Math.cos(x) !== 1)
{
- $ERROR("#1: 'var x = -0; Math.cos(x) !== 1'");
+ $ERROR("#1: 'var x = -0; Math.cos(x) !== 1'");
}
diff --git a/test/built-ins/Math/cosh/cosh-specialVals.js b/test/built-ins/Math/cosh/cosh-specialVals.js
index 7c36a759a..ddb544539 100644
--- a/test/built-ins/Math/cosh/cosh-specialVals.js
+++ b/test/built-ins/Math/cosh/cosh-specialVals.js
@@ -1,16 +1,16 @@
-// Copyright 2015 Microsoft Corporation. All rights reserved.
-// This code is governed by the license found in the LICENSE file.
-
-/*---
-description: Math.cosh with special values
-es6id: 20.2.2.13
----*/
-
-assert.sameValue(Math.cosh(NaN), Number.NaN,
- "Math.cosh produces incorrect output for NaN");
-assert.sameValue(Math.cosh(0), 1, "Math.cosh should produce 1 for input = 0");
-assert.sameValue(Math.cosh(-0), 1, "Math.cosh should produce 1 for input = -0");
-assert.sameValue(Math.cosh(Number.NEGATIVE_INFINITY), Number.POSITIVE_INFINITY,
- "Math.cosh should produce Number.POSITIVE_INFINITY for Number.NEGATIVE_INFINITY");
-assert.sameValue(Math.cosh(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY,
- "Math.cosh should produce Number.POSITIVE_INFINITY for Number.POSITIVE_INFINITY");
+// Copyright 2015 Microsoft Corporation. All rights reserved.
+// This code is governed by the license found in the LICENSE file.
+
+/*---
+description: Math.cosh with special values
+es6id: 20.2.2.13
+---*/
+
+assert.sameValue(Math.cosh(NaN), Number.NaN,
+ "Math.cosh produces incorrect output for NaN");
+assert.sameValue(Math.cosh(0), 1, "Math.cosh should produce 1 for input = 0");
+assert.sameValue(Math.cosh(-0), 1, "Math.cosh should produce 1 for input = -0");
+assert.sameValue(Math.cosh(Number.NEGATIVE_INFINITY), Number.POSITIVE_INFINITY,
+ "Math.cosh should produce Number.POSITIVE_INFINITY for Number.NEGATIVE_INFINITY");
+assert.sameValue(Math.cosh(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY,
+ "Math.cosh should produce Number.POSITIVE_INFINITY for Number.POSITIVE_INFINITY");
diff --git a/test/built-ins/Math/exp/S15.8.2.8_A2.js b/test/built-ins/Math/exp/S15.8.2.8_A2.js
index db4ba2d12..11ea36c45 100644
--- a/test/built-ins/Math/exp/S15.8.2.8_A2.js
+++ b/test/built-ins/Math/exp/S15.8.2.8_A2.js
@@ -11,5 +11,5 @@ description: Checking if Math.exp(+0) is 1
var x = +0;
if (Math.exp(x) !== 1)
{
- $ERROR("#1: 'var x = +0; Math.exp(x) !== 1'");
+ $ERROR("#1: 'var x = +0; Math.exp(x) !== 1'");
}
diff --git a/test/built-ins/Math/exp/S15.8.2.8_A3.js b/test/built-ins/Math/exp/S15.8.2.8_A3.js
index 32054e3e6..6f8e4ca46 100644
--- a/test/built-ins/Math/exp/S15.8.2.8_A3.js
+++ b/test/built-ins/Math/exp/S15.8.2.8_A3.js
@@ -11,5 +11,5 @@ description: Checking if Math.exp(-0) is 1
var x = -0;
if (Math.exp(x) !== 1)
{
- $ERROR("#1: 'var x = -0; Math.exp(x) !== 1'");
+ $ERROR("#1: 'var x = -0; Math.exp(x) !== 1'");
}
diff --git a/test/built-ins/Math/exp/S15.8.2.8_A4.js b/test/built-ins/Math/exp/S15.8.2.8_A4.js
index 94d37dc2f..a4bb1e204 100644
--- a/test/built-ins/Math/exp/S15.8.2.8_A4.js
+++ b/test/built-ins/Math/exp/S15.8.2.8_A4.js
@@ -11,5 +11,5 @@ description: Checking if Math.exp(+Infinity) is +Ifinity
var x = +Infinity;
if (Math.exp(x) !== +Infinity)
{
- $ERROR("#1: 'var x = +Infinity; Math.exp(x) !== +Infinity'");
+ $ERROR("#1: 'var x = +Infinity; Math.exp(x) !== +Infinity'");
}
diff --git a/test/built-ins/Math/expm1/expm1-specialVals.js b/test/built-ins/Math/expm1/expm1-specialVals.js
index 3d62cc398..65aa97904 100644
--- a/test/built-ins/Math/expm1/expm1-specialVals.js
+++ b/test/built-ins/Math/expm1/expm1-specialVals.js
@@ -1,18 +1,18 @@
-// Copyright 2015 Microsoft Corporation. All rights reserved.
-// This code is governed by the license found in the LICENSE file.
-
-/*---
-description: Math.expm1 with sample values.
-es6id: 20.2.2.15
----*/
-
-assert.sameValue(Math.expm1(NaN), Number.NaN,
- "Math.expm1 produces incorrect output for NaN");
-assert.sameValue(Math.expm1(Number.NEGATIVE_INFINITY), -1,
- "Math.expm1 should produce -1 for Number.NEGATIVE_INFINITY");
-assert.sameValue(Math.expm1(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY,
- "Math.expm1 should produce POSITIVE infinity for Number.POSITIVE_INFINITY");
-assert.sameValue(1/Math.expm1(-0), Number.NEGATIVE_INFINITY,
- "Math.expm1 should produce -0 for -0");
-assert.sameValue(1/Math.expm1(0), Number.POSITIVE_INFINITY,
- "Math.expm1 should produce +0 for +0");
+// Copyright 2015 Microsoft Corporation. All rights reserved.
+// This code is governed by the license found in the LICENSE file.
+
+/*---
+description: Math.expm1 with sample values.
+es6id: 20.2.2.15
+---*/
+
+assert.sameValue(Math.expm1(NaN), Number.NaN,
+ "Math.expm1 produces incorrect output for NaN");
+assert.sameValue(Math.expm1(Number.NEGATIVE_INFINITY), -1,
+ "Math.expm1 should produce -1 for Number.NEGATIVE_INFINITY");
+assert.sameValue(Math.expm1(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY,
+ "Math.expm1 should produce POSITIVE infinity for Number.POSITIVE_INFINITY");
+assert.sameValue(1 / Math.expm1(-0), Number.NEGATIVE_INFINITY,
+ "Math.expm1 should produce -0 for -0");
+assert.sameValue(1 / Math.expm1(0), Number.POSITIVE_INFINITY,
+ "Math.expm1 should produce +0 for +0");
diff --git a/test/built-ins/Math/floor/S15.8.2.9_A4.js b/test/built-ins/Math/floor/S15.8.2.9_A4.js
index 2cdb90486..a74af8c6e 100644
--- a/test/built-ins/Math/floor/S15.8.2.9_A4.js
+++ b/test/built-ins/Math/floor/S15.8.2.9_A4.js
@@ -11,5 +11,5 @@ description: Checking if Math.floor(x) is +Infinity, where x is +Infinity
var x = +Infinity;
if (Math.floor(x) !== +Infinity)
{
- $ERROR("#1: 'var x = +Infinity; Math.floor(x) !== +Infinity'");
+ $ERROR("#1: 'var x = +Infinity; Math.floor(x) !== +Infinity'");
}
diff --git a/test/built-ins/Math/floor/S15.8.2.9_A5.js b/test/built-ins/Math/floor/S15.8.2.9_A5.js
index 0d35398ca..290ce4931 100644
--- a/test/built-ins/Math/floor/S15.8.2.9_A5.js
+++ b/test/built-ins/Math/floor/S15.8.2.9_A5.js
@@ -11,5 +11,5 @@ description: Checking if Math.floor(x) is -Infinity, where x is -Infinity
var x = -Infinity;
if (Math.floor(x) !== -Infinity)
{
- $ERROR("#1: 'var x = -Infinity; Math.floor(x) !== -Infinity'");
+ $ERROR("#1: 'var x = -Infinity; Math.floor(x) !== -Infinity'");
}
diff --git a/test/built-ins/Math/floor/S15.8.2.9_A7.js b/test/built-ins/Math/floor/S15.8.2.9_A7.js
index 37b598401..2f19b43a7 100644
--- a/test/built-ins/Math/floor/S15.8.2.9_A7.js
+++ b/test/built-ins/Math/floor/S15.8.2.9_A7.js
@@ -10,11 +10,11 @@ description: >
---*/
// CHECK#1
-for (var i=-1000; i<1000; i++)
+for (var i = -1000; i < 1000; i++)
{
- var x = i/10.0;
- if (-Math.ceil(-x) !== Math.floor(x))
- {
- $ERROR("#1: 'x = " + x + "; Math.floor(x) !== -Math.ceil(-x)'");
- }
+ var x = i / 10.0;
+ if (-Math.ceil(-x) !== Math.floor(x))
+ {
+ $ERROR("#1: 'x = " + x + "; Math.floor(x) !== -Math.ceil(-x)'");
+ }
}
diff --git a/test/built-ins/Math/hypot/Math.hypot_Success_2.js b/test/built-ins/Math/hypot/Math.hypot_Success_2.js
index 4106a0a77..5fbe0deaa 100644
--- a/test/built-ins/Math/hypot/Math.hypot_Success_2.js
+++ b/test/built-ins/Math/hypot/Math.hypot_Success_2.js
@@ -7,4 +7,4 @@ author: Ryan Lewis
description: Math.hypot should return 5 if called with 3 and 4.
---*/
-assert.sameValue(Math.hypot(3,4), 5, 'Math.hypot(3,4)');
+assert.sameValue(Math.hypot(3, 4), 5, 'Math.hypot(3,4)');
diff --git a/test/built-ins/Math/log/S15.8.2.10_A3.js b/test/built-ins/Math/log/S15.8.2.10_A3.js
index 93854fdfc..b95438b2a 100644
--- a/test/built-ins/Math/log/S15.8.2.10_A3.js
+++ b/test/built-ins/Math/log/S15.8.2.10_A3.js
@@ -11,12 +11,12 @@ description: Checking if Math.log(+0) and Math.log(-0) equals to -Infinity
var x = +0;
if (Math.log(x) !== -Infinity)
{
- $ERROR("#1: 'var x=+0; Math.log(x) !== -Infinity'");
+ $ERROR("#1: 'var x=+0; Math.log(x) !== -Infinity'");
}
// CHECK#2
var x = -0;
if (Math.log(x) !== -Infinity)
{
- $ERROR("#1: 'var x=-0; Math.log(x) !== -Infinity'");
+ $ERROR("#1: 'var x=-0; Math.log(x) !== -Infinity'");
}
diff --git a/test/built-ins/Math/log/S15.8.2.10_A5.js b/test/built-ins/Math/log/S15.8.2.10_A5.js
index 1cf45192e..045b73c50 100644
--- a/test/built-ins/Math/log/S15.8.2.10_A5.js
+++ b/test/built-ins/Math/log/S15.8.2.10_A5.js
@@ -11,5 +11,5 @@ description: Checking if Math.log(+Infinity) equals to +Infinity
var x = +Infinity;
if (Math.log(x) !== +Infinity)
{
- $ERROR("#1: 'var x=+Infinity; Math.log(x) !== +Infinity'");
+ $ERROR("#1: 'var x=+Infinity; Math.log(x) !== +Infinity'");
}
diff --git a/test/built-ins/Math/log10/Log10-specialVals.js b/test/built-ins/Math/log10/Log10-specialVals.js
index 5a8411b76..341ea36e0 100644
--- a/test/built-ins/Math/log10/Log10-specialVals.js
+++ b/test/built-ins/Math/log10/Log10-specialVals.js
@@ -1,33 +1,32 @@
-// Copyright 2015 Microsoft Corporation. All rights reserved.
-// This code is governed by the license found in the LICENSE file.
-
-/*---
-description: Math.Log10 with sample values.
-es6id: 20.2.2.20
----*/
-
-assert.sameValue(Math.log10(-0), Number.NEGATIVE_INFINITY,
- "Math.log10 produces incorrect output for -0");
-assert.sameValue(Math.log10(+0), Number.NEGATIVE_INFINITY,
- "Math.log10 produces incorrect output for +0");
-assert.sameValue(Math.log10(-0.9), Number.NaN,
- "Math.log10 produces incorrect output for -0.9");
-assert.sameValue(Math.log10(NaN), Number.NaN,
- "Math.log10 produces incorrect output for NaN");
-assert.sameValue(Math.log10(-10), Number.NaN,
- "Math.log10 produces incorrect output for -10");
-assert.sameValue(Math.log10(null), Number.NEGATIVE_INFINITY,
- "Math.log10 produces incorrect output for null");
-assert.sameValue(Math.log10(undefined), Number.NaN,
- "Math.log10 produces incorrect output for undefined");
-assert.sameValue(Math.log10(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY,
- "Math.log10 produces incorrect output for Number.POSITIVE_INFINITY");
-assert.sameValue(Math.log10(1), 0,
- "Math.log10 produces incorrect output for 1");
-assert.sameValue(Math.log10(10.00), 1,
- "Math.log10 produces incorrect output for 10.00");
-assert.sameValue(Math.log10(100.00), 2,
- "Math.log10 produces incorrect output for 100.00");
-assert.sameValue(Math.log10(1000.00), 3,
- "Math.log10 produces incorrect output for 1000.00");
-
+// Copyright 2015 Microsoft Corporation. All rights reserved.
+// This code is governed by the license found in the LICENSE file.
+
+/*---
+description: Math.Log10 with sample values.
+es6id: 20.2.2.20
+---*/
+
+assert.sameValue(Math.log10(-0), Number.NEGATIVE_INFINITY,
+ "Math.log10 produces incorrect output for -0");
+assert.sameValue(Math.log10(+0), Number.NEGATIVE_INFINITY,
+ "Math.log10 produces incorrect output for +0");
+assert.sameValue(Math.log10(-0.9), Number.NaN,
+ "Math.log10 produces incorrect output for -0.9");
+assert.sameValue(Math.log10(NaN), Number.NaN,
+ "Math.log10 produces incorrect output for NaN");
+assert.sameValue(Math.log10(-10), Number.NaN,
+ "Math.log10 produces incorrect output for -10");
+assert.sameValue(Math.log10(null), Number.NEGATIVE_INFINITY,
+ "Math.log10 produces incorrect output for null");
+assert.sameValue(Math.log10(undefined), Number.NaN,
+ "Math.log10 produces incorrect output for undefined");
+assert.sameValue(Math.log10(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY,
+ "Math.log10 produces incorrect output for Number.POSITIVE_INFINITY");
+assert.sameValue(Math.log10(1), 0,
+ "Math.log10 produces incorrect output for 1");
+assert.sameValue(Math.log10(10.00), 1,
+ "Math.log10 produces incorrect output for 10.00");
+assert.sameValue(Math.log10(100.00), 2,
+ "Math.log10 produces incorrect output for 100.00");
+assert.sameValue(Math.log10(1000.00), 3,
+ "Math.log10 produces incorrect output for 1000.00");
diff --git a/test/built-ins/Math/log2/log2-basicTests.js b/test/built-ins/Math/log2/log2-basicTests.js
index 3feeb1df4..bd3bb510a 100644
--- a/test/built-ins/Math/log2/log2-basicTests.js
+++ b/test/built-ins/Math/log2/log2-basicTests.js
@@ -1,34 +1,34 @@
-// Copyright 2015 Microsoft Corporation. All rights reserved.
-// This code is governed by the license found in the LICENSE file.
-
-/*---
-description: Math.Log2 with sample values.
-es6id: 20.2.2.23
----*/
-
-assert.sameValue(Math.log2(-0), Number.NEGATIVE_INFINITY,
- "Math.log2 produces incorrect output for -0");
-assert.sameValue(Math.log2(+0), Number.NEGATIVE_INFINITY,
- "Math.log2 produces incorrect output for +0");
-assert.sameValue(Math.log2(-0.9), NaN,
- "Math.log2 produces incorrect output for -0.9");
-assert.sameValue(Math.log2(NaN), NaN,
- "Math.log2 produces incorrect output for NaN");
-assert.sameValue(Math.log2(-10), NaN,
- "Math.log2 produces incorrect output for -10");
-assert.sameValue(Math.log2(-Infinity), NaN,
- "Math.log2 produces incorrect output for -Infinity");
-assert.sameValue(Math.log2(null), Number.NEGATIVE_INFINITY,
- "Math.log2 produces incorrect output for null");
-assert.sameValue(Math.log2(undefined), NaN,
- "Math.log2 produces incorrect output for undefined");
-assert.sameValue(Math.log2(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY,
- "Math.log2 produces incorrect output for Number.POSITIVE_INFINITY");
-assert.sameValue(Math.log2(1), 0,
- "Math.log2 produces incorrect output for 1");
-assert.sameValue(Math.log2(2.00), 1,
- "Math.log2 produces incorrect output for 2.00");
-assert.sameValue(Math.log2(4.00), 2,
- "Math.log2 produces incorrect output for 4.00");
-assert.sameValue(Math.log2(8.00), 3,
- "Math.log2 produces incorrect output for 8.00");
+// Copyright 2015 Microsoft Corporation. All rights reserved.
+// This code is governed by the license found in the LICENSE file.
+
+/*---
+description: Math.Log2 with sample values.
+es6id: 20.2.2.23
+---*/
+
+assert.sameValue(Math.log2(-0), Number.NEGATIVE_INFINITY,
+ "Math.log2 produces incorrect output for -0");
+assert.sameValue(Math.log2(+0), Number.NEGATIVE_INFINITY,
+ "Math.log2 produces incorrect output for +0");
+assert.sameValue(Math.log2(-0.9), NaN,
+ "Math.log2 produces incorrect output for -0.9");
+assert.sameValue(Math.log2(NaN), NaN,
+ "Math.log2 produces incorrect output for NaN");
+assert.sameValue(Math.log2(-10), NaN,
+ "Math.log2 produces incorrect output for -10");
+assert.sameValue(Math.log2(-Infinity), NaN,
+ "Math.log2 produces incorrect output for -Infinity");
+assert.sameValue(Math.log2(null), Number.NEGATIVE_INFINITY,
+ "Math.log2 produces incorrect output for null");
+assert.sameValue(Math.log2(undefined), NaN,
+ "Math.log2 produces incorrect output for undefined");
+assert.sameValue(Math.log2(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY,
+ "Math.log2 produces incorrect output for Number.POSITIVE_INFINITY");
+assert.sameValue(Math.log2(1), 0,
+ "Math.log2 produces incorrect output for 1");
+assert.sameValue(Math.log2(2.00), 1,
+ "Math.log2 produces incorrect output for 2.00");
+assert.sameValue(Math.log2(4.00), 2,
+ "Math.log2 produces incorrect output for 4.00");
+assert.sameValue(Math.log2(8.00), 3,
+ "Math.log2 produces incorrect output for 8.00");
diff --git a/test/built-ins/Math/max/S15.8.2.11_A1.js b/test/built-ins/Math/max/S15.8.2.11_A1.js
index a305b5b25..4fb9984f5 100644
--- a/test/built-ins/Math/max/S15.8.2.11_A1.js
+++ b/test/built-ins/Math/max/S15.8.2.11_A1.js
@@ -10,5 +10,5 @@ description: Checking if Math.max() equals to -Infinity
// CHECK#1
if (Math.max() != -Infinity)
{
- $ERROR("#1: 'Math.max() != -Infinity'");
+ $ERROR("#1: 'Math.max() != -Infinity'");
}
diff --git a/test/built-ins/Math/max/S15.8.2.11_A2.js b/test/built-ins/Math/max/S15.8.2.11_A2.js
index 04aea82ec..8507e9102 100644
--- a/test/built-ins/Math/max/S15.8.2.11_A2.js
+++ b/test/built-ins/Math/max/S15.8.2.11_A2.js
@@ -25,16 +25,16 @@ var valnum = 7;
var args = new Array();
for (var i = 0; i <= 1; i++)
{
- args[i] = NaN;
- for (var j = 0; j < valnum; j++)
- {
- args[1-i] = vals[j];
- assert.sameValue(
- Math.max(args[0], args[1]),
- NaN,
- "max(" + args[0] + ", " + args[1] + ")"
- );
- }
+ args[i] = NaN;
+ for (var j = 0; j < valnum; j++)
+ {
+ args[1 - i] = vals[j];
+ assert.sameValue(
+ Math.max(args[0], args[1]),
+ NaN,
+ "max(" + args[0] + ", " + args[1] + ")"
+ );
+ }
}
// CHECK #3
@@ -42,25 +42,25 @@ var k = 1;
var l = 2;
for (var i = 0; i <= 2; i++)
{
- args[i] = NaN;
- if (i === 1)
- {
- k = 0;
- } else if (i === 2)
- {
- l = 1;
- }
- for (var j = 0; j < valnum; j++)
- {
- for (var jj = 0; jj < valnum; jj++)
- {
- args[k] = vals[j];
- args[l] = vals[jj];
- assert.sameValue(
- Math.max(args[0], args[1], args[2]),
- NaN,
- "max(" + args[0] + ", " + args[1] + ", " + args[2] + ")"
- );
- }
- }
+ args[i] = NaN;
+ if (i === 1)
+ {
+ k = 0;
+ } else if (i === 2)
+ {
+ l = 1;
+ }
+ for (var j = 0; j < valnum; j++)
+ {
+ for (var jj = 0; jj < valnum; jj++)
+ {
+ args[k] = vals[j];
+ args[l] = vals[jj];
+ assert.sameValue(
+ Math.max(args[0], args[1], args[2]),
+ NaN,
+ "max(" + args[0] + ", " + args[1] + ", " + args[2] + ")"
+ );
+ }
+ }
}
diff --git a/test/built-ins/Math/max/S15.8.2.11_A4.js b/test/built-ins/Math/max/S15.8.2.11_A4.js
index fab69fcf3..7055503d3 100644
--- a/test/built-ins/Math/max/S15.8.2.11_A4.js
+++ b/test/built-ins/Math/max/S15.8.2.11_A4.js
@@ -9,15 +9,15 @@ description: Checking if Math.max.length property is defined and equals to 2
// CHECK#1
if (typeof Math.max !== "function") {
- $ERROR('#1: Math.max method is not defined');
+ $ERROR('#1: Math.max method is not defined');
}
// CHECK#2
if (typeof Math.max.length === "undefined") {
- $ERROR('#2: length property of Math.max method is undefined');
+ $ERROR('#2: length property of Math.max method is undefined');
}
// CHECK#3
if (Math.max.length !== 2) {
- $ERROR('#3: The length property of the Math.max method is not 2');
+ $ERROR('#3: The length property of the Math.max method is not 2');
}
diff --git a/test/built-ins/Math/min/S15.8.2.12_A1.js b/test/built-ins/Math/min/S15.8.2.12_A1.js
index ef52ac785..0a396aead 100644
--- a/test/built-ins/Math/min/S15.8.2.12_A1.js
+++ b/test/built-ins/Math/min/S15.8.2.12_A1.js
@@ -10,5 +10,5 @@ description: Checking if Math.min() equals to +Infinity
// CHECK#1
if (Math.min() != +Infinity)
{
- $ERROR("#1: 'Math.min() != +Infinity'");
+ $ERROR("#1: 'Math.min() != +Infinity'");
}
diff --git a/test/built-ins/Math/min/S15.8.2.12_A2.js b/test/built-ins/Math/min/S15.8.2.12_A2.js
index 3ec27bf76..2c90b2865 100644
--- a/test/built-ins/Math/min/S15.8.2.12_A2.js
+++ b/test/built-ins/Math/min/S15.8.2.12_A2.js
@@ -26,16 +26,16 @@ var valnum = 7;
var args = new Array();
for (var i = 0; i <= 1; i++)
{
- args[i] = NaN;
- for (var j = 0; j < valnum; j++)
- {
- args[1-i] = vals[j];
- assert.sameValue(
- Math.min(args[0], args[1]),
- NaN,
- "min(" + args[0] + ", " + args[1] + ")"
- );
- }
+ args[i] = NaN;
+ for (var j = 0; j < valnum; j++)
+ {
+ args[1 - i] = vals[j];
+ assert.sameValue(
+ Math.min(args[0], args[1]),
+ NaN,
+ "min(" + args[0] + ", " + args[1] + ")"
+ );
+ }
}
// CHECK #3
@@ -43,25 +43,25 @@ var k = 1;
var l = 2;
for (var i = 0; i <= 2; i++)
{
- args[i] = NaN;
- if (i === 1)
- {
- k = 0;
- } else if (i === 2)
- {
- l = 1;
- }
- for (var j = 0; j < valnum; j++)
- {
- for (var jj = 0; jj < valnum; jj++)
- {
- args[k] = vals[j];
- args[l] = vals[jj];
- assert.sameValue(
- Math.min(args[0], args[1], args[2]),
- NaN,
- "min(" + args[0] + ", " + args[1] + ", " + args[2] + ")"
- );
- }
- }
+ args[i] = NaN;
+ if (i === 1)
+ {
+ k = 0;
+ } else if (i === 2)
+ {
+ l = 1;
+ }
+ for (var j = 0; j < valnum; j++)
+ {
+ for (var jj = 0; jj < valnum; jj++)
+ {
+ args[k] = vals[j];
+ args[l] = vals[jj];
+ assert.sameValue(
+ Math.min(args[0], args[1], args[2]),
+ NaN,
+ "min(" + args[0] + ", " + args[1] + ", " + args[2] + ")"
+ );
+ }
+ }
}
diff --git a/test/built-ins/Math/min/S15.8.2.12_A4.js b/test/built-ins/Math/min/S15.8.2.12_A4.js
index d2555044c..e4f16bed2 100644
--- a/test/built-ins/Math/min/S15.8.2.12_A4.js
+++ b/test/built-ins/Math/min/S15.8.2.12_A4.js
@@ -9,15 +9,15 @@ description: Checking if Math.min.length property is defined and equals to 2
// CHECK#1
if (typeof Math.min !== "function") {
- $ERROR('#1: Math.min method is not defined');
+ $ERROR('#1: Math.min method is not defined');
}
// CHECK#2
if (typeof Math.min.length === "undefined") {
- $ERROR('#2: length property of Math.min method is undefined');
+ $ERROR('#2: length property of Math.min method is undefined');
}
// CHECK#3
if (Math.min.length !== 2) {
- $ERROR('#3: The length property of the Math.min method is not 2');
+ $ERROR('#3: The length property of the Math.min method is not 2');
}
diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A10.js b/test/built-ins/Math/pow/applying-the-exp-operator_A10.js
index a21cdb0be..fc788b35f 100644
--- a/test/built-ins/Math/pow/applying-the-exp-operator_A10.js
+++ b/test/built-ins/Math/pow/applying-the-exp-operator_A10.js
@@ -19,8 +19,8 @@ var basenum = 6;
for (var i = 0; i < basenum; i++)
{
- if (Math.pow(base[i],exponent) !== +Infinity)
- {
- $ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== +Infinity");
- }
+ if (Math.pow(base[i], exponent) !== +Infinity)
+ {
+ $ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== +Infinity");
+ }
}
diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A11.js b/test/built-ins/Math/pow/applying-the-exp-operator_A11.js
index 536b51474..f44e1d30c 100644
--- a/test/built-ins/Math/pow/applying-the-exp-operator_A11.js
+++ b/test/built-ins/Math/pow/applying-the-exp-operator_A11.js
@@ -17,8 +17,8 @@ var exponentnum = 4;
for (var i = 0; i < exponentnum; i++)
{
- if (Math.pow(base,exponent[i]) !== +Infinity)
- {
- $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity");
- }
+ if (Math.pow(base, exponent[i]) !== +Infinity)
+ {
+ $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity");
+ }
}
diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A13.js b/test/built-ins/Math/pow/applying-the-exp-operator_A13.js
index 9096d37fb..daac829f4 100644
--- a/test/built-ins/Math/pow/applying-the-exp-operator_A13.js
+++ b/test/built-ins/Math/pow/applying-the-exp-operator_A13.js
@@ -16,8 +16,8 @@ var exponentnum = 3;
for (var i = 0; i < exponentnum; i++)
{
- if (Math.pow(base,exponent[i]) !== -Infinity)
- {
- $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== -Infinity");
- }
+ if (Math.pow(base, exponent[i]) !== -Infinity)
+ {
+ $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== -Infinity");
+ }
}
diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A14.js b/test/built-ins/Math/pow/applying-the-exp-operator_A14.js
index a987088d6..e5ab5e270 100644
--- a/test/built-ins/Math/pow/applying-the-exp-operator_A14.js
+++ b/test/built-ins/Math/pow/applying-the-exp-operator_A14.js
@@ -18,8 +18,8 @@ var exponentnum = 5;
for (var i = 0; i < exponentnum; i++)
{
- if (Math.pow(base,exponent[i]) !== +Infinity)
- {
- $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity");
- }
+ if (Math.pow(base, exponent[i]) !== +Infinity)
+ {
+ $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity");
+ }
}
diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A18.js b/test/built-ins/Math/pow/applying-the-exp-operator_A18.js
index ddf01dada..565353c2c 100644
--- a/test/built-ins/Math/pow/applying-the-exp-operator_A18.js
+++ b/test/built-ins/Math/pow/applying-the-exp-operator_A18.js
@@ -17,8 +17,8 @@ var exponentnum = 4;
for (var i = 0; i < exponentnum; i++)
{
- if (Math.pow(base,exponent[i]) !== +Infinity)
- {
- $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity");
- }
+ if (Math.pow(base, exponent[i]) !== +Infinity)
+ {
+ $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity");
+ }
}
diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A2.js b/test/built-ins/Math/pow/applying-the-exp-operator_A2.js
index d0dc29cc2..41d840c29 100644
--- a/test/built-ins/Math/pow/applying-the-exp-operator_A2.js
+++ b/test/built-ins/Math/pow/applying-the-exp-operator_A2.js
@@ -22,8 +22,8 @@ var basenum = 9;
for (var i = 0; i < basenum; i++)
{
- if (Math.pow(base[i],exponent) !== 1)
- {
- $ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== 1");
- }
+ if (Math.pow(base[i], exponent) !== 1)
+ {
+ $ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== 1");
+ }
}
diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A21.js b/test/built-ins/Math/pow/applying-the-exp-operator_A21.js
index f5b246ed6..5a2cf3b0e 100644
--- a/test/built-ins/Math/pow/applying-the-exp-operator_A21.js
+++ b/test/built-ins/Math/pow/applying-the-exp-operator_A21.js
@@ -16,8 +16,8 @@ var exponentnum = 3;
for (var i = 0; i < exponentnum; i++)
{
- if (Math.pow(base,exponent[i]) !== -Infinity)
- {
- $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== -Infinity");
- }
+ if (Math.pow(base, exponent[i]) !== -Infinity)
+ {
+ $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== -Infinity");
+ }
}
diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A22.js b/test/built-ins/Math/pow/applying-the-exp-operator_A22.js
index de41acd01..807519549 100644
--- a/test/built-ins/Math/pow/applying-the-exp-operator_A22.js
+++ b/test/built-ins/Math/pow/applying-the-exp-operator_A22.js
@@ -18,8 +18,8 @@ var exponentnum = 5;
for (var i = 0; i < exponentnum; i++)
{
- if (Math.pow(base, exponent[i]) !== +Infinity)
- {
- $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity");
- }
+ if (Math.pow(base, exponent[i]) !== +Infinity)
+ {
+ $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity");
+ }
}
diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A23.js b/test/built-ins/Math/pow/applying-the-exp-operator_A23.js
index 826a4305b..4104d287b 100644
--- a/test/built-ins/Math/pow/applying-the-exp-operator_A23.js
+++ b/test/built-ins/Math/pow/applying-the-exp-operator_A23.js
@@ -27,7 +27,7 @@ exponent[7] = Math.PI;
var exponentnum = 8;
for (var i = 0; i < basenum; i++) {
- for (var j = 0; j < exponentnum; j++) {
+ for (var j = 0; j < exponentnum; j++) {
assert.sameValue(
Math.pow(base[i], exponent[j]),
NaN,
diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A3.js b/test/built-ins/Math/pow/applying-the-exp-operator_A3.js
index e0edd6acf..7fa5ecc46 100644
--- a/test/built-ins/Math/pow/applying-the-exp-operator_A3.js
+++ b/test/built-ins/Math/pow/applying-the-exp-operator_A3.js
@@ -22,8 +22,8 @@ var basenum = 9;
for (var i = 0; i < basenum; i++)
{
- if (Math.pow(base[i],exponent) !== 1)
- {
- $ERROR("#1: Math.pow(" + base[i] + ", -0) !== 1");
- }
+ if (Math.pow(base[i], exponent) !== 1)
+ {
+ $ERROR("#1: Math.pow(" + base[i] + ", -0) !== 1");
+ }
}
diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A5.js b/test/built-ins/Math/pow/applying-the-exp-operator_A5.js
index a5bf6f33a..1d8fa231a 100644
--- a/test/built-ins/Math/pow/applying-the-exp-operator_A5.js
+++ b/test/built-ins/Math/pow/applying-the-exp-operator_A5.js
@@ -19,8 +19,8 @@ var basenum = 6;
for (var i = 0; i < basenum; i++)
{
- if (Math.pow(base[i],exponent) !== +Infinity)
- {
- $ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== +Infinity");
- }
+ if (Math.pow(base[i], exponent) !== +Infinity)
+ {
+ $ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== +Infinity");
+ }
}
diff --git a/test/built-ins/Math/random/S15.8.2.14_A1.js b/test/built-ins/Math/random/S15.8.2.14_A1.js
index 10cc9f466..4b5db856b 100644
--- a/test/built-ins/Math/random/S15.8.2.14_A1.js
+++ b/test/built-ins/Math/random/S15.8.2.14_A1.js
@@ -14,15 +14,15 @@ description: >
// CHECK#1
for (var i = 0; i < 100; i++)
{
- var val = Math.random();
+ var val = Math.random();
- assert.sameValue(
- typeof val, 'number', 'should not produce a non-numeric value: ' + val
- );
- assert.notSameValue(val, NaN, 'should not produce NaN');
+ assert.sameValue(
+ typeof val, 'number', 'should not produce a non-numeric value: ' + val
+ );
+ assert.notSameValue(val, NaN, 'should not produce NaN');
- if (val < 0 || val >= 1)
- {
- $ERROR("#1: Math.random() = " + val);
- }
+ if (val < 0 || val >= 1)
+ {
+ $ERROR("#1: Math.random() = " + val);
+ }
}
diff --git a/test/built-ins/Math/round/S15.8.2.15_A4.js b/test/built-ins/Math/round/S15.8.2.15_A4.js
index cfc81a02a..b5743303f 100644
--- a/test/built-ins/Math/round/S15.8.2.15_A4.js
+++ b/test/built-ins/Math/round/S15.8.2.15_A4.js
@@ -11,5 +11,5 @@ description: Checking if Math.round(x) is +Infinity, where x is +Infinity
var x = +Infinity;
if (Math.round(x) !== +Infinity)
{
- $ERROR("#1: 'var x=+Infinity; Math.round(x) !== +Infinity'");
+ $ERROR("#1: 'var x=+Infinity; Math.round(x) !== +Infinity'");
}
diff --git a/test/built-ins/Math/round/S15.8.2.15_A5.js b/test/built-ins/Math/round/S15.8.2.15_A5.js
index 8c0fff3b7..0447ef01c 100644
--- a/test/built-ins/Math/round/S15.8.2.15_A5.js
+++ b/test/built-ins/Math/round/S15.8.2.15_A5.js
@@ -11,5 +11,5 @@ description: Checking if Math.round(x) is -Infinity, where x is -Infinity
var x = -Infinity;
if (Math.round(x) !== -Infinity)
{
- $ERROR("#1: 'var x=-Infinity; Math.round(x) !== -Infinity'");
+ $ERROR("#1: 'var x=-Infinity; Math.round(x) !== -Infinity'");
}
diff --git a/test/built-ins/Math/round/S15.8.2.15_A6.js b/test/built-ins/Math/round/S15.8.2.15_A6.js
index ffb74f313..a96cd1124 100644
--- a/test/built-ins/Math/round/S15.8.2.15_A6.js
+++ b/test/built-ins/Math/round/S15.8.2.15_A6.js
@@ -15,25 +15,25 @@ description: >
// CHECK#1
for (var i = 0; i <= 1000; i++)
{
- var x = i/10.0;
- if (Math.round(x) !== Math.floor(x + 0.5))
- {
- $ERROR("#1: 'x = " + x + "; Math.round(x) !== Math.floor(x + 0.5)'")
- }
+ var x = i / 10.0;
+ if (Math.round(x) !== Math.floor(x + 0.5))
+ {
+ $ERROR("#1: 'x = " + x + "; Math.round(x) !== Math.floor(x + 0.5)'")
+ }
}
for (i = -5; i >= -1000; i--)
{
- if (i === -5)
- {
- x = -0.500000000000001;
- } else
- {
- x = i/10.0;
- }
-
- if (Math.round(x) !== Math.floor(x + 0.5))
- {
- $ERROR("#2: 'x = " + x + "; Math.round(x) !== Math.floor(x + 0.5)'")
- }
+ if (i === -5)
+ {
+ x = -0.500000000000001;
+ } else
+ {
+ x = i / 10.0;
+ }
+
+ if (Math.round(x) !== Math.floor(x + 0.5))
+ {
+ $ERROR("#2: 'x = " + x + "; Math.round(x) !== Math.floor(x + 0.5)'")
+ }
}
diff --git a/test/built-ins/Math/round/S15.8.2.15_A7.js b/test/built-ins/Math/round/S15.8.2.15_A7.js
index ad26e408e..ed92c8bf5 100644
--- a/test/built-ins/Math/round/S15.8.2.15_A7.js
+++ b/test/built-ins/Math/round/S15.8.2.15_A7.js
@@ -21,7 +21,7 @@ if (1 / Math.round(-0.5) !== 1 / -0) {
// CHECK#2
if (1 / Math.round(-0.25) !== 1 / -0) {
- $ERROR("#2: '1 / Math.round(-0.25) !== 1 / -0'");
+ $ERROR("#2: '1 / Math.round(-0.25) !== 1 / -0'");
}
// CHECK#3
diff --git a/test/built-ins/Math/sign/sign-specialVals.js b/test/built-ins/Math/sign/sign-specialVals.js
index 0e63fe895..9026c223c 100644
--- a/test/built-ins/Math/sign/sign-specialVals.js
+++ b/test/built-ins/Math/sign/sign-specialVals.js
@@ -1,20 +1,20 @@
-// Copyright 2015 Microsoft Corporation. All rights reserved.
-// This code is governed by the license found in the LICENSE file.
-
-/*---
-description: >
- Returns the sign of the x, indicating whether x is positive, negative or zero.
-es6id: 20.2.2.29
----*/
-
-assert.sameValue(Math.sign(NaN), NaN, "NaN");
-assert.sameValue(Math.sign(-0), -0, "-0");
-assert.sameValue(Math.sign(0), 0, "0");
-
-assert.sameValue(Math.sign(-0.000001), -1, "-0.000001");
-assert.sameValue(Math.sign(-1), -1, "-1");
-assert.sameValue(Math.sign(-Infinity), -1, "-Infinity");
-
-assert.sameValue(Math.sign(0.000001), 1, "0.000001");
-assert.sameValue(Math.sign(1), 1, "1");
-assert.sameValue(Math.sign(Infinity), 1, "Infinity");
+// Copyright 2015 Microsoft Corporation. All rights reserved.
+// This code is governed by the license found in the LICENSE file.
+
+/*---
+description: >
+ Returns the sign of the x, indicating whether x is positive, negative or zero.
+es6id: 20.2.2.29
+---*/
+
+assert.sameValue(Math.sign(NaN), NaN, "NaN");
+assert.sameValue(Math.sign(-0), -0, "-0");
+assert.sameValue(Math.sign(0), 0, "0");
+
+assert.sameValue(Math.sign(-0.000001), -1, "-0.000001");
+assert.sameValue(Math.sign(-1), -1, "-1");
+assert.sameValue(Math.sign(-Infinity), -1, "-Infinity");
+
+assert.sameValue(Math.sign(0.000001), 1, "0.000001");
+assert.sameValue(Math.sign(1), 1, "1");
+assert.sameValue(Math.sign(Infinity), 1, "Infinity");
diff --git a/test/built-ins/Math/sinh/sinh-specialVals.js b/test/built-ins/Math/sinh/sinh-specialVals.js
index cc93825cb..beda3cd0f 100644
--- a/test/built-ins/Math/sinh/sinh-specialVals.js
+++ b/test/built-ins/Math/sinh/sinh-specialVals.js
@@ -1,18 +1,18 @@
-// Copyright 2015 Microsoft Corporation. All rights reserved.
-// This code is governed by the license found in the LICENSE file.
-
-/*---
-description: Math.sinh with special values
-es6id: 20.2.2.31
----*/
-
-assert.sameValue(Math.sinh(NaN), Number.NaN,
- "Math.sinh produces incorrect output for NaN");
-assert.sameValue(Math.sinh(Number.NEGATIVE_INFINITY), Number.NEGATIVE_INFINITY,
- "Math.sinh should produce negative infinity for Number.NEGATIVE_INFINITY");
-assert.sameValue(Math.sinh(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY,
- "Math.sinh should produce positive infinity for Number.POSITIVE_INFINITY");
-assert.sameValue(1/Math.sinh(-0), Number.NEGATIVE_INFINITY,
- "Math.sinh should produce -0 for -0");
-assert.sameValue(1/Math.sinh(0), Number.POSITIVE_INFINITY,
- "Math.sinh should produce +0 for +0");
+// Copyright 2015 Microsoft Corporation. All rights reserved.
+// This code is governed by the license found in the LICENSE file.
+
+/*---
+description: Math.sinh with special values
+es6id: 20.2.2.31
+---*/
+
+assert.sameValue(Math.sinh(NaN), Number.NaN,
+ "Math.sinh produces incorrect output for NaN");
+assert.sameValue(Math.sinh(Number.NEGATIVE_INFINITY), Number.NEGATIVE_INFINITY,
+ "Math.sinh should produce negative infinity for Number.NEGATIVE_INFINITY");
+assert.sameValue(Math.sinh(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY,
+ "Math.sinh should produce positive infinity for Number.POSITIVE_INFINITY");
+assert.sameValue(1 / Math.sinh(-0), Number.NEGATIVE_INFINITY,
+ "Math.sinh should produce -0 for -0");
+assert.sameValue(1 / Math.sinh(0), Number.POSITIVE_INFINITY,
+ "Math.sinh should produce +0 for +0");
diff --git a/test/built-ins/Math/sqrt/S15.8.2.17_A5.js b/test/built-ins/Math/sqrt/S15.8.2.17_A5.js
index 45bf9cba5..8cfd5fc32 100644
--- a/test/built-ins/Math/sqrt/S15.8.2.17_A5.js
+++ b/test/built-ins/Math/sqrt/S15.8.2.17_A5.js
@@ -11,5 +11,5 @@ description: Checking if Math.sqrt(+Infinity) is +Infinity
var x = +Infinity;
if (Math.sqrt(x) !== +Infinity)
{
- $ERROR("#1: 'var x=+Infinity; Math.sqrt(x) !== +Infinity'");
+ $ERROR("#1: 'var x=+Infinity; Math.sqrt(x) !== +Infinity'");
}
diff --git a/test/built-ins/Math/tanh/tanh-specialVals.js b/test/built-ins/Math/tanh/tanh-specialVals.js
index 27e9e5752..a26b2af2a 100644
--- a/test/built-ins/Math/tanh/tanh-specialVals.js
+++ b/test/built-ins/Math/tanh/tanh-specialVals.js
@@ -1,18 +1,18 @@
-// Copyright 2015 Microsoft Corporation. All rights reserved.
-// This code is governed by the license found in the LICENSE file.
-
-/*---
-description: Math.tanh with special values
-es6id: 20.2.2.34
----*/
-
-assert.sameValue(Math.tanh(NaN), Number.NaN,
- "Math.tanh produces incorrect output for NaN");
-assert.sameValue(Math.tanh(Number.NEGATIVE_INFINITY), -1,
- "Math.tanh should produce -1 for Number.NEGATIVE_INFINITY");
-assert.sameValue(Math.tanh(Number.POSITIVE_INFINITY), 1,
- "Math.tanh should produce 1 for Number.POSITIVE_INFINITY");
-assert.sameValue(1/Math.tanh(-0), Number.NEGATIVE_INFINITY,
- "Math.tanh should produce -0 for -0");
-assert.sameValue(1/Math.tanh(0), Number.POSITIVE_INFINITY,
- "Math.tanh should produce +0 for +0");
+// Copyright 2015 Microsoft Corporation. All rights reserved.
+// This code is governed by the license found in the LICENSE file.
+
+/*---
+description: Math.tanh with special values
+es6id: 20.2.2.34
+---*/
+
+assert.sameValue(Math.tanh(NaN), Number.NaN,
+ "Math.tanh produces incorrect output for NaN");
+assert.sameValue(Math.tanh(Number.NEGATIVE_INFINITY), -1,
+ "Math.tanh should produce -1 for Number.NEGATIVE_INFINITY");
+assert.sameValue(Math.tanh(Number.POSITIVE_INFINITY), 1,
+ "Math.tanh should produce 1 for Number.POSITIVE_INFINITY");
+assert.sameValue(1 / Math.tanh(-0), Number.NEGATIVE_INFINITY,
+ "Math.tanh should produce -0 for -0");
+assert.sameValue(1 / Math.tanh(0), Number.POSITIVE_INFINITY,
+ "Math.tanh should produce +0 for +0");
diff --git a/test/built-ins/Math/trunc/trunc-sampleTests.js b/test/built-ins/Math/trunc/trunc-sampleTests.js
index 92834c730..a99c6cb50 100644
--- a/test/built-ins/Math/trunc/trunc-sampleTests.js
+++ b/test/built-ins/Math/trunc/trunc-sampleTests.js
@@ -1,47 +1,47 @@
-// Copyright 2015 Microsoft Corporation. All rights reserved.
-// This code is governed by the license found in the LICENSE file.
-
-/*---
-description: sample tests for trunc
-es6id: 20.2.2.35
----*/
-
-assert.sameValue(1 / Math.trunc(0.02047410048544407), Number.POSITIVE_INFINITY,
- "Math.trunc should produce +0 for values between 0 and 1");
-assert.sameValue(1 / Math.trunc(0.00000000000000001), Number.POSITIVE_INFINITY,
- "Math.trunc should produce +0 for values between 0 and 1");
-assert.sameValue(1 / Math.trunc(0.9999999999999999), Number.POSITIVE_INFINITY,
- "Math.trunc should produce +0 for values between 0 and 1");
-assert.sameValue(1 / Math.trunc(Number.EPSILON), Number.POSITIVE_INFINITY,
- "Math.trunc should produce +0 for values between 0 and 1");
-assert.sameValue(1 / Math.trunc(Number.MIN_VALUE), Number.POSITIVE_INFINITY,
- "Math.trunc should produce +0 for values between 0 and 1");
-
-assert.sameValue(1 / Math.trunc(-0.02047410048544407), Number.NEGATIVE_INFINITY,
- "Math.trunc should produce -0 for values between -1 and 0");
-assert.sameValue(1 / Math.trunc(-0.00000000000000001), Number.NEGATIVE_INFINITY,
- "Math.trunc should produce -0 for values between -1 and 0");
-assert.sameValue(1 / Math.trunc(-0.9999999999999999), Number.NEGATIVE_INFINITY,
- "Math.trunc should produce -0 for values between -1 and 0");
-assert.sameValue(1 / Math.trunc(-Number.EPSILON), Number.NEGATIVE_INFINITY,
- "Math.trunc should produce -0 for values between -1 and 0");
-assert.sameValue(1 / Math.trunc(-Number.MIN_VALUE), Number.NEGATIVE_INFINITY,
- "Math.trunc should produce -0 for values between -1 and 0");
-
-assert.sameValue(Math.trunc(Number.MAX_VALUE), Math.floor(Number.MAX_VALUE),
- "Math.trunc produces incorrect result for Number.MAX_VALUE");
-assert.sameValue(Math.trunc(10), Math.floor(10),
- "Math.trunc produces incorrect result for 10");
-assert.sameValue(Math.trunc(3.9), Math.floor(3.9),
- "Math.trunc produces incorrect result for 3.9");
-assert.sameValue(Math.trunc(4.9), Math.floor(4.9),
- "Math.trunc produces incorrect result for 4.9");
-
-assert.sameValue(Math.trunc(-Number.MAX_VALUE), Math.ceil(-Number.MAX_VALUE),
- "Math.trunc produces incorrect result for -Number.MAX_VALUE");
-assert.sameValue(Math.trunc(-10), Math.ceil(-10),
- "Math.trunc produces incorrect result for -10");
-assert.sameValue(Math.trunc(-3.9), Math.ceil(-3.9),
- "Math.trunc produces incorrect result for -3.9");
-assert.sameValue(Math.trunc(-4.9), Math.ceil(-4.9),
- "Math.trunc produces incorrect result for -4.9");
+// Copyright 2015 Microsoft Corporation. All rights reserved.
+// This code is governed by the license found in the LICENSE file.
+
+/*---
+description: sample tests for trunc
+es6id: 20.2.2.35
+---*/
+
+assert.sameValue(1 / Math.trunc(0.02047410048544407), Number.POSITIVE_INFINITY,
+ "Math.trunc should produce +0 for values between 0 and 1");
+assert.sameValue(1 / Math.trunc(0.00000000000000001), Number.POSITIVE_INFINITY,
+ "Math.trunc should produce +0 for values between 0 and 1");
+assert.sameValue(1 / Math.trunc(0.9999999999999999), Number.POSITIVE_INFINITY,
+ "Math.trunc should produce +0 for values between 0 and 1");
+assert.sameValue(1 / Math.trunc(Number.EPSILON), Number.POSITIVE_INFINITY,
+ "Math.trunc should produce +0 for values between 0 and 1");
+assert.sameValue(1 / Math.trunc(Number.MIN_VALUE), Number.POSITIVE_INFINITY,
+ "Math.trunc should produce +0 for values between 0 and 1");
+
+assert.sameValue(1 / Math.trunc(-0.02047410048544407), Number.NEGATIVE_INFINITY,
+ "Math.trunc should produce -0 for values between -1 and 0");
+assert.sameValue(1 / Math.trunc(-0.00000000000000001), Number.NEGATIVE_INFINITY,
+ "Math.trunc should produce -0 for values between -1 and 0");
+assert.sameValue(1 / Math.trunc(-0.9999999999999999), Number.NEGATIVE_INFINITY,
+ "Math.trunc should produce -0 for values between -1 and 0");
+assert.sameValue(1 / Math.trunc(-Number.EPSILON), Number.NEGATIVE_INFINITY,
+ "Math.trunc should produce -0 for values between -1 and 0");
+assert.sameValue(1 / Math.trunc(-Number.MIN_VALUE), Number.NEGATIVE_INFINITY,
+ "Math.trunc should produce -0 for values between -1 and 0");
+
+assert.sameValue(Math.trunc(Number.MAX_VALUE), Math.floor(Number.MAX_VALUE),
+ "Math.trunc produces incorrect result for Number.MAX_VALUE");
+assert.sameValue(Math.trunc(10), Math.floor(10),
+ "Math.trunc produces incorrect result for 10");
+assert.sameValue(Math.trunc(3.9), Math.floor(3.9),
+ "Math.trunc produces incorrect result for 3.9");
+assert.sameValue(Math.trunc(4.9), Math.floor(4.9),
+ "Math.trunc produces incorrect result for 4.9");
+
+assert.sameValue(Math.trunc(-Number.MAX_VALUE), Math.ceil(-Number.MAX_VALUE),
+ "Math.trunc produces incorrect result for -Number.MAX_VALUE");
+assert.sameValue(Math.trunc(-10), Math.ceil(-10),
+ "Math.trunc produces incorrect result for -10");
+assert.sameValue(Math.trunc(-3.9), Math.ceil(-3.9),
+ "Math.trunc produces incorrect result for -3.9");
+assert.sameValue(Math.trunc(-4.9), Math.ceil(-4.9),
+ "Math.trunc produces incorrect result for -4.9");
diff --git a/test/built-ins/Math/trunc/trunc-specialVals.js b/test/built-ins/Math/trunc/trunc-specialVals.js
index a1d6e1cb2..19efbf6b6 100644
--- a/test/built-ins/Math/trunc/trunc-specialVals.js
+++ b/test/built-ins/Math/trunc/trunc-specialVals.js
@@ -1,16 +1,16 @@
-// Copyright 2015 Microsoft Corporation. All rights reserved.
-// This code is governed by the license found in the LICENSE file.
-
-/*---
-description: Math.trunc with sample values.
-es6id: 20.2.2.35
----*/
-
-assert.sameValue(Math.trunc(Number.NEGATIVE_INFINITY), Number.NEGATIVE_INFINITY,
- "Math.trunc should produce negative infinity for Number.NEGATIVE_INFINITY");
-assert.sameValue(Math.trunc(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY,
- "Math.trunc should produce positive infinity for Number.POSITIVE_INFINITY");
-assert.sameValue(1/Math.trunc(-0), Number.NEGATIVE_INFINITY,
- "Math.trunc should produce -0 for -0");
-assert.sameValue(1/Math.trunc(0), Number.POSITIVE_INFINITY,
- "Math.trunc should produce +0 for +0");
+// Copyright 2015 Microsoft Corporation. All rights reserved.
+// This code is governed by the license found in the LICENSE file.
+
+/*---
+description: Math.trunc with sample values.
+es6id: 20.2.2.35
+---*/
+
+assert.sameValue(Math.trunc(Number.NEGATIVE_INFINITY), Number.NEGATIVE_INFINITY,
+ "Math.trunc should produce negative infinity for Number.NEGATIVE_INFINITY");
+assert.sameValue(Math.trunc(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY,
+ "Math.trunc should produce positive infinity for Number.POSITIVE_INFINITY");
+assert.sameValue(1 / Math.trunc(-0), Number.NEGATIVE_INFINITY,
+ "Math.trunc should produce -0 for -0");
+assert.sameValue(1 / Math.trunc(0), Number.POSITIVE_INFINITY,
+ "Math.trunc should produce +0 for +0");
diff --git a/test/built-ins/NaN/15.1.1.1-0.js b/test/built-ins/NaN/15.1.1.1-0.js
index c8638ede8..f775484db 100644
--- a/test/built-ins/NaN/15.1.1.1-0.js
+++ b/test/built-ins/NaN/15.1.1.1-0.js
@@ -6,7 +6,7 @@ es5id: 15.1.1.1-0
description: Global.NaN is a data property with default attribute values (false)
---*/
- var desc = Object.getOwnPropertyDescriptor(this, 'NaN');
+var desc = Object.getOwnPropertyDescriptor(this, 'NaN');
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/NaN/S15.1.1.1_A2_T1.js b/test/built-ins/NaN/S15.1.1.1_A2_T1.js
index 2ed88aa61..0fe23aa65 100644
--- a/test/built-ins/NaN/S15.1.1.1_A2_T1.js
+++ b/test/built-ins/NaN/S15.1.1.1_A2_T1.js
@@ -11,5 +11,5 @@ includes: [propertyHelper.js]
// CHECK#1
verifyNotWritable(this, "NaN", null, true);
if (typeof(NaN) === "boolean") {
- $ERROR('#1: NaN = true; typeof(NaN) !== "boolean". Actual: ' + (typeof(NaN)));
+ $ERROR('#1: NaN = true; typeof(NaN) !== "boolean". Actual: ' + (typeof(NaN)));
}
diff --git a/test/built-ins/NaN/S15.1.1.1_A2_T2.js b/test/built-ins/NaN/S15.1.1.1_A2_T2.js
index e357fbe37..f2654376c 100644
--- a/test/built-ins/NaN/S15.1.1.1_A2_T2.js
+++ b/test/built-ins/NaN/S15.1.1.1_A2_T2.js
@@ -11,5 +11,5 @@ flags: [noStrict]
// CHECK#1
NaN = true;
if (typeof(NaN) === "boolean") {
- $ERROR('#1: NaN = true; typeof(NaN) !== "boolean". Actual: ' + (typeof(NaN)));
+ $ERROR('#1: NaN = true; typeof(NaN) !== "boolean". Actual: ' + (typeof(NaN)));
}
diff --git a/test/built-ins/NaN/S15.1.1.1_A3_T2.js b/test/built-ins/NaN/S15.1.1.1_A3_T2.js
index c9e072c4b..475c1eb9b 100644
--- a/test/built-ins/NaN/S15.1.1.1_A3_T2.js
+++ b/test/built-ins/NaN/S15.1.1.1_A3_T2.js
@@ -10,5 +10,5 @@ flags: [noStrict]
// CHECK#1
if (delete NaN !== false) {
- $ERROR('#1: delete NaN === false. Actual: ' + (delete NaN));
+ $ERROR('#1: delete NaN === false. Actual: ' + (delete NaN));
}
diff --git a/test/built-ins/NaN/S15.1.1.1_A4.js b/test/built-ins/NaN/S15.1.1.1_A4.js
index 797f52438..a4ec30485 100644
--- a/test/built-ins/NaN/S15.1.1.1_A4.js
+++ b/test/built-ins/NaN/S15.1.1.1_A4.js
@@ -10,6 +10,6 @@ description: Use for-in statement
// CHECK#1
for (var prop in this) {
if (prop === "NaN") {
- $ERROR('#1: The NaN is DontEnum');
+ $ERROR('#1: The NaN is DontEnum');
}
}
diff --git a/test/built-ins/Number/15.7.3-2.js b/test/built-ins/Number/15.7.3-2.js
index e4bba35d8..e867affdb 100644
--- a/test/built-ins/Number/15.7.3-2.js
+++ b/test/built-ins/Number/15.7.3-2.js
@@ -8,6 +8,6 @@ description: >
object (using getPrototypeOf)
---*/
- var p = Object.getPrototypeOf(Number);
+var p = Object.getPrototypeOf(Number);
assert.sameValue(p, Function.prototype, 'p');
diff --git a/test/built-ins/Number/15.7.4-1.js b/test/built-ins/Number/15.7.4-1.js
index 7b620b069..6b24e6c17 100644
--- a/test/built-ins/Number/15.7.4-1.js
+++ b/test/built-ins/Number/15.7.4-1.js
@@ -6,7 +6,7 @@ es5id: 15.7.4-1
description: "Number prototype object: its [[Class]] must be 'Number'"
---*/
- var numProto = Object.getPrototypeOf(new Number(42));
- var s = Object.prototype.toString.call(numProto );
+var numProto = Object.getPrototypeOf(new Number(42));
+var s = Object.prototype.toString.call(numProto);
assert.sameValue(s, '[object Number]', 's');
diff --git a/test/built-ins/Number/MAX_VALUE/S15.7.3.2_A4.js b/test/built-ins/Number/MAX_VALUE/S15.7.3.2_A4.js
index 8378470ec..0a23c4427 100644
--- a/test/built-ins/Number/MAX_VALUE/S15.7.3.2_A4.js
+++ b/test/built-ins/Number/MAX_VALUE/S15.7.3.2_A4.js
@@ -8,8 +8,8 @@ description: Checking if enumerating Number.MAX_VALUE fails
---*/
//CHECK#1
-for(var x in Number) {
- if(x === "MAX_VALUE") {
+for (var x in Number) {
+ if (x === "MAX_VALUE") {
$ERROR('#1: Number.MAX_VALUE has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Number/MIN_VALUE/S15.7.3.3_A4.js b/test/built-ins/Number/MIN_VALUE/S15.7.3.3_A4.js
index 0435aa0df..83c607d58 100644
--- a/test/built-ins/Number/MIN_VALUE/S15.7.3.3_A4.js
+++ b/test/built-ins/Number/MIN_VALUE/S15.7.3.3_A4.js
@@ -8,8 +8,8 @@ description: Checking if enumerating Number.MIN_VALUE fails
---*/
//CHECK#1
-for(var x in Number) {
- if(x === "MIN_VALUE") {
+for (var x in Number) {
+ if (x === "MIN_VALUE") {
$ERROR('#1: Number.MIN_VALUE has the attribute DontEnum');
}
}
diff --git a/test/built-ins/Number/NEGATIVE_INFINITY/S15.7.3.5_A2.js b/test/built-ins/Number/NEGATIVE_INFINITY/S15.7.3.5_A2.js
index 2136e588d..d6a7450bd 100644
--- a/test/built-ins/Number/NEGATIVE_INFINITY/S15.7.3.5_A2.js
+++ b/test/built-ins/Number/NEGATIVE_INFINITY/S15.7.3.5_A2.js
@@ -12,7 +12,7 @@ includes: [propertyHelper.js]
verifyNotWritable(Number, "NEGATIVE_INFINITY", null, 1);
if (isFinite(Number.NEGATIVE_INFINITY)) {
$ERROR('#1: Number.NEGATIVE_INFINITY = 1; Number.NEGATIVE_INFINITY === -Infinity');
-} else {
+} else {
if (Number.NEGATIVE_INFINITY >= 0) {
$ERROR('#1: Number.NEGATIVE_INFINITY = 1; Number.NEGATIVE_INFINITY === -Infinity');
}
diff --git a/test/built-ins/Number/POSITIVE_INFINITY/S15.7.3.6_A2.js b/test/built-ins/Number/POSITIVE_INFINITY/S15.7.3.6_A2.js
index f13ec952d..a087f3247 100644
--- a/test/built-ins/Number/POSITIVE_INFINITY/S15.7.3.6_A2.js
+++ b/test/built-ins/Number/POSITIVE_INFINITY/S15.7.3.6_A2.js
@@ -12,7 +12,7 @@ includes: [propertyHelper.js]
verifyNotWritable(Number, "POSITIVE_INFINITY", null, 1);
if (isFinite(Number.POSITIVE_INFINITY)) {
$ERROR('#1: Number.POSITIVE_INFINITY = 1; Number.POSITIVE_INFINITY === +Infinity');
-} else {
+} else {
if (Number.POSITIVE_INFINITY <= 0) {
$ERROR('#1: Number.POSITIVE_INFINITY = 1; Number.POSITIVE_INFINITY === +Infinity');
}
diff --git a/test/built-ins/Number/S15.7.1.1_A1.js b/test/built-ins/Number/S15.7.1.1_A1.js
index e42b6a024..1d094a056 100644
--- a/test/built-ins/Number/S15.7.1.1_A1.js
+++ b/test/built-ins/Number/S15.7.1.1_A1.js
@@ -10,23 +10,23 @@ description: Used values "10", 10, new String("10"), new Object(10) and "abc"
---*/
//CHECK#1
-if( typeof Number("10") !== "number" ) {
- $ERROR('#1: typeof Number("10") should be "number", actual is "'+typeof Number("10")+'"');
+if (typeof Number("10") !== "number") {
+ $ERROR('#1: typeof Number("10") should be "number", actual is "' + typeof Number("10") + '"');
}
//CHECK#2
-if( typeof Number(10) !== "number" ) {
- $ERROR('#2: typeof Number(10) should be "number", actual is "'+typeof Number(10)+'"');
+if (typeof Number(10) !== "number") {
+ $ERROR('#2: typeof Number(10) should be "number", actual is "' + typeof Number(10) + '"');
}
//CHECK#3
-if( typeof Number(new String("10")) !== "number" ) {
- $ERROR('#3: typeof Number(new String("10")) should be "number", actual is "'+typeof Number(new String("10"))+'"');
+if (typeof Number(new String("10")) !== "number") {
+ $ERROR('#3: typeof Number(new String("10")) should be "number", actual is "' + typeof Number(new String("10")) + '"');
}
//CHECK#4
-if( typeof Number(new Object(10)) !== "number" ) {
- $ERROR('#4: typeof Number(new Object(10)) should be "number", actual is "'+typeof Number(new Object(10))+'"');
+if (typeof Number(new Object(10)) !== "number") {
+ $ERROR('#4: typeof Number(new Object(10)) should be "number", actual is "' + typeof Number(new Object(10)) + '"');
}
//CHECK #5
diff --git a/test/built-ins/Number/S15.7.1.1_A2.js b/test/built-ins/Number/S15.7.1.1_A2.js
index f38fa26dd..0b41b4d39 100644
--- a/test/built-ins/Number/S15.7.1.1_A2.js
+++ b/test/built-ins/Number/S15.7.1.1_A2.js
@@ -8,13 +8,13 @@ description: Call Number() and check result
---*/
//CHECK#1
-if( typeof Number() !== "number" ) {
- $ERROR('#1: typeof Number() should be "number", actual is "'+typeof Number()+'"');
+if (typeof Number() !== "number") {
+ $ERROR('#1: typeof Number() should be "number", actual is "' + typeof Number() + '"');
}
//CHECK#2
-if( Number() !== 0 ) {
- $ERROR('#2: Number() === 0, actual is '+Number());
-} else if( 1/Number() !== Number.POSITIVE_INFINITY ) {
- $ERROR('#2: Number() === +0, actual is '+Number());
+if (Number() !== 0) {
+ $ERROR('#2: Number() === 0, actual is ' + Number());
+} else if (1 / Number() !== Number.POSITIVE_INFINITY) {
+ $ERROR('#2: Number() === +0, actual is ' + Number());
}
diff --git a/test/built-ins/Number/S15.7.2.1_A1.js b/test/built-ins/Number/S15.7.2.1_A1.js
index ba99b0608..37106c76d 100644
--- a/test/built-ins/Number/S15.7.2.1_A1.js
+++ b/test/built-ins/Number/S15.7.2.1_A1.js
@@ -21,13 +21,13 @@ if (new Number() === undefined) {
//CHECK#3
var x3 = new Number();
-if(typeof x3 !== "object"){
+if (typeof x3 !== "object") {
$ERROR("#3: typeof new Number() === 'object'");
}
//CHECK#4
var x4 = new Number();
-if(x4 === undefined){
+if (x4 === undefined) {
$ERROR("#4: new Number() should not be undefined");
}
@@ -43,12 +43,12 @@ if (new Number(10) === undefined) {
//CHECK#7
var x7 = new Number(10);
-if(typeof x7 !== "object"){
+if (typeof x7 !== "object") {
$ERROR("#7: typeof new Number(10) === 'object'");
}
//CHECK#8
var x8 = new Number(10);
-if(x8 === undefined){
+if (x8 === undefined) {
$ERROR("#8: new Number(10) should not be undefined");
}
diff --git a/test/built-ins/Number/S15.7.2.1_A3.js b/test/built-ins/Number/S15.7.2.1_A3.js
index bf524cd4c..0782599cb 100644
--- a/test/built-ins/Number/S15.7.2.1_A3.js
+++ b/test/built-ins/Number/S15.7.2.1_A3.js
@@ -19,6 +19,6 @@ if (x1.valueOf() !== 1) {
var x2 = new Number();
if (x2.valueOf() !== 0) {
$ERROR('#2.1: var x2 = new Number(); x2.valueOf() === 0');
-} else if( 1/x2.valueOf() !== Number.POSITIVE_INFINITY ) {
+} else if (1 / x2.valueOf() !== Number.POSITIVE_INFINITY) {
$ERROR('#2.2: var x2 = new Number(); x2.valueOf() === +0');
}
diff --git a/test/built-ins/Number/S15.7.3_A1.js b/test/built-ins/Number/S15.7.3_A1.js
index 9f7f11f08..3bf26e28e 100644
--- a/test/built-ins/Number/S15.7.3_A1.js
+++ b/test/built-ins/Number/S15.7.3_A1.js
@@ -7,6 +7,6 @@ es5id: 15.7.3_A1
description: Checking existence of the property "prototype"
---*/
-if(!Number.hasOwnProperty("prototype")){
+if (!Number.hasOwnProperty("prototype")) {
$ERROR('#1: The Number constructor has the property "prototype"');
}
diff --git a/test/built-ins/Number/S15.7.3_A2.js b/test/built-ins/Number/S15.7.3_A2.js
index d01bc8419..069c25eb8 100644
--- a/test/built-ins/Number/S15.7.3_A2.js
+++ b/test/built-ins/Number/S15.7.3_A2.js
@@ -7,6 +7,6 @@ es5id: 15.7.3_A2
description: Checking existence of the property "MAX_VALUE"
---*/
-if(!Number.hasOwnProperty("MAX_VALUE")){
+if (!Number.hasOwnProperty("MAX_VALUE")) {
$ERROR('#1: The Number constructor has the property "MAX_VALUE"');
}
diff --git a/test/built-ins/Number/S15.7.3_A3.js b/test/built-ins/Number/S15.7.3_A3.js
index dfe4f3e3f..0e66e69d2 100644
--- a/test/built-ins/Number/S15.7.3_A3.js
+++ b/test/built-ins/Number/S15.7.3_A3.js
@@ -7,6 +7,6 @@ es5id: 15.7.3_A3
description: Checking existence of the property "MIN_VALUE"
---*/
-if(!Number.hasOwnProperty("MIN_VALUE")){
+if (!Number.hasOwnProperty("MIN_VALUE")) {
$ERROR('#1: The Number constructor has the property "MIN_VALUE"');
}
diff --git a/test/built-ins/Number/S15.7.3_A4.js b/test/built-ins/Number/S15.7.3_A4.js
index 7c9dadce0..9b1bff195 100644
--- a/test/built-ins/Number/S15.7.3_A4.js
+++ b/test/built-ins/Number/S15.7.3_A4.js
@@ -7,6 +7,6 @@ es5id: 15.7.3_A4
description: Checking existence of the property "NaN"
---*/
-if(!Number.hasOwnProperty("NaN")){
+if (!Number.hasOwnProperty("NaN")) {
$ERROR('#1: The Number constructor has the property "NaN"');
}
diff --git a/test/built-ins/Number/S15.7.3_A5.js b/test/built-ins/Number/S15.7.3_A5.js
index c6b326159..03ce9dfd5 100644
--- a/test/built-ins/Number/S15.7.3_A5.js
+++ b/test/built-ins/Number/S15.7.3_A5.js
@@ -7,6 +7,6 @@ es5id: 15.7.3_A5
description: Checking existence of the property "NEGATIVE_INFINITY"
---*/
-if(!Number.hasOwnProperty("NEGATIVE_INFINITY")){
+if (!Number.hasOwnProperty("NEGATIVE_INFINITY")) {
$ERROR('#1: The Number constructor has the property "NEGATIVE_INFINITY"');
}
diff --git a/test/built-ins/Number/S15.7.3_A6.js b/test/built-ins/Number/S15.7.3_A6.js
index 7afcbf2bb..3c2013129 100644
--- a/test/built-ins/Number/S15.7.3_A6.js
+++ b/test/built-ins/Number/S15.7.3_A6.js
@@ -7,6 +7,6 @@ es5id: 15.7.3_A6
description: Checking existence of the property "POSITIVE_INFINITY"
---*/
-if(!Number.hasOwnProperty("POSITIVE_INFINITY")){
+if (!Number.hasOwnProperty("POSITIVE_INFINITY")) {
$ERROR('#1: The Number constructor has the property "POSITIVE_INFINITY"');
}
diff --git a/test/built-ins/Number/S15.7.3_A8.js b/test/built-ins/Number/S15.7.3_A8.js
index 7b79c2a4f..449a75274 100644
--- a/test/built-ins/Number/S15.7.3_A8.js
+++ b/test/built-ins/Number/S15.7.3_A8.js
@@ -8,7 +8,7 @@ description: Checking Number.length property
---*/
//CHECK#1
-if (!Number.hasOwnProperty("length")){
+if (!Number.hasOwnProperty("length")) {
$ERROR('#1: Number constructor has length property');
}
diff --git a/test/built-ins/Number/S15.7.5_A1_T01.js b/test/built-ins/Number/S15.7.5_A1_T01.js
index 043024634..6c7afa9e3 100644
--- a/test/built-ins/Number/S15.7.5_A1_T01.js
+++ b/test/built-ins/Number/S15.7.5_A1_T01.js
@@ -10,11 +10,11 @@ description: Checking property constructor
---*/
//CHECK#1
-if((new Number()).hasOwnProperty("constructor") !== false){
+if ((new Number()).hasOwnProperty("constructor") !== false) {
$ERROR('#1: Number instance must have no special property "constructor"');
}
//CHECK#2
-if((new Number()).constructor !== Number.prototype.constructor){
+if ((new Number()).constructor !== Number.prototype.constructor) {
$ERROR('#2: Number instance property "constructor" must be inherited from Number prototype object');
}
diff --git a/test/built-ins/Number/S15.7.5_A1_T02.js b/test/built-ins/Number/S15.7.5_A1_T02.js
index b77d07173..c3ea2aeac 100644
--- a/test/built-ins/Number/S15.7.5_A1_T02.js
+++ b/test/built-ins/Number/S15.7.5_A1_T02.js
@@ -10,11 +10,11 @@ description: Checking property toString
---*/
//CHECK#1
-if((new Number()).hasOwnProperty("toString") !== false){
+if ((new Number()).hasOwnProperty("toString") !== false) {
$ERROR('#1: Number instance must have no special property "toString"');
}
//CHECK#2
-if((new Number()).toString !== Number.prototype.toString){
+if ((new Number()).toString !== Number.prototype.toString) {
$ERROR('#2: Number instance property "toString" must be inherited from Number prototype object');
}
diff --git a/test/built-ins/Number/S15.7.5_A1_T03.js b/test/built-ins/Number/S15.7.5_A1_T03.js
index 4958bef8e..83ff9a762 100644
--- a/test/built-ins/Number/S15.7.5_A1_T03.js
+++ b/test/built-ins/Number/S15.7.5_A1_T03.js
@@ -10,11 +10,11 @@ description: Checking property toLocaleString
---*/
//CHECK#1
-if((new Number()).hasOwnProperty("toLocaleString") !== false){
+if ((new Number()).hasOwnProperty("toLocaleString") !== false) {
$ERROR('#1: Number instance must have no special property "toLocaleString"');
}
//CHECK#2
-if((new Number()).toLocaleString !== Number.prototype.toLocaleString){
+if ((new Number()).toLocaleString !== Number.prototype.toLocaleString) {
$ERROR('#2: Number instance property "toLocaleString" must be inherited from Number prototype object');
}
diff --git a/test/built-ins/Number/S15.7.5_A1_T04.js b/test/built-ins/Number/S15.7.5_A1_T04.js
index 22fe3db00..3643e41ae 100644
--- a/test/built-ins/Number/S15.7.5_A1_T04.js
+++ b/test/built-ins/Number/S15.7.5_A1_T04.js
@@ -10,11 +10,11 @@ description: Checking property valueOf
---*/
//CHECK#1
-if((new Number()).hasOwnProperty("valueOf") !== false){
+if ((new Number()).hasOwnProperty("valueOf") !== false) {
$ERROR('#1: Number instance must have no special property "valueOf"');
}
//CHECK#2
-if((new Number()).valueOf !== Number.prototype.valueOf){
+if ((new Number()).valueOf !== Number.prototype.valueOf) {
$ERROR('#2: Number instance property "valueOf" must be inherited from Number prototype object');
}
diff --git a/test/built-ins/Number/S15.7.5_A1_T05.js b/test/built-ins/Number/S15.7.5_A1_T05.js
index 7c64a6a7f..947f8358e 100644
--- a/test/built-ins/Number/S15.7.5_A1_T05.js
+++ b/test/built-ins/Number/S15.7.5_A1_T05.js
@@ -10,11 +10,11 @@ description: Checking property toFixed
---*/
//CHECK#1
-if((new Number()).hasOwnProperty("toFixed") !== false){
+if ((new Number()).hasOwnProperty("toFixed") !== false) {
$ERROR('#1: Number instance must have no special property "toFixed"');
}
//CHECK#2
-if((new Number()).toFixed !== Number.prototype.toFixed){
+if ((new Number()).toFixed !== Number.prototype.toFixed) {
$ERROR('#2: Number instance property "toFixed" must be inherited from Number prototype object');
}
diff --git a/test/built-ins/Number/S15.7.5_A1_T06.js b/test/built-ins/Number/S15.7.5_A1_T06.js
index 4c5eb4a23..762d85b11 100644
--- a/test/built-ins/Number/S15.7.5_A1_T06.js
+++ b/test/built-ins/Number/S15.7.5_A1_T06.js
@@ -10,11 +10,11 @@ description: Checking property toExponential
---*/
//CHECK#1
-if((new Number()).hasOwnProperty("toExponential") !== false){
+if ((new Number()).hasOwnProperty("toExponential") !== false) {
$ERROR('#1: Number instance must have no special property "toExponential"');
}
//CHECK#2
-if((new Number()).toExponential !== Number.prototype.toExponential){
+if ((new Number()).toExponential !== Number.prototype.toExponential) {
$ERROR('#2: Number instance property "toExponential" must be inherited from Number prototype object');
}
diff --git a/test/built-ins/Number/S15.7.5_A1_T07.js b/test/built-ins/Number/S15.7.5_A1_T07.js
index fd36a65b1..a7a260d10 100644
--- a/test/built-ins/Number/S15.7.5_A1_T07.js
+++ b/test/built-ins/Number/S15.7.5_A1_T07.js
@@ -10,11 +10,11 @@ description: Checking property toPrecision
---*/
//CHECK#1
-if((new Number()).hasOwnProperty("toPrecision") !== false){
+if ((new Number()).hasOwnProperty("toPrecision") !== false) {
$ERROR('#1: Number instance must have no special property "toPrecision"');
}
//CHECK#2
-if((new Number()).toPrecision !== Number.prototype.toPrecision){
+if ((new Number()).toPrecision !== Number.prototype.toPrecision) {
$ERROR('#2: Number instance property "toPrecision" must be inherited from Number prototype object');
}
diff --git a/test/built-ins/Number/S8.12.8_A3.js b/test/built-ins/Number/S8.12.8_A3.js
index ea01590a5..f9ca248a6 100644
--- a/test/built-ins/Number/S8.12.8_A3.js
+++ b/test/built-ins/Number/S8.12.8_A3.js
@@ -13,12 +13,19 @@ description: >
try
{
- var __obj = {toString: function() {return "1"}, valueOf: function() {return new Object();}}
+ var __obj = {
+ toString: function() {
+ return "1"
+ },
+ valueOf: function() {
+ return new Object();
+ }
+ }
if (Number(__obj) !== 1) {
$ERROR('#1.1: var __obj = {toNumber: function() {return "1"}, valueOf: function() {return new Object();}}; Number(__obj) === 1. Actual: ' + (Number(__obj)));
}
}
-catch(e)
+catch (e)
{
$ERROR('#1.2: var __obj = {toNumber: function() {return "1"}, valueOf: function() {return new Object();}}; Number(__obj) === 1. Actual: ' + (e));
}
diff --git a/test/built-ins/Number/S8.12.8_A4.js b/test/built-ins/Number/S8.12.8_A4.js
index 1a1aa0894..1cd3cbf01 100644
--- a/test/built-ins/Number/S8.12.8_A4.js
+++ b/test/built-ins/Number/S8.12.8_A4.js
@@ -13,11 +13,18 @@ description: >
try
{
- var __obj = {valueOf:function(){return new Object;},toString: function() {return new Object();}}
+ var __obj = {
+ valueOf: function() {
+ return new Object;
+ },
+ toString: function() {
+ return new Object();
+ }
+ }
Number(__obj);
$ERROR('#1.1: var __obj = {valueOf:function(){return new Object;},toNumber: function() {return new Object();}}; Number(__obj) throw TypeError. Actual: ' + (Number(__obj)));
}
-catch(e)
+catch (e)
{
if ((e instanceof TypeError) !== true) {
$ERROR('#1.2: var __obj = {valueOf:function(){return new Object;},toNumber: function() {return new Object();}}; Number(__obj) throw TypeError. Actual: ' + (e));
diff --git a/test/built-ins/Number/S9.1_A1_T1.js b/test/built-ins/Number/S9.1_A1_T1.js
index b08118159..458f74711 100644
--- a/test/built-ins/Number/S9.1_A1_T1.js
+++ b/test/built-ins/Number/S9.1_A1_T1.js
@@ -12,13 +12,27 @@ description: >
---*/
// CHECK#1
-var object = {valueOf: function() {return "1"}, toString: function() {return 0}};
+var object = {
+ valueOf: function() {
+ return "1"
+ },
+ toString: function() {
+ return 0
+ }
+};
if (Number(object) !== 1) {
$ERROR('#1: var object = {valueOf: function() {return "1"}, toString: function() {return 0}}; Number(object) === 1. Actual: ' + (Number(object)));
}
// CHECK#2
-var object = {valueOf: function() {return {}}, toString: function() {return "0"}};
+var object = {
+ valueOf: function() {
+ return {}
+ },
+ toString: function() {
+ return "0"
+ }
+};
if (Number(object) !== 0) {
$ERROR('#2: var object = {valueOf: function() {return {}}, toString: function() {return "0"}}; Number(object) === 0. Actual: ' + (Number(object)));
}
diff --git a/test/built-ins/Number/S9.3.1_A1.js b/test/built-ins/Number/S9.3.1_A1.js
index 030b81834..0730f5017 100644
--- a/test/built-ins/Number/S9.3.1_A1.js
+++ b/test/built-ins/Number/S9.3.1_A1.js
@@ -11,7 +11,7 @@ description: Number('') convert to Number by explicit transformation
if (Number("") !== 0) {
$ERROR('#1.1: Number("") === 0. Actual: ' + (Number("")));
} else {
- if (1/Number("") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("") !== Number.POSITIVE_INFINITY) {
$ERROR('#1.2: Number("") == +0. Actual: -0');
}
}
diff --git a/test/built-ins/Number/S9.3.1_A10.js b/test/built-ins/Number/S9.3.1_A10.js
index b13c0855e..2f3206e5a 100644
--- a/test/built-ins/Number/S9.3.1_A10.js
+++ b/test/built-ins/Number/S9.3.1_A10.js
@@ -11,6 +11,6 @@ description: Compare Number('.12345') with +('12345')*1e-5
---*/
// CHECK#1
-if (Number(".12345") !== +("12345")*1e-5) {
+if (Number(".12345") !== +("12345") * 1e-5) {
$ERROR('#1: Number(".12345") === +("12345")*1e-5');
}
diff --git a/test/built-ins/Number/S9.3.1_A11.js b/test/built-ins/Number/S9.3.1_A11.js
index b33d96633..3d1ec721f 100644
--- a/test/built-ins/Number/S9.3.1_A11.js
+++ b/test/built-ins/Number/S9.3.1_A11.js
@@ -13,11 +13,11 @@ description: >
---*/
// CHECK#1
-if (Number(".12345e6") !== +("12345")*1e1) {
+if (Number(".12345e6") !== +("12345") * 1e1) {
$ERROR('#1: Number(".12345e6") === +("12345")*1e1');
}
// CHECK#2
-if (Number(".12345e-3") !== Number("12345")*1e-8) {
+if (Number(".12345e-3") !== Number("12345") * 1e-8) {
$ERROR('#2: Number(".12345e-3") === Number("12345")*1e-8');
}
diff --git a/test/built-ins/Number/S9.3.1_A12.js b/test/built-ins/Number/S9.3.1_A12.js
index 57ff2f175..4435832ca 100644
--- a/test/built-ins/Number/S9.3.1_A12.js
+++ b/test/built-ins/Number/S9.3.1_A12.js
@@ -12,11 +12,11 @@ description: >
---*/
// CHECK#1
-if (Number("12345e6") !== +("12345")*1e6) {
+if (Number("12345e6") !== +("12345") * 1e6) {
$ERROR('#1: Number("12345e6") === +("12345")*1e6');
}
// CHECK#2
-if (Number("12345e-6") !== Number("12345")*1e-6) {
+if (Number("12345e-6") !== Number("12345") * 1e-6) {
$ERROR('#2: Number("12345e-6") === Number("12345")*1e-6');
}
diff --git a/test/built-ins/Number/S9.3.1_A13.js b/test/built-ins/Number/S9.3.1_A13.js
index f356b228c..08414f98b 100644
--- a/test/built-ins/Number/S9.3.1_A13.js
+++ b/test/built-ins/Number/S9.3.1_A13.js
@@ -10,16 +10,16 @@ description: Compare '12' with Number("1")*10+Number("2") and analogous
---*/
// CHECK#1
-if (+("12") !== Number("1")*10+Number("2")) {
+if (+("12") !== Number("1") * 10 + Number("2")) {
$ERROR('#1: +("12") === Number("1")*10+Number("2")');
}
// CHECK#2
-if (Number("123") !== Number("12")*10+Number("3")) {
+if (Number("123") !== Number("12") * 10 + Number("3")) {
$ERROR('#2: Number("123") === Number("12")*10+Number("3")');
}
// CHECK#2
-if (Number("1234") !== Number("123")*10+Number("4")) {
+if (Number("1234") !== Number("123") * 10 + Number("4")) {
$ERROR('#2: Number("1234") === Number("123")*10+Number("4")');
}
diff --git a/test/built-ins/Number/S9.3.1_A14.js b/test/built-ins/Number/S9.3.1_A14.js
index 5b83689c8..e00fce7d7 100644
--- a/test/built-ins/Number/S9.3.1_A14.js
+++ b/test/built-ins/Number/S9.3.1_A14.js
@@ -8,6 +8,6 @@ description: Compare Number('+1234567890') with +('1234567890')
---*/
// CHECK#1
-if (Number("+1234567890") !== +("1234567890")) {
+if (Number("+1234567890") !== +("1234567890")) {
$ERROR('#1: Number("+1234567890") === +("1234567890")');
}
diff --git a/test/built-ins/Number/S9.3.1_A15.js b/test/built-ins/Number/S9.3.1_A15.js
index 5428195b7..41efa9880 100644
--- a/test/built-ins/Number/S9.3.1_A15.js
+++ b/test/built-ins/Number/S9.3.1_A15.js
@@ -10,6 +10,6 @@ description: Compare -Number('1234567890') with ('-1234567890')
---*/
// CHECK#1
-if (+("-1234567890") !== -Number("1234567890")) {
+if (+("-1234567890") !== -Number("1234567890")) {
$ERROR('#1: +("-1234567890") === -Number("1234567890")');
}
diff --git a/test/built-ins/Number/S9.3.1_A17.js b/test/built-ins/Number/S9.3.1_A17.js
index a41a110fb..8600d6eac 100644
--- a/test/built-ins/Number/S9.3.1_A17.js
+++ b/test/built-ins/Number/S9.3.1_A17.js
@@ -8,16 +8,16 @@ description: Compare Number('0x1') and Number('0X1') with 1
---*/
// CHECK#1
-if (Number("1") !== 1) {
+if (Number("1") !== 1) {
$ERROR('#1: Number("1") === 1. Actual: ' + (Number("1")));
}
// CHECK#2
-if (Number("0x1") !== 1) {
+if (Number("0x1") !== 1) {
$ERROR('#2: Number("0x1") === 1. Actual: ' + (Number("0x1")));
}
// CHECK#3
-if (+("0X1") !== 1) {
+if (+("0X1") !== 1) {
$ERROR('#3: +("0X1") === 1. Actual: ' + (+("0X1")));
}
diff --git a/test/built-ins/Number/S9.3.1_A18.js b/test/built-ins/Number/S9.3.1_A18.js
index 0bccc171d..1ab8affeb 100644
--- a/test/built-ins/Number/S9.3.1_A18.js
+++ b/test/built-ins/Number/S9.3.1_A18.js
@@ -8,16 +8,16 @@ description: Compare Number('0x2') and Number('0X2') with 2
---*/
// CHECK#1
-if (+("2") !== 2) {
+if (+("2") !== 2) {
$ERROR('#1: +("2") === 2. Actual: ' + (+("2")));
}
// CHECK#2
-if (Number("0x2") !== 2) {
+if (Number("0x2") !== 2) {
$ERROR('#2: Number("0x2") === 2. Actual: ' + (Number("0x2")));
}
// CHECK#3
-if (Number("0X2") !== 2) {
+if (Number("0X2") !== 2) {
$ERROR('#3: Number("0X2") === 2. Actual: ' + (Number("0X2")));
}
diff --git a/test/built-ins/Number/S9.3.1_A19.js b/test/built-ins/Number/S9.3.1_A19.js
index 1982f636a..5c17b0996 100644
--- a/test/built-ins/Number/S9.3.1_A19.js
+++ b/test/built-ins/Number/S9.3.1_A19.js
@@ -8,16 +8,16 @@ description: Compare Number('0x3') and Number('0X3') with 3
---*/
// CHECK#1
-if (Number("3") !== 3) {
+if (Number("3") !== 3) {
$ERROR('#1: Number("3") === 3. Actual: ' + (Number("3")));
}
// CHECK#2
-if (+("0x3") !== 3) {
+if (+("0x3") !== 3) {
$ERROR('#2: +("0x3") === 3. Actual: ' + (+("0x3")));
}
// CHECK#3
-if (Number("0X3") !== 3) {
+if (Number("0X3") !== 3) {
$ERROR('#3: Number("0X3") === 3. Actual: ' + (Number("0X3")));
}
diff --git a/test/built-ins/Number/S9.3.1_A2.js b/test/built-ins/Number/S9.3.1_A2.js
index e52c47e0e..697c5e723 100644
--- a/test/built-ins/Number/S9.3.1_A2.js
+++ b/test/built-ins/Number/S9.3.1_A2.js
@@ -13,7 +13,7 @@ description: >
if (Number("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000") !== 0) {
$ERROR('#1.1: Number("\\u0009\\u000C\\u0020\\u00A0\\u000B\\u000A\\u000D\\u2028\\u2029\\u1680\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000") === 0. Actual: ' + (Number("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000")));
} else {
- if (1/Number("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000") !== Number.POSITIVE_INFINITY) {
$ERROR('#1.2: Number("\\u0009\\u000C\\u0020\\u00A0\\u000B\\u000A\\u000D\\u2028\\u2029\\u1680\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000") === +0. Actual: -0');
}
}
@@ -22,7 +22,7 @@ if (Number("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u2000\u
if (Number(" ") !== 0) {
$ERROR('#2.1: Number(" ") === 0. Actual: ' + (Number(" ")));
} else {
- if (1/Number(" ") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number(" ") !== Number.POSITIVE_INFINITY) {
$ERROR('#2.2: Number(" ") === +0. Actual: -0');
}
}
@@ -31,7 +31,7 @@ if (Number(" ") !== 0) {
if (Number("\t") !== 0) {
$ERROR('#3.1: Number("\\t") === 0. Actual: ' + (Number("\t")));
} else {
- if (1/Number("\t") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\t") !== Number.POSITIVE_INFINITY) {
$ERROR('#3.2: Number("\\t") === +0. Actual: -0');
}
}
@@ -40,7 +40,7 @@ if (Number("\t") !== 0) {
if (Number("\r") !== 0) {
$ERROR('#4.1: Number("\\r") === 0. Actual: ' + (Number("\r")));
} else {
- if (1/Number("\r") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\r") !== Number.POSITIVE_INFINITY) {
$ERROR('#4.2: Number("\\r") === +0. Actual: -0');
}
}
@@ -49,7 +49,7 @@ if (Number("\r") !== 0) {
if (Number("\n") !== 0) {
$ERROR('#5.1: Number("\\n") === 0. Actual: ' + (Number("\n")));
} else {
- if (1/Number("\n") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\n") !== Number.POSITIVE_INFINITY) {
$ERROR('#5.2: Number("\\n") === +0. Actual: -0');
}
}
@@ -58,7 +58,7 @@ if (Number("\n") !== 0) {
if (Number("\f") !== 0) {
$ERROR('#6.1: Number("\\f") === 0. Actual: ' + (Number("\f")));
} else {
- if (1/Number("\f") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\f") !== Number.POSITIVE_INFINITY) {
$ERROR('#6.2: Number("\\f") === +0. Actual: -0');
}
}
@@ -67,7 +67,7 @@ if (Number("\f") !== 0) {
if (Number("\u0009") !== 0) {
$ERROR('#7.1: Number("\\u0009") === 0. Actual: ' + (Number("\u0009")));
} else {
- if (1/Number("\u0009") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u0009") !== Number.POSITIVE_INFINITY) {
$ERROR('#7.2: Number("\\u0009") === +0. Actual: -0');
}
}
@@ -76,7 +76,7 @@ if (Number("\u0009") !== 0) {
if (Number("\u000A") !== 0) {
$ERROR('#8.1: Number("\\u000A") === 0. Actual: ' + (Number("\u000A")));
} else {
- if (1/Number("\u000A") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u000A") !== Number.POSITIVE_INFINITY) {
$ERROR('#8.2: Number("\\u000A") === +0. Actual: -0');
}
}
@@ -85,7 +85,7 @@ if (Number("\u000A") !== 0) {
if (Number("\u000B") !== 0) {
$ERROR('#9.1: Number("\\u000B") === 0. Actual: ' + (Number("\u000B")));
} else {
- if (1/Number("\u000B") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u000B") !== Number.POSITIVE_INFINITY) {
$ERROR('#9.1.2: Number("\\u000B") === +0. Actual: -0');
}
}
@@ -94,7 +94,7 @@ if (Number("\u000B") !== 0) {
if (Number("\u000C") !== 0) {
$ERROR('#10.1: Number("\\u000C") === 0. Actual: ' + (Number("\u000C")));
} else {
- if (1/Number("\u000C") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u000C") !== Number.POSITIVE_INFINITY) {
$ERROR('#10.2: Number("\\u000C") === +0. Actual: -0');
}
}
@@ -103,7 +103,7 @@ if (Number("\u000C") !== 0) {
if (Number("\u000D") !== 0) {
$ERROR('#11.1: Number("\\u000D") === 0. Actual: ' + (Number("\u000D")));
} else {
- if (1/Number("\u000D") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u000D") !== Number.POSITIVE_INFINITY) {
$ERROR('#11.2: Number("\\u000D") === +0. Actual: -0');
}
}
@@ -112,7 +112,7 @@ if (Number("\u000D") !== 0) {
if (Number("\u00A0") !== 0) {
$ERROR('#12.1: Number("\\u00A0") === 0. Actual: ' + (Number("\u00A0")));
} else {
- if (1/Number("\u00A0") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u00A0") !== Number.POSITIVE_INFINITY) {
$ERROR('#12.2: Number("\\u00A0") === +0. Actual: -0');
}
}
@@ -121,7 +121,7 @@ if (Number("\u00A0") !== 0) {
if (Number("\u0020") !== 0) {
$ERROR('#13.1: Number("\\u0020") === 0. Actual: ' + (Number("\u0020")));
} else {
- if (1/Number("\u0020") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u0020") !== Number.POSITIVE_INFINITY) {
$ERROR('#13.2: Number("\\u0020") === +0. Actual: -0');
}
}
@@ -130,7 +130,7 @@ if (Number("\u0020") !== 0) {
if (Number("\u2028") !== 0) {
$ERROR('#14.1: Number("\\u2028") === 0. Actual: ' + (Number("\u2028")));
} else {
- if (1/Number("\u2028") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u2028") !== Number.POSITIVE_INFINITY) {
$ERROR('#14.2: Number("\\u2028") === +0. Actual: -0');
}
}
@@ -139,7 +139,7 @@ if (Number("\u2028") !== 0) {
if (Number("\u2029") !== 0) {
$ERROR('#15.1: Number("\\u2029") === 0. Actual: ' + (Number("\u2029")));
} else {
- if (1/Number("\u2029") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u2029") !== Number.POSITIVE_INFINITY) {
$ERROR('#15.2: Number("\\u2029") === +0. Actual: -0');
}
}
@@ -148,7 +148,7 @@ if (Number("\u2029") !== 0) {
if (Number("\u1680") !== 0) {
$ERROR('#16.1: Number("\\u1680") === 0. Actual: ' + (Number("\u1680")));
} else {
- if (1/Number("\u1680") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u1680") !== Number.POSITIVE_INFINITY) {
$ERROR('#16.2: Number("\\u1680") === +0. Actual: -0');
}
}
@@ -157,7 +157,7 @@ if (Number("\u1680") !== 0) {
if (Number("\u2000") !== 0) {
$ERROR('#17.1: Number("\\u2000") === 0. Actual: ' + (Number("\u2000")));
} else {
- if (1/Number("\u2000") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u2000") !== Number.POSITIVE_INFINITY) {
$ERROR('#17.2: Number("\\u2000") === +0. Actual: -0');
}
}
@@ -166,7 +166,7 @@ if (Number("\u2000") !== 0) {
if (Number("\u2001") !== 0) {
$ERROR('#18.1: Number("\\u2001") === 0. Actual: ' + (Number("\u2001")));
} else {
- if (1/Number("\u2001") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u2001") !== Number.POSITIVE_INFINITY) {
$ERROR('#18.2: Number("\\u2001") === +0. Actual: -0');
}
}
@@ -175,7 +175,7 @@ if (Number("\u2001") !== 0) {
if (Number("\u2002") !== 0) {
$ERROR('#19.1: Number("\\u2002") === 0. Actual: ' + (Number("\u2002")));
} else {
- if (1/Number("\u2002") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u2002") !== Number.POSITIVE_INFINITY) {
$ERROR('#19.2: Number("\\u2002") === +0. Actual: -0');
}
}
@@ -184,7 +184,7 @@ if (Number("\u2002") !== 0) {
if (Number("\u2003") !== 0) {
$ERROR('#20.1: Number("\\u2003") === 0. Actual: ' + (Number("\u2003")));
} else {
- if (1/Number("\u2003") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u2003") !== Number.POSITIVE_INFINITY) {
$ERROR('#20.2: Number("\\u2003") === +0. Actual: -0');
}
}
@@ -193,7 +193,7 @@ if (Number("\u2003") !== 0) {
if (Number("\u2004") !== 0) {
$ERROR('#21.1: Number("\\u2004") === 0. Actual: ' + (Number("\u2004")));
} else {
- if (1/Number("\u2004") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u2004") !== Number.POSITIVE_INFINITY) {
$ERROR('#21.2: Number("\\u2004") === +0. Actual: -0');
}
}
@@ -202,7 +202,7 @@ if (Number("\u2004") !== 0) {
if (Number("\u2005") !== 0) {
$ERROR('#22.1: Number("\\u2005") === 0. Actual: ' + (Number("\u2005")));
} else {
- if (1/Number("\u2005") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u2005") !== Number.POSITIVE_INFINITY) {
$ERROR('#22.2: Number("\\u2005") === +0. Actual: -0');
}
}
@@ -211,7 +211,7 @@ if (Number("\u2005") !== 0) {
if (Number("\u2006") !== 0) {
$ERROR('#23.1: Number("\\u2006") === 0. Actual: ' + (Number("\u2006")));
} else {
- if (1/Number("\u2006") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u2006") !== Number.POSITIVE_INFINITY) {
$ERROR('#23.2: Number("\\u2006") === +0. Actual: -0');
}
}
@@ -220,7 +220,7 @@ if (Number("\u2006") !== 0) {
if (Number("\u2007") !== 0) {
$ERROR('#24.1: Number("\\u2007") === 0. Actual: ' + (Number("\u2007")));
} else {
- if (1/Number("\u2007") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u2007") !== Number.POSITIVE_INFINITY) {
$ERROR('#24.2: Number("\\u2007") === +0. Actual: -0');
}
}
@@ -229,7 +229,7 @@ if (Number("\u2007") !== 0) {
if (Number("\u2008") !== 0) {
$ERROR('#25.1: Number("\\u2008") === 0. Actual: ' + (Number("\u2008")));
} else {
- if (1/Number("\u2008") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u2008") !== Number.POSITIVE_INFINITY) {
$ERROR('#25.2: Number("\\u2008") === +0. Actual: -0');
}
}
@@ -238,7 +238,7 @@ if (Number("\u2008") !== 0) {
if (Number("\u2009") !== 0) {
$ERROR('#26.1: Number("\\u2009") === 0. Actual: ' + (Number("\u2009")));
} else {
- if (1/Number("\u2009") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u2009") !== Number.POSITIVE_INFINITY) {
$ERROR('#26.2: Number("\\u2009") === +0. Actual: -0');
}
}
@@ -247,7 +247,7 @@ if (Number("\u2009") !== 0) {
if (Number("\u200A") !== 0) {
$ERROR('#27.1: Number("\\u200A") === 0. Actual: ' + (Number("\u200A")));
} else {
- if (1/Number("\u200A") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u200A") !== Number.POSITIVE_INFINITY) {
$ERROR('#27.2: Number("\\u200A") === +0. Actual: -0');
}
}
@@ -256,7 +256,7 @@ if (Number("\u200A") !== 0) {
if (Number("\u202F") !== 0) {
$ERROR('#28.1: Number("\\u202F") === 0. Actual: ' + (Number("\u202F")));
} else {
- if (1/Number("\u202F") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u202F") !== Number.POSITIVE_INFINITY) {
$ERROR('#28.2: Number("\\u202F") === +0. Actual: -0');
}
}
@@ -265,7 +265,7 @@ if (Number("\u202F") !== 0) {
if (Number("\u205F") !== 0) {
$ERROR('#29.1: Number("\\u205F") === 0. Actual: ' + (Number("\u205F")));
} else {
- if (1/Number("\u205F") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u205F") !== Number.POSITIVE_INFINITY) {
$ERROR('#29.2: Number("\\u205F") === +0. Actual: -0');
}
}
@@ -274,7 +274,7 @@ if (Number("\u205F") !== 0) {
if (Number("\u3000") !== 0) {
$ERROR('#30.1: Number("\\u3000") === 0. Actual: ' + (Number("\u3000")));
} else {
- if (1/Number("\u3000") !== Number.POSITIVE_INFINITY) {
+ if (1 / Number("\u3000") !== Number.POSITIVE_INFINITY) {
$ERROR('#30.2: Number("\\u3000") === +0. Actual: -0');
}
}
diff --git a/test/built-ins/Number/S9.3.1_A20.js b/test/built-ins/Number/S9.3.1_A20.js
index 76c6c6f8f..c6a4614bf 100644
--- a/test/built-ins/Number/S9.3.1_A20.js
+++ b/test/built-ins/Number/S9.3.1_A20.js
@@ -8,16 +8,16 @@ description: Compare Number('0x4') and Number('0X4') with 4
---*/
// CHECK#1
-if (Number("4") !== 4) {
+if (Number("4") !== 4) {
$ERROR('#1: Number("4") === 4. Actual: ' + (Number("4")));
}
// CHECK#2
-if (Number("0x4") !== 4) {
+if (Number("0x4") !== 4) {
$ERROR('#2: Number("0x4") === 4. Actual: ' + (Number("0x4")));
}
// CHECK#3
-if (+("0X4") !== 4) {
+if (+("0X4") !== 4) {
$ERROR('#3: +("0X4") === 4. Actual: ' + (+("0X4")));
}
diff --git a/test/built-ins/Number/S9.3.1_A21.js b/test/built-ins/Number/S9.3.1_A21.js
index 1fbf9ab10..32f800a36 100644
--- a/test/built-ins/Number/S9.3.1_A21.js
+++ b/test/built-ins/Number/S9.3.1_A21.js
@@ -8,16 +8,16 @@ description: Compare Number('0x5') and Number('0X5') with 5
---*/
// CHECK#1
-if (+("5") !== 5) {
+if (+("5") !== 5) {
$ERROR('#1: +("5") === 5. Actual: ' + (+("5")));
}
// CHECK#2
-if (Number("0x5") !== 5) {
+if (Number("0x5") !== 5) {
$ERROR('#2: Number("0x5") === 5. Actual: ' + (Number("0x5")));
}
// CHECK#3
-if (Number("0X5") !== 5) {
+if (Number("0X5") !== 5) {
$ERROR('#3: Number("0X5") === 5. Actual: ' + (Number("0X5")));
}
diff --git a/test/built-ins/Number/S9.3.1_A22.js b/test/built-ins/Number/S9.3.1_A22.js
index d2f8a03dd..8ca71ebe3 100644
--- a/test/built-ins/Number/S9.3.1_A22.js
+++ b/test/built-ins/Number/S9.3.1_A22.js
@@ -8,16 +8,16 @@ description: Compare Number('0x6') and Number('0X6') with 6
---*/
// CHECK#1
-if (Number("6") !== 6) {
+if (Number("6") !== 6) {
$ERROR('#1: Number("6") === 6. Actual: ' + (Number("6")));
}
// CHECK#2
-if (+("0x6") !== 6) {
+if (+("0x6") !== 6) {
$ERROR('#2: +("0x6") === 6. Actual: ' + (+("0x6")));
}
// CHECK#3
-if (Number("0X6") !== 6) {
+if (Number("0X6") !== 6) {
$ERROR('#3: Number("0X6") === 6. Actual: ' + (Number("0X6")));
}
diff --git a/test/built-ins/Number/S9.3.1_A23.js b/test/built-ins/Number/S9.3.1_A23.js
index 18cf4300d..c0d57edbc 100644
--- a/test/built-ins/Number/S9.3.1_A23.js
+++ b/test/built-ins/Number/S9.3.1_A23.js
@@ -8,16 +8,16 @@ description: Compare Number('0x7') and Number('0X7') with 7
---*/
// CHECK#1
-if (Number("7") !== 7) {
+if (Number("7") !== 7) {
$ERROR('#1: Number("7") === 7. Actual: ' + (Number("7")));
}
// CHECK#2
-if (Number("0x7") !== 7) {
+if (Number("0x7") !== 7) {
$ERROR('#2: Number("0x7") === 7. Actual: ' + (Number("0x7")));
}
// CHECK#3
-if (+("0X7") !== 7) {
+if (+("0X7") !== 7) {
$ERROR('#3: +("0X7") === 7. Actual: ' + (+("0X7")));
}
diff --git a/test/built-ins/Number/S9.3.1_A24.js b/test/built-ins/Number/S9.3.1_A24.js
index 7f439f729..c1970da5a 100644
--- a/test/built-ins/Number/S9.3.1_A24.js
+++ b/test/built-ins/Number/S9.3.1_A24.js
@@ -8,16 +8,16 @@ description: Compare Number('0x8') and Number('0X8') with 8
---*/
// CHECK#1
-if (+("8") !== 8) {
+if (+("8") !== 8) {
$ERROR('#1: +("8") === 8. Actual: ' + (+("8")));
}
// CHECK#2
-if (Number("0x8") !== 8) {
+if (Number("0x8") !== 8) {
$ERROR('#2: Number("0x8") === 8. Actual: ' + (Number("0x8")));
}
// CHECK#3
-if (Number("0X8") !== 8) {
+if (Number("0X8") !== 8) {
$ERROR('#3: Number("0X8") === 8. Actual: ' + (Number("0X8")));
}
diff --git a/test/built-ins/Number/S9.3.1_A25.js b/test/built-ins/Number/S9.3.1_A25.js
index 0a9649393..671da26d2 100644
--- a/test/built-ins/Number/S9.3.1_A25.js
+++ b/test/built-ins/Number/S9.3.1_A25.js
@@ -8,16 +8,16 @@ description: Compare Number('0x9') and Number('0X9') with 9
---*/
// CHECK#1
-if (Number("9") !== 9) {
+if (Number("9") !== 9) {
$ERROR('#1: Number("9") === 9. Actual: ' + (Number("9")));
}
// CHECK#2
-if (+("0x9") !== 9) {
+if (+("0x9") !== 9) {
$ERROR('#2: +("0x9") === 9. Actual: ' + (+("0x9")));
}
// CHECK#3
-if (Number("0X9") !== 9) {
+if (Number("0X9") !== 9) {
$ERROR('#3: Number("0X9") === 9. Actual: ' + (Number("0X9")));
}
diff --git a/test/built-ins/Number/S9.3.1_A26.js b/test/built-ins/Number/S9.3.1_A26.js
index 526af63de..a392efa30 100644
--- a/test/built-ins/Number/S9.3.1_A26.js
+++ b/test/built-ins/Number/S9.3.1_A26.js
@@ -10,21 +10,21 @@ description: >
---*/
// CHECK#1
-if (Number("0xa") !== 10) {
+if (Number("0xa") !== 10) {
$ERROR('#1: Number("0xa") === 10. Actual: ' + (Number("0xa")));
}
// CHECK#2
-if (Number("0xA") !== 10) {
+if (Number("0xA") !== 10) {
$ERROR('#2: Number("0xA") === 10. Actual: ' + (Number("0xA")));
}
// CHECK#3
-if (Number("0Xa") !== 10) {
+if (Number("0Xa") !== 10) {
$ERROR('#3: Number("0Xa") === 10. Actual: ' + (Number("0Xa")));
}
// CHECK#4
-if (+("0XA") !== 10) {
+if (+("0XA") !== 10) {
$ERROR('#4: +("0XA") === 10. Actual: ' + (+("0XA")));
}
diff --git a/test/built-ins/Number/S9.3.1_A27.js b/test/built-ins/Number/S9.3.1_A27.js
index 95a1c4803..4a2eba667 100644
--- a/test/built-ins/Number/S9.3.1_A27.js
+++ b/test/built-ins/Number/S9.3.1_A27.js
@@ -10,21 +10,21 @@ description: >
---*/
// CHECK#1
-if (Number("0xb") !== 11) {
+if (Number("0xb") !== 11) {
$ERROR('#1: Number("0xb") === 11. Actual: ' + (Number("0xb")));
}
// CHECK#2
-if (Number("0xB") !== 11) {
+if (Number("0xB") !== 11) {
$ERROR('#2: Number("0xB") === 11. Actual: ' + (Number("0xB")));
}
// CHECK#3
-if (+("0Xb") !== 11) {
+if (+("0Xb") !== 11) {
$ERROR('#3: +("0Xb") === 11. Actual: ' + (+("0Xb")));
}
// CHECK#4
-if (Number("0XB") !== 11) {
+if (Number("0XB") !== 11) {
$ERROR('#4: Number("0XB") === 11. Actual: ' + (Number("0XB")));
}
diff --git a/test/built-ins/Number/S9.3.1_A28.js b/test/built-ins/Number/S9.3.1_A28.js
index d7fe6d8cb..83c798659 100644
--- a/test/built-ins/Number/S9.3.1_A28.js
+++ b/test/built-ins/Number/S9.3.1_A28.js
@@ -10,21 +10,21 @@ description: >
---*/
// CHECK#1
-if (Number("0xc") !== 12) {
+if (Number("0xc") !== 12) {
$ERROR('#1: Number("0xc") === 12. Actual: ' + (Number("0xc")));
}
// CHECK#2
-if (+("0xC") !== 12) {
+if (+("0xC") !== 12) {
$ERROR('#2: +("0xC") === 12. Actual: ' + (+("0xC")));
}
// CHECK#3
-if (Number("0Xc") !== 12) {
+if (Number("0Xc") !== 12) {
$ERROR('#3: Number("0Xc") === 12. Actual: ' + (Number("0Xc")));
}
// CHECK#4
-if (Number("0XC") !== 12) {
+if (Number("0XC") !== 12) {
$ERROR('#4: Number("0XC") === 12. Actual: ' + (Number("0XC")));
}
diff --git a/test/built-ins/Number/S9.3.1_A29.js b/test/built-ins/Number/S9.3.1_A29.js
index f62f3a778..b08f67907 100644
--- a/test/built-ins/Number/S9.3.1_A29.js
+++ b/test/built-ins/Number/S9.3.1_A29.js
@@ -10,21 +10,21 @@ description: >
---*/
// CHECK#1
-if (+("0xd") !== 13) {
+if (+("0xd") !== 13) {
$ERROR('#1: +("0xd") === 13. Actual: ' + (+("0xd")));
}
// CHECK#2
-if (Number("0xD") !== 13) {
+if (Number("0xD") !== 13) {
$ERROR('#2: Number("0xD") === 13. Actual: ' + (Number("0xD")));
}
// CHECK#3
-if (Number("0Xd") !== 13) {
+if (Number("0Xd") !== 13) {
$ERROR('#3: Number("0Xd") === 13. Actual: ' + (Number("0Xd")));
}
// CHECK#4
-if (Number("0XD") !== 13) {
+if (Number("0XD") !== 13) {
$ERROR('#4: Number("0XD") === 13. Actual: ' + (Number("0XD")));
}
diff --git a/test/built-ins/Number/S9.3.1_A30.js b/test/built-ins/Number/S9.3.1_A30.js
index 261bd8b1e..f2e43e227 100644
--- a/test/built-ins/Number/S9.3.1_A30.js
+++ b/test/built-ins/Number/S9.3.1_A30.js
@@ -10,21 +10,21 @@ description: >
---*/
// CHECK#1
-if (Number("0xe") !== 14) {
+if (Number("0xe") !== 14) {
$ERROR('#1: Number("0xe") === 14. Actual: ' + (Number("0xe")));
}
// CHECK#2
-if (Number("0xE") !== 14) {
+if (Number("0xE") !== 14) {
$ERROR('#2: Number("0xE") === 14. Actual: ' + (Number("0xE")));
}
// CHECK#3
-if (Number("0Xe") !== 14) {
+if (Number("0Xe") !== 14) {
$ERROR('#3: Number("0Xe") === 14. Actual: ' + (Number("0Xe")));
}
// CHECK#4
-if (+("0XE") !== 14) {
+if (+("0XE") !== 14) {
$ERROR('#4: +("0XE") === 14. Actual: ' + (+("0XE")));
}
diff --git a/test/built-ins/Number/S9.3.1_A31.js b/test/built-ins/Number/S9.3.1_A31.js
index 6cc699d2b..4a328c468 100644
--- a/test/built-ins/Number/S9.3.1_A31.js
+++ b/test/built-ins/Number/S9.3.1_A31.js
@@ -10,21 +10,21 @@ description: >
---*/
// CHECK#1
-if (Number("0xf") !== 15) {
+if (Number("0xf") !== 15) {
$ERROR('#1: Number("0xf") === 15. Actual: ' + (Number("0xf")));
}
// CHECK#2
-if (Number("0xF") !== 15) {
+if (Number("0xF") !== 15) {
$ERROR('#2: Number("0xF") === 15. Actual: ' + (Number("0xF")));
}
// CHECK#3
-if (+("0Xf") !== 15) {
+if (+("0Xf") !== 15) {
$ERROR('#3: +("0Xf") === 15. Actual: ' + (+("0Xf")));
}
// CHECK#4
-if (Number("0XF") !== 15) {
+if (Number("0XF") !== 15) {
$ERROR('#4: Number("0XF") === 15. Actual: ' + (Number("0XF")));
}
diff --git a/test/built-ins/Number/S9.3.1_A32.js b/test/built-ins/Number/S9.3.1_A32.js
index 31f860763..143ae0031 100644
--- a/test/built-ins/Number/S9.3.1_A32.js
+++ b/test/built-ins/Number/S9.3.1_A32.js
@@ -12,12 +12,12 @@ description: Use various long numbers, for example, 1234567890.1234567890
---*/
// CHECK#1
-if (Number("1234567890.1234567890") !== 1234567890.1234567890) {
+if (Number("1234567890.1234567890") !== 1234567890.1234567890) {
$ERROR('#1: Number("1234567890.1234567890") === 1234567890.1234567890. Actual: ' + (Number("1234567890.1234567890")));
}
// CHECK#2
-if (Number("1234567890.1234567890") !== 1234567890.1234567000) {
+if (Number("1234567890.1234567890") !== 1234567890.1234567000) {
$ERROR('#2: Number("1234567890.1234567890") === 1234567890.1234567000. Actual: ' + (Number("1234567890.1234567890")));
}
@@ -27,11 +27,11 @@ if (+("1234567890.1234567890") === 1234567890.123456) {
}
// CHECK#4
-if (Number("0.12345678901234567890") !== 0.123456789012345678) {
+if (Number("0.12345678901234567890") !== 0.123456789012345678) {
$ERROR('#4: Number("0.12345678901234567890") === 0.123456789012345678. Actual: ' + (Number("0.12345678901234567890")));
}
// CHECK#4
-if (Number("00.12345678901234567890") !== 0.123456789012345678) {
+if (Number("00.12345678901234567890") !== 0.123456789012345678) {
$ERROR('#4: Number("00.12345678901234567890") === 0.123456789012345678. Actual: ' + (Number("00.12345678901234567890")));
}
diff --git a/test/built-ins/Number/S9.3.1_A3_T2.js b/test/built-ins/Number/S9.3.1_A3_T2.js
index 2b1a70c10..cb69897cc 100644
--- a/test/built-ins/Number/S9.3.1_A3_T2.js
+++ b/test/built-ins/Number/S9.3.1_A3_T2.js
@@ -10,8 +10,8 @@ es5id: 9.3.1_A3_T2
description: dynamic string
---*/
-function dynaString(s1, s2){
- return String(s1)+String(s2);
+function dynaString(s1, s2) {
+ return String(s1) + String(s2);
}
// CHECK#1
diff --git a/test/built-ins/Number/S9.3.1_A3_T2_U180E.js b/test/built-ins/Number/S9.3.1_A3_T2_U180E.js
index 0fd742865..b9ed8acd7 100644
--- a/test/built-ins/Number/S9.3.1_A3_T2_U180E.js
+++ b/test/built-ins/Number/S9.3.1_A3_T2_U180E.js
@@ -31,7 +31,7 @@ info: |
features: [u180e]
---*/
-function dynaString(s1, s2){
+function dynaString(s1, s2) {
return String(s1) + String(s2);
}
diff --git a/test/built-ins/Number/S9.3.1_A4_T1.js b/test/built-ins/Number/S9.3.1_A4_T1.js
index 5e1307fe7..13708e3bf 100644
--- a/test/built-ins/Number/S9.3.1_A4_T1.js
+++ b/test/built-ins/Number/S9.3.1_A4_T1.js
@@ -14,7 +14,7 @@ if (Number("+0") !== Number("0")) {
$ERROR('#1.1: Number("+0") === Number("0")');
} else {
// CHECK#2
- if (1/Number("+0") !== 1/Number("0")) {
+ if (1 / Number("+0") !== 1 / Number("0")) {
$ERROR('#2.2: 1/Number("+0") === 1/Number("0")');
}
}
diff --git a/test/built-ins/Number/S9.3.1_A4_T2.js b/test/built-ins/Number/S9.3.1_A4_T2.js
index 5046e90f3..83d5b961e 100644
--- a/test/built-ins/Number/S9.3.1_A4_T2.js
+++ b/test/built-ins/Number/S9.3.1_A4_T2.js
@@ -9,8 +9,8 @@ es5id: 9.3.1_A4_T2
description: Compare Number('+' + 'any_number') with Number('any_number')
---*/
-function dynaString(s1, s2){
- return String(s1)+String(s2);
+function dynaString(s1, s2) {
+ return String(s1) + String(s2);
}
// CHECK#1
@@ -18,7 +18,7 @@ if (Number(dynaString("+", "0")) !== Number("0")) {
$ERROR('#1: Number("+"+"0") === Number("0")');
} else {
// CHECK#2
- if (1/Number(dynaString("+", "0")) !== 1/Number("0")) {
+ if (1 / Number(dynaString("+", "0")) !== 1 / Number("0")) {
$ERROR('#2: 1/Number("+"+"0") === 1/Number("0")');
}
}
diff --git a/test/built-ins/Number/S9.3.1_A5_T1.js b/test/built-ins/Number/S9.3.1_A5_T1.js
index a1223636c..2b84aa762 100644
--- a/test/built-ins/Number/S9.3.1_A5_T1.js
+++ b/test/built-ins/Number/S9.3.1_A5_T1.js
@@ -14,7 +14,7 @@ if (Number("-0") !== -Number("0")) {
$ERROR('#1: Number("-0") === -Number("0")');
} else {
// CHECK#2
- if (1/Number("-0") !== -1/Number("0")) {
+ if (1 / Number("-0") !== -1 / Number("0")) {
$ERROR('#2: 1/Number("-0") === -1/Number("0")');
}
}
diff --git a/test/built-ins/Number/S9.3.1_A5_T3.js b/test/built-ins/Number/S9.3.1_A5_T3.js
index 2b2e68f8d..d73f0d793 100644
--- a/test/built-ins/Number/S9.3.1_A5_T3.js
+++ b/test/built-ins/Number/S9.3.1_A5_T3.js
@@ -9,8 +9,8 @@ es5id: 9.3.1_A5_T3
description: Compare Number('-' + 'any_number') with -Number('any_number')
---*/
-function dynaString(s1, s2){
- return String(s1)+String(s2);
+function dynaString(s1, s2) {
+ return String(s1) + String(s2);
}
// CHECK#1
@@ -18,7 +18,7 @@ if (Number(dynaString("-", "0")) !== -Number("0")) {
$ERROR('#1: Number("-"+"0") === -Number("0")');
} else {
// CHECK#2
- if (1/Number(dynaString("-", "0")) !== -1/Number("0")) {
+ if (1 / Number(dynaString("-", "0")) !== -1 / Number("0")) {
$ERROR('#2: 1/Number("-"+"0") === -1/Number("0")');
}
}
diff --git a/test/built-ins/Number/S9.3.1_A6_T2.js b/test/built-ins/Number/S9.3.1_A6_T2.js
index 4edb53988..940ca1fc0 100644
--- a/test/built-ins/Number/S9.3.1_A6_T2.js
+++ b/test/built-ins/Number/S9.3.1_A6_T2.js
@@ -11,8 +11,8 @@ description: >
10e10000, 10E10000 and Number("10e10000")
---*/
-function dynaString(s1, s2){
- return String(s1)+String(s2);
+function dynaString(s1, s2) {
+ return String(s1) + String(s2);
}
diff --git a/test/built-ins/Number/S9.3.1_A7.js b/test/built-ins/Number/S9.3.1_A7.js
index 04a125010..4e763ee48 100644
--- a/test/built-ins/Number/S9.3.1_A7.js
+++ b/test/built-ins/Number/S9.3.1_A7.js
@@ -11,6 +11,6 @@ description: Compare Number('1234.5678') with Number('1234')+(+('5678')*1e-4)
---*/
// CHECK#1
-if (Number("1234.5678") !== Number("1234")+(+("5678")*1e-4)) {
+if (Number("1234.5678") !== Number("1234") + (+("5678") * 1e-4)) {
$ERROR('#1: Number("1234.5678") === Number("1234")+(+("5678")*1e-4)');
}
diff --git a/test/built-ins/Number/S9.3.1_A8.js b/test/built-ins/Number/S9.3.1_A8.js
index ca4e35d08..8726eb9e7 100644
--- a/test/built-ins/Number/S9.3.1_A8.js
+++ b/test/built-ins/Number/S9.3.1_A8.js
@@ -12,11 +12,11 @@ description: >
---*/
// CHECK#1
-if (Number("1234e5") !== Number("1234")*1e5) {
+if (Number("1234e5") !== Number("1234") * 1e5) {
$ERROR('#1: Number("1234e5") === Number("1234")*1e5');
}
// CHECK#2
-if (Number("1234.e5") !== +("1234")*1e5) {
+if (Number("1234.e5") !== +("1234") * 1e5) {
$ERROR('#2: Number("1234.e5") === +("1234")*1e5');
}
diff --git a/test/built-ins/Number/S9.3.1_A9.js b/test/built-ins/Number/S9.3.1_A9.js
index 35b9c8fab..a12a7d66f 100644
--- a/test/built-ins/Number/S9.3.1_A9.js
+++ b/test/built-ins/Number/S9.3.1_A9.js
@@ -15,11 +15,11 @@ description: >
---*/
// CHECK#1
-if (Number("1234.5678e9") !== (Number("1234")+(Number("5678")*1e-4))*1e9) {
+if (Number("1234.5678e9") !== (Number("1234") + (Number("5678") * 1e-4)) * 1e9) {
$ERROR('#1: Number("1234.5678e9") === (Number("1234")+(Number("5678")*1e-4))*1e9');
}
// CHECK#2
-if (+("1234.5678e-9") !== (Number("1234")+(Number("5678")*1e-4))*1e-9) {
+if (+("1234.5678e-9") !== (Number("1234") + (Number("5678") * 1e-4)) * 1e-9) {
$ERROR('#2: +("1234.5678e-9") === (Number("1234")+(Number("5678")*1e-4))*1e-9');
}
diff --git a/test/built-ins/Number/S9.3_A2_T1.js b/test/built-ins/Number/S9.3_A2_T1.js
index 6094444ec..88110ad6f 100644
--- a/test/built-ins/Number/S9.3_A2_T1.js
+++ b/test/built-ins/Number/S9.3_A2_T1.js
@@ -9,9 +9,9 @@ description: null convert to Number by explicit transformation
// CHECK #1
if (Number(null) !== 0) {
- $ERROR('#1.1: Number(null) === 0. Actual: ' + (Number(null)));
+ $ERROR('#1.1: Number(null) === 0. Actual: ' + (Number(null)));
} else {
- if (1/Number(null) !== Number.POSITIVE_INFINITY) {
+ if (1 / Number(null) !== Number.POSITIVE_INFINITY) {
$ERROR('#1.2: Number(null) === +0. Actual: -0');
- }
+ }
}
diff --git a/test/built-ins/Number/S9.3_A3_T1.js b/test/built-ins/Number/S9.3_A3_T1.js
index 36cc4ccd0..1f3cbd96c 100644
--- a/test/built-ins/Number/S9.3_A3_T1.js
+++ b/test/built-ins/Number/S9.3_A3_T1.js
@@ -13,12 +13,12 @@ description: False and true convert to Number by explicit transformation
if (Number(false) !== +0) {
$ERROR('#1.1: Number(false) === 0. Actual: ' + (Number(false)));
} else {
- if (1/Number(false) !== Number.POSITIVE_INFINITY) {
+ if (1 / Number(false) !== Number.POSITIVE_INFINITY) {
$ERROR('#1.2: Number(false) === +0. Actual: -0');
}
}
// CHECK#2
if (Number(true) !== 1) {
- $ERROR('#2: Number(true) === 1. Actual: ' + (Number(true)));
+ $ERROR('#2: Number(true) === 1. Actual: ' + (Number(true)));
}
diff --git a/test/built-ins/Number/S9.3_A4.1_T1.js b/test/built-ins/Number/S9.3_A4.1_T1.js
index 42321e8d8..798b22369 100644
--- a/test/built-ins/Number/S9.3_A4.1_T1.js
+++ b/test/built-ins/Number/S9.3_A4.1_T1.js
@@ -17,7 +17,7 @@ if (Number(13) !== 13) {
}
// CHECK#2
-if (Number(-13) !== -13) {
+if (Number(-13) !== -13) {
$ERROR('#2: Number(-13) === -13. Actual: ' + (Number(-13)));
}
diff --git a/test/built-ins/Number/S9.3_A4.2_T1.js b/test/built-ins/Number/S9.3_A4.2_T1.js
index 23af423dc..bdf4e43b8 100644
--- a/test/built-ins/Number/S9.3_A4.2_T1.js
+++ b/test/built-ins/Number/S9.3_A4.2_T1.js
@@ -19,7 +19,7 @@ assert.sameValue(Number(NaN), NaN, "NaN");
if (Number(+0) !== +0) {
$ERROR('#2.1: Number(+0) === 0. Actual: ' + (Number(+0)));
} else {
- if (1/Number(+0) !== Number.POSITIVE_INFINITY) {
+ if (1 / Number(+0) !== Number.POSITIVE_INFINITY) {
$ERROR('#2.2: Number(+0) === +0. Actual: -0');
}
}
@@ -28,7 +28,7 @@ if (Number(+0) !== +0) {
if (Number(-0) !== -0) {
$ERROR('#3.1: Number(-0) === 0. Actual: ' + (Number(-0)));
} else {
- if (1/Number(-0) !== Number.NEGATIVE_INFINITY) {
+ if (1 / Number(-0) !== Number.NEGATIVE_INFINITY) {
$ERROR('#3.2: Number(-0) === -0. Actual: +0');
}
}
diff --git a/test/built-ins/Number/S9.3_A5_T1.js b/test/built-ins/Number/S9.3_A5_T1.js
index 5536e9739..e00d195ea 100644
--- a/test/built-ins/Number/S9.3_A5_T1.js
+++ b/test/built-ins/Number/S9.3_A5_T1.js
@@ -29,7 +29,7 @@ assert.sameValue(Number(new Number(NaN)), NaN, "Number(new Number(NaN)");
if (Number(new Number(null)) !== 0) {
$ERROR('#4.1: Number(new Number(null)) === 0. Actual: ' + (Number(new Number(null))));
} else {
- if (1/Number(new Number(null)) !== Number.POSITIVE_INFINITY) {
+ if (1 / Number(new Number(null)) !== Number.POSITIVE_INFINITY) {
$ERROR('#4.2: Number(new Number(null)) === +0. Actual: -0');
}
}
@@ -46,7 +46,7 @@ if (Number(new Number(true)) !== 1) {
if (Number(new Number(false)) !== +0) {
$ERROR('#7.1: Number(new Number(false)) === 0. Actual: ' + (Number(new Number(false))));
} else {
- if (1/Number(new Number(false)) !== Number.POSITIVE_INFINITY) {
+ if (1 / Number(new Number(false)) !== Number.POSITIVE_INFINITY) {
$ERROR('#7.2: Number(new Number(false)) === +0. Actual: -0');
}
}
@@ -60,56 +60,78 @@ if (Number(new Boolean(true)) !== 1) {
if (Number(new Boolean(false)) !== +0) {
$ERROR('#9.1: Number(new Boolean(false)) === 0. Actual: ' + (Number(new Boolean(false))));
} else {
- if (1/Number(new Boolean(false)) !== Number.POSITIVE_INFINITY) {
+ if (1 / Number(new Boolean(false)) !== Number.POSITIVE_INFINITY) {
$ERROR('#9.2: Number(new Boolean(false)) === +0. Actual: -0');
}
}
// CHECK#10
-assert.sameValue(Number(new Array(2,4,8,16,32)), NaN, "Number(new Array(2,4,8,16,32))");
+assert.sameValue(Number(new Array(2, 4, 8, 16, 32)), NaN, "Number(new Array(2,4,8,16,32))");
// CHECK#11
var myobj1 = {
- ToNumber : function(){return 12345;},
- toString : function(){return "67890";},
- valueOf : function(){return "[object MyObj]";}
- };
+ ToNumber: function() {
+ return 12345;
+ },
+ toString: function() {
+ return "67890";
+ },
+ valueOf: function() {
+ return "[object MyObj]";
+ }
+};
assert.sameValue(Number(myobj1), NaN, "Number(myobj1)");
// CHECK#12
var myobj2 = {
- ToNumber : function(){return 12345;},
- toString : function(){return "67890";},
- valueOf : function(){return "9876543210";}
- };
+ ToNumber: function() {
+ return 12345;
+ },
+ toString: function() {
+ return "67890";
+ },
+ valueOf: function() {
+ return "9876543210";
+ }
+};
-if (Number(myobj2) !== 9876543210){
+if (Number(myobj2) !== 9876543210) {
$ERROR("#12: Number(myobj2) calls ToPrimitive with hint Number. Exptected: 9876543210. Actual: " + (Number(myobj2)));
}
// CHECK#13
var myobj3 = {
- ToNumber : function(){return 12345;},
- toString : function(){return "[object MyObj]";}
- };
+ ToNumber: function() {
+ return 12345;
+ },
+ toString: function() {
+ return "[object MyObj]";
+ }
+};
assert.sameValue(Number(myobj3), NaN, "Number(myobj3)");
// CHECK#14
var myobj4 = {
- ToNumber : function(){return 12345;},
- toString : function(){return "67890";}
- };
+ ToNumber: function() {
+ return 12345;
+ },
+ toString: function() {
+ return "67890";
+ }
+};
-if (Number(myobj4) !== 67890){
+if (Number(myobj4) !== 67890) {
$ERROR("#14: Number(myobj4) calls ToPrimitive with hint Number. Exptected: 67890. Actual: " + (Number(myobj4)));
}
// CHECK#15
var myobj5 = {
- ToNumber : function(){return 12345;}
- };
+ ToNumber: function() {
+ return 12345;
+ }
+};
assert.sameValue(Number(myobj5), NaN, "Number(myobj5)");
diff --git a/test/built-ins/Number/prototype/15.7.3.1-2.js b/test/built-ins/Number/prototype/15.7.3.1-2.js
index dbb49123f..0d3bd2a22 100644
--- a/test/built-ins/Number/prototype/15.7.3.1-2.js
+++ b/test/built-ins/Number/prototype/15.7.3.1-2.js
@@ -6,6 +6,6 @@ es5id: 15.7.3.1-2
description: Number.prototype, initial value is the Number prototype object
---*/
- // assume that Number.prototype has not been modified.
+// assume that Number.prototype has not been modified.
assert.sameValue(Object.getPrototypeOf(new Number(42)), Number.prototype, 'Object.getPrototypeOf(new Number(42))');
diff --git a/test/built-ins/Number/prototype/S15.7.3.1_A3.js b/test/built-ins/Number/prototype/S15.7.3.1_A3.js
index 5f86ce5fa..5abcc2012 100644
--- a/test/built-ins/Number/prototype/S15.7.3.1_A3.js
+++ b/test/built-ins/Number/prototype/S15.7.3.1_A3.js
@@ -10,6 +10,6 @@ description: Checking value of Number.prototype property
//CHECK#1
if (Number.prototype != 0) {
$ERROR('#2: Number.prototype == +0');
-} else if( 1/Number.prototype != Number.POSITIVE_INFINITY){
+} else if (1 / Number.prototype != Number.POSITIVE_INFINITY) {
$ERROR('#2: Number.prototype == +0');
}
diff --git a/test/built-ins/Number/prototype/S15.7.4_A1.js b/test/built-ins/Number/prototype/S15.7.4_A1.js
index a9c7aab46..a314e8c9c 100644
--- a/test/built-ins/Number/prototype/S15.7.4_A1.js
+++ b/test/built-ins/Number/prototype/S15.7.4_A1.js
@@ -17,7 +17,7 @@ if (typeof Number.prototype !== "object") {
//CHECK#2
if (Number.prototype != 0) {
$ERROR('#2: Number.prototype == +0');
-} else if( 1/Number.prototype != Number.POSITIVE_INFINITY){
+} else if (1 / Number.prototype != Number.POSITIVE_INFINITY) {
$ERROR('#2: Number.prototype == +0');
}
diff --git a/test/built-ins/Number/prototype/S15.7.4_A3.1.js b/test/built-ins/Number/prototype/S15.7.4_A3.1.js
index 102060a35..46fc97dd6 100644
--- a/test/built-ins/Number/prototype/S15.7.4_A3.1.js
+++ b/test/built-ins/Number/prototype/S15.7.4_A3.1.js
@@ -8,6 +8,6 @@ description: The test uses hasOwnProperty() method
---*/
//CHECK#1
-if(Number.prototype.hasOwnProperty("constructor") !== true){
+if (Number.prototype.hasOwnProperty("constructor") !== true) {
$ERROR('#1: The Number prototype object has the property constructor');
}
diff --git a/test/built-ins/Number/prototype/S15.7.4_A3.2.js b/test/built-ins/Number/prototype/S15.7.4_A3.2.js
index d233dc7e1..c4f97672c 100644
--- a/test/built-ins/Number/prototype/S15.7.4_A3.2.js
+++ b/test/built-ins/Number/prototype/S15.7.4_A3.2.js
@@ -8,6 +8,6 @@ description: The test uses hasOwnProperty() method
---*/
//CHECK#1
-if(Number.prototype.hasOwnProperty("toString") !== true){
+if (Number.prototype.hasOwnProperty("toString") !== true) {
$ERROR('#1: The Number prototype object has the property toString');
}
diff --git a/test/built-ins/Number/prototype/S15.7.4_A3.3.js b/test/built-ins/Number/prototype/S15.7.4_A3.3.js
index ad9b3ec4f..ffae90cb4 100644
--- a/test/built-ins/Number/prototype/S15.7.4_A3.3.js
+++ b/test/built-ins/Number/prototype/S15.7.4_A3.3.js
@@ -8,6 +8,6 @@ description: The test uses hasOwnProperty() method
---*/
//CHECK#1
-if(Number.prototype.hasOwnProperty("toLocaleString") !== true){
+if (Number.prototype.hasOwnProperty("toLocaleString") !== true) {
$ERROR('#1: The Number prototype object has the property toLocaleString');
}
diff --git a/test/built-ins/Number/prototype/S15.7.4_A3.4.js b/test/built-ins/Number/prototype/S15.7.4_A3.4.js
index 76bb43fca..11d7b1c40 100644
--- a/test/built-ins/Number/prototype/S15.7.4_A3.4.js
+++ b/test/built-ins/Number/prototype/S15.7.4_A3.4.js
@@ -8,6 +8,6 @@ description: The test uses hasOwnProperty() method
---*/
//CHECK#1
-if(Number.prototype.hasOwnProperty("valueOf") !== true){
+if (Number.prototype.hasOwnProperty("valueOf") !== true) {
$ERROR('#1: The Number prototype object has the property valueOf');
}
diff --git a/test/built-ins/Number/prototype/S15.7.4_A3.5.js b/test/built-ins/Number/prototype/S15.7.4_A3.5.js
index 7ff9bccfd..5d54261f7 100644
--- a/test/built-ins/Number/prototype/S15.7.4_A3.5.js
+++ b/test/built-ins/Number/prototype/S15.7.4_A3.5.js
@@ -8,6 +8,6 @@ description: The test uses hasOwnProperty() method
---*/
//CHECK#1
-if(Number.prototype.hasOwnProperty("toFixed") !== true){
+if (Number.prototype.hasOwnProperty("toFixed") !== true) {
$ERROR('#1: The Number prototype object has the property toFixed');
}
diff --git a/test/built-ins/Number/prototype/S15.7.4_A3.6.js b/test/built-ins/Number/prototype/S15.7.4_A3.6.js
index 71efe0c73..4860f866d 100644
--- a/test/built-ins/Number/prototype/S15.7.4_A3.6.js
+++ b/test/built-ins/Number/prototype/S15.7.4_A3.6.js
@@ -8,6 +8,6 @@ description: The test uses hasOwnProperty() method
---*/
//CHECK#1
-if(Number.prototype.hasOwnProperty("toExponential") !== true){
+if (Number.prototype.hasOwnProperty("toExponential") !== true) {
$ERROR('#1: The Number prototype object has the property toExponential');
}
diff --git a/test/built-ins/Number/prototype/S15.7.4_A3.7.js b/test/built-ins/Number/prototype/S15.7.4_A3.7.js
index fcd674d13..edf58debf 100644
--- a/test/built-ins/Number/prototype/S15.7.4_A3.7.js
+++ b/test/built-ins/Number/prototype/S15.7.4_A3.7.js
@@ -8,6 +8,6 @@ description: The test uses hasOwnProperty() method
---*/
//CHECK#1
-if(Number.prototype.hasOwnProperty("toPrecision") !== true){
+if (Number.prototype.hasOwnProperty("toPrecision") !== true) {
$ERROR('#1: The Number prototype object has the property toPrecision');
}
diff --git a/test/built-ins/Number/prototype/toExponential/range.js b/test/built-ins/Number/prototype/toExponential/range.js
index 8560ade75..f6f025f63 100644
--- a/test/built-ins/Number/prototype/toExponential/range.js
+++ b/test/built-ins/Number/prototype/toExponential/range.js
@@ -17,5 +17,3 @@ assert.throws(RangeError, () => (3).toExponential(-1));
assert.sameValue((3).toExponential(100), "3.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+0");
assert.throws(RangeError, () => (3).toExponential(101));
-
-
diff --git a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T01.js b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T01.js
index 726ceadd1..37dd400ed 100644
--- a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T01.js
+++ b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T01.js
@@ -10,62 +10,62 @@ description: calling on Number prototype object
---*/
//CHECK#1
-if(Number.prototype.toFixed() !== "0"){
+if (Number.prototype.toFixed() !== "0") {
$ERROR('#1: Number.prototype.toFixed() === "0"');
}
//CHECK#2
-if(Number.prototype.toFixed(0) !== "0"){
+if (Number.prototype.toFixed(0) !== "0") {
$ERROR('#2: Number.prototype.toFixed(0) === "0"');
}
//CHECK#3
-if(Number.prototype.toFixed(1) !== "0.0"){
+if (Number.prototype.toFixed(1) !== "0.0") {
$ERROR('#3: Number.prototype.toFixed(1) === "0.0"');
}
//CHECK#4
-if(Number.prototype.toFixed(1.1) !== "0.0"){
+if (Number.prototype.toFixed(1.1) !== "0.0") {
$ERROR('#4: Number.prototype.toFixed(1.1) === "0.0"');
}
//CHECK#5
-if(Number.prototype.toFixed(0.9) !== "0"){
+if (Number.prototype.toFixed(0.9) !== "0") {
$ERROR('#5: Number.prototype.toFixed(0.9) === "0"');
}
//CHECK#6
-if(Number.prototype.toFixed("1") !== "0.0"){
+if (Number.prototype.toFixed("1") !== "0.0") {
$ERROR('#6: Number.prototype.toFixed("1") === "0.0"');
}
//CHECK#7
-if(Number.prototype.toFixed("1.1") !== "0.0"){
+if (Number.prototype.toFixed("1.1") !== "0.0") {
$ERROR('#7: Number.prototype.toFixed("1.1") === "0.0"');
}
//CHECK#8
-if(Number.prototype.toFixed("0.9") !== "0"){
+if (Number.prototype.toFixed("0.9") !== "0") {
$ERROR('#8: Number.prototype.toFixed("0.9") === "0"');
}
//CHECK#9
-if(Number.prototype.toFixed(Number.NaN) !== "0"){
+if (Number.prototype.toFixed(Number.NaN) !== "0") {
$ERROR('#9: Number.prototype.toFixed(Number.NaN) === "0"');
}
//CHECK#10
-if(Number.prototype.toFixed("some string") !== "0"){
+if (Number.prototype.toFixed("some string") !== "0") {
$ERROR('#9: Number.prototype.toFixed("some string") === "0"');
}
//CHECK#11
-try{
- if(Number.prototype.toFixed(-0.1) !== "0"){
+try {
+ if (Number.prototype.toFixed(-0.1) !== "0") {
$ERROR('#10: Number.prototype.toFixed(-0.1) === "0"');
}
}
-catch(e){
- $ERROR('#10: Number.prototype.toFixed(-0.1) should not throw '+e);
+catch (e) {
+ $ERROR('#10: Number.prototype.toFixed(-0.1) should not throw ' + e);
}
diff --git a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T02.js b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T02.js
index 00d8c8065..7732b7ee5 100644
--- a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T02.js
+++ b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T02.js
@@ -10,61 +10,61 @@ description: calling on Number object
---*/
//CHECK#1
-if((new Number(1)).toFixed() !== "1"){
+if ((new Number(1)).toFixed() !== "1") {
$ERROR('#1: (new Number(1)).prototype.toFixed() === "1"');
}
//CHECK#2
-if((new Number(1)).toFixed(0) !== "1"){
+if ((new Number(1)).toFixed(0) !== "1") {
$ERROR('#2: (new Number(1)).prototype.toFixed(0) === "1"');
}
//CHECK#3
-if((new Number(1)).toFixed(1) !== "1.0"){
+if ((new Number(1)).toFixed(1) !== "1.0") {
$ERROR('#3: (new Number(1)).prototype.toFixed(1) === "1.0"');
}
//CHECK#4
-if((new Number(1)).toFixed(1.1) !== "1.0"){
+if ((new Number(1)).toFixed(1.1) !== "1.0") {
$ERROR('#4: (new Number(1)).toFixed(1.1) === "1.0"');
}
//CHECK#5
-if((new Number(1)).toFixed(0.9) !== "1"){
+if ((new Number(1)).toFixed(0.9) !== "1") {
$ERROR('#5: (new Number(1)).toFixed(0.9) === "1"');
}
//CHECK#6
-if((new Number(1)).toFixed("1") !== "1.0"){
+if ((new Number(1)).toFixed("1") !== "1.0") {
$ERROR('#6: (new Number(1)).toFixed("1") === "1.0"');
}
//CHECK#7
-if((new Number(1)).toFixed("1.1") !== "1.0"){
+if ((new Number(1)).toFixed("1.1") !== "1.0") {
$ERROR('#7: (new Number(1)).toFixed("1.1") === "1.0"');
}
//CHECK#8
-if((new Number(1)).toFixed("0.9") !== "1"){
+if ((new Number(1)).toFixed("0.9") !== "1") {
$ERROR('#8: (new Number(1)).toFixed("0.9") === "1"');
}
//CHECK#9
-if((new Number(1)).toFixed(Number.NaN) !== "1"){
+if ((new Number(1)).toFixed(Number.NaN) !== "1") {
$ERROR('#9: (new Number(1)).toFixed(Number.NaN) === "1"');
}
//CHECK#10
-if((new Number(1)).toFixed("some string") !== "1"){
+if ((new Number(1)).toFixed("some string") !== "1") {
$ERROR('#9: (new Number(1)).toFixed("some string") === "1"');
}
//CHECK#10
-try{
- if((new Number(1)).toFixed(-0.1) !== "1"){
+try {
+ if ((new Number(1)).toFixed(-0.1) !== "1") {
$ERROR('#10: (new Number(1)).toFixed(-0.1) === "1"');
}
}
-catch(e){
- $ERROR('#10: (new Number(1)).toFixed(-0.1) should not throw '+e);
+catch (e) {
+ $ERROR('#10: (new Number(1)).toFixed(-0.1) should not throw ' + e);
}
diff --git a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T01.js b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T01.js
index ab98bf30c..7fc8f1485 100644
--- a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T01.js
+++ b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T01.js
@@ -8,62 +8,62 @@ description: NaN is computed by new Number("string")
---*/
//CHECK#1
-if((new Number("a")).toFixed() !== "NaN"){
+if ((new Number("a")).toFixed() !== "NaN") {
$ERROR('#1: (new Number("a")).prototype.toFixed() === "NaN"');
}
//CHECK#2
-if((new Number("a")).toFixed(0) !== "NaN"){
+if ((new Number("a")).toFixed(0) !== "NaN") {
$ERROR('#2: (new Number("a")).prototype.toFixed(0) === "NaN"');
}
//CHECK#3
-if((new Number("a")).toFixed(1) !== "NaN"){
+if ((new Number("a")).toFixed(1) !== "NaN") {
$ERROR('#3: (new Number("a")).prototype.toFixed(1) === "NaN"');
}
//CHECK#4
-if((new Number("a")).toFixed(1.1) !== "NaN"){
+if ((new Number("a")).toFixed(1.1) !== "NaN") {
$ERROR('#4: (new Number("a")).toFixed(1.1) === "NaN"');
}
//CHECK#5
-if((new Number("a")).toFixed(0.9) !== "NaN"){
+if ((new Number("a")).toFixed(0.9) !== "NaN") {
$ERROR('#5: (new Number("a")).toFixed(0.9) === "NaN"');
}
//CHECK#6
-if((new Number("a")).toFixed("1") !== "NaN"){
+if ((new Number("a")).toFixed("1") !== "NaN") {
$ERROR('#6: (new Number("a")).toFixed("1") === "NaN"');
}
//CHECK#7
-if((new Number("a")).toFixed("1.1") !== "NaN"){
+if ((new Number("a")).toFixed("1.1") !== "NaN") {
$ERROR('#7: (new Number("a")).toFixed("1.1") === "NaN"');
}
//CHECK#8
-if((new Number("a")).toFixed("0.9") !== "NaN"){
+if ((new Number("a")).toFixed("0.9") !== "NaN") {
$ERROR('#8: (new Number("a")).toFixed("0.9") === "NaN"');
}
//CHECK#9
-if((new Number("a")).toFixed(Number.NaN) !== "NaN"){
+if ((new Number("a")).toFixed(Number.NaN) !== "NaN") {
$ERROR('#9: (new Number("a")).toFixed(Number.NaN) === "NaN"');
}
//CHECK#10
-if((new Number("a")).toFixed("some string") !== "NaN"){
+if ((new Number("a")).toFixed("some string") !== "NaN") {
$ERROR('#9: (new Number("a")).toFixed("some string") === "NaN"');
}
//CHECK#10
-try{
+try {
s = (new Number("a")).toFixed(Number.POSITIVE_INFINITY);
$ERROR('#10: (new Number("a")).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not return NaN');
}
-catch(e){
- if(!(e instanceof RangeError)){
- $ERROR('#10: (new Number("a")).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not '+e);
+catch (e) {
+ if (!(e instanceof RangeError)) {
+ $ERROR('#10: (new Number("a")).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not ' + e);
}
}
diff --git a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T02.js b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T02.js
index 459fcd998..cb96395d0 100644
--- a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T02.js
+++ b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T02.js
@@ -8,62 +8,62 @@ description: direct usage of NaN
---*/
//CHECK#1
-if(Number.NaN.toFixed() !== "NaN"){
+if (Number.NaN.toFixed() !== "NaN") {
$ERROR('#1: Number.NaN.prototype.toFixed() === "NaN"');
}
//CHECK#2
-if(Number.NaN.toFixed(0) !== "NaN"){
+if (Number.NaN.toFixed(0) !== "NaN") {
$ERROR('#2: Number.NaN.prototype.toFixed(0) === "NaN"');
}
//CHECK#3
-if(Number.NaN.toFixed(1) !== "NaN"){
+if (Number.NaN.toFixed(1) !== "NaN") {
$ERROR('#3: Number.NaN.prototype.toFixed(1) === "NaN"');
}
//CHECK#4
-if(Number.NaN.toFixed(1.1) !== "NaN"){
+if (Number.NaN.toFixed(1.1) !== "NaN") {
$ERROR('#4: Number.NaN.toFixed(1.1) === "NaN"');
}
//CHECK#5
-if(Number.NaN.toFixed(0.9) !== "NaN"){
+if (Number.NaN.toFixed(0.9) !== "NaN") {
$ERROR('#5: Number.NaN.toFixed(0.9) === "NaN"');
}
//CHECK#6
-if(Number.NaN.toFixed("1") !== "NaN"){
+if (Number.NaN.toFixed("1") !== "NaN") {
$ERROR('#6: Number.NaN.toFixed("1") === "NaN"');
}
//CHECK#7
-if(Number.NaN.toFixed("1.1") !== "NaN"){
+if (Number.NaN.toFixed("1.1") !== "NaN") {
$ERROR('#7: Number.NaN.toFixed("1.1") === "NaN"');
}
//CHECK#8
-if(Number.NaN.toFixed("0.9") !== "NaN"){
+if (Number.NaN.toFixed("0.9") !== "NaN") {
$ERROR('#8: Number.NaN.toFixed("0.9") === "NaN"');
}
//CHECK#9
-if(Number.NaN.toFixed(Number.NaN) !== "NaN"){
+if (Number.NaN.toFixed(Number.NaN) !== "NaN") {
$ERROR('#9: Number.NaN.toFixed(Number.NaN) === "NaN"');
}
//CHECK#10
-if(Number.NaN.toFixed("some string") !== "NaN"){
+if (Number.NaN.toFixed("some string") !== "NaN") {
$ERROR('#9: Number.NaN.toFixed("some string") === "NaN"');
}
//CHECK#10
-try{
+try {
s = Number.NaN.toFixed(Number.POSITIVE_INFINITY);
$ERROR('#10: Number.NaN.toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not return NaN');
}
-catch(e){
- if(!(e instanceof RangeError)){
- $ERROR('#10: Number.NaN.toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not '+e);
+catch (e) {
+ if (!(e instanceof RangeError)) {
+ $ERROR('#10: Number.NaN.toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not ' + e);
}
}
diff --git a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.4_T01.js b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.4_T01.js
index e2318bff2..e577c80f0 100644
--- a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.4_T01.js
+++ b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.4_T01.js
@@ -8,62 +8,62 @@ description: x is 10^21
---*/
//CHECK#1
-if((new Number(1e21)).toFixed() !== String(1e21)){
+if ((new Number(1e21)).toFixed() !== String(1e21)) {
$ERROR('#1: (new Number(1e21)).prototype.toFixed() === String(1e21)');
}
//CHECK#2
-if((new Number(1e21)).toFixed(0) !== String(1e21)){
+if ((new Number(1e21)).toFixed(0) !== String(1e21)) {
$ERROR('#2: (new Number(1e21)).prototype.toFixed(0) === String(1e21)');
}
//CHECK#3
-if((new Number(1e21)).toFixed(1) !== String(1e21)){
+if ((new Number(1e21)).toFixed(1) !== String(1e21)) {
$ERROR('#3: (new Number(1e21)).prototype.toFixed(1) === String(1e21)');
}
//CHECK#4
-if((new Number(1e21)).toFixed(1.1) !== String(1e21)){
+if ((new Number(1e21)).toFixed(1.1) !== String(1e21)) {
$ERROR('#4: (new Number(1e21)).toFixed(1.1) === String(1e21)');
}
//CHECK#5
-if((new Number(1e21)).toFixed(0.9) !== String(1e21)){
+if ((new Number(1e21)).toFixed(0.9) !== String(1e21)) {
$ERROR('#5: (new Number(1e21)).toFixed(0.9) === String(1e21)');
}
//CHECK#6
-if((new Number(1e21)).toFixed("1") !== String(1e21)){
+if ((new Number(1e21)).toFixed("1") !== String(1e21)) {
$ERROR('#6: (new Number(1e21)).toFixed("1") === String(1e21)');
}
//CHECK#7
-if((new Number(1e21)).toFixed("1.1") !== String(1e21)){
+if ((new Number(1e21)).toFixed("1.1") !== String(1e21)) {
$ERROR('#7: (new Number(1e21)).toFixed("1.1") === String(1e21)');
}
//CHECK#8
-if((new Number(1e21)).toFixed("0.9") !== String(1e21)){
+if ((new Number(1e21)).toFixed("0.9") !== String(1e21)) {
$ERROR('#8: (new Number(1e21)).toFixed("0.9") === String(1e21)');
}
//CHECK#9
-if((new Number(1e21)).toFixed(Number.NaN) !== String(1e21)){
+if ((new Number(1e21)).toFixed(Number.NaN) !== String(1e21)) {
$ERROR('#9: (new Number(1e21)).toFixed(Number.NaN) === String(1e21)');
}
//CHECK#10
-if((new Number(1e21)).toFixed("some string") !== String(1e21)){
+if ((new Number(1e21)).toFixed("some string") !== String(1e21)) {
$ERROR('#9: (new Number(1e21)).toFixed("some string") === String(1e21)');
}
//CHECK#10
-try{
+try {
s = (new Number(1e21)).toFixed(Number.POSITIVE_INFINITY);
$ERROR('#10: (new Number(1e21)).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not return NaN');
}
-catch(e){
- if(!(e instanceof RangeError)){
- $ERROR('#10: (new Number(1e21)).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not '+e);
+catch (e) {
+ if (!(e instanceof RangeError)) {
+ $ERROR('#10: (new Number(1e21)).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not ' + e);
}
}
diff --git a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A2_T01.js b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A2_T01.js
index 280def376..ad7bf816c 100644
--- a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A2_T01.js
+++ b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A2_T01.js
@@ -8,11 +8,11 @@ description: Checking Number prototype itself
---*/
//CHECK#1
-if(Number.prototype.toFixed.hasOwnProperty("length") !== true){
+if (Number.prototype.toFixed.hasOwnProperty("length") !== true) {
$ERROR('#1: The length property of the toFixed method is 1');
}
//CHECK#2
-if(Number.prototype.toFixed.length !== 1){
+if (Number.prototype.toFixed.length !== 1) {
$ERROR('#2: The length property of the toFixed method is 1');
}
diff --git a/test/built-ins/Number/prototype/toFixed/return-type.js b/test/built-ins/Number/prototype/toFixed/return-type.js
index 9bbfeeb86..106be090e 100644
--- a/test/built-ins/Number/prototype/toFixed/return-type.js
+++ b/test/built-ins/Number/prototype/toFixed/return-type.js
@@ -7,4 +7,4 @@ description: >
Number.prototype.toFixed returns a string value
---*/
-assert.sameValue(typeof (123.456).toFixed(), "string");
+assert.sameValue(typeof(123.456).toFixed(), "string");
diff --git a/test/built-ins/Number/prototype/toPrecision/range.js b/test/built-ins/Number/prototype/toPrecision/range.js
index ddaed46e7..5c5b39cb0 100644
--- a/test/built-ins/Number/prototype/toPrecision/range.js
+++ b/test/built-ins/Number/prototype/toPrecision/range.js
@@ -18,4 +18,3 @@ assert.throws(RangeError, () => (3).toPrecision(-10));
assert.sameValue((3).toPrecision(100), "3.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000");
assert.throws(RangeError, () => (3).toPrecision(101));
-
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T01.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T01.js
index 7100e7673..fb57dde96 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T01.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T01.js
@@ -11,41 +11,41 @@ description: undefined radix
---*/
//CHECK#1
-if(Number.prototype.toString() !== "0"){
+if (Number.prototype.toString() !== "0") {
$ERROR('#1: Number.prototype.toString() === "0"');
}
//CHECK#2
-if((new Number()).toString() !== "0"){
+if ((new Number()).toString() !== "0") {
$ERROR('#2: (new Number()).toString() === "0"');
}
//CHECK#3
-if((new Number(0)).toString() !== "0"){
+if ((new Number(0)).toString() !== "0") {
$ERROR('#3: (new Number(0)).toString() === "0"');
}
//CHECK#4
-if((new Number(-1)).toString() !== "-1"){
+if ((new Number(-1)).toString() !== "-1") {
$ERROR('#4: (new Number(-1)).toString() === "-1"');
}
//CHECK#5
-if((new Number(1)).toString() !== "1"){
+if ((new Number(1)).toString() !== "1") {
$ERROR('#5: (new Number(1)).toString() === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString() !== "NaN"){
+if ((new Number(Number.NaN)).toString() !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString() === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString() !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString() !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString() === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString() !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString() !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString() === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T02.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T02.js
index 48f0f4a84..73b2fb8e9 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T02.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T02.js
@@ -11,41 +11,41 @@ description: radix is 10
---*/
//CHECK#1
-if(Number.prototype.toString(10) !== "0"){
+if (Number.prototype.toString(10) !== "0") {
$ERROR('#1: Number.prototype.toString(10) === "0"');
}
//CHECK#2
-if((new Number()).toString(10) !== "0"){
+if ((new Number()).toString(10) !== "0") {
$ERROR('#2: (new Number()).toString(10) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(10) !== "0"){
+if ((new Number(0)).toString(10) !== "0") {
$ERROR('#3: (new Number(0)).toString(10) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(10) !== "-1"){
+if ((new Number(-1)).toString(10) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(10) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(10) !== "1"){
+if ((new Number(1)).toString(10) !== "1") {
$ERROR('#5: (new Number(1)).toString(10) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(10) !== "NaN"){
+if ((new Number(Number.NaN)).toString(10) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(10) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(10) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(10) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(10) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(10) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(10) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(10) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T03.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T03.js
index 16c179d44..8ed410a74 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T03.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T03.js
@@ -11,41 +11,41 @@ description: radix is undefined value
---*/
//CHECK#1
-if(Number.prototype.toString(undefined) !== "0"){
+if (Number.prototype.toString(undefined) !== "0") {
$ERROR('#1: Number.prototype.toString(undefined) === "0"');
}
//CHECK#2
-if((new Number()).toString(undefined) !== "0"){
+if ((new Number()).toString(undefined) !== "0") {
$ERROR('#2: (new Number()).toString(undefined) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(undefined) !== "0"){
+if ((new Number(0)).toString(undefined) !== "0") {
$ERROR('#3: (new Number(0)).toString(undefined) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(undefined) !== "-1"){
+if ((new Number(-1)).toString(undefined) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(undefined) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(undefined) !== "1"){
+if ((new Number(1)).toString(undefined) !== "1") {
$ERROR('#5: (new Number(1)).toString(undefined) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(undefined) !== "NaN"){
+if ((new Number(Number.NaN)).toString(undefined) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(undefined) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(undefined) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(undefined) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(undefined) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(undefined) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(undefined) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(undefined) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T01.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T01.js
index 20c270d5d..fd829eee8 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T01.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T01.js
@@ -10,41 +10,41 @@ description: radix is 2
---*/
//CHECK#1
-if(Number.prototype.toString(2) !== "0"){
+if (Number.prototype.toString(2) !== "0") {
$ERROR('#1: Number.prototype.toString(2) === "0"');
}
//CHECK#2
-if((new Number()).toString(2) !== "0"){
+if ((new Number()).toString(2) !== "0") {
$ERROR('#2: (new Number()).toString(2) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(2) !== "0"){
+if ((new Number(0)).toString(2) !== "0") {
$ERROR('#3: (new Number(0)).toString(2) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(2) !== "-1"){
+if ((new Number(-1)).toString(2) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(2) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(2) !== "1"){
+if ((new Number(1)).toString(2) !== "1") {
$ERROR('#5: (new Number(1)).toString(2) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(2) !== "NaN"){
+if ((new Number(Number.NaN)).toString(2) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(2) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(2) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(2) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(2) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(2) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(2) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(2) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T02.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T02.js
index 2d3d73c36..2bf3e565b 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T02.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T02.js
@@ -10,41 +10,41 @@ description: radix is 3
---*/
//CHECK#1
-if(Number.prototype.toString(3) !== "0"){
+if (Number.prototype.toString(3) !== "0") {
$ERROR('#1: Number.prototype.toString(3) === "0"');
}
//CHECK#2
-if((new Number()).toString(3) !== "0"){
+if ((new Number()).toString(3) !== "0") {
$ERROR('#2: (new Number()).toString(3) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(3) !== "0"){
+if ((new Number(0)).toString(3) !== "0") {
$ERROR('#3: (new Number(0)).toString(3) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(3) !== "-1"){
+if ((new Number(-1)).toString(3) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(3) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(3) !== "1"){
+if ((new Number(1)).toString(3) !== "1") {
$ERROR('#5: (new Number(1)).toString(3) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(3) !== "NaN"){
+if ((new Number(Number.NaN)).toString(3) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(3) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(3) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(3) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(3) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(3) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(3) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(3) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T03.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T03.js
index 33979bd07..e6f6d98f8 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T03.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T03.js
@@ -10,41 +10,41 @@ description: radix is 4
---*/
//CHECK#1
-if(Number.prototype.toString(4) !== "0"){
+if (Number.prototype.toString(4) !== "0") {
$ERROR('#1: Number.prototype.toString(4) === "0"');
}
//CHECK#2
-if((new Number()).toString(4) !== "0"){
+if ((new Number()).toString(4) !== "0") {
$ERROR('#2: (new Number()).toString(4) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(4) !== "0"){
+if ((new Number(0)).toString(4) !== "0") {
$ERROR('#3: (new Number(0)).toString(4) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(4) !== "-1"){
+if ((new Number(-1)).toString(4) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(4) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(4) !== "1"){
+if ((new Number(1)).toString(4) !== "1") {
$ERROR('#5: (new Number(1)).toString(4) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(4) !== "NaN"){
+if ((new Number(Number.NaN)).toString(4) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(4) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(4) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(4) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(4) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(4) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(4) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(4) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T04.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T04.js
index f1a4eb7f4..d6f7c812d 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T04.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T04.js
@@ -10,41 +10,41 @@ description: radix is 5
---*/
//CHECK#1
-if(Number.prototype.toString(5) !== "0"){
+if (Number.prototype.toString(5) !== "0") {
$ERROR('#1: Number.prototype.toString(5) === "0"');
}
//CHECK#2
-if((new Number()).toString(5) !== "0"){
+if ((new Number()).toString(5) !== "0") {
$ERROR('#2: (new Number()).toString(5) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(5) !== "0"){
+if ((new Number(0)).toString(5) !== "0") {
$ERROR('#3: (new Number(0)).toString(5) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(5) !== "-1"){
+if ((new Number(-1)).toString(5) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(5) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(5) !== "1"){
+if ((new Number(1)).toString(5) !== "1") {
$ERROR('#5: (new Number(1)).toString(5) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(5) !== "NaN"){
+if ((new Number(Number.NaN)).toString(5) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(5) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(5) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(5) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(5) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(5) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(5) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(5) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T05.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T05.js
index 8b9866606..80da9e51e 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T05.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T05.js
@@ -10,41 +10,41 @@ description: radix is 6
---*/
//CHECK#1
-if(Number.prototype.toString(6) !== "0"){
+if (Number.prototype.toString(6) !== "0") {
$ERROR('#1: Number.prototype.toString(6) === "0"');
}
//CHECK#2
-if((new Number()).toString(6) !== "0"){
+if ((new Number()).toString(6) !== "0") {
$ERROR('#2: (new Number()).toString(6) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(6) !== "0"){
+if ((new Number(0)).toString(6) !== "0") {
$ERROR('#3: (new Number(0)).toString(6) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(6) !== "-1"){
+if ((new Number(-1)).toString(6) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(6) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(6) !== "1"){
+if ((new Number(1)).toString(6) !== "1") {
$ERROR('#5: (new Number(1)).toString(6) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(6) !== "NaN"){
+if ((new Number(Number.NaN)).toString(6) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(6) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(6) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(6) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(6) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(6) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(6) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(6) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T06.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T06.js
index 3422a253c..aac01ee0a 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T06.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T06.js
@@ -10,41 +10,41 @@ description: radix is 7
---*/
//CHECK#1
-if(Number.prototype.toString(7) !== "0"){
+if (Number.prototype.toString(7) !== "0") {
$ERROR('#1: Number.prototype.toString(7) === "0"');
}
//CHECK#2
-if((new Number()).toString(7) !== "0"){
+if ((new Number()).toString(7) !== "0") {
$ERROR('#2: (new Number()).toString(7) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(7) !== "0"){
+if ((new Number(0)).toString(7) !== "0") {
$ERROR('#3: (new Number(0)).toString(7) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(7) !== "-1"){
+if ((new Number(-1)).toString(7) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(7) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(7) !== "1"){
+if ((new Number(1)).toString(7) !== "1") {
$ERROR('#5: (new Number(1)).toString(7) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(7) !== "NaN"){
+if ((new Number(Number.NaN)).toString(7) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(7) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(7) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(7) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(7) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(7) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(7) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(7) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T07.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T07.js
index 131adda25..334a1205f 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T07.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T07.js
@@ -10,41 +10,41 @@ description: radix is 8
---*/
//CHECK#1
-if(Number.prototype.toString(8) !== "0"){
+if (Number.prototype.toString(8) !== "0") {
$ERROR('#1: Number.prototype.toString(8) === "0"');
}
//CHECK#2
-if((new Number()).toString(8) !== "0"){
+if ((new Number()).toString(8) !== "0") {
$ERROR('#2: (new Number()).toString(8) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(8) !== "0"){
+if ((new Number(0)).toString(8) !== "0") {
$ERROR('#3: (new Number(0)).toString(8) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(8) !== "-1"){
+if ((new Number(-1)).toString(8) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(8) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(8) !== "1"){
+if ((new Number(1)).toString(8) !== "1") {
$ERROR('#5: (new Number(1)).toString(8) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(8) !== "NaN"){
+if ((new Number(Number.NaN)).toString(8) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(8) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(8) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(8) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(8) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(8) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(8) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(8) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T08.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T08.js
index c66838283..50d674dee 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T08.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T08.js
@@ -10,41 +10,41 @@ description: radix is 9
---*/
//CHECK#1
-if(Number.prototype.toString(9) !== "0"){
+if (Number.prototype.toString(9) !== "0") {
$ERROR('#1: Number.prototype.toString(9) === "0"');
}
//CHECK#2
-if((new Number()).toString(9) !== "0"){
+if ((new Number()).toString(9) !== "0") {
$ERROR('#2: (new Number()).toString(9) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(9) !== "0"){
+if ((new Number(0)).toString(9) !== "0") {
$ERROR('#3: (new Number(0)).toString(9) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(9) !== "-1"){
+if ((new Number(-1)).toString(9) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(9) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(9) !== "1"){
+if ((new Number(1)).toString(9) !== "1") {
$ERROR('#5: (new Number(1)).toString(9) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(9) !== "NaN"){
+if ((new Number(Number.NaN)).toString(9) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(9) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(9) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(9) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(9) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(9) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(9) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(9) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T09.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T09.js
index e4a090353..98014b16c 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T09.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T09.js
@@ -10,41 +10,41 @@ description: radix is 11
---*/
//CHECK#1
-if(Number.prototype.toString(11) !== "0"){
+if (Number.prototype.toString(11) !== "0") {
$ERROR('#1: Number.prototype.toString(11) === "0"');
}
//CHECK#2
-if((new Number()).toString(11) !== "0"){
+if ((new Number()).toString(11) !== "0") {
$ERROR('#2: (new Number()).toString(11) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(11) !== "0"){
+if ((new Number(0)).toString(11) !== "0") {
$ERROR('#3: (new Number(0)).toString(11) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(11) !== "-1"){
+if ((new Number(-1)).toString(11) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(11) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(11) !== "1"){
+if ((new Number(1)).toString(11) !== "1") {
$ERROR('#5: (new Number(1)).toString(11) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(11) !== "NaN"){
+if ((new Number(Number.NaN)).toString(11) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(11) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(11) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(11) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(11) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(11) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(11) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(11) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T10.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T10.js
index 5804302f3..6a2f03a54 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T10.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T10.js
@@ -10,41 +10,41 @@ description: radix is 12
---*/
//CHECK#1
-if(Number.prototype.toString(12) !== "0"){
+if (Number.prototype.toString(12) !== "0") {
$ERROR('#1: Number.prototype.toString(12) === "0"');
}
//CHECK#2
-if((new Number()).toString(12) !== "0"){
+if ((new Number()).toString(12) !== "0") {
$ERROR('#2: (new Number()).toString(12) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(12) !== "0"){
+if ((new Number(0)).toString(12) !== "0") {
$ERROR('#3: (new Number(0)).toString(12) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(12) !== "-1"){
+if ((new Number(-1)).toString(12) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(12) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(12) !== "1"){
+if ((new Number(1)).toString(12) !== "1") {
$ERROR('#5: (new Number(1)).toString(12) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(12) !== "NaN"){
+if ((new Number(Number.NaN)).toString(12) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(12) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(12) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(12) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(12) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(12) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(12) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(12) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T11.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T11.js
index 277dc3921..010360671 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T11.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T11.js
@@ -10,41 +10,41 @@ description: radix is 13
---*/
//CHECK#1
-if(Number.prototype.toString(13) !== "0"){
+if (Number.prototype.toString(13) !== "0") {
$ERROR('#1: Number.prototype.toString(13) === "0"');
}
//CHECK#2
-if((new Number()).toString(13) !== "0"){
+if ((new Number()).toString(13) !== "0") {
$ERROR('#2: (new Number()).toString(13) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(13) !== "0"){
+if ((new Number(0)).toString(13) !== "0") {
$ERROR('#3: (new Number(0)).toString(13) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(13) !== "-1"){
+if ((new Number(-1)).toString(13) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(13) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(13) !== "1"){
+if ((new Number(1)).toString(13) !== "1") {
$ERROR('#5: (new Number(1)).toString(13) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(13) !== "NaN"){
+if ((new Number(Number.NaN)).toString(13) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(13) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(13) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(13) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(13) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(13) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(13) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(13) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T12.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T12.js
index eead1a532..86b09f7ee 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T12.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T12.js
@@ -10,41 +10,41 @@ description: radix is 14
---*/
//CHECK#1
-if(Number.prototype.toString(14) !== "0"){
+if (Number.prototype.toString(14) !== "0") {
$ERROR('#1: Number.prototype.toString(14) === "0"');
}
//CHECK#2
-if((new Number()).toString(14) !== "0"){
+if ((new Number()).toString(14) !== "0") {
$ERROR('#2: (new Number()).toString(14) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(14) !== "0"){
+if ((new Number(0)).toString(14) !== "0") {
$ERROR('#3: (new Number(0)).toString(14) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(14) !== "-1"){
+if ((new Number(-1)).toString(14) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(14) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(14) !== "1"){
+if ((new Number(1)).toString(14) !== "1") {
$ERROR('#5: (new Number(1)).toString(14) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(14) !== "NaN"){
+if ((new Number(Number.NaN)).toString(14) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(14) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(14) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(14) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(14) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(14) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(14) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(14) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T13.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T13.js
index 01b284aaf..22947fb57 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T13.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T13.js
@@ -10,41 +10,41 @@ description: radix is 15
---*/
//CHECK#1
-if(Number.prototype.toString(15) !== "0"){
+if (Number.prototype.toString(15) !== "0") {
$ERROR('#1: Number.prototype.toString(15) === "0"');
}
//CHECK#2
-if((new Number()).toString(15) !== "0"){
+if ((new Number()).toString(15) !== "0") {
$ERROR('#2: (new Number()).toString(15) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(15) !== "0"){
+if ((new Number(0)).toString(15) !== "0") {
$ERROR('#3: (new Number(0)).toString(15) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(15) !== "-1"){
+if ((new Number(-1)).toString(15) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(15) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(15) !== "1"){
+if ((new Number(1)).toString(15) !== "1") {
$ERROR('#5: (new Number(1)).toString(15) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(15) !== "NaN"){
+if ((new Number(Number.NaN)).toString(15) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(15) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(15) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(15) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(15) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(15) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(15) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(15) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T14.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T14.js
index ed1c70aae..9daf9df1a 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T14.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T14.js
@@ -10,41 +10,41 @@ description: radix is 16
---*/
//CHECK#1
-if(Number.prototype.toString(16) !== "0"){
+if (Number.prototype.toString(16) !== "0") {
$ERROR('#1: Number.prototype.toString(16) === "0"');
}
//CHECK#2
-if((new Number()).toString(16) !== "0"){
+if ((new Number()).toString(16) !== "0") {
$ERROR('#2: (new Number()).toString(16) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(16) !== "0"){
+if ((new Number(0)).toString(16) !== "0") {
$ERROR('#3: (new Number(0)).toString(16) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(16) !== "-1"){
+if ((new Number(-1)).toString(16) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(16) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(16) !== "1"){
+if ((new Number(1)).toString(16) !== "1") {
$ERROR('#5: (new Number(1)).toString(16) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(16) !== "NaN"){
+if ((new Number(Number.NaN)).toString(16) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(16) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(16) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(16) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(16) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(16) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(16) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(16) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T15.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T15.js
index 5355c100f..2154961ee 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T15.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T15.js
@@ -10,41 +10,41 @@ description: radix is 17
---*/
//CHECK#1
-if(Number.prototype.toString(17) !== "0"){
+if (Number.prototype.toString(17) !== "0") {
$ERROR('#1: Number.prototype.toString(17) === "0"');
}
//CHECK#2
-if((new Number()).toString(17) !== "0"){
+if ((new Number()).toString(17) !== "0") {
$ERROR('#2: (new Number()).toString(17) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(17) !== "0"){
+if ((new Number(0)).toString(17) !== "0") {
$ERROR('#3: (new Number(0)).toString(17) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(17) !== "-1"){
+if ((new Number(-1)).toString(17) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(17) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(17) !== "1"){
+if ((new Number(1)).toString(17) !== "1") {
$ERROR('#5: (new Number(1)).toString(17) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(17) !== "NaN"){
+if ((new Number(Number.NaN)).toString(17) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(17) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(17) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(17) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(17) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(17) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(17) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(17) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T16.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T16.js
index 5367718ef..b2c9559b1 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T16.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T16.js
@@ -10,41 +10,41 @@ description: radix is 18
---*/
//CHECK#1
-if(Number.prototype.toString(18) !== "0"){
+if (Number.prototype.toString(18) !== "0") {
$ERROR('#1: Number.prototype.toString(18) === "0"');
}
//CHECK#2
-if((new Number()).toString(18) !== "0"){
+if ((new Number()).toString(18) !== "0") {
$ERROR('#2: (new Number()).toString(18) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(18) !== "0"){
+if ((new Number(0)).toString(18) !== "0") {
$ERROR('#3: (new Number(0)).toString(18) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(18) !== "-1"){
+if ((new Number(-1)).toString(18) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(18) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(18) !== "1"){
+if ((new Number(1)).toString(18) !== "1") {
$ERROR('#5: (new Number(1)).toString(18) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(18) !== "NaN"){
+if ((new Number(Number.NaN)).toString(18) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(18) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(18) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(18) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(18) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(18) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(18) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(18) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T17.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T17.js
index bc51f7c3a..93469824b 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T17.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T17.js
@@ -10,41 +10,41 @@ description: radix is 19
---*/
//CHECK#1
-if(Number.prototype.toString(19) !== "0"){
+if (Number.prototype.toString(19) !== "0") {
$ERROR('#1: Number.prototype.toString(19) === "0"');
}
//CHECK#2
-if((new Number()).toString(19) !== "0"){
+if ((new Number()).toString(19) !== "0") {
$ERROR('#2: (new Number()).toString(19) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(19) !== "0"){
+if ((new Number(0)).toString(19) !== "0") {
$ERROR('#3: (new Number(0)).toString(19) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(19) !== "-1"){
+if ((new Number(-1)).toString(19) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(19) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(19) !== "1"){
+if ((new Number(1)).toString(19) !== "1") {
$ERROR('#5: (new Number(1)).toString(19) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(19) !== "NaN"){
+if ((new Number(Number.NaN)).toString(19) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(19) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(19) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(19) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(19) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(19) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(19) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(19) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T18.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T18.js
index f5ebae949..3c0aa4a40 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T18.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T18.js
@@ -10,41 +10,41 @@ description: radix is 20
---*/
//CHECK#1
-if(Number.prototype.toString(20) !== "0"){
+if (Number.prototype.toString(20) !== "0") {
$ERROR('#1: Number.prototype.toString(20) === "0"');
}
//CHECK#2
-if((new Number()).toString(20) !== "0"){
+if ((new Number()).toString(20) !== "0") {
$ERROR('#2: (new Number()).toString(20) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(20) !== "0"){
+if ((new Number(0)).toString(20) !== "0") {
$ERROR('#3: (new Number(0)).toString(20) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(20) !== "-1"){
+if ((new Number(-1)).toString(20) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(20) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(20) !== "1"){
+if ((new Number(1)).toString(20) !== "1") {
$ERROR('#5: (new Number(1)).toString(20) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(20) !== "NaN"){
+if ((new Number(Number.NaN)).toString(20) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(20) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(20) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(20) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(20) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(20) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(20) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(20) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T19.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T19.js
index a42479834..1ccdc57c6 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T19.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T19.js
@@ -10,41 +10,41 @@ description: radix is 21
---*/
//CHECK#1
-if(Number.prototype.toString(21) !== "0"){
+if (Number.prototype.toString(21) !== "0") {
$ERROR('#1: Number.prototype.toString(21) === "0"');
}
//CHECK#2
-if((new Number()).toString(21) !== "0"){
+if ((new Number()).toString(21) !== "0") {
$ERROR('#2: (new Number()).toString(21) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(21) !== "0"){
+if ((new Number(0)).toString(21) !== "0") {
$ERROR('#3: (new Number(0)).toString(21) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(21) !== "-1"){
+if ((new Number(-1)).toString(21) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(21) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(21) !== "1"){
+if ((new Number(1)).toString(21) !== "1") {
$ERROR('#5: (new Number(1)).toString(21) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(21) !== "NaN"){
+if ((new Number(Number.NaN)).toString(21) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(21) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(21) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(21) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(21) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(21) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(21) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(21) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T20.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T20.js
index 8ee2cae70..762ef884d 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T20.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T20.js
@@ -10,41 +10,41 @@ description: radix is 22
---*/
//CHECK#1
-if(Number.prototype.toString(22) !== "0"){
+if (Number.prototype.toString(22) !== "0") {
$ERROR('#1: Number.prototype.toString(22) === "0"');
}
//CHECK#2
-if((new Number()).toString(22) !== "0"){
+if ((new Number()).toString(22) !== "0") {
$ERROR('#2: (new Number()).toString(22) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(22) !== "0"){
+if ((new Number(0)).toString(22) !== "0") {
$ERROR('#3: (new Number(0)).toString(22) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(22) !== "-1"){
+if ((new Number(-1)).toString(22) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(22) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(22) !== "1"){
+if ((new Number(1)).toString(22) !== "1") {
$ERROR('#5: (new Number(1)).toString(22) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(22) !== "NaN"){
+if ((new Number(Number.NaN)).toString(22) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(22) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(22) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(22) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(22) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(22) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(22) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(22) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T21.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T21.js
index 6588d3e70..d7bb9b9e9 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T21.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T21.js
@@ -10,41 +10,41 @@ description: radix is 23
---*/
//CHECK#1
-if(Number.prototype.toString(23) !== "0"){
+if (Number.prototype.toString(23) !== "0") {
$ERROR('#1: Number.prototype.toString(23) === "0"');
}
//CHECK#2
-if((new Number()).toString(23) !== "0"){
+if ((new Number()).toString(23) !== "0") {
$ERROR('#2: (new Number()).toString(23) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(23) !== "0"){
+if ((new Number(0)).toString(23) !== "0") {
$ERROR('#3: (new Number(0)).toString(23) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(23) !== "-1"){
+if ((new Number(-1)).toString(23) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(23) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(23) !== "1"){
+if ((new Number(1)).toString(23) !== "1") {
$ERROR('#5: (new Number(1)).toString(23) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(23) !== "NaN"){
+if ((new Number(Number.NaN)).toString(23) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(23) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(23) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(23) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(23) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(23) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(23) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(23) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T22.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T22.js
index f9e726d49..90f3a18f5 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T22.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T22.js
@@ -10,41 +10,41 @@ description: radix is 24
---*/
//CHECK#1
-if(Number.prototype.toString(24) !== "0"){
+if (Number.prototype.toString(24) !== "0") {
$ERROR('#1: Number.prototype.toString(24) === "0"');
}
//CHECK#2
-if((new Number()).toString(24) !== "0"){
+if ((new Number()).toString(24) !== "0") {
$ERROR('#2: (new Number()).toString(24) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(24) !== "0"){
+if ((new Number(0)).toString(24) !== "0") {
$ERROR('#3: (new Number(0)).toString(24) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(24) !== "-1"){
+if ((new Number(-1)).toString(24) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(24) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(24) !== "1"){
+if ((new Number(1)).toString(24) !== "1") {
$ERROR('#5: (new Number(1)).toString(24) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(24) !== "NaN"){
+if ((new Number(Number.NaN)).toString(24) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(24) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(24) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(24) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(24) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(24) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(24) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(24) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T23.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T23.js
index 7a8be29a9..4d959df96 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T23.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T23.js
@@ -10,41 +10,41 @@ description: radix is 25
---*/
//CHECK#1
-if(Number.prototype.toString(25) !== "0"){
+if (Number.prototype.toString(25) !== "0") {
$ERROR('#1: Number.prototype.toString(25) === "0"');
}
//CHECK#2
-if((new Number()).toString(25) !== "0"){
+if ((new Number()).toString(25) !== "0") {
$ERROR('#2: (new Number()).toString(25) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(25) !== "0"){
+if ((new Number(0)).toString(25) !== "0") {
$ERROR('#3: (new Number(0)).toString(25) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(25) !== "-1"){
+if ((new Number(-1)).toString(25) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(25) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(25) !== "1"){
+if ((new Number(1)).toString(25) !== "1") {
$ERROR('#5: (new Number(1)).toString(25) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(25) !== "NaN"){
+if ((new Number(Number.NaN)).toString(25) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(25) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(25) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(25) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(25) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(25) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(25) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(25) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T24.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T24.js
index 46b4b8c66..a17f09419 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T24.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T24.js
@@ -10,41 +10,41 @@ description: radix is 26
---*/
//CHECK#1
-if(Number.prototype.toString(26) !== "0"){
+if (Number.prototype.toString(26) !== "0") {
$ERROR('#1: Number.prototype.toString(26) === "0"');
}
//CHECK#2
-if((new Number()).toString(26) !== "0"){
+if ((new Number()).toString(26) !== "0") {
$ERROR('#2: (new Number()).toString(26) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(26) !== "0"){
+if ((new Number(0)).toString(26) !== "0") {
$ERROR('#3: (new Number(0)).toString(26) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(26) !== "-1"){
+if ((new Number(-1)).toString(26) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(26) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(26) !== "1"){
+if ((new Number(1)).toString(26) !== "1") {
$ERROR('#5: (new Number(1)).toString(26) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(26) !== "NaN"){
+if ((new Number(Number.NaN)).toString(26) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(26) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(26) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(26) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(26) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(26) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(26) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(26) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T25.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T25.js
index 534de71ec..69bb10dc8 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T25.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T25.js
@@ -10,41 +10,41 @@ description: radix is 27
---*/
//CHECK#1
-if(Number.prototype.toString(27) !== "0"){
+if (Number.prototype.toString(27) !== "0") {
$ERROR('#1: Number.prototype.toString(27) === "0"');
}
//CHECK#2
-if((new Number()).toString(27) !== "0"){
+if ((new Number()).toString(27) !== "0") {
$ERROR('#2: (new Number()).toString(27) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(27) !== "0"){
+if ((new Number(0)).toString(27) !== "0") {
$ERROR('#3: (new Number(0)).toString(27) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(27) !== "-1"){
+if ((new Number(-1)).toString(27) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(27) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(27) !== "1"){
+if ((new Number(1)).toString(27) !== "1") {
$ERROR('#5: (new Number(1)).toString(27) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(27) !== "NaN"){
+if ((new Number(Number.NaN)).toString(27) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(27) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(27) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(27) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(27) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(27) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(27) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(27) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T26.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T26.js
index 71cd09775..f80f78216 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T26.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T26.js
@@ -10,41 +10,41 @@ description: radix is 28
---*/
//CHECK#1
-if(Number.prototype.toString(28) !== "0"){
+if (Number.prototype.toString(28) !== "0") {
$ERROR('#1: Number.prototype.toString(28) === "0"');
}
//CHECK#2
-if((new Number()).toString(28) !== "0"){
+if ((new Number()).toString(28) !== "0") {
$ERROR('#2: (new Number()).toString(28) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(28) !== "0"){
+if ((new Number(0)).toString(28) !== "0") {
$ERROR('#3: (new Number(0)).toString(28) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(28) !== "-1"){
+if ((new Number(-1)).toString(28) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(28) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(28) !== "1"){
+if ((new Number(1)).toString(28) !== "1") {
$ERROR('#5: (new Number(1)).toString(28) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(28) !== "NaN"){
+if ((new Number(Number.NaN)).toString(28) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(28) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(28) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(28) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(28) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(28) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(28) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(28) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T27.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T27.js
index f8dd136b8..e76d24393 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T27.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T27.js
@@ -10,41 +10,41 @@ description: radix is 29
---*/
//CHECK#1
-if(Number.prototype.toString(29) !== "0"){
+if (Number.prototype.toString(29) !== "0") {
$ERROR('#1: Number.prototype.toString(29) === "0"');
}
//CHECK#2
-if((new Number()).toString(29) !== "0"){
+if ((new Number()).toString(29) !== "0") {
$ERROR('#2: (new Number()).toString(29) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(29) !== "0"){
+if ((new Number(0)).toString(29) !== "0") {
$ERROR('#3: (new Number(0)).toString(29) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(29) !== "-1"){
+if ((new Number(-1)).toString(29) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(29) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(29) !== "1"){
+if ((new Number(1)).toString(29) !== "1") {
$ERROR('#5: (new Number(1)).toString(29) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(29) !== "NaN"){
+if ((new Number(Number.NaN)).toString(29) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(29) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(29) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(29) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(29) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(29) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(29) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(29) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T28.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T28.js
index deda5fc2e..1785e33be 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T28.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T28.js
@@ -10,41 +10,41 @@ description: radix is 30
---*/
//CHECK#1
-if(Number.prototype.toString(30) !== "0"){
+if (Number.prototype.toString(30) !== "0") {
$ERROR('#1: Number.prototype.toString(30) === "0"');
}
//CHECK#2
-if((new Number()).toString(30) !== "0"){
+if ((new Number()).toString(30) !== "0") {
$ERROR('#2: (new Number()).toString(30) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(30) !== "0"){
+if ((new Number(0)).toString(30) !== "0") {
$ERROR('#3: (new Number(0)).toString(30) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(30) !== "-1"){
+if ((new Number(-1)).toString(30) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(30) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(30) !== "1"){
+if ((new Number(1)).toString(30) !== "1") {
$ERROR('#5: (new Number(1)).toString(30) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(30) !== "NaN"){
+if ((new Number(Number.NaN)).toString(30) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(30) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(30) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(30) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(30) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(30) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(30) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(30) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T29.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T29.js
index c675984c0..13d43a251 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T29.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T29.js
@@ -10,41 +10,41 @@ description: radix is 31
---*/
//CHECK#1
-if(Number.prototype.toString(31) !== "0"){
+if (Number.prototype.toString(31) !== "0") {
$ERROR('#1: Number.prototype.toString(31) === "0"');
}
//CHECK#2
-if((new Number()).toString(31) !== "0"){
+if ((new Number()).toString(31) !== "0") {
$ERROR('#2: (new Number()).toString(31) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(31) !== "0"){
+if ((new Number(0)).toString(31) !== "0") {
$ERROR('#3: (new Number(0)).toString(31) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(31) !== "-1"){
+if ((new Number(-1)).toString(31) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(31) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(31) !== "1"){
+if ((new Number(1)).toString(31) !== "1") {
$ERROR('#5: (new Number(1)).toString(31) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(31) !== "NaN"){
+if ((new Number(Number.NaN)).toString(31) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(31) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(31) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(31) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(31) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(31) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(31) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(31) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T30.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T30.js
index abe038384..41055500e 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T30.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T30.js
@@ -10,41 +10,41 @@ description: radix is 32
---*/
//CHECK#1
-if(Number.prototype.toString(32) !== "0"){
+if (Number.prototype.toString(32) !== "0") {
$ERROR('#1: Number.prototype.toString(32) === "0"');
}
//CHECK#2
-if((new Number()).toString(32) !== "0"){
+if ((new Number()).toString(32) !== "0") {
$ERROR('#2: (new Number()).toString(32) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(32) !== "0"){
+if ((new Number(0)).toString(32) !== "0") {
$ERROR('#3: (new Number(0)).toString(32) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(32) !== "-1"){
+if ((new Number(-1)).toString(32) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(32) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(32) !== "1"){
+if ((new Number(1)).toString(32) !== "1") {
$ERROR('#5: (new Number(1)).toString(32) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(32) !== "NaN"){
+if ((new Number(Number.NaN)).toString(32) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(32) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(32) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(32) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(32) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(32) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(32) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(32) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T31.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T31.js
index 9f0187a6a..b14849bfa 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T31.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T31.js
@@ -10,41 +10,41 @@ description: radix is 33
---*/
//CHECK#1
-if(Number.prototype.toString(33) !== "0"){
+if (Number.prototype.toString(33) !== "0") {
$ERROR('#1: Number.prototype.toString(33) === "0"');
}
//CHECK#2
-if((new Number()).toString(33) !== "0"){
+if ((new Number()).toString(33) !== "0") {
$ERROR('#2: (new Number()).toString(33) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(33) !== "0"){
+if ((new Number(0)).toString(33) !== "0") {
$ERROR('#3: (new Number(0)).toString(33) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(33) !== "-1"){
+if ((new Number(-1)).toString(33) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(33) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(33) !== "1"){
+if ((new Number(1)).toString(33) !== "1") {
$ERROR('#5: (new Number(1)).toString(33) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(33) !== "NaN"){
+if ((new Number(Number.NaN)).toString(33) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(33) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(33) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(33) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(33) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(33) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(33) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(33) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T32.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T32.js
index 99543d170..9de1cca33 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T32.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T32.js
@@ -10,41 +10,41 @@ description: radix is 34
---*/
//CHECK#1
-if(Number.prototype.toString(34) !== "0"){
+if (Number.prototype.toString(34) !== "0") {
$ERROR('#1: Number.prototype.toString(34) === "0"');
}
//CHECK#2
-if((new Number()).toString(34) !== "0"){
+if ((new Number()).toString(34) !== "0") {
$ERROR('#2: (new Number()).toString(34) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(34) !== "0"){
+if ((new Number(0)).toString(34) !== "0") {
$ERROR('#3: (new Number(0)).toString(34) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(34) !== "-1"){
+if ((new Number(-1)).toString(34) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(34) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(34) !== "1"){
+if ((new Number(1)).toString(34) !== "1") {
$ERROR('#5: (new Number(1)).toString(34) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(34) !== "NaN"){
+if ((new Number(Number.NaN)).toString(34) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(34) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(34) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(34) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(34) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(34) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(34) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(34) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T33.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T33.js
index be9013758..55fb04064 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T33.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T33.js
@@ -10,41 +10,41 @@ description: radix is 35
---*/
//CHECK#1
-if(Number.prototype.toString(35) !== "0"){
+if (Number.prototype.toString(35) !== "0") {
$ERROR('#1: Number.prototype.toString(35) === "0"');
}
//CHECK#2
-if((new Number()).toString(35) !== "0"){
+if ((new Number()).toString(35) !== "0") {
$ERROR('#2: (new Number()).toString(35) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(35) !== "0"){
+if ((new Number(0)).toString(35) !== "0") {
$ERROR('#3: (new Number(0)).toString(35) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(35) !== "-1"){
+if ((new Number(-1)).toString(35) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(35) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(35) !== "1"){
+if ((new Number(1)).toString(35) !== "1") {
$ERROR('#5: (new Number(1)).toString(35) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(35) !== "NaN"){
+if ((new Number(Number.NaN)).toString(35) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(35) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(35) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(35) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(35) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(35) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(35) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(35) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T34.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T34.js
index 7c2cfabbc..82f8fea87 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T34.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T34.js
@@ -10,41 +10,41 @@ description: radix is 36
---*/
//CHECK#1
-if(Number.prototype.toString(36) !== "0"){
+if (Number.prototype.toString(36) !== "0") {
$ERROR('#1: Number.prototype.toString(36) === "0"');
}
//CHECK#2
-if((new Number()).toString(36) !== "0"){
+if ((new Number()).toString(36) !== "0") {
$ERROR('#2: (new Number()).toString(36) === "0"');
}
//CHECK#3
-if((new Number(0)).toString(36) !== "0"){
+if ((new Number(0)).toString(36) !== "0") {
$ERROR('#3: (new Number(0)).toString(36) === "0"');
}
//CHECK#4
-if((new Number(-1)).toString(36) !== "-1"){
+if ((new Number(-1)).toString(36) !== "-1") {
$ERROR('#4: (new Number(-1)).toString(36) === "-1"');
}
//CHECK#5
-if((new Number(1)).toString(36) !== "1"){
+if ((new Number(1)).toString(36) !== "1") {
$ERROR('#5: (new Number(1)).toString(36) === "1"');
}
//CHECK#6
-if((new Number(Number.NaN)).toString(36) !== "NaN"){
+if ((new Number(Number.NaN)).toString(36) !== "NaN") {
$ERROR('#6: (new Number(Number.NaN)).toString(36) === "NaN"');
}
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).toString(36) !== "Infinity"){
+if ((new Number(Number.POSITIVE_INFINITY)).toString(36) !== "Infinity") {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(36) === "Infinity"');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).toString(36) !== "-Infinity"){
+if ((new Number(Number.NEGATIVE_INFINITY)).toString(36) !== "-Infinity") {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(36) === "-Infinity"');
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js
index bc2190c3e..cc6b6aadc 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js
@@ -8,65 +8,57 @@ description: radix is 1
---*/
//CHECK#1
-try{
+try {
var n = Number.prototype.toString(1);
$ERROR('#1: Number.prototype.toString(1) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#2
-try{
+try {
var n = (new Number()).toString(1);
$ERROR('#2: (new Number()).toString(1) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#3
-try{
+try {
var n = (new Number(0)).toString(1);
$ERROR('#3: (new Number(0)).toString(1) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#4
-try{
+try {
var n = (new Number(-1)).toString(1);
$ERROR('#4: (new Number(-1)).toString(1) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#5
-try{
- var n =(new Number(1)).toString(1);
+try {
+ var n = (new Number(1)).toString(1);
$ERROR('#5: (new Number(1)).toString(1) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#6
-try{
- var n =(new Number(Number.NaN)).toString(1);
+try {
+ var n = (new Number(Number.NaN)).toString(1);
$ERROR('#6: (new Number(Number.NaN)).toString(1) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#7
-try{
- var n =(new Number(Number.POSITIVE_INFINITY)).toString(1);
+try {
+ var n = (new Number(Number.POSITIVE_INFINITY)).toString(1);
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(1) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#8
-try{
- var n =(new Number(Number.NEGATIVE_INFINITY)).toString(1);
+try {
+ var n = (new Number(Number.NEGATIVE_INFINITY)).toString(1);
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(1) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T02.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T02.js
index e26c3aa29..1033c384f 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T02.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T02.js
@@ -8,65 +8,57 @@ description: radix is 37
---*/
//CHECK#1
-try{
- var n =Number.prototype.toString(37);
+try {
+ var n = Number.prototype.toString(37);
$ERROR('#1: Number.prototype.toString(37) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#2
-try{
- var n =(new Number()).toString(37);
+try {
+ var n = (new Number()).toString(37);
$ERROR('#2: (new Number()).toString(37) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#3
-try{
- var n =(new Number(0)).toString(37);
+try {
+ var n = (new Number(0)).toString(37);
$ERROR('#3: (new Number(0)).toString(37) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#4
-try{
- var n =(new Number(-1)).toString(37);
+try {
+ var n = (new Number(-1)).toString(37);
$ERROR('#4: (new Number(-1)).toString(37) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#5
-try{
- var n =(new Number(1)).toString(37);
+try {
+ var n = (new Number(1)).toString(37);
$ERROR('#5: (new Number(1)).toString(37) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#6
-try{
- var n =(new Number(Number.NaN)).toString(37);
+try {
+ var n = (new Number(Number.NaN)).toString(37);
$ERROR('#6: (new Number(Number.NaN)).toString(37) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#7
-try{
- var n =(new Number(Number.POSITIVE_INFINITY)).toString(37);
+try {
+ var n = (new Number(Number.POSITIVE_INFINITY)).toString(37);
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(37) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#8
-try{
- var n =(new Number(Number.NEGATIVE_INFINITY)).toString(37);
+try {
+ var n = (new Number(Number.NEGATIVE_INFINITY)).toString(37);
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(37) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T03.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T03.js
index a61229326..8c7b1ca54 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T03.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T03.js
@@ -8,65 +8,57 @@ description: radix is null value
---*/
//CHECK#1
-try{
+try {
var n = Number.prototype.toString(null);
$ERROR('#1: Number.prototype.toString(null) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#2
-try{
+try {
var n = (new Number()).toString(null);
$ERROR('#2: (new Number()).toString(null) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#3
-try{
+try {
var n = (new Number(0)).toString(null);
$ERROR('#3: (new Number(0)).toString(null) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#4
-try{
+try {
var n = (new Number(-1)).toString(null);
$ERROR('#4: (new Number(-1)).toString(null) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#5
-try{
+try {
var n = (new Number(1)).toString(null);
$ERROR('#5: (new Number(1)).toString(null) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#6
-try{
+try {
var n = (new Number(Number.NaN)).toString(null);
$ERROR('#6: (new Number(Number.NaN)).toString(null) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#7
-try{
+try {
var n = (new Number(Number.POSITIVE_INFINITY)).toString(null);
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(null) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#8
-try{
+try {
var n = (new Number(Number.NEGATIVE_INFINITY)).toString(null);
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(null) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T04.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T04.js
index 9437e809c..5a42dc9cf 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T04.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T04.js
@@ -8,65 +8,57 @@ description: radix is 0
---*/
//CHECK#1
-try{
+try {
var n = Number.prototype.toString(0);
$ERROR('#1: Number.prototype.toString(0) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#2
-try{
+try {
var n = (new Number()).toString(0);
$ERROR('#2: (new Number()).toString(0) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#3
-try{
+try {
var n = (new Number(0)).toString(0);
$ERROR('#3: (new Number(0)).toString(0) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#4
-try{
+try {
var n = (new Number(-1)).toString(0);
$ERROR('#4: (new Number(-1)).toString(0) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#5
-try{
+try {
var n = (new Number(1)).toString(0);
$ERROR('#5: (new Number(1)).toString(0) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#6
-try{
+try {
var n = (new Number(Number.NaN)).toString(0);
$ERROR('#6: (new Number(Number.NaN)).toString(0) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#7
-try{
+try {
var n = (new Number(Number.POSITIVE_INFINITY)).toString(0);
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(0) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
//CHECK#8
-try{
+try {
var n = (new Number(Number.NEGATIVE_INFINITY)).toString(0);
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(0) should throw an Error');
}
-catch(e){
-}
+catch (e) {}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T01.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T01.js
index f057f3b1c..44d3c72f8 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T01.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T01.js
@@ -11,27 +11,27 @@ description: transferring to the String objects
---*/
//CHECK#1
-try{
+try {
var s1 = new String();
s1.toString = Number.prototype.toString;
- var v1 = s1.toString();
+ var v1 = s1.toString();
$ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not ' + e);
}
}
//CHECK#2
-try{
+try {
var s2 = new String();
s2.myToString = Number.prototype.toString;
- var v2 = s2.myToString();
+ var v2 = s2.myToString();
$ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not ' + e);
}
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T02.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T02.js
index ba45672d6..23a395ee1 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T02.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T02.js
@@ -11,27 +11,27 @@ description: transferring to the Boolean objects
---*/
//CHECK#1
-try{
+try {
var s1 = new Boolean();
s1.toString = Number.prototype.toString;
- var v1 = s1.toString();
+ var v1 = s1.toString();
$ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not ' + e);
}
}
//CHECK#2
-try{
+try {
var s2 = new Boolean();
s2.myToString = Number.prototype.toString;
- var v2 = s2.myToString();
+ var v2 = s2.myToString();
$ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not ' + e);
}
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T03.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T03.js
index 182a873aa..c0fb16314 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T03.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T03.js
@@ -11,27 +11,27 @@ description: transferring to the Date objects
---*/
//CHECK#1
-try{
+try {
var s1 = new Date();
s1.toString = Number.prototype.toString;
- var v1 = s1.toString();
+ var v1 = s1.toString();
$ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not ' + e);
}
}
//CHECK#2
-try{
+try {
var s2 = new Date();
s2.myToString = Number.prototype.toString;
- var v2 = s2.myToString();
+ var v2 = s2.myToString();
$ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not ' + e);
}
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T04.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T04.js
index bb62879f2..32950e329 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T04.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T04.js
@@ -11,27 +11,27 @@ description: transferring to the Object objects
---*/
//CHECK#1
-try{
+try {
var s1 = new Object();
s1.toString = Number.prototype.toString;
- var v1 = s1.toString();
+ var v1 = s1.toString();
$ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not ' + e);
}
}
//CHECK#2
-try{
+try {
var s2 = new Object();
s2.myToString = Number.prototype.toString;
- var v2 = s2.myToString();
+ var v2 = s2.myToString();
$ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not ' + e);
}
}
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T05.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T05.js
index 01e34d92a..fc0f76e86 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T05.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T05.js
@@ -11,27 +11,31 @@ description: transferring to the other objects
---*/
//CHECK#1
-try{
- var s1 = {x: 1};
+try {
+ var s1 = {
+ x: 1
+ };
s1.toString = Number.prototype.toString;
- var v1 = s1.toString();
+ var v1 = s1.toString();
$ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not ' + e);
}
}
//CHECK#2
-try{
- var s2 = {x: 1};
+try {
+ var s2 = {
+ x: 1
+ };
s2.myToString = Number.prototype.toString;
- var v2 = s2.myToString();
+ var v2 = s2.myToString();
$ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not ' + e);
}
}
diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T01.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T01.js
index 1345810ac..0bb16d143 100644
--- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T01.js
+++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T01.js
@@ -8,27 +8,27 @@ description: Call without argument
---*/
//CHECK#1
-if(Number.prototype.valueOf() !== 0){
+if (Number.prototype.valueOf() !== 0) {
$ERROR('#1: Number.prototype.valueOf() === 0');
}
//CHECK#2
-if((new Number()).valueOf() !== 0){
+if ((new Number()).valueOf() !== 0) {
$ERROR('#2: (new Number()).valueOf() === 0');
}
//CHECK#3
-if((new Number(0)).valueOf() !== 0){
+if ((new Number(0)).valueOf() !== 0) {
$ERROR('#3: (new Number(0)).valueOf() === 0');
}
//CHECK#4
-if((new Number(-1)).valueOf() !== -1){
+if ((new Number(-1)).valueOf() !== -1) {
$ERROR('#4: (new Number(-1)).valueOf() === -1');
}
//CHECK#5
-if((new Number(1)).valueOf() !== 1){
+if ((new Number(1)).valueOf() !== 1) {
$ERROR('#5: (new Number(1)).valueOf() === 1');
}
@@ -40,11 +40,11 @@ assert.sameValue(
);
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).valueOf() !== Number.POSITIVE_INFINITY){
+if ((new Number(Number.POSITIVE_INFINITY)).valueOf() !== Number.POSITIVE_INFINITY) {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).valueOf() === Infinity');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).valueOf() !== Number.NEGATIVE_INFINITY){
+if ((new Number(Number.NEGATIVE_INFINITY)).valueOf() !== Number.NEGATIVE_INFINITY) {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).valueOf() === -Infinity');
}
diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T02.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T02.js
index 4f4a44389..ff22bf71f 100644
--- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T02.js
+++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T02.js
@@ -8,27 +8,27 @@ description: calling with argument
---*/
//CHECK#1
-if(Number.prototype.valueOf("argument") !== 0){
+if (Number.prototype.valueOf("argument") !== 0) {
$ERROR('#1: Number.prototype.valueOf("argument") === 0');
}
//CHECK#2
-if((new Number()).valueOf("argument") !== 0){
+if ((new Number()).valueOf("argument") !== 0) {
$ERROR('#2: (new Number()).valueOf("argument") === 0');
}
//CHECK#3
-if((new Number(0)).valueOf("argument") !== 0){
+if ((new Number(0)).valueOf("argument") !== 0) {
$ERROR('#3: (new Number(0)).valueOf("argument") === 0');
}
//CHECK#4
-if((new Number(-1)).valueOf("argument") !== -1){
+if ((new Number(-1)).valueOf("argument") !== -1) {
$ERROR('#4: (new Number(-1)).valueOf("argument") === -1');
}
//CHECK#5
-if((new Number(1)).valueOf("argument") !== 1){
+if ((new Number(1)).valueOf("argument") !== 1) {
$ERROR('#5: (new Number(1)).valueOf("argument") === 1');
}
@@ -40,11 +40,11 @@ assert.sameValue(
);
//CHECK#7
-if((new Number(Number.POSITIVE_INFINITY)).valueOf("argument") !== Number.POSITIVE_INFINITY){
+if ((new Number(Number.POSITIVE_INFINITY)).valueOf("argument") !== Number.POSITIVE_INFINITY) {
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).valueOf("argument") === Infinity');
}
//CHECK#8
-if((new Number(Number.NEGATIVE_INFINITY)).valueOf("argument") !== Number.NEGATIVE_INFINITY){
+if ((new Number(Number.NEGATIVE_INFINITY)).valueOf("argument") !== Number.NEGATIVE_INFINITY) {
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).valueOf("argument") === -Infinity');
}
diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T01.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T01.js
index eae012d63..dc32174b4 100644
--- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T01.js
+++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T01.js
@@ -11,27 +11,27 @@ description: transferring to the String objects
---*/
//CHECK#1
-try{
+try {
var s1 = new String();
s1.valueOf = Number.prototype.valueOf;
- var v1 = s1.valueOf();
+ var v1 = s1.valueOf();
$ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e);
}
}
//CHECK#2
-try{
+try {
var s2 = new String();
s2.myValueOf = Number.prototype.valueOf;
- var v2 = s2.myValueOf();
+ var v2 = s2.myValueOf();
$ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e);
}
}
diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T02.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T02.js
index 56521db0a..61c6c6369 100644
--- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T02.js
+++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T02.js
@@ -11,27 +11,27 @@ description: transferring to the Boolean objects
---*/
//CHECK#1
-try{
+try {
var s1 = new Boolean();
s1.valueOf = Number.prototype.valueOf;
- var v1 = s1.valueOf();
+ var v1 = s1.valueOf();
$ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e);
}
}
//CHECK#2
-try{
+try {
var s2 = new Boolean();
s2.myValueOf = Number.prototype.valueOf;
- var v2 = s2.myValueOf();
+ var v2 = s2.myValueOf();
$ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e);
}
}
diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T03.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T03.js
index 5d7a68dcd..503ca141e 100644
--- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T03.js
+++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T03.js
@@ -11,27 +11,27 @@ description: transferring to the Date objects
---*/
//CHECK#1
-try{
+try {
var s1 = new Date();
s1.valueOf = Number.prototype.valueOf;
- var v1 = s1.valueOf();
+ var v1 = s1.valueOf();
$ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e);
}
}
//CHECK#2
-try{
+try {
var s2 = new Date();
s2.myValueOf = Number.prototype.valueOf;
- var v2 = s2.myValueOf();
+ var v2 = s2.myValueOf();
$ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e);
}
}
diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T04.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T04.js
index e6011f8d3..af1438ba8 100644
--- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T04.js
+++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T04.js
@@ -11,27 +11,27 @@ description: transferring to the Object objects
---*/
//CHECK#1
-try{
+try {
var s1 = new Object();
s1.valueOf = Number.prototype.valueOf;
- var v1 = s1.valueOf();
+ var v1 = s1.valueOf();
$ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e);
}
}
//CHECK#2
-try{
+try {
var s2 = new Object();
s2.myValueOf = Number.prototype.valueOf;
- var v2 = s2.myValueOf();
+ var v2 = s2.myValueOf();
$ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e);
}
}
diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T05.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T05.js
index 625dc68de..eb862fd33 100644
--- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T05.js
+++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T05.js
@@ -11,27 +11,31 @@ description: transferring to the other objects
---*/
//CHECK#1
-try{
- var s1 = {x: 1};
+try {
+ var s1 = {
+ x: 1
+ };
s1.valueOf = Number.prototype.valueOf;
- var v1 = s1.valueOf();
+ var v1 = s1.valueOf();
$ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e);
}
}
//CHECK#2
-try{
- var s2 = {x: 1};
+try {
+ var s2 = {
+ x: 1
+ };
s2.myValueOf = Number.prototype.valueOf;
- var v2 = s2.myValueOf();
+ var v2 = s2.myValueOf();
$ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError');
}
-catch(e){
- if(!(e instanceof TypeError)){
- $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e);
+catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e);
}
}
diff --git a/test/built-ins/Number/string-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js b/test/built-ins/Number/string-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js
index 36d2d44bf..7f840db50 100644
--- a/test/built-ins/Number/string-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js
+++ b/test/built-ins/Number/string-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js
@@ -26,4 +26,3 @@ features: [numeric-separator-literal]
---*/
assert.sameValue(Number("1.0e+10_0"), NaN, "1.0e+10_0");
-
diff --git a/test/built-ins/Number/string-numeric-separator-literal-nzd-nsl-dd-one-of.js b/test/built-ins/Number/string-numeric-separator-literal-nzd-nsl-dd-one-of.js
index 1b48592c9..888e62fb1 100644
--- a/test/built-ins/Number/string-numeric-separator-literal-nzd-nsl-dd-one-of.js
+++ b/test/built-ins/Number/string-numeric-separator-literal-nzd-nsl-dd-one-of.js
@@ -37,5 +37,3 @@ assert.sameValue(Number("6_6"), NaN, "6_6");
assert.sameValue(Number("7_7"), NaN, "7_7");
assert.sameValue(Number("8_8"), NaN, "8_8");
assert.sameValue(Number("9_9"), NaN, "9_9");
-
-
diff --git a/test/built-ins/Object/S15.2.1.1_A1_T1.js b/test/built-ins/Object/S15.2.1.1_A1_T1.js
index a7b755444..ed1059c68 100644
--- a/test/built-ins/Object/S15.2.1.1_A1_T1.js
+++ b/test/built-ins/Object/S15.2.1.1_A1_T1.js
@@ -11,24 +11,24 @@ description: Creating Object(null) and checking its properties
var __obj = Object(null);
-var n__obj = new Object(null);
+var n__obj = new Object(null);
-if (__obj.toString() !== n__obj.toString()){
- $ERROR('#1');
+if (__obj.toString() !== n__obj.toString()) {
+ $ERROR('#1');
}
if (__obj.constructor !== n__obj.constructor) {
- $ERROR('#2');
+ $ERROR('#2');
}
if (__obj.prototype !== n__obj.prototype) {
- $ERROR('#3');
-}
+ $ERROR('#3');
+}
if (__obj.toLocaleString() !== n__obj.toLocaleString()) {
- $ERROR('#4');
+ $ERROR('#4');
}
if (typeof __obj !== typeof n__obj) {
- $ERROR('#5');
+ $ERROR('#5');
}
diff --git a/test/built-ins/Object/S15.2.1.1_A1_T2.js b/test/built-ins/Object/S15.2.1.1_A1_T2.js
index db9f99a70..d49d7c709 100644
--- a/test/built-ins/Object/S15.2.1.1_A1_T2.js
+++ b/test/built-ins/Object/S15.2.1.1_A1_T2.js
@@ -16,22 +16,22 @@ var __obj = Object(void 0);
var n__obj = new Object(void 0);
-if (__obj.toString() !== n__obj.toString()){
- $ERROR('#1');
+if (__obj.toString() !== n__obj.toString()) {
+ $ERROR('#1');
}
if (__obj.constructor !== n__obj.constructor) {
- $ERROR('#2');
+ $ERROR('#2');
}
if (__obj.prototype !== n__obj.prototype) {
- $ERROR('#3');
-}
+ $ERROR('#3');
+}
if (__obj.toLocaleString() !== n__obj.toLocaleString()) {
- $ERROR('#4');
+ $ERROR('#4');
}
if (typeof __obj !== typeof n__obj) {
- $ERROR('#5');
+ $ERROR('#5');
}
diff --git a/test/built-ins/Object/S15.2.1.1_A1_T3.js b/test/built-ins/Object/S15.2.1.1_A1_T3.js
index 4f572b14e..47685eae4 100644
--- a/test/built-ins/Object/S15.2.1.1_A1_T3.js
+++ b/test/built-ins/Object/S15.2.1.1_A1_T3.js
@@ -12,23 +12,23 @@ description: Creating Object() and checking its properties
var __obj = Object();
var n__obj = new Object();
-
-if (__obj.toString() !== n__obj.toString()){
- $ERROR('#1');
+
+if (__obj.toString() !== n__obj.toString()) {
+ $ERROR('#1');
}
if (__obj.constructor !== n__obj.constructor) {
- $ERROR('#2');
+ $ERROR('#2');
}
if (__obj.prototype !== n__obj.prototype) {
- $ERROR('#3');
-}
+ $ERROR('#3');
+}
if (__obj.toLocaleString() !== n__obj.toLocaleString()) {
- $ERROR('#4');
+ $ERROR('#4');
}
if (typeof __obj !== typeof n__obj) {
- $ERROR('#5');
+ $ERROR('#5');
}
diff --git a/test/built-ins/Object/S15.2.1.1_A1_T4.js b/test/built-ins/Object/S15.2.1.1_A1_T4.js
index ebfbe5d23..15a35d0a0 100644
--- a/test/built-ins/Object/S15.2.1.1_A1_T4.js
+++ b/test/built-ins/Object/S15.2.1.1_A1_T4.js
@@ -11,24 +11,24 @@ description: Creating Object(undefined) and checking its properties
var __obj = Object(undefined);
-var n__obj = new Object(undefined);
+var n__obj = new Object(undefined);
-if (__obj.toString() !== n__obj.toString()){
- $ERROR('#1');
+if (__obj.toString() !== n__obj.toString()) {
+ $ERROR('#1');
}
if (__obj.constructor !== n__obj.constructor) {
- $ERROR('#2');
+ $ERROR('#2');
}
if (__obj.prototype !== n__obj.prototype) {
- $ERROR('#3');
-}
+ $ERROR('#3');
+}
if (__obj.toLocaleString() !== n__obj.toLocaleString()) {
- $ERROR('#4');
+ $ERROR('#4');
}
if (typeof __obj !== typeof n__obj) {
- $ERROR('#5');
+ $ERROR('#5');
}
diff --git a/test/built-ins/Object/S15.2.1.1_A1_T5.js b/test/built-ins/Object/S15.2.1.1_A1_T5.js
index 5d1bf5bfe..bf5563312 100644
--- a/test/built-ins/Object/S15.2.1.1_A1_T5.js
+++ b/test/built-ins/Object/S15.2.1.1_A1_T5.js
@@ -11,26 +11,26 @@ description: Creating Object(x) and checking its properties
var __obj = Object(x);
-var n__obj = new Object(x);
+var n__obj = new Object(x);
-if (__obj.toString() !== n__obj.toString()){
- $ERROR('#1');
+if (__obj.toString() !== n__obj.toString()) {
+ $ERROR('#1');
}
if (__obj.constructor !== n__obj.constructor) {
- $ERROR('#2');
+ $ERROR('#2');
}
if (__obj.prototype !== n__obj.prototype) {
- $ERROR('#3');
-}
+ $ERROR('#3');
+}
if (__obj.toLocaleString() !== n__obj.toLocaleString()) {
- $ERROR('#4');
+ $ERROR('#4');
}
if (typeof __obj !== typeof n__obj) {
- $ERROR('#5');
+ $ERROR('#5');
}
var x;
diff --git a/test/built-ins/Object/S15.2.1.1_A2_T1.js b/test/built-ins/Object/S15.2.1.1_A2_T1.js
index a6d56a54a..48bfbfd6e 100644
--- a/test/built-ins/Object/S15.2.1.1_A2_T1.js
+++ b/test/built-ins/Object/S15.2.1.1_A2_T1.js
@@ -11,7 +11,7 @@ description: Calling Object function with boolean argument value
var bool = true;
-if(typeof bool !== 'boolean'){
+if (typeof bool !== 'boolean') {
$ERROR('#1: bool should be boolean primitive');
}
diff --git a/test/built-ins/Object/S15.2.1.1_A2_T10.js b/test/built-ins/Object/S15.2.1.1_A2_T10.js
index bc3778df1..c0f0606d7 100644
--- a/test/built-ins/Object/S15.2.1.1_A2_T10.js
+++ b/test/built-ins/Object/S15.2.1.1_A2_T10.js
@@ -9,7 +9,7 @@ es5id: 15.2.1.1_A2_T10
description: Calling Object function with array of numbers as argument value
---*/
-var arr = [1,2,3];
+var arr = [1, 2, 3];
//CHECK#1
if (typeof arr !== 'object') {
@@ -21,6 +21,6 @@ var n_obj = Object(arr);
arr.push(4);
//CHECK#2
-if ((n_obj !== arr)||(n_obj[3]!==4)) {
+if ((n_obj !== arr) || (n_obj[3] !== 4)) {
$ERROR('#2: Object([1,2,3]) returns ToObject([1,2,3])');
}
diff --git a/test/built-ins/Object/S15.2.1.1_A2_T11.js b/test/built-ins/Object/S15.2.1.1_A2_T11.js
index 53e4e3884..03ca6fbcc 100644
--- a/test/built-ins/Object/S15.2.1.1_A2_T11.js
+++ b/test/built-ins/Object/S15.2.1.1_A2_T11.js
@@ -14,10 +14,12 @@ if (typeof func !== 'undefined') {
$ERROR('#1: function expression can\'t be declarated');
}
-var n_obj = Object(function func(){return 1;});
+var n_obj = Object(function func() {
+ return 1;
+});
//CHECK#2
-if ((n_obj.constructor !== Function)||(n_obj()!==1)) {
+if ((n_obj.constructor !== Function) || (n_obj() !== 1)) {
$ERROR('#2: Object(function func(){return 1;}) returns function');
}
diff --git a/test/built-ins/Object/S15.2.1.1_A2_T12.js b/test/built-ins/Object/S15.2.1.1_A2_T12.js
index da3f46fd0..820956ed6 100644
--- a/test/built-ins/Object/S15.2.1.1_A2_T12.js
+++ b/test/built-ins/Object/S15.2.1.1_A2_T12.js
@@ -9,7 +9,9 @@ es5id: 15.2.1.1_A2_T12
description: Calling Object function with numeric expression as argument value
---*/
-var obj = Object(1.1*([].length+{q:1}["q"]));
+var obj = Object(1.1 * ([].length + {
+ q: 1
+}["q"]));
//CHECK#2
if (typeof obj !== "object") {
@@ -22,7 +24,7 @@ if (obj.constructor !== Number) {
}
//CHECK#4
-if ((obj != 1.1)||(obj === 1.1)) {
+if ((obj != 1.1) || (obj === 1.1)) {
$ERROR('#4: Object(expression) returns ToObject(expression)');
}
//
diff --git a/test/built-ins/Object/S15.2.1.1_A2_T13.js b/test/built-ins/Object/S15.2.1.1_A2_T13.js
index 09ba92926..d301fb5ec 100644
--- a/test/built-ins/Object/S15.2.1.1_A2_T13.js
+++ b/test/built-ins/Object/S15.2.1.1_A2_T13.js
@@ -9,7 +9,7 @@ es5id: 15.2.1.1_A2_T13
description: Calling Object function with boolean expression as argument value
---*/
-var obj = Object((1===1)&&(!false));
+var obj = Object((1 === 1) && (!false));
//CHECK#1
if (obj.constructor !== Boolean) {
@@ -27,6 +27,6 @@ if (!(obj)) {
}
//CHECK#3
-if (obj===true) {
+if (obj === true) {
$ERROR('#3: Object(expression) returns ToObject(expression)');
}
diff --git a/test/built-ins/Object/S15.2.1.1_A2_T14.js b/test/built-ins/Object/S15.2.1.1_A2_T14.js
index 02fe89f79..69e429931 100644
--- a/test/built-ins/Object/S15.2.1.1_A2_T14.js
+++ b/test/built-ins/Object/S15.2.1.1_A2_T14.js
@@ -11,7 +11,7 @@ description: >
argument value
---*/
-var obj = Object(""+1);
+var obj = Object("" + 1);
//CHECK#2
if (obj.constructor !== String) {
@@ -24,6 +24,6 @@ if (typeof obj !== "object") {
}
//CHECK#4
-if ((obj != "1")||(obj === "1")) {
+if ((obj != "1") || (obj === "1")) {
$ERROR('#4: Object(expression) returns ToObject(expression)');
}
diff --git a/test/built-ins/Object/S15.2.1.1_A2_T2.js b/test/built-ins/Object/S15.2.1.1_A2_T2.js
index 1a71e961e..d9241c2ce 100644
--- a/test/built-ins/Object/S15.2.1.1_A2_T2.js
+++ b/test/built-ins/Object/S15.2.1.1_A2_T2.js
@@ -12,7 +12,7 @@ description: Calling Object function with number argument value
var num = 1.1;
// CHECK#1
-if(typeof num !== 'number'){
+if (typeof num !== 'number') {
$ERROR('#1: num = 1.1 should be Number primitive');
}
@@ -29,7 +29,7 @@ if (obj.constructor !== Number) {
}
//CHECK#4
-if ((obj != 1.1)||(obj === 1.1)) {
+if ((obj != 1.1) || (obj === 1.1)) {
$ERROR('#4: Object(1.1) returns ToObject(1.1)');
}
//
diff --git a/test/built-ins/Object/S15.2.1.1_A2_T3.js b/test/built-ins/Object/S15.2.1.1_A2_T3.js
index 8a99ff966..f0dc0a615 100644
--- a/test/built-ins/Object/S15.2.1.1_A2_T3.js
+++ b/test/built-ins/Object/S15.2.1.1_A2_T3.js
@@ -12,7 +12,7 @@ description: Calling Object function with string argument value
var str = 'Luke Skywalker';
// CHECK#1
-if (typeof str !== 'string') {
+if (typeof str !== 'string') {
$ERROR('#1: "Luke Skywalker" should be a String primitive');
}
@@ -29,6 +29,6 @@ if (typeof obj !== "object") {
}
//CHECK#4
-if ((obj != "Luke Skywalker")||(obj === "Luke Skywalker")) {
+if ((obj != "Luke Skywalker") || (obj === "Luke Skywalker")) {
$ERROR('#4: Object("Luke Skywalker") returns ToObject("Luke Skywalker")');
}
diff --git a/test/built-ins/Object/S15.2.1.1_A2_T4.js b/test/built-ins/Object/S15.2.1.1_A2_T4.js
index 6d9cd33c8..21090a7a1 100644
--- a/test/built-ins/Object/S15.2.1.1_A2_T4.js
+++ b/test/built-ins/Object/S15.2.1.1_A2_T4.js
@@ -9,7 +9,9 @@ es5id: 15.2.1.1_A2_T4
description: Calling Object function with object argument value
---*/
-var obj = {flag:true};
+var obj = {
+ flag: true
+};
//CHECK#1
if (typeof(obj) !== 'object') {
@@ -19,6 +21,6 @@ if (typeof(obj) !== 'object') {
var n_obj = Object(obj);
//CHECK#2
-if ((n_obj !== obj)||(!(n_obj['flag']))) {
+if ((n_obj !== obj) || (!(n_obj['flag']))) {
$ERROR('#2: Object({flag:true}) returns ToObject({flag:true})');
}
diff --git a/test/built-ins/Object/S15.2.1.1_A2_T5.js b/test/built-ins/Object/S15.2.1.1_A2_T5.js
index 0b2304089..ff1c17d8b 100644
--- a/test/built-ins/Object/S15.2.1.1_A2_T5.js
+++ b/test/built-ins/Object/S15.2.1.1_A2_T5.js
@@ -12,7 +12,7 @@ description: Calling Object function with NaN argument value
var num = NaN;
// CHECK#1
-if(typeof num !== 'number'){
+if (typeof num !== 'number') {
$ERROR('#1: num = NaN should have number type');
}
@@ -24,7 +24,7 @@ if (obj.constructor !== Number) {
}
//CHECK#3
-if (typeof obj!=="object") {
+if (typeof obj !== "object") {
$ERROR('#2: Object(NaN) returns ToObject(NaN)');
}
//
diff --git a/test/built-ins/Object/S15.2.1.1_A2_T6.js b/test/built-ins/Object/S15.2.1.1_A2_T6.js
index 9621af10f..0d1d4a3bb 100644
--- a/test/built-ins/Object/S15.2.1.1_A2_T6.js
+++ b/test/built-ins/Object/S15.2.1.1_A2_T6.js
@@ -12,7 +12,7 @@ description: Calling Object function with Infinity argument value
var num = Infinity;
// CHECK#1
-if(typeof num !== 'number'){
+if (typeof num !== 'number') {
$ERROR('#1: num = Infinity should be a Number primitive');
}
@@ -24,11 +24,11 @@ if (obj.constructor !== Number) {
}
//CHECK#3
-if (typeof obj!=="object") {
+if (typeof obj !== "object") {
$ERROR('#3: Object(Infinity) returns ToObject(Infinity)');
}
//CHECK#4
-if ((obj != Infinity)||(obj === Infinity)) {
+if ((obj != Infinity) || (obj === Infinity)) {
$ERROR('#4: Object(Infinity) returns ToObject(Infinity)');
}
diff --git a/test/built-ins/Object/S15.2.1.1_A2_T7.js b/test/built-ins/Object/S15.2.1.1_A2_T7.js
index 27fa0b2b8..33d4117cd 100644
--- a/test/built-ins/Object/S15.2.1.1_A2_T7.js
+++ b/test/built-ins/Object/S15.2.1.1_A2_T7.js
@@ -29,6 +29,6 @@ if (typeof obj !== "object") {
}
//CHECK#4
-if ((obj != "")||(obj === "")) {
+if ((obj != "") || (obj === "")) {
$ERROR('#4: Object("") returns ToObject("")');
}
diff --git a/test/built-ins/Object/S15.2.1.1_A2_T8.js b/test/built-ins/Object/S15.2.1.1_A2_T8.js
index 16b04489f..a55517655 100644
--- a/test/built-ins/Object/S15.2.1.1_A2_T8.js
+++ b/test/built-ins/Object/S15.2.1.1_A2_T8.js
@@ -9,7 +9,9 @@ es5id: 15.2.1.1_A2_T8
description: Calling Object function with function variable argument value
---*/
-var func = function(){return 1;};
+var func = function() {
+ return 1;
+};
//CHECK#1
if (typeof func !== 'function') {
@@ -19,6 +21,6 @@ if (typeof func !== 'function') {
var n_obj = Object(func);
//CHECK#2
-if ((n_obj !== func)||(n_obj()!==1)) {
+if ((n_obj !== func) || (n_obj() !== 1)) {
$ERROR('#2: Object(function) returns function');
}
diff --git a/test/built-ins/Object/S15.2.1.1_A2_T9.js b/test/built-ins/Object/S15.2.1.1_A2_T9.js
index c41c5b646..223566efc 100644
--- a/test/built-ins/Object/S15.2.1.1_A2_T9.js
+++ b/test/built-ins/Object/S15.2.1.1_A2_T9.js
@@ -19,8 +19,10 @@ if (typeof func !== 'function') {
var n_obj = Object(func);
//CHECK#2
-if ((n_obj !== func)||(n_obj()!==1)) {
+if ((n_obj !== func) || (n_obj() !== 1)) {
$ERROR('#2: Object(function) returns function');
}
-function func(){return 1;};
+function func() {
+ return 1;
+};
diff --git a/test/built-ins/Object/S15.2.1.1_A3_T1.js b/test/built-ins/Object/S15.2.1.1_A3_T1.js
index 49a0d680c..de23e0a57 100644
--- a/test/built-ins/Object/S15.2.1.1_A3_T1.js
+++ b/test/built-ins/Object/S15.2.1.1_A3_T1.js
@@ -9,7 +9,7 @@ es5id: 15.2.1.1_A3_T1
description: Creating an object with "Object(1,2,3)"
---*/
-var obj = Object(1,2,3);
+var obj = Object(1, 2, 3);
//CHECK#1
if (obj.constructor !== Number) {
@@ -22,6 +22,6 @@ if (typeof obj !== "object") {
}
//CHECK#3
-if ((obj != 1)||(obj === 1)) {
+if ((obj != 1) || (obj === 1)) {
$ERROR('3#: Since Object as a function calling is the same as function calling list of arguments can appears in braces;');
}
diff --git a/test/built-ins/Object/S15.2.1.1_A3_T2.js b/test/built-ins/Object/S15.2.1.1_A3_T2.js
index 9e4739970..a19658eaa 100644
--- a/test/built-ins/Object/S15.2.1.1_A3_T2.js
+++ b/test/built-ins/Object/S15.2.1.1_A3_T2.js
@@ -9,7 +9,7 @@ es5id: 15.2.1.1_A3_T2
description: Creating an object with "Object(null,2,3)"
---*/
-var obj = Object(null,2,3);
+var obj = Object(null, 2, 3);
//CHECK#1
if (obj.constructor !== Object) {
diff --git a/test/built-ins/Object/S15.2.1.1_A3_T3.js b/test/built-ins/Object/S15.2.1.1_A3_T3.js
index 5666f47ed..6d45592da 100644
--- a/test/built-ins/Object/S15.2.1.1_A3_T3.js
+++ b/test/built-ins/Object/S15.2.1.1_A3_T3.js
@@ -9,7 +9,7 @@ es5id: 15.2.1.1_A3_T3
description: Creating an object with "Object((null,2,3),1,2)"
---*/
-var obj = Object((null,2,3),1,2);
+var obj = Object((null, 2, 3), 1, 2);
//CHECK#1
if (obj.constructor !== Number) {
@@ -22,6 +22,6 @@ if (typeof obj !== "object") {
}
//CHECK#3
-if ((obj != 3)||(obj === 3)) {
+if ((obj != 3) || (obj === 3)) {
$ERROR('3#: Since Object as a function calling is the same as function calling list of arguments can appears in braces;');
}
diff --git a/test/built-ins/Object/S15.2.2.1_A1_T1.js b/test/built-ins/Object/S15.2.2.1_A1_T1.js
index bacba29d8..f2ca067e8 100644
--- a/test/built-ins/Object/S15.2.2.1_A1_T1.js
+++ b/test/built-ins/Object/S15.2.2.1_A1_T1.js
@@ -32,7 +32,7 @@ if (!(Object.prototype.isPrototypeOf(obj))) {
}
// CHECK#3
-var to_string_result = '[object '+ 'Object' +']';
+var to_string_result = '[object ' + 'Object' + ']';
if (obj.toString() !== to_string_result) {
$ERROR('#3: when new Object() calls the [[Class]] property of the newly constructed object is set to "Object".');
}
diff --git a/test/built-ins/Object/S15.2.2.1_A1_T2.js b/test/built-ins/Object/S15.2.2.1_A1_T2.js
index a54cffbef..9d073d215 100644
--- a/test/built-ins/Object/S15.2.2.1_A1_T2.js
+++ b/test/built-ins/Object/S15.2.2.1_A1_T2.js
@@ -33,7 +33,7 @@ if (!(Object.prototype.isPrototypeOf(obj))) {
}
// CHECK#3
-var to_string_result = '[object '+ 'Object' +']';
+var to_string_result = '[object ' + 'Object' + ']';
if (obj.toString() !== to_string_result) {
$ERROR('#3: when new Object(undefined) calls the [[Class]] property of the newly constructed object is set to "Object".');
}
diff --git a/test/built-ins/Object/S15.2.2.1_A1_T3.js b/test/built-ins/Object/S15.2.2.1_A1_T3.js
index f6845dd28..754853b21 100644
--- a/test/built-ins/Object/S15.2.2.1_A1_T3.js
+++ b/test/built-ins/Object/S15.2.2.1_A1_T3.js
@@ -32,7 +32,7 @@ if (!(Object.prototype.isPrototypeOf(obj))) {
}
// CHECK#3
-var to_string_result = '[object '+ 'Object' +']';
+var to_string_result = '[object ' + 'Object' + ']';
if (obj.toString() !== to_string_result) {
$ERROR('#3: when new Object(null) calls the [[Class]] property of the newly constructed object is set to "Object".');
}
diff --git a/test/built-ins/Object/S15.2.2.1_A1_T4.js b/test/built-ins/Object/S15.2.2.1_A1_T4.js
index 36b2fe8d5..c04305b17 100644
--- a/test/built-ins/Object/S15.2.2.1_A1_T4.js
+++ b/test/built-ins/Object/S15.2.2.1_A1_T4.js
@@ -32,7 +32,7 @@ if (!(Object.prototype.isPrototypeOf(obj))) {
}
// CHECK#3
-var to_string_result = '[object '+ 'Object' +']';
+var to_string_result = '[object ' + 'Object' + ']';
if (obj.toString() !== to_string_result) {
$ERROR('#3: when new Object(undefined) calls the [[Class]] property of the newly constructed object is set to "Object".');
}
diff --git a/test/built-ins/Object/S15.2.2.1_A1_T5.js b/test/built-ins/Object/S15.2.2.1_A1_T5.js
index ccd859a6b..b2835a9b8 100644
--- a/test/built-ins/Object/S15.2.2.1_A1_T5.js
+++ b/test/built-ins/Object/S15.2.2.1_A1_T5.js
@@ -34,7 +34,7 @@ if (!(Object.prototype.isPrototypeOf(obj))) {
}
// CHECK#3
-var to_string_result = '[object '+ 'Object' +']';
+var to_string_result = '[object ' + 'Object' + ']';
if (obj.toString() !== to_string_result) {
$ERROR('#3: when new Object(undefined) calls the [[Class]] property of the newly constructed object is set to "Object".');
}
diff --git a/test/built-ins/Object/S15.2.2.1_A2_T1.js b/test/built-ins/Object/S15.2.2.1_A2_T1.js
index ef78c47ba..1740d2fb2 100644
--- a/test/built-ins/Object/S15.2.2.1_A2_T1.js
+++ b/test/built-ins/Object/S15.2.2.1_A2_T1.js
@@ -9,7 +9,9 @@ es5id: 15.2.2.1_A2_T1
description: The value is Object
---*/
-var obj = {prop:1};
+var obj = {
+ prop: 1
+};
var n_obj = new Object(obj);
diff --git a/test/built-ins/Object/S15.2.2.1_A2_T2.js b/test/built-ins/Object/S15.2.2.1_A2_T2.js
index 20dcf2ab4..58fb4f0b5 100644
--- a/test/built-ins/Object/S15.2.2.1_A2_T2.js
+++ b/test/built-ins/Object/S15.2.2.1_A2_T2.js
@@ -9,7 +9,9 @@ es5id: 15.2.2.1_A2_T2
description: The value is a function variable
---*/
-var func = function(){return 1;};
+var func = function() {
+ return 1;
+};
var n_obj = new Object(func);
diff --git a/test/built-ins/Object/S15.2.2.1_A2_T3.js b/test/built-ins/Object/S15.2.2.1_A2_T3.js
index b6676e112..2321141c2 100644
--- a/test/built-ins/Object/S15.2.2.1_A2_T3.js
+++ b/test/built-ins/Object/S15.2.2.1_A2_T3.js
@@ -9,7 +9,7 @@ es5id: 15.2.2.1_A2_T3
description: The value is an array
---*/
-var arr = [1,2,3];
+var arr = [1, 2, 3];
var n_obj = new Object(arr);
diff --git a/test/built-ins/Object/S15.2.2.1_A2_T5.js b/test/built-ins/Object/S15.2.2.1_A2_T5.js
index ece80f456..a0bb96454 100644
--- a/test/built-ins/Object/S15.2.2.1_A2_T5.js
+++ b/test/built-ins/Object/S15.2.2.1_A2_T5.js
@@ -9,7 +9,7 @@ es5id: 15.2.2.1_A2_T5
description: The value is a Date object
---*/
-var obj = new Date(1978,3);
+var obj = new Date(1978, 3);
var n_obj = new Object(obj);
@@ -19,6 +19,6 @@ if (n_obj !== obj) {
}
//CHECK#2
-if ((n_obj.getFullYear() !== 1978)||(n_obj.getMonth() !== 3)) {
+if ((n_obj.getFullYear() !== 1978) || (n_obj.getMonth() !== 3)) {
$ERROR('#2: When the Object constructor is called and if the value is an Object simply value returns.');
}
diff --git a/test/built-ins/Object/S15.2.2.1_A2_T6.js b/test/built-ins/Object/S15.2.2.1_A2_T6.js
index dd35d07dc..f2cdbfbf7 100644
--- a/test/built-ins/Object/S15.2.2.1_A2_T6.js
+++ b/test/built-ins/Object/S15.2.2.1_A2_T6.js
@@ -21,4 +21,6 @@ if (n_obj() !== 1) {
$ERROR('When the Object constructor is called and if the value is an Object simply value returns');
}
-function func(){return 1;};
+function func() {
+ return 1;
+};
diff --git a/test/built-ins/Object/S15.2.2.1_A2_T7.js b/test/built-ins/Object/S15.2.2.1_A2_T7.js
index f2d898fa7..a4cf47654 100644
--- a/test/built-ins/Object/S15.2.2.1_A2_T7.js
+++ b/test/built-ins/Object/S15.2.2.1_A2_T7.js
@@ -14,7 +14,9 @@ if (typeof func !== 'undefined') {
$ERROR('#0: function expression can\'t be declarated');
}
-var n_obj = new Object(function func(){return 1;});
+var n_obj = new Object(function func() {
+ return 1;
+});
//CHECK#1
if (n_obj.constructor !== Function) {
diff --git a/test/built-ins/Object/S15.2.2.1_A3_T1.js b/test/built-ins/Object/S15.2.2.1_A3_T1.js
index c1904f5e7..a1aca13ca 100644
--- a/test/built-ins/Object/S15.2.2.1_A3_T1.js
+++ b/test/built-ins/Object/S15.2.2.1_A3_T1.js
@@ -12,7 +12,7 @@ description: Argument value is a nonempty string
var str = 'Obi-Wan Kenobi';
//CHECK#1
-if (typeof str !== 'string') {
+if (typeof str !== 'string') {
$ERROR('#1: "Obi-Wan Kenobi" is NOT a String');
}
@@ -30,11 +30,11 @@ if (typeof n_obj !== 'object') {
}
//CHECK#4
-if ( n_obj != str) {
+if (n_obj != str) {
$ERROR('#4: When the Object constructor is called with String argument return ToObject(string)');
}
//CHECK#5
-if ( n_obj === str) {
+if (n_obj === str) {
$ERROR('#5: When the Object constructor is called with String argument return ToObject(string)');
}
diff --git a/test/built-ins/Object/S15.2.2.1_A3_T2.js b/test/built-ins/Object/S15.2.2.1_A3_T2.js
index d70da9bcf..5b4a35edf 100644
--- a/test/built-ins/Object/S15.2.2.1_A3_T2.js
+++ b/test/built-ins/Object/S15.2.2.1_A3_T2.js
@@ -12,7 +12,7 @@ description: Argument value is an empty string
var str = '';
//CHECK#1
-if (typeof str !== 'string') {
+if (typeof str !== 'string') {
$ERROR('#1: "" is NOT a String');
}
@@ -29,11 +29,11 @@ if (typeof n_obj !== 'object') {
}
//CHECK#4
-if ( n_obj != str) {
+if (n_obj != str) {
$ERROR('#4: When the Object constructor is called with String argument return ToObject(string)');
}
//CHECK#5
-if ( n_obj === str) {
+if (n_obj === str) {
$ERROR('#5: When the Object constructor is called with String argument return ToObject(string)');
}
diff --git a/test/built-ins/Object/S15.2.2.1_A3_T3.js b/test/built-ins/Object/S15.2.2.1_A3_T3.js
index e79b57a34..8210a7d3e 100644
--- a/test/built-ins/Object/S15.2.2.1_A3_T3.js
+++ b/test/built-ins/Object/S15.2.2.1_A3_T3.js
@@ -9,7 +9,7 @@ es5id: 15.2.2.1_A3_T3
description: Argument value is sum of empty string and number
---*/
-var n_obj = new Object(""+1);
+var n_obj = new Object("" + 1);
//CHECK#2
if (n_obj.constructor !== String) {
@@ -22,11 +22,11 @@ if (typeof n_obj !== 'object') {
}
//CHECK#4
-if ( n_obj != "1") {
+if (n_obj != "1") {
$ERROR('#4: When the Object constructor is called with String argument return ToObject(string)');
}
//CHECK#5
-if ( n_obj === "1") {
+if (n_obj === "1") {
$ERROR('#5: When the Object constructor is called with String argument return ToObject(string)');
}
diff --git a/test/built-ins/Object/S15.2.2.1_A4_T1.js b/test/built-ins/Object/S15.2.2.1_A4_T1.js
index 247ad06ea..f3238f139 100644
--- a/test/built-ins/Object/S15.2.2.1_A4_T1.js
+++ b/test/built-ins/Object/S15.2.2.1_A4_T1.js
@@ -12,7 +12,7 @@ description: Argument value is "true"
var bool = true;
//CHECK#1
-if (typeof bool !== 'boolean') {
+if (typeof bool !== 'boolean') {
$ERROR('#1: true is NOT a boolean');
}
@@ -29,11 +29,11 @@ if (typeof n_obj !== 'object') {
}
//CHECK#4
-if ( n_obj != bool) {
+if (n_obj != bool) {
$ERROR('#4: When the Object constructor is called with Boolean argument return ToObject(boolean)');
}
//CHECK#5
-if ( n_obj === bool) {
+if (n_obj === bool) {
$ERROR('#5: When the Object constructor is called with Boolean argument return ToObject(boolean)');
}
diff --git a/test/built-ins/Object/S15.2.2.1_A4_T2.js b/test/built-ins/Object/S15.2.2.1_A4_T2.js
index 7e39823db..c84eeeed5 100644
--- a/test/built-ins/Object/S15.2.2.1_A4_T2.js
+++ b/test/built-ins/Object/S15.2.2.1_A4_T2.js
@@ -12,7 +12,7 @@ description: Argument value is "false"
var bool = false;
//CHECK#1
-if (typeof bool !== 'boolean') {
+if (typeof bool !== 'boolean') {
$ERROR('#1: false is NOT a boolean');
}
@@ -29,11 +29,11 @@ if (typeof n_obj !== 'object') {
}
//CHECK#4
-if ( n_obj != bool) {
+if (n_obj != bool) {
$ERROR('#4: When the Object constructor is called with Boolean argument return ToObject(boolean)');
}
//CHECK#5
-if ( n_obj === bool) {
+if (n_obj === bool) {
$ERROR('#5: When the Object constructor is called with Boolean argument return ToObject(boolean)');
}
diff --git a/test/built-ins/Object/S15.2.2.1_A4_T3.js b/test/built-ins/Object/S15.2.2.1_A4_T3.js
index 0cf324997..9515740fc 100644
--- a/test/built-ins/Object/S15.2.2.1_A4_T3.js
+++ b/test/built-ins/Object/S15.2.2.1_A4_T3.js
@@ -9,7 +9,7 @@ es5id: 15.2.2.1_A4_T3
description: Argument value is boolean expression
---*/
-var n_obj = new Object((1===1)&&!(false));
+var n_obj = new Object((1 === 1) && !(false));
//CHECK#2
if (n_obj.constructor !== Boolean) {
@@ -22,11 +22,11 @@ if (typeof n_obj !== 'object') {
}
//CHECK#4
-if ( n_obj != true) {
+if (n_obj != true) {
$ERROR('#4: When the Object constructor is called with Boolean argument return ToObject(boolean)');
}
//CHECK#5
-if ( n_obj === true) {
+if (n_obj === true) {
$ERROR('#5: When the Object constructor is called with Boolean argument return ToObject(boolean)');
}
diff --git a/test/built-ins/Object/S15.2.2.1_A5_T1.js b/test/built-ins/Object/S15.2.2.1_A5_T1.js
index 658cf0e17..ec8809219 100644
--- a/test/built-ins/Object/S15.2.2.1_A5_T1.js
+++ b/test/built-ins/Object/S15.2.2.1_A5_T1.js
@@ -12,7 +12,7 @@ description: Argument value is any number
var num = 1.0;
//CHECK#1
-if (typeof num !== 'number') {
+if (typeof num !== 'number') {
$ERROR('#1: 1.0 is NOT a number');
}
@@ -29,11 +29,11 @@ if (typeof n_obj !== 'object') {
}
//CHECK#4
-if ( n_obj != num) {
+if (n_obj != num) {
$ERROR('#4: When the Object constructor is called with Number argument return ToObject(number)');
}
//CHECK#5
-if ( n_obj === num) {
+if (n_obj === num) {
$ERROR('#5: When the Object constructor is called with Number argument return ToObject(number)');
}
diff --git a/test/built-ins/Object/S15.2.2.1_A5_T2.js b/test/built-ins/Object/S15.2.2.1_A5_T2.js
index 7e5572401..722d6b38d 100644
--- a/test/built-ins/Object/S15.2.2.1_A5_T2.js
+++ b/test/built-ins/Object/S15.2.2.1_A5_T2.js
@@ -12,7 +12,7 @@ description: Argument value is NaN
var num = NaN;
//CHECK#1
-if (typeof num !== 'number') {
+if (typeof num !== 'number') {
$ERROR('#1: NaN is NOT a number');
}
diff --git a/test/built-ins/Object/S15.2.2.1_A5_T3.js b/test/built-ins/Object/S15.2.2.1_A5_T3.js
index 188734c9b..ae1d15c91 100644
--- a/test/built-ins/Object/S15.2.2.1_A5_T3.js
+++ b/test/built-ins/Object/S15.2.2.1_A5_T3.js
@@ -12,7 +12,7 @@ description: Argument value is Infinity
var num = Infinity;
//CHECK#1
-if (typeof num !== 'number') {
+if (typeof num !== 'number') {
$ERROR('#1: Infinity is NOT a number');
}
@@ -29,11 +29,11 @@ if (typeof n_obj !== 'object') {
}
//CHECK#4
-if ( n_obj != num) {
+if (n_obj != num) {
$ERROR('#4: When the Object constructor is called with Number argument return ToObject(number)');
}
//CHECK#5
-if ( n_obj === num) {
+if (n_obj === num) {
$ERROR('#5: When the Object constructor is called with Number argument return ToObject(number)');
}
diff --git a/test/built-ins/Object/S15.2.2.1_A5_T4.js b/test/built-ins/Object/S15.2.2.1_A5_T4.js
index 0d4e8ec8c..1ea06e2c9 100644
--- a/test/built-ins/Object/S15.2.2.1_A5_T4.js
+++ b/test/built-ins/Object/S15.2.2.1_A5_T4.js
@@ -9,7 +9,9 @@ es5id: 15.2.2.1_A5_T4
description: Argument value is numeric expression
---*/
-var n_obj = new Object( 2*([].length + {q:1}["q"]));
+var n_obj = new Object(2 * ([].length + {
+ q: 1
+}["q"]));
//CHECK#2
if (n_obj.constructor !== Number) {
@@ -22,11 +24,11 @@ if (typeof n_obj !== 'object') {
}
//CHECK#4
-if ( n_obj != 2) {
+if (n_obj != 2) {
$ERROR('#4: When the Object constructor is called with Number argument return ToObject(number)');
}
//CHECK#5
-if ( n_obj === 2) {
+if (n_obj === 2) {
$ERROR('#5: When the Object constructor is called with Number argument return ToObject(number)');
}
diff --git a/test/built-ins/Object/S15.2.2.1_A6_T1.js b/test/built-ins/Object/S15.2.2.1_A6_T1.js
index 45d034977..23f73a818 100644
--- a/test/built-ins/Object/S15.2.2.1_A6_T1.js
+++ b/test/built-ins/Object/S15.2.2.1_A6_T1.js
@@ -9,7 +9,7 @@ es5id: 15.2.2.1_A6_T1
description: Creating an object with "new Object(1,2,3)"
---*/
-var obj = new Object(1,2,3);
+var obj = new Object(1, 2, 3);
//CHECK#1
if (obj.constructor !== Number) {
@@ -22,6 +22,6 @@ if (typeof obj !== "object") {
}
//CHECK#3
-if ((obj != 1)||(obj === 1)) {
+if ((obj != 1) || (obj === 1)) {
$ERROR('3#: Since Object as a function calling is the same as function calling list of arguments can appears in braces;');
}
diff --git a/test/built-ins/Object/S15.2.2.1_A6_T2.js b/test/built-ins/Object/S15.2.2.1_A6_T2.js
index 136338da6..537ed6e54 100644
--- a/test/built-ins/Object/S15.2.2.1_A6_T2.js
+++ b/test/built-ins/Object/S15.2.2.1_A6_T2.js
@@ -9,7 +9,7 @@ es5id: 15.2.2.1_A6_T2
description: Creating an object with "new Object(null,2,3)"
---*/
-var obj = new Object(null,2,3);
+var obj = new Object(null, 2, 3);
//CHECK#1
if (obj.constructor !== Object) {
diff --git a/test/built-ins/Object/S15.2.2.1_A6_T3.js b/test/built-ins/Object/S15.2.2.1_A6_T3.js
index b7e307151..cee0898ba 100644
--- a/test/built-ins/Object/S15.2.2.1_A6_T3.js
+++ b/test/built-ins/Object/S15.2.2.1_A6_T3.js
@@ -9,7 +9,7 @@ es5id: 15.2.2.1_A6_T3
description: Creating an object with "new Object((null,2,3),2,3)"
---*/
-var obj = new Object((null,2,3),1,2);
+var obj = new Object((null, 2, 3), 1, 2);
//CHECK#1
if (obj.constructor !== Number) {
@@ -22,6 +22,6 @@ if (typeof obj !== "object") {
}
//CHECK#3
-if ((obj != 3)||(obj === 3)) {
+if ((obj != 3) || (obj === 3)) {
$ERROR('3#: Since Object as a function calling is the same as function calling list of arguments can appears in braces;');
}
diff --git a/test/built-ins/Object/S15.2.3_A1.js b/test/built-ins/Object/S15.2.3_A1.js
index 0b7564f50..663f1eaaf 100644
--- a/test/built-ins/Object/S15.2.3_A1.js
+++ b/test/built-ins/Object/S15.2.3_A1.js
@@ -7,6 +7,6 @@ es5id: 15.2.3_A1
description: Checking existence of the property "prototype"
---*/
-if(!Object.hasOwnProperty("prototype")){
+if (!Object.hasOwnProperty("prototype")) {
$ERROR('#1: The Object constructor has the property "prototype"');
}
diff --git a/test/built-ins/Object/S15.2.3_A3.js b/test/built-ins/Object/S15.2.3_A3.js
index 0c72e3283..cdff0f5ad 100644
--- a/test/built-ins/Object/S15.2.3_A3.js
+++ b/test/built-ins/Object/S15.2.3_A3.js
@@ -8,7 +8,7 @@ description: Checking Object.length
---*/
//CHECK#1
-if(!Object.hasOwnProperty("length")){
+if (!Object.hasOwnProperty("length")) {
$ERROR('#1: The Object constructor has the property "length"');
}
diff --git a/test/built-ins/Object/S15.2_A1.js b/test/built-ins/Object/S15.2_A1.js
index 6cbac35e0..b8bc45d87 100644
--- a/test/built-ins/Object/S15.2_A1.js
+++ b/test/built-ins/Object/S15.2_A1.js
@@ -7,10 +7,10 @@ es5id: 15.2_A1
description: Checking if Object equals to this.Object
---*/
-var obj=Object;
+var obj = Object;
-var thisobj=this.Object;
+var thisobj = this.Object;
-if(obj!==thisobj){
+if (obj !== thisobj) {
$ERROR('Object is the property of global');
}
diff --git a/test/built-ins/Object/S9.9_A3.js b/test/built-ins/Object/S9.9_A3.js
index 0c10e8736..b52753539 100644
--- a/test/built-ins/Object/S9.9_A3.js
+++ b/test/built-ins/Object/S9.9_A3.js
@@ -10,31 +10,31 @@ description: Trying to convert from Boolean to Object
---*/
// CHECK#1
-if (Object(true).valueOf() !== true){
+if (Object(true).valueOf() !== true) {
$ERROR('#1: Object(true).valueOf() === true. Actual: ' + (Object(true).valueOf()));
}
// CHECK#2
-if (typeof Object(true) !== "object"){
+if (typeof Object(true) !== "object") {
$ERROR('#2: typeof Object(true) === "object". Actual: ' + (typeof Object(true)));
}
// CHECK#3
-if (Object(true).constructor.prototype !== Boolean.prototype){
+if (Object(true).constructor.prototype !== Boolean.prototype) {
$ERROR('#3: Object(true).constructor.prototype === Boolean.prototype. Actual: ' + (Object(true).constructor.prototype));
}
// CHECK#4
-if (Object(false).valueOf() !== false){
+if (Object(false).valueOf() !== false) {
$ERROR('#4: Object(false).valueOf() === false. Actual: ' + (Object(false).valueOf()));
}
// CHECK#5
-if (typeof Object(false) !== "object"){
+if (typeof Object(false) !== "object") {
$ERROR('#5: typeof Object(false) === "object". Actual: ' + (typeof Object(false)));
}
// CHECK#6
-if (Object(false).constructor.prototype !== Boolean.prototype){
+if (Object(false).constructor.prototype !== Boolean.prototype) {
$ERROR('#6: Object(false).constructor.prototype === Boolean.prototype. Actual: ' + (Object(false).constructor.prototype));
}
diff --git a/test/built-ins/Object/S9.9_A4.js b/test/built-ins/Object/S9.9_A4.js
index 36e813e8c..7421de20c 100644
--- a/test/built-ins/Object/S9.9_A4.js
+++ b/test/built-ins/Object/S9.9_A4.js
@@ -10,124 +10,124 @@ description: Converting from various numbers to Object
---*/
// CHECK#1
-if (Object(0).valueOf() !== 0){
+if (Object(0).valueOf() !== 0) {
$ERROR('#1: Object(0).valueOf() === 0. Actual: ' + (Object(0).valueOf()));
}
// CHECK#2
-if (typeof Object(0) !== "object"){
+if (typeof Object(0) !== "object") {
$ERROR('#2: typeof Object(0) === "object". Actual: ' + (typeof Object(0)));
}
// CHECK#3
-if (Object(0).constructor.prototype !== Number.prototype){
+if (Object(0).constructor.prototype !== Number.prototype) {
$ERROR('#3: Object(0).constructor.prototype === Number.prototype. Actual: ' + (Object(0).constructor.prototype));
}
// CHECK#4
-if (Object(-0).valueOf() !== -0){
+if (Object(-0).valueOf() !== -0) {
$ERROR('#4.1: Object(-0).valueOf() === 0. Actual: ' + (Object(-0).valueOf()));
-} else if (1/Object(-0).valueOf() !== Number.NEGATIVE_INFINITY) {
+} else if (1 / Object(-0).valueOf() !== Number.NEGATIVE_INFINITY) {
$ERROR('#4.2: Object(-0).valueOf() === -0. Actual: +0');
}
// CHECK#5
-if (typeof Object(-0) !== "object"){
+if (typeof Object(-0) !== "object") {
$ERROR('#5: typeof Object(-0) === "object". Actual: ' + (typeof Object(-0)));
}
// CHECK#6
-if (Object(-0).constructor.prototype !== Number.prototype){
+if (Object(-0).constructor.prototype !== Number.prototype) {
$ERROR('#6: Object(-0).constructor.prototype === Number.prototype. Actual: ' + (Object(-0).constructor.prototype));
}
// CHECK#7
-if (Object(1).valueOf() !== 1){
+if (Object(1).valueOf() !== 1) {
$ERROR('#7: Object(1).valueOf() === 1. Actual: ' + (Object(1).valueOf()));
}
// CHECK#8
-if (typeof Object(1) !== "object"){
+if (typeof Object(1) !== "object") {
$ERROR('#8: typeof Object(1) === "object". Actual: ' + (typeof Object(1)));
}
// CHECK#9
-if (Object(1).constructor.prototype !== Number.prototype){
+if (Object(1).constructor.prototype !== Number.prototype) {
$ERROR('#9: Object(1).constructor.prototype === Number.prototype. Actual: ' + (Object(1).constructor.prototype));
}
// CHECK#10
-if (Object(-1).valueOf() !== -1){
+if (Object(-1).valueOf() !== -1) {
$ERROR('#10: Object(-1).valueOf() === -1. Actual: ' + (Object(-1).valueOf()));
}
// CHECK#11
-if (typeof Object(-1) !== "object"){
+if (typeof Object(-1) !== "object") {
$ERROR('#11: typeof Object(-1) === "object". Actual: ' + (typeof Object(-1)));
}
// CHECK#12
-if (Object(-1).constructor.prototype !== Number.prototype){
+if (Object(-1).constructor.prototype !== Number.prototype) {
$ERROR('#12: Object(-1).constructor.prototype === Number.prototype. Actual: ' + (Object(-1).constructor.prototype));
}
// CHECK#13
-if (Object(Number.MIN_VALUE).valueOf() !== Number.MIN_VALUE){
+if (Object(Number.MIN_VALUE).valueOf() !== Number.MIN_VALUE) {
$ERROR('#13: Object(Number.MIN_VALUE).valueOf() === Number.MIN_VALUE. Actual: ' + (Object(Number.MIN_VALUE).valueOf()));
}
// CHECK#14
-if (typeof Object(Number.MIN_VALUE) !== "object"){
+if (typeof Object(Number.MIN_VALUE) !== "object") {
$ERROR('#14: typeof Object(Number.MIN_VALUE) === "object". Actual: ' + (typeof Object(Number.MIN_VALUE)));
}
// CHECK#15
-if (Object(Number.MIN_VALUE).constructor.prototype !== Number.prototype){
+if (Object(Number.MIN_VALUE).constructor.prototype !== Number.prototype) {
$ERROR('#15: Object(Number.MIN_VALUE).constructor.prototype === Number.prototype. Actual: ' + (Object(Number.MIN_VALUE).constructor.prototype));
}
// CHECK#16
-if (Object(Number.MAX_VALUE).valueOf() !== Number.MAX_VALUE){
+if (Object(Number.MAX_VALUE).valueOf() !== Number.MAX_VALUE) {
$ERROR('#16: Object(Number.MAX_VALUE).valueOf() === Number.MAX_VALUE. Actual: ' + (Object(Number.MAX_VALUE).valueOf()));
}
// CHECK#17
-if (typeof Object(Number.MAX_VALUE) !== "object"){
+if (typeof Object(Number.MAX_VALUE) !== "object") {
$ERROR('#17: typeof Object(Number.MAX_VALUE) === "object". Actual: ' + (typeof Object(Number.MAX_VALUE)));
}
// CHECK#18
-if (Object(Number.MAX_VALUE).constructor.prototype !== Number.prototype){
+if (Object(Number.MAX_VALUE).constructor.prototype !== Number.prototype) {
$ERROR('#18: Object(Number.MAX_VALUE).constructor.prototype === Number.prototype. Actual: ' + (Object(Number.MAX_VALUE).constructor.prototype));
}
// CHECK#19
-if (Object(Number.POSITIVE_INFINITY).valueOf() !== Number.POSITIVE_INFINITY){
+if (Object(Number.POSITIVE_INFINITY).valueOf() !== Number.POSITIVE_INFINITY) {
$ERROR('#19: Object(Number.POSITIVE_INFINITY).valueOf() === Number.POSITIVE_INFINITY. Actual: ' + (Object(Number.POSITIVE_INFINITY).valueOf()));
}
// CHECK#20
-if (typeof Object(Number.POSITIVE_INFINITY) !== "object"){
+if (typeof Object(Number.POSITIVE_INFINITY) !== "object") {
$ERROR('#20: typeof Object(Number.POSITIVE_INFINITY) === "object". Actual: ' + (typeof Object(Number.POSITIVE_INFINITY)));
}
// CHECK#21
-if (Object(Number.POSITIVE_INFINITY).constructor.prototype !== Number.prototype){
+if (Object(Number.POSITIVE_INFINITY).constructor.prototype !== Number.prototype) {
$ERROR('#21: Object(Number.POSITIVE_INFINITY).constructor.prototype === Number.prototype. Actual: ' + (Object(Number.POSITIVE_INFINITY).constructor.prototype));
}
// CHECK#22
-if (Object(Number.NEGATIVE_INFINITY).valueOf() !== Number.NEGATIVE_INFINITY){
+if (Object(Number.NEGATIVE_INFINITY).valueOf() !== Number.NEGATIVE_INFINITY) {
$ERROR('#22: Object(Number.NEGATIVE_INFINITY).valueOf() === Number.NEGATIVE_INFINITY. Actual: ' + (Object(Number.NEGATIVE_INFINITY).valueOf()));
}
// CHECK#23
-if (typeof Object(Number.NEGATIVE_INFINITY) !== "object"){
+if (typeof Object(Number.NEGATIVE_INFINITY) !== "object") {
$ERROR('#23: typeof Object(Number.NEGATIVE_INFINITY) === "object". Actual: ' + (typeof Object(Number.NEGATIVE_INFINITY)));
}
// CHECK#24
-if (Object(Number.NEGATIVE_INFINITY).constructor.prototype !== Number.prototype){
+if (Object(Number.NEGATIVE_INFINITY).constructor.prototype !== Number.prototype) {
$ERROR('#24: Object(Number.NEGATIVE_INFINITY).constructor.prototype === Number.prototype. Actual: ' + (Object(Number.NEGATIVE_INFINITY).constructor.prototype));
}
@@ -135,41 +135,41 @@ if (Object(Number.NEGATIVE_INFINITY).constructor.prototype !== Number.prototype)
assert.sameValue(Object(NaN).valueOf(), NaN, "Object(NaN).valueOf()");
// CHECK#26
-if (typeof Object(Number.NaN) !== "object"){
+if (typeof Object(Number.NaN) !== "object") {
$ERROR('#26: typeof Object(Number.NaN) === "object". Actual: ' + (typeof Object(Number.NaN)));
}
// CHECK#27
-if (Object(Number.NaN).constructor.prototype !== Number.prototype){
+if (Object(Number.NaN).constructor.prototype !== Number.prototype) {
$ERROR('#27: Object(Number.NaN).constructor.prototype === Number.prototype. Actual: ' + (Object(Number.NaN).constructor.prototype));
}
// CHECK#28
-if (Object(1.2345).valueOf() !== 1.2345){
+if (Object(1.2345).valueOf() !== 1.2345) {
$ERROR('#28: Object(1.2345).valueOf() === 1.2345. Actual: ' + (Object(1.2345).valueOf()));
}
// CHECK#29
-if (typeof Object(1.2345) !== "object"){
+if (typeof Object(1.2345) !== "object") {
$ERROR('#29: typeof Object(1.2345) === "object". Actual: ' + (typeof Object(1.2345)));
}
// CHECK#30
-if (Object(1.2345).constructor.prototype !== Number.prototype){
+if (Object(1.2345).constructor.prototype !== Number.prototype) {
$ERROR('#30: Object(1.2345).constructor.prototype === Number.prototype. Actual: ' + (Object(1.2345).constructor.prototype));
}
// CHECK#31
-if (Object(-1.2345).valueOf() !== -1.2345){
+if (Object(-1.2345).valueOf() !== -1.2345) {
$ERROR('#31: Object(-1.2345).valueOf() === -1.2345. Actual: ' + (Object(-1.2345).valueOf()));
}
// CHECK#32
-if (typeof Object(-1.2345) !== "object"){
+if (typeof Object(-1.2345) !== "object") {
$ERROR('#32: typeof Object(-1.2345) === "object". Actual: ' + (typeof Object(-1.2345)));
}
// CHECK#33
-if (Object(-1.2345).constructor.prototype !== Number.prototype){
+if (Object(-1.2345).constructor.prototype !== Number.prototype) {
$ERROR('#33: Object(-1.2345).constructor.prototype === Number.prototype. Actual: ' + (Object(-1.2345).constructor.prototype));
}
diff --git a/test/built-ins/Object/S9.9_A5.js b/test/built-ins/Object/S9.9_A5.js
index f6ff7e642..a303eafc9 100644
--- a/test/built-ins/Object/S9.9_A5.js
+++ b/test/built-ins/Object/S9.9_A5.js
@@ -10,61 +10,61 @@ description: Converting from various strings to Object
---*/
// CHECK#1
-if (Object("some string").valueOf() !== "some string"){
+if (Object("some string").valueOf() !== "some string") {
$ERROR('#1: Object("some string").valueOf() === "some string". Actual: ' + (Object("some string").valueOf()));
}
// CHECK#2
-if (typeof Object("some string") !== "object"){
+if (typeof Object("some string") !== "object") {
$ERROR('#2: typeof Object("some string") === "object". Actual: ' + (typeof Object("some string")));
}
// CHECK#3
-if (Object("some string").constructor.prototype !== String.prototype){
+if (Object("some string").constructor.prototype !== String.prototype) {
$ERROR('#3: Object("some string").constructor.prototype === String.prototype. Actual: ' + (Object("some string").constructor.prototype));
}
// CHECK#4
-if (Object("").valueOf() !== ""){
+if (Object("").valueOf() !== "") {
$ERROR('#4: Object("").valueOf() === false. Actual: ' + (Object("").valueOf()));
}
// CHECK#5
-if (typeof Object("") !== "object"){
+if (typeof Object("") !== "object") {
$ERROR('#5: typeof Object("") === "object". Actual: ' + (typeof Object("")));
}
// CHECK#6
-if (Object("").constructor.prototype !== String.prototype){
+if (Object("").constructor.prototype !== String.prototype) {
$ERROR('#6: Object("").constructor.prototype === String.prototype. Actual: ' + (Object("").constructor.prototype));
}
// CHECK#7
-if (Object("\r\t\b\n\v\f").valueOf() !== "\r\t\b\n\v\f"){
+if (Object("\r\t\b\n\v\f").valueOf() !== "\r\t\b\n\v\f") {
$ERROR('#7: Object("\\r\\t\\b\\n\\v\\f").valueOf() === false. Actual: ' + (Object("\r\t\b\n\v\f").valueOf()));
}
// CHECK#8
-if (typeof Object("\r\t\b\n\v\f") !== "object"){
+if (typeof Object("\r\t\b\n\v\f") !== "object") {
$ERROR('#8: typeof Object("\\r\\t\\b\\n\\v\\f") === "object". Actual: ' + (typeof Object("\r\t\b\n\v\f")));
}
// CHECK#9
-if (Object("\r\t\b\n\v\f").constructor.prototype !== String.prototype){
+if (Object("\r\t\b\n\v\f").constructor.prototype !== String.prototype) {
$ERROR('#9: Object("\\r\\t\\b\\n\\v\\f").constructor.prototype === String.prototype. Actual: ' + (Object("\r\t\b\n\v\f").constructor.prototype));
}
// CHECK#10
-if (Object(String(10)).valueOf() !== "10"){
+if (Object(String(10)).valueOf() !== "10") {
$ERROR('#10: Object(String(10)).valueOf() === false. Actual: ' + (Object(String(10)).valueOf()));
}
// CHECK#11
-if (typeof Object(String(10)) !== "object"){
+if (typeof Object(String(10)) !== "object") {
$ERROR('#11: typeof Object(String(10)) === "object". Actual: ' + (typeof Object(String(10))));
}
// CHECK#12
-if (Object(String(10)).constructor.prototype !== String.prototype){
+if (Object(String(10)).constructor.prototype !== String.prototype) {
$ERROR('#12: Object(String(10)).constructor.prototype === String.prototype. Actual: ' + (Object(String(10)).constructor.prototype));
}
diff --git a/test/built-ins/Object/S9.9_A6.js b/test/built-ins/Object/S9.9_A6.js
index b6c19d4a6..566177e3a 100644
--- a/test/built-ins/Object/S9.9_A6.js
+++ b/test/built-ins/Object/S9.9_A6.js
@@ -9,31 +9,33 @@ es5id: 9.9_A6
description: Converting from Objects to Object
---*/
-function MyObject( val ) {
- this.value = val;
- this.valueOf = function (){ return this.value; }
+function MyObject(val) {
+ this.value = val;
+ this.valueOf = function() {
+ return this.value;
+ }
}
var x = new MyObject(1);
var y = Object(x);
// CHECK#1
-if (y.valueOf() !== x.valueOf()){
+if (y.valueOf() !== x.valueOf()) {
$ERROR('#1: Object(obj).valueOf() === obj.valueOf(). Actual: ' + (Object(obj).valueOf()));
}
// CHECK#2
-if (typeof y !== typeof x){
+if (typeof y !== typeof x) {
$ERROR('#2: typeof Object(obj) === typeof obj. Actual: ' + (typeof Object(obj)));
}
// CHECK#3
-if (y.constructor.prototype !== x.constructor.prototype){
+if (y.constructor.prototype !== x.constructor.prototype) {
$ERROR('#3: Object(obj).constructor.prototype === obj.constructor.prototype. Actual: ' + (Object(obj).constructor.prototype));
}
// CHECK#4
-if (y !== x){
+if (y !== x) {
$ERROR('#4: Object(obj) === obj');
}
diff --git a/test/built-ins/Object/assign/ObjectOverride-sameproperty.js b/test/built-ins/Object/assign/ObjectOverride-sameproperty.js
index dab26f33f..625669111 100644
--- a/test/built-ins/Object/assign/ObjectOverride-sameproperty.js
+++ b/test/built-ins/Object/assign/ObjectOverride-sameproperty.js
@@ -7,7 +7,13 @@ description: Object properties are assigned to target in ascending index order,
es6id: 19.1.2.1
---*/
-var target = {a: 1};
-var result = Object.assign(target,{a:2},{a:"c"});
+var target = {
+ a: 1
+};
+var result = Object.assign(target, {
+ a: 2
+}, {
+ a: "c"
+});
assert.sameValue(result.a, "c", "The value should be 'c'.");
diff --git a/test/built-ins/Object/assign/Override-notstringtarget.js b/test/built-ins/Object/assign/Override-notstringtarget.js
index 49ade3cb5..8621d75dd 100644
--- a/test/built-ins/Object/assign/Override-notstringtarget.js
+++ b/test/built-ins/Object/assign/Override-notstringtarget.js
@@ -8,9 +8,9 @@ es6id: 19.1.2.1
---*/
var target = 12;
-var result = Object.assign(target,"aaa","bb2b","1c");
+var result = Object.assign(target, "aaa", "bb2b", "1c");
-assert.sameValue(Object.keys(result).length, 4 , "The length should be 4 in the final object.");
+assert.sameValue(Object.keys(result).length, 4, "The length should be 4 in the final object.");
assert.sameValue(result[0], "1", "The value should be {\"0\":\"1\"}.");
assert.sameValue(result[1], "c", "The value should be {\"1\":\"c\"}.");
assert.sameValue(result[2], "2", "The value should be {\"2\":\"2\"}.");
diff --git a/test/built-ins/Object/assign/Override.js b/test/built-ins/Object/assign/Override.js
index efe94452e..cb0f60a8e 100644
--- a/test/built-ins/Object/assign/Override.js
+++ b/test/built-ins/Object/assign/Override.js
@@ -7,7 +7,9 @@ esid: sec-object.assign
---*/
//"a" will be an property of the final object and the value should be 1
-var target = {a:1};
+var target = {
+ a: 1
+};
/*
"1a2c3" have own enumerable properties, so it Should be wrapped to objects;
{b:6} is an object,should be assigned to final object.
@@ -15,9 +17,15 @@ undefined and null should be ignored;
125 is a number,it cannot has own enumerable properties;
{a:"c"},{a:5} will override property a, the value should be 5.
*/
-var result = Object.assign(target,"1a2c3",{a:"c"},undefined,{b:6},null,125,{a:5});
+var result = Object.assign(target, "1a2c3", {
+ a: "c"
+}, undefined, {
+ b: 6
+}, null, 125, {
+ a: 5
+});
-assert.sameValue(Object.keys(result).length, 7 , "The length should be 7 in the final object.");
+assert.sameValue(Object.keys(result).length, 7, "The length should be 7 in the final object.");
assert.sameValue(result.a, 5, "The value should be {a:5}.");
assert.sameValue(result[0], "1", "The value should be {\"0\":\"1\"}.");
assert.sameValue(result[1], "a", "The value should be {\"1\":\"a\"}.");
diff --git a/test/built-ins/Object/assign/Source-Null-Undefined.js b/test/built-ins/Object/assign/Source-Null-Undefined.js
index 8e8da3d2f..b41e102fc 100644
--- a/test/built-ins/Object/assign/Source-Null-Undefined.js
+++ b/test/built-ins/Object/assign/Source-Null-Undefined.js
@@ -7,6 +7,6 @@ esid: sec-object.assign
---*/
var target = new Object();
-var result = Object.assign(target,undefined,null);
+var result = Object.assign(target, undefined, null);
assert.sameValue(result, target, "null and undefined should be ignored, result should be original object.");
diff --git a/test/built-ins/Object/assign/Source-Number-Boolen-Symbol.js b/test/built-ins/Object/assign/Source-Number-Boolen-Symbol.js
index eae453e21..9989bb209 100644
--- a/test/built-ins/Object/assign/Source-Number-Boolen-Symbol.js
+++ b/test/built-ins/Object/assign/Source-Number-Boolen-Symbol.js
@@ -9,6 +9,6 @@ features: [Symbol]
---*/
var target = new Object();
-var result = Object.assign(target,123,true,Symbol('foo'));
+var result = Object.assign(target, 123, true, Symbol('foo'));
assert.sameValue(result, target, "Numbers, booleans, and symbols cannot have wrappers with own enumerable properties.");
diff --git a/test/built-ins/Object/assign/Source-String.js b/test/built-ins/Object/assign/Source-String.js
index fe2a8adf6..78e006461 100644
--- a/test/built-ins/Object/assign/Source-String.js
+++ b/test/built-ins/Object/assign/Source-String.js
@@ -7,7 +7,7 @@ esid: sec-object.assign
---*/
var target = new Object();
-var result = Object.assign(target,"123");
+var result = Object.assign(target, "123");
assert.sameValue(result[0], "1", "The value should be {\"0\":\"1\"}.");
assert.sameValue(result[1], "2", "The value should be {\"1\":\"2\"}.");
diff --git a/test/built-ins/Object/assign/Target-Boolean.js b/test/built-ins/Object/assign/Target-Boolean.js
index d41c4ba5d..457190cbf 100644
--- a/test/built-ins/Object/assign/Target-Boolean.js
+++ b/test/built-ins/Object/assign/Target-Boolean.js
@@ -7,6 +7,8 @@ description: Test the first argument(target) of Object.Assign(target,...sources)
es6id: 19.1.2.1.1
---*/
-var result = Object.assign(true,{a:1});
+var result = Object.assign(true, {
+ a: 1
+});
assert.sameValue(typeof result, "object", "Return value should be an object.");
assert.sameValue(result.valueOf(), true, "Return value should be true.");
diff --git a/test/built-ins/Object/assign/Target-Null.js b/test/built-ins/Object/assign/Target-Null.js
index d5eb7803e..07223a7e4 100644
--- a/test/built-ins/Object/assign/Target-Null.js
+++ b/test/built-ins/Object/assign/Target-Null.js
@@ -7,4 +7,8 @@ description: Test the first argument(target) of Object.Assign(target,...sources)
es6id: 19.1.2.1.1
---*/
-assert.throws(TypeError, function(){Object.assign(null, {a:1});});
+assert.throws(TypeError, function() {
+ Object.assign(null, {
+ a: 1
+ });
+});
diff --git a/test/built-ins/Object/assign/Target-Number.js b/test/built-ins/Object/assign/Target-Number.js
index 0971ca3d1..0dde68edc 100644
--- a/test/built-ins/Object/assign/Target-Number.js
+++ b/test/built-ins/Object/assign/Target-Number.js
@@ -7,6 +7,8 @@ description: Test the first argument(target) of Object.Assign(target,...sources)
es6id: 19.1.2.1.1
---*/
-var result = Object.assign(1,{a:1});
+var result = Object.assign(1, {
+ a: 1
+});
assert.sameValue(typeof result, "object", "Return value should be an object.");
assert.sameValue(result.valueOf(), 1, "Return value should be 1.");
diff --git a/test/built-ins/Object/assign/Target-Object.js b/test/built-ins/Object/assign/Target-Object.js
index d3ba7da0f..2aa73287f 100644
--- a/test/built-ins/Object/assign/Target-Object.js
+++ b/test/built-ins/Object/assign/Target-Object.js
@@ -7,8 +7,12 @@ description: Test the first argument(target) of Object.Assign(target,...sources)
es6id: 19.1.2.1.1
---*/
-var target = {foo: 1};
-var result = Object.assign(target,{a:2});
+var target = {
+ foo: 1
+};
+var result = Object.assign(target, {
+ a: 2
+});
assert.sameValue(result.foo, 1, "The value should be {foo: 1}.");
assert.sameValue(result.a, 2, "The value should be {a: 2}.");
diff --git a/test/built-ins/Object/assign/Target-String.js b/test/built-ins/Object/assign/Target-String.js
index 2adecfb31..0ecbe714c 100644
--- a/test/built-ins/Object/assign/Target-String.js
+++ b/test/built-ins/Object/assign/Target-String.js
@@ -7,6 +7,8 @@ description: Test the first argument(target) of Object.Assign(target,...sources)
es6id: 19.1.2.1.1
---*/
-var result = Object.assign("test",{a:1});
+var result = Object.assign("test", {
+ a: 1
+});
assert.sameValue(typeof result, "object", "Return value should be an object.");
assert.sameValue(result.valueOf(), "test", "Return value should be 'test'.");
diff --git a/test/built-ins/Object/assign/Target-Symbol.js b/test/built-ins/Object/assign/Target-Symbol.js
index 2c24f4b50..0917822f4 100644
--- a/test/built-ins/Object/assign/Target-Symbol.js
+++ b/test/built-ins/Object/assign/Target-Symbol.js
@@ -9,7 +9,9 @@ features: [Symbol]
---*/
var target = Symbol('foo');
-var result = Object.assign(target,{a:1});
+var result = Object.assign(target, {
+ a: 1
+});
assert.sameValue(typeof result, "object", "Return value should be a symbol object.");
assert.sameValue(result.toString(), "Symbol(foo)", "Return value should be 'Symbol(foo)'.");
diff --git a/test/built-ins/Object/assign/Target-Undefined.js b/test/built-ins/Object/assign/Target-Undefined.js
index 9df5bee10..03189f177 100644
--- a/test/built-ins/Object/assign/Target-Undefined.js
+++ b/test/built-ins/Object/assign/Target-Undefined.js
@@ -7,4 +7,8 @@ description: Test the first argument(target) of Object.Assign(target,...sources)
es6id: 19.1.2.1.1
---*/
-assert.throws(TypeError, function(){Object.assign(undefined, {a:1});});
+assert.throws(TypeError, function() {
+ Object.assign(undefined, {
+ a: 1
+ });
+});
diff --git a/test/built-ins/Object/assign/name.js b/test/built-ins/Object/assign/name.js
index ba9dd0fbb..6cb22e25c 100644
--- a/test/built-ins/Object/assign/name.js
+++ b/test/built-ins/Object/assign/name.js
@@ -28,4 +28,3 @@ assert.sameValue(
verifyNotEnumerable(Object.assign, 'name');
verifyNotWritable(Object.assign, 'name');
verifyConfigurable(Object.assign, 'name');
-
diff --git a/test/built-ins/Object/assign/source-own-prop-error.js b/test/built-ins/Object/assign/source-own-prop-error.js
index c6b7297fb..cea4275b9 100644
--- a/test/built-ins/Object/assign/source-own-prop-error.js
+++ b/test/built-ins/Object/assign/source-own-prop-error.js
@@ -13,7 +13,9 @@ info: |
features: [Proxy]
---*/
-var source = new Proxy({ attr: null }, {
+var source = new Proxy({
+ attr: null
+}, {
getOwnPropertyDescriptor: function() {
throw new Test262Error();
}
diff --git a/test/built-ins/Object/assign/target-set-not-writable.js b/test/built-ins/Object/assign/target-set-not-writable.js
index 4d751c595..ad4b9704f 100644
--- a/test/built-ins/Object/assign/target-set-not-writable.js
+++ b/test/built-ins/Object/assign/target-set-not-writable.js
@@ -21,5 +21,7 @@ Object.defineProperty(target, 'attr', {
});
assert.throws(TypeError, function() {
- Object.assign(target, { attr: 1 });
+ Object.assign(target, {
+ attr: 1
+ });
});
diff --git a/test/built-ins/Object/assign/target-set-user-error.js b/test/built-ins/Object/assign/target-set-user-error.js
index b235b983e..8aec2c095 100644
--- a/test/built-ins/Object/assign/target-set-user-error.js
+++ b/test/built-ins/Object/assign/target-set-user-error.js
@@ -23,5 +23,7 @@ Object.defineProperty(target, 'attr', {
});
assert.throws(Test262Error, function() {
- Object.assign(target, { attr: 1 });
+ Object.assign(target, {
+ attr: 1
+ });
});
diff --git a/test/built-ins/Object/create/15.2.3.5-1-1.js b/test/built-ins/Object/create/15.2.3.5-1-1.js
index dfec56794..93e026783 100644
--- a/test/built-ins/Object/create/15.2.3.5-1-1.js
+++ b/test/built-ins/Object/create/15.2.3.5-1-1.js
@@ -8,5 +8,5 @@ description: Object.create throws TypeError if 'O' is undefined
assert.throws(TypeError, function() {
- Object.create(undefined);
+ Object.create(undefined);
});
diff --git a/test/built-ins/Object/create/15.2.3.5-1-2.js b/test/built-ins/Object/create/15.2.3.5-1-2.js
index 36226f322..d15171aa3 100644
--- a/test/built-ins/Object/create/15.2.3.5-1-2.js
+++ b/test/built-ins/Object/create/15.2.3.5-1-2.js
@@ -6,4 +6,4 @@ es5id: 15.2.3.5-1-2
description: Object.create TypeError is not thrown if 'O' is null
---*/
- Object.create(null);
+Object.create(null);
diff --git a/test/built-ins/Object/create/15.2.3.5-1-3.js b/test/built-ins/Object/create/15.2.3.5-1-3.js
index 2a8aa4b63..5e88a60a5 100644
--- a/test/built-ins/Object/create/15.2.3.5-1-3.js
+++ b/test/built-ins/Object/create/15.2.3.5-1-3.js
@@ -8,5 +8,5 @@ description: Object.create throws TypeError if 'O' is a boolean primitive
assert.throws(TypeError, function() {
- Object.create(true);
+ Object.create(true);
});
diff --git a/test/built-ins/Object/create/15.2.3.5-1-4.js b/test/built-ins/Object/create/15.2.3.5-1-4.js
index e33ef8ddb..c748a5f1f 100644
--- a/test/built-ins/Object/create/15.2.3.5-1-4.js
+++ b/test/built-ins/Object/create/15.2.3.5-1-4.js
@@ -8,5 +8,5 @@ description: Object.create throws TypeError if 'O' is a number primitive
assert.throws(TypeError, function() {
- Object.create(2);
+ Object.create(2);
});
diff --git a/test/built-ins/Object/create/15.2.3.5-1.js b/test/built-ins/Object/create/15.2.3.5-1.js
index 645c0c974..1b44ca375 100644
--- a/test/built-ins/Object/create/15.2.3.5-1.js
+++ b/test/built-ins/Object/create/15.2.3.5-1.js
@@ -8,5 +8,5 @@ description: Object.create throws TypeError if type of first param is not Object
assert.throws(TypeError, function() {
- Object.create(0);
+ Object.create(0);
});
diff --git a/test/built-ins/Object/create/15.2.3.5-2-1.js b/test/built-ins/Object/create/15.2.3.5-2-1.js
index a9a8c7b83..4b340210c 100644
--- a/test/built-ins/Object/create/15.2.3.5-2-1.js
+++ b/test/built-ins/Object/create/15.2.3.5-2-1.js
@@ -9,9 +9,9 @@ es5id: 15.2.3.5-2-1
description: Object.create creates new Object
---*/
- function base() {}
- var b = new base();
- var prop = new Object();
- var d = Object.create(b);
+function base() {}
+var b = new base();
+var prop = new Object();
+var d = Object.create(b);
assert.sameValue(typeof d, 'object', 'typeof d');
diff --git a/test/built-ins/Object/create/15.2.3.5-2-2.js b/test/built-ins/Object/create/15.2.3.5-2-2.js
index d853baffe..a3687ef84 100644
--- a/test/built-ins/Object/create/15.2.3.5-2-2.js
+++ b/test/built-ins/Object/create/15.2.3.5-2-2.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.5-2-2
description: Object.create - returned object is an instance of Object
---*/
- var newObj = Object.create({});
+var newObj = Object.create({});
assert(newObj instanceof Object, 'newObj instanceof Object !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-3-1.js b/test/built-ins/Object/create/15.2.3.5-3-1.js
index a63a939ad..94e4050b6 100644
--- a/test/built-ins/Object/create/15.2.3.5-3-1.js
+++ b/test/built-ins/Object/create/15.2.3.5-3-1.js
@@ -9,9 +9,9 @@ es5id: 15.2.3.5-3-1
description: Object.create sets the prototype of the passed-in object
---*/
- function base() {}
- var b = new base();
- var d = Object.create(b);
+function base() {}
+var b = new base();
+var d = Object.create(b);
assert.sameValue(Object.getPrototypeOf(d), b, 'Object.getPrototypeOf(d)');
assert.sameValue(b.isPrototypeOf(d), true, 'b.isPrototypeOf(d)');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-1.js b/test/built-ins/Object/create/15.2.3.5-4-1.js
index be6c0fa63..cbcefe768 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-1.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-1.js
@@ -11,11 +11,19 @@ description: >
new properties
---*/
- function base() {}
- var b = new base();
- var prop = new Object();
- var d = Object.create(b,{ "x": {value: true,writable: false},
- "y": {value: "str",writable: false} });
+function base() {}
+var b = new base();
+var prop = new Object();
+var d = Object.create(b, {
+ "x": {
+ value: true,
+ writable: false
+ },
+ "y": {
+ value: "str",
+ writable: false
+ }
+});
assert.sameValue(Object.getPrototypeOf(d), b, 'Object.getPrototypeOf(d)');
assert.sameValue(b.isPrototypeOf(d), true, 'b.isPrototypeOf(d)');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-10.js b/test/built-ins/Object/create/15.2.3.5-4-10.js
index b62c3b3c4..55d42da32 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-10.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-10.js
@@ -8,17 +8,17 @@ description: >
step 2)
---*/
- var result = false;
- Object.defineProperty(Math, "prop", {
- get: function () {
- result = (this === Math);
- return {};
- },
- enumerable: true,
- configurable: true
- });
+var result = false;
+Object.defineProperty(Math, "prop", {
+ get: function() {
+ result = (this === Math);
+ return {};
+ },
+ enumerable: true,
+ configurable: true
+});
- var newObj = Object.create({}, Math);
+var newObj = Object.create({}, Math);
assert(result, 'result !== true');
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-100.js b/test/built-ins/Object/create/15.2.3.5-4-100.js
index 17f2ea33b..d219852c9 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-100.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-100.js
@@ -10,9 +10,9 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- value: "ownDataProperty"
- }
+ prop: {
+ value: "ownDataProperty"
+ }
});
assert(newObj.hasOwnProperty("prop"), "expected newObj to have 'prop'");
diff --git a/test/built-ins/Object/create/15.2.3.5-4-101.js b/test/built-ins/Object/create/15.2.3.5-4-101.js
index a1aac19d6..84bcf29eb 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-101.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-101.js
@@ -10,9 +10,9 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- configurable: false
- }
+ prop: {
+ configurable: false
+ }
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-102.js b/test/built-ins/Object/create/15.2.3.5-4-102.js
index d8fbe1baa..88aebe8b6 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-102.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-102.js
@@ -8,21 +8,21 @@ description: >
'Properties' is an inherited data property (8.10.5 step 4.a)
---*/
- var proto = {
- configurable: true
- };
+var proto = {
+ configurable: true
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var descObj = new ConstructFun();
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
+var result1 = newObj.hasOwnProperty("prop");
+delete newObj.prop;
+var result2 = newObj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-103.js b/test/built-ins/Object/create/15.2.3.5-4-103.js
index 6217dc79a..cd95c4308 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-103.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-103.js
@@ -11,21 +11,20 @@ includes: [propertyHelper.js]
---*/
var proto = {
- configurable: true
+ configurable: true
};
-var ConstructFun = function () { };
+var ConstructFun = function() {};
ConstructFun.prototype = proto;
var descObj = new ConstructFun();
Object.defineProperty(descObj, "configurable", {
- value: false
+ value: false
});
var newObj = Object.create({}, {
- prop: descObj
+ prop: descObj
});
assert(newObj.hasOwnProperty("prop"));
verifyNotConfigurable(newObj, "prop");
-
diff --git a/test/built-ins/Object/create/15.2.3.5-4-104.js b/test/built-ins/Object/create/15.2.3.5-4-104.js
index 8505738f0..1d9346fd8 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-104.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-104.js
@@ -12,21 +12,21 @@ includes: [propertyHelper.js]
var proto = {};
Object.defineProperty(proto, "configurable", {
- get: function () {
- return true;
- }
+ get: function() {
+ return true;
+ }
});
-var ConstructFun = function () { };
+var ConstructFun = function() {};
ConstructFun.prototype = proto;
var descObj = new ConstructFun();
Object.defineProperty(descObj, "configurable", {
- value: false
+ value: false
});
var newObj = Object.create({}, {
- prop: descObj
+ prop: descObj
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-105.js b/test/built-ins/Object/create/15.2.3.5-4-105.js
index afff08cca..fbd5ea25b 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-105.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-105.js
@@ -8,19 +8,19 @@ description: >
'Properties' is own accessor property (8.10.5 step 4.a)
---*/
- var descObj = {};
- Object.defineProperty(descObj, "configurable", {
- get: function () {
- return true;
- }
- });
+var descObj = {};
+Object.defineProperty(descObj, "configurable", {
+ get: function() {
+ return true;
+ }
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
+var newObj = Object.create({}, {
+ prop: descObj
+});
+var result1 = newObj.hasOwnProperty("prop");
+delete newObj.prop;
+var result2 = newObj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-106.js b/test/built-ins/Object/create/15.2.3.5-4-106.js
index 721181e09..b96690f70 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-106.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-106.js
@@ -8,24 +8,24 @@ description: >
'Properties' is an inherited accessor property (8.10.5 step 4.a)
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "configurable", {
- get: function () {
- return true;
- }
- });
+Object.defineProperty(proto, "configurable", {
+ get: function() {
+ return true;
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var descObj = new ConstructFun();
- var newObj = Object.create({}, {
- prop: descObj
- });
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
+var newObj = Object.create({}, {
+ prop: descObj
+});
+var result1 = newObj.hasOwnProperty("prop");
+delete newObj.prop;
+var result2 = newObj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-107.js b/test/built-ins/Object/create/15.2.3.5-4-107.js
index 696cf4410..0f1b7c646 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-107.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-107.js
@@ -11,23 +11,22 @@ includes: [propertyHelper.js]
---*/
var proto = {
- configurable: true
+ configurable: true
};
-var ConstructFun = function () { };
+var ConstructFun = function() {};
ConstructFun.prototype = proto;
var descObj = new ConstructFun();
Object.defineProperty(descObj, "configurable", {
- get: function () {
- return false;
- }
+ get: function() {
+ return false;
+ }
});
var newObj = Object.create({}, {
- prop: descObj
+ prop: descObj
});
assert(newObj.hasOwnProperty("prop"));
verifyNotConfigurable(newObj, "prop");
-
diff --git a/test/built-ins/Object/create/15.2.3.5-4-108.js b/test/built-ins/Object/create/15.2.3.5-4-108.js
index af1168978..bd69f790e 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-108.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-108.js
@@ -12,23 +12,23 @@ includes: [propertyHelper.js]
var proto = {};
Object.defineProperty(proto, "configurable", {
- get: function () {
- return true;
- }
+ get: function() {
+ return true;
+ }
});
-var ConstructFun = function () { };
+var ConstructFun = function() {};
ConstructFun.prototype = proto;
var descObj = new ConstructFun();
Object.defineProperty(descObj, "configurable", {
- get: function () {
- return false;
- }
+ get: function() {
+ return false;
+ }
});
var newObj = Object.create({}, {
- prop: descObj
+ prop: descObj
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-109.js b/test/built-ins/Object/create/15.2.3.5-4-109.js
index c744dacb9..c8e9df1d8 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-109.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-109.js
@@ -12,11 +12,11 @@ includes: [propertyHelper.js]
var descObj = {};
Object.defineProperty(descObj, "configurable", {
- set: function () { }
+ set: function() {}
});
var newObj = Object.create({}, {
- prop: descObj
+ prop: descObj
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-11.js b/test/built-ins/Object/create/15.2.3.5-4-11.js
index 4dbd85f61..7f997a244 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-11.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-11.js
@@ -8,17 +8,17 @@ description: >
step 2)
---*/
- var props = new Date();
- var result = false;
+var props = new Date();
+var result = false;
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof Date;
- return {};
- },
- enumerable: true
- });
- var newObj = Object.create({}, props);
+Object.defineProperty(props, "prop", {
+ get: function() {
+ result = this instanceof Date;
+ return {};
+ },
+ enumerable: true
+});
+var newObj = Object.create({}, props);
assert(result, 'result !== true');
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-110.js b/test/built-ins/Object/create/15.2.3.5-4-110.js
index 12e0454de..0f45922d8 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-110.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-110.js
@@ -12,21 +12,21 @@ includes: [propertyHelper.js]
var proto = {};
Object.defineProperty(proto, "configurable", {
- get: function () {
- return true;
- }
+ get: function() {
+ return true;
+ }
});
-var ConstructFun = function () { };
+var ConstructFun = function() {};
ConstructFun.prototype = proto;
var descObj = new ConstructFun();
Object.defineProperty(descObj, "configurable", {
- set: function () { }
+ set: function() {}
});
var newObj = Object.create({}, {
- prop: descObj
+ prop: descObj
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-111.js b/test/built-ins/Object/create/15.2.3.5-4-111.js
index 2acc75b9b..523c329b8 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-111.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-111.js
@@ -13,15 +13,15 @@ includes: [propertyHelper.js]
var proto = {};
Object.defineProperty(proto, "configurable", {
- set: function () { }
+ set: function() {}
});
-var ConstructFun = function () { };
+var ConstructFun = function() {};
ConstructFun.prototype = proto;
var descObj = new ConstructFun();
var newObj = Object.create({}, {
- prop: descObj
+ prop: descObj
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-112.js b/test/built-ins/Object/create/15.2.3.5-4-112.js
index 81b491fb2..e698085cf 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-112.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-112.js
@@ -9,17 +9,17 @@ description: >
'configurable' property (8.10.5 step 4.a)
---*/
- var descObj = function () { };
+var descObj = function() {};
- descObj.configurable = true;
+descObj.configurable = true;
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
+var result1 = newObj.hasOwnProperty("prop");
+delete newObj.prop;
+var result2 = newObj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-113.js b/test/built-ins/Object/create/15.2.3.5-4-113.js
index 26b9e8698..2708a2dcf 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-113.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-113.js
@@ -9,17 +9,17 @@ description: >
property (8.10.5 step 4.a)
---*/
- var descObj = [];
+var descObj = [];
- descObj.configurable = true;
+descObj.configurable = true;
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
+var result1 = newObj.hasOwnProperty("prop");
+delete newObj.prop;
+var result2 = newObj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-114.js b/test/built-ins/Object/create/15.2.3.5-4-114.js
index 6ddb9994d..31e69df69 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-114.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-114.js
@@ -9,16 +9,16 @@ description: >
property (8.10.5 step 4.a)
---*/
- var descObj = new String();
+var descObj = new String();
- descObj.configurable = true;
+descObj.configurable = true;
- var newObj = Object.create({}, {
- prop: descObj
- });
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
+var newObj = Object.create({}, {
+ prop: descObj
+});
+var result1 = newObj.hasOwnProperty("prop");
+delete newObj.prop;
+var result2 = newObj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-115.js b/test/built-ins/Object/create/15.2.3.5-4-115.js
index d7ad3da62..959214dc4 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-115.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-115.js
@@ -9,17 +9,17 @@ description: >
property (8.10.5 step 4.a)
---*/
- var descObj = new Boolean(false);
+var descObj = new Boolean(false);
- descObj.configurable = true;
+descObj.configurable = true;
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
+var result1 = newObj.hasOwnProperty("prop");
+delete newObj.prop;
+var result2 = newObj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-116.js b/test/built-ins/Object/create/15.2.3.5-4-116.js
index 861bd8b65..30ec5cb10 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-116.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-116.js
@@ -9,17 +9,17 @@ description: >
property (8.10.5 step 4.a)
---*/
- var descObj = new Number(-9);
+var descObj = new Number(-9);
- descObj.configurable = true;
+descObj.configurable = true;
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
+var result1 = newObj.hasOwnProperty("prop");
+delete newObj.prop;
+var result2 = newObj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-117.js b/test/built-ins/Object/create/15.2.3.5-4-117.js
index 0def02aaa..4f1723e21 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-117.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-117.js
@@ -9,15 +9,15 @@ description: >
property (8.10.5 step 4.a)
---*/
- Math.configurable = true;
+Math.configurable = true;
- var newObj = Object.create({}, {
- prop: Math
- });
+var newObj = Object.create({}, {
+ prop: Math
+});
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
+var result1 = newObj.hasOwnProperty("prop");
+delete newObj.prop;
+var result2 = newObj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-118.js b/test/built-ins/Object/create/15.2.3.5-4-118.js
index 7fcd8a59d..07a0c5613 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-118.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-118.js
@@ -9,17 +9,17 @@ description: >
(8.10.5 step 4.a)
---*/
- var descObj = new Date();
+var descObj = new Date();
- descObj.configurable = true;
+descObj.configurable = true;
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
+var result1 = newObj.hasOwnProperty("prop");
+delete newObj.prop;
+var result2 = newObj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-119.js b/test/built-ins/Object/create/15.2.3.5-4-119.js
index 2d92b08bb..8b26b7a59 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-119.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-119.js
@@ -9,17 +9,17 @@ description: >
(8.10.5 step 4.a)
---*/
- var descObj = new RegExp();
+var descObj = new RegExp();
- descObj.configurable = true;
+descObj.configurable = true;
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
+var result1 = newObj.hasOwnProperty("prop");
+delete newObj.prop;
+var result2 = newObj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-12.js b/test/built-ins/Object/create/15.2.3.5-4-12.js
index fd7b0a164..0050973e4 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-12.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-12.js
@@ -8,17 +8,17 @@ description: >
step 2)
---*/
- var props = new RegExp();
- var result = false;
+var props = new RegExp();
+var result = false;
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof RegExp;
- return {};
- },
- enumerable: true
- });
- var newObj = Object.create({}, props);
+Object.defineProperty(props, "prop", {
+ get: function() {
+ result = this instanceof RegExp;
+ return {};
+ },
+ enumerable: true
+});
+var newObj = Object.create({}, props);
assert(result, 'result !== true');
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-120.js b/test/built-ins/Object/create/15.2.3.5-4-120.js
index 0ca99d135..c0e966771 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-120.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-120.js
@@ -9,15 +9,15 @@ description: >
property (8.10.5 step 4.a)
---*/
- JSON.configurable = true;
+JSON.configurable = true;
- var newObj = Object.create({}, {
- prop: JSON
- });
+var newObj = Object.create({}, {
+ prop: JSON
+});
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
+var result1 = newObj.hasOwnProperty("prop");
+delete newObj.prop;
+var result2 = newObj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-121.js b/test/built-ins/Object/create/15.2.3.5-4-121.js
index 5e9ebc1be..2bb11aab7 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-121.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-121.js
@@ -9,17 +9,17 @@ description: >
property (8.10.5 step 4.a)
---*/
- var descObj = new Error();
+var descObj = new Error();
- descObj.configurable = true;
+descObj.configurable = true;
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
+var result1 = newObj.hasOwnProperty("prop");
+delete newObj.prop;
+var result2 = newObj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-122.js b/test/built-ins/Object/create/15.2.3.5-4-122.js
index 13d7609e5..08a36f4bc 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-122.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-122.js
@@ -9,16 +9,18 @@ description: >
'configurable' property (8.10.5 step 4.a)
---*/
- var argObj = (function () { return arguments; })();
+var argObj = (function() {
+ return arguments;
+})();
- argObj.configurable = true;
+argObj.configurable = true;
- var newObj = Object.create({}, {
- prop: argObj
- });
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
+var newObj = Object.create({}, {
+ prop: argObj
+});
+var result1 = newObj.hasOwnProperty("prop");
+delete newObj.prop;
+var result2 = newObj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-124.js b/test/built-ins/Object/create/15.2.3.5-4-124.js
index 664fdd276..595dacfa3 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-124.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-124.js
@@ -9,15 +9,15 @@ description: >
property (8.10.5 step 4.a)
---*/
- this.configurable = true;
+this.configurable = true;
- var newObj = Object.create({}, {
- prop: this
- });
+var newObj = Object.create({}, {
+ prop: this
+});
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
+var result1 = newObj.hasOwnProperty("prop");
+delete newObj.prop;
+var result2 = newObj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-125.js b/test/built-ins/Object/create/15.2.3.5-4-125.js
index 9109a0ca0..1ea05541e 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-125.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-125.js
@@ -10,9 +10,9 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- configurable: undefined
- }
+ prop: {
+ configurable: undefined
+ }
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-126.js b/test/built-ins/Object/create/15.2.3.5-4-126.js
index 03d1db1eb..4e100ce38 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-126.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-126.js
@@ -10,9 +10,9 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- configurable: null
- }
+ prop: {
+ configurable: null
+ }
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-127.js b/test/built-ins/Object/create/15.2.3.5-4-127.js
index f66387a56..39f7fc359 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-127.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-127.js
@@ -8,17 +8,17 @@ description: >
'Properties' is true (8.10.5 step 4.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- configurable: true
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ configurable: true
+ }
+});
- var beforeDeleted = newObj.hasOwnProperty("prop");
+var beforeDeleted = newObj.hasOwnProperty("prop");
- delete newObj.prop;
+delete newObj.prop;
- var afterDeleted = newObj.hasOwnProperty("prop");
+var afterDeleted = newObj.hasOwnProperty("prop");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-128.js b/test/built-ins/Object/create/15.2.3.5-4-128.js
index 3d0500799..c8a10125c 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-128.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-128.js
@@ -10,9 +10,9 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- configurable: false
- }
+ prop: {
+ configurable: false
+ }
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-129.js b/test/built-ins/Object/create/15.2.3.5-4-129.js
index 11cc44982..14c74b047 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-129.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-129.js
@@ -10,9 +10,9 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- configurable: 0
- }
+ prop: {
+ configurable: 0
+ }
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-13.js b/test/built-ins/Object/create/15.2.3.5-4-13.js
index 582f529fd..41bd013b7 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-13.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-13.js
@@ -8,18 +8,18 @@ description: >
step 2)
---*/
- var result = false;
+var result = false;
- Object.defineProperty(JSON, "prop", {
- get: function () {
- result = (this === JSON);
- return {};
- },
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(JSON, "prop", {
+ get: function() {
+ result = (this === JSON);
+ return {};
+ },
+ enumerable: true,
+ configurable: true
+});
- var newObj = Object.create({}, JSON);
+var newObj = Object.create({}, JSON);
assert(result, 'result !== true');
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-130.js b/test/built-ins/Object/create/15.2.3.5-4-130.js
index 7bada285c..83769b6ca 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-130.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-130.js
@@ -10,9 +10,9 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- configurable: +0
- }
+ prop: {
+ configurable: +0
+ }
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-131.js b/test/built-ins/Object/create/15.2.3.5-4-131.js
index a4fdf40a2..e855085d7 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-131.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-131.js
@@ -10,9 +10,9 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- configurable: -0
- }
+ prop: {
+ configurable: -0
+ }
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-132.js b/test/built-ins/Object/create/15.2.3.5-4-132.js
index 0377fd5f7..15f848797 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-132.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-132.js
@@ -10,9 +10,9 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- configurable: NaN
- }
+ prop: {
+ configurable: NaN
+ }
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-133.js b/test/built-ins/Object/create/15.2.3.5-4-133.js
index cd3482627..2a06c3559 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-133.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-133.js
@@ -8,17 +8,17 @@ description: >
'Properties' is a positive number (8.10.5 step 4.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- configurable: 123
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ configurable: 123
+ }
+});
- var beforeDeleted = newObj.hasOwnProperty("prop");
+var beforeDeleted = newObj.hasOwnProperty("prop");
- delete newObj.prop;
+delete newObj.prop;
- var afterDeleted = newObj.hasOwnProperty("prop");
+var afterDeleted = newObj.hasOwnProperty("prop");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-134.js b/test/built-ins/Object/create/15.2.3.5-4-134.js
index e74cde5e4..a6de3a3d7 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-134.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-134.js
@@ -8,17 +8,17 @@ description: >
'Properties' is a negative number (8.10.5 step 4.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- configurable: -123
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ configurable: -123
+ }
+});
- var beforeDeleted = newObj.hasOwnProperty("prop");
+var beforeDeleted = newObj.hasOwnProperty("prop");
- delete newObj.prop;
+delete newObj.prop;
- var afterDeleted = newObj.hasOwnProperty("prop");
+var afterDeleted = newObj.hasOwnProperty("prop");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-135.js b/test/built-ins/Object/create/15.2.3.5-4-135.js
index 7b4d6b03f..d675ebc24 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-135.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-135.js
@@ -10,9 +10,9 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- configurable: ""
- }
+ prop: {
+ configurable: ""
+ }
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-136.js b/test/built-ins/Object/create/15.2.3.5-4-136.js
index c00e28b6a..bb2ea1bfd 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-136.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-136.js
@@ -8,17 +8,17 @@ description: >
'Properties' is a non-empty string (8.10.5 step 4.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- configurable: "abc"
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ configurable: "abc"
+ }
+});
- var beforeDeleted = newObj.hasOwnProperty("prop");
+var beforeDeleted = newObj.hasOwnProperty("prop");
- delete newObj.prop;
+delete newObj.prop;
- var afterDeleted = newObj.hasOwnProperty("prop");
+var afterDeleted = newObj.hasOwnProperty("prop");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-137.js b/test/built-ins/Object/create/15.2.3.5-4-137.js
index 884d3f95f..ba189488c 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-137.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-137.js
@@ -8,17 +8,17 @@ description: >
'Properties' is a Function object (8.10.5 step 4.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- configurable: function () { }
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ configurable: function() {}
+ }
+});
- var beforeDeleted = newObj.hasOwnProperty("prop");
+var beforeDeleted = newObj.hasOwnProperty("prop");
- delete newObj.prop;
+delete newObj.prop;
- var afterDeleted = newObj.hasOwnProperty("prop");
+var afterDeleted = newObj.hasOwnProperty("prop");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-138.js b/test/built-ins/Object/create/15.2.3.5-4-138.js
index 2a8115615..c08906457 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-138.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-138.js
@@ -8,17 +8,17 @@ description: >
'Properties' is an Array object (8.10.5 step 4.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- configurable: []
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ configurable: []
+ }
+});
- var beforeDeleted = newObj.hasOwnProperty("prop");
+var beforeDeleted = newObj.hasOwnProperty("prop");
- delete newObj.prop;
+delete newObj.prop;
- var afterDeleted = newObj.hasOwnProperty("prop");
+var afterDeleted = newObj.hasOwnProperty("prop");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-139.js b/test/built-ins/Object/create/15.2.3.5-4-139.js
index f821b6172..297f6d4cd 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-139.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-139.js
@@ -8,17 +8,17 @@ description: >
'Properties' is a String object (8.10.5 step 4.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- configurable: new String("abc")
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ configurable: new String("abc")
+ }
+});
- var beforeDeleted = newObj.hasOwnProperty("prop");
+var beforeDeleted = newObj.hasOwnProperty("prop");
- delete newObj.prop;
+delete newObj.prop;
- var afterDeleted = newObj.hasOwnProperty("prop");
+var afterDeleted = newObj.hasOwnProperty("prop");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-14.js b/test/built-ins/Object/create/15.2.3.5-4-14.js
index 91c6fe65c..13945c1dd 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-14.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-14.js
@@ -8,21 +8,24 @@ description: >
step 2)
---*/
- var props = new Error("test");
- var result = false;
+var props = new Error("test");
+var result = false;
- (Object.getOwnPropertyNames(props)).forEach(function(name){
- props[name] = {value:11, configurable:true}
- });
+(Object.getOwnPropertyNames(props)).forEach(function(name) {
+ props[name] = {
+ value: 11,
+ configurable: true
+ }
+});
- Object.defineProperty(props, "prop15_2_3_5_4_14", {
- get: function () {
- result = this instanceof Error;
- return {};
- },
- enumerable: true
- });
- var newObj = Object.create({}, props);
+Object.defineProperty(props, "prop15_2_3_5_4_14", {
+ get: function() {
+ result = this instanceof Error;
+ return {};
+ },
+ enumerable: true
+});
+var newObj = Object.create({}, props);
assert(result, 'result !== true');
assert(newObj.hasOwnProperty("prop15_2_3_5_4_14"), 'newObj.hasOwnProperty("prop15_2_3_5_4_14") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-140.js b/test/built-ins/Object/create/15.2.3.5-4-140.js
index c4407af61..6157350c5 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-140.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-140.js
@@ -8,17 +8,17 @@ description: >
'Properties' is a Boolean object (8.10.5 step 4.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- configurable: new Boolean(true)
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ configurable: new Boolean(true)
+ }
+});
- var beforeDeleted = newObj.hasOwnProperty("prop");
+var beforeDeleted = newObj.hasOwnProperty("prop");
- delete newObj.prop;
+delete newObj.prop;
- var afterDeleted = newObj.hasOwnProperty("prop");
+var afterDeleted = newObj.hasOwnProperty("prop");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-141.js b/test/built-ins/Object/create/15.2.3.5-4-141.js
index 9ad3bb849..c421aa649 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-141.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-141.js
@@ -8,17 +8,17 @@ description: >
'Properties' is a Number object (8.10.5 step 4.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- configurable: new Number(123)
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ configurable: new Number(123)
+ }
+});
- var beforeDeleted = newObj.hasOwnProperty("prop");
+var beforeDeleted = newObj.hasOwnProperty("prop");
- delete newObj.prop;
+delete newObj.prop;
- var afterDeleted = newObj.hasOwnProperty("prop");
+var afterDeleted = newObj.hasOwnProperty("prop");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-142.js b/test/built-ins/Object/create/15.2.3.5-4-142.js
index 706c93be6..eac935f59 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-142.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-142.js
@@ -8,17 +8,17 @@ description: >
'Properties' is the Math object (8.10.5 step 4.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- configurable: Math
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ configurable: Math
+ }
+});
- var beforeDeleted = newObj.hasOwnProperty("prop");
+var beforeDeleted = newObj.hasOwnProperty("prop");
- delete newObj.prop;
+delete newObj.prop;
- var afterDeleted = newObj.hasOwnProperty("prop");
+var afterDeleted = newObj.hasOwnProperty("prop");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-143.js b/test/built-ins/Object/create/15.2.3.5-4-143.js
index 2c13898bf..fd08e43a9 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-143.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-143.js
@@ -8,17 +8,17 @@ description: >
'Properties' is a Date object (8.10.5 step 4.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- configurable: new Date()
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ configurable: new Date()
+ }
+});
- var beforeDeleted = newObj.hasOwnProperty("prop");
+var beforeDeleted = newObj.hasOwnProperty("prop");
- delete newObj.prop;
+delete newObj.prop;
- var afterDeleted = newObj.hasOwnProperty("prop");
+var afterDeleted = newObj.hasOwnProperty("prop");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-144.js b/test/built-ins/Object/create/15.2.3.5-4-144.js
index a77690f05..0a5e3ecc5 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-144.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-144.js
@@ -8,17 +8,17 @@ description: >
'Properties' is a RegExp object (8.10.5 step 4.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- configurable: new RegExp()
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ configurable: new RegExp()
+ }
+});
- var beforeDeleted = newObj.hasOwnProperty("prop");
+var beforeDeleted = newObj.hasOwnProperty("prop");
- delete newObj.prop;
+delete newObj.prop;
- var afterDeleted = newObj.hasOwnProperty("prop");
+var afterDeleted = newObj.hasOwnProperty("prop");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-145.js b/test/built-ins/Object/create/15.2.3.5-4-145.js
index 59b7607b2..fa55b5b90 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-145.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-145.js
@@ -8,17 +8,17 @@ description: >
'Properties' is the JSON object (8.10.5 step 4.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- configurable: JSON
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ configurable: JSON
+ }
+});
- var beforeDeleted = newObj.hasOwnProperty("prop");
+var beforeDeleted = newObj.hasOwnProperty("prop");
- delete newObj.prop;
+delete newObj.prop;
- var afterDeleted = newObj.hasOwnProperty("prop");
+var afterDeleted = newObj.hasOwnProperty("prop");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-146.js b/test/built-ins/Object/create/15.2.3.5-4-146.js
index b187b2c79..049de634b 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-146.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-146.js
@@ -8,17 +8,17 @@ description: >
'Properties' is an Error object (8.10.5 step 4.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- configurable: new Error()
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ configurable: new Error()
+ }
+});
- var beforeDeleted = newObj.hasOwnProperty("prop");
+var beforeDeleted = newObj.hasOwnProperty("prop");
- delete newObj.prop;
+delete newObj.prop;
- var afterDeleted = newObj.hasOwnProperty("prop");
+var afterDeleted = newObj.hasOwnProperty("prop");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-147.js b/test/built-ins/Object/create/15.2.3.5-4-147.js
index c5966f17c..014dd54d4 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-147.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-147.js
@@ -8,19 +8,21 @@ description: >
'Properties' is an Arguments object (8.10.5 step 4.b)
---*/
- var argObj = (function () { return arguments; })();
+var argObj = (function() {
+ return arguments;
+})();
- var newObj = Object.create({}, {
- prop: {
- configurable: argObj
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ configurable: argObj
+ }
+});
- var beforeDeleted = newObj.hasOwnProperty("prop");
+var beforeDeleted = newObj.hasOwnProperty("prop");
- delete newObj.prop;
+delete newObj.prop;
- var afterDeleted = newObj.hasOwnProperty("prop");
+var afterDeleted = newObj.hasOwnProperty("prop");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-149.js b/test/built-ins/Object/create/15.2.3.5-4-149.js
index d5b9cd927..ac9616597 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-149.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-149.js
@@ -8,17 +8,17 @@ description: >
'Properties' is the global object (8.10.5 step 4.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- configurable: this
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ configurable: this
+ }
+});
- var beforeDeleted = newObj.hasOwnProperty("prop");
+var beforeDeleted = newObj.hasOwnProperty("prop");
- delete newObj.prop;
+delete newObj.prop;
- var afterDeleted = newObj.hasOwnProperty("prop");
+var afterDeleted = newObj.hasOwnProperty("prop");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-15.js b/test/built-ins/Object/create/15.2.3.5-4-15.js
index 97856238d..6497f5171 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-15.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-15.js
@@ -8,19 +8,21 @@ description: >
(15.2.3.7 step 2)
---*/
- var result = false;
+var result = false;
- var argObj = (function () { return arguments; })();
+var argObj = (function() {
+ return arguments;
+})();
- Object.defineProperty(argObj, "prop", {
- get: function () {
- result = ('[object Arguments]' === Object.prototype.toString.call(this));
- return {};
- },
- enumerable: true
- });
+Object.defineProperty(argObj, "prop", {
+ get: function() {
+ result = ('[object Arguments]' === Object.prototype.toString.call(this));
+ return {};
+ },
+ enumerable: true
+});
- var newObj = Object.create({}, argObj);
+var newObj = Object.create({}, argObj);
assert(result, 'result !== true');
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-150.js b/test/built-ins/Object/create/15.2.3.5-4-150.js
index a39b6ec1a..9ed32d00d 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-150.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-150.js
@@ -9,17 +9,17 @@ description: >
the value true (8.10.5 step 4.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- configurable: "false"
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ configurable: "false"
+ }
+});
- var beforeDeleted = newObj.hasOwnProperty("prop");
+var beforeDeleted = newObj.hasOwnProperty("prop");
- delete newObj.prop;
+delete newObj.prop;
- var afterDeleted = newObj.hasOwnProperty("prop");
+var afterDeleted = newObj.hasOwnProperty("prop");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-151.js b/test/built-ins/Object/create/15.2.3.5-4-151.js
index 0652a29d9..897b65106 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-151.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-151.js
@@ -9,17 +9,17 @@ description: >
true (8.10.5 step 4.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- configurable: new Boolean(false)
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ configurable: new Boolean(false)
+ }
+});
- var beforeDeleted = newObj.hasOwnProperty("prop");
+var beforeDeleted = newObj.hasOwnProperty("prop");
- delete newObj.prop;
+delete newObj.prop;
- var afterDeleted = newObj.hasOwnProperty("prop");
+var afterDeleted = newObj.hasOwnProperty("prop");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-152.js b/test/built-ins/Object/create/15.2.3.5-4-152.js
index d10a65491..df9898760 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-152.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-152.js
@@ -8,10 +8,10 @@ description: >
is present (8.10.5 step 5)
---*/
- var newObj = Object.create({}, {
- prop: {
- value: 100
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ value: 100
+ }
+});
assert.sameValue(newObj.prop, 100, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-153.js b/test/built-ins/Object/create/15.2.3.5-4-153.js
index 9e468d7d7..87f943344 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-153.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-153.js
@@ -8,9 +8,9 @@ description: >
is not present (8.10.5 step 5)
---*/
- var newObj = Object.create({}, {
- prop: {}
- });
+var newObj = Object.create({}, {
+ prop: {}
+});
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
-assert.sameValue(typeof (newObj.prop), "undefined", 'typeof (newObj.prop)');
+assert.sameValue(typeof(newObj.prop), "undefined", 'typeof (newObj.prop)');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-154.js b/test/built-ins/Object/create/15.2.3.5-4-154.js
index 6d173dedb..95975d00b 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-154.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-154.js
@@ -8,10 +8,10 @@ description: >
is own data property (8.10.5 step 5.a)
---*/
- var newObj = Object.create({}, {
- prop: {
- value: "ownDataProperty"
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ value: "ownDataProperty"
+ }
+});
assert.sameValue(newObj.prop, "ownDataProperty", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-155.js b/test/built-ins/Object/create/15.2.3.5-4-155.js
index 9da761bcb..37fa24eb3 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-155.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-155.js
@@ -8,17 +8,17 @@ description: >
is an inherited data property (8.10.5 step 5.a)
---*/
- var proto = {
- value: "inheritedDataProperty"
- };
+var proto = {
+ value: "inheritedDataProperty"
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var descObj = new ConstructFun();
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
assert.sameValue(newObj.prop, "inheritedDataProperty", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-156.js b/test/built-ins/Object/create/15.2.3.5-4-156.js
index 7161dc784..f3a2f4ce2 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-156.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-156.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 5.a)
---*/
- var proto = {
- value: "inheritedDataProperty"
- };
+var proto = {
+ value: "inheritedDataProperty"
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var descObj = new ConstructFun();
- descObj.value = "ownDataProperty";
+descObj.value = "ownDataProperty";
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
assert.sameValue(newObj.prop, "ownDataProperty", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-157.js b/test/built-ins/Object/create/15.2.3.5-4-157.js
index 4a8fb1a79..7c587f7a3 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-157.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-157.js
@@ -9,27 +9,27 @@ description: >
(8.10.5 step 5.a)
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "value", {
- get: function () {
- return "inheritedAccessorProperty";
- }
- });
+Object.defineProperty(proto, "value", {
+ get: function() {
+ return "inheritedAccessorProperty";
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var descObj = new ConstructFun();
- Object.defineProperty(descObj, "value", {
- get: function () {
- return "ownDataProperty";
- }
- });
+Object.defineProperty(descObj, "value", {
+ get: function() {
+ return "ownDataProperty";
+ }
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
assert.sameValue(newObj.prop, "ownDataProperty", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-158.js b/test/built-ins/Object/create/15.2.3.5-4-158.js
index 1f31f645b..de5d28109 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-158.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-158.js
@@ -8,16 +8,16 @@ description: >
is own accessor property (8.10.5 step 5.a)
---*/
- var descObj = {};
+var descObj = {};
- Object.defineProperty(descObj, "value", {
- get: function () {
- return "ownAccessorProperty";
- }
- });
+Object.defineProperty(descObj, "value", {
+ get: function() {
+ return "ownAccessorProperty";
+ }
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
assert.sameValue(newObj.prop, "ownAccessorProperty", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-159.js b/test/built-ins/Object/create/15.2.3.5-4-159.js
index 4ed1f46a4..c23265613 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-159.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-159.js
@@ -8,21 +8,21 @@ description: >
is an inherited accessor property (8.10.5 step 5.a)
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "value", {
- get: function () {
- return "inheritedAccessorProperty";
- }
- });
+Object.defineProperty(proto, "value", {
+ get: function() {
+ return "inheritedAccessorProperty";
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var descObj = new ConstructFun();
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
assert.sameValue(newObj.prop, "inheritedAccessorProperty", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-16.js b/test/built-ins/Object/create/15.2.3.5-4-16.js
index 7916c17fe..73880fd38 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-16.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-16.js
@@ -8,8 +8,8 @@ description: >
defined in 'obj' (15.2.3.7 step 3)
---*/
- var newObj = Object.create({}, {
- prop: {}
- });
+var newObj = Object.create({}, {
+ prop: {}
+});
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-160.js b/test/built-ins/Object/create/15.2.3.5-4-160.js
index 692a8589f..fae08097f 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-160.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-160.js
@@ -9,23 +9,23 @@ description: >
(8.10.5 step 5.a)
---*/
- var proto = {
- value: "inheritedDataProperty"
- };
+var proto = {
+ value: "inheritedDataProperty"
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var descObj = new ConstructFun();
- Object.defineProperty(descObj, "value", {
- get: function () {
- return "ownAccessorProperty";
- }
- });
+Object.defineProperty(descObj, "value", {
+ get: function() {
+ return "ownAccessorProperty";
+ }
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
assert.sameValue(newObj.prop, "ownAccessorProperty", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-161.js b/test/built-ins/Object/create/15.2.3.5-4-161.js
index ad384083c..637b2c0ea 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-161.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-161.js
@@ -9,27 +9,27 @@ description: >
property (8.10.5 step 5.a)
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "value", {
- get: function () {
- return "inheritedAccessorProperty";
- }
- });
+Object.defineProperty(proto, "value", {
+ get: function() {
+ return "inheritedAccessorProperty";
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var descObj = new ConstructFun();
- Object.defineProperty(descObj, "value", {
- get: function () {
- return "ownAccessorProperty";
- }
- });
+Object.defineProperty(descObj, "value", {
+ get: function() {
+ return "ownAccessorProperty";
+ }
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
assert.sameValue(newObj.prop, "ownAccessorProperty", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-162.js b/test/built-ins/Object/create/15.2.3.5-4-162.js
index ec528e311..70c676c9d 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-162.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-162.js
@@ -8,15 +8,15 @@ description: >
is own accessor property without a get function (8.10.5 step 5.a)
---*/
- var descObj = {};
+var descObj = {};
- Object.defineProperty(descObj, "value", {
- set: function () { }
- });
+Object.defineProperty(descObj, "value", {
+ set: function() {}
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
-assert.sameValue(typeof (newObj.prop), "undefined", 'typeof (newObj.prop)');
+assert.sameValue(typeof(newObj.prop), "undefined", 'typeof (newObj.prop)');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-163.js b/test/built-ins/Object/create/15.2.3.5-4-163.js
index 2f3d0e80f..4dedb1f63 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-163.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-163.js
@@ -9,26 +9,26 @@ description: >
an inherited accessor property (8.10.5 step 5.a)
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "value", {
- get: function () {
- return "inheritedAccessorProperty";
- }
- });
+Object.defineProperty(proto, "value", {
+ get: function() {
+ return "inheritedAccessorProperty";
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var descObj = new ConstructFun();
- Object.defineProperty(descObj, "value", {
- set: function () { }
- });
+Object.defineProperty(descObj, "value", {
+ set: function() {}
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
-assert.sameValue(typeof (newObj.prop), "undefined", 'typeof (newObj.prop)');
+assert.sameValue(typeof(newObj.prop), "undefined", 'typeof (newObj.prop)');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-164.js b/test/built-ins/Object/create/15.2.3.5-4-164.js
index d3a0f706b..a4d92bcbc 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-164.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-164.js
@@ -9,20 +9,20 @@ description: >
step 5.a)
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "value", {
- set: function () { }
- });
+Object.defineProperty(proto, "value", {
+ set: function() {}
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var descObj = new ConstructFun();
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
-assert.sameValue(typeof (newObj.prop), "undefined", 'typeof (newObj.prop)');
+assert.sameValue(typeof(newObj.prop), "undefined", 'typeof (newObj.prop)');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-165.js b/test/built-ins/Object/create/15.2.3.5-4-165.js
index df8cb009b..f5342706b 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-165.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-165.js
@@ -9,15 +9,15 @@ description: >
property (8.10.5 step 5.a)
---*/
- var Func = function (a, b) {
- return a + b;
- };
+var Func = function(a, b) {
+ return a + b;
+};
- var fun = new Func();
- fun.value = "FunValue";
+var fun = new Func();
+fun.value = "FunValue";
- var newObj = Object.create({}, {
- prop: fun
- });
+var newObj = Object.create({}, {
+ prop: fun
+});
assert.sameValue(newObj.prop, "FunValue", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-166.js b/test/built-ins/Object/create/15.2.3.5-4-166.js
index 0e844df15..d5e05f8a8 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-166.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-166.js
@@ -9,12 +9,12 @@ description: >
(8.10.5 step 5.a)
---*/
- var arr = [1, 2, 3];
+var arr = [1, 2, 3];
- arr.value = "ArrValue";
+arr.value = "ArrValue";
- var newObj = Object.create({}, {
- prop: arr
- });
+var newObj = Object.create({}, {
+ prop: arr
+});
assert.sameValue(newObj.prop, "ArrValue", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-167.js b/test/built-ins/Object/create/15.2.3.5-4-167.js
index 2f4959e6c..84ce5be59 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-167.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-167.js
@@ -9,12 +9,12 @@ description: >
(8.10.5 step 5.a)
---*/
- var str = new String("abc");
+var str = new String("abc");
- str.value = "StrValue";
+str.value = "StrValue";
- var newObj = Object.create({}, {
- prop: str
- });
+var newObj = Object.create({}, {
+ prop: str
+});
assert.sameValue(newObj.prop, "StrValue", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-168.js b/test/built-ins/Object/create/15.2.3.5-4-168.js
index bb2fd7d99..67c5abeb8 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-168.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-168.js
@@ -9,12 +9,12 @@ description: >
(8.10.5 step 5.a)
---*/
- var booleanObj = new Boolean(false);
+var booleanObj = new Boolean(false);
- booleanObj.value = "BooleanValue";
+booleanObj.value = "BooleanValue";
- var newObj = Object.create({}, {
- prop: booleanObj
- });
+var newObj = Object.create({}, {
+ prop: booleanObj
+});
assert.sameValue(newObj.prop, "BooleanValue", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-169.js b/test/built-ins/Object/create/15.2.3.5-4-169.js
index 529e7b3fe..9f649ef30 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-169.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-169.js
@@ -9,12 +9,12 @@ description: >
(8.10.5 step 5.a)
---*/
- var numObj = new Number(123);
+var numObj = new Number(123);
- numObj.value = "NumValue";
+numObj.value = "NumValue";
- var newObj = Object.create({}, {
- prop: numObj
- });
+var newObj = Object.create({}, {
+ prop: numObj
+});
assert.sameValue(newObj.prop, "NumValue", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-17.js b/test/built-ins/Object/create/15.2.3.5-4-17.js
index 8083d035f..e483b13a4 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-17.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-17.js
@@ -8,11 +8,11 @@ description: >
enumerable is not defined in 'obj' (15.2.3.7 step 3)
---*/
- var props = {};
- Object.defineProperty(props, "prop", {
- value: {},
- enumerable: false
- });
- var newObj = Object.create({}, props);
+var props = {};
+Object.defineProperty(props, "prop", {
+ value: {},
+ enumerable: false
+});
+var newObj = Object.create({}, props);
assert.sameValue(newObj.hasOwnProperty("prop"), false, 'newObj.hasOwnProperty("prop")');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-170.js b/test/built-ins/Object/create/15.2.3.5-4-170.js
index b3c650792..308b568a2 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-170.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-170.js
@@ -9,10 +9,10 @@ description: >
(8.10.5 step 5.a)
---*/
- Math.value = "MathValue";
+Math.value = "MathValue";
- var newObj = Object.create({}, {
- prop: Math
- });
+var newObj = Object.create({}, {
+ prop: Math
+});
assert.sameValue(newObj.prop, "MathValue", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-171.js b/test/built-ins/Object/create/15.2.3.5-4-171.js
index 7dce49956..a603d0dff 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-171.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-171.js
@@ -9,12 +9,12 @@ description: >
(8.10.5 step 5.a)
---*/
- var dateObj = new Date();
+var dateObj = new Date();
- dateObj.value = "DateValue";
+dateObj.value = "DateValue";
- var newObj = Object.create({}, {
- prop: dateObj
- });
+var newObj = Object.create({}, {
+ prop: dateObj
+});
assert.sameValue(newObj.prop, "DateValue", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-172.js b/test/built-ins/Object/create/15.2.3.5-4-172.js
index 6b467c8b0..e2ec0f839 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-172.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-172.js
@@ -9,12 +9,12 @@ description: >
(8.10.5 step 5.a)
---*/
- var regObj = new RegExp();
+var regObj = new RegExp();
- regObj.value = "RegExpValue";
+regObj.value = "RegExpValue";
- var newObj = Object.create({}, {
- prop: regObj
- });
+var newObj = Object.create({}, {
+ prop: regObj
+});
assert.sameValue(newObj.prop, "RegExpValue", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-173.js b/test/built-ins/Object/create/15.2.3.5-4-173.js
index 01a704169..d44156cc8 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-173.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-173.js
@@ -9,10 +9,10 @@ description: >
(8.10.5 step 5.a)
---*/
- JSON.value = "JSONValue";
+JSON.value = "JSONValue";
- var newObj = Object.create({}, {
- prop: JSON
- });
+var newObj = Object.create({}, {
+ prop: JSON
+});
assert.sameValue(newObj.prop, "JSONValue", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-174.js b/test/built-ins/Object/create/15.2.3.5-4-174.js
index 49aabea53..4ea8dd8f6 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-174.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-174.js
@@ -9,12 +9,12 @@ description: >
(8.10.5 step 5.a)
---*/
- var errorObj = new Error();
+var errorObj = new Error();
- errorObj.value = "ErrorValue";
+errorObj.value = "ErrorValue";
- var newObj = Object.create({}, {
- prop: errorObj
- });
+var newObj = Object.create({}, {
+ prop: errorObj
+});
assert.sameValue(newObj.prop, "ErrorValue", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-175.js b/test/built-ins/Object/create/15.2.3.5-4-175.js
index ef17be9ef..e1adbd723 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-175.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-175.js
@@ -9,12 +9,14 @@ description: >
'value' property (8.10.5 step 5.a)
---*/
- var argObj = (function () { return arguments; })();
+var argObj = (function() {
+ return arguments;
+})();
- argObj.value = "ArgValue";
+argObj.value = "ArgValue";
- var newObj = Object.create({}, {
- prop: argObj
- });
+var newObj = Object.create({}, {
+ prop: argObj
+});
assert.sameValue(newObj.prop, "ArgValue", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-177.js b/test/built-ins/Object/create/15.2.3.5-4-177.js
index 58825c2a8..5b9d67cbe 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-177.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-177.js
@@ -9,10 +9,10 @@ description: >
(8.10.5 step 5.a)
---*/
- this.value = "GlobalValue";
+this.value = "GlobalValue";
- var newObj = Object.create({}, {
- prop: this
- });
+var newObj = Object.create({}, {
+ prop: this
+});
assert.sameValue(newObj.prop, "GlobalValue", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-178.js b/test/built-ins/Object/create/15.2.3.5-4-178.js
index d07158967..e2ce679db 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-178.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-178.js
@@ -8,17 +8,17 @@ description: >
'Properties' is true (8.10.5 step 6)
---*/
- var newObj = Object.create({}, {
- prop: {
- writable: true
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ writable: true
+ }
+});
- var beforeWrite = ((newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"));
+var beforeWrite = ((newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"));
- newObj.prop = "isWritable";
+newObj.prop = "isWritable";
- var afterWrite = (newObj.prop === "isWritable");
+var afterWrite = (newObj.prop === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-179.js b/test/built-ins/Object/create/15.2.3.5-4-179.js
index cde7f79f2..1c71b6ebc 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-179.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-179.js
@@ -10,9 +10,9 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- value: 100
- }
+ prop: {
+ value: 100
+ }
});
assert.sameValue(newObj.prop, 100);
diff --git a/test/built-ins/Object/create/15.2.3.5-4-18.js b/test/built-ins/Object/create/15.2.3.5-4-18.js
index 4bd85b5c0..9096b53fd 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-18.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-18.js
@@ -8,14 +8,14 @@ description: >
'Properties' is not defined in 'obj' (15.2.3.7 step 3)
---*/
- var proto = {};
+var proto = {};
- proto.prop = {};
+proto.prop = {};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var child = new ConstructFun();
- var newObj = Object.create({}, child);
+var newObj = Object.create({}, child);
assert.sameValue(newObj.hasOwnProperty("prop"), false, 'newObj.hasOwnProperty("prop")');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-180.js b/test/built-ins/Object/create/15.2.3.5-4-180.js
index 3f335be92..ccc5f3940 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-180.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-180.js
@@ -8,17 +8,17 @@ description: >
'Properties' is own data property (8.10.5 step 6.a)
---*/
- var newObj = Object.create({}, {
- prop: {
- writable: true
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ writable: true
+ }
+});
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
+var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined");
- newObj.prop = "isWritable";
+newObj.prop = "isWritable";
- var afterWrite = (newObj.prop === "isWritable");
+var afterWrite = (newObj.prop === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-181.js b/test/built-ins/Object/create/15.2.3.5-4-181.js
index dd7c4798c..036f352af 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-181.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-181.js
@@ -8,24 +8,24 @@ description: >
'Properties' is an inherited data property (8.10.5 step 6.a)
---*/
- var proto = {
- writable: true
- };
+var proto = {
+ writable: true
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var descObj = new ConstructFun();
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
+var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined");
- newObj.prop = "isWritable";
+newObj.prop = "isWritable";
- var afterWrite = (newObj.prop === "isWritable");
+var afterWrite = (newObj.prop === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-182.js b/test/built-ins/Object/create/15.2.3.5-4-182.js
index aab02965a..7421e6f51 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-182.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-182.js
@@ -9,26 +9,26 @@ description: >
property (8.10.5 step 6.a)
---*/
- var proto = {
- writable: false
- };
+var proto = {
+ writable: false
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var descObj = new ConstructFun();
- descObj.writable = true;
+descObj.writable = true;
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
+var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined");
- newObj.prop = "isWritable";
+newObj.prop = "isWritable";
- var afterWrite = (newObj.prop === "isWritable");
+var afterWrite = (newObj.prop === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-183.js b/test/built-ins/Object/create/15.2.3.5-4-183.js
index abd7e52bd..5d35785a0 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-183.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-183.js
@@ -9,32 +9,32 @@ description: >
accessor property (8.10.5 step 6.a)
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "writable", {
- get: function () {
- return false;
- }
- });
+Object.defineProperty(proto, "writable", {
+ get: function() {
+ return false;
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var descObj = new ConstructFun();
- Object.defineProperty(descObj, "writable", {
- value: true
- });
+Object.defineProperty(descObj, "writable", {
+ value: true
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
+var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined");
- newObj.prop = "isWritable";
+newObj.prop = "isWritable";
- var afterWrite = (newObj.prop === "isWritable");
+var afterWrite = (newObj.prop === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-184.js b/test/built-ins/Object/create/15.2.3.5-4-184.js
index fdc42d8e6..c87b09d6e 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-184.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-184.js
@@ -8,23 +8,23 @@ description: >
'Properties' is own accessor property (8.10.5 step 6.a)
---*/
- var descObj = {};
+var descObj = {};
- Object.defineProperty(descObj, "writable", {
- get: function () {
- return true;
- }
- });
+Object.defineProperty(descObj, "writable", {
+ get: function() {
+ return true;
+ }
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
+var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined");
- newObj.prop = "isWritable";
+newObj.prop = "isWritable";
- var afterWrite = (newObj.prop === "isWritable");
+var afterWrite = (newObj.prop === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-185.js b/test/built-ins/Object/create/15.2.3.5-4-185.js
index e1152493b..9798108c0 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-185.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-185.js
@@ -8,28 +8,28 @@ description: >
'Properties' is an inherited accessor property (8.10.5 step 6.a)
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "writable", {
- get: function () {
- return true;
- }
- });
+Object.defineProperty(proto, "writable", {
+ get: function() {
+ return true;
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var descObj = new ConstructFun();
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
+var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined");
- newObj.prop = "isWritable";
+newObj.prop = "isWritable";
- var afterWrite = (newObj.prop === "isWritable");
+var afterWrite = (newObj.prop === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-186.js b/test/built-ins/Object/create/15.2.3.5-4-186.js
index 38eafffcc..d72fadb91 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-186.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-186.js
@@ -9,30 +9,30 @@ description: >
data property (8.10.5 step 6.a)
---*/
- var proto = {
- writable: false
- };
+var proto = {
+ writable: false
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var descObj = new ConstructFun();
- Object.defineProperty(descObj, "writable", {
- get: function () {
- return true;
- }
- });
+Object.defineProperty(descObj, "writable", {
+ get: function() {
+ return true;
+ }
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
+var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined");
- newObj.prop = "isWritable";
+newObj.prop = "isWritable";
- var afterWrite = (newObj.prop === "isWritable");
+var afterWrite = (newObj.prop === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-187.js b/test/built-ins/Object/create/15.2.3.5-4-187.js
index 4419c8873..9410fedc0 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-187.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-187.js
@@ -9,34 +9,34 @@ description: >
accessor property (8.10.5 step 6.a)
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "writable", {
- get: function () {
- return false;
- }
- });
+Object.defineProperty(proto, "writable", {
+ get: function() {
+ return false;
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var descObj = new ConstructFun();
- Object.defineProperty(descObj, "writable", {
- get: function () {
- return true;
- }
- });
+Object.defineProperty(descObj, "writable", {
+ get: function() {
+ return true;
+ }
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
+var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined");
- newObj.prop = "isWritable";
+newObj.prop = "isWritable";
- var afterWrite = (newObj.prop === "isWritable");
+var afterWrite = (newObj.prop === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-188.js b/test/built-ins/Object/create/15.2.3.5-4-188.js
index 46aef9df2..25ae2dfc3 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-188.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-188.js
@@ -10,14 +10,16 @@ description: >
includes: [propertyHelper.js]
---*/
-var descObj = { value: 100 };
+var descObj = {
+ value: 100
+};
Object.defineProperty(descObj, "writable", {
- set: function () { }
+ set: function() {}
});
var newObj = Object.create({}, {
- prop: descObj
+ prop: descObj
});
assert.sameValue(newObj.prop, 100);
diff --git a/test/built-ins/Object/create/15.2.3.5-4-189.js b/test/built-ins/Object/create/15.2.3.5-4-189.js
index 0ff9668f9..1f4ef0c78 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-189.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-189.js
@@ -13,24 +13,24 @@ includes: [propertyHelper.js]
var proto = {};
Object.defineProperty(proto, "writable", {
- get: function () {
- return true;
- }
+ get: function() {
+ return true;
+ }
});
-var ConstructFun = function () { };
+var ConstructFun = function() {};
ConstructFun.prototype = proto;
var descObj = new ConstructFun();
Object.defineProperty(descObj, "writable", {
- set: function () { }
+ set: function() {}
});
var newObj = Object.create({}, {
- prop: descObj
+ prop: descObj
});
assert(newObj.hasOwnProperty("prop"))
-assert.sameValue(typeof (newObj.prop), "undefined");
+assert.sameValue(typeof(newObj.prop), "undefined");
verifyNotWritable(newObj, "prop");
diff --git a/test/built-ins/Object/create/15.2.3.5-4-19.js b/test/built-ins/Object/create/15.2.3.5-4-19.js
index dce154b89..b2d519292 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-19.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-19.js
@@ -8,15 +8,15 @@ description: >
is defined in 'obj' (15.2.3.7 step 3)
---*/
- var props = {};
+var props = {};
- Object.defineProperty(props, "prop", {
- get: function () {
- return {};
- },
- enumerable: true
- });
+Object.defineProperty(props, "prop", {
+ get: function() {
+ return {};
+ },
+ enumerable: true
+});
- var newObj = Object.create({}, props);
+var newObj = Object.create({}, props);
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-190.js b/test/built-ins/Object/create/15.2.3.5-4-190.js
index b58182e55..a2d96068e 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-190.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-190.js
@@ -10,19 +10,21 @@ description: >
includes: [propertyHelper.js]
---*/
-var proto = { value: 100 };
+var proto = {
+ value: 100
+};
Object.defineProperty(proto, "writable", {
- set: function () { }
+ set: function() {}
});
-var ConstructFun = function () { };
+var ConstructFun = function() {};
ConstructFun.prototype = proto;
var descObj = new ConstructFun();
var newObj = Object.create({}, {
- prop: descObj
+ prop: descObj
});
assert.sameValue(newObj.prop, 100);
diff --git a/test/built-ins/Object/create/15.2.3.5-4-191.js b/test/built-ins/Object/create/15.2.3.5-4-191.js
index 974137f75..ab546cbf0 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-191.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-191.js
@@ -9,22 +9,22 @@ description: >
property (8.10.5 step 6.a)
---*/
- var Func = function (a, b) {
- return a + b;
- };
+var Func = function(a, b) {
+ return a + b;
+};
- var fun = new Func();
- fun.writable = true;
+var fun = new Func();
+fun.writable = true;
- var newObj = Object.create({}, {
- prop: fun
- });
+var newObj = Object.create({}, {
+ prop: fun
+});
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
+var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined");
- newObj.prop = "isWritable";
+newObj.prop = "isWritable";
- var afterWrite = (newObj.prop === "isWritable");
+var afterWrite = (newObj.prop === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-192.js b/test/built-ins/Object/create/15.2.3.5-4-192.js
index 6adc60591..01ec48139 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-192.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-192.js
@@ -9,19 +9,19 @@ description: >
property (8.10.5 step 6.a)
---*/
- var array = [1, 2, 3];
+var array = [1, 2, 3];
- array.writable = true;
+array.writable = true;
- var newObj = Object.create({}, {
- prop: array
- });
+var newObj = Object.create({}, {
+ prop: array
+});
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
+var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined");
- newObj.prop = "isWritable";
+newObj.prop = "isWritable";
- var afterWrite = (newObj.prop === "isWritable");
+var afterWrite = (newObj.prop === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-193.js b/test/built-ins/Object/create/15.2.3.5-4-193.js
index a4c1d21ba..5736037e6 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-193.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-193.js
@@ -9,19 +9,19 @@ description: >
property (8.10.5 step 6.a)
---*/
- var str = new String("abc");
+var str = new String("abc");
- str.writable = true;
+str.writable = true;
- var newObj = Object.create({}, {
- prop: str
- });
+var newObj = Object.create({}, {
+ prop: str
+});
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
+var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined");
- newObj.prop = "isWritable";
+newObj.prop = "isWritable";
- var afterWrite = (newObj.prop === "isWritable");
+var afterWrite = (newObj.prop === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-194.js b/test/built-ins/Object/create/15.2.3.5-4-194.js
index 55fb8cc62..cd2347e58 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-194.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-194.js
@@ -9,19 +9,19 @@ description: >
property (8.10.5 step 6.a)
---*/
- var booleanObj = new Boolean(false);
+var booleanObj = new Boolean(false);
- booleanObj.writable = true;
+booleanObj.writable = true;
- var newObj = Object.create({}, {
- prop: booleanObj
- });
+var newObj = Object.create({}, {
+ prop: booleanObj
+});
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
+var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined");
- newObj.prop = "isWritable";
+newObj.prop = "isWritable";
- var afterWrite = (newObj.prop === "isWritable");
+var afterWrite = (newObj.prop === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-195.js b/test/built-ins/Object/create/15.2.3.5-4-195.js
index 75defcd96..3995d3864 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-195.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-195.js
@@ -9,19 +9,19 @@ description: >
property (8.10.5 step 6.a)
---*/
- var numObj = new Number(123);
+var numObj = new Number(123);
- numObj.writable = true;
+numObj.writable = true;
- var newObj = Object.create({}, {
- prop: numObj
- });
+var newObj = Object.create({}, {
+ prop: numObj
+});
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
+var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined");
- newObj.prop = "isWritable";
+newObj.prop = "isWritable";
- var afterWrite = (newObj.prop === "isWritable");
+var afterWrite = (newObj.prop === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-196.js b/test/built-ins/Object/create/15.2.3.5-4-196.js
index 4a10a2d35..38ce45508 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-196.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-196.js
@@ -9,17 +9,17 @@ description: >
property (8.10.5 step 6.a)
---*/
- Math.writable = true;
+Math.writable = true;
- var newObj = Object.create({}, {
- prop: Math
- });
+var newObj = Object.create({}, {
+ prop: Math
+});
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
+var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined");
- newObj.prop = "isWritable";
+newObj.prop = "isWritable";
- var afterWrite = (newObj.prop === "isWritable");
+var afterWrite = (newObj.prop === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-197.js b/test/built-ins/Object/create/15.2.3.5-4-197.js
index 826b411ee..fdf8704b5 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-197.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-197.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 6.a)
---*/
- var dateObj = new Date();
+var dateObj = new Date();
- dateObj.writable = true;
+dateObj.writable = true;
- var newObj = Object.create({}, {
- prop: dateObj
- });
+var newObj = Object.create({}, {
+ prop: dateObj
+});
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
+var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined");
- newObj.prop = "isWritable";
+newObj.prop = "isWritable";
- var afterWrite = (newObj.prop === "isWritable");
+var afterWrite = (newObj.prop === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-198.js b/test/built-ins/Object/create/15.2.3.5-4-198.js
index 549af5c86..c1e428849 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-198.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-198.js
@@ -9,19 +9,19 @@ description: >
property (8.10.5 step 6.a)
---*/
- var regObj = new RegExp();
+var regObj = new RegExp();
- regObj.writable = true;
+regObj.writable = true;
- var newObj = Object.create({}, {
- prop: regObj
- });
+var newObj = Object.create({}, {
+ prop: regObj
+});
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
+var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined");
- newObj.prop = "isWritable";
+newObj.prop = "isWritable";
- var afterWrite = (newObj.prop === "isWritable");
+var afterWrite = (newObj.prop === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-199.js b/test/built-ins/Object/create/15.2.3.5-4-199.js
index b0d111992..2a9ed8b67 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-199.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-199.js
@@ -9,17 +9,17 @@ description: >
property (8.10.5 step 6.a)
---*/
- JSON.writable = true;
+JSON.writable = true;
- var newObj = Object.create({}, {
- prop: JSON
- });
+var newObj = Object.create({}, {
+ prop: JSON
+});
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
+var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined");
- newObj.prop = "isWritable";
+newObj.prop = "isWritable";
- var afterWrite = (newObj.prop === "isWritable");
+var afterWrite = (newObj.prop === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-2.js b/test/built-ins/Object/create/15.2.3.5-4-2.js
index 773eec561..080865960 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-2.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-2.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.5-4-2
description: Object.create - 'Properties' is undefined
---*/
- var newObj = Object.create({}, undefined);
+var newObj = Object.create({}, undefined);
assert((newObj instanceof Object), '(newObj instanceof Object) !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-20.js b/test/built-ins/Object/create/15.2.3.5-4-20.js
index 5a158b32b..a0c5c354c 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-20.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-20.js
@@ -8,15 +8,15 @@ description: >
enumerable is not defined in 'obj' (15.2.3.7 step 3)
---*/
- var props = {};
+var props = {};
- Object.defineProperty(props, "prop", {
- get: function () {
- return {};
- },
- enumerable: false
- });
+Object.defineProperty(props, "prop", {
+ get: function() {
+ return {};
+ },
+ enumerable: false
+});
- var newObj = Object.create({}, props);
+var newObj = Object.create({}, props);
assert.sameValue(newObj.hasOwnProperty("prop"), false, 'newObj.hasOwnProperty("prop")');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-200.js b/test/built-ins/Object/create/15.2.3.5-4-200.js
index f5583aafd..2f5badee0 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-200.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-200.js
@@ -9,19 +9,19 @@ description: >
property (8.10.5 step 6.a)
---*/
- var errorObj = new Error();
+var errorObj = new Error();
- errorObj.writable = true;
+errorObj.writable = true;
- var newObj = Object.create({}, {
- prop: errorObj
- });
+var newObj = Object.create({}, {
+ prop: errorObj
+});
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
+var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined");
- newObj.prop = "isWritable";
+newObj.prop = "isWritable";
- var afterWrite = (newObj.prop === "isWritable");
+var afterWrite = (newObj.prop === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-201.js b/test/built-ins/Object/create/15.2.3.5-4-201.js
index 205a6f616..55d89504a 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-201.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-201.js
@@ -9,19 +9,21 @@ description: >
'writable' property (8.10.5 step 6.a)
---*/
- var argObj = (function () { return arguments; })();
+var argObj = (function() {
+ return arguments;
+})();
- argObj.writable = true;
+argObj.writable = true;
- var newObj = Object.create({}, {
- prop: argObj
- });
+var newObj = Object.create({}, {
+ prop: argObj
+});
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
+var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined");
- newObj.prop = "isWritable";
+newObj.prop = "isWritable";
- var afterWrite = (newObj.prop === "isWritable");
+var afterWrite = (newObj.prop === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-203.js b/test/built-ins/Object/create/15.2.3.5-4-203.js
index 2dd103625..02121c841 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-203.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-203.js
@@ -9,17 +9,17 @@ description: >
property (8.10.5 step 6.a)
---*/
- this.writable = true;
+this.writable = true;
- var newObj = Object.create({}, {
- prop: this
- });
+var newObj = Object.create({}, {
+ prop: this
+});
- var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined");
+var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined");
- newObj.prop = "isWritable";
+newObj.prop = "isWritable";
- var afterWrite = (newObj.prop === "isWritable");
+var afterWrite = (newObj.prop === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-204.js b/test/built-ins/Object/create/15.2.3.5-4-204.js
index c887e94ef..26bd33b2f 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-204.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-204.js
@@ -10,9 +10,9 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- writable: undefined
- }
+ prop: {
+ writable: undefined
+ }
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-205.js b/test/built-ins/Object/create/15.2.3.5-4-205.js
index 64db1e0ee..62ef93115 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-205.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-205.js
@@ -10,9 +10,9 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- writable: null
- }
+ prop: {
+ writable: null
+ }
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-206.js b/test/built-ins/Object/create/15.2.3.5-4-206.js
index 4f4250068..aa4244002 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-206.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-206.js
@@ -8,14 +8,14 @@ description: >
'Properties' is true (8.10.5 step 6.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- writable: true
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
+var newObj = Object.create({}, {
+ prop: {
+ writable: true
+ }
+});
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = 121;
+newObj.prop = 121;
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(newObj.prop, 121, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-207.js b/test/built-ins/Object/create/15.2.3.5-4-207.js
index 96aec2071..e7b26dcb0 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-207.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-207.js
@@ -10,9 +10,9 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- writable: false
- }
+ prop: {
+ writable: false
+ }
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-208.js b/test/built-ins/Object/create/15.2.3.5-4-208.js
index 94ac43212..393433939 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-208.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-208.js
@@ -10,9 +10,9 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- writable: 0
- }
+ prop: {
+ writable: 0
+ }
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-209.js b/test/built-ins/Object/create/15.2.3.5-4-209.js
index 1c256cfe2..c7f0534cc 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-209.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-209.js
@@ -10,9 +10,9 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- writable: +0
- }
+ prop: {
+ writable: +0
+ }
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-21.js b/test/built-ins/Object/create/15.2.3.5-4-21.js
index 178b2dcf6..727d04f5f 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-21.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-21.js
@@ -8,19 +8,19 @@ description: >
'Properties' is not defined in 'obj' (15.2.3.7 step 3)
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "prop", {
- get: function () {
- return {};
- },
- enumerable: true
- });
+Object.defineProperty(proto, "prop", {
+ get: function() {
+ return {};
+ },
+ enumerable: true
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var child = new ConstructFun();
- var newObj = Object.create({}, child);
+var newObj = Object.create({}, child);
assert.sameValue(newObj.hasOwnProperty("prop"), false, 'newObj.hasOwnProperty("prop")');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-210.js b/test/built-ins/Object/create/15.2.3.5-4-210.js
index 3fb67d967..dd792fb50 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-210.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-210.js
@@ -10,9 +10,9 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- writable: -0
- }
+ prop: {
+ writable: -0
+ }
});
assert(newObj.hasOwnProperty("prop"))
diff --git a/test/built-ins/Object/create/15.2.3.5-4-211.js b/test/built-ins/Object/create/15.2.3.5-4-211.js
index 72da9c9d0..859704cac 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-211.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-211.js
@@ -10,9 +10,9 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- writable: NaN
- }
+ prop: {
+ writable: NaN
+ }
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-212.js b/test/built-ins/Object/create/15.2.3.5-4-212.js
index b68ad748c..8f2ec73fe 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-212.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-212.js
@@ -8,14 +8,14 @@ description: >
'Properties' is a positive number primitive (8.10.5 step 6.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- writable: 12
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
+var newObj = Object.create({}, {
+ prop: {
+ writable: 12
+ }
+});
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = 121;
+newObj.prop = 121;
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(newObj.prop, 121, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-213.js b/test/built-ins/Object/create/15.2.3.5-4-213.js
index 69ee1f25b..4a6cedb23 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-213.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-213.js
@@ -8,14 +8,14 @@ description: >
'Properties' is a negative number primitive (8.10.5 step 6.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- writable: -9
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
+var newObj = Object.create({}, {
+ prop: {
+ writable: -9
+ }
+});
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = 121;
+newObj.prop = 121;
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(newObj.prop, 121, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-214.js b/test/built-ins/Object/create/15.2.3.5-4-214.js
index 9e82743a1..1e18925d2 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-214.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-214.js
@@ -10,11 +10,11 @@ includes: [propertyHelper.js]
---*/
var descObj = {
- writable: ""
+ writable: ""
};
var newObj = Object.create({}, {
- prop: descObj
+ prop: descObj
});
assert(newObj.hasOwnProperty("prop"))
diff --git a/test/built-ins/Object/create/15.2.3.5-4-215.js b/test/built-ins/Object/create/15.2.3.5-4-215.js
index 0a5b0e187..85825fb99 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-215.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-215.js
@@ -8,14 +8,14 @@ description: >
'Properties' is a non-empty string (8.10.5 step 6.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- writable: "abc"
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
+var newObj = Object.create({}, {
+ prop: {
+ writable: "abc"
+ }
+});
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = 121;
+newObj.prop = 121;
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(newObj.prop, 121, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-216.js b/test/built-ins/Object/create/15.2.3.5-4-216.js
index eb3b062e8..3388d3869 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-216.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-216.js
@@ -8,14 +8,14 @@ description: >
'Properties' is a Function object (8.10.5 step 6.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- writable: function () { }
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
+var newObj = Object.create({}, {
+ prop: {
+ writable: function() {}
+ }
+});
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = 121;
+newObj.prop = 121;
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(newObj.prop, 121, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-217.js b/test/built-ins/Object/create/15.2.3.5-4-217.js
index 2bab6a186..5aba7363a 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-217.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-217.js
@@ -8,14 +8,14 @@ description: >
'Properties' is an Array object (8.10.5 step 6.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- writable: []
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
+var newObj = Object.create({}, {
+ prop: {
+ writable: []
+ }
+});
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = 121;
+newObj.prop = 121;
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(newObj.prop, 121, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-218.js b/test/built-ins/Object/create/15.2.3.5-4-218.js
index 64a7de9c3..96b727847 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-218.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-218.js
@@ -8,14 +8,14 @@ description: >
'Properties' is a String object (8.10.5 step 6.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- writable: new String()
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
+var newObj = Object.create({}, {
+ prop: {
+ writable: new String()
+ }
+});
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = 121;
+newObj.prop = 121;
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(newObj.prop, 121, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-219.js b/test/built-ins/Object/create/15.2.3.5-4-219.js
index 6965d7881..13da7f701 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-219.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-219.js
@@ -8,14 +8,14 @@ description: >
'Properties' is a Boolean object (8.10.5 step 6.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- writable: new Boolean()
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
+var newObj = Object.create({}, {
+ prop: {
+ writable: new Boolean()
+ }
+});
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = 121;
+newObj.prop = 121;
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(newObj.prop, 121, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-22.js b/test/built-ins/Object/create/15.2.3.5-4-22.js
index 3ee831a57..0de4cee28 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-22.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-22.js
@@ -9,19 +9,19 @@ description: >
'obj' (15.2.3.7 step 5.a)
---*/
- var proto = {};
- proto.prop = {
- value: "abc"
- };
+var proto = {};
+proto.prop = {
+ value: "abc"
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- child.prop = {
- value: "bbq"
- };
- var newObj = Object.create({}, child);
+var child = new ConstructFun();
+child.prop = {
+ value: "bbq"
+};
+var newObj = Object.create({}, child);
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
assert.sameValue(newObj.prop, "bbq", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-220.js b/test/built-ins/Object/create/15.2.3.5-4-220.js
index 7cf13ce5c..c26e1170b 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-220.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-220.js
@@ -8,14 +8,14 @@ description: >
'Properties' is a Number object (8.10.5 step 6.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- writable: new Number()
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
+var newObj = Object.create({}, {
+ prop: {
+ writable: new Number()
+ }
+});
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = 121;
+newObj.prop = 121;
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(newObj.prop, 121, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-221.js b/test/built-ins/Object/create/15.2.3.5-4-221.js
index d380fc50c..80789555e 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-221.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-221.js
@@ -8,14 +8,14 @@ description: >
'Properties' is the Math object (8.10.5 step 6.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- writable: Math
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
+var newObj = Object.create({}, {
+ prop: {
+ writable: Math
+ }
+});
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = 121;
+newObj.prop = 121;
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(newObj.prop, 121, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-222.js b/test/built-ins/Object/create/15.2.3.5-4-222.js
index 28e848af1..2f03b51e3 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-222.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-222.js
@@ -8,14 +8,14 @@ description: >
'Properties' is a Date object (8.10.5 step 6.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- writable: new Date()
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
+var newObj = Object.create({}, {
+ prop: {
+ writable: new Date()
+ }
+});
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = 121;
+newObj.prop = 121;
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(newObj.prop, 121, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-223.js b/test/built-ins/Object/create/15.2.3.5-4-223.js
index 5a7b95b49..7df7e01fd 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-223.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-223.js
@@ -8,14 +8,14 @@ description: >
'Properties' is a RegExp object (8.10.5 step 6.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- writable: new RegExp()
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
+var newObj = Object.create({}, {
+ prop: {
+ writable: new RegExp()
+ }
+});
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = 121;
+newObj.prop = 121;
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(newObj.prop, 121, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-224.js b/test/built-ins/Object/create/15.2.3.5-4-224.js
index e5e392749..21ec7f049 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-224.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-224.js
@@ -8,13 +8,13 @@ description: >
'Properties' is the JSON object (8.10.5 step 6.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- writable: JSON
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = 121;
+var newObj = Object.create({}, {
+ prop: {
+ writable: JSON
+ }
+});
+var hasProperty = newObj.hasOwnProperty("prop");
+newObj.prop = 121;
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(newObj.prop, 121, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-225.js b/test/built-ins/Object/create/15.2.3.5-4-225.js
index 5c428978e..65b98ccab 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-225.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-225.js
@@ -8,13 +8,13 @@ description: >
'Properties' is an Error object (8.10.5 step 6.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- writable: new Error()
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = 121;
+var newObj = Object.create({}, {
+ prop: {
+ writable: new Error()
+ }
+});
+var hasProperty = newObj.hasOwnProperty("prop");
+newObj.prop = 121;
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(newObj.prop, 121, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-226.js b/test/built-ins/Object/create/15.2.3.5-4-226.js
index 25f359e78..5836e8c5e 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-226.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-226.js
@@ -8,16 +8,18 @@ description: >
'Properties' is an Arguments object (8.10.5 step 6.b)
---*/
- var argObj = (function () { return arguments; })();
+var argObj = (function() {
+ return arguments;
+})();
- var newObj = Object.create({}, {
- prop: {
- writable: argObj
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
+var newObj = Object.create({}, {
+ prop: {
+ writable: argObj
+ }
+});
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = 121;
+newObj.prop = 121;
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(newObj.prop, 121, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-228.js b/test/built-ins/Object/create/15.2.3.5-4-228.js
index 6b8ffee24..bbe28fcc2 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-228.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-228.js
@@ -8,14 +8,14 @@ description: >
'Properties' is the global object (8.10.5 step 6.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- writable: this
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
+var newObj = Object.create({}, {
+ prop: {
+ writable: this
+ }
+});
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = 121;
+newObj.prop = 121;
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(newObj.prop, 121, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-229.js b/test/built-ins/Object/create/15.2.3.5-4-229.js
index b4ed3b4ac..b3baf808b 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-229.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-229.js
@@ -9,14 +9,14 @@ description: >
the value true (8.10.5 step 6.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- writable: "false"
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
+var newObj = Object.create({}, {
+ prop: {
+ writable: "false"
+ }
+});
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = 121;
+newObj.prop = 121;
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(newObj.prop, 121, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-23.js b/test/built-ins/Object/create/15.2.3.5-4-23.js
index f7ebf041f..9dce4997c 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-23.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-23.js
@@ -9,25 +9,27 @@ description: >
in 'obj' (15.2.3.7 step 5.a)
---*/
- var proto = {};
- Object.defineProperty(proto, "prop", {
- get: function () {
- return { value: 9 };
- },
- enumerable: true
- });
+var proto = {};
+Object.defineProperty(proto, "prop", {
+ get: function() {
+ return {
+ value: 9
+ };
+ },
+ enumerable: true
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "prop", {
- value: {
- value: 12
- },
- enumerable: true
- });
- var newObj = Object.create({}, child);
+var child = new ConstructFun();
+Object.defineProperty(child, "prop", {
+ value: {
+ value: 12
+ },
+ enumerable: true
+});
+var newObj = Object.create({}, child);
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
assert.sameValue(newObj.prop, 12, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-230.js b/test/built-ins/Object/create/15.2.3.5-4-230.js
index 392cacd8b..7741e30f6 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-230.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-230.js
@@ -9,14 +9,14 @@ description: >
true (8.10.5 step 6.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- writable: new Boolean(false)
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
+var newObj = Object.create({}, {
+ prop: {
+ writable: new Boolean(false)
+ }
+});
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = 121;
+newObj.prop = 121;
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(newObj.prop, 121, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-231.js b/test/built-ins/Object/create/15.2.3.5-4-231.js
index d758b8a8d..5228e544f 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-231.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-231.js
@@ -8,12 +8,12 @@ description: >
present (8.10.5 step 7)
---*/
- var newObj = Object.create({}, {
- prop: {
- get: function () {
- return "present";
- }
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ get: function() {
+ return "present";
+ }
+ }
+});
assert.sameValue(newObj.prop, "present", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-232.js b/test/built-ins/Object/create/15.2.3.5-4-232.js
index f7edbce48..1c0eca86e 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-232.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-232.js
@@ -8,8 +8,8 @@ description: >
not present (8.10.5 step 7)
---*/
- var newObj = Object.create({}, {
- prop: {}
- });
+var newObj = Object.create({}, {
+ prop: {}
+});
-assert.sameValue(typeof (newObj.prop), "undefined", 'typeof (newObj.prop)');
+assert.sameValue(typeof(newObj.prop), "undefined", 'typeof (newObj.prop)');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-233.js b/test/built-ins/Object/create/15.2.3.5-4-233.js
index d0f6b3979..f9b8addaf 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-233.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-233.js
@@ -8,12 +8,12 @@ description: >
own data property (8.10.5 step 7.a)
---*/
- var newObj = Object.create({}, {
- prop: {
- get: function () {
- return "ownDataProperty";
- }
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ get: function() {
+ return "ownDataProperty";
+ }
+ }
+});
assert.sameValue(newObj.prop, "ownDataProperty", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-234.js b/test/built-ins/Object/create/15.2.3.5-4-234.js
index 6d53c01f2..84cbca969 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-234.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-234.js
@@ -8,19 +8,19 @@ description: >
an inherited data property (8.10.5 step 7.a)
---*/
- var proto = {
- get: function () {
- return "inheritedDataProperty";
- }
- };
+var proto = {
+ get: function() {
+ return "inheritedDataProperty";
+ }
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var descObj = new ConstructFun();
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
assert.sameValue(newObj.prop, "inheritedDataProperty", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-235.js b/test/built-ins/Object/create/15.2.3.5-4-235.js
index 67474ae09..b900beba5 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-235.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-235.js
@@ -9,25 +9,25 @@ description: >
(8.10.5 step 7.a)
---*/
- var proto = {
- get: function () {
- return "inheritedDataProperty";
- }
- };
+var proto = {
+ get: function() {
+ return "inheritedDataProperty";
+ }
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var descObj = new ConstructFun();
- Object.defineProperty(descObj, "get", {
- value: function () {
- return "ownDataProperty";
- }
- });
+Object.defineProperty(descObj, "get", {
+ value: function() {
+ return "ownDataProperty";
+ }
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
assert.sameValue(newObj.prop, "ownDataProperty", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-236.js b/test/built-ins/Object/create/15.2.3.5-4-236.js
index dd0bab3da..7a559dd09 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-236.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-236.js
@@ -9,28 +9,28 @@ description: >
(8.10.5 step 7.a)
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "get", {
- get: function () {
- return function () {
- return "inheritedAccessorProperty";
- };
- }
- });
+Object.defineProperty(proto, "get", {
+ get: function() {
+ return function() {
+ return "inheritedAccessorProperty";
+ };
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var descObj = new ConstructFun();
- Object.defineProperty(descObj, "get", {
- value: function () {
- return "ownDataProperty";
- }
- });
+Object.defineProperty(descObj, "get", {
+ value: function() {
+ return "ownDataProperty";
+ }
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
assert.sameValue(newObj.prop, "ownDataProperty", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-237.js b/test/built-ins/Object/create/15.2.3.5-4-237.js
index 9ff6e5ec1..b0dae46f4 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-237.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-237.js
@@ -8,18 +8,18 @@ description: >
own accessor property (8.10.5 step 7.a)
---*/
- var descObj = {};
+var descObj = {};
- Object.defineProperty(descObj, "get", {
- get: function () {
- return function () {
- return "ownAccessorProperty";
- };
- }
- });
+Object.defineProperty(descObj, "get", {
+ get: function() {
+ return function() {
+ return "ownAccessorProperty";
+ };
+ }
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
assert.sameValue(newObj.prop, "ownAccessorProperty", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-238.js b/test/built-ins/Object/create/15.2.3.5-4-238.js
index bd1d72427..b9e656c9a 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-238.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-238.js
@@ -8,22 +8,22 @@ description: >
an inherited accessor property (8.10.5 step 7.a)
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "get", {
- get: function () {
- return function () {
- return "inheritedAccessorProperty";
- };
- }
- });
+Object.defineProperty(proto, "get", {
+ get: function() {
+ return function() {
+ return "inheritedAccessorProperty";
+ };
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var descObj = new ConstructFun();
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
assert.sameValue(newObj.prop, "inheritedAccessorProperty", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-239.js b/test/built-ins/Object/create/15.2.3.5-4-239.js
index 33af12730..b15bd2eb0 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-239.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-239.js
@@ -9,26 +9,26 @@ description: >
(8.10.5 step 7.a)
---*/
- var proto = {
- get: function () {
- return "inheritedDataProperty";
- }
- };
+var proto = {
+ get: function() {
+ return "inheritedDataProperty";
+ }
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var descObj = new ConstructFun();
- Object.defineProperty(descObj, "get", {
- get: function () {
- return function () {
- return "ownAccessorProperty";
- };
- }
- });
+Object.defineProperty(descObj, "get", {
+ get: function() {
+ return function() {
+ return "ownAccessorProperty";
+ };
+ }
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
assert.sameValue(newObj.prop, "ownAccessorProperty", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-24.js b/test/built-ins/Object/create/15.2.3.5-4-24.js
index 3e9958961..2388668b6 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-24.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-24.js
@@ -9,25 +9,25 @@ description: >
'obj' (15.2.3.7 step 5.a)
---*/
- var proto = {};
- proto.prop = {
- value: 12
- };
+var proto = {};
+proto.prop = {
+ value: 12
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "prop", {
- get: function () {
- return {
- value: 9
- };
- },
- enumerable: true
- });
+var child = new ConstructFun();
+Object.defineProperty(child, "prop", {
+ get: function() {
+ return {
+ value: 9
+ };
+ },
+ enumerable: true
+});
- var newObj = Object.create({}, child);
+var newObj = Object.create({}, child);
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
assert.sameValue(newObj.prop, 9, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-240.js b/test/built-ins/Object/create/15.2.3.5-4-240.js
index 82839e1df..30e9186d0 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-240.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-240.js
@@ -9,30 +9,30 @@ description: >
property (8.10.5 step 7.a)
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "get", {
- get: function () {
- return function () {
- return "inheritedAccessorProperty";
- };
- }
- });
+Object.defineProperty(proto, "get", {
+ get: function() {
+ return function() {
+ return "inheritedAccessorProperty";
+ };
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var descObj = new ConstructFun();
- Object.defineProperty(descObj, "get", {
- get: function () {
- return function () {
- return "ownAccessorProperty";
- };
- }
- });
+Object.defineProperty(descObj, "get", {
+ get: function() {
+ return function() {
+ return "ownAccessorProperty";
+ };
+ }
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
assert.sameValue(newObj.prop, "ownAccessorProperty", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-241.js b/test/built-ins/Object/create/15.2.3.5-4-241.js
index a5621412b..b3bf67ded 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-241.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-241.js
@@ -8,15 +8,15 @@ description: >
own accessor property without a get function (8.10.5 step 7.a)
---*/
- var descObj = {};
+var descObj = {};
- Object.defineProperty(descObj, "get", {
- set: function () { }
- });
+Object.defineProperty(descObj, "get", {
+ set: function() {}
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
-assert.sameValue(typeof (newObj.prop), "undefined", 'typeof (newObj.prop)');
+assert.sameValue(typeof(newObj.prop), "undefined", 'typeof (newObj.prop)');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-242.js b/test/built-ins/Object/create/15.2.3.5-4-242.js
index ceca51dcc..bad9246a9 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-242.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-242.js
@@ -9,27 +9,27 @@ description: >
inherited accessor property (8.10.5 step 7.a)
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "get", {
- get: function () {
- return function () {
- return "inheritedAccessorProperty";
- };
- }
- });
+Object.defineProperty(proto, "get", {
+ get: function() {
+ return function() {
+ return "inheritedAccessorProperty";
+ };
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var descObj = new ConstructFun();
- Object.defineProperty(descObj, "get", {
- set: function () { }
- });
+Object.defineProperty(descObj, "get", {
+ set: function() {}
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
assert.sameValue(typeof newObj.prop, "undefined", 'typeof newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-243.js b/test/built-ins/Object/create/15.2.3.5-4-243.js
index 05b2a2014..f18c3865d 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-243.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-243.js
@@ -9,19 +9,19 @@ description: >
7.a)
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "get", {
- set: function () { }
- });
+Object.defineProperty(proto, "get", {
+ set: function() {}
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var descObj = new ConstructFun();
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
-assert.sameValue(typeof (newObj.prop), "undefined", 'typeof (newObj.prop)');
+assert.sameValue(typeof(newObj.prop), "undefined", 'typeof (newObj.prop)');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-244.js b/test/built-ins/Object/create/15.2.3.5-4-244.js
index d1c448d76..cc43ee0b1 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-244.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-244.js
@@ -9,14 +9,14 @@ description: >
property (8.10.5 step 7.a)
---*/
- var funObj = function () {};
+var funObj = function() {};
- funObj.get = function () {
- return "VerifyFunctionObject";
- };
+funObj.get = function() {
+ return "VerifyFunctionObject";
+};
- var newObj = Object.create({}, {
- prop: funObj
- });
+var newObj = Object.create({}, {
+ prop: funObj
+});
assert.sameValue(newObj.prop, "VerifyFunctionObject", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-245.js b/test/built-ins/Object/create/15.2.3.5-4-245.js
index 98bdaae83..0c3a7f11b 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-245.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-245.js
@@ -9,14 +9,14 @@ description: >
(8.10.5 step 7.a)
---*/
- var arrayObj = [1, 2, 3];
+var arrayObj = [1, 2, 3];
- arrayObj.get = function () {
- return "VerifyArrayObject";
- };
+arrayObj.get = function() {
+ return "VerifyArrayObject";
+};
- var newObj = Object.create({}, {
- prop: arrayObj
- });
+var newObj = Object.create({}, {
+ prop: arrayObj
+});
assert.sameValue(newObj.prop, "VerifyArrayObject", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-246.js b/test/built-ins/Object/create/15.2.3.5-4-246.js
index 83543f250..bc93c97d2 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-246.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-246.js
@@ -9,14 +9,14 @@ description: >
(8.10.5 step 7.a)
---*/
- var strObj = new String("abc");
+var strObj = new String("abc");
- strObj.get = function () {
- return "VerifyStringObject";
- };
+strObj.get = function() {
+ return "VerifyStringObject";
+};
- var newObj = Object.create({}, {
- prop: strObj
- });
+var newObj = Object.create({}, {
+ prop: strObj
+});
assert.sameValue(newObj.prop, "VerifyStringObject", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-247.js b/test/built-ins/Object/create/15.2.3.5-4-247.js
index 2307c1f41..a13afb818 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-247.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-247.js
@@ -9,14 +9,14 @@ description: >
(8.10.5 step 7.a)
---*/
- var boolObj = new Boolean(true);
+var boolObj = new Boolean(true);
- boolObj.get = function () {
- return "VerifyBooleanObject";
- };
+boolObj.get = function() {
+ return "VerifyBooleanObject";
+};
- var newObj = Object.create({}, {
- prop: boolObj
- });
+var newObj = Object.create({}, {
+ prop: boolObj
+});
assert.sameValue(newObj.prop, "VerifyBooleanObject", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-248.js b/test/built-ins/Object/create/15.2.3.5-4-248.js
index 441c41f6f..a1ac6c835 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-248.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-248.js
@@ -9,14 +9,14 @@ description: >
(8.10.5 step 7.a)
---*/
- var numObj = new Number(5);
+var numObj = new Number(5);
- numObj.get = function () {
- return "VerifyNumberObject";
- };
+numObj.get = function() {
+ return "VerifyNumberObject";
+};
- var newObj = Object.create({}, {
- prop: numObj
- });
+var newObj = Object.create({}, {
+ prop: numObj
+});
assert.sameValue(newObj.prop, "VerifyNumberObject", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-249.js b/test/built-ins/Object/create/15.2.3.5-4-249.js
index 514416040..afbf4ec88 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-249.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-249.js
@@ -9,14 +9,14 @@ description: >
step 7.a)
---*/
- var dateObj = new Date();
+var dateObj = new Date();
- dateObj.get = function () {
- return "VerifyDateObject";
- };
+dateObj.get = function() {
+ return "VerifyDateObject";
+};
- var newObj = Object.create({}, {
- prop: dateObj
- });
+var newObj = Object.create({}, {
+ prop: dateObj
+});
assert.sameValue(newObj.prop, "VerifyDateObject", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-25.js b/test/built-ins/Object/create/15.2.3.5-4-25.js
index d4aa1a079..dd0d7abb4 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-25.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-25.js
@@ -9,29 +9,29 @@ description: >
in 'obj' (15.2.3.7 step 5.a)
---*/
- var proto = {};
- Object.defineProperty(proto, "prop", {
- get: function () {
- return {
- value: 9
- };
- },
- enumerable: true
- });
+var proto = {};
+Object.defineProperty(proto, "prop", {
+ get: function() {
+ return {
+ value: 9
+ };
+ },
+ enumerable: true
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "prop", {
- get: function () {
- return {
- value: 12
- };
- },
- enumerable: true
- });
- var newObj = Object.create({}, child);
+var child = new ConstructFun();
+Object.defineProperty(child, "prop", {
+ get: function() {
+ return {
+ value: 12
+ };
+ },
+ enumerable: true
+});
+var newObj = Object.create({}, child);
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
assert.sameValue(newObj.prop, 12, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-250.js b/test/built-ins/Object/create/15.2.3.5-4-250.js
index 861c07e15..1d3ca0e74 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-250.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-250.js
@@ -9,14 +9,14 @@ description: >
(8.10.5 step 7.a)
---*/
- var regObj = new RegExp();
+var regObj = new RegExp();
- regObj.get = function () {
- return "VerifyRegExpObject";
- };
+regObj.get = function() {
+ return "VerifyRegExpObject";
+};
- var newObj = Object.create({}, {
- prop: regObj
- });
+var newObj = Object.create({}, {
+ prop: regObj
+});
assert.sameValue(newObj.prop, "VerifyRegExpObject", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-251.js b/test/built-ins/Object/create/15.2.3.5-4-251.js
index eceff600f..a94cdb032 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-251.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-251.js
@@ -9,12 +9,12 @@ description: >
(8.10.5 step 7.a)
---*/
- Math.get = function () {
- return "VerifyMathObject";
- };
+Math.get = function() {
+ return "VerifyMathObject";
+};
- var newObj = Object.create({}, {
- prop: Math
- });
+var newObj = Object.create({}, {
+ prop: Math
+});
assert.sameValue(newObj.prop, "VerifyMathObject", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-252.js b/test/built-ins/Object/create/15.2.3.5-4-252.js
index e5cd76b90..96441ccf6 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-252.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-252.js
@@ -9,12 +9,12 @@ description: >
(8.10.5 step 7.a)
---*/
- JSON.get = function () {
- return "VerifyJSONObject";
- };
+JSON.get = function() {
+ return "VerifyJSONObject";
+};
- var newObj = Object.create({}, {
- prop: JSON
- });
+var newObj = Object.create({}, {
+ prop: JSON
+});
assert.sameValue(newObj.prop, "VerifyJSONObject", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-253.js b/test/built-ins/Object/create/15.2.3.5-4-253.js
index 06515f7f2..1adfcf355 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-253.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-253.js
@@ -9,14 +9,14 @@ description: >
(8.10.5 step 7.a)
---*/
- var errObj = new Error("error");
+var errObj = new Error("error");
- errObj.get = function () {
- return "VerifyErrorObject";
- };
+errObj.get = function() {
+ return "VerifyErrorObject";
+};
- var newObj = Object.create({}, {
- prop: errObj
- });
+var newObj = Object.create({}, {
+ prop: errObj
+});
assert.sameValue(newObj.prop, "VerifyErrorObject", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-254.js b/test/built-ins/Object/create/15.2.3.5-4-254.js
index e315a8ae4..17708dec2 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-254.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-254.js
@@ -9,14 +9,16 @@ description: >
property (8.10.5 step 7.a)
---*/
- var argObj = (function () { return arguments; })();
+var argObj = (function() {
+ return arguments;
+})();
- argObj.get = function () {
- return "VerifyArgumentsObject";
- };
+argObj.get = function() {
+ return "VerifyArgumentsObject";
+};
- var newObj = Object.create({}, {
- prop: argObj
- });
+var newObj = Object.create({}, {
+ prop: argObj
+});
assert.sameValue(newObj.prop, "VerifyArgumentsObject", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-256.js b/test/built-ins/Object/create/15.2.3.5-4-256.js
index 1fb8acfc8..6a008d56a 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-256.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-256.js
@@ -9,12 +9,12 @@ description: >
(8.10.5 step 7.a)
---*/
- this.get = function () {
- return "VerifyGlobalObject";
- };
+this.get = function() {
+ return "VerifyGlobalObject";
+};
- var newObj = Object.create({}, {
- prop: this
- });
+var newObj = Object.create({}, {
+ prop: this
+});
assert.sameValue(newObj.prop, "VerifyGlobalObject", 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-257.js b/test/built-ins/Object/create/15.2.3.5-4-257.js
index ca56dae00..00e9fd1bf 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-257.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-257.js
@@ -8,11 +8,11 @@ description: >
undefined (8.10.5 step 7.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- get: undefined
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ get: undefined
+ }
+});
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
assert.sameValue(typeof newObj.prop, "undefined", 'typeof newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-258.js b/test/built-ins/Object/create/15.2.3.5-4-258.js
index e20c4f14b..8adec71c7 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-258.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-258.js
@@ -10,9 +10,9 @@ description: >
assert.throws(TypeError, function() {
- Object.create({}, {
- prop: {
- get: null
- }
- });
+ Object.create({}, {
+ prop: {
+ get: null
+ }
+ });
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-259.js b/test/built-ins/Object/create/15.2.3.5-4-259.js
index f4ae695fa..9546d55a5 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-259.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-259.js
@@ -10,9 +10,9 @@ description: >
assert.throws(TypeError, function() {
- Object.create({}, {
- prop: {
- get: false
- }
- });
+ Object.create({}, {
+ prop: {
+ get: false
+ }
+ });
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-26.js b/test/built-ins/Object/create/15.2.3.5-4-26.js
index 90605aece..d7f814f30 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-26.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-26.js
@@ -8,11 +8,11 @@ description: >
property of 'Properties' without a get function (15.2.3.7 step 5.a)
---*/
- var props = {};
- Object.defineProperty(props, "prop", {
- set: function () { },
- enumerable: true
- });
+var props = {};
+Object.defineProperty(props, "prop", {
+ set: function() {},
+ enumerable: true
+});
assert.throws(TypeError, function() {
- Object.create({}, props);
+ Object.create({}, props);
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-260.js b/test/built-ins/Object/create/15.2.3.5-4-260.js
index 031bdfd56..76d525ff0 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-260.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-260.js
@@ -10,9 +10,9 @@ description: >
assert.throws(TypeError, function() {
- Object.create({}, {
- prop: {
- get: 123
- }
- });
+ Object.create({}, {
+ prop: {
+ get: 123
+ }
+ });
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-261.js b/test/built-ins/Object/create/15.2.3.5-4-261.js
index 8a7f3f955..987227bc3 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-261.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-261.js
@@ -10,9 +10,9 @@ description: >
assert.throws(TypeError, function() {
- Object.create({}, {
- prop: {
- get: "string"
- }
- });
+ Object.create({}, {
+ prop: {
+ get: "string"
+ }
+ });
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-262.js b/test/built-ins/Object/create/15.2.3.5-4-262.js
index f02da1a38..2736a816d 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-262.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-262.js
@@ -10,9 +10,9 @@ description: >
assert.throws(TypeError, function() {
- Object.create({}, {
- prop: {
- get: [1, 2, 3]
- }
- });
+ Object.create({}, {
+ prop: {
+ get: [1, 2, 3]
+ }
+ });
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-263.js b/test/built-ins/Object/create/15.2.3.5-4-263.js
index 36e92fb03..eac85ecd0 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-263.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-263.js
@@ -8,11 +8,11 @@ description: >
a function (8.10.5 step 7.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- get: function () { }
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ get: function() {}
+ }
+});
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
assert.sameValue(typeof newObj.prop, "undefined", 'typeof newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-266.js b/test/built-ins/Object/create/15.2.3.5-4-266.js
index 7711341d2..a52a337ec 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-266.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-266.js
@@ -8,19 +8,19 @@ description: >
present (8.10.5 step 8)
---*/
- var data = "data";
+var data = "data";
- var newObj = Object.create({}, {
- prop: {
- set: function (value) {
- data = value;
- }
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ set: function(value) {
+ data = value;
+ }
+ }
+});
- var hasProperty = newObj.hasOwnProperty("prop");
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = "overrideData";
+newObj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-267.js b/test/built-ins/Object/create/15.2.3.5-4-267.js
index b631d8719..39336cdc3 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-267.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-267.js
@@ -10,11 +10,11 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- get: function () {
- return "data";
- }
+ prop: {
+ get: function() {
+ return "data";
}
+ }
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-268.js b/test/built-ins/Object/create/15.2.3.5-4-268.js
index 60f58383e..16dcec95b 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-268.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-268.js
@@ -8,19 +8,19 @@ description: >
own data property (8.10.5 step 8.a)
---*/
- var data = "data";
+var data = "data";
- var newObj = Object.create({}, {
- prop: {
- set: function (value) {
- data = value;
- }
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ set: function(value) {
+ data = value;
+ }
+ }
+});
- var hasProperty = newObj.hasOwnProperty("prop");
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = "overrideData";
+newObj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-269.js b/test/built-ins/Object/create/15.2.3.5-4-269.js
index d09f86e98..b10039dc2 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-269.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-269.js
@@ -8,24 +8,24 @@ description: >
an inherited data property (8.10.5 step 8.a)
---*/
- var data = "data";
- var proto = {
- set: function (value) {
- data = value;
- }
- };
+var data = "data";
+var proto = {
+ set: function(value) {
+ data = value;
+ }
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var child = new ConstructFun();
- var newObj = Object.create({}, {
- prop: child
- });
+var newObj = Object.create({}, {
+ prop: child
+});
- var hasProperty = newObj.hasOwnProperty("prop");
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = "overrideData";
+newObj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-27.js b/test/built-ins/Object/create/15.2.3.5-4-27.js
index 913f3b4e1..116c6961b 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-27.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-27.js
@@ -10,22 +10,22 @@ description: >
step 5.a)
---*/
- var proto = {};
- Object.defineProperty(proto, "prop", {
- get: function () {
- return {};
- },
- enumerable: true
- });
+var proto = {};
+Object.defineProperty(proto, "prop", {
+ get: function() {
+ return {};
+ },
+ enumerable: true
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "prop", {
- set: function () { },
- enumerable: true
- });
+var child = new ConstructFun();
+Object.defineProperty(child, "prop", {
+ set: function() {},
+ enumerable: true
+});
assert.throws(TypeError, function() {
- Object.create({}, child);
+ Object.create({}, child);
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-270.js b/test/built-ins/Object/create/15.2.3.5-4-270.js
index 229ab9928..cbf40fba6 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-270.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-270.js
@@ -9,28 +9,28 @@ description: >
(8.10.5 step 8.a)
---*/
- var data1 = "data";
- var data2 = "data";
- var proto = {
- set: function (value) {
- data2 = value;
- }
- };
+var data1 = "data";
+var data2 = "data";
+var proto = {
+ set: function(value) {
+ data2 = value;
+ }
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
- child.set = function (value) {
- data1 = value;
- };
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var child = new ConstructFun();
+child.set = function(value) {
+ data1 = value;
+};
- var newObj = Object.create({}, {
- prop: child
- });
+var newObj = Object.create({}, {
+ prop: child
+});
- var hasProperty = newObj.hasOwnProperty("prop");
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = "overrideData";
+newObj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data1, "overrideData", 'data1');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-271.js b/test/built-ins/Object/create/15.2.3.5-4-271.js
index 81e2538bb..53a136202 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-271.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-271.js
@@ -9,34 +9,34 @@ description: >
(8.10.5 step 8.a)
---*/
- var data1 = "data";
- var data2 = "data";
-
- var proto = {};
- Object.defineProperty(proto, "set", {
- get: function () {
- return function (value) {
- data2 = value;
- };
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "set", {
- value: function (value) {
- data1 = value;
- }
- });
-
- var newObj = Object.create({}, {
- prop: child
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
+var data1 = "data";
+var data2 = "data";
+
+var proto = {};
+Object.defineProperty(proto, "set", {
+ get: function() {
+ return function(value) {
+ data2 = value;
+ };
+ }
+});
+
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var child = new ConstructFun();
+Object.defineProperty(child, "set", {
+ value: function(value) {
+ data1 = value;
+ }
+});
+
+var newObj = Object.create({}, {
+ prop: child
+});
+
+var hasProperty = newObj.hasOwnProperty("prop");
+
+newObj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data1, "overrideData", 'data1');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-272.js b/test/built-ins/Object/create/15.2.3.5-4-272.js
index 210068b1b..d26d4a51d 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-272.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-272.js
@@ -8,24 +8,24 @@ description: >
own accessor property (8.10.5 step 8.a)
---*/
- var data = "data";
- var descObj = {};
+var data = "data";
+var descObj = {};
- Object.defineProperty(descObj, "set", {
- get: function () {
- return function (value) {
- data = value;
- };
- }
- });
+Object.defineProperty(descObj, "set", {
+ get: function() {
+ return function(value) {
+ data = value;
+ };
+ }
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
- var hasProperty = newObj.hasOwnProperty("prop");
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = "overrideData";
+newObj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-273.js b/test/built-ins/Object/create/15.2.3.5-4-273.js
index 4d274295a..110ab43e9 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-273.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-273.js
@@ -8,28 +8,28 @@ description: >
an inherited accessor property (8.10.5 step 8.a)
---*/
- var data = "data";
- var proto = {};
+var data = "data";
+var proto = {};
- Object.defineProperty(proto, "set", {
- get: function () {
- return function (value) {
- data = value;
- };
- }
- });
+Object.defineProperty(proto, "set", {
+ get: function() {
+ return function(value) {
+ data = value;
+ };
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var child = new ConstructFun();
- var newObj = Object.create({}, {
- prop: child
- });
+var newObj = Object.create({}, {
+ prop: child
+});
- var hasProperty = newObj.hasOwnProperty("prop");
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = "overrideData";
+newObj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-274.js b/test/built-ins/Object/create/15.2.3.5-4-274.js
index 38d4b172a..7172878c6 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-274.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-274.js
@@ -9,32 +9,32 @@ description: >
(8.10.5 step 8.a)
---*/
- var data1 = "data";
- var data2 = "data";
-
- var proto = {};
- proto.set = function (value) {
- data2 = value;
- };
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "set", {
- get: function () {
- return function (value) {
- data1 = value;
- };
- }
- });
-
- var newObj = Object.create({}, {
- prop: child
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
+var data1 = "data";
+var data2 = "data";
+
+var proto = {};
+proto.set = function(value) {
+ data2 = value;
+};
+
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var child = new ConstructFun();
+Object.defineProperty(child, "set", {
+ get: function() {
+ return function(value) {
+ data1 = value;
+ };
+ }
+});
+
+var newObj = Object.create({}, {
+ prop: child
+});
+
+var hasProperty = newObj.hasOwnProperty("prop");
+
+newObj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data1, "overrideData", 'data1');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-275.js b/test/built-ins/Object/create/15.2.3.5-4-275.js
index 3db96d6f0..6a1ae3a29 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-275.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-275.js
@@ -9,36 +9,36 @@ description: >
property (8.10.5 step 8.a)
---*/
- var data1 = "data";
- var data2 = "data";
- var proto = {};
-
- Object.defineProperty(proto, "set", {
- get: function () {
- return function (value) {
- data2 = value;
- };
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "set", {
- get: function () {
- return function (value) {
- data1 = value;
- };
- }
- });
-
- var newObj = Object.create({}, {
- prop: child
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
+var data1 = "data";
+var data2 = "data";
+var proto = {};
+
+Object.defineProperty(proto, "set", {
+ get: function() {
+ return function(value) {
+ data2 = value;
+ };
+ }
+});
+
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var child = new ConstructFun();
+Object.defineProperty(child, "set", {
+ get: function() {
+ return function(value) {
+ data1 = value;
+ };
+ }
+});
+
+var newObj = Object.create({}, {
+ prop: child
+});
+
+var hasProperty = newObj.hasOwnProperty("prop");
+
+newObj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data1, "overrideData", 'data1');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-276.js b/test/built-ins/Object/create/15.2.3.5-4-276.js
index da31aa0b6..c4f80fded 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-276.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-276.js
@@ -8,18 +8,18 @@ description: >
own accessor property without a get function (8.10.5 step 8.a)
---*/
- var descObj = {};
- Object.defineProperty(descObj, "set", {
- set: function () { }
- });
+var descObj = {};
+Object.defineProperty(descObj, "set", {
+ set: function() {}
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
- var hasProperty = newObj.hasOwnProperty("prop");
+var hasProperty = newObj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(newObj, "prop");
+var desc = Object.getOwnPropertyDescriptor(newObj, "prop");
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-277.js b/test/built-ins/Object/create/15.2.3.5-4-277.js
index 32768a89c..d62abfeff 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-277.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-277.js
@@ -9,25 +9,25 @@ description: >
inherited accessor property (8.10.5 step 8.a)
---*/
- var proto = {};
- Object.defineProperty(proto, "set", {
- get: function () {
- return function () { };
- }
- });
+var proto = {};
+Object.defineProperty(proto, "set", {
+ get: function() {
+ return function() {};
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "set", {
- set: function () { }
- });
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var child = new ConstructFun();
+Object.defineProperty(child, "set", {
+ set: function() {}
+});
- var newObj = Object.create({}, {
- prop: child
- });
+var newObj = Object.create({}, {
+ prop: child
+});
- var desc = Object.getOwnPropertyDescriptor(newObj, "prop");
+var desc = Object.getOwnPropertyDescriptor(newObj, "prop");
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-278.js b/test/built-ins/Object/create/15.2.3.5-4-278.js
index a90edec9a..feddd569f 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-278.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-278.js
@@ -9,20 +9,20 @@ description: >
8.a)
---*/
- var proto = {};
- Object.defineProperty(proto, "set", {
- set: function () { }
- });
+var proto = {};
+Object.defineProperty(proto, "set", {
+ set: function() {}
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var child = new ConstructFun();
- var newObj = Object.create({}, {
- prop: child
- });
+var newObj = Object.create({}, {
+ prop: child
+});
- var desc = Object.getOwnPropertyDescriptor(newObj, "prop");
+var desc = Object.getOwnPropertyDescriptor(newObj, "prop");
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-279.js b/test/built-ins/Object/create/15.2.3.5-4-279.js
index 6dde3c534..cf8f31431 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-279.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-279.js
@@ -9,19 +9,19 @@ description: >
property (8.10.5 step 8.a)
---*/
- var funObj = function () { };
- var data = "data";
- funObj.set = function (value) {
- data = value;
- };
+var funObj = function() {};
+var data = "data";
+funObj.set = function(value) {
+ data = value;
+};
- var newObj = Object.create({}, {
- prop: funObj
- });
+var newObj = Object.create({}, {
+ prop: funObj
+});
- var hasProperty = newObj.hasOwnProperty("prop");
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = "overrideData";
+newObj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-28.js b/test/built-ins/Object/create/15.2.3.5-4-28.js
index ad5b99f6f..447cbbc96 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-28.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-28.js
@@ -9,11 +9,11 @@ description: >
step 5.a)
---*/
- var props = function () { };
- props.prop = {
- value: 12,
- enumerable: true
- };
- var newObj = Object.create({}, props);
+var props = function() {};
+props.prop = {
+ value: 12,
+ enumerable: true
+};
+var newObj = Object.create({}, props);
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-280.js b/test/built-ins/Object/create/15.2.3.5-4-280.js
index 870f30857..8d5d2621f 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-280.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-280.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 8.a)
---*/
- var arrObj = [];
- var data = "data";
- arrObj.set = function (value) {
- data = value;
- };
+var arrObj = [];
+var data = "data";
+arrObj.set = function(value) {
+ data = value;
+};
- var newObj = Object.create({}, {
- prop: arrObj
- });
+var newObj = Object.create({}, {
+ prop: arrObj
+});
- var hasProperty = newObj.hasOwnProperty("prop");
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = "overrideData";
+newObj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-281.js b/test/built-ins/Object/create/15.2.3.5-4-281.js
index e21b55dff..1714c3d58 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-281.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-281.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 8.a)
---*/
- var strObj = new String();
- var data = "data";
- strObj.set = function (value) {
- data = value;
- };
+var strObj = new String();
+var data = "data";
+strObj.set = function(value) {
+ data = value;
+};
- var newObj = Object.create({}, {
- prop: strObj
- });
+var newObj = Object.create({}, {
+ prop: strObj
+});
- var hasProperty = newObj.hasOwnProperty("prop");
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = "overrideData";
+newObj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-282.js b/test/built-ins/Object/create/15.2.3.5-4-282.js
index 88805140c..ffc1d532f 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-282.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-282.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 8.a)
---*/
- var boolObj = new Boolean(true);
- var data = "data";
- boolObj.set = function (value) {
- data = value;
- };
+var boolObj = new Boolean(true);
+var data = "data";
+boolObj.set = function(value) {
+ data = value;
+};
- var newObj = Object.create({}, {
- prop: boolObj
- });
+var newObj = Object.create({}, {
+ prop: boolObj
+});
- var hasProperty = newObj.hasOwnProperty("prop");
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = "overrideData";
+newObj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-283.js b/test/built-ins/Object/create/15.2.3.5-4-283.js
index 16bbd2655..17a6634c2 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-283.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-283.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 8.a)
---*/
- var numObj = new Number(5);
- var data = "data";
- numObj.set = function (value) {
- data = value;
- };
+var numObj = new Number(5);
+var data = "data";
+numObj.set = function(value) {
+ data = value;
+};
- var newObj = Object.create({}, {
- prop: numObj
- });
+var newObj = Object.create({}, {
+ prop: numObj
+});
- var hasProperty = newObj.hasOwnProperty("prop");
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = "overrideData";
+newObj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-284.js b/test/built-ins/Object/create/15.2.3.5-4-284.js
index 58777acf2..c0581d999 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-284.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-284.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 8.a)
---*/
- var data = "data";
+var data = "data";
- Math.set = function (value) {
- data = value;
- };
+Math.set = function(value) {
+ data = value;
+};
- var newObj = Object.create({}, {
- prop: Math
- });
+var newObj = Object.create({}, {
+ prop: Math
+});
- var hasProperty = newObj.hasOwnProperty("prop");
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = "overrideData";
+newObj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-285.js b/test/built-ins/Object/create/15.2.3.5-4-285.js
index 1bf31557b..04a3b4b42 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-285.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-285.js
@@ -9,19 +9,19 @@ description: >
step 8.a)
---*/
- var dateObj = new Date();
- var data = "data";
- dateObj.set = function (value) {
- data = value;
- };
+var dateObj = new Date();
+var data = "data";
+dateObj.set = function(value) {
+ data = value;
+};
- var newObj = Object.create({}, {
- prop: dateObj
- });
+var newObj = Object.create({}, {
+ prop: dateObj
+});
- var hasProperty = newObj.hasOwnProperty("prop");
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = "overrideData";
+newObj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-286.js b/test/built-ins/Object/create/15.2.3.5-4-286.js
index 15e839baf..faf579591 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-286.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-286.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 8.a)
---*/
- var regObj = new RegExp();
- var data = "data";
- regObj.set = function (value) {
- data = value;
- };
+var regObj = new RegExp();
+var data = "data";
+regObj.set = function(value) {
+ data = value;
+};
- var newObj = Object.create({}, {
- prop: regObj
- });
+var newObj = Object.create({}, {
+ prop: regObj
+});
- var hasProperty = newObj.hasOwnProperty("prop");
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = "overrideData";
+newObj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-287.js b/test/built-ins/Object/create/15.2.3.5-4-287.js
index 6057e68fb..6b86ddf6a 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-287.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-287.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 8.a)
---*/
- var data = "data";
+var data = "data";
- JSON.set = function (value) {
- data = value;
- };
+JSON.set = function(value) {
+ data = value;
+};
- var newObj = Object.create({}, {
- prop: JSON
- });
+var newObj = Object.create({}, {
+ prop: JSON
+});
- var hasProperty = newObj.hasOwnProperty("prop");
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = "overrideData";
+newObj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-288.js b/test/built-ins/Object/create/15.2.3.5-4-288.js
index 1db623aa7..8e52a0aab 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-288.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-288.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 8.a)
---*/
- var errObj = new Error("error");
- var data = "data";
+var errObj = new Error("error");
+var data = "data";
- errObj.set = function (value) {
- data = value;
- };
+errObj.set = function(value) {
+ data = value;
+};
- var newObj = Object.create({}, {
- prop: errObj
- });
+var newObj = Object.create({}, {
+ prop: errObj
+});
- newObj.prop = "overrideData";
+newObj.prop = "overrideData";
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-289.js b/test/built-ins/Object/create/15.2.3.5-4-289.js
index f14ebb667..204be5072 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-289.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-289.js
@@ -9,21 +9,23 @@ description: >
property (8.10.5 step 8.a)
---*/
- var argObj = (function () { return arguments; })();
+var argObj = (function() {
+ return arguments;
+})();
- var data = "data";
+var data = "data";
- argObj.set = function (value) {
- data = value;
- };
+argObj.set = function(value) {
+ data = value;
+};
- var newobj = Object.create({}, {
- prop: argObj
- });
+var newobj = Object.create({}, {
+ prop: argObj
+});
- var hasProperty = newobj.hasOwnProperty("prop");
+var hasProperty = newobj.hasOwnProperty("prop");
- newobj.prop = "overrideData";
+newobj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-29.js b/test/built-ins/Object/create/15.2.3.5-4-29.js
index bcd6fdb51..b840b79a3 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-29.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-29.js
@@ -9,11 +9,11 @@ description: >
5.a)
---*/
- var props = [];
- props.prop = {
- value: {},
- enumerable: true
- };
- var newObj = Object.create({}, props);
+var props = [];
+props.prop = {
+ value: {},
+ enumerable: true
+};
+var newObj = Object.create({}, props);
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-291.js b/test/built-ins/Object/create/15.2.3.5-4-291.js
index b412aa9d0..33c423a27 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-291.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-291.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 8.a)
---*/
- var data = "data";
+var data = "data";
- this.set = function (value) {
- data = value;
- };
+this.set = function(value) {
+ data = value;
+};
- var newObj = Object.create({}, {
- prop: this
- });
+var newObj = Object.create({}, {
+ prop: this
+});
- var hasProperty = newObj.hasOwnProperty("prop");
+var hasProperty = newObj.hasOwnProperty("prop");
- newObj.prop = "overrideData";
+newObj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-292.js b/test/built-ins/Object/create/15.2.3.5-4-292.js
index a13e18d5b..5f18a390e 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-292.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-292.js
@@ -10,9 +10,9 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- set: undefined
- }
+ prop: {
+ set: undefined
+ }
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-293.js b/test/built-ins/Object/create/15.2.3.5-4-293.js
index b5141d316..ca1d2ed80 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-293.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-293.js
@@ -10,9 +10,9 @@ description: >
assert.throws(TypeError, function() {
- Object.create({}, {
- prop: {
- set: null
- }
- });
+ Object.create({}, {
+ prop: {
+ set: null
+ }
+ });
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-294.js b/test/built-ins/Object/create/15.2.3.5-4-294.js
index 0253d46f9..e383baec9 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-294.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-294.js
@@ -10,9 +10,9 @@ description: >
assert.throws(TypeError, function() {
- Object.create({}, {
- prop: {
- set: true
- }
- });
+ Object.create({}, {
+ prop: {
+ set: true
+ }
+ });
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-295.js b/test/built-ins/Object/create/15.2.3.5-4-295.js
index db9776e03..5d27c9b84 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-295.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-295.js
@@ -10,9 +10,9 @@ description: >
assert.throws(TypeError, function() {
- Object.create({}, {
- prop: {
- set: 123
- }
- });
+ Object.create({}, {
+ prop: {
+ set: 123
+ }
+ });
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-296.js b/test/built-ins/Object/create/15.2.3.5-4-296.js
index 9912d0806..dc615210a 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-296.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-296.js
@@ -10,9 +10,9 @@ description: >
assert.throws(TypeError, function() {
- Object.create({}, {
- prop: {
- set: "abc"
- }
- });
+ Object.create({}, {
+ prop: {
+ set: "abc"
+ }
+ });
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-297.js b/test/built-ins/Object/create/15.2.3.5-4-297.js
index 0365a10f8..36a3c9acb 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-297.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-297.js
@@ -10,9 +10,9 @@ description: >
assert.throws(TypeError, function() {
- Object.create({}, {
- prop: {
- set: new Date()
- }
- });
+ Object.create({}, {
+ prop: {
+ set: new Date()
+ }
+ });
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-298.js b/test/built-ins/Object/create/15.2.3.5-4-298.js
index e47f6121d..2b680d63e 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-298.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-298.js
@@ -8,17 +8,17 @@ description: >
a function (8.10.5 step 8.b)
---*/
- var data = "data";
+var data = "data";
- var newObj = Object.create({}, {
- prop: {
- set: function (value) {
- data = value;
- }
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ set: function(value) {
+ data = value;
+ }
+ }
+});
- newObj.prop = "overrideData";
+newObj.prop = "overrideData";
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-3.js b/test/built-ins/Object/create/15.2.3.5-4-3.js
index 5d998fb97..592654ea1 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-3.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-3.js
@@ -10,5 +10,5 @@ description: >
assert.throws(TypeError, function() {
- Object.create({}, null);
+ Object.create({}, null);
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-30.js b/test/built-ins/Object/create/15.2.3.5-4-30.js
index 13b59d8af..f8d67b7f9 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-30.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-30.js
@@ -9,11 +9,11 @@ description: >
5.a)
---*/
- var props = new String();
- props.prop = {
- value: 12,
- enumerable: true
- };
- var newObj = Object.create({}, props);
+var props = new String();
+props.prop = {
+ value: 12,
+ enumerable: true
+};
+var newObj = Object.create({}, props);
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-300.js b/test/built-ins/Object/create/15.2.3.5-4-300.js
index 4e350f9e7..c261cbe15 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-300.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-300.js
@@ -11,9 +11,9 @@ description: >
var global = this;
assert.throws(TypeError, function() {
- Object.create({}, {
- prop: {
- set: global
- }
- });
+ Object.create({}, {
+ prop: {
+ set: global
+ }
+ });
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-301.js b/test/built-ins/Object/create/15.2.3.5-4-301.js
index 41acad4d2..a7f9180cb 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-301.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-301.js
@@ -11,10 +11,10 @@ description: >
assert.throws(TypeError, function() {
- Object.create({}, {
- prop: {
- set: function () { },
- value: 100
- }
- });
+ Object.create({}, {
+ prop: {
+ set: function() {},
+ value: 100
+ }
+ });
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-302.js b/test/built-ins/Object/create/15.2.3.5-4-302.js
index 9d9b0dc59..8fbe8eda1 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-302.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-302.js
@@ -11,10 +11,10 @@ description: >
assert.throws(TypeError, function() {
- Object.create({}, {
- prop: {
- set: function () { },
- writable: true
- }
- });
+ Object.create({}, {
+ prop: {
+ set: function() {},
+ writable: true
+ }
+ });
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-303.js b/test/built-ins/Object/create/15.2.3.5-4-303.js
index 459a8580e..365fc271d 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-303.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-303.js
@@ -11,10 +11,10 @@ description: >
assert.throws(TypeError, function() {
- Object.create({}, {
- prop: {
- get: function () { },
- value: 100
- }
- });
+ Object.create({}, {
+ prop: {
+ get: function() {},
+ value: 100
+ }
+ });
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-304.js b/test/built-ins/Object/create/15.2.3.5-4-304.js
index bae6d8dff..c0ae83d2e 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-304.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-304.js
@@ -11,10 +11,10 @@ description: >
assert.throws(TypeError, function() {
- Object.create({}, {
- prop: {
- get: function () { },
- writable: true
- }
- });
+ Object.create({}, {
+ prop: {
+ get: function() {},
+ writable: true
+ }
+ });
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-305.js b/test/built-ins/Object/create/15.2.3.5-4-305.js
index 225047a59..360854265 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-305.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-305.js
@@ -8,10 +8,10 @@ description: >
'Properties' is generic descriptor (8.12.9 step 4.a)
---*/
- var newObj = Object.create({}, {
- prop: {
- enumerable: true
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: true
+ }
+});
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-306.js b/test/built-ins/Object/create/15.2.3.5-4-306.js
index 328c209d4..a4fbb8236 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-306.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-306.js
@@ -8,13 +8,13 @@ description: >
data descriptor of one property in 'Properties' (8.12.9 step 4.a.i)
---*/
- var newObj = Object.create({}, {
- prop: {
- writable: true,
- configurable: true,
- enumerable: true
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ writable: true,
+ configurable: true,
+ enumerable: true
+ }
+});
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
assert.sameValue(newObj.prop, undefined, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-307.js b/test/built-ins/Object/create/15.2.3.5-4-307.js
index 3f9e40703..fd79b1d4a 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-307.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-307.js
@@ -10,11 +10,11 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- value: 1001,
- configurable: true,
- enumerable: true
- }
+ prop: {
+ value: 1001,
+ configurable: true,
+ enumerable: true
+ }
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-308.js b/test/built-ins/Object/create/15.2.3.5-4-308.js
index 07980d287..ef8c63a26 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-308.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-308.js
@@ -8,23 +8,23 @@ description: >
data descriptor of one property in 'Properties' (8.12.9 step 4.a.i)
---*/
- var isEnumerable = false;
+var isEnumerable = false;
- var newObj = Object.create({}, {
- prop: {
- value: 1001,
- writable: true,
- configurable: true
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ value: 1001,
+ writable: true,
+ configurable: true
+ }
+});
- var hasProperty = newObj.hasOwnProperty("prop");
+var hasProperty = newObj.hasOwnProperty("prop");
- for (var p in newObj) {
- if (p === "prop") {
- isEnumerable = true;
- }
- }
+for (var p in newObj) {
+ if (p === "prop") {
+ isEnumerable = true;
+ }
+}
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(isEnumerable, false, 'isEnumerable');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-309.js b/test/built-ins/Object/create/15.2.3.5-4-309.js
index 98930055a..a9143455b 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-309.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-309.js
@@ -11,13 +11,12 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- value: 1001,
- writable: true,
- enumerable: true
- }
+ prop: {
+ value: 1001,
+ writable: true,
+ enumerable: true
+ }
});
assert(newObj.hasOwnProperty("prop"));
verifyNotConfigurable(newObj, "prop");
-
diff --git a/test/built-ins/Object/create/15.2.3.5-4-31.js b/test/built-ins/Object/create/15.2.3.5-4-31.js
index 45044ed2f..7bb081770 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-31.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-31.js
@@ -9,11 +9,11 @@ description: >
(15.2.3.7 step 5.a)
---*/
- var props = new Boolean(false);
- props.prop = {
- value: 12,
- enumerable: true
- };
- var newObj = Object.create({}, props);
+var props = new Boolean(false);
+props.prop = {
+ value: 12,
+ enumerable: true
+};
+var newObj = Object.create({}, props);
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-310.js b/test/built-ins/Object/create/15.2.3.5-4-310.js
index e61fac09d..33fb66612 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-310.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-310.js
@@ -9,13 +9,13 @@ description: >
4.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- set: function () { },
- enumerable: true,
- configurable: true
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ set: function() {},
+ enumerable: true,
+ configurable: true
+ }
+});
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
assert.sameValue(newObj.prop, undefined, 'newObj.prop');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-311.js b/test/built-ins/Object/create/15.2.3.5-4-311.js
index c9e5b2cf4..fa6f42a1e 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-311.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-311.js
@@ -9,35 +9,35 @@ description: >
4.b)
---*/
- var newObj = Object.create({}, {
- prop: {
- get: function () {
- return "verifyCreate";
- },
- enumerable: true,
- configurable: true
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ get: function() {
+ return "verifyCreate";
+ },
+ enumerable: true,
+ configurable: true
+ }
+});
- var desc = Object.getOwnPropertyDescriptor(newObj, "prop");
- var verifySet = desc.hasOwnProperty("set") && typeof desc.set === "undefined";
+var desc = Object.getOwnPropertyDescriptor(newObj, "prop");
+var verifySet = desc.hasOwnProperty("set") && typeof desc.set === "undefined";
- var verifyGet = false;
- if (newObj.prop === "verifyCreate") {
- verifyGet = true;
- }
+var verifyGet = false;
+if (newObj.prop === "verifyCreate") {
+ verifyGet = true;
+}
- var verifyEnumerable = false;
- for (var p in newObj) {
- if (p === "prop") {
- verifyEnumerable = true;
- }
- }
+var verifyEnumerable = false;
+for (var p in newObj) {
+ if (p === "prop") {
+ verifyEnumerable = true;
+ }
+}
- var verifyConfigurable = false;
- var hasProperty = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- verifyConfigurable = !newObj.hasOwnProperty("prop") && hasProperty;
+var verifyConfigurable = false;
+var hasProperty = newObj.hasOwnProperty("prop");
+delete newObj.prop;
+verifyConfigurable = !newObj.hasOwnProperty("prop") && hasProperty;
assert(verifySet, 'verifySet !== true');
assert(verifyGet, 'verifyGet !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-312.js b/test/built-ins/Object/create/15.2.3.5-4-312.js
index d6e54fa17..12f4b4e57 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-312.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-312.js
@@ -9,20 +9,20 @@ description: >
4.b)
---*/
- var isEnumerable = false;
- var newObj = Object.create({}, {
- prop: {
- set: function () { },
- get: function () { },
- configurable: true
- }
- });
- var hasProperty = newObj.hasOwnProperty("prop");
- for (var p in newObj) {
- if (p === "prop") {
- isEnumerable = true;
- }
- }
+var isEnumerable = false;
+var newObj = Object.create({}, {
+ prop: {
+ set: function() {},
+ get: function() {},
+ configurable: true
+ }
+});
+var hasProperty = newObj.hasOwnProperty("prop");
+for (var p in newObj) {
+ if (p === "prop") {
+ isEnumerable = true;
+ }
+}
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(isEnumerable, false, 'isEnumerable');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-313.js b/test/built-ins/Object/create/15.2.3.5-4-313.js
index 0a0d7f57e..9ab55313b 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-313.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-313.js
@@ -11,11 +11,11 @@ includes: [propertyHelper.js]
---*/
var newObj = Object.create({}, {
- prop: {
- set: function () { },
- get: function () { },
- enumerable: true
- }
+ prop: {
+ set: function() {},
+ get: function() {},
+ enumerable: true
+ }
});
assert(newObj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/create/15.2.3.5-4-314.js b/test/built-ins/Object/create/15.2.3.5-4-314.js
index 7fd8b2b12..d7e7c5964 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-314.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-314.js
@@ -8,8 +8,8 @@ description: >
empty object (15.2.3.7 step 7)
---*/
- var newObj = Object.create({}, {
- foo: {}
- });
+var newObj = Object.create({}, {
+ foo: {}
+});
assert(newObj.hasOwnProperty("foo"), 'newObj.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-315.js b/test/built-ins/Object/create/15.2.3.5-4-315.js
index 096ac14ad..d4bfc58cf 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-315.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-315.js
@@ -10,26 +10,28 @@ includes: [propertyHelper.js]
---*/
var newObj = {};
+
function getFunc() {
- return 10;
+ return 10;
}
+
function setFunc(value) {
- newObj.setVerifyHelpProp = value;
+ newObj.setVerifyHelpProp = value;
}
newObj = Object.create({}, {
- foo1: {
- value: 200,
- enumerable: true,
- writable: true,
- configurable: true
- },
- foo2: {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
- }
+ foo1: {
+ value: 200,
+ enumerable: true,
+ writable: true,
+ configurable: true
+ },
+ foo2: {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+ }
});
verifyEqualTo(newObj, "foo1", 200);
diff --git a/test/built-ins/Object/create/15.2.3.5-4-316.js b/test/built-ins/Object/create/15.2.3.5-4-316.js
index bc43715d4..2f42172f4 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-316.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-316.js
@@ -8,31 +8,32 @@ description: >
numerical names (15.2.3.7 step 7)
---*/
- function getFunc() {
- return 20;
- }
- function setFunc() { }
+function getFunc() {
+ return 20;
+}
- var newObj = Object.create({}, {
- 0: {
- value: 100,
- enumerable: true,
- writable: true,
- configurable: true
- },
- 1: {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
- },
- 2: {
- value: 200,
- enumerable: true,
- writable: true,
- configurable: true
- }
- });
+function setFunc() {}
+
+var newObj = Object.create({}, {
+ 0: {
+ value: 100,
+ enumerable: true,
+ writable: true,
+ configurable: true
+ },
+ 1: {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+ },
+ 2: {
+ value: 200,
+ enumerable: true,
+ writable: true,
+ configurable: true
+ }
+});
assert.sameValue(newObj[0], 100, 'newObj[0]');
assert.sameValue(newObj[1], 20, 'newObj[1]');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-32.js b/test/built-ins/Object/create/15.2.3.5-4-32.js
index 2e4d7c436..1f940b5e7 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-32.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-32.js
@@ -9,11 +9,11 @@ description: >
5.a)
---*/
- var props = new Number(-9);
- props.prop = {
- value: 12,
- enumerable: true
- };
- var newObj = Object.create({}, props);
+var props = new Number(-9);
+props.prop = {
+ value: 12,
+ enumerable: true
+};
+var newObj = Object.create({}, props);
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-33.js b/test/built-ins/Object/create/15.2.3.5-4-33.js
index 28684d926..3bc37eca7 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-33.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-33.js
@@ -9,10 +9,10 @@ description: >
5.a)
---*/
- Math.prop = {
- value: 12,
- enumerable: true
- };
- var newObj = Object.create({}, Math);
+Math.prop = {
+ value: 12,
+ enumerable: true
+};
+var newObj = Object.create({}, Math);
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-34.js b/test/built-ins/Object/create/15.2.3.5-4-34.js
index 33bf19e07..c2d007dea 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-34.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-34.js
@@ -9,11 +9,11 @@ description: >
5.a)
---*/
- var props = new Date();
- props.prop = {
- value: 12,
- enumerable: true
- };
- var newObj = Object.create({}, props);
+var props = new Date();
+props.prop = {
+ value: 12,
+ enumerable: true
+};
+var newObj = Object.create({}, props);
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-35.js b/test/built-ins/Object/create/15.2.3.5-4-35.js
index effb3e92e..2a7a7664c 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-35.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-35.js
@@ -9,11 +9,11 @@ description: >
5.a)
---*/
- var props = new RegExp();
- props.prop = {
- value: 12,
- enumerable: true
- };
- var newObj = Object.create({}, props);
+var props = new RegExp();
+props.prop = {
+ value: 12,
+ enumerable: true
+};
+var newObj = Object.create({}, props);
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-36.js b/test/built-ins/Object/create/15.2.3.5-4-36.js
index f11823460..5e11b46b3 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-36.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-36.js
@@ -9,10 +9,10 @@ description: >
5.a)
---*/
- JSON.prop = {
- value: 12,
- enumerable: true
- };
- var newObj = Object.create({}, JSON);
+JSON.prop = {
+ value: 12,
+ enumerable: true
+};
+var newObj = Object.create({}, JSON);
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-37.js b/test/built-ins/Object/create/15.2.3.5-4-37.js
index dcef0aea4..ba4098ae5 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-37.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-37.js
@@ -9,16 +9,19 @@ description: >
5.a)
---*/
- var props = new Error("test");
+var props = new Error("test");
- (Object.getOwnPropertyNames(props)).forEach(function(name){
- props[name] = {value:11, configurable:true}
- });
+(Object.getOwnPropertyNames(props)).forEach(function(name) {
+ props[name] = {
+ value: 11,
+ configurable: true
+ }
+});
- props.prop15_2_3_5_4_37 = {
- value: 12,
- enumerable: true
- };
- var newObj = Object.create({}, props);
+props.prop15_2_3_5_4_37 = {
+ value: 12,
+ enumerable: true
+};
+var newObj = Object.create({}, props);
assert(newObj.hasOwnProperty("prop15_2_3_5_4_37"), 'newObj.hasOwnProperty("prop15_2_3_5_4_37") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-38.js b/test/built-ins/Object/create/15.2.3.5-4-38.js
index b0ffcabf0..50cd1a2eb 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-38.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-38.js
@@ -9,13 +9,15 @@ description: >
property (15.2.3.7 step 5.a)
---*/
- var argObj = (function () { return arguments; })();
+var argObj = (function() {
+ return arguments;
+})();
- argObj.prop = {
- value: 12,
- enumerable: true
- };
+argObj.prop = {
+ value: 12,
+ enumerable: true
+};
- var newObj = Object.create({}, argObj);
+var newObj = Object.create({}, argObj);
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-39.js b/test/built-ins/Object/create/15.2.3.5-4-39.js
index 6bd0d2a9a..7b644636a 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-39.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-39.js
@@ -9,19 +9,25 @@ description: >
5.a)
---*/
- var props = {};
- props.prop1 = { value: 12, enumerable: true };
- props.prop2 = { value: true, enumerable: true };
+var props = {};
+props.prop1 = {
+ value: 12,
+ enumerable: true
+};
+props.prop2 = {
+ value: true,
+ enumerable: true
+};
- var tempArray = [];
- for (var p in props) {
- if (props.hasOwnProperty(p)) {
- tempArray.push(p);
- }
- }
+var tempArray = [];
+for (var p in props) {
+ if (props.hasOwnProperty(p)) {
+ tempArray.push(p);
+ }
+}
- var newObj = Object.create({}, props);
- var index = 0;
- for (var q in newObj) {
- assert.sameValue(tempArray[index++] !== q && newObj.hasOwnProperty(q), false, 'tempArray[index++] !== q && newObj.hasOwnProperty(q)');
- }
+var newObj = Object.create({}, props);
+var index = 0;
+for (var q in newObj) {
+ assert.sameValue(tempArray[index++] !== q && newObj.hasOwnProperty(q), false, 'tempArray[index++] !== q && newObj.hasOwnProperty(q)');
+}
diff --git a/test/built-ins/Object/create/15.2.3.5-4-4.js b/test/built-ins/Object/create/15.2.3.5-4-4.js
index 5cf42f78e..852786420 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-4.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-4.js
@@ -8,16 +8,16 @@ description: >
2).
---*/
- var props = {};
- var result = false;
+var props = {};
+var result = false;
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof Object;
- return {};
- },
- enumerable: true
- });
- Object.create({}, props);
+Object.defineProperty(props, "prop", {
+ get: function() {
+ result = this instanceof Object;
+ return {};
+ },
+ enumerable: true
+});
+Object.create({}, props);
assert(result, 'result !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-40.js b/test/built-ins/Object/create/15.2.3.5-4-40.js
index 91c14b190..2cc93673b 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-40.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-40.js
@@ -9,30 +9,30 @@ description: >
(15.2.3.7 step 5.a)
---*/
- var newObj = {};
- var props = {};
- var i = 0;
+var newObj = {};
+var props = {};
+var i = 0;
- Object.defineProperty(props, "prop1", {
- get: function () {
- i++;
- return {};
- },
- enumerable: true
- });
+Object.defineProperty(props, "prop1", {
+ get: function() {
+ i++;
+ return {};
+ },
+ enumerable: true
+});
- Object.defineProperty(props, "prop2", {
- get: function () {
- if (1 === i++) {
- throw new RangeError();
- } else {
- return {};
- }
- },
- enumerable: true
- });
+Object.defineProperty(props, "prop2", {
+ get: function() {
+ if (1 === i++) {
+ throw new RangeError();
+ } else {
+ return {};
+ }
+ },
+ enumerable: true
+});
assert.throws(RangeError, function() {
- newObj = Object.create({}, props);
+ newObj = Object.create({}, props);
});
assert.sameValue(newObj.hasOwnProperty("prop1"), false, 'newObj.hasOwnProperty("prop1")');
assert.sameValue(i, 2, 'i');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-41.js b/test/built-ins/Object/create/15.2.3.5-4-41.js
index d74dd58cd..b7ecc9285 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-41.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-41.js
@@ -10,7 +10,7 @@ description: >
assert.throws(TypeError, function() {
- Object.create({}, {
- prop: undefined
- });
+ Object.create({}, {
+ prop: undefined
+ });
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-42.js b/test/built-ins/Object/create/15.2.3.5-4-42.js
index 424a2be66..6facce654 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-42.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-42.js
@@ -10,7 +10,7 @@ description: >
assert.throws(TypeError, function() {
- Object.create({}, {
- prop: null
- });
+ Object.create({}, {
+ prop: null
+ });
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-43.js b/test/built-ins/Object/create/15.2.3.5-4-43.js
index f3ca54ea4..e8ea28ed6 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-43.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-43.js
@@ -10,7 +10,7 @@ description: >
assert.throws(TypeError, function() {
- Object.create({}, {
- prop: false
- });
+ Object.create({}, {
+ prop: false
+ });
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-44.js b/test/built-ins/Object/create/15.2.3.5-4-44.js
index 18073ec96..1f2f43ba9 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-44.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-44.js
@@ -10,7 +10,7 @@ description: >
assert.throws(TypeError, function() {
- Object.create({}, {
- prop: 12
- });
+ Object.create({}, {
+ prop: 12
+ });
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-45.js b/test/built-ins/Object/create/15.2.3.5-4-45.js
index 653c33ccb..1c76337e7 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-45.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-45.js
@@ -10,7 +10,7 @@ description: >
assert.throws(TypeError, function() {
- Object.create({}, {
- prop: "abc"
- });
+ Object.create({}, {
+ prop: "abc"
+ });
});
diff --git a/test/built-ins/Object/create/15.2.3.5-4-46.js b/test/built-ins/Object/create/15.2.3.5-4-46.js
index b0bc6c13b..2e8c022ec 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-46.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-46.js
@@ -8,16 +8,16 @@ description: >
'Properties' is true (8.10.5 step 3)
---*/
- var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: true
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var accessed = false;
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: true
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-47.js b/test/built-ins/Object/create/15.2.3.5-4-47.js
index 1fc56ec9d..2fa461678 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-47.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-47.js
@@ -8,15 +8,15 @@ description: >
'Properties' is not present (8.10.5 step 3)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {}
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {}
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-48.js b/test/built-ins/Object/create/15.2.3.5-4-48.js
index 5c4b6e0b4..390d8f526 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-48.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-48.js
@@ -8,18 +8,18 @@ description: >
'Properties' is own data property (8.10.5 step 3.a)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: true
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: true
+ }
+});
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-49.js b/test/built-ins/Object/create/15.2.3.5-4-49.js
index 77261ab26..a829bdbd9 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-49.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-49.js
@@ -8,23 +8,23 @@ description: >
'Properties' is an inherited data property (8.10.5 step 3.a)
---*/
- var accessed = false;
+var accessed = false;
- var proto = {
- enumerable: true
- };
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var proto = {
+ enumerable: true
+};
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var descObj = new ConstructFun();
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-5.js b/test/built-ins/Object/create/15.2.3.5-4-5.js
index f348366e0..d599cb116 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-5.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-5.js
@@ -8,16 +8,16 @@ description: >
(15.2.3.7 step 2)
---*/
- var props = function () { };
- var result = false;
+var props = function() {};
+var result = false;
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof Function;
- return {};
- },
- enumerable: true
- });
- Object.create({}, props);
+Object.defineProperty(props, "prop", {
+ get: function() {
+ result = this instanceof Function;
+ return {};
+ },
+ enumerable: true
+});
+Object.create({}, props);
assert(result, 'result !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-50.js b/test/built-ins/Object/create/15.2.3.5-4-50.js
index 72e4b5269..eec68263f 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-50.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-50.js
@@ -9,27 +9,27 @@ description: >
property (8.10.5 step 3.a)
---*/
- var accessed = false;
- var proto = {
- enumerable: true
- };
+var accessed = false;
+var proto = {
+ enumerable: true
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var descObj = new ConstructFun();
- Object.defineProperty(descObj, "enumerable", {
- value: false
- });
+Object.defineProperty(descObj, "enumerable", {
+ value: false
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-51.js b/test/built-ins/Object/create/15.2.3.5-4-51.js
index 88e7e2778..593b35ab4 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-51.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-51.js
@@ -9,31 +9,31 @@ description: >
accessor property (8.10.5 step 3.a)
---*/
- var proto = {};
- var accessed = false;
-
- Object.defineProperty(proto, "enumerable", {
- get: function () {
- return true;
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
-
- Object.defineProperty(descObj, "enumerable", {
- value: false
- });
-
- var newObj = Object.create({}, {
- prop: descObj
- });
-
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var proto = {};
+var accessed = false;
+
+Object.defineProperty(proto, "enumerable", {
+ get: function() {
+ return true;
+ }
+});
+
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var descObj = new ConstructFun();
+
+Object.defineProperty(descObj, "enumerable", {
+ value: false
+});
+
+var newObj = Object.create({}, {
+ prop: descObj
+});
+
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-52.js b/test/built-ins/Object/create/15.2.3.5-4-52.js
index 66d732240..91a8e862c 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-52.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-52.js
@@ -8,23 +8,23 @@ description: >
'Properties' is own accessor property (8.10.5 step 3.a)
---*/
- var accessed = false;
+var accessed = false;
- var descObj = {};
- Object.defineProperty(descObj, "enumerable", {
- get: function () {
- return true;
- }
- });
+var descObj = {};
+Object.defineProperty(descObj, "enumerable", {
+ get: function() {
+ return true;
+ }
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-53.js b/test/built-ins/Object/create/15.2.3.5-4-53.js
index 46ae8e51b..504ad406e 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-53.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-53.js
@@ -8,27 +8,27 @@ description: >
'Properties' is an inherited accessor property (8.10.5 step 3.a)
---*/
- var proto = {};
- var accessed = false;
+var proto = {};
+var accessed = false;
- Object.defineProperty(proto, "enumerable", {
- get: function () {
- return true;
- }
- });
+Object.defineProperty(proto, "enumerable", {
+ get: function() {
+ return true;
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var descObj = new ConstructFun();
- var newObj = Object.create({}, {
- prop: descObj
- });
+var newObj = Object.create({}, {
+ prop: descObj
+});
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-54.js b/test/built-ins/Object/create/15.2.3.5-4-54.js
index 1ca9d8db5..f04ce911a 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-54.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-54.js
@@ -9,28 +9,28 @@ description: >
data property (8.10.5 step 3.a)
---*/
- var accessed = false;
- var proto = {
- enumerable: true
- };
+var accessed = false;
+var proto = {
+ enumerable: true
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var descObj = new ConstructFun();
- Object.defineProperty(descObj, "enumerable", {
- get: function () {
- return false;
- }
- });
+Object.defineProperty(descObj, "enumerable", {
+ get: function() {
+ return false;
+ }
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: descObj
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-55.js b/test/built-ins/Object/create/15.2.3.5-4-55.js
index 3111507b4..9c6e201cf 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-55.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-55.js
@@ -9,31 +9,31 @@ description: >
accessor property (8.10.5 step 3.a)
---*/
- var proto = {};
- var accessed = false;
- Object.defineProperty(proto, "enumerable", {
- get: function () {
- return true;
- }
- });
+var proto = {};
+var accessed = false;
+Object.defineProperty(proto, "enumerable", {
+ get: function() {
+ return true;
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var descObj = new ConstructFun();
- Object.defineProperty(descObj, "enumerable", {
- get: function () {
- return false;
- }
- });
+Object.defineProperty(descObj, "enumerable", {
+ get: function() {
+ return false;
+ }
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: descObj
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-56.js b/test/built-ins/Object/create/15.2.3.5-4-56.js
index 1d71a5d36..d0fb5995d 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-56.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-56.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 3.a)
---*/
- var accessed = false;
- var descObj = {};
- Object.defineProperty(descObj, "enumerable", {
- set: function () { }
- });
+var accessed = false;
+var descObj = {};
+Object.defineProperty(descObj, "enumerable", {
+ set: function() {}
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: descObj
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-57.js b/test/built-ins/Object/create/15.2.3.5-4-57.js
index d39fd5035..217831b9c 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-57.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-57.js
@@ -9,29 +9,29 @@ description: >
which overrides an inherited accessor property (8.10.5 step 3.a)
---*/
- var proto = {};
- var accessed = false;
- Object.defineProperty(proto, "enumerable", {
- get: function () {
- return true;
- }
- });
+var proto = {};
+var accessed = false;
+Object.defineProperty(proto, "enumerable", {
+ get: function() {
+ return true;
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var descObj = new ConstructFun();
- Object.defineProperty(descObj, "enumerable", {
- set: function () { }
- });
+Object.defineProperty(descObj, "enumerable", {
+ set: function() {}
+});
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: descObj
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-58.js b/test/built-ins/Object/create/15.2.3.5-4-58.js
index 2054d70d5..4e91fc6fa 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-58.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-58.js
@@ -9,24 +9,24 @@ description: >
function (8.10.5 step 3.a)
---*/
- var proto = {};
- var accessed = false;
+var proto = {};
+var accessed = false;
- Object.defineProperty(proto, "enumerable", {
- set: function () { }
- });
+Object.defineProperty(proto, "enumerable", {
+ set: function() {}
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var descObj = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var descObj = new ConstructFun();
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: descObj
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-59.js b/test/built-ins/Object/create/15.2.3.5-4-59.js
index 0c85eb4e6..00ea9000b 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-59.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-59.js
@@ -9,18 +9,18 @@ description: >
property (8.10.5 step 3.a)
---*/
- var accessed = false;
- var descObj = function () { };
+var accessed = false;
+var descObj = function() {};
- descObj.enumerable = true;
+descObj.enumerable = true;
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: descObj
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-6.js b/test/built-ins/Object/create/15.2.3.5-4-6.js
index d216b379a..09df5f96c 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-6.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-6.js
@@ -8,16 +8,16 @@ description: >
step 2).
---*/
- var props = [];
- var result = false;
+var props = [];
+var result = false;
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof Array;
- return {};
- },
- enumerable: true
- });
- Object.create({}, props);
+Object.defineProperty(props, "prop", {
+ get: function() {
+ result = this instanceof Array;
+ return {};
+ },
+ enumerable: true
+});
+Object.create({}, props);
assert(result, 'result !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-60.js b/test/built-ins/Object/create/15.2.3.5-4-60.js
index 06cc1e975..cd92635b7 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-60.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-60.js
@@ -9,18 +9,18 @@ description: >
property (8.10.5 step 3.a)
---*/
- var accessed = false;
- var descObj = [];
+var accessed = false;
+var descObj = [];
- descObj.enumerable = true;
+descObj.enumerable = true;
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: descObj
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-61.js b/test/built-ins/Object/create/15.2.3.5-4-61.js
index 5bdb0912f..293d2886d 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-61.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-61.js
@@ -9,18 +9,18 @@ description: >
property (8.10.5 step 3.a)
---*/
- var accessed = false;
- var descObj = new String();
+var accessed = false;
+var descObj = new String();
- descObj.enumerable = true;
+descObj.enumerable = true;
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: descObj
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-62.js b/test/built-ins/Object/create/15.2.3.5-4-62.js
index cd237f4bd..79b165669 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-62.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-62.js
@@ -9,18 +9,18 @@ description: >
property (8.10.5 step 3.a)
---*/
- var accessed = false;
- var descObj = new Boolean(false);
+var accessed = false;
+var descObj = new Boolean(false);
- descObj.enumerable = true;
+descObj.enumerable = true;
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: descObj
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-63.js b/test/built-ins/Object/create/15.2.3.5-4-63.js
index 0af44b539..3a4cd5862 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-63.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-63.js
@@ -9,18 +9,18 @@ description: >
property (8.10.5 step 3.a)
---*/
- var accessed = false;
- var descObj = new Number(-9);
+var accessed = false;
+var descObj = new Number(-9);
- descObj.enumerable = true;
+descObj.enumerable = true;
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: descObj
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-64.js b/test/built-ins/Object/create/15.2.3.5-4-64.js
index dcb8a6f23..52b6a9b30 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-64.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-64.js
@@ -9,17 +9,17 @@ description: >
property (8.10.5 step 3.a)
---*/
- var accessed = false;
+var accessed = false;
- Math.enumerable = true;
+Math.enumerable = true;
- var newObj = Object.create({}, {
- prop: Math
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: Math
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-65.js b/test/built-ins/Object/create/15.2.3.5-4-65.js
index d4e700a4a..d0761a6fd 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-65.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-65.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 3.a)
---*/
- var accessed = false;
- var descObj = new Date();
+var accessed = false;
+var descObj = new Date();
- descObj.enumerable = true;
+descObj.enumerable = true;
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: descObj
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-66.js b/test/built-ins/Object/create/15.2.3.5-4-66.js
index 3a893bfc2..66058d213 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-66.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-66.js
@@ -9,18 +9,18 @@ description: >
property (8.10.5 step 3.a)
---*/
- var accessed = false;
- var descObj = new RegExp();
+var accessed = false;
+var descObj = new RegExp();
- descObj.enumerable = true;
+descObj.enumerable = true;
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: descObj
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-67.js b/test/built-ins/Object/create/15.2.3.5-4-67.js
index c9daddf94..d054525f7 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-67.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-67.js
@@ -9,17 +9,17 @@ description: >
property (8.10.5 step 3.a)
---*/
- var accessed = false;
+var accessed = false;
- JSON.enumerable = true;
+JSON.enumerable = true;
- var newObj = Object.create({}, {
- prop: JSON
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: JSON
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-68.js b/test/built-ins/Object/create/15.2.3.5-4-68.js
index 6a1c26234..8c11147ab 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-68.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-68.js
@@ -9,18 +9,18 @@ description: >
property (8.10.5 step 3.a)
---*/
- var accessed = false;
- var descObj = new Error();
+var accessed = false;
+var descObj = new Error();
- descObj.enumerable = true;
+descObj.enumerable = true;
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: descObj
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-69.js b/test/built-ins/Object/create/15.2.3.5-4-69.js
index 59f418322..78b361b4d 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-69.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-69.js
@@ -9,18 +9,20 @@ description: >
'enumerable' property (8.10.5 step 3.a)
---*/
- var accessed = false;
- var argObj = (function () { return arguments; })();
+var accessed = false;
+var argObj = (function() {
+ return arguments;
+})();
- argObj.enumerable = true;
+argObj.enumerable = true;
- var newObj = Object.create({}, {
- prop: argObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: argObj
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-7.js b/test/built-ins/Object/create/15.2.3.5-4-7.js
index daee331b9..f6ae81d93 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-7.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-7.js
@@ -8,16 +8,16 @@ description: >
step 2)
---*/
- var props = new String();
- var result = false;
+var props = new String();
+var result = false;
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof String;
- return {};
- },
- enumerable: true
- });
- Object.create({}, props);
+Object.defineProperty(props, "prop", {
+ get: function() {
+ result = this instanceof String;
+ return {};
+ },
+ enumerable: true
+});
+Object.create({}, props);
assert(result, 'result !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-71.js b/test/built-ins/Object/create/15.2.3.5-4-71.js
index 2d6ecb8dd..866b12b2b 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-71.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-71.js
@@ -9,17 +9,17 @@ description: >
property (8.10.5 step 3.a)
---*/
- var accessed = false;
+var accessed = false;
- this.enumerable = true;
+this.enumerable = true;
- var newObj = Object.create({}, {
- prop: this
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: this
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-72.js b/test/built-ins/Object/create/15.2.3.5-4-72.js
index 46c315745..b7a5491d6 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-72.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-72.js
@@ -8,17 +8,17 @@ description: >
'Properties' is undefined (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: undefined
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: undefined
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-73.js b/test/built-ins/Object/create/15.2.3.5-4-73.js
index b67405d35..0ed2539aa 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-73.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-73.js
@@ -8,17 +8,17 @@ description: >
'Properties' is null (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: null
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: null
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-74.js b/test/built-ins/Object/create/15.2.3.5-4-74.js
index 6971654ac..8b0934415 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-74.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-74.js
@@ -8,17 +8,17 @@ description: >
'Properties' is true (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: true
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: true
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-75.js b/test/built-ins/Object/create/15.2.3.5-4-75.js
index 8c69638b0..c3546aba7 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-75.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-75.js
@@ -8,19 +8,19 @@ description: >
'Properties' is false (8.10.5 step 3.b)
---*/
- var accessed = false;
- var descObj = {
- enumerable: false
- };
+var accessed = false;
+var descObj = {
+ enumerable: false
+};
- var newObj = Object.create({}, {
- prop: descObj
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: descObj
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-76.js b/test/built-ins/Object/create/15.2.3.5-4-76.js
index 3924258d3..269796c4b 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-76.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-76.js
@@ -8,18 +8,18 @@ description: >
'Properties' is 0 (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: 0
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: 0
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-77.js b/test/built-ins/Object/create/15.2.3.5-4-77.js
index c3d8cb290..bad5567d7 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-77.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-77.js
@@ -8,18 +8,18 @@ description: >
'Properties' is +0 (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: +0
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: +0
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-78.js b/test/built-ins/Object/create/15.2.3.5-4-78.js
index 1b85d21f9..34ba24c02 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-78.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-78.js
@@ -8,18 +8,18 @@ description: >
'Properties' is -0 (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: -0
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: -0
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-79.js b/test/built-ins/Object/create/15.2.3.5-4-79.js
index 472f164d2..be16e9002 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-79.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-79.js
@@ -8,18 +8,18 @@ description: >
'Properties' is NaN (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: NaN
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: NaN
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-8.js b/test/built-ins/Object/create/15.2.3.5-4-8.js
index d87b1b6e3..4ef160b83 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-8.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-8.js
@@ -8,16 +8,16 @@ description: >
primitive value is true (15.2.3.7 step 2).
---*/
- var props = new Boolean(true);
- var result = false;
+var props = new Boolean(true);
+var result = false;
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof Boolean;
- return {};
- },
- enumerable: true
- });
- Object.create({}, props);
+Object.defineProperty(props, "prop", {
+ get: function() {
+ result = this instanceof Boolean;
+ return {};
+ },
+ enumerable: true
+});
+Object.create({}, props);
assert(result, 'result !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-80.js b/test/built-ins/Object/create/15.2.3.5-4-80.js
index 84207e382..d0bfc0567 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-80.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-80.js
@@ -8,17 +8,17 @@ description: >
'Properties' is a positive number primitive (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: 12
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: 12
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-81.js b/test/built-ins/Object/create/15.2.3.5-4-81.js
index 27f1fde73..2e0270763 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-81.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-81.js
@@ -8,17 +8,17 @@ description: >
'Properties' is a negative number primitive (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: -9
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: -9
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-82.js b/test/built-ins/Object/create/15.2.3.5-4-82.js
index c86ae44b3..d275e9bb4 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-82.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-82.js
@@ -8,18 +8,18 @@ description: >
'Properties' is an empty string (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: ""
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: ""
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-83.js b/test/built-ins/Object/create/15.2.3.5-4-83.js
index d0a69d948..32c0cebc1 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-83.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-83.js
@@ -8,17 +8,17 @@ description: >
'Properties' is a non-empty string (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: "AB\n\\cd"
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: "AB\n\\cd"
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-84.js b/test/built-ins/Object/create/15.2.3.5-4-84.js
index c0721deed..09f5f79f5 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-84.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-84.js
@@ -8,17 +8,17 @@ description: >
'Properties' is a Function object (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: function () { }
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: function() {}
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-85.js b/test/built-ins/Object/create/15.2.3.5-4-85.js
index b7aa0da3a..7afe54587 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-85.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-85.js
@@ -8,18 +8,18 @@ description: >
'Properties' is an Array object (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: []
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: []
+ }
+});
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-86.js b/test/built-ins/Object/create/15.2.3.5-4-86.js
index d089bb611..5c88021eb 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-86.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-86.js
@@ -8,17 +8,17 @@ description: >
'Properties' is a String object (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: new String()
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: new String()
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-87.js b/test/built-ins/Object/create/15.2.3.5-4-87.js
index d31f4e86a..bb363c4c3 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-87.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-87.js
@@ -8,17 +8,17 @@ description: >
'Properties' is a Boolean object (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: new Boolean(true)
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: new Boolean(true)
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-88.js b/test/built-ins/Object/create/15.2.3.5-4-88.js
index 83e38608f..deb4b0d8b 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-88.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-88.js
@@ -8,17 +8,17 @@ description: >
'Properties' is a Number object (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: new Number(-9)
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: new Number(-9)
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-89.js b/test/built-ins/Object/create/15.2.3.5-4-89.js
index b8c211e18..2f17fa9d5 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-89.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-89.js
@@ -8,17 +8,17 @@ description: >
'Properties' is the Math object (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: Math
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: Math
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-9.js b/test/built-ins/Object/create/15.2.3.5-4-9.js
index 564f8ac0c..36682e2ea 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-9.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-9.js
@@ -8,16 +8,16 @@ description: >
primitive value is any interesting number (15.2.3.7 step 2).
---*/
- var props = new Number(12);
- var result = false;
+var props = new Number(12);
+var result = false;
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof Number;
- return {};
- },
- enumerable: true
- });
- Object.create({}, props);
+Object.defineProperty(props, "prop", {
+ get: function() {
+ result = this instanceof Number;
+ return {};
+ },
+ enumerable: true
+});
+Object.create({}, props);
assert(result, 'result !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-90.js b/test/built-ins/Object/create/15.2.3.5-4-90.js
index 21fc225b8..b953f2f2b 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-90.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-90.js
@@ -8,17 +8,17 @@ description: >
'Properties' is a Date object (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: new Date()
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: new Date()
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-91.js b/test/built-ins/Object/create/15.2.3.5-4-91.js
index c9ea3746e..4d6e1ea42 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-91.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-91.js
@@ -8,17 +8,17 @@ description: >
'Properties' is a RegExp object (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: new RegExp()
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: new RegExp()
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-92.js b/test/built-ins/Object/create/15.2.3.5-4-92.js
index 535b22ee1..3943f2353 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-92.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-92.js
@@ -8,17 +8,17 @@ description: >
'Properties' is the JSON object (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: JSON
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: JSON
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-93.js b/test/built-ins/Object/create/15.2.3.5-4-93.js
index 1ac6ded11..b2713f7d0 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-93.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-93.js
@@ -8,17 +8,17 @@ description: >
'Properties' is an Error object (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: new Error()
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: new Error()
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-94.js b/test/built-ins/Object/create/15.2.3.5-4-94.js
index 4f33838fc..8b53b8303 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-94.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-94.js
@@ -8,18 +8,20 @@ description: >
'Properties' is an Arguments object (8.10.5 step 3.b)
---*/
- var accessed = false;
- var argObj = (function () { return arguments; })();
+var accessed = false;
+var argObj = (function() {
+ return arguments;
+})();
- var newObj = Object.create({}, {
- prop: {
- enumerable: argObj
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: argObj
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-96.js b/test/built-ins/Object/create/15.2.3.5-4-96.js
index 8250c6f28..c564ef7ae 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-96.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-96.js
@@ -8,17 +8,17 @@ description: >
'Properties' is the global object (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: this
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: this
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-97.js b/test/built-ins/Object/create/15.2.3.5-4-97.js
index 86b471b8c..0acd1124b 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-97.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-97.js
@@ -9,17 +9,17 @@ description: >
the value true (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: "false"
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: "false"
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-98.js b/test/built-ins/Object/create/15.2.3.5-4-98.js
index 49b6b8214..74b55f635 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-98.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-98.js
@@ -9,17 +9,17 @@ description: >
true (8.10.5 step 3.b)
---*/
- var accessed = false;
+var accessed = false;
- var newObj = Object.create({}, {
- prop: {
- enumerable: new Boolean(false)
- }
- });
- for (var property in newObj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var newObj = Object.create({}, {
+ prop: {
+ enumerable: new Boolean(false)
+ }
+});
+for (var property in newObj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/create/15.2.3.5-4-99.js b/test/built-ins/Object/create/15.2.3.5-4-99.js
index cff852151..59e1a1880 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-99.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-99.js
@@ -8,15 +8,15 @@ description: >
'Properties' is true (8.10.5 step 4)
---*/
- var newObj = Object.create({}, {
- prop: {
- configurable: true
- }
- });
+var newObj = Object.create({}, {
+ prop: {
+ configurable: true
+ }
+});
- var result1 = newObj.hasOwnProperty("prop");
- delete newObj.prop;
- var result2 = newObj.hasOwnProperty("prop");
+var result1 = newObj.hasOwnProperty("prop");
+delete newObj.prop;
+var result2 = newObj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-0-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-0-1.js
index 9bb699700..2768ba555 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-0-1.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-0-1.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.7-0-1
description: Object.defineProperties must exist as a function
---*/
- var f = Object.defineProperties;
+var f = Object.defineProperties;
assert.sameValue(typeof(f), "function", 'typeof(f)');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-1-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-1-1.js
index 6bf9439ef..96e829390 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-1-1.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-1-1.js
@@ -7,5 +7,5 @@ description: Object.defineProperties throws TypeError if 'O' is undefined
---*/
assert.throws(TypeError, function() {
- Object.defineProperties(undefined, {});
+ Object.defineProperties(undefined, {});
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-1-2.js b/test/built-ins/Object/defineProperties/15.2.3.7-1-2.js
index b4eae1229..f18488819 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-1-2.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-1-2.js
@@ -7,5 +7,5 @@ description: Object.defineProperties throws TypeError if 'O' is null
---*/
assert.throws(TypeError, function() {
- Object.defineProperties(null, {});
+ Object.defineProperties(null, {});
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-1-3.js b/test/built-ins/Object/defineProperties/15.2.3.7-1-3.js
index 0974b1a06..211adc261 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-1-3.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-1-3.js
@@ -7,5 +7,5 @@ description: Object.defineProperties throws TypeError if 'O' is a boolean
---*/
assert.throws(TypeError, function() {
- Object.defineProperties(true, {});
+ Object.defineProperties(true, {});
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-1-4.js b/test/built-ins/Object/defineProperties/15.2.3.7-1-4.js
index 673f98608..06c6cc73c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-1-4.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-1-4.js
@@ -7,5 +7,5 @@ description: Object.defineProperties throws TypeError if 'O' is a string
---*/
assert.throws(TypeError, function() {
- Object.defineProperties("abc", {});
+ Object.defineProperties("abc", {});
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-1.js
index c6b27773c..41a1e98e7 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-1.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-1.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(TypeError, function() {
- Object.defineProperties(0, {});
+ Object.defineProperties(0, {});
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-1.js
index 4f8ca8d07..02a5807c2 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-2-1.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-1.js
@@ -7,5 +7,5 @@ description: Object.defineProperties throws TypeError if 'Properties' is null
---*/
assert.throws(TypeError, function() {
- Object.defineProperties({}, null);
+ Object.defineProperties({}, null);
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-10.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-10.js
index 87ca4be77..a9e6b3cdb 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-2-10.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-10.js
@@ -6,18 +6,18 @@ es5id: 15.2.3.7-2-10
description: Object.defineProperties - argument 'Properties' is an Array object
---*/
- var obj = {};
- var props = [];
- var result = false;
-
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof Array;
- return {};
- },
- enumerable: true
- });
+var obj = {};
+var props = [];
+var result = false;
- Object.defineProperties(obj, props);
+Object.defineProperty(props, "prop", {
+ get: function() {
+ result = this instanceof Array;
+ return {};
+ },
+ enumerable: true
+});
+
+Object.defineProperties(obj, props);
assert(result, 'result !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-11.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-11.js
index 49e5f4208..6ac6227e8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-2-11.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-11.js
@@ -6,18 +6,18 @@ es5id: 15.2.3.7-2-11
description: Object.defineProperties - argument 'Properties' is the Math object
---*/
- var obj = {};
- var result = false;
+var obj = {};
+var result = false;
- Object.defineProperty(Math, "prop", {
- get: function () {
- result = (this === Math);
- return {};
- },
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(Math, "prop", {
+ get: function() {
+ result = (this === Math);
+ return {};
+ },
+ enumerable: true,
+ configurable: true
+});
- Object.defineProperties(obj, Math);
+Object.defineProperties(obj, Math);
assert(result, 'result !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-12.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-12.js
index 83f088938..103a8ea8d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-2-12.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-12.js
@@ -6,18 +6,18 @@ es5id: 15.2.3.7-2-12
description: Object.defineProperties - argument 'Properties' is a Date object
---*/
- var obj = {};
- var props = new Date();
- var result = false;
-
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof Date;
- return {};
- },
- enumerable: true
- });
+var obj = {};
+var props = new Date();
+var result = false;
- Object.defineProperties(obj, props);
+Object.defineProperty(props, "prop", {
+ get: function() {
+ result = this instanceof Date;
+ return {};
+ },
+ enumerable: true
+});
+
+Object.defineProperties(obj, props);
assert(result, 'result !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-13.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-13.js
index bea1c4158..35ad5d75d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-2-13.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-13.js
@@ -6,18 +6,18 @@ es5id: 15.2.3.7-2-13
description: Object.defineProperties - argument 'Properties' is a RegExp object
---*/
- var obj = {};
- var props = new RegExp();
- var result = false;
-
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof RegExp;
- return {};
- },
- enumerable: true
- });
+var obj = {};
+var props = new RegExp();
+var result = false;
- Object.defineProperties(obj, props);
+Object.defineProperty(props, "prop", {
+ get: function() {
+ result = this instanceof RegExp;
+ return {};
+ },
+ enumerable: true
+});
+
+Object.defineProperties(obj, props);
assert(result, 'result !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-14.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-14.js
index 4cb5a056a..0196e7406 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-2-14.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-14.js
@@ -6,18 +6,18 @@ es5id: 15.2.3.7-2-14
description: Object.defineProperties - argument 'Properties' is the JSON object
---*/
- var obj = {};
- var result = false;
+var obj = {};
+var result = false;
- Object.defineProperty(JSON, "prop", {
- get: function () {
- result = (this === JSON);
- return {};
- },
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(JSON, "prop", {
+ get: function() {
+ result = (this === JSON);
+ return {};
+ },
+ enumerable: true,
+ configurable: true
+});
- Object.defineProperties(obj, JSON);
+Object.defineProperties(obj, JSON);
assert(result, 'result !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-15.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-15.js
index 9a69dc5c2..974c0a973 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-2-15.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-15.js
@@ -6,25 +6,25 @@ es5id: 15.2.3.7-2-15
description: Object.defineProperties - argument 'Properties' is an Error object
---*/
- var obj = {};
- var props = new Error("test");
- var obj1 = {
- value: 11
- };
- props.description = obj1;
- props.message = obj1;
- props.name = obj1;
+var obj = {};
+var props = new Error("test");
+var obj1 = {
+ value: 11
+};
+props.description = obj1;
+props.message = obj1;
+props.name = obj1;
- var result = false;
-
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof Error;
- return {};
- },
- enumerable: true
- });
+var result = false;
- Object.defineProperties(obj, props);
+Object.defineProperty(props, "prop", {
+ get: function() {
+ result = this instanceof Error;
+ return {};
+ },
+ enumerable: true
+});
+
+Object.defineProperties(obj, props);
assert(result, 'result !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-16.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-16.js
index 702db6f17..2d2138c99 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-2-16.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-16.js
@@ -8,22 +8,22 @@ description: >
object
---*/
- var obj = {};
- var result = false;
+var obj = {};
+var result = false;
- var Fun = function () {
- return arguments;
- };
- var props = new Fun();
+var Fun = function() {
+ return arguments;
+};
+var props = new Fun();
- Object.defineProperty(props, "prop", {
- get: function () {
- result = ('[object Arguments]' === Object.prototype.toString.call(this));
- return {};
- },
- enumerable: true
- });
+Object.defineProperty(props, "prop", {
+ get: function() {
+ result = ('[object Arguments]' === Object.prototype.toString.call(this));
+ return {};
+ },
+ enumerable: true
+});
- Object.defineProperties(obj, props);
+Object.defineProperties(obj, props);
assert(result, 'result !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-18.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-18.js
index e36e3f666..b95a3e235 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-2-18.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-18.js
@@ -9,25 +9,25 @@ description: >
---*/
var global = this;
- var obj = {};
- var result = false;
+var obj = {};
+var result = false;
- try {
- Object.defineProperty(this, "prop", {
- get: function () {
- result = (this === global);
- return {};
- },
- enumerable: true,
- configurable:true
- });
+try {
+ Object.defineProperty(this, "prop", {
+ get: function() {
+ result = (this === global);
+ return {};
+ },
+ enumerable: true,
+ configurable: true
+ });
- Object.defineProperties(obj, this);
- } catch (e) {
- if (!(e instanceof TypeError)) throw e;
- result = true;
- } finally {
- delete this.prop;
- }
+ Object.defineProperties(obj, this);
+} catch (e) {
+ if (!(e instanceof TypeError)) throw e;
+ result = true;
+} finally {
+ delete this.prop;
+}
assert(result, 'result !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-2.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-2.js
index 5366c8b9a..0d3dea7b0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-2-2.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-2.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(TypeError, function() {
- Object.defineProperties({}, undefined);
+ Object.defineProperties({}, undefined);
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-3.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-3.js
index 828a76bdb..ca7acb7fa 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-2-3.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-3.js
@@ -8,7 +8,7 @@ description: >
value is false
---*/
- var obj = {};
- var obj1 = Object.defineProperties(obj, false);
+var obj = {};
+var obj1 = Object.defineProperties(obj, false);
assert.sameValue(obj, obj1, 'obj');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-4.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-4.js
index 6b5e9f202..3c3a45bdc 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-2-4.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-4.js
@@ -8,18 +8,18 @@ description: >
object whose primitive value is true
---*/
- var obj = {};
- var props = new Boolean(true);
- var result = false;
+var obj = {};
+var props = new Boolean(true);
+var result = false;
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof Boolean;
- return {};
- },
- enumerable: true
- });
+Object.defineProperty(props, "prop", {
+ get: function() {
+ result = this instanceof Boolean;
+ return {};
+ },
+ enumerable: true
+});
- Object.defineProperties(obj, props);
+Object.defineProperties(obj, props);
assert(result, 'result !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-5.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-5.js
index ba0c4c8ce..c5de32012 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-2-5.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-5.js
@@ -8,7 +8,9 @@ description: >
number
---*/
- var obj = { "123": 100 };
- var obj1 = Object.defineProperties(obj, -12);
+var obj = {
+ "123": 100
+};
+var obj1 = Object.defineProperties(obj, -12);
assert.sameValue(obj, obj1, 'obj');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-6.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-6.js
index c18fee56f..a27b7f4b3 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-2-6.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-6.js
@@ -8,18 +8,18 @@ description: >
whose primitive value is any interesting number
---*/
- var obj = {};
- var props = new Number(-12);
- var result = false;
-
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof Number;
- return {};
- },
- enumerable: true
- });
+var obj = {};
+var props = new Number(-12);
+var result = false;
- Object.defineProperties(obj, props);
+Object.defineProperty(props, "prop", {
+ get: function() {
+ result = this instanceof Number;
+ return {};
+ },
+ enumerable: true
+});
+
+Object.defineProperties(obj, props);
assert(result, 'result !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-7.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-7.js
index 169fbe906..fcd9bc721 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-2-7.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-7.js
@@ -8,7 +8,9 @@ description: >
value is any interesting string
---*/
- var obj = { "123": 100 };
- var obj1 = Object.defineProperties(obj, "");
+var obj = {
+ "123": 100
+};
+var obj1 = Object.defineProperties(obj, "");
assert.sameValue(obj, obj1, 'obj');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-8.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-8.js
index f880ec47a..62e50e5b9 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-2-8.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-8.js
@@ -8,18 +8,18 @@ description: >
whose primitive value is any interesting string
---*/
- var obj = {};
- var props = new String();
- var result = false;
-
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof String;
- return {};
- },
- enumerable: true
- });
+var obj = {};
+var props = new String();
+var result = false;
- Object.defineProperties(obj, props);
+Object.defineProperty(props, "prop", {
+ get: function() {
+ result = this instanceof String;
+ return {};
+ },
+ enumerable: true
+});
+
+Object.defineProperties(obj, props);
assert(result, 'result !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-9.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-9.js
index 16acd8a06..0d4cd7b7c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-2-9.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-9.js
@@ -8,18 +8,18 @@ description: >
object
---*/
- var obj = {};
- var props = function () { };
- var result = false;
-
- Object.defineProperty(props, "prop", {
- get: function () {
- result = this instanceof Function;
- return {};
- },
- enumerable: true
- });
+var obj = {};
+var props = function() {};
+var result = false;
- Object.defineProperties(obj, props);
+Object.defineProperty(props, "prop", {
+ get: function() {
+ result = this instanceof Function;
+ return {};
+ },
+ enumerable: true
+});
+
+Object.defineProperties(obj, props);
assert(result, 'result !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-3-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-3-1.js
index c6d7775e2..482305d74 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-3-1.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-3-1.js
@@ -8,13 +8,13 @@ description: >
'Properties' is defined in 'O'
---*/
- var obj = {};
- var props = {};
- Object.defineProperty(props, "prop", {
- value: {},
- enumerable: true
- });
+var obj = {};
+var props = {};
+Object.defineProperty(props, "prop", {
+ value: {},
+ enumerable: true
+});
- Object.defineProperties(obj, props);
+Object.defineProperties(obj, props);
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-3-2.js b/test/built-ins/Object/defineProperties/15.2.3.7-3-2.js
index 3b32199bf..56ec632a6 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-3-2.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-3-2.js
@@ -8,14 +8,14 @@ description: >
is not enumerable is not defined in 'O'
---*/
- var obj = {};
- var props = {};
+var obj = {};
+var props = {};
- Object.defineProperty(props, "prop", {
- value: {},
- enumerable: false
- });
+Object.defineProperty(props, "prop", {
+ value: {},
+ enumerable: false
+});
- Object.defineProperties(obj, props);
+Object.defineProperties(obj, props);
assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-3-3.js b/test/built-ins/Object/defineProperties/15.2.3.7-3-3.js
index d4dc3cafc..26cb92f2b 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-3-3.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-3-3.js
@@ -8,19 +8,19 @@ description: >
'Properties' is not defined in 'O'
---*/
- var obj = {};
+var obj = {};
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "prop", {
- value: {},
- enumerable: true
- });
+Object.defineProperty(proto, "prop", {
+ value: {},
+ enumerable: true
+});
- var Con = function () { };
- Con.prototype = proto;
- var child = new Con();
+var Con = function() {};
+Con.prototype = proto;
+var child = new Con();
- Object.defineProperties(obj, child);
+Object.defineProperties(obj, child);
assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-3-4.js b/test/built-ins/Object/defineProperties/15.2.3.7-3-4.js
index bbafb06c9..a7f5b3fcb 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-3-4.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-3-4.js
@@ -8,17 +8,17 @@ description: >
'Properties' is defined in 'O'
---*/
- var obj = {};
+var obj = {};
- var props = {};
+var props = {};
- Object.defineProperty(props, "prop", {
- get: function () {
- return {};
- },
- enumerable: true
- });
+Object.defineProperty(props, "prop", {
+ get: function() {
+ return {};
+ },
+ enumerable: true
+});
- Object.defineProperties(obj, props);
+Object.defineProperties(obj, props);
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-3-5.js b/test/built-ins/Object/defineProperties/15.2.3.7-3-5.js
index 40efb3be2..eba9a4daa 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-3-5.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-3-5.js
@@ -8,17 +8,17 @@ description: >
which is not enumerable is not defined in 'O'
---*/
- var obj = {};
+var obj = {};
- var props = {};
+var props = {};
- Object.defineProperty(props, "prop", {
- get: function () {
- return {};
- },
- enumerable: false
- });
+Object.defineProperty(props, "prop", {
+ get: function() {
+ return {};
+ },
+ enumerable: false
+});
- Object.defineProperties(obj, props);
+Object.defineProperties(obj, props);
assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-3-6.js b/test/built-ins/Object/defineProperties/15.2.3.7-3-6.js
index 7efb02f66..d2ad59b0d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-3-6.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-3-6.js
@@ -8,20 +8,20 @@ description: >
of 'Properties' is not defined in 'O'
---*/
- var obj = {};
- var proto = {};
+var obj = {};
+var proto = {};
- Object.defineProperty(proto, "prop", {
- get: function () {
- return {};
- },
- enumerable: true
- });
+Object.defineProperty(proto, "prop", {
+ get: function() {
+ return {};
+ },
+ enumerable: true
+});
- var Con = function () { };
- Con.prototype = proto;
- var child = new Con();
+var Con = function() {};
+Con.prototype = proto;
+var child = new Con();
- Object.defineProperties(obj, child);
+Object.defineProperties(obj, child);
assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-3-7.js b/test/built-ins/Object/defineProperties/15.2.3.7-3-7.js
index 828fd9d14..65c83d741 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-3-7.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-3-7.js
@@ -8,23 +8,23 @@ description: >
when 'Properties' doesn't contain enumerable own property
---*/
- var obj = {};
+var obj = {};
- var props = {};
+var props = {};
- Object.defineProperty(props, "prop1", {
- value: {},
- enumerable: false
- });
+Object.defineProperty(props, "prop1", {
+ value: {},
+ enumerable: false
+});
- Object.defineProperty(props, "prop2", {
- get: function () {
- return {};
- },
- enumerable: false
- });
+Object.defineProperty(props, "prop2", {
+ get: function() {
+ return {};
+ },
+ enumerable: false
+});
- Object.defineProperties(obj, props);
+Object.defineProperties(obj, props);
assert.sameValue(obj.hasOwnProperty("prop1"), false, 'obj.hasOwnProperty("prop1")');
assert.sameValue(obj.hasOwnProperty("prop2"), false, 'obj.hasOwnProperty("prop2")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-3-8.js b/test/built-ins/Object/defineProperties/15.2.3.7-3-8.js
index 33d3a9f85..64808eae6 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-3-8.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-3-8.js
@@ -8,23 +8,23 @@ description: >
when 'Properties' doesn't contain enumerable own property
---*/
- var obj = {};
+var obj = {};
- var props = {};
+var props = {};
- Object.defineProperty(props, "prop1", {
- value: {},
- enumerable: false
- });
+Object.defineProperty(props, "prop1", {
+ value: {},
+ enumerable: false
+});
- Object.defineProperty(props, "prop2", {
- get: function () {
- return {};
- },
- enumerable: true
- });
+Object.defineProperty(props, "prop2", {
+ get: function() {
+ return {};
+ },
+ enumerable: true
+});
- Object.defineProperties(obj, props);
+Object.defineProperties(obj, props);
assert.sameValue(obj.hasOwnProperty("prop1"), false, 'obj.hasOwnProperty("prop1")');
assert(obj.hasOwnProperty("prop2"), 'obj.hasOwnProperty("prop2") !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-1.js
index eb800c8e1..1df310470 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-1.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-1.js
@@ -9,29 +9,29 @@ description: >
'O'
---*/
- var obj = {};
+var obj = {};
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "prop", {
- value: {
- value: 9
- },
- enumerable: true
- });
+Object.defineProperty(proto, "prop", {
+ value: {
+ value: 9
+ },
+ enumerable: true
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var child = new Con();
- Object.defineProperty(child, "prop", {
- value: {
- value: 12
- },
- enumerable: true
- });
+var child = new Con();
+Object.defineProperty(child, "prop", {
+ value: {
+ value: 12
+ },
+ enumerable: true
+});
- Object.defineProperties(obj, child);
+Object.defineProperties(obj, child);
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, 12, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-10.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-10.js
index a1bfc9a68..7c64562ae 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-10.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-10.js
@@ -8,16 +8,16 @@ description: >
implements its own [[Get]] method to get enumerable own property
---*/
- var obj = {};
- var props = new Boolean(false);
+var obj = {};
+var props = new Boolean(false);
- Object.defineProperty(props, "prop", {
- value: {
- value: 10
- },
- enumerable: true
- });
- Object.defineProperties(obj, props);
+Object.defineProperty(props, "prop", {
+ value: {
+ value: 10
+ },
+ enumerable: true
+});
+Object.defineProperties(obj, props);
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, 10, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-11.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-11.js
index 8a7abc5e9..1b73ab286 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-11.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-11.js
@@ -8,16 +8,16 @@ description: >
implements its own [[Get]] method to get enumerable own property
---*/
- var obj = {};
- var props = new Number(-9);
+var obj = {};
+var props = new Number(-9);
- Object.defineProperty(props, "prop", {
- value: {
- value: 12
- },
- enumerable: true
- });
- Object.defineProperties(obj, props);
+Object.defineProperty(props, "prop", {
+ value: {
+ value: 12
+ },
+ enumerable: true
+});
+Object.defineProperties(obj, props);
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, 12, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-12.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-12.js
index f13acf2b5..014b19296 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-12.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-12.js
@@ -8,12 +8,12 @@ description: >
implements its own [[Get]] method to get enumerable own property
---*/
- var obj = {};
+var obj = {};
- Math.prop = {
- value: 12
- };
- Object.defineProperties(obj, Math);
+Math.prop = {
+ value: 12
+};
+Object.defineProperties(obj, Math);
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, 12, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-13.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-13.js
index 22ea0f97f..bf4aaa78f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-13.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-13.js
@@ -8,16 +8,16 @@ description: >
implements its own [[Get]] method to get enumerable own property
---*/
- var obj = {};
- var props = new Date();
+var obj = {};
+var props = new Date();
- Object.defineProperty(props, "prop", {
- value: {
- value: 13
- },
- enumerable: true
- });
- Object.defineProperties(obj, props);
+Object.defineProperty(props, "prop", {
+ value: {
+ value: 13
+ },
+ enumerable: true
+});
+Object.defineProperties(obj, props);
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, 13, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-14.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-14.js
index a5c31d9bb..5d91d5840 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-14.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-14.js
@@ -8,16 +8,16 @@ description: >
implements its own [[Get]] method to get enumerable own property
---*/
- var obj = {};
- var props = new RegExp();
+var obj = {};
+var props = new RegExp();
- Object.defineProperty(props, "prop", {
- value: {
- value: 14
- },
- enumerable: true
- });
- Object.defineProperties(obj, props);
+Object.defineProperty(props, "prop", {
+ value: {
+ value: 14
+ },
+ enumerable: true
+});
+Object.defineProperties(obj, props);
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, 14, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-15.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-15.js
index 07dc678c4..534964790 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-15.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-15.js
@@ -8,12 +8,12 @@ description: >
implements its own [[Get]] method to get enumerable own property
---*/
- var obj = {};
+var obj = {};
- JSON.prop = {
- value: 15
- };
- Object.defineProperties(obj, JSON);
+JSON.prop = {
+ value: 15
+};
+Object.defineProperties(obj, JSON);
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, 15, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-16.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-16.js
index 2363f6785..1a3215844 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-16.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-16.js
@@ -8,19 +8,19 @@ description: >
implements its own [[Get]] method to get enumerable own property
---*/
- var obj = {};
- var props = new Error("test");
- var obj1 = {
- value: 11
- };
- props.message = obj1;
- props.name = obj1;
- props.description = obj1;
+var obj = {};
+var props = new Error("test");
+var obj1 = {
+ value: 11
+};
+props.message = obj1;
+props.name = obj1;
+props.description = obj1;
- props.prop = {
- value: 16
- };
- Object.defineProperties(obj, props);
+props.prop = {
+ value: 16
+};
+Object.defineProperties(obj, props);
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, 16, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-17.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-17.js
index 5d2cba017..a6022defe 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-17.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-17.js
@@ -9,21 +9,21 @@ description: >
property
---*/
- var obj = {};
- var arg;
+var obj = {};
+var arg;
- (function fun() {
- arg = arguments;
- }());
+(function fun() {
+ arg = arguments;
+}());
- Object.defineProperty(arg, "prop", {
- value: {
- value: 17
- },
- enumerable: true
- });
+Object.defineProperty(arg, "prop", {
+ value: {
+ value: 17
+ },
+ enumerable: true
+});
- Object.defineProperties(obj, arg);
+Object.defineProperties(obj, arg);
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, 17, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-2.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-2.js
index 9cbd29821..0e709cf85 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-2.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-2.js
@@ -9,29 +9,29 @@ description: >
in 'O'
---*/
- var obj = {};
- var proto = {};
+var obj = {};
+var proto = {};
- Object.defineProperty(proto, "prop", {
- get: function () {
- return {
- value: 9
- };
- },
- enumerable: true
- });
+Object.defineProperty(proto, "prop", {
+ get: function() {
+ return {
+ value: 9
+ };
+ },
+ enumerable: true
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var child = new Con();
- Object.defineProperty(child, "prop", {
- value: {
- value: 12
- },
- enumerable: true
- });
- Object.defineProperties(obj, child);
+var child = new Con();
+Object.defineProperty(child, "prop", {
+ value: {
+ value: 12
+ },
+ enumerable: true
+});
+Object.defineProperties(obj, child);
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, 12, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-3.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-3.js
index ce3cae1f6..b1d39d8e8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-3.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-3.js
@@ -9,30 +9,30 @@ description: >
'Properties' is defined in 'O'
---*/
- var obj = {};
+var obj = {};
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "prop", {
- value: {
- value: 9
- },
- enumerable: true
- });
+Object.defineProperty(proto, "prop", {
+ value: {
+ value: 9
+ },
+ enumerable: true
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var child = new Con();
- Object.defineProperty(child, "prop", {
- get: function () {
- return {
- value: 12
- };
- },
- enumerable: true
- });
- Object.defineProperties(obj, child);
+var child = new Con();
+Object.defineProperty(child, "prop", {
+ get: function() {
+ return {
+ value: 12
+ };
+ },
+ enumerable: true
+});
+Object.defineProperties(obj, child);
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, 12, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-4.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-4.js
index 79180ee5f..df6c63c75 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-4.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-4.js
@@ -9,32 +9,32 @@ description: >
of 'Properties' is defined in 'O'
---*/
- var obj = {};
+var obj = {};
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "prop", {
- get: function () {
- return {
- value: 9
- };
- },
- enumerable: false
- });
+Object.defineProperty(proto, "prop", {
+ get: function() {
+ return {
+ value: 9
+ };
+ },
+ enumerable: false
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var child = new Con();
- Object.defineProperty(child, "prop", {
- get: function () {
- return {
- value: 12
- };
- },
- enumerable: true
- });
- Object.defineProperties(obj, child);
+var child = new Con();
+Object.defineProperty(child, "prop", {
+ get: function() {
+ return {
+ value: 12
+ };
+ },
+ enumerable: true
+});
+Object.defineProperties(obj, child);
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, 12, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-5.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-5.js
index f25ba775b..eac8f218b 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-5.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-5.js
@@ -8,19 +8,19 @@ description: >
'Properties' without a get function is defined in 'O'
---*/
- var obj = {};
+var obj = {};
- var props = {};
- Object.defineProperty(props, "prop", {
- get: function () {
- return {
- set: function () { }
- };
- },
- enumerable: true
- });
+var props = {};
+Object.defineProperty(props, "prop", {
+ get: function() {
+ return {
+ set: function() {}
+ };
+ },
+ enumerable: true
+});
- Object.defineProperties(obj, props);
+Object.defineProperties(obj, props);
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(typeof obj.prop, "undefined", 'typeof obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-6.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-6.js
index 9516041f8..2ca106448 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-6.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-6.js
@@ -9,30 +9,30 @@ description: >
inherited accessor property of 'Properties' is defined in 'O'
---*/
- var obj = {};
+var obj = {};
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "prop", {
- get: function () {
- return 12;
- },
- enumerable: true
- });
+Object.defineProperty(proto, "prop", {
+ get: function() {
+ return 12;
+ },
+ enumerable: true
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var child = new Con();
- Object.defineProperty(child, "prop", {
- get: function () {
- return {
- set: function () { }
- };
- },
- enumerable: true
- });
- Object.defineProperties(obj, child);
+var child = new Con();
+Object.defineProperty(child, "prop", {
+ get: function() {
+ return {
+ set: function() {}
+ };
+ },
+ enumerable: true
+});
+Object.defineProperties(obj, child);
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(typeof obj.prop, "undefined", 'typeof obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-7.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-7.js
index a08c7d71b..8cb526c35 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-7.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-7.js
@@ -8,17 +8,17 @@ description: >
implements its own [[Get]] method to get enumerable own property
---*/
- var obj = {};
- var props = function () { };
+var obj = {};
+var props = function() {};
- Object.defineProperty(props, "prop", {
- value: {
- value: 7
- },
- enumerable: true
- });
+Object.defineProperty(props, "prop", {
+ value: {
+ value: 7
+ },
+ enumerable: true
+});
- Object.defineProperties(obj, props);
+Object.defineProperties(obj, props);
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, 7, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-8.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-8.js
index 76d2a34a6..4172d63b7 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-8.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-8.js
@@ -8,17 +8,17 @@ description: >
implements its own [[Get]] method to get enumerable own property
---*/
- var obj = {};
- var props = [];
- var descObj = {
- value: 8
- };
+var obj = {};
+var props = [];
+var descObj = {
+ value: 8
+};
- Object.defineProperty(props, "prop", {
- value: descObj,
- enumerable: true
- });
- Object.defineProperties(obj, props);
+Object.defineProperty(props, "prop", {
+ value: descObj,
+ enumerable: true
+});
+Object.defineProperties(obj, props);
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, 8, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-9.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-9.js
index 679a4acaf..c394944d8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-9.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-9.js
@@ -8,16 +8,16 @@ description: >
implements its own [[Get]] method to get enumerable own property
---*/
- var obj = {};
- var props = new String();
+var obj = {};
+var props = new String();
- Object.defineProperty(props, "prop", {
- value: {
- value: 9
- },
- enumerable: true
- });
- Object.defineProperties(obj, props);
+Object.defineProperty(props, "prop", {
+ value: {
+ value: 9
+ },
+ enumerable: true
+});
+Object.defineProperties(obj, props);
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, 9, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-1.js
index 7eaf6bd16..0717a78ad 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-1.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-1.js
@@ -6,10 +6,10 @@ es5id: 15.2.3.7-5-b-1
description: Object.defineProperties - 'descObj' is undefined (8.10.5 step 1)
---*/
- var obj = {};
+var obj = {};
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- prop: undefined
- });
+ Object.defineProperties(obj, {
+ prop: undefined
+ });
});
assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-10.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-10.js
index 2161abbeb..92b92c34e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-10.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-10.js
@@ -9,28 +9,28 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- var proto = {
- enumerable: true
- };
+var proto = {
+ enumerable: true
+};
- var Con = function () { };
- Con.prototype = proto;
- var descObj = new Con();
+var Con = function() {};
+Con.prototype = proto;
+var descObj = new Con();
- Object.defineProperty(descObj, "enumerable", {
- value: false
- });
+Object.defineProperty(descObj, "enumerable", {
+ value: false
+});
- Object.defineProperties(obj, {
- prop: descObj
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: descObj
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-100.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-100.js
index 931dbcfff..1c7424996 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-100.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-100.js
@@ -8,16 +8,16 @@ description: >
'descObj' is Boolean object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- configurable: new Boolean(true)
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ configurable: new Boolean(true)
+ }
+});
- var preCheck = obj.hasOwnProperty("property");
- delete obj.property;
+var preCheck = obj.hasOwnProperty("property");
+delete obj.property;
assert(preCheck, 'preCheck !== true');
assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-101.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-101.js
index 8fb9548c0..0696cef21 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-101.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-101.js
@@ -8,15 +8,15 @@ description: >
'descObj' is Number object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- configurable: new Number(-123)
- }
- });
- var preCheck = obj.hasOwnProperty("property");
- delete obj.property;
+Object.defineProperties(obj, {
+ property: {
+ configurable: new Number(-123)
+ }
+});
+var preCheck = obj.hasOwnProperty("property");
+delete obj.property;
assert(preCheck, 'preCheck !== true');
assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-102.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-102.js
index 74577f689..db8215422 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-102.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-102.js
@@ -8,15 +8,15 @@ description: >
'descObj' is the Math object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- configurable: Math
- }
- });
- var preCheck = obj.hasOwnProperty("property");
- delete obj.property;
+Object.defineProperties(obj, {
+ property: {
+ configurable: Math
+ }
+});
+var preCheck = obj.hasOwnProperty("property");
+delete obj.property;
assert(preCheck, 'preCheck !== true');
assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-103.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-103.js
index dce33a54c..4a1ab03d5 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-103.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-103.js
@@ -8,15 +8,15 @@ description: >
'descObj' is Date object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- configurable: new Date()
- }
- });
- var preCheck = obj.hasOwnProperty("property");
- delete obj.property;
+Object.defineProperties(obj, {
+ property: {
+ configurable: new Date()
+ }
+});
+var preCheck = obj.hasOwnProperty("property");
+delete obj.property;
assert(preCheck, 'preCheck !== true');
assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-104.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-104.js
index 7b2464f4e..509aa4d1d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-104.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-104.js
@@ -8,15 +8,15 @@ description: >
'descObj' is RegExp object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- configurable: new RegExp()
- }
- });
- var preCheck = obj.hasOwnProperty("property");
- delete obj.property;
+Object.defineProperties(obj, {
+ property: {
+ configurable: new RegExp()
+ }
+});
+var preCheck = obj.hasOwnProperty("property");
+delete obj.property;
assert(preCheck, 'preCheck !== true');
assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-105.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-105.js
index a45f02039..54061c8ad 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-105.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-105.js
@@ -8,15 +8,15 @@ description: >
'descObj' is the JSON object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- configurable: JSON
- }
- });
- var preCheck = obj.hasOwnProperty("property");
- delete obj.property;
+Object.defineProperties(obj, {
+ property: {
+ configurable: JSON
+ }
+});
+var preCheck = obj.hasOwnProperty("property");
+delete obj.property;
assert(preCheck, 'preCheck !== true');
assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-106.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-106.js
index 2d4540410..d02aa0cfb 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-106.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-106.js
@@ -8,15 +8,15 @@ description: >
'descObj' is Error object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- configurable: new SyntaxError()
- }
- });
- var preCheck = obj.hasOwnProperty("property");
- delete obj.property;
+Object.defineProperties(obj, {
+ property: {
+ configurable: new SyntaxError()
+ }
+});
+var preCheck = obj.hasOwnProperty("property");
+delete obj.property;
assert(preCheck, 'preCheck !== true');
assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-107.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-107.js
index 68bd1992d..d9f5f2436 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-107.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-107.js
@@ -8,21 +8,21 @@ description: >
'descObj' is the Argument object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- var func = function (a, b, c) {
- return arguments;
- };
+var func = function(a, b, c) {
+ return arguments;
+};
- var args = func(1, true, "a");
+var args = func(1, true, "a");
- Object.defineProperties(obj, {
- property: {
- configurable: args
- }
- });
- var preCheck = obj.hasOwnProperty("property");
- delete obj.property;
+Object.defineProperties(obj, {
+ property: {
+ configurable: args
+ }
+});
+var preCheck = obj.hasOwnProperty("property");
+delete obj.property;
assert(preCheck, 'preCheck !== true');
assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-109.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-109.js
index 4a99de902..2100bf806 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-109.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-109.js
@@ -8,15 +8,15 @@ description: >
'descObj' is the global object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- configurable: this
- }
- });
- var preCheck = obj.hasOwnProperty("property");
- delete obj.property;
+Object.defineProperties(obj, {
+ property: {
+ configurable: this
+ }
+});
+var preCheck = obj.hasOwnProperty("property");
+delete obj.property;
assert(preCheck, 'preCheck !== true');
assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-11.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-11.js
index c7fe92461..3204be998 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-11.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-11.js
@@ -9,32 +9,32 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var proto = {};
- var accessed = false;
-
- Object.defineProperty(proto, "enumerable", {
- get: function () {
- return true;
- }
- });
-
- var Con = function () { };
- Con.prototype = proto;
- var descObj = new Con();
-
- Object.defineProperty(descObj, "enumerable", {
- value: false
- });
-
- Object.defineProperties(obj, {
- prop: descObj
- });
-
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+var obj = {};
+var proto = {};
+var accessed = false;
+
+Object.defineProperty(proto, "enumerable", {
+ get: function() {
+ return true;
+ }
+});
+
+var Con = function() {};
+Con.prototype = proto;
+var descObj = new Con();
+
+Object.defineProperty(descObj, "enumerable", {
+ value: false
+});
+
+Object.defineProperties(obj, {
+ prop: descObj
+});
+
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-110.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-110.js
index bd7381728..4f7e59769 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-110.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-110.js
@@ -9,15 +9,15 @@ description: >
value (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- configurable: "false"
- }
- });
- var preCheck = obj.hasOwnProperty("property");
- delete obj.property;
+Object.defineProperties(obj, {
+ property: {
+ configurable: "false"
+ }
+});
+var preCheck = obj.hasOwnProperty("property");
+delete obj.property;
assert(preCheck, 'preCheck !== true');
assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-111.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-111.js
index 60cd9d5f0..f80e6667d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-111.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-111.js
@@ -9,15 +9,15 @@ description: >
(8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- configurable: new Boolean(false)
- }
- });
- var preCheck = obj.hasOwnProperty("property");
- delete obj.property;
+Object.defineProperties(obj, {
+ property: {
+ configurable: new Boolean(false)
+ }
+});
+var preCheck = obj.hasOwnProperty("property");
+delete obj.property;
assert(preCheck, 'preCheck !== true');
assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-112.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-112.js
index 900faf15c..63076a932 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-112.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-112.js
@@ -8,12 +8,12 @@ description: >
(8.10.5 step 5)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- value: 300
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ value: 300
+ }
+});
assert.sameValue(obj.property, 300, 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-113.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-113.js
index 91a7cd1e9..86c1b279d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-113.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-113.js
@@ -8,13 +8,13 @@ description: >
present (8.10.5 step 5)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- writable: true
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ writable: true
+ }
+});
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
-assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
+assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-114.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-114.js
index f053943dc..a4350ff1a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-114.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-114.js
@@ -8,12 +8,12 @@ description: >
data property (8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- value: "ownDataProperty"
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ value: "ownDataProperty"
+ }
+});
assert.sameValue(obj.property, "ownDataProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-115.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-115.js
index a1d384f96..05a4bbeb2 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-115.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-115.js
@@ -8,19 +8,19 @@ description: >
inherited data property (8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- var proto = {
- value: "inheritedDataProperty"
- };
+var proto = {
+ value: "inheritedDataProperty"
+};
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var descObj = new Con();
+var descObj = new Con();
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "inheritedDataProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-116.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-116.js
index 57270ab35..543d649bd 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-116.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-116.js
@@ -9,21 +9,21 @@ description: >
step 5.a)
---*/
- var obj = {};
+var obj = {};
- var proto = {
- value: "inheritedDataProperty"
- };
+var proto = {
+ value: "inheritedDataProperty"
+};
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var descObj = new Con();
+var descObj = new Con();
- descObj.value = "ownDataProperty";
+descObj.value = "ownDataProperty";
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "ownDataProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-117.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-117.js
index 56c96530f..d3e3f1df4 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-117.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-117.js
@@ -9,27 +9,27 @@ description: >
(8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "value", {
- get: function () {
- return "inheritedAccessorProperty";
- }
- });
+Object.defineProperty(proto, "value", {
+ get: function() {
+ return "inheritedAccessorProperty";
+ }
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var descObj = new Con();
+var descObj = new Con();
- Object.defineProperty(descObj, "value", {
- value: "ownDataProperty"
- });
+Object.defineProperty(descObj, "value", {
+ value: "ownDataProperty"
+});
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "ownDataProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-118.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-118.js
index 981841728..9128a4dac 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-118.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-118.js
@@ -8,18 +8,18 @@ description: >
accessor property (8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = {};
+var descObj = {};
- Object.defineProperty(descObj, "value", {
- get: function () {
- return "ownAccessorProperty";
- }
- });
+Object.defineProperty(descObj, "value", {
+ get: function() {
+ return "ownAccessorProperty";
+ }
+});
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-119.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-119.js
index 3bb8efb11..b3f4d6e7d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-119.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-119.js
@@ -8,23 +8,23 @@ description: >
inherited accessor property (8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "value", {
- get: function () {
- return "inheritedAccessorProperty";
- }
- });
+Object.defineProperty(proto, "value", {
+ get: function() {
+ return "inheritedAccessorProperty";
+ }
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var descObj = new Con();
+var descObj = new Con();
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "inheritedAccessorProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-12.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-12.js
index d093f3e5e..377de2f55 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-12.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-12.js
@@ -8,23 +8,23 @@ description: >
own accessor property (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
- var descObj = {};
+var obj = {};
+var accessed = false;
+var descObj = {};
- Object.defineProperty(descObj, "enumerable", {
- get: function () {
- return true;
- }
- });
+Object.defineProperty(descObj, "enumerable", {
+ get: function() {
+ return true;
+ }
+});
- Object.defineProperties(obj, {
- prop: descObj
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: descObj
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-120.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-120.js
index 0bbec160b..9e5d68fbd 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-120.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-120.js
@@ -9,26 +9,26 @@ description: >
(8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- var proto = {
- value: "inheritedDataProperty"
- };
+var proto = {
+ value: "inheritedDataProperty"
+};
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var descObj = new Con();
+var descObj = new Con();
- Object.defineProperty(descObj, "value", {
- get: function () {
- return "ownAccessorProperty";
- }
- });
+Object.defineProperty(descObj, "value", {
+ get: function() {
+ return "ownAccessorProperty";
+ }
+});
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-121.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-121.js
index 3862ad1c2..119815eb0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-121.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-121.js
@@ -9,29 +9,29 @@ description: >
(8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "value", {
- get: function () {
- return "inheritedAccessorProperty";
- }
- });
+Object.defineProperty(proto, "value", {
+ get: function() {
+ return "inheritedAccessorProperty";
+ }
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var descObj = new Con();
+var descObj = new Con();
- Object.defineProperty(descObj, "value", {
- get: function () {
- return "ownAccessorProperty";
- }
- });
+Object.defineProperty(descObj, "value", {
+ get: function() {
+ return "ownAccessorProperty";
+ }
+});
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-122.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-122.js
index 2092ebed2..a03009b31 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-122.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-122.js
@@ -8,17 +8,17 @@ description: >
accessor property without a get function (8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = {};
+var descObj = {};
- Object.defineProperty(descObj, "value", {
- set: function () { }
- });
+Object.defineProperty(descObj, "value", {
+ set: function() {}
+});
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
-assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
+assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-123.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-123.js
index 983674ece..9fb173c87 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-123.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-123.js
@@ -9,28 +9,28 @@ description: >
inherited accessor property (8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "value", {
- get: function () {
- return "inheritedAccessorProperty";
- }
- });
+Object.defineProperty(proto, "value", {
+ get: function() {
+ return "inheritedAccessorProperty";
+ }
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var descObj = new Con();
+var descObj = new Con();
- Object.defineProperty(descObj, "value", {
- set: function () { }
- });
+Object.defineProperty(descObj, "value", {
+ set: function() {}
+});
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
-assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
+assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-124.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-124.js
index 0a4c48f91..b861fbaac 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-124.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-124.js
@@ -9,22 +9,22 @@ description: >
5.a)
---*/
- var obj = {};
+var obj = {};
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "value", {
- set: function () { }
- });
+Object.defineProperty(proto, "value", {
+ set: function() {}
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var descObj = new Con();
+var descObj = new Con();
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
-assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
+assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-125.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-125.js
index 7912b1555..065846ce0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-125.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-125.js
@@ -9,16 +9,16 @@ description: >
step 5.a)
---*/
- var obj = {};
+var obj = {};
- var func = function (a, b) {
- return a + b;
- };
+var func = function(a, b) {
+ return a + b;
+};
- func.value = "Function";
+func.value = "Function";
- Object.defineProperties(obj, {
- property: func
- });
+Object.defineProperties(obj, {
+ property: func
+});
assert.sameValue(obj.property, "Function", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-126.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-126.js
index 608948206..bdfc29b45 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-126.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-126.js
@@ -9,14 +9,14 @@ description: >
step 5.a)
---*/
- var obj = {};
+var obj = {};
- var arr = [1, 2, 3];
+var arr = [1, 2, 3];
- arr.value = "Array";
+arr.value = "Array";
- Object.defineProperties(obj, {
- property: arr
- });
+Object.defineProperties(obj, {
+ property: arr
+});
assert.sameValue(obj.property, "Array", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-127.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-127.js
index a46b6f6e0..4ef78bad9 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-127.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-127.js
@@ -9,14 +9,14 @@ description: >
step 5.a)
---*/
- var obj = {};
+var obj = {};
- var str = new String("abc");
+var str = new String("abc");
- str.value = "String";
+str.value = "String";
- Object.defineProperties(obj, {
- property: str
- });
+Object.defineProperties(obj, {
+ property: str
+});
assert.sameValue(obj.property, "String", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-128.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-128.js
index 0d7d1b807..3ea1c53be 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-128.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-128.js
@@ -9,14 +9,14 @@ description: >
step 5.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = new Boolean(false);
+var descObj = new Boolean(false);
- descObj.value = "Boolean";
+descObj.value = "Boolean";
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "Boolean", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-129.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-129.js
index fd46216dc..d567ff22a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-129.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-129.js
@@ -9,14 +9,14 @@ description: >
step 5.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = new Number(-9);
+var descObj = new Number(-9);
- descObj.value = "Number";
+descObj.value = "Number";
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "Number", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-13.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-13.js
index e841730be..455e6ecc5 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-13.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-13.js
@@ -8,27 +8,27 @@ description: >
inherited accessor property (8.10.5 step 3.a)
---*/
- var obj = {};
- var proto = {};
- var accessed = false;
+var obj = {};
+var proto = {};
+var accessed = false;
- Object.defineProperty(proto, "enumerable", {
- get: function () {
- return true;
- }
- });
+Object.defineProperty(proto, "enumerable", {
+ get: function() {
+ return true;
+ }
+});
- var Con = function () { };
- Con.prototype = proto;
- var descObj = new Con();
+var Con = function() {};
+Con.prototype = proto;
+var descObj = new Con();
- Object.defineProperties(obj, {
- prop: descObj
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: descObj
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-130.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-130.js
index 75eb5a7de..14edec2a9 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-130.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-130.js
@@ -9,12 +9,12 @@ description: >
step 5.a)
---*/
- var obj = {};
+var obj = {};
- Math.value = "Math";
+Math.value = "Math";
- Object.defineProperties(obj, {
- property: Math
- });
+Object.defineProperties(obj, {
+ property: Math
+});
assert.sameValue(obj.property, "Math", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-131.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-131.js
index edfd9426f..a10e3a907 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-131.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-131.js
@@ -9,14 +9,14 @@ description: >
step 5.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = new Date();
+var descObj = new Date();
- descObj.value = "Date";
+descObj.value = "Date";
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "Date", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-132.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-132.js
index 61e00df18..cb7be1428 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-132.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-132.js
@@ -9,14 +9,14 @@ description: >
step 5.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = new RegExp();
+var descObj = new RegExp();
- descObj.value = "RegExp";
+descObj.value = "RegExp";
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "RegExp", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-133.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-133.js
index 75d124af0..48f2701b8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-133.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-133.js
@@ -9,12 +9,12 @@ description: >
step 5.a)
---*/
- var obj = {};
+var obj = {};
- JSON.value = "JSON";
+JSON.value = "JSON";
- Object.defineProperties(obj, {
- property: JSON
- });
+Object.defineProperties(obj, {
+ property: JSON
+});
assert.sameValue(obj.property, "JSON", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-134.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-134.js
index 1030ea5b6..bf16fc4de 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-134.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-134.js
@@ -9,14 +9,14 @@ description: >
step 5.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = new Error();
+var descObj = new Error();
- descObj.value = "Error";
+descObj.value = "Error";
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "Error", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-135.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-135.js
index 13b2ce71f..5e16d72e4 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-135.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-135.js
@@ -9,16 +9,16 @@ description: >
step 5.a)
---*/
- var obj = {};
+var obj = {};
- var func = function (a, b) {
- arguments.value = "arguments";
+var func = function(a, b) {
+ arguments.value = "arguments";
- Object.defineProperties(obj, {
- property: arguments
- });
+ Object.defineProperties(obj, {
+ property: arguments
+ });
- return obj.property === "arguments";
- };
+ return obj.property === "arguments";
+};
assert(func(), 'func() !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-137.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-137.js
index db7177f09..211d5b200 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-137.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-137.js
@@ -9,12 +9,12 @@ description: >
step 5.a)
---*/
- var obj = {};
+var obj = {};
- this.value = "global";
+this.value = "global";
- Object.defineProperties(obj, {
- property: this
- });
+Object.defineProperties(obj, {
+ property: this
+});
assert.sameValue(obj.property, "global", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-138.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-138.js
index 3f8ddb587..38655acf6 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-138.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-138.js
@@ -12,9 +12,9 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- property: {
- writable: false
- }
+ property: {
+ writable: false
+ }
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-139.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-139.js
index c7f832119..f7f187621 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-139.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-139.js
@@ -12,10 +12,9 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- property: {
- value: "abc"
- }
+ property: {
+ value: "abc"
+ }
});
verifyNotWritable(obj, "property");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-14.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-14.js
index 01f7c1737..c5817704c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-14.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-14.js
@@ -9,29 +9,29 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
- var proto = {
- enumerable: true
- };
+var obj = {};
+var accessed = false;
+var proto = {
+ enumerable: true
+};
- var Con = function () { };
- Con.prototype = proto;
- var descObj = new Con();
+var Con = function() {};
+Con.prototype = proto;
+var descObj = new Con();
- Object.defineProperty(descObj, "enumerable", {
- get: function () {
- return false;
- }
- });
+Object.defineProperty(descObj, "enumerable", {
+ get: function() {
+ return false;
+ }
+});
- Object.defineProperties(obj, {
- prop: descObj
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: descObj
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-140.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-140.js
index da4ca839d..73ef83af8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-140.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-140.js
@@ -12,11 +12,10 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- property: {
- writable: false
- }
+ property: {
+ writable: false
+ }
});
assert(obj.hasOwnProperty("property"));
verifyNotWritable(obj, "property");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-141.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-141.js
index 05f254dfb..203fa2551 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-141.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-141.js
@@ -12,16 +12,16 @@ includes: [propertyHelper.js]
var obj = {};
var proto = {
- writable: false
+ writable: false
};
-var Con = function () { };
+var Con = function() {};
Con.prototype = proto;
var descObj = new Con();
Object.defineProperties(obj, {
- property: descObj
+ property: descObj
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-142.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-142.js
index 3d319e4bb..43065040e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-142.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-142.js
@@ -13,10 +13,10 @@ includes: [propertyHelper.js]
var obj = {};
var proto = {
- writable: true
+ writable: true
};
-var Con = function () { };
+var Con = function() {};
Con.prototype = proto;
var descObj = new Con();
@@ -24,7 +24,7 @@ var descObj = new Con();
descObj.writable = false;
Object.defineProperties(obj, {
- property: descObj
+ property: descObj
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-143.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-143.js
index 64da944b9..7c4bd1ade 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-143.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-143.js
@@ -12,27 +12,28 @@ includes: [propertyHelper.js]
var obj = {};
-var proto = { value: 120 };
+var proto = {
+ value: 120
+};
Object.defineProperty(proto, "writable", {
- get: function () {
- return true;
- }
+ get: function() {
+ return true;
+ }
});
-var Con = function () { };
+var Con = function() {};
Con.prototype = proto;
var descObj = new Con();
Object.defineProperty(descObj, "writable", {
- value: false
+ value: false
});
Object.defineProperties(obj, {
- property: descObj
+ property: descObj
});
assert(obj.hasOwnProperty("property"));
verifyNotWritable(obj, "property");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-144.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-144.js
index 80575a3dd..7342ee90c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-144.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-144.js
@@ -14,13 +14,13 @@ var obj = {};
var descObj = {};
Object.defineProperty(descObj, "writable", {
- get: function () {
- return false;
- }
+ get: function() {
+ return false;
+ }
});
Object.defineProperties(obj, {
- property: descObj
+ property: descObj
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-145.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-145.js
index 0f311be2b..39364f00d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-145.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-145.js
@@ -8,26 +8,26 @@ description: >
inherited accessor property (8.10.5 step 6.a)
---*/
- var obj = {};
+var obj = {};
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "writable", {
- get: function () {
- return true;
- }
- });
+Object.defineProperty(proto, "writable", {
+ get: function() {
+ return true;
+ }
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var descObj = new Con();
+var descObj = new Con();
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
- obj.property = "isWritable";
+obj.property = "isWritable";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(obj.property, "isWritable", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-146.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-146.js
index 86aba4c5f..a3cf7d943 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-146.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-146.js
@@ -13,22 +13,22 @@ includes: [propertyHelper.js]
var obj = {};
var proto = {
- writable: true
+ writable: true
};
-var Con = function () { };
+var Con = function() {};
Con.prototype = proto;
var descObj = new Con();
Object.defineProperty(descObj, "writable", {
- get: function () {
- return false;
- }
+ get: function() {
+ return false;
+ }
});
Object.defineProperties(obj, {
- property: descObj
+ property: descObj
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-147.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-147.js
index 302bf7a6f..3e3142136 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-147.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-147.js
@@ -15,24 +15,24 @@ var obj = {};
var proto = {};
Object.defineProperty(proto, "writable", {
- get: function () {
- return true;
- }
+ get: function() {
+ return true;
+ }
});
-var Con = function () { };
+var Con = function() {};
Con.prototype = proto;
var descObj = new Con();
Object.defineProperty(descObj, "writable", {
- get: function () {
- return false;
- }
+ get: function() {
+ return false;
+ }
});
Object.defineProperties(obj, {
- property: descObj
+ property: descObj
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-148.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-148.js
index 45e785054..5dcb1f264 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-148.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-148.js
@@ -14,11 +14,11 @@ var obj = {};
var descObj = {};
Object.defineProperty(descObj, "writable", {
- set: function () { }
+ set: function() {}
});
Object.defineProperties(obj, {
- property: descObj
+ property: descObj
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-149.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-149.js
index 945010451..c87263952 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-149.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-149.js
@@ -15,22 +15,22 @@ var obj = {};
var proto = {};
Object.defineProperty(proto, "writable", {
- get: function () {
- return true;
- }
+ get: function() {
+ return true;
+ }
});
-var Con = function () { };
+var Con = function() {};
Con.prototype = proto;
var descObj = new Con();
Object.defineProperty(descObj, "writable", {
- set: function () { }
+ set: function() {}
});
Object.defineProperties(obj, {
- property: descObj
+ property: descObj
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-15.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-15.js
index 7acb69ba8..3371b60a8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-15.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-15.js
@@ -9,32 +9,32 @@ description: >
property (8.10.5 step 3.a)
---*/
- var obj = {};
- var proto = {};
- var accessed = false;
- Object.defineProperty(proto, "enumerable", {
- get: function () {
- return true;
- }
- });
+var obj = {};
+var proto = {};
+var accessed = false;
+Object.defineProperty(proto, "enumerable", {
+ get: function() {
+ return true;
+ }
+});
- var Con = function () { };
- Con.prototype = proto;
- var descObj = new Con();
+var Con = function() {};
+Con.prototype = proto;
+var descObj = new Con();
- Object.defineProperty(descObj, "enumerable", {
- get: function () {
- return false;
- }
- });
+Object.defineProperty(descObj, "enumerable", {
+ get: function() {
+ return false;
+ }
+});
- Object.defineProperties(obj, {
- prop: descObj
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: descObj
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-150.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-150.js
index 882c0e852..63ca7a036 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-150.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-150.js
@@ -15,16 +15,16 @@ var obj = {};
var proto = {};
Object.defineProperty(proto, "writable", {
- set: function () { }
+ set: function() {}
});
-var Con = function () { };
+var Con = function() {};
Con.prototype = proto;
var descObj = new Con();
Object.defineProperties(obj, {
- property: descObj
+ property: descObj
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-151.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-151.js
index 0fd11782e..1a3d1598e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-151.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-151.js
@@ -12,14 +12,14 @@ includes: [propertyHelper.js]
var obj = {};
-var func = function (a, b) {
- return a + b;
+var func = function(a, b) {
+ return a + b;
};
func.writable = false;
Object.defineProperties(obj, {
- property: func
+ property: func
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-152.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-152.js
index 1f2af9b85..bf2af0539 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-152.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-152.js
@@ -17,7 +17,7 @@ var arr = [1, 2, 3];
arr.writable = false;
Object.defineProperties(obj, {
- property: arr
+ property: arr
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-153.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-153.js
index f6d920c94..950abea99 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-153.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-153.js
@@ -17,7 +17,7 @@ var str = new String("abc");
str.writable = false;
Object.defineProperties(obj, {
- property: str
+ property: str
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-154.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-154.js
index fdcedefc1..028fcbee1 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-154.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-154.js
@@ -17,7 +17,7 @@ var descObj = new Boolean(false);
descObj.writable = false;
Object.defineProperties(obj, {
- property: descObj
+ property: descObj
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-155.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-155.js
index 31758d4e3..a51c6f1f4 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-155.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-155.js
@@ -17,7 +17,7 @@ var descObj = new Number(-9);
descObj.writable = false;
Object.defineProperties(obj, {
- property: descObj
+ property: descObj
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-156.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-156.js
index c578ae4f7..deceb19f8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-156.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-156.js
@@ -13,11 +13,11 @@ includes: [propertyHelper.js]
var obj = {};
- Math.writable = false;
+Math.writable = false;
- Object.defineProperties(obj, {
- property: Math
- });
+Object.defineProperties(obj, {
+ property: Math
+});
- assert(obj.hasOwnProperty("property"));
- verifyNotWritable(obj, "property");
+assert(obj.hasOwnProperty("property"));
+verifyNotWritable(obj, "property");
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-157.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-157.js
index d8c78aab4..7e4ab1f8f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-157.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-157.js
@@ -17,7 +17,7 @@ var descObj = new Date();
descObj.writable = false;
Object.defineProperties(obj, {
- property: descObj
+ property: descObj
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-158.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-158.js
index 76b0daa55..c586bddf2 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-158.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-158.js
@@ -17,9 +17,8 @@ var descObj = new RegExp();
descObj.writable = false;
Object.defineProperties(obj, {
- property: descObj
+ property: descObj
});
assert(obj.hasOwnProperty("property"));
verifyNotWritable(obj, "property");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-159.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-159.js
index 9bd06f4ef..d13ecf6fb 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-159.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-159.js
@@ -12,11 +12,11 @@ includes: [propertyHelper.js]
var obj = {};
- JSON.writable = false;
+JSON.writable = false;
- Object.defineProperties(obj, {
- property: JSON
- });
+Object.defineProperties(obj, {
+ property: JSON
+});
- assert(obj.hasOwnProperty("property"));
- verifyNotWritable(obj, "property");
+assert(obj.hasOwnProperty("property"));
+verifyNotWritable(obj, "property");
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-16.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-16.js
index b7a6286d6..0bfdb3473 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-16.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-16.js
@@ -8,21 +8,21 @@ description: >
own accessor property without a get function (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
- var descObj = {};
+var obj = {};
+var accessed = false;
+var descObj = {};
- Object.defineProperty(descObj, "enumerable", {
- set: function () { }
- });
+Object.defineProperty(descObj, "enumerable", {
+ set: function() {}
+});
- Object.defineProperties(obj, {
- prop: descObj
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: descObj
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-160.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-160.js
index 800d53d65..517ad0fbe 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-160.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-160.js
@@ -17,7 +17,7 @@ var descObj = new Error();
descObj.writable = false;
Object.defineProperties(obj, {
- property: descObj
+ property: descObj
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-161.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-161.js
index cb7960448..a3048ac30 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-161.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-161.js
@@ -12,16 +12,15 @@ includes: [propertyHelper.js]
var obj = {};
-var func = function (a, b) {
- arguments.writable = false;
+var func = function(a, b) {
+ arguments.writable = false;
- Object.defineProperties(obj, {
- property: arguments
- });
+ Object.defineProperties(obj, {
+ property: arguments
+ });
- assert(obj.hasOwnProperty("property"));
- verifyNotWritable(obj, "property");
+ assert(obj.hasOwnProperty("property"));
+ verifyNotWritable(obj, "property");
};
func();
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-163.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-163.js
index 0cf594b05..c029c8c73 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-163.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-163.js
@@ -13,11 +13,11 @@ includes: [propertyHelper.js]
var obj = {};
- this.writable = false;
+this.writable = false;
- Object.defineProperties(obj, {
- property: this
- });
+Object.defineProperties(obj, {
+ property: this
+});
- assert(obj.hasOwnProperty("property"));
- verifyNotWritable(obj, "property");
+assert(obj.hasOwnProperty("property"));
+verifyNotWritable(obj, "property");
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-164.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-164.js
index 7d93f439e..8d99816a0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-164.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-164.js
@@ -12,9 +12,9 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- property: {
- writable: undefined
- }
+ property: {
+ writable: undefined
+ }
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-165.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-165.js
index bd1610aa7..84d38c866 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-165.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-165.js
@@ -12,9 +12,9 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- property: {
- writable: null
- }
+ property: {
+ writable: null
+ }
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-166.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-166.js
index 1dfa84151..e3a0e968a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-166.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-166.js
@@ -8,14 +8,14 @@ description: >
'descObj' is true (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- writable: true
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ writable: true
+ }
+});
- obj.property = "isWritable";
+obj.property = "isWritable";
assert.sameValue(obj.property, "isWritable", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-167.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-167.js
index bf9e5ac37..e3361c080 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-167.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-167.js
@@ -12,11 +12,10 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- property: {
- writable: false
- }
+ property: {
+ writable: false
+ }
});
assert(obj.hasOwnProperty("property"));
verifyNotWritable(obj, "property");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-168.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-168.js
index 90488b012..f1fb979e8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-168.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-168.js
@@ -12,9 +12,9 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- property: {
- writable: 0
- }
+ property: {
+ writable: 0
+ }
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-169.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-169.js
index 3b33e4782..9d1e031ab 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-169.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-169.js
@@ -12,11 +12,10 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- property: {
- writable: +0
- }
+ property: {
+ writable: +0
+ }
});
assert(obj.hasOwnProperty("property"));
verifyNotWritable(obj, "property");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-17.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-17.js
index 10aeb9376..67df372e7 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-17.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-17.js
@@ -9,30 +9,30 @@ description: >
inherited accessor property (8.10.5 step 3.a)
---*/
- var obj = {};
- var proto = {};
- var accessed = false;
- Object.defineProperty(proto, "enumerable", {
- get: function () {
- return false;
- }
- });
+var obj = {};
+var proto = {};
+var accessed = false;
+Object.defineProperty(proto, "enumerable", {
+ get: function() {
+ return false;
+ }
+});
- var Con = function () { };
- Con.prototype = proto;
- var descObj = new Con();
+var Con = function() {};
+Con.prototype = proto;
+var descObj = new Con();
- Object.defineProperty(descObj, "enumerable", {
- set: function () { }
- });
+Object.defineProperty(descObj, "enumerable", {
+ set: function() {}
+});
- Object.defineProperties(obj, {
- prop: descObj
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: descObj
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-170.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-170.js
index b7a2cf5a5..0f0e05fe2 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-170.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-170.js
@@ -12,11 +12,10 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- property: {
- writable: -0
- }
+ property: {
+ writable: -0
+ }
});
assert(obj.hasOwnProperty("property"));
verifyNotWritable(obj, "property");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-171.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-171.js
index c828a02ac..a61ec4f20 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-171.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-171.js
@@ -12,11 +12,10 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- property: {
- writable: NaN
- }
+ property: {
+ writable: NaN
+ }
});
assert(obj.hasOwnProperty("property"));
verifyNotWritable(obj, "property");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-172.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-172.js
index adbe19cbc..ad3898e77 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-172.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-172.js
@@ -8,14 +8,14 @@ description: >
'descObj' is positive number (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- writable: 123
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ writable: 123
+ }
+});
- obj.property = "isWritable";
+obj.property = "isWritable";
assert.sameValue(obj.property, "isWritable", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-173.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-173.js
index 019ce3f20..0c6728b25 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-173.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-173.js
@@ -8,14 +8,14 @@ description: >
'descObj' is negative number (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- writable: -123
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ writable: -123
+ }
+});
- obj.property = "isWritable";
+obj.property = "isWritable";
assert.sameValue(obj.property, "isWritable", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-174.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-174.js
index 259a2948b..a67609cca 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-174.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-174.js
@@ -12,11 +12,10 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- property: {
- writable: ""
- }
+ property: {
+ writable: ""
+ }
});
assert(obj.hasOwnProperty("property"));
verifyNotWritable(obj, "property");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-175.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-175.js
index 6d3ee51c0..cb4a16a29 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-175.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-175.js
@@ -8,14 +8,14 @@ description: >
'descObj' is non-empty string (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- writable: "abc"
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ writable: "abc"
+ }
+});
- obj.property = "isWritable";
+obj.property = "isWritable";
assert.sameValue(obj.property, "isWritable", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-176.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-176.js
index 23b0377fd..d188cb9a1 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-176.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-176.js
@@ -8,14 +8,14 @@ description: >
'descObj' is Function object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- writable: function () { }
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ writable: function() {}
+ }
+});
- obj.property = "isWritable";
+obj.property = "isWritable";
assert.sameValue(obj.property, "isWritable", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-177.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-177.js
index 6434bd5e6..619619a44 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-177.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-177.js
@@ -8,14 +8,14 @@ description: >
'descObj' is Array object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- writable: []
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ writable: []
+ }
+});
- obj.property = "isWritable";
+obj.property = "isWritable";
assert.sameValue(obj.property, "isWritable", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-178.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-178.js
index 952b57cd8..9d9adb525 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-178.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-178.js
@@ -8,14 +8,14 @@ description: >
'descObj' is String object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- writable: new String("abc")
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ writable: new String("abc")
+ }
+});
- obj.property = "isWritable";
+obj.property = "isWritable";
assert.sameValue(obj.property, "isWritable", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-179.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-179.js
index ddeb6b920..4fc2e2ede 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-179.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-179.js
@@ -8,14 +8,14 @@ description: >
'descObj' is Boolean object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- writable: new Boolean(true)
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ writable: new Boolean(true)
+ }
+});
- obj.property = "isWritable";
+obj.property = "isWritable";
assert.sameValue(obj.property, "isWritable", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-18.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-18.js
index 44323283a..78fcee288 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-18.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-18.js
@@ -9,25 +9,25 @@ description: >
3.a)
---*/
- var obj = {};
- var proto = {};
- var accessed = false;
+var obj = {};
+var proto = {};
+var accessed = false;
- Object.defineProperty(proto, "enumerable", {
- set: function () { }
- });
+Object.defineProperty(proto, "enumerable", {
+ set: function() {}
+});
- var Con = function () { };
- Con.prototype = proto;
- var descObj = new Con();
+var Con = function() {};
+Con.prototype = proto;
+var descObj = new Con();
- Object.defineProperties(obj, {
- prop: descObj
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: descObj
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-180.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-180.js
index 8812433df..525c8ae3c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-180.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-180.js
@@ -8,14 +8,14 @@ description: >
'descObj' is Number object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- writable: new Number(123)
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ writable: new Number(123)
+ }
+});
- obj.property = "isWritable";
+obj.property = "isWritable";
assert.sameValue(obj.property, "isWritable", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-181.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-181.js
index d3611a335..94b32d4ae 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-181.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-181.js
@@ -8,14 +8,14 @@ description: >
'descObj' is the Math object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- writable: Math
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ writable: Math
+ }
+});
- obj.property = "isWritable";
+obj.property = "isWritable";
assert.sameValue(obj.property, "isWritable", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-182.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-182.js
index 4d8cb3ec9..8563d4f3b 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-182.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-182.js
@@ -8,14 +8,14 @@ description: >
'descObj' is Date object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- writable: new Date()
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ writable: new Date()
+ }
+});
- obj.property = "isWritable";
+obj.property = "isWritable";
assert.sameValue(obj.property, "isWritable", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-183.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-183.js
index 0127529df..223af3f11 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-183.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-183.js
@@ -8,14 +8,14 @@ description: >
'descObj' is RegExp object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- writable: new RegExp()
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ writable: new RegExp()
+ }
+});
- obj.property = "isWritable";
+obj.property = "isWritable";
assert.sameValue(obj.property, "isWritable", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-184.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-184.js
index c7d1069d0..013fe4fde 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-184.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-184.js
@@ -8,14 +8,14 @@ description: >
'descObj' is the JSON object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- writable: JSON
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ writable: JSON
+ }
+});
- obj.property = "isWritable";
+obj.property = "isWritable";
assert.sameValue(obj.property, "isWritable", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-185.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-185.js
index 5f69925d0..1dadf7f4b 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-185.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-185.js
@@ -8,14 +8,14 @@ description: >
'descObj' is Error object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- writable: new SyntaxError()
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ writable: new SyntaxError()
+ }
+});
- obj.property = "isWritable";
+obj.property = "isWritable";
assert.sameValue(obj.property, "isWritable", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-186.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-186.js
index 5b9d21e6a..3ce2a2cd9 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-186.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-186.js
@@ -8,18 +8,18 @@ description: >
'descObj' is the Argument object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- var func = function (a, b, c) {
- return arguments;
- };
+var func = function(a, b, c) {
+ return arguments;
+};
- Object.defineProperties(obj, {
- property: {
- writable: func(1, true, "a")
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ writable: func(1, true, "a")
+ }
+});
- obj.property = "isWritable";
+obj.property = "isWritable";
assert.sameValue(obj.property, "isWritable", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-188.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-188.js
index 93da155d8..7c21d0311 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-188.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-188.js
@@ -8,14 +8,14 @@ description: >
'descObj' is the global object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- writable: this
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ writable: this
+ }
+});
- obj.property = "isWritable";
+obj.property = "isWritable";
assert.sameValue(obj.property, "isWritable", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-189.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-189.js
index 3cce69156..14aeec5dd 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-189.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-189.js
@@ -9,14 +9,14 @@ description: >
value (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- writable: "false"
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ writable: "false"
+ }
+});
- obj.property = "isWritable";
+obj.property = "isWritable";
assert.sameValue(obj.property, "isWritable", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-19.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-19.js
index 8d08b9bf3..f35df834d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-19.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-19.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var descObj = function () { };
- var accessed = false;
+var obj = {};
+var descObj = function() {};
+var accessed = false;
- descObj.enumerable = true;
+descObj.enumerable = true;
- Object.defineProperties(obj, {
- prop: descObj
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: descObj
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-190.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-190.js
index 693beb411..95170617c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-190.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-190.js
@@ -9,14 +9,14 @@ description: >
(8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- writable: new Boolean(false)
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ writable: new Boolean(false)
+ }
+});
- obj.property = "isWritable";
+obj.property = "isWritable";
assert.sameValue(obj.property, "isWritable", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-191.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-191.js
index 623b6e111..d502222b0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-191.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-191.js
@@ -8,16 +8,16 @@ description: >
(8.10.5 step 7)
---*/
- var obj = {};
+var obj = {};
- var getter = function () {
- return "present";
- };
+var getter = function() {
+ return "present";
+};
- Object.defineProperties(obj, {
- property: {
- get: getter
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ get: getter
+ }
+});
assert.sameValue(obj.property, "present", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-192.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-192.js
index 0b5ac282c..0f5a1c6ab 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-192.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-192.js
@@ -8,15 +8,15 @@ description: >
present (8.10.5 step 7)
---*/
- var obj = {};
+var obj = {};
- var setter = function () { };
+var setter = function() {};
- Object.defineProperties(obj, {
- property: {
- set: setter
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ set: setter
+ }
+});
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
-assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
+assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-193.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-193.js
index e6910e88d..140bed063 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-193.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-193.js
@@ -8,16 +8,16 @@ description: >
property (8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- var getter = function () {
- return "ownDataProperty";
- };
+var getter = function() {
+ return "ownDataProperty";
+};
- Object.defineProperties(obj, {
- property: {
- get: getter
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ get: getter
+ }
+});
assert.sameValue(obj.property, "ownDataProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-194.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-194.js
index d38ac2dce..99531a4b0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-194.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-194.js
@@ -8,23 +8,23 @@ description: >
data property (8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- var getter = function () {
- return "inheritedDataProperty";
- };
+var getter = function() {
+ return "inheritedDataProperty";
+};
- var proto = {
- get: getter
- };
+var proto = {
+ get: getter
+};
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var descObj = new Con();
+var descObj = new Con();
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "inheritedDataProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-195.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-195.js
index 6931583a6..586acb78d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-195.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-195.js
@@ -9,27 +9,27 @@ description: >
7.a)
---*/
- var obj = {};
+var obj = {};
- var getter = function () {
- return "inheritedDataProperty";
- };
+var getter = function() {
+ return "inheritedDataProperty";
+};
- var proto = {
- get: getter
- };
+var proto = {
+ get: getter
+};
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var descObj = new Con();
+var descObj = new Con();
- descObj.get = function () {
- return "ownDataProperty";
- };
+descObj.get = function() {
+ return "ownDataProperty";
+};
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "ownDataProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-196.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-196.js
index 25abe43bb..bd562d76c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-196.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-196.js
@@ -9,31 +9,31 @@ description: >
step 7.a)
---*/
- var obj = {};
+var obj = {};
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "get", {
- get: function () {
- return function () {
- return "inheritedAccessorProperty";
- };
- }
- });
+Object.defineProperty(proto, "get", {
+ get: function() {
+ return function() {
+ return "inheritedAccessorProperty";
+ };
+ }
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var descObj = new Con();
+var descObj = new Con();
- Object.defineProperty(descObj, "get", {
- value: function () {
- return "ownDataProperty";
- }
- });
+Object.defineProperty(descObj, "get", {
+ value: function() {
+ return "ownDataProperty";
+ }
+});
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "ownDataProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-197.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-197.js
index e75e2a810..6828cb641 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-197.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-197.js
@@ -8,20 +8,20 @@ description: >
accessor property (8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = {};
+var descObj = {};
- Object.defineProperty(descObj, "get", {
- get: function () {
- return function () {
- return "ownAccessorProperty";
- };
- }
- });
+Object.defineProperty(descObj, "get", {
+ get: function() {
+ return function() {
+ return "ownAccessorProperty";
+ };
+ }
+});
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-198.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-198.js
index ad065ec41..18ef102f5 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-198.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-198.js
@@ -8,25 +8,25 @@ description: >
accessor property (8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "get", {
- get: function () {
- return function () {
- return "inheritedAccessorProperty";
- };
- }
- });
+Object.defineProperty(proto, "get", {
+ get: function() {
+ return function() {
+ return "inheritedAccessorProperty";
+ };
+ }
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var descObj = new Con();
+var descObj = new Con();
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "inheritedAccessorProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-199.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-199.js
index 3cced9703..2c3cf0a1d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-199.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-199.js
@@ -9,29 +9,29 @@ description: >
(8.10.5 step 7.a)
---*/
- var obj = {};
-
- var proto = {
- get: function () {
- return "inheritedDataProperty";
- }
- };
-
- var Con = function () { };
- Con.prototype = proto;
-
- var descObj = new Con();
-
- Object.defineProperty(descObj, "get", {
- get: function () {
- return function () {
- return "ownAccessorProperty";
- };
- }
- });
-
- Object.defineProperties(obj, {
- property: descObj
- });
+var obj = {};
+
+var proto = {
+ get: function() {
+ return "inheritedDataProperty";
+ }
+};
+
+var Con = function() {};
+Con.prototype = proto;
+
+var descObj = new Con();
+
+Object.defineProperty(descObj, "get", {
+ get: function() {
+ return function() {
+ return "ownAccessorProperty";
+ };
+ }
+});
+
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-2.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-2.js
index c7fa6e5ea..156e9cebd 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-2.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-2.js
@@ -6,10 +6,10 @@ es5id: 15.2.3.7-5-b-2
description: Object.defineProperties - 'descObj' is null (8.10.5 step 1)
---*/
- var obj = {};
+var obj = {};
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- prop: null
- });
+ Object.defineProperties(obj, {
+ prop: null
+ });
});
assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-20.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-20.js
index 77fa9fd97..9b0f3d3aa 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-20.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-20.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
- var descObj = [];
+var obj = {};
+var accessed = false;
+var descObj = [];
- descObj.enumerable = true;
+descObj.enumerable = true;
- Object.defineProperties(obj, {
- prop: descObj
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: descObj
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-200.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-200.js
index 683fe441a..34d8e72e7 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-200.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-200.js
@@ -9,33 +9,33 @@ description: >
(8.10.5 step 7.a)
---*/
- var obj = {};
-
- var proto = {};
-
- Object.defineProperty(proto, "get", {
- get: function () {
- return function () {
- return "inheritedAccessorProperty";
- };
- }
- });
-
- var Con = function () { };
- Con.prototype = proto;
-
- var descObj = new Con();
-
- Object.defineProperty(descObj, "get", {
- get: function () {
- return function () {
- return "ownAccessorProperty";
- };
- }
- });
-
- Object.defineProperties(obj, {
- property: descObj
- });
+var obj = {};
+
+var proto = {};
+
+Object.defineProperty(proto, "get", {
+ get: function() {
+ return function() {
+ return "inheritedAccessorProperty";
+ };
+ }
+});
+
+var Con = function() {};
+Con.prototype = proto;
+
+var descObj = new Con();
+
+Object.defineProperty(descObj, "get", {
+ get: function() {
+ return function() {
+ return "ownAccessorProperty";
+ };
+ }
+});
+
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-201.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-201.js
index b3cff0d0a..5777b8c2a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-201.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-201.js
@@ -8,16 +8,16 @@ description: >
accessor property without a get function (8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = {};
+var descObj = {};
- Object.defineProperty(descObj, "get", {
- set: function () { }
- });
+Object.defineProperty(descObj, "get", {
+ set: function() {}
+});
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
-assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
+assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-202.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-202.js
index 1615f7be3..2a80a4665 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-202.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-202.js
@@ -9,29 +9,29 @@ description: >
inherited accessor property (8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "get", {
- get: function () {
- return function () {
- return "inheritedAccessorProperty";
- };
- }
- });
+Object.defineProperty(proto, "get", {
+ get: function() {
+ return function() {
+ return "inheritedAccessorProperty";
+ };
+ }
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var descObj = new Con();
+var descObj = new Con();
- Object.defineProperty(descObj, "get", {
- set: function () { }
- });
+Object.defineProperty(descObj, "get", {
+ set: function() {}
+});
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
-assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
+assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-203.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-203.js
index 2cd46064c..ee493da54 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-203.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-203.js
@@ -8,21 +8,21 @@ description: >
accessor property without a get function (8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "get", {
- set: function () { }
- });
+Object.defineProperty(proto, "get", {
+ set: function() {}
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var descObj = new Con();
+var descObj = new Con();
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
-assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
+assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-204.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-204.js
index c92704618..b8cbce77f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-204.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-204.js
@@ -9,18 +9,18 @@ description: >
step 7.a)
---*/
- var obj = {};
+var obj = {};
- var func = function (a, b) {
- return a + b;
- };
+var func = function(a, b) {
+ return a + b;
+};
- func.get = function () {
- return "Function";
- };
+func.get = function() {
+ return "Function";
+};
- Object.defineProperties(obj, {
- property: func
- });
+Object.defineProperties(obj, {
+ property: func
+});
assert.sameValue(obj.property, "Function", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-205.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-205.js
index 5c2468064..eba777f18 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-205.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-205.js
@@ -9,16 +9,16 @@ description: >
step 7.a)
---*/
- var obj = {};
+var obj = {};
- var arr = [];
+var arr = [];
- arr.get = function () {
- return "Array";
- };
+arr.get = function() {
+ return "Array";
+};
- Object.defineProperties(obj, {
- property: arr
- });
+Object.defineProperties(obj, {
+ property: arr
+});
assert.sameValue(obj.property, "Array", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-206.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-206.js
index 2f1bceec8..53fbe1f63 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-206.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-206.js
@@ -9,16 +9,16 @@ description: >
step 7.a)
---*/
- var obj = {};
+var obj = {};
- var str = new String("abc");
+var str = new String("abc");
- str.get = function () {
- return "string Object";
- };
+str.get = function() {
+ return "string Object";
+};
- Object.defineProperties(obj, {
- property: str
- });
+Object.defineProperties(obj, {
+ property: str
+});
assert.sameValue(obj.property, "string Object", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-207.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-207.js
index d0914e4ce..8e22fc44e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-207.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-207.js
@@ -9,16 +9,16 @@ description: >
step 7.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = new Boolean(false);
+var descObj = new Boolean(false);
- descObj.get = function () {
- return "Boolean";
- };
+descObj.get = function() {
+ return "Boolean";
+};
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "Boolean", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-208.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-208.js
index 687a062c8..c49f295f5 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-208.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-208.js
@@ -9,16 +9,16 @@ description: >
step 7.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = new Number(-9);
+var descObj = new Number(-9);
- descObj.get = function () {
- return "Number";
- };
+descObj.get = function() {
+ return "Number";
+};
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "Number", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-209.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-209.js
index a4dec6de0..88cb8ea1e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-209.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-209.js
@@ -9,14 +9,14 @@ description: >
step 7.a)
---*/
- var obj = {};
+var obj = {};
- Math.get = function () {
- return "Math";
- };
+Math.get = function() {
+ return "Math";
+};
- Object.defineProperties(obj, {
- property: Math
- });
+Object.defineProperties(obj, {
+ property: Math
+});
assert.sameValue(obj.property, "Math", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-21.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-21.js
index bc0dcad7a..f103f0d99 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-21.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-21.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var descObj = new String();
- var accessed = false;
- descObj.enumerable = true;
+var obj = {};
+var descObj = new String();
+var accessed = false;
+descObj.enumerable = true;
- Object.defineProperties(obj, {
- prop: descObj
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: descObj
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-210.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-210.js
index 6a7ff611f..f49214a03 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-210.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-210.js
@@ -9,16 +9,16 @@ description: >
step 7.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = new Date();
+var descObj = new Date();
- descObj.get = function () {
- return "Date";
- };
+descObj.get = function() {
+ return "Date";
+};
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "Date", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-211.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-211.js
index 2ae4481c8..7630822e2 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-211.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-211.js
@@ -9,16 +9,16 @@ description: >
step 7.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = new RegExp();
+var descObj = new RegExp();
- descObj.get = function () {
- return "RegExp";
- };
+descObj.get = function() {
+ return "RegExp";
+};
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "RegExp", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-212.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-212.js
index 75f7d4a49..34af6cc3e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-212.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-212.js
@@ -9,14 +9,14 @@ description: >
step 7.a)
---*/
- var obj = {};
+var obj = {};
- JSON.get = function () {
- return "JSON";
- };
+JSON.get = function() {
+ return "JSON";
+};
- Object.defineProperties(obj, {
- property: JSON
- });
+Object.defineProperties(obj, {
+ property: JSON
+});
assert.sameValue(obj.property, "JSON", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-213.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-213.js
index add8aeee1..40fc4c607 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-213.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-213.js
@@ -9,16 +9,16 @@ description: >
step 7.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = new Error();
+var descObj = new Error();
- descObj.get = function () {
- return "Error";
- };
+descObj.get = function() {
+ return "Error";
+};
- Object.defineProperties(obj, {
- property: descObj
- });
+Object.defineProperties(obj, {
+ property: descObj
+});
assert.sameValue(obj.property, "Error", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-214.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-214.js
index 862bac611..63d81384a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-214.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-214.js
@@ -9,18 +9,18 @@ description: >
step 7.a)
---*/
- var obj = {};
+var obj = {};
- var func = function (a, b) {
- arguments.get = function () {
- return "arguments";
- };
+var func = function(a, b) {
+ arguments.get = function() {
+ return "arguments";
+ };
- Object.defineProperties(obj, {
- property: arguments
- });
+ Object.defineProperties(obj, {
+ property: arguments
+ });
- return obj.property === "arguments";
- };
+ return obj.property === "arguments";
+};
assert(func(), 'func() !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-216.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-216.js
index 26f4eeb5b..25363284b 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-216.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-216.js
@@ -9,14 +9,14 @@ description: >
step 7.a)
---*/
- var obj = {};
+var obj = {};
- this.get = function () {
- return "global";
- };
+this.get = function() {
+ return "global";
+};
- Object.defineProperties(obj, {
- property: this
- });
+Object.defineProperties(obj, {
+ property: this
+});
assert.sameValue(obj.property, "global", 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-217.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-217.js
index 06f9e3e49..8fa141a7e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-217.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-217.js
@@ -8,13 +8,13 @@ description: >
undefined (8.10.5 step 7.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- get: undefined
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ get: undefined
+ }
+});
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(typeof obj.property, "undefined", 'typeof obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-218.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-218.js
index 391538ddb..5af8d0275 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-218.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-218.js
@@ -8,11 +8,11 @@ description: >
primitive values( value is null) (8.10.5 step 7.b)
---*/
- var obj = {};
+var obj = {};
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- property: {
- get: null
- }
- });
+ Object.defineProperties(obj, {
+ property: {
+ get: null
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-219.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-219.js
index adb34766f..b74681d94 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-219.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-219.js
@@ -8,11 +8,11 @@ description: >
primitive values( value is boolean) (8.10.5 step 7.b)
---*/
- var obj = {};
+var obj = {};
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- property: {
- get: false
- }
- });
+ Object.defineProperties(obj, {
+ property: {
+ get: false
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-22.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-22.js
index 84dd886f1..2806a23d7 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-22.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-22.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var descObj = new Boolean(false);
- var accessed = false;
+var obj = {};
+var descObj = new Boolean(false);
+var accessed = false;
- descObj.enumerable = true;
+descObj.enumerable = true;
- Object.defineProperties(obj, {
- prop: descObj
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: descObj
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-220.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-220.js
index d684f624d..f508b1465 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-220.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-220.js
@@ -8,11 +8,11 @@ description: >
primitive values( value is number) (8.10.5 step 7.b)
---*/
- var obj = {};
+var obj = {};
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- property: {
- get: 123
- }
- });
+ Object.defineProperties(obj, {
+ property: {
+ get: 123
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-221.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-221.js
index 982cddb9b..7ca189288 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-221.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-221.js
@@ -8,11 +8,11 @@ description: >
primitive values( value is string) (8.10.5 step 7.b)
---*/
- var obj = {};
+var obj = {};
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- property: {
- get: "string"
- }
- });
+ Object.defineProperties(obj, {
+ property: {
+ get: "string"
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-222.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-222.js
index 57e21ef35..6905d2d7d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-222.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-222.js
@@ -8,11 +8,11 @@ description: >
applied to Array object (8.10.5 step 7.b)
---*/
- var obj = {};
+var obj = {};
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- property: {
- get: []
- }
- });
+ Object.defineProperties(obj, {
+ property: {
+ get: []
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-223.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-223.js
index 74e72ca9b..7fc6d9c5a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-223.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-223.js
@@ -8,16 +8,16 @@ description: >
a function (8.10.5 step 7.b)
---*/
- var obj = {};
+var obj = {};
- var getter = function () {
- return 100;
- };
+var getter = function() {
+ return 100;
+};
- Object.defineProperties(obj, {
- property: {
- get: getter
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ get: getter
+ }
+});
assert.sameValue(obj.property, 100, 'obj.property');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-226.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-226.js
index da6e91356..86b207273 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-226.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-226.js
@@ -8,18 +8,18 @@ description: >
(8.10.5 step 8)
---*/
- var data = "data";
- var obj = {};
+var data = "data";
+var obj = {};
- Object.defineProperties(obj, {
- "prop": {
- set: function (value) {
- data = value;
- }
- }
- });
+Object.defineProperties(obj, {
+ "prop": {
+ set: function(value) {
+ data = value;
+ }
+ }
+});
- obj.prop = "overrideData";
+obj.prop = "overrideData";
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-227.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-227.js
index c7f08514b..4100de611 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-227.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-227.js
@@ -13,11 +13,11 @@ var data = "data";
var obj = {};
Object.defineProperties(obj, {
- descObj: {
- get: function () {
- return data;
- }
+ descObj: {
+ get: function() {
+ return data;
}
+ }
});
@@ -25,5 +25,4 @@ assert(obj.hasOwnProperty("descObj"));
verifyNotWritable(obj, "descObj");
var desc = Object.getOwnPropertyDescriptor(obj, "descObj");
-assert.sameValue(typeof (desc.set), "undefined")
-
+assert.sameValue(typeof(desc.set), "undefined")
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-228.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-228.js
index 28010e240..ac5080da9 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-228.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-228.js
@@ -8,18 +8,18 @@ description: >
property (8.10.5 step 8.a)
---*/
- var data = "data";
- var obj = {};
+var data = "data";
+var obj = {};
- Object.defineProperties(obj, {
- descObj: {
- set: function (value) {
- data = value;
- }
- }
- });
+Object.defineProperties(obj, {
+ descObj: {
+ set: function(value) {
+ data = value;
+ }
+ }
+});
- obj.descObj = "overrideData";
+obj.descObj = "overrideData";
assert(obj.hasOwnProperty("descObj"), 'obj.hasOwnProperty("descObj") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-229.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-229.js
index 5554bdbc3..46e1b3bd3 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-229.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-229.js
@@ -8,24 +8,24 @@ description: >
data property (8.10.5 step 8.a)
---*/
- var data = "data";
- var proto = {
- set: function (value) {
- data = value;
- }
- };
+var data = "data";
+var proto = {
+ set: function(value) {
+ data = value;
+ }
+};
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var child = new Con();
- var obj = {};
+var child = new Con();
+var obj = {};
- Object.defineProperties(obj, {
- prop: child
- });
+Object.defineProperties(obj, {
+ prop: child
+});
- obj.prop = "overrideData";
+obj.prop = "overrideData";
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-23.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-23.js
index 57d4230ba..1dac44959 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-23.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-23.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var descObj = new Number(-9);
- var accessed = false;
+var obj = {};
+var descObj = new Number(-9);
+var accessed = false;
- descObj.enumerable = true;
+descObj.enumerable = true;
- Object.defineProperties(obj, {
- prop: descObj
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: descObj
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-230.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-230.js
index b15fbd6ec..892b35b12 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-230.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-230.js
@@ -9,29 +9,29 @@ description: >
8.a)
---*/
- var data1 = "data";
- var data2 = "data";
- var proto = {
- set: function (value) {
- data2 = value;
- }
- };
+var data1 = "data";
+var data2 = "data";
+var proto = {
+ set: function(value) {
+ data2 = value;
+ }
+};
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var child = new Con();
- child.set = function (value) {
- data1 = value;
- };
+var child = new Con();
+child.set = function(value) {
+ data1 = value;
+};
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- prop: child
- });
+Object.defineProperties(obj, {
+ prop: child
+});
- obj.prop = "overrideData";
+obj.prop = "overrideData";
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(data1, "overrideData", 'data1');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-231.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-231.js
index 082f642f7..248fa97ad 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-231.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-231.js
@@ -9,36 +9,36 @@ description: >
step 8.a)
---*/
- var data1 = "data";
- var data2 = "data";
- var fun = function (value) {
- data2 = value;
- };
- var proto = {};
- Object.defineProperty(proto, "set", {
- get: function () {
- return fun;
- },
- set: function (value) {
- fun = value;
- }
- });
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- child.set = function (value) {
- data1 = value;
- };
-
- var obj = {};
-
- Object.defineProperties(obj, {
- prop: child
- });
-
- obj.prop = "overrideData";
+var data1 = "data";
+var data2 = "data";
+var fun = function(value) {
+ data2 = value;
+};
+var proto = {};
+Object.defineProperty(proto, "set", {
+ get: function() {
+ return fun;
+ },
+ set: function(value) {
+ fun = value;
+ }
+});
+
+var Con = function() {};
+Con.prototype = proto;
+
+var child = new Con();
+child.set = function(value) {
+ data1 = value;
+};
+
+var obj = {};
+
+Object.defineProperties(obj, {
+ prop: child
+});
+
+obj.prop = "overrideData";
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(data1, "overrideData", 'data1');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-232.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-232.js
index 74230afae..fd72ee008 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-232.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-232.js
@@ -8,24 +8,24 @@ description: >
accessor property (8.10.5 step 8.a)
---*/
- var data = "data";
- var setFun = function (value) {
- data = value;
- };
- var descObj = {};
- Object.defineProperty(descObj, "set", {
- get: function () {
- return setFun;
- }
- });
+var data = "data";
+var setFun = function(value) {
+ data = value;
+};
+var descObj = {};
+Object.defineProperty(descObj, "set", {
+ get: function() {
+ return setFun;
+ }
+});
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- prop: descObj
- });
+Object.defineProperties(obj, {
+ prop: descObj
+});
- obj.prop = "overrideData";
+obj.prop = "overrideData";
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-233.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-233.js
index 613cd5dec..ba3faea40 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-233.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-233.js
@@ -8,27 +8,27 @@ description: >
accessor property (8.10.5 step 8.a)
---*/
- var data = "data";
- var setFun = function (value) {
- data = value;
- };
- var proto = {};
- Object.defineProperty(proto, "set", {
- get: function () {
- return setFun;
- }
- });
+var data = "data";
+var setFun = function(value) {
+ data = value;
+};
+var proto = {};
+Object.defineProperty(proto, "set", {
+ get: function() {
+ return setFun;
+ }
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var child = new Con();
- var obj = {};
+var child = new Con();
+var obj = {};
- Object.defineProperties(obj, {
- prop: child
- });
- obj.prop = "overrideData";
+Object.defineProperties(obj, {
+ prop: child
+});
+obj.prop = "overrideData";
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-234.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-234.js
index 323f7f972..9d6d288b3 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-234.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-234.js
@@ -9,32 +9,32 @@ description: >
(8.10.5 step 8.a)
---*/
- var data1 = "data";
- var data2 = "data";
-
- var proto = {};
- proto.set = function (value) {
- data1 = value;
- };
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- Object.defineProperty(child, "set", {
- get: function () {
- return function (value) {
- data2 = value;
- };
- }
- });
-
- var obj = {};
-
- Object.defineProperties(obj, {
- prop: child
- });
- obj.prop = "overrideData";
+var data1 = "data";
+var data2 = "data";
+
+var proto = {};
+proto.set = function(value) {
+ data1 = value;
+};
+
+var Con = function() {};
+Con.prototype = proto;
+
+var child = new Con();
+Object.defineProperty(child, "set", {
+ get: function() {
+ return function(value) {
+ data2 = value;
+ };
+ }
+});
+
+var obj = {};
+
+Object.defineProperties(obj, {
+ prop: child
+});
+obj.prop = "overrideData";
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(data2, "overrideData", 'data2');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-235.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-235.js
index e98a8856e..72caa7243 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-235.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-235.js
@@ -9,37 +9,37 @@ description: >
(8.10.5 step 8.a)
---*/
- var data1 = "data";
- var data2 = "data";
-
- var proto = {};
- Object.defineProperty(proto, "set", {
- get: function () {
- return function (value) {
- data1 = value;
- };
- }
- });
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- Object.defineProperty(child, "set", {
- get: function () {
- return function (value) {
- data2 = value;
- };
- }
- });
-
- var obj = {};
-
- Object.defineProperties(obj, {
- prop: child
- });
-
- obj.prop = "overrideData";
+var data1 = "data";
+var data2 = "data";
+
+var proto = {};
+Object.defineProperty(proto, "set", {
+ get: function() {
+ return function(value) {
+ data1 = value;
+ };
+ }
+});
+
+var Con = function() {};
+Con.prototype = proto;
+
+var child = new Con();
+Object.defineProperty(child, "set", {
+ get: function() {
+ return function(value) {
+ data2 = value;
+ };
+ }
+});
+
+var obj = {};
+
+Object.defineProperties(obj, {
+ prop: child
+});
+
+obj.prop = "overrideData";
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(data2, "overrideData", 'data2');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-236.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-236.js
index 3c5f3888a..e0632b5e7 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-236.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-236.js
@@ -8,23 +8,23 @@ description: >
accessor property without a get function (8.10.5 step 8.a)
---*/
- var fun = function () {
- return 10;
- };
- var descObj = {
- get: fun
- };
- Object.defineProperty(descObj, "set", {
- set: function () { }
- });
+var fun = function() {
+ return 10;
+};
+var descObj = {
+ get: fun
+};
+Object.defineProperty(descObj, "set", {
+ set: function() {}
+});
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- prop: descObj
- });
+Object.defineProperties(obj, {
+ prop: descObj
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-237.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-237.js
index cd17ab0b9..5ef60526c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-237.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-237.js
@@ -9,36 +9,36 @@ description: >
inherited accessor property (8.10.5 step 8.a)
---*/
- var fun = function () {
- return 10;
- };
- var proto = {};
- Object.defineProperty(proto, "set", {
- get: function () {
- return function () {
- return arguments;
- };
- }
- });
+var fun = function() {
+ return 10;
+};
+var proto = {};
+Object.defineProperty(proto, "set", {
+ get: function() {
+ return function() {
+ return arguments;
+ };
+ }
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var descObj = new Con();
- Object.defineProperty(descObj, "set", {
- set: function () { }
- });
+var descObj = new Con();
+Object.defineProperty(descObj, "set", {
+ set: function() {}
+});
- descObj.get = fun;
+descObj.get = fun;
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- prop: descObj
- });
+Object.defineProperties(obj, {
+ prop: descObj
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
-assert.sameValue(typeof (desc.set), "undefined", 'typeof (desc.set)');
+assert.sameValue(typeof(desc.set), "undefined", 'typeof (desc.set)');
assert.sameValue(obj.prop, 10, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-238.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-238.js
index 044694163..9d10628a1 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-238.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-238.js
@@ -8,28 +8,28 @@ description: >
accessor property without a get function (8.10.5 step 8.a)
---*/
- var fun = function () {
- return 10;
- };
- var proto = {};
- Object.defineProperty(proto, "set", {
- set: function () { }
- });
+var fun = function() {
+ return 10;
+};
+var proto = {};
+Object.defineProperty(proto, "set", {
+ set: function() {}
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var descObj = new Con();
- descObj.get = fun;
+var descObj = new Con();
+descObj.get = fun;
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- prop: descObj
- });
+Object.defineProperties(obj, {
+ prop: descObj
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
-assert.sameValue(typeof (desc.set), "undefined", 'typeof (desc.set)');
+assert.sameValue(typeof(desc.set), "undefined", 'typeof (desc.set)');
assert.sameValue(obj.prop, 10, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-239.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-239.js
index fbdd5fe22..118cc7af0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-239.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-239.js
@@ -9,19 +9,19 @@ description: >
step 8.a)
---*/
- var data = "data";
- var descFun = function () { };
- var setFun = function (value) {
- data = value;
- };
+var data = "data";
+var descFun = function() {};
+var setFun = function(value) {
+ data = value;
+};
- descFun.prop = {
- set: setFun
- };
+descFun.prop = {
+ set: setFun
+};
- var obj = {};
- Object.defineProperties(obj, descFun);
- obj.prop = "funData";
+var obj = {};
+Object.defineProperties(obj, descFun);
+obj.prop = "funData";
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(data, "funData", 'data');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-24.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-24.js
index bab103cc6..9495abc63 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-24.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-24.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Math.enumerable = true;
+Math.enumerable = true;
- Object.defineProperties(obj, {
- prop: Math
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: Math
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-240.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-240.js
index 62895cd66..d1ac8ed46 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-240.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-240.js
@@ -9,18 +9,18 @@ description: >
step 8.a)
---*/
- var data = "data";
- var arr = [];
- var setFun = function (value) {
- data = value;
- };
- arr.prop = {
- set: setFun
- };
+var data = "data";
+var arr = [];
+var setFun = function(value) {
+ data = value;
+};
+arr.prop = {
+ set: setFun
+};
- var obj = {};
- Object.defineProperties(obj, arr);
- obj.prop = "arrData";
+var obj = {};
+Object.defineProperties(obj, arr);
+obj.prop = "arrData";
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(data, "arrData", 'data');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-241.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-241.js
index d8df00083..bc61c54f3 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-241.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-241.js
@@ -9,19 +9,19 @@ description: >
step 8.a)
---*/
- var data = "data";
- var descStr = new String();
- var setFun = function (value) {
- data = value;
- };
+var data = "data";
+var descStr = new String();
+var setFun = function(value) {
+ data = value;
+};
- descStr.prop = {
- set: setFun
- };
+descStr.prop = {
+ set: setFun
+};
- var obj = {};
- Object.defineProperties(obj, descStr);
- obj.prop = "strData";
+var obj = {};
+Object.defineProperties(obj, descStr);
+obj.prop = "strData";
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(data, "strData", 'data');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-242.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-242.js
index 10187cbb8..3e4d4117f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-242.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-242.js
@@ -9,18 +9,18 @@ description: >
step 8.a)
---*/
- var data = "data";
- var descObj = new Boolean(false);
- var setFun = function (value) {
- data = value;
- };
- descObj.prop = {
- set: setFun
- };
+var data = "data";
+var descObj = new Boolean(false);
+var setFun = function(value) {
+ data = value;
+};
+descObj.prop = {
+ set: setFun
+};
- var obj = {};
- Object.defineProperties(obj, descObj);
- obj.prop = "booleanData";
+var obj = {};
+Object.defineProperties(obj, descObj);
+obj.prop = "booleanData";
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(data, "booleanData", 'data');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-243.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-243.js
index 56bc91903..6ef7c239d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-243.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-243.js
@@ -9,18 +9,18 @@ description: >
step 8.a)
---*/
- var data = "data";
- var descObj = new Number(-9);
- var setFun = function (value) {
- data = value;
- };
- descObj.prop = {
- set: setFun
- };
+var data = "data";
+var descObj = new Number(-9);
+var setFun = function(value) {
+ data = value;
+};
+descObj.prop = {
+ set: setFun
+};
- var obj = {};
- Object.defineProperties(obj, descObj);
- obj.prop = "numberData";
+var obj = {};
+Object.defineProperties(obj, descObj);
+obj.prop = "numberData";
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(data, "numberData", 'data');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-244.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-244.js
index 5324d0334..bacb037e6 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-244.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-244.js
@@ -9,18 +9,18 @@ description: >
step 8.a)
---*/
- var data = "data";
- var setFun = function (value) {
- data = value;
- };
+var data = "data";
+var setFun = function(value) {
+ data = value;
+};
- Math.prop = {
- set: setFun
- };
+Math.prop = {
+ set: setFun
+};
- var obj = {};
- Object.defineProperties(obj, Math);
- obj.prop = "mathData";
+var obj = {};
+Object.defineProperties(obj, Math);
+obj.prop = "mathData";
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(data, "mathData", 'data');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-245.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-245.js
index b6c0da717..a8d8f226e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-245.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-245.js
@@ -9,18 +9,18 @@ description: >
step 8.a)
---*/
- var data = "data";
- var descObj = new Date();
- var setFun = function (value) {
- data = value;
- };
- descObj.prop = {
- set: setFun
- };
+var data = "data";
+var descObj = new Date();
+var setFun = function(value) {
+ data = value;
+};
+descObj.prop = {
+ set: setFun
+};
- var obj = {};
- Object.defineProperties(obj, descObj);
- obj.prop = "dateData";
+var obj = {};
+Object.defineProperties(obj, descObj);
+obj.prop = "dateData";
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(data, "dateData", 'data');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-246.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-246.js
index 3e0f737a2..af68740f0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-246.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-246.js
@@ -9,18 +9,18 @@ description: >
step 8.a)
---*/
- var data = "data";
- var descObj = new RegExp();
- var setFun = function (value) {
- data = value;
- };
- descObj.prop = {
- set: setFun
- };
+var data = "data";
+var descObj = new RegExp();
+var setFun = function(value) {
+ data = value;
+};
+descObj.prop = {
+ set: setFun
+};
- var obj = {};
- Object.defineProperties(obj, descObj);
- obj.prop = "regExpData";
+var obj = {};
+Object.defineProperties(obj, descObj);
+obj.prop = "regExpData";
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(data, "regExpData", 'data');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-247.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-247.js
index c0815c7b0..ba64235fb 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-247.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-247.js
@@ -9,18 +9,18 @@ description: >
step 8.a)
---*/
- var data = "data";
- var setFun = function (value) {
- data = value;
- };
+var data = "data";
+var setFun = function(value) {
+ data = value;
+};
- JSON.prop = {
- set: setFun
- };
+JSON.prop = {
+ set: setFun
+};
- var obj = {};
- Object.defineProperties(obj, JSON);
- obj.prop = "JSONData";
+var obj = {};
+Object.defineProperties(obj, JSON);
+obj.prop = "JSONData";
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(data, "JSONData", 'data');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-248.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-248.js
index 20779fb24..62eacf536 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-248.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-248.js
@@ -9,22 +9,28 @@ description: >
step 8.a)
---*/
- var data = "data";
- var descObj = new Error("test");
- descObj.description = { value: 11 };
- descObj.message = { value: 11 };
- descObj.name = { value: 11 };
+var data = "data";
+var descObj = new Error("test");
+descObj.description = {
+ value: 11
+};
+descObj.message = {
+ value: 11
+};
+descObj.name = {
+ value: 11
+};
- var setFun = function (value) {
- data = value;
- };
- descObj.prop = {
- set: setFun
- };
+var setFun = function(value) {
+ data = value;
+};
+descObj.prop = {
+ set: setFun
+};
- var obj = {};
- Object.defineProperties(obj, descObj);
- obj.prop = "errorData";
+var obj = {};
+Object.defineProperties(obj, descObj);
+obj.prop = "errorData";
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(data, "errorData", 'data');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-249.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-249.js
index f09421051..8f4872780 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-249.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-249.js
@@ -9,22 +9,22 @@ description: >
step 8.a)
---*/
- var data = "data";
- var fun = function () {
- return arguments;
- };
- var arg = fun();
- var setFun = function (value) {
- data = value;
- };
+var data = "data";
+var fun = function() {
+ return arguments;
+};
+var arg = fun();
+var setFun = function(value) {
+ data = value;
+};
- arg.prop = {
- set: setFun
- };
+arg.prop = {
+ set: setFun
+};
- var obj = {};
- Object.defineProperties(obj, arg);
- obj.prop = "argData";
+var obj = {};
+Object.defineProperties(obj, arg);
+obj.prop = "argData";
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(data, "argData", 'data');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-25.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-25.js
index 01e17e58b..2492ea6eb 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-25.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-25.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var descObj = new Date();
- var accessed = false;
+var obj = {};
+var descObj = new Date();
+var accessed = false;
- descObj.enumerable = true;
+descObj.enumerable = true;
- Object.defineProperties(obj, {
- prop: descObj
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: descObj
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-252.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-252.js
index 5003f3e48..bfbc5cba0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-252.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-252.js
@@ -8,19 +8,19 @@ description: >
undefined (8.10.5 step 8.b)
---*/
- var getFun = function () {
- return 11;
- };
+var getFun = function() {
+ return 11;
+};
- var obj = {};
- Object.defineProperties(obj, {
- prop: {
- get: getFun,
- set: undefined
- }
- });
+var obj = {};
+Object.defineProperties(obj, {
+ prop: {
+ get: getFun,
+ set: undefined
+ }
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
-assert.sameValue(typeof (desc.set), "undefined", 'typeof (desc.set)');
+assert.sameValue(typeof(desc.set), "undefined", 'typeof (desc.set)');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-253.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-253.js
index e35a948b5..1859b0d61 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-253.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-253.js
@@ -8,11 +8,11 @@ description: >
primitive values null (8.10.5 step 8.b)
---*/
- var obj = {};
+var obj = {};
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- prop: {
- set: null
- }
- });
+ Object.defineProperties(obj, {
+ prop: {
+ set: null
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-254.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-254.js
index 11d390a2b..45c770645 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-254.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-254.js
@@ -8,11 +8,11 @@ description: >
primitive values boolean (8.10.5 step 8.b)
---*/
- var obj = {};
+var obj = {};
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- prop: {
- set: true
- }
- });
+ Object.defineProperties(obj, {
+ prop: {
+ set: true
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-255.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-255.js
index acbcc7ed2..f9854b10a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-255.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-255.js
@@ -8,11 +8,11 @@ description: >
primitive values number (8.10.5 step 8.b)
---*/
- var obj = {};
+var obj = {};
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- prop: {
- set: 100
- }
- });
+ Object.defineProperties(obj, {
+ prop: {
+ set: 100
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-256.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-256.js
index 85e6c6b88..30610bf59 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-256.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-256.js
@@ -8,11 +8,11 @@ description: >
primitive values string (8.10.5 step 8.b)
---*/
- var obj = {};
+var obj = {};
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- prop: {
- set: "abcdef"
- }
- });
+ Object.defineProperties(obj, {
+ prop: {
+ set: "abcdef"
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-257.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-257.js
index 848af0730..716a52957 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-257.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-257.js
@@ -8,11 +8,11 @@ description: >
an interesting object other than a function (8.10.5 step 8.b)
---*/
- var obj = {};
+var obj = {};
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- prop: {
- set: []
- }
- });
+ Object.defineProperties(obj, {
+ prop: {
+ set: []
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-258.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-258.js
index cdf054713..adf18c55d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-258.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-258.js
@@ -8,19 +8,19 @@ description: >
a function (8.10.5 step 8.b)
---*/
- var data = "data";
- var setFun = function (value) {
- data = value;
- };
- var obj = {};
+var data = "data";
+var setFun = function(value) {
+ data = value;
+};
+var obj = {};
- Object.defineProperties(obj, {
- prop: {
- set: setFun
- }
- });
- obj.prop = "funData";
+Object.defineProperties(obj, {
+ prop: {
+ set: setFun
+ }
+});
+obj.prop = "funData";
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(data, "funData", 'data');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-26.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-26.js
index 3b9c9f2a6..48eef7429 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-26.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-26.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var descObj = new RegExp();
- var accessed = false;
+var obj = {};
+var descObj = new RegExp();
+var accessed = false;
- descObj.enumerable = true;
+descObj.enumerable = true;
- Object.defineProperties(obj, {
- prop: descObj
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: descObj
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-261.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-261.js
index f0fed05eb..e1eb3ad6f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-261.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-261.js
@@ -9,13 +9,13 @@ description: >
step 9.a)
---*/
- var setFun = function () {};
- var obj = {};
+var setFun = function() {};
+var obj = {};
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- prop: {
- value: 12,
- set: setFun
- }
- });
+ Object.defineProperties(obj, {
+ prop: {
+ value: 12,
+ set: setFun
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-262.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-262.js
index 5587e1765..5813bf1bf 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-262.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-262.js
@@ -9,13 +9,13 @@ description: >
step 9.a)
---*/
- var setFun = function () { };
- var obj = {};
+var setFun = function() {};
+var obj = {};
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- prop: {
- writable: true,
- set: setFun
- }
- });
+ Object.defineProperties(obj, {
+ prop: {
+ writable: true,
+ set: setFun
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-263.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-263.js
index 1587c5de2..04908eec0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-263.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-263.js
@@ -9,13 +9,13 @@ description: >
step 9.a)
---*/
- var getFun = function () {};
- var obj = {};
+var getFun = function() {};
+var obj = {};
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- prop: {
- value: 12,
- get: getFun
- }
- });
+ Object.defineProperties(obj, {
+ prop: {
+ value: 12,
+ get: getFun
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-264.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-264.js
index 945e4a276..6fdda0cbf 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-264.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-264.js
@@ -9,14 +9,14 @@ description: >
step 9.a)
---*/
- var getFun = function () {};
+var getFun = function() {};
- var obj = {};
+var obj = {};
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- "prop": {
- writable: true,
- get: getFun
- }
- });
+ Object.defineProperties(obj, {
+ "prop": {
+ writable: true,
+ get: getFun
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-27.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-27.js
index 900b3b090..da7fd3915 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-27.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-27.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- JSON.enumerable = true;
+JSON.enumerable = true;
- Object.defineProperties(obj, {
- prop: JSON
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: JSON
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-28.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-28.js
index ab347d29b..855fdb9ee 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-28.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-28.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var descObj = new Error();
- var accessed = false;
+var obj = {};
+var descObj = new Error();
+var accessed = false;
- descObj.enumerable = true;
+descObj.enumerable = true;
- Object.defineProperties(obj, {
- prop: descObj
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: descObj
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-29.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-29.js
index 473f0ef00..a0c0da3e5 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-29.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-29.js
@@ -9,23 +9,23 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var arg;
- var accessed = false;
+var obj = {};
+var arg;
+var accessed = false;
- (function fun() {
- arg = arguments;
- }());
+(function fun() {
+ arg = arguments;
+}());
- arg.enumerable = true;
+arg.enumerable = true;
- Object.defineProperties(obj, {
- prop: arg
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: arg
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-3.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-3.js
index cba662cf5..5a685d85e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-3.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-3.js
@@ -6,10 +6,10 @@ es5id: 15.2.3.7-5-b-3
description: Object.defineProperties - 'descObj' is a boolean (8.10.5 step 1)
---*/
- var obj = {};
+var obj = {};
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- prop: true
- });
+ Object.defineProperties(obj, {
+ prop: true
+ });
});
assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-31.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-31.js
index 6fa274f40..d6b5a3eda 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-31.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-31.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- this.enumerable = true;
+this.enumerable = true;
- Object.defineProperties(obj, {
- prop: this
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: this
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-32.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-32.js
index 4d8a33928..b7056d743 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-32.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-32.js
@@ -8,18 +8,18 @@ description: >
'descObj' is undefined (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: undefined
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: undefined
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-33.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-33.js
index 919b4258e..a1e75b530 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-33.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-33.js
@@ -8,18 +8,18 @@ description: >
'descObj' is null (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: null
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: null
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-34.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-34.js
index 8a8d9568a..d66f3e09e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-34.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-34.js
@@ -8,18 +8,18 @@ description: >
'descObj' is true (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: true
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: true
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-35.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-35.js
index 5ca9aaee0..e4b76b595 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-35.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-35.js
@@ -8,18 +8,18 @@ description: >
'descObj' is false (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: false
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: false
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-36.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-36.js
index b5804ca84..e5714b54d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-36.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-36.js
@@ -8,18 +8,18 @@ description: >
'descObj' is 0 (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: 0
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: 0
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-37.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-37.js
index 4768009aa..b8e53420a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-37.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-37.js
@@ -8,18 +8,18 @@ description: >
'descObj' is +0 (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: +0
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: +0
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-38.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-38.js
index 1429ef412..ce9a34971 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-38.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-38.js
@@ -8,18 +8,18 @@ description: >
'descObj' is -0 (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: -0
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: -0
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-39.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-39.js
index 451a7794d..762fd8ec3 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-39.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-39.js
@@ -8,18 +8,18 @@ description: >
'descObj' is NaN (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: NaN
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: NaN
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-4.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-4.js
index ee430f83c..8c764e415 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-4.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-4.js
@@ -6,10 +6,10 @@ es5id: 15.2.3.7-5-b-4
description: Object.defineProperties - 'descObj' is a number (8.10.5 step 1)
---*/
- var obj = {};
+var obj = {};
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- prop: 12
- });
+ Object.defineProperties(obj, {
+ prop: 12
+ });
});
assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-40.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-40.js
index 9a9c3a557..8e25fa5a7 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-40.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-40.js
@@ -8,18 +8,18 @@ description: >
'descObj' is positive number (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: 12
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: 12
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-41.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-41.js
index f5986377a..798a60df0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-41.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-41.js
@@ -8,18 +8,18 @@ description: >
'descObj' is negative number (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: -9
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: -9
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-42.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-42.js
index b36a0fa72..9a74d14f4 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-42.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-42.js
@@ -8,18 +8,18 @@ description: >
'descObj' is empty string (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: ""
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: ""
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-43.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-43.js
index 7b79f6d81..176abbb6e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-43.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-43.js
@@ -8,18 +8,18 @@ description: >
'descObj' is non-empty string (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: "AB\n\\cd"
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: "AB\n\\cd"
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-44.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-44.js
index d76bdf16d..507b5c814 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-44.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-44.js
@@ -8,18 +8,18 @@ description: >
'descObj' is a Function object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: function () { }
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: function() {}
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-45.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-45.js
index 952f524d0..1195c7e9e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-45.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-45.js
@@ -8,18 +8,18 @@ description: >
'descObj' is an Array object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: []
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: []
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-46.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-46.js
index df7e53b1c..ac8eb96f1 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-46.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-46.js
@@ -8,18 +8,18 @@ description: >
'descObj' is a String object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: new String()
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: new String()
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-47.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-47.js
index fdca287d0..7075fa2fb 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-47.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-47.js
@@ -8,18 +8,18 @@ description: >
'descObj' is a Boolean object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: new Boolean(true)
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: new Boolean(true)
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-48.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-48.js
index a79b3cd31..7c70e64b3 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-48.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-48.js
@@ -8,18 +8,18 @@ description: >
'descObj' is a Number object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: new Number(-9)
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: new Number(-9)
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-49.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-49.js
index cbf2194ed..48c40d9bd 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-49.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-49.js
@@ -8,18 +8,18 @@ description: >
'descObj' is the Math object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: Math
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: Math
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-5.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-5.js
index 27a60e51d..43bbef150 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-5.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-5.js
@@ -6,10 +6,10 @@ es5id: 15.2.3.7-5-b-5
description: Object.defineProperties - 'descObj' is a string (8.10.5 step 1)
---*/
- var obj = {};
+var obj = {};
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- prop: "abc"
- });
+ Object.defineProperties(obj, {
+ prop: "abc"
+ });
});
assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-50.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-50.js
index 0a9d41888..7f99adc4a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-50.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-50.js
@@ -8,18 +8,18 @@ description: >
'descObj' is a Date object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: new Date()
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: new Date()
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-51.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-51.js
index 6ad0a15cd..228b1d019 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-51.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-51.js
@@ -8,18 +8,18 @@ description: >
'descObj' is a RegExp object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: new RegExp()
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: new RegExp()
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-52.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-52.js
index b2c580c1b..49c821968 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-52.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-52.js
@@ -8,18 +8,18 @@ description: >
'descObj' is the JSON object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: JSON
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: JSON
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-53.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-53.js
index 9136dc45d..2914a728b 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-53.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-53.js
@@ -8,18 +8,18 @@ description: >
'descObj' is an Error object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: new Error()
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: new Error()
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-54.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-54.js
index 8ef7474cb..5362f99a7 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-54.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-54.js
@@ -8,23 +8,23 @@ description: >
'descObj' is the Arguments object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
- var arg;
-
- (function fun() {
- arg = arguments;
- }(1, 2, 3));
+var obj = {};
+var accessed = false;
+var arg;
- Object.defineProperties(obj, {
- prop: {
- enumerable: arg
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+(function fun() {
+ arg = arguments;
+}(1, 2, 3));
+
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: arg
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-56.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-56.js
index aae77824a..131d8b40c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-56.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-56.js
@@ -8,18 +8,18 @@ description: >
'descObj' is the global object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: this
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: this
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-57.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-57.js
index 4c796095a..5861410d1 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-57.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-57.js
@@ -9,18 +9,18 @@ description: >
value (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: "false"
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: "false"
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-58.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-58.js
index 7f3278392..0f0171055 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-58.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-58.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: new Boolean(false)
- }
- });
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: new Boolean(false)
+ }
+});
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-59.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-59.js
index cc8495057..864ca29da 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-59.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-59.js
@@ -8,17 +8,17 @@ description: >
present (8.10.5 step 4)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- prop: {
- configurable: true
- }
- });
+Object.defineProperties(obj, {
+ prop: {
+ configurable: true
+ }
+});
- var result1 = obj.hasOwnProperty("prop");
- delete obj.prop;
- var result2 = obj.hasOwnProperty("prop");
+var result1 = obj.hasOwnProperty("prop");
+delete obj.prop;
+var result2 = obj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-6.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-6.js
index 147b520d0..0183f9412 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-6.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-6.js
@@ -8,19 +8,19 @@ description: >
present (8.10.5 step 3)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {
- enumerable: true
- }
- });
+Object.defineProperties(obj, {
+ prop: {
+ enumerable: true
+ }
+});
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-60.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-60.js
index 80c2a5db1..f8bba3918 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-60.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-60.js
@@ -13,7 +13,7 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- prop: {}
+ prop: {}
});
assert(obj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-61.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-61.js
index 3db823b9d..f2fd420cf 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-61.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-61.js
@@ -8,17 +8,17 @@ description: >
own data property (8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- prop: {
- configurable: true
- }
- });
+Object.defineProperties(obj, {
+ prop: {
+ configurable: true
+ }
+});
- var result1 = obj.hasOwnProperty("prop");
- delete obj.prop;
- var result2 = obj.hasOwnProperty("prop");
+var result1 = obj.hasOwnProperty("prop");
+delete obj.prop;
+var result2 = obj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-62.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-62.js
index ba84be285..f21405565 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-62.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-62.js
@@ -8,21 +8,21 @@ description: >
inherited data property (8.10.5 step 4.a)
---*/
- var obj = {};
- var proto = {
- configurable: true
- };
- var Con = function () { };
- Con.prototype = proto;
- var descObj = new Con();
+var obj = {};
+var proto = {
+ configurable: true
+};
+var Con = function() {};
+Con.prototype = proto;
+var descObj = new Con();
- Object.defineProperties(obj, {
- prop: descObj
- });
+Object.defineProperties(obj, {
+ prop: descObj
+});
- var result1 = obj.hasOwnProperty("prop");
- delete obj.prop;
- var result2 = obj.hasOwnProperty("prop");
+var result1 = obj.hasOwnProperty("prop");
+delete obj.prop;
+var result2 = obj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-63.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-63.js
index 2978706b4..a369fcef1 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-63.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-63.js
@@ -13,19 +13,19 @@ includes: [propertyHelper.js]
var obj = {};
var proto = {
- configurable: true
+ configurable: true
};
-var Con = function () { };
+var Con = function() {};
Con.prototype = proto;
var descObj = new Con();
Object.defineProperty(descObj, "configurable", {
- value: false
+ value: false
});
Object.defineProperties(obj, {
- prop: descObj
+ prop: descObj
});
assert(obj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-64.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-64.js
index b5257eddc..f7c555bba 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-64.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-64.js
@@ -14,21 +14,21 @@ includes: [propertyHelper.js]
var obj = {};
var proto = {};
Object.defineProperty(proto, "configurable", {
- get: function () {
- return true;
- }
+ get: function() {
+ return true;
+ }
});
-var Con = function () { };
+var Con = function() {};
Con.prototype = proto;
var descObj = new Con();
Object.defineProperty(descObj, "configurable", {
- value: false
+ value: false
});
Object.defineProperties(obj, {
- prop: descObj
+ prop: descObj
});
assert(obj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-65.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-65.js
index ed481bf7c..cc9a8c9df 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-65.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-65.js
@@ -8,21 +8,21 @@ description: >
own accessor property (8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = {};
- Object.defineProperty(descObj, "configurable", {
- get: function () {
- return true;
- }
- });
+var descObj = {};
+Object.defineProperty(descObj, "configurable", {
+ get: function() {
+ return true;
+ }
+});
- Object.defineProperties(obj, {
- prop: descObj
- });
- var result1 = obj.hasOwnProperty("prop");
- delete obj.prop;
- var result2 = obj.hasOwnProperty("prop");
+Object.defineProperties(obj, {
+ prop: descObj
+});
+var result1 = obj.hasOwnProperty("prop");
+delete obj.prop;
+var result2 = obj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-66.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-66.js
index fe7272240..cca4ddea3 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-66.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-66.js
@@ -8,26 +8,26 @@ description: >
inherited accessor property (8.10.5 step 4.a)
---*/
- var obj = {};
- var proto = {};
+var obj = {};
+var proto = {};
- Object.defineProperty(proto, "configurable", {
- get: function () {
- return true;
- }
- });
+Object.defineProperty(proto, "configurable", {
+ get: function() {
+ return true;
+ }
+});
- var Con = function () { };
- Con.prototype = proto;
- var descObj = new Con();
+var Con = function() {};
+Con.prototype = proto;
+var descObj = new Con();
- Object.defineProperties(obj, {
- prop: descObj
- });
+Object.defineProperties(obj, {
+ prop: descObj
+});
- var result1 = obj.hasOwnProperty("prop");
- delete obj.prop;
- var result2 = obj.hasOwnProperty("prop");
+var result1 = obj.hasOwnProperty("prop");
+delete obj.prop;
+var result2 = obj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-67.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-67.js
index 77278e6cd..2b6557a0a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-67.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-67.js
@@ -13,21 +13,21 @@ includes: [propertyHelper.js]
var obj = {};
var proto = {
- configurable: true
+ configurable: true
};
-var Con = function () { };
+var Con = function() {};
Con.prototype = proto;
var descObj = new Con();
Object.defineProperty(descObj, "configurable", {
- get: function () {
- return false;
- }
+ get: function() {
+ return false;
+ }
});
Object.defineProperties(obj, {
- prop: descObj
+ prop: descObj
});
assert(obj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-68.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-68.js
index 9001883d4..45739752c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-68.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-68.js
@@ -14,23 +14,23 @@ includes: [propertyHelper.js]
var obj = {};
var proto = {};
Object.defineProperty(proto, "configurable", {
- get: function () {
- return true;
- }
+ get: function() {
+ return true;
+ }
});
-var Con = function () { };
+var Con = function() {};
Con.prototype = proto;
var descObj = new Con();
Object.defineProperty(descObj, "configurable", {
- get: function () {
- return false;
- }
+ get: function() {
+ return false;
+ }
});
Object.defineProperties(obj, {
- prop: descObj
+ prop: descObj
});
assert(obj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-69.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-69.js
index 00e4a9820..3b5a9ec03 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-69.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-69.js
@@ -13,11 +13,11 @@ var obj = {};
var descObj = {};
Object.defineProperty(descObj, "configurable", {
- set: function () { }
+ set: function() {}
});
Object.defineProperties(obj, {
- prop: descObj
+ prop: descObj
});
assert(obj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-7.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-7.js
index afbd90c14..f5f2bdc5f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-7.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-7.js
@@ -8,17 +8,17 @@ description: >
not present (8.10.5 step 3)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperties(obj, {
- prop: {}
- });
+Object.defineProperties(obj, {
+ prop: {}
+});
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-70.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-70.js
index 148454b1f..2d12bf1c4 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-70.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-70.js
@@ -14,21 +14,21 @@ includes: [propertyHelper.js]
var obj = {};
var proto = {};
Object.defineProperty(proto, "configurable", {
- get: function () {
- return true;
- }
+ get: function() {
+ return true;
+ }
});
-var Con = function () { };
+var Con = function() {};
Con.prototype = proto;
var descObj = new Con();
Object.defineProperty(descObj, "configurable", {
- set: function () { }
+ set: function() {}
});
Object.defineProperties(obj, {
- prop: descObj
+ prop: descObj
});
assert(obj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-71.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-71.js
index 47b64cb93..58905fa9e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-71.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-71.js
@@ -14,15 +14,15 @@ var obj = {};
var proto = {};
Object.defineProperty(proto, "configurable", {
- set: function () { }
+ set: function() {}
});
-var Con = function () { };
+var Con = function() {};
Con.prototype = proto;
var descObj = new Con();
Object.defineProperties(obj, {
- prop: descObj
+ prop: descObj
});
assert(obj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-72.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-72.js
index ad903b294..35d7545ca 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-72.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-72.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = function () { };
- descObj.configurable = true;
+var descObj = function() {};
+descObj.configurable = true;
- Object.defineProperties(obj, {
- prop: descObj
- });
+Object.defineProperties(obj, {
+ prop: descObj
+});
- var result1 = obj.hasOwnProperty("prop");
- delete obj.prop;
- var result2 = obj.hasOwnProperty("prop");
+var result1 = obj.hasOwnProperty("prop");
+delete obj.prop;
+var result2 = obj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-73.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-73.js
index 3687f4416..923d90277 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-73.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-73.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = [];
- descObj.configurable = true;
+var descObj = [];
+descObj.configurable = true;
- Object.defineProperties(obj, {
- prop: descObj
- });
+Object.defineProperties(obj, {
+ prop: descObj
+});
- var result1 = obj.hasOwnProperty("prop");
- delete obj.prop;
- var result2 = obj.hasOwnProperty("prop");
+var result1 = obj.hasOwnProperty("prop");
+delete obj.prop;
+var result2 = obj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-74.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-74.js
index 03d2e2f88..b891e55f0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-74.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-74.js
@@ -9,17 +9,17 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = new String();
- descObj.configurable = true;
+var descObj = new String();
+descObj.configurable = true;
- Object.defineProperties(obj, {
- prop: descObj
- });
- var result1 = obj.hasOwnProperty("prop");
- delete obj.prop;
- var result2 = obj.hasOwnProperty("prop");
+Object.defineProperties(obj, {
+ prop: descObj
+});
+var result1 = obj.hasOwnProperty("prop");
+delete obj.prop;
+var result2 = obj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-75.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-75.js
index 8b20c3bbf..3052a4e47 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-75.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-75.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = new Boolean(false);
- descObj.configurable = true;
+var descObj = new Boolean(false);
+descObj.configurable = true;
- Object.defineProperties(obj, {
- prop: descObj
- });
+Object.defineProperties(obj, {
+ prop: descObj
+});
- var result1 = obj.hasOwnProperty("prop");
- delete obj.prop;
- var result2 = obj.hasOwnProperty("prop");
+var result1 = obj.hasOwnProperty("prop");
+delete obj.prop;
+var result2 = obj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-76.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-76.js
index 05bd0876a..d158fcb8a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-76.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-76.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = new Number(-9);
- descObj.configurable = true;
+var descObj = new Number(-9);
+descObj.configurable = true;
- Object.defineProperties(obj, {
- prop: descObj
- });
+Object.defineProperties(obj, {
+ prop: descObj
+});
- var result1 = obj.hasOwnProperty("prop");
- delete obj.prop;
- var result2 = obj.hasOwnProperty("prop");
+var result1 = obj.hasOwnProperty("prop");
+delete obj.prop;
+var result2 = obj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-77.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-77.js
index 44f498425..c498f4d9b 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-77.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-77.js
@@ -9,17 +9,17 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- Math.configurable = true;
+Math.configurable = true;
- Object.defineProperties(obj, {
- prop: Math
- });
+Object.defineProperties(obj, {
+ prop: Math
+});
- var result1 = obj.hasOwnProperty("prop");
- delete obj.prop;
- var result2 = obj.hasOwnProperty("prop");
+var result1 = obj.hasOwnProperty("prop");
+delete obj.prop;
+var result2 = obj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-78.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-78.js
index 9b966b7c2..6fe2d9e0b 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-78.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-78.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = new Date();
- descObj.configurable = true;
+var descObj = new Date();
+descObj.configurable = true;
- Object.defineProperties(obj, {
- prop: descObj
- });
+Object.defineProperties(obj, {
+ prop: descObj
+});
- var result1 = obj.hasOwnProperty("prop");
- delete obj.prop;
- var result2 = obj.hasOwnProperty("prop");
+var result1 = obj.hasOwnProperty("prop");
+delete obj.prop;
+var result2 = obj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-79.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-79.js
index 47be8aae9..f7566c1b0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-79.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-79.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = new RegExp();
- descObj.configurable = true;
+var descObj = new RegExp();
+descObj.configurable = true;
- Object.defineProperties(obj, {
- prop: descObj
- });
+Object.defineProperties(obj, {
+ prop: descObj
+});
- var result1 = obj.hasOwnProperty("prop");
- delete obj.prop;
- var result2 = obj.hasOwnProperty("prop");
+var result1 = obj.hasOwnProperty("prop");
+delete obj.prop;
+var result2 = obj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-8.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-8.js
index 3c4d2415f..b5945f326 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-8.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-8.js
@@ -8,19 +8,21 @@ description: >
own data property (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- var descObj = { enumerable: true };
+var descObj = {
+ enumerable: true
+};
- Object.defineProperties(obj, {
- prop: descObj
- });
+Object.defineProperties(obj, {
+ prop: descObj
+});
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-80.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-80.js
index 99ab9c525..6f7747efc 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-80.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-80.js
@@ -9,17 +9,17 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- JSON.configurable = true;
+JSON.configurable = true;
- Object.defineProperties(obj, {
- prop: JSON
- });
+Object.defineProperties(obj, {
+ prop: JSON
+});
- var result1 = obj.hasOwnProperty("prop");
- delete obj.prop;
- var result2 = obj.hasOwnProperty("prop");
+var result1 = obj.hasOwnProperty("prop");
+delete obj.prop;
+var result2 = obj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-81.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-81.js
index 08b5b03fc..848aa0a47 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-81.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-81.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- var descObj = new Error();
- descObj.configurable = true;
+var descObj = new Error();
+descObj.configurable = true;
- Object.defineProperties(obj, {
- prop: descObj
- });
+Object.defineProperties(obj, {
+ prop: descObj
+});
- var result1 = obj.hasOwnProperty("prop");
- delete obj.prop;
- var result2 = obj.hasOwnProperty("prop");
+var result1 = obj.hasOwnProperty("prop");
+delete obj.prop;
+var result2 = obj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-82.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-82.js
index eea14bf01..21acc1eec 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-82.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-82.js
@@ -9,22 +9,22 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- var arg;
- (function fun() {
- arg = arguments;
- }());
+var arg;
+(function fun() {
+ arg = arguments;
+}());
- arg.configurable = true;
+arg.configurable = true;
- Object.defineProperties(obj, {
- prop: arg
- });
+Object.defineProperties(obj, {
+ prop: arg
+});
- var result1 = obj.hasOwnProperty("prop");
- delete obj.prop;
- var result2 = obj.hasOwnProperty("prop");
+var result1 = obj.hasOwnProperty("prop");
+delete obj.prop;
+var result2 = obj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-84.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-84.js
index a662240fe..818aa68c7 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-84.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-84.js
@@ -9,17 +9,17 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- this.configurable = true;
+this.configurable = true;
- Object.defineProperties(obj, {
- prop: this
- });
+Object.defineProperties(obj, {
+ prop: this
+});
- var result1 = obj.hasOwnProperty("prop");
- delete obj.prop;
- var result2 = obj.hasOwnProperty("prop");
+var result1 = obj.hasOwnProperty("prop");
+delete obj.prop;
+var result2 = obj.hasOwnProperty("prop");
assert.sameValue(result1, true, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-85.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-85.js
index 5e1dada7b..7a474b608 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-85.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-85.js
@@ -12,9 +12,9 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- property: {
- configurable: undefined
- }
+ property: {
+ configurable: undefined
+ }
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-86.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-86.js
index c183338e0..29ba52b31 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-86.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-86.js
@@ -12,9 +12,9 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- property: {
- configurable: null
- }
+ property: {
+ configurable: null
+ }
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-87.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-87.js
index 968960c5e..b60113a8e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-87.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-87.js
@@ -8,17 +8,17 @@ description: >
'descObj' is true (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- configurable: true
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ configurable: true
+ }
+});
- var hadOwnProperty = obj.hasOwnProperty("property");
+var hadOwnProperty = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")');
assert(hadOwnProperty, 'hadOwnProperty !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-88.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-88.js
index a0a3e9f9f..e6517a31e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-88.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-88.js
@@ -12,9 +12,9 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- property: {
- configurable: false
- }
+ property: {
+ configurable: false
+ }
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-89.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-89.js
index 7a6bf9f15..e4641b79f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-89.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-89.js
@@ -12,9 +12,9 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- property: {
- configurable: 0
- }
+ property: {
+ configurable: 0
+ }
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-9.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-9.js
index 7aa7a3ace..c05d12bd6 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-9.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-9.js
@@ -8,24 +8,24 @@ description: >
inherited data property (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- var proto = {
- enumerable: true
- };
- var Con = function () { };
- Con.prototype = proto;
- var descObj = new Con();
+var proto = {
+ enumerable: true
+};
+var Con = function() {};
+Con.prototype = proto;
+var descObj = new Con();
- Object.defineProperties(obj, {
- prop: descObj
- });
+Object.defineProperties(obj, {
+ prop: descObj
+});
- for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
- }
+for (var property in obj) {
+ if (property === "prop") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-90.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-90.js
index 29c4381b0..0a79e7870 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-90.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-90.js
@@ -12,9 +12,9 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- property: {
- configurable: +0
- }
+ property: {
+ configurable: +0
+ }
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-91.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-91.js
index ee8de8ca5..d7eedac45 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-91.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-91.js
@@ -12,9 +12,9 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- property: {
- configurable: -0
- }
+ property: {
+ configurable: -0
+ }
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-92.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-92.js
index 740063a78..bba7b7065 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-92.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-92.js
@@ -12,9 +12,9 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- property: {
- configurable: NaN
- }
+ property: {
+ configurable: NaN
+ }
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-93.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-93.js
index 7eeee70d4..5e611f0af 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-93.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-93.js
@@ -8,17 +8,17 @@ description: >
'descObj' is positive number (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- configurable: 123
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ configurable: 123
+ }
+});
- var hadOwnProperty = obj.hasOwnProperty("property");
+var hadOwnProperty = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")');
assert(hadOwnProperty, 'hadOwnProperty !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-94.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-94.js
index 384aaca35..5fe27e730 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-94.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-94.js
@@ -8,17 +8,17 @@ description: >
'descObj' is negative number (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- configurable: -123
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ configurable: -123
+ }
+});
- var hadOwnProperty = obj.hasOwnProperty("property");
+var hadOwnProperty = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")');
assert(hadOwnProperty, 'hadOwnProperty !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-95.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-95.js
index 484c74cef..1afd1a598 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-95.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-95.js
@@ -12,9 +12,9 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- property: {
- configurable: ""
- }
+ property: {
+ configurable: ""
+ }
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-96.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-96.js
index 991dbb9d8..8b3d12915 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-96.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-96.js
@@ -8,17 +8,17 @@ description: >
'descObj' is non-empty string (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- configurable: "abc"
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ configurable: "abc"
+ }
+});
- var hadOwnProperty = obj.hasOwnProperty("property");
+var hadOwnProperty = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")');
assert(hadOwnProperty, 'hadOwnProperty !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-97.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-97.js
index 1a96f98e6..ccda98869 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-97.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-97.js
@@ -8,17 +8,17 @@ description: >
'descObj' is Function object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- configurable: function () { }
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ configurable: function() {}
+ }
+});
- var hadOwnProperty = obj.hasOwnProperty("property");
+var hadOwnProperty = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")');
assert(hadOwnProperty, 'hadOwnProperty !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-98.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-98.js
index 63ccc0d77..87e2578e3 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-98.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-98.js
@@ -8,17 +8,17 @@ description: >
'descObj' is Array object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- configurable: [1, 2, 3]
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ configurable: [1, 2, 3]
+ }
+});
- var hadOwnProperty = obj.hasOwnProperty("property");
+var hadOwnProperty = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")');
assert(hadOwnProperty, 'hadOwnProperty !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-99.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-99.js
index 105d97478..836db8a7d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-99.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-99.js
@@ -8,17 +8,17 @@ description: >
'descObj' is String object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- property: {
- configurable: new String("abc")
- }
- });
+Object.defineProperties(obj, {
+ property: {
+ configurable: new String("abc")
+ }
+});
- var hadOwnProperty = obj.hasOwnProperty("property");
+var hadOwnProperty = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")');
assert(hadOwnProperty, 'hadOwnProperty !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-1.js
index e282f5607..6cb3dfbdb 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-1.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-1.js
@@ -8,16 +8,16 @@ description: >
(8.12.9 step 1 )
---*/
- var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 11,
- configurable: false
- });
+var obj = {};
+Object.defineProperty(obj, "prop", {
+ value: 11,
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- prop: {
- value: 12,
- configurable: true
- }
- });
+ Object.defineProperties(obj, {
+ prop: {
+ value: 12,
+ configurable: true
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-10.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-10.js
index ed64214cf..c51406543 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-10.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-10.js
@@ -9,27 +9,27 @@ description: >
step 1 )
---*/
- var proto = {};
- Object.defineProperty(proto, "prop", {
- get: function () {
- return 11;
- },
- set: function () { },
- configurable: true
- });
- var Con = function () { };
- Con.prototype = proto;
+var proto = {};
+Object.defineProperty(proto, "prop", {
+ get: function() {
+ return 11;
+ },
+ set: function() {},
+ configurable: true
+});
+var Con = function() {};
+Con.prototype = proto;
- var obj = new Con();
- Object.defineProperty(obj, "prop", {
- set: function () { },
- configurable: false
- });
+var obj = new Con();
+Object.defineProperty(obj, "prop", {
+ set: function() {},
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- prop: {
- value: 12,
- configurable: true
- }
- });
+ Object.defineProperties(obj, {
+ prop: {
+ value: 12,
+ configurable: true
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-100.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-100.js
index 2b9e962db..550966238 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-100.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-100.js
@@ -12,18 +12,18 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: 100,
- writable: true,
- configurable: true
+Object.defineProperty(obj, "foo", {
+ value: 100,
+ writable: true,
+ configurable: true
});
Object.defineProperties(obj, {
- foo: {
- value: 200,
- writable: false,
- configurable: false
- }
+ foo: {
+ value: 200,
+ writable: false,
+ configurable: false
+ }
});
verifyEqualTo(obj, "foo", 200);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-101.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-101.js
index 3dc962b7d..78710b6c1 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-101.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-101.js
@@ -14,27 +14,28 @@ includes: [propertyHelper.js]
var obj = {};
function get_func() {
- return 10;
+ return 10;
}
+
function set_func(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperty(obj, "foo", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
});
function get_func2() {
- return 20;
+ return 20;
}
Object.defineProperties(obj, {
- foo: {
- get: get_func2
- }
+ foo: {
+ get: get_func2
+ }
});
verifyEqualTo(obj, "foo", get_func2());
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-102.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-102.js
index 6380660b8..b1a52361c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-102.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-102.js
@@ -13,23 +13,24 @@ includes: [propertyHelper.js]
var obj = {};
function get_func() {
- return 10;
+ return 10;
}
+
function set_func(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperty(obj, "foo", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
});
Object.defineProperties(obj, {
- foo: {
- get: undefined
- }
+ foo: {
+ get: undefined
+ }
});
verifyWritable(obj, "foo", "setVerifyHelpProp");
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-103.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-103.js
index bc9eb4e89..7636e1ed3 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-103.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-103.js
@@ -13,24 +13,24 @@ includes: [propertyHelper.js]
var obj = {};
function set_func(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperty(obj, "foo", {
- get: undefined,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: undefined,
+ set: set_func,
+ enumerable: true,
+ configurable: true
});
function get_func() {
- return 10;
+ return 10;
}
Object.defineProperties(obj, {
- foo: {
- get: get_func
- }
+ foo: {
+ get: get_func
+ }
});
verifyEqualTo(obj, "foo", get_func());
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-104.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-104.js
index 1492ad4ab..ee6c4afaf 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-104.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-104.js
@@ -14,28 +14,28 @@ includes: [propertyHelper.js]
var obj = {};
function get_func() {
- return 10;
+ return 10;
}
function set_func() {
- return 10;
+ return 10;
}
Object.defineProperty(obj, "foo", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
});
function set_func2(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperties(obj, {
- foo: {
- set: set_func2
- }
+ foo: {
+ set: set_func2
+ }
});
verifyEqualTo(obj, "foo", get_func());
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-105.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-105.js
index 54713ca36..334206b66 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-105.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-105.js
@@ -8,45 +8,47 @@ description: >
present and properties.[[Set]] is undefined (8.12.9 step 12)
---*/
- var obj = {};
- function get_func() {
- return 10;
- }
- function set_func() {
- return 10;
- }
-
- Object.defineProperty(obj, "property", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
- });
-
- Object.defineProperties(obj, {
- property: {
- set: undefined
- }
- });
-
- var hasProperty = obj.hasOwnProperty("property");
- var verifyGet = false;
- verifyGet = (obj.property === 10);
-
- var verifySet = false;
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
- verifySet = (typeof desc.set === 'undefined');
-
- var verifyEnumerable = false;
- for (var p in obj) {
- if (p === "property") {
- verifyEnumerable = true;
- }
- }
-
- var verifyConfigurable = false;
- delete obj.property;
- verifyConfigurable = obj.hasOwnProperty("property");
+var obj = {};
+
+function get_func() {
+ return 10;
+}
+
+function set_func() {
+ return 10;
+}
+
+Object.defineProperty(obj, "property", {
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
+});
+
+Object.defineProperties(obj, {
+ property: {
+ set: undefined
+ }
+});
+
+var hasProperty = obj.hasOwnProperty("property");
+var verifyGet = false;
+verifyGet = (obj.property === 10);
+
+var verifySet = false;
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
+verifySet = (typeof desc.set === 'undefined');
+
+var verifyEnumerable = false;
+for (var p in obj) {
+ if (p === "property") {
+ verifyEnumerable = true;
+ }
+}
+
+var verifyConfigurable = false;
+delete obj.property;
+verifyConfigurable = obj.hasOwnProperty("property");
assert(hasProperty, 'hasProperty !== true');
assert(verifyGet, 'verifyGet !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-106.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-106.js
index 325c9d5ed..7f7efb05a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-106.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-106.js
@@ -13,24 +13,24 @@ includes: [propertyHelper.js]
var obj = {};
function get_func() {
- return 10;
+ return 10;
}
Object.defineProperty(obj, "foo", {
- get: get_func,
- set: undefined,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: undefined,
+ enumerable: true,
+ configurable: true
});
function set_func(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperties(obj, {
- foo: {
- set: set_func
- }
+ foo: {
+ set: set_func
+ }
});
verifyEqualTo(obj, "foo", get_func());
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-107.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-107.js
index e87e8bbe0..36387ff35 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-107.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-107.js
@@ -13,23 +13,24 @@ includes: [propertyHelper.js]
var obj = {};
function get_func() {
- return 10;
+ return 10;
}
+
function set_func(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperty(obj, "foo", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
});
Object.defineProperties(obj, {
- foo: {
- enumerable: false
- }
+ foo: {
+ enumerable: false
+ }
});
verifyEqualTo(obj, "foo", get_func());
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-108.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-108.js
index a848f6f98..5f19489b0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-108.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-108.js
@@ -13,23 +13,24 @@ includes: [propertyHelper.js]
var obj = {};
function get_func() {
- return 10;
+ return 10;
}
+
function set_func(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperty(obj, "foo", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
});
Object.defineProperties(obj, {
- foo: {
- configurable: false
- }
+ foo: {
+ configurable: false
+ }
});
verifyEqualTo(obj, "foo", get_func());
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-109.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-109.js
index 73cafcb44..1eb1ff342 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-109.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-109.js
@@ -14,29 +14,31 @@ includes: [propertyHelper.js]
var obj = {};
function get_func1() {
- return 10;
+ return 10;
}
-function set_func1() { }
+
+function set_func1() {}
Object.defineProperty(obj, "foo", {
- get: get_func1,
- set: set_func1,
- configurable: true
+ get: get_func1,
+ set: set_func1,
+ configurable: true
});
function get_func2() {
- return 20;
+ return 20;
}
+
function set_func2(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperties(obj, {
- foo: {
- get: get_func2,
- set: set_func2,
- configurable: false
- }
+ foo: {
+ get: get_func2,
+ set: set_func2,
+ configurable: false
+ }
});
verifyEqualTo(obj, "foo", get_func2());
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-11.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-11.js
index 2909b6d86..fc8f60d3a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-11.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-11.js
@@ -8,24 +8,24 @@ description: >
without a get function (8.12.9 step 1 )
---*/
- var proto = {};
- Object.defineProperty(proto, "prop", {
- set: function () { },
- configurable: false
- });
- var Con = function () { };
- Con.prototype = proto;
+var proto = {};
+Object.defineProperty(proto, "prop", {
+ set: function() {},
+ configurable: false
+});
+var Con = function() {};
+Con.prototype = proto;
- var obj = new Con();
+var obj = new Con();
- Object.defineProperties(obj, {
- prop: {
- get: function () {
- return 12;
- },
- configurable: true
- }
- });
+Object.defineProperties(obj, {
+ prop: {
+ get: function() {
+ return 12;
+ },
+ configurable: true
+ }
+});
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, 12, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-110.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-110.js
index 2d6dd716a..70616a1a9 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-110.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-110.js
@@ -13,25 +13,26 @@ includes: [propertyHelper.js]
var obj = {};
function get_func() {
- return 10;
+ return 10;
}
+
function set_func(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
var properties = {
- foo1: {
- value: 200,
- enumerable: true,
- writable: true,
- configurable: true
- },
- foo2: {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
- }
+ foo1: {
+ value: 200,
+ enumerable: true,
+ writable: true,
+ configurable: true
+ },
+ foo2: {
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
+ }
};
Object.defineProperties(obj, properties);
@@ -49,4 +50,3 @@ verifyWritable(obj, "foo2", "setVerifyHelpProp");
verifyEnumerable(obj, "foo2");
verifyConfigurable(obj, "foo2");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-111.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-111.js
index 41a28895a..6f25f5041 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-111.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-111.js
@@ -6,36 +6,36 @@ es5id: 15.2.3.7-6-a-111
description: Object.defineProperties - each properties are in list order
---*/
- var obj = {};
+var obj = {};
- function get_func() {
- return 20;
- }
+function get_func() {
+ return 20;
+}
- function set_func() { }
+function set_func() {}
- var properties = {
- a: {
- value: 100,
- enumerable: true,
- writable: true,
- configurable: true
- },
- b: {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
- },
- c: {
- value: 200,
- enumerable: true,
- writable: true,
- configurable: true
- }
- };
+var properties = {
+ a: {
+ value: 100,
+ enumerable: true,
+ writable: true,
+ configurable: true
+ },
+ b: {
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
+ },
+ c: {
+ value: 200,
+ enumerable: true,
+ writable: true,
+ configurable: true
+ }
+};
- Object.defineProperties(obj, properties);
+Object.defineProperties(obj, properties);
assert.sameValue(obj["a"], 100, 'obj["a"]');
assert.sameValue(obj["b"], 20, 'obj["b"]');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-112.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-112.js
index e22b9a9ea..04e0961d8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-112.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-112.js
@@ -8,17 +8,19 @@ description: >
property of 'O' is own data property (15.4.5.1 step 1)
---*/
- var arr = [0, 1];
- Object.defineProperty(arr, "1", {
- value: 1,
- configurable: false
- });
+var arr = [0, 1];
+Object.defineProperty(arr, "1", {
+ value: 1,
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperties(arr, {
- length: { value: 1 }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: 1
+ }
+ });
});
- var desc = Object.getOwnPropertyDescriptor(arr, "length");
+var desc = Object.getOwnPropertyDescriptor(arr, "length");
assert.sameValue(desc.value, 2, 'desc.value');
assert(desc.writable, 'desc.writable !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-113.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-113.js
index e9286e341..108151ec2 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-113.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-113.js
@@ -9,20 +9,22 @@ description: >
data property (15.4.5.1 step 1)
---*/
- var arrProtoLen;
- var arr = [0, 1, 2];
+var arrProtoLen;
+var arr = [0, 1, 2];
assert.throws(TypeError, function() {
- arrProtoLen = Array.prototype.length;
- Array.prototype.length = 0;
+ arrProtoLen = Array.prototype.length;
+ Array.prototype.length = 0;
- Object.defineProperty(arr, "2", {
- configurable: false
- });
+ Object.defineProperty(arr, "2", {
+ configurable: false
+ });
- Object.defineProperties(arr, {
- length: { value: 1 }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: 1
+ }
+ });
});
var desc = Object.getOwnPropertyDescriptor(arr, "length");
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114-b.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114-b.js
index e89046cad..3d5a76ff0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114-b.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114-b.js
@@ -12,10 +12,12 @@ includes: [propertyHelper.js]
var arr = [];
-Object.defineProperties(arr, { length: {} });
+Object.defineProperties(arr, {
+ length: {}
+});
if (arr.length !== 0) {
- $ERROR("Expected arr.length to be 0, actually " + arr.length);
+ $ERROR("Expected arr.length to be 0, actually " + arr.length);
}
verifyEqualTo(arr, "length", 0);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114.js
index 33e474f2f..f696eab09 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114.js
@@ -12,10 +12,12 @@ includes: [propertyHelper.js]
var arr = [];
-Object.defineProperties(arr, { length: {} });
+Object.defineProperties(arr, {
+ length: {}
+});
if (arr.length !== 0) {
- $ERROR("Expected arr.length to be 0, actually " + arr.length);
+ $ERROR("Expected arr.length to be 0, actually " + arr.length);
}
arr.length = 2;
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-115.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-115.js
index 75bde091c..e5b536727 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-115.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-115.js
@@ -14,11 +14,11 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperties(arr, {
- length: {
- writable: true,
- enumerable: false,
- configurable: false
- }
+ length: {
+ writable: true,
+ enumerable: false,
+ configurable: false
+ }
});
assert.sameValue(arr.length, 0);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-116.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-116.js
index 4c300f6d7..8a9aeec7b 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-116.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-116.js
@@ -10,9 +10,11 @@ description: >
of the length property from false to true (15.4.5.1 step 3.a.i)
---*/
- var arr = [];
+var arr = [];
assert.throws(TypeError, function() {
- Object.defineProperties(arr, {
- length: { configurable: true }
- });
+ Object.defineProperties(arr, {
+ length: {
+ configurable: true
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-117.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-117.js
index ab0fecce7..2af457048 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-117.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-117.js
@@ -10,9 +10,11 @@ description: >
the length property from false to true (15.4.5.1 step 3.a.i)
---*/
- var arr = [];
+var arr = [];
assert.throws(TypeError, function() {
- Object.defineProperties(arr, {
- length: { enumerable: true }
- });
+ Object.defineProperties(arr, {
+ length: {
+ enumerable: true
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-118.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-118.js
index 95ab99ed5..7276c22bc 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-118.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-118.js
@@ -10,14 +10,14 @@ description: >
step 3.a.i)
---*/
- var arr = [];
+var arr = [];
assert.throws(TypeError, function() {
- Object.defineProperties(arr, {
- length: {
- get: function () {
- return 2;
- }
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ get: function() {
+ return 2;
+ }
+ }
+ });
});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-119.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-119.js
index e249d698a..8e50d51d0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-119.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-119.js
@@ -10,13 +10,15 @@ description: >
the length property from false to true (15.4.5.1 step 3.a.i)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperty(arr, "length", {
- writable: false
- });
+Object.defineProperty(arr, "length", {
+ writable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperties(arr, {
- length: { writable: true }
- });
+ Object.defineProperties(arr, {
+ length: {
+ writable: true
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-12.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-12.js
index c6c089f33..62e92a46b 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-12.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-12.js
@@ -10,32 +10,32 @@ description: >
includes: [propertyHelper.js]
---*/
-var fun = function () { };
+var fun = function() {};
Object.defineProperty(fun, "prop", {
- value: 11,
- configurable: false
+ value: 11,
+ configurable: false
});
try {
- Object.defineProperties(fun, {
- prop: {
- value: 12,
- configurable: true
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(fun, {
+ prop: {
+ value: 12,
+ configurable: true
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(fun, "prop", 11);
+ verifyEqualTo(fun, "prop", 11);
- verifyNotWritable(fun, "prop");
+ verifyNotWritable(fun, "prop");
- verifyNotEnumerable(fun, "prop");
+ verifyNotEnumerable(fun, "prop");
- verifyNotConfigurable(fun, "prop");
+ verifyNotConfigurable(fun, "prop");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-120.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-120.js
index f5d279022..6c5edbb40 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-120.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-120.js
@@ -14,7 +14,9 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperties(arr, {
- length: { writable: false }
+ length: {
+ writable: false
+ }
});
verifyEqualTo(arr, "length", 0);
@@ -24,4 +26,3 @@ verifyNotWritable(arr, "length");
verifyNotEnumerable(arr, "length");
verifyNotConfigurable(arr, "length");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-121.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-121.js
index 2c62ae0e9..0ddd7d8ac 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-121.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-121.js
@@ -9,10 +9,12 @@ description: >
[[Value]] field of 'desc' to undefined (15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
assert.throws(RangeError, function() {
- Object.defineProperties(arr, {
- length: { value: undefined }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: undefined
+ }
+ });
});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-122.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-122.js
index ff7a58b01..537afaa85 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-122.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-122.js
@@ -9,10 +9,12 @@ description: >
null actuall is set to 0 (15.4.5.1 step 3.c)
---*/
- var arr = [0, 1];
+var arr = [0, 1];
- Object.defineProperties(arr, {
- length: { value: null }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: null
+ }
+});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-123.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-123.js
index f91cf3bb3..1ac2b4e76 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-123.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-123.js
@@ -9,10 +9,12 @@ description: >
with value false (15.4.5.1 step 3.c)
---*/
- var arr = [0, 1];
+var arr = [0, 1];
- Object.defineProperties(arr, {
- length: { value: false }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: false
+ }
+});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-124.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-124.js
index 50abc6041..dc155dba6 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-124.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-124.js
@@ -9,10 +9,12 @@ description: >
with value true (15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperties(arr, {
- length: { value: true }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: true
+ }
+});
assert.sameValue(arr.length, 1, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-125.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-125.js
index d3f8838af..20c7a54b7 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-125.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-125.js
@@ -9,10 +9,12 @@ description: >
step 3.c)
---*/
- var arr = [0, 1];
+var arr = [0, 1];
- Object.defineProperties(arr, {
- length: { value: 0 }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: 0
+ }
+});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-126.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-126.js
index a6d959af0..cd96fbb77 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-126.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-126.js
@@ -9,10 +9,12 @@ description: >
(15.4.5.1 step 3.c)
---*/
- var arr = [0, 1];
+var arr = [0, 1];
- Object.defineProperties(arr, {
- length: { value: +0 }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: +0
+ }
+});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-127.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-127.js
index 23a8af3c3..153b3e836 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-127.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-127.js
@@ -9,10 +9,12 @@ description: >
(15.4.5.1 step 3.c)
---*/
- var arr = [0, 1];
+var arr = [0, 1];
- Object.defineProperties(arr, {
- length: { value: -0 }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: -0
+ }
+});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-128.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-128.js
index 23a5a1f6e..ccf5343c8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-128.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-128.js
@@ -9,10 +9,12 @@ description: >
number (15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperties(arr, {
- length: { value: 12 }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: 12
+ }
+});
assert.sameValue(arr.length, 12, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-129.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-129.js
index e432de73f..b1b51dd59 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-129.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-129.js
@@ -9,12 +9,12 @@ description: >
number (15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
assert.throws(RangeError, function() {
- Object.defineProperties(arr, {
- length: {
- value: -9
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: -9
+ }
+ });
});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-13.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-13.js
index 072e438a7..ea15dcbf4 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-13.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-13.js
@@ -12,29 +12,29 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "prop", {
- value: 11,
- configurable: false
+ value: 11,
+ configurable: false
});
try {
- Object.defineProperties(arr, {
- prop: {
- value: 12,
- configurable: true
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arr, {
+ prop: {
+ value: 12,
+ configurable: true
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arr, "prop", 11);
+ verifyEqualTo(arr, "prop", 11);
- verifyNotWritable(arr, "prop");
+ verifyNotWritable(arr, "prop");
- verifyNotEnumerable(arr, "prop");
+ verifyNotEnumerable(arr, "prop");
- verifyNotConfigurable(arr, "prop");
+ verifyNotConfigurable(arr, "prop");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-130.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-130.js
index ff246ba32..c1323e470 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-130.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-130.js
@@ -9,12 +9,12 @@ description: >
(15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
assert.throws(RangeError, function() {
- Object.defineProperties(arr, {
- length: {
- value: +Infinity
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: +Infinity
+ }
+ });
});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-131.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-131.js
index ada55d4a5..4e8941b57 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-131.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-131.js
@@ -9,12 +9,12 @@ description: >
(15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
assert.throws(RangeError, function() {
- Object.defineProperties(arr, {
- length: {
- value: -Infinity
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: -Infinity
+ }
+ });
});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-132.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-132.js
index 16015d3bb..456ca93d3 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-132.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-132.js
@@ -9,12 +9,12 @@ description: >
(15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
assert.throws(RangeError, function() {
- Object.defineProperties(arr, {
- length: {
- value: NaN
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: NaN
+ }
+ });
});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-133.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-133.js
index c5c56bf55..a6dc04cf2 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-133.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-133.js
@@ -9,12 +9,12 @@ description: >
containing a positive number (15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperties(arr, {
- length: {
- value: "2"
- }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: "2"
+ }
+});
assert.sameValue(arr.length, 2, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-134.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-134.js
index c9b787f8d..7ff543c69 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-134.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-134.js
@@ -9,12 +9,12 @@ description: >
containing a negative number (15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
assert.throws(RangeError, function() {
- Object.defineProperties(arr, {
- length: {
- value: "-42"
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: "-42"
+ }
+ });
});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-135.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-135.js
index 5f9b707fd..87d7bf692 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-135.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-135.js
@@ -9,12 +9,12 @@ description: >
containing a decimal number (15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
assert.throws(RangeError, function() {
- Object.defineProperties(arr, {
- length: {
- value: "200.59"
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: "200.59"
+ }
+ });
});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-136.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-136.js
index 1613213e8..2654f5126 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-136.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-136.js
@@ -9,12 +9,12 @@ description: >
containing +Infinity (15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
assert.throws(RangeError, function() {
- Object.defineProperties(arr, {
- length: {
- value: "+Infinity"
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: "+Infinity"
+ }
+ });
});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-137.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-137.js
index ebc116b2d..ac8e062b8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-137.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-137.js
@@ -9,12 +9,12 @@ description: >
containing -Infinity (15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
assert.throws(RangeError, function() {
- Object.defineProperties(arr, {
- length: {
- value: "-Infinity"
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: "-Infinity"
+ }
+ });
});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-138.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-138.js
index 26485cc64..c3e14cc13 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-138.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-138.js
@@ -9,12 +9,12 @@ description: >
containing an exponential number (15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperties(arr, {
- length: {
- value: "2E3"
- }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: "2E3"
+ }
+});
assert.sameValue(arr.length, 2E3, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-139.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-139.js
index 1239e6adf..60f77a8d1 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-139.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-139.js
@@ -9,12 +9,12 @@ description: >
containing an hex number (15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperties(arr, {
- length: {
- value: "0x00B"
- }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: "0x00B"
+ }
+});
assert.sameValue(arr.length, 0x00B, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-14.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-14.js
index fe0134274..a07faad54 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-14.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-14.js
@@ -12,29 +12,29 @@ includes: [propertyHelper.js]
var str = new String();
Object.defineProperty(str, "prop", {
- value: 11,
- configurable: false
+ value: 11,
+ configurable: false
});
try {
- Object.defineProperties(str, {
- prop: {
- value: 12,
- configurable: true
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(str, {
+ prop: {
+ value: 12,
+ configurable: true
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(str, "prop", 11);
+ verifyEqualTo(str, "prop", 11);
- verifyNotWritable(str, "prop");
+ verifyNotWritable(str, "prop");
- verifyNotEnumerable(str, "prop");
+ verifyNotEnumerable(str, "prop");
- verifyNotConfigurable(str, "prop");
+ verifyNotConfigurable(str, "prop");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-140.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-140.js
index ba7093b93..81bb4fec3 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-140.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-140.js
@@ -9,12 +9,12 @@ description: >
containing an leading zero number (15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperties(arr, {
- length: {
- value: "0002.0"
- }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: "0002.0"
+ }
+});
assert.sameValue(arr.length, 2, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-141.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-141.js
index ae2debbf9..d65aac4f4 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-141.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-141.js
@@ -9,12 +9,12 @@ description: >
which doesn't convert to a number (15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
assert.throws(RangeError, function() {
- Object.defineProperties(arr, {
- length: {
- value: "two"
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: "two"
+ }
+ });
});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-142.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-142.js
index be1c55b0b..274003360 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-142.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-142.js
@@ -9,16 +9,16 @@ description: >
which has an own toString method (15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperties(arr, {
- length: {
- value: {
- toString: function () {
- return '2';
- }
- }
- }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: {
+ toString: function() {
+ return '2';
+ }
+ }
+ }
+});
assert.sameValue(arr.length, 2, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-143.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-143.js
index 0e13bf117..b159518ae 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-143.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-143.js
@@ -9,16 +9,16 @@ description: >
which has an own valueOf method (15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperties(arr, {
- length: {
- value: {
- valueOf: function () {
- return 2;
- }
- }
- }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: {
+ valueOf: function() {
+ return 2;
+ }
+ }
+ }
+});
assert.sameValue(arr.length, 2, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-144.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-144.js
index d724d2d0f..92cf90034 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-144.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-144.js
@@ -10,25 +10,25 @@ description: >
toString method that returns a string (15.4.5.1 step 3.c)
---*/
- var arr = [];
- var toStringAccessed = false;
- var valueOfAccessed = false;
+var arr = [];
+var toStringAccessed = false;
+var valueOfAccessed = false;
- Object.defineProperties(arr, {
- length: {
- value: {
- toString: function () {
- toStringAccessed = true;
- return '2';
- },
+Object.defineProperties(arr, {
+ length: {
+ value: {
+ toString: function() {
+ toStringAccessed = true;
+ return '2';
+ },
- valueOf: function () {
- valueOfAccessed = true;
- return {};
- }
- }
- }
- });
+ valueOf: function() {
+ valueOfAccessed = true;
+ return {};
+ }
+ }
+ }
+});
assert.sameValue(arr.length, 2, 'arr.length');
assert(toStringAccessed, 'toStringAccessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-145.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-145.js
index d63b5611a..bfaa2ff1a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-145.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-145.js
@@ -9,25 +9,25 @@ description: >
which has an own toString and valueOf method (15.4.5.1 step 3.c)
---*/
- var arr = [];
- var toStringAccessed = false;
- var valueOfAccessed = false;
+var arr = [];
+var toStringAccessed = false;
+var valueOfAccessed = false;
- Object.defineProperties(arr, {
- length: {
- value: {
- toString: function () {
- toStringAccessed = true;
- return '2';
- },
+Object.defineProperties(arr, {
+ length: {
+ value: {
+ toString: function() {
+ toStringAccessed = true;
+ return '2';
+ },
- valueOf: function () {
- valueOfAccessed = true;
- return 3;
- }
- }
- }
- });
+ valueOf: function() {
+ valueOfAccessed = true;
+ return 3;
+ }
+ }
+ }
+});
assert.sameValue(arr.length, 3, 'arr.length');
assert.sameValue(toStringAccessed, false, 'toStringAccessed');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-146.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-146.js
index 96214d41d..a4e2b52b8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-146.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-146.js
@@ -10,25 +10,25 @@ description: >
return primitive value (15.4.5.1 step 3.c)
---*/
- var arr = [];
- var toStringAccessed = false;
- var valueOfAccessed = false;
+var arr = [];
+var toStringAccessed = false;
+var valueOfAccessed = false;
assert.throws(TypeError, function() {
- Object.defineProperties(arr, {
- length: {
- value: {
- toString: function () {
- toStringAccessed = true;
- return {};
- },
+ Object.defineProperties(arr, {
+ length: {
+ value: {
+ toString: function() {
+ toStringAccessed = true;
+ return {};
+ },
- valueOf: function () {
- valueOfAccessed = true;
- return {};
- }
- }
- }
- });
+ valueOf: function() {
+ valueOfAccessed = true;
+ return {};
+ }
+ }
+ }
+ });
});
assert(toStringAccessed, 'toStringAccessed !== true');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-147.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-147.js
index 0e9d72a6a..ab4cf6864 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-147.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-147.js
@@ -10,35 +10,35 @@ description: >
inherited valueOf methods (15.4.5.1 step 3.c)
---*/
- var arr = [];
- var toStringAccessed = false;
- var valueOfAccessed = false;
+var arr = [];
+var toStringAccessed = false;
+var valueOfAccessed = false;
- var proto = {
- value: {
- valueOf: function () {
- valueOfAccessed = true;
- return 2;
- }
- }
- };
+var proto = {
+ value: {
+ valueOf: function() {
+ valueOfAccessed = true;
+ return 2;
+ }
+ }
+};
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var child = new Con();
- Object.defineProperty(child, "value", {
- value: {
- toString: function () {
- toStringAccessed = true;
- return 3;
- }
- }
- });
+var child = new Con();
+Object.defineProperty(child, "value", {
+ value: {
+ toString: function() {
+ toStringAccessed = true;
+ return 3;
+ }
+ }
+});
- Object.defineProperties(arr, {
- length: child
- });
+Object.defineProperties(arr, {
+ length: child
+});
assert.sameValue(arr.length, 3, 'arr.length');
assert(toStringAccessed, 'toStringAccessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-148.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-148.js
index d70d2214f..5b092a84b 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-148.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-148.js
@@ -9,12 +9,12 @@ description: >
field of 'desc' is positive non-integer values (15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
assert.throws(RangeError, function() {
- Object.defineProperties(arr, {
- length: {
- value: 123.5
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: 123.5
+ }
+ });
});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-149.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-149.js
index c509c5305..e06e22eda 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-149.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-149.js
@@ -9,12 +9,12 @@ description: >
field of 'desc' is negative non-integer values (15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
assert.throws(RangeError, function() {
- Object.defineProperties(arr, {
- length: {
- value: -4294967294.5
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: -4294967294.5
+ }
+ });
});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-15.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-15.js
index 8a899c662..510ef8b41 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-15.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-15.js
@@ -13,29 +13,29 @@ includes: [propertyHelper.js]
var obj = new Boolean(false);
Object.defineProperty(obj, "prop", {
- value: 11,
- configurable: false
+ value: 11,
+ configurable: false
});
try {
- Object.defineProperties(obj, {
- prop: {
- value: 12,
- configurable: true
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ prop: {
+ value: 12,
+ configurable: true
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "prop", 11);
+ verifyEqualTo(obj, "prop", 11);
- verifyNotWritable(obj, "prop");
+ verifyNotWritable(obj, "prop");
- verifyNotEnumerable(obj, "prop");
+ verifyNotEnumerable(obj, "prop");
- verifyNotConfigurable(obj, "prop");
+ verifyNotConfigurable(obj, "prop");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-150.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-150.js
index 7f6dc1136..7fd3d267c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-150.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-150.js
@@ -9,12 +9,12 @@ description: >
value 2^32 - 2 (15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperties(arr, {
- length: {
- value: 4294967294
- }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: 4294967294
+ }
+});
assert.sameValue(arr.length, 4294967294, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-151.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-151.js
index 090d2e650..c9ca3eb24 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-151.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-151.js
@@ -9,12 +9,12 @@ description: >
value 2^32 - 1 (15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperties(arr, {
- length: {
- value: 4294967295
- }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: 4294967295
+ }
+});
assert.sameValue(arr.length, 4294967295, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-152.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-152.js
index bf9c3b8d1..30326c0b7 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-152.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-152.js
@@ -9,12 +9,12 @@ description: >
field of 'desc' is boundary value 2^32 (15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
assert.throws(RangeError, function() {
- Object.defineProperties(arr, {
- length: {
- value: 4294967296
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: 4294967296
+ }
+ });
});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-153.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-153.js
index fddc31217..ff368c41c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-153.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-153.js
@@ -9,12 +9,12 @@ description: >
field of 'desc' is boundary value 2^32 + 1 (15.4.5.1 step 3.c)
---*/
- var arr = [];
+var arr = [];
assert.throws(RangeError, function() {
- Object.defineProperties(arr, {
- length: {
- value: 4294967297
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: 4294967297
+ }
+ });
});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-155.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-155.js
index b765653ef..b31bcc2af 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-155.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-155.js
@@ -11,13 +11,13 @@ description: >
step 3.f)
---*/
- var arr = [0, , 2];
+var arr = [0, , 2];
- Object.defineProperties(arr, {
- length: {
- value: 5
- }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: 5
+ }
+});
assert.sameValue(arr.length, 5, 'arr.length');
assert.sameValue(arr[0], 0, 'arr[0]');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-156.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-156.js
index f2bd0349c..fd2f95996 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-156.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-156.js
@@ -10,13 +10,13 @@ description: >
deleting any property with large index named (15.4.5.1 step 3.f)
---*/
- var arr = [0, , 2];
+var arr = [0, , 2];
- Object.defineProperties(arr, {
- length: {
- value: 3
- }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: 3
+ }
+});
assert.sameValue(arr.length, 3, 'arr.length');
assert.sameValue(arr[0], 0, 'arr[0]');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-157.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-157.js
index c3fece46a..4e26d7c43 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-157.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-157.js
@@ -10,13 +10,13 @@ description: >
deleting properties with large index named (15.4.5.1 step 3.f)
---*/
- var arr = [0, 1];
+var arr = [0, 1];
- Object.defineProperties(arr, {
- length: {
- value: 1
- }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: 1
+ }
+});
assert.sameValue(arr.length, 1, 'arr.length');
assert.sameValue(arr.hasOwnProperty("1"), false, 'arr.hasOwnProperty("1")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-158.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-158.js
index c98990822..1ac667a0a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-158.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-158.js
@@ -10,16 +10,16 @@ description: >
length property is not writable (15.4.5.1 step 3.f.i)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperty(arr, "length", {
- writable: false
- });
+Object.defineProperty(arr, "length", {
+ writable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperties(arr, {
- length: {
- value: 12
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: 12
+ }
+ });
});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-159.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-159.js
index 51e462ce4..21fbeacb8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-159.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-159.js
@@ -10,16 +10,16 @@ description: >
length property is not writable (15.4.5.1 step 3.f.i)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperty(arr, "length", {
- writable: false
- });
+Object.defineProperty(arr, "length", {
+ writable: false
+});
- Object.defineProperties(arr, {
- length: {
- value: 0
- }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: 0
+ }
+});
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-16.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-16.js
index 450bba1f2..61769efc5 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-16.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-16.js
@@ -13,29 +13,29 @@ includes: [propertyHelper.js]
var obj = new Number(-9);
Object.defineProperty(obj, "prop", {
- value: 11,
- configurable: false
+ value: 11,
+ configurable: false
});
try {
- Object.defineProperties(obj, {
- prop: {
- value: 12,
- configurable: true
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ prop: {
+ value: 12,
+ configurable: true
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "prop", 11);
+ verifyEqualTo(obj, "prop", 11);
- verifyNotWritable(obj, "prop");
+ verifyNotWritable(obj, "prop");
- verifyNotEnumerable(obj, "prop");
+ verifyNotEnumerable(obj, "prop");
- verifyNotConfigurable(obj, "prop");
+ verifyNotConfigurable(obj, "prop");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-160.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-160.js
index a3eb0b4b6..2d54c78ac 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-160.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-160.js
@@ -11,17 +11,17 @@ description: >
step 3.g)
---*/
- var arr = [0, 1];
+var arr = [0, 1];
- Object.defineProperty(arr, "length", {
- writable: false
- });
+Object.defineProperty(arr, "length", {
+ writable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperties(arr, {
- length: {
- value: 0
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: 0
+ }
+ });
});
assert.sameValue(arr.length, 2, 'arr.length');
assert.sameValue(arr[0], 0, 'arr[0]');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-161.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-161.js
index 94801d363..88a9d623b 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-161.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-161.js
@@ -12,15 +12,15 @@ description: >
absent (15.4.5.1 step 3.h)
---*/
- var arr = [0, 1];
+var arr = [0, 1];
- Object.defineProperties(arr, {
- length: {
- value: 1
- }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: 1
+ }
+});
- arr.length = 10; //try to overwrite length value of arr
+arr.length = 10; //try to overwrite length value of arr
assert.sameValue(arr.hasOwnProperty("1"), false, 'arr.hasOwnProperty("1")');
assert.sameValue(arr.length, 10, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-162.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-162.js
index 264929a73..5b53ce3f7 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-162.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-162.js
@@ -12,16 +12,16 @@ description: >
(15.4.5.1 step 3.h)
---*/
- var arr = [0, 1];
+var arr = [0, 1];
- Object.defineProperties(arr, {
- length: {
- value: 1,
- writable: true
- }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: 1,
+ writable: true
+ }
+});
- arr.length = 10; //try to overwrite length value of arr
+arr.length = 10; //try to overwrite length value of arr
assert.sameValue(arr.hasOwnProperty("1"), false, 'arr.hasOwnProperty("1")');
assert.sameValue(arr.length, 10, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-163.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-163.js
index 40756f8da..c84659c61 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-163.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-163.js
@@ -13,14 +13,14 @@ description: >
includes: [propertyHelper.js]
---*/
-
+
var arr = [0, 1];
Object.defineProperties(arr, {
- length: {
- value: 1,
- writable: false
- }
+ length: {
+ value: 1,
+ writable: false
+ }
});
//try to overwrite length value of arr
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-164.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-164.js
index ea479bad0..af2cbd543 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-164.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-164.js
@@ -17,21 +17,20 @@ var arr = [0, 1, 2];
var result = 0;
try {
- Object.defineProperty(arr, "1", {
- configurable: false
- });
+ Object.defineProperty(arr, "1", {
+ configurable: false
+ });
- Object.defineProperties(arr, {
- length: {
- value: 0,
- writable: false
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: 0,
+ writable: false
+ }
+ });
- $ERROR("expected to throw TypeError")
+ $ERROR("expected to throw TypeError")
} catch (e) {
- assert(e instanceof TypeError);
- assert.sameValue(arr.length, 2);
- verifyNotWritable(arr, "length");
+ assert(e instanceof TypeError);
+ assert.sameValue(arr.length, 2);
+ verifyNotWritable(arr, "length");
}
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-165.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-165.js
index 6d83613b9..2234686ce 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-165.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-165.js
@@ -10,21 +10,21 @@ description: >
1 (15.4.5.1 step 3.l.i)
---*/
- var arr = [0, 1, 2];
+var arr = [0, 1, 2];
- Object.defineProperty(arr, "1", {
- configurable: false
- });
+Object.defineProperty(arr, "1", {
+ configurable: false
+});
- Object.defineProperty(arr, "2", {
- configurable: true
- });
+Object.defineProperty(arr, "2", {
+ configurable: true
+});
assert.throws(TypeError, function() {
- Object.defineProperties(arr, {
- length: {
- value: 1
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: 1
+ }
+ });
});
assert.sameValue(arr.length, 2, 'arr.length');
assert.sameValue(arr.hasOwnProperty("2"), false, 'arr.hasOwnProperty("2")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-166.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-166.js
index a6bd8e38c..2c08f8a3f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-166.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-166.js
@@ -11,17 +11,17 @@ description: >
index named properties (15.4.5.1 step 3.l.ii)
---*/
- var arr = [0, 1];
+var arr = [0, 1];
assert.throws(TypeError, function() {
- Object.defineProperty(arr, "1", {
- configurable: false
- });
+ Object.defineProperty(arr, "1", {
+ configurable: false
+ });
- Object.defineProperties(arr, {
- length: {
- value: 1
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: 1
+ }
+ });
});
assert.sameValue(arr.length, 2, 'arr.length');
assert(arr.hasOwnProperty("1"), 'arr.hasOwnProperty("1") !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-167.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-167.js
index ac2bf4417..5a5d04235 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-167.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-167.js
@@ -11,15 +11,15 @@ description: >
deleting index named properties (15.4.5.1 step 3.l.ii)
---*/
- var arr = [0, 1];
+var arr = [0, 1];
- Array.prototype[1] = 2; //we are not allowed to set the [[Configurable]] attribute of property "1" to false here, since Array.prototype is a global object, and non-configurbale property can't revert to configurable
+Array.prototype[1] = 2; //we are not allowed to set the [[Configurable]] attribute of property "1" to false here, since Array.prototype is a global object, and non-configurbale property can't revert to configurable
- Object.defineProperties(arr, {
- length: {
- value: 1
- }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: 1
+ }
+});
assert.sameValue(arr.length, 1, 'arr.length');
assert.sameValue(arr.hasOwnProperty("1"), false, 'arr.hasOwnProperty("1")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-168.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-168.js
index c93f4a78e..0692d34d7 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-168.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-168.js
@@ -12,20 +12,20 @@ description: >
(15.4.5.1 step 3.l.ii)
---*/
- var arr = [0, 1];
+var arr = [0, 1];
assert.throws(TypeError, function() {
- Object.defineProperty(arr, "1", {
- configurable: false
- });
+ Object.defineProperty(arr, "1", {
+ configurable: false
+ });
- Array.prototype[1] = 2;
+ Array.prototype[1] = 2;
- Object.defineProperties(arr, {
- length: {
- value: 1
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: 1
+ }
+ });
});
assert.sameValue(arr.length, 2, 'arr.length');
assert(arr.hasOwnProperty("1"), 'arr.hasOwnProperty("1") !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-169.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-169.js
index 0b72ac3d6..0fc11411b 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-169.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-169.js
@@ -12,25 +12,25 @@ description: >
properties (15.4.5.1 step 3.l.ii)
---*/
- var arr = [0, 1];
+var arr = [0, 1];
assert.throws(TypeError, function() {
- Object.defineProperty(arr, "1", {
- configurable: false
- });
+ Object.defineProperty(arr, "1", {
+ configurable: false
+ });
- Object.defineProperty(Array.prototype, "1", {
- get: function () {
- return 2;
- },
- configurable: true
- });
+ Object.defineProperty(Array.prototype, "1", {
+ get: function() {
+ return 2;
+ },
+ configurable: true
+ });
- Object.defineProperties(arr, {
- length: {
- value: 1
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: 1
+ }
+ });
});
assert.sameValue(arr.length, 2, 'arr.length');
assert(arr.hasOwnProperty("1"), 'arr.hasOwnProperty("1") !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-17.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-17.js
index 43bc0511b..e3ece34fb 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-17.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-17.js
@@ -8,18 +8,18 @@ description: >
its own [[GetOwnProperty]] method to get 'P' (8.12.9 step 1 )
---*/
- Object.defineProperty(Math, "prop", {
- value: 11,
- writable: true,
- configurable: true
- });
- var hasProperty = Math.hasOwnProperty("prop") && Math.prop === 11;
+Object.defineProperty(Math, "prop", {
+ value: 11,
+ writable: true,
+ configurable: true
+});
+var hasProperty = Math.hasOwnProperty("prop") && Math.prop === 11;
- Object.defineProperties(Math, {
- prop: {
- value: 12
- }
- });
+Object.defineProperties(Math, {
+ prop: {
+ value: 12
+ }
+});
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(Math.prop, 12, 'Math.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-170.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-170.js
index bb5450464..108d5e28e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-170.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-170.js
@@ -11,20 +11,20 @@ description: >
deleting index named properties (15.4.5.1 step 3.l.ii)
---*/
- var arr = [0, 1];
+var arr = [0, 1];
assert.throws(TypeError, function() {
- Object.defineProperty(arr, "1", {
- get: function () {
- return 1;
- },
- configurable: false
- });
+ Object.defineProperty(arr, "1", {
+ get: function() {
+ return 1;
+ },
+ configurable: false
+ });
- Object.defineProperties(arr, {
- length: {
- value: 1
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: 1
+ }
+ });
});
assert.sameValue(arr.length, 2, 'arr.length');
assert(arr.hasOwnProperty("1"), 'arr.hasOwnProperty("1") !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-171.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-171.js
index ca3db2cb9..8907e2757 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-171.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-171.js
@@ -11,20 +11,20 @@ description: >
stop deleting index named properties (15.4.5.1 step 3.l.ii)
---*/
- var arr = [0, 1];
+var arr = [0, 1];
- Object.defineProperty(Array.prototype, "1", {
- get: function () {
- return 1;
- },
- configurable: true //we are not allowed to set the [[Configurable]] attribute of property "1" to false here, since Array.prototype is a global object, and non-configurbale property can't revert to configurable
- });
+Object.defineProperty(Array.prototype, "1", {
+ get: function() {
+ return 1;
+ },
+ configurable: true //we are not allowed to set the [[Configurable]] attribute of property "1" to false here, since Array.prototype is a global object, and non-configurbale property can't revert to configurable
+});
- Object.defineProperties(arr, {
- length: {
- value: 1
- }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: 1
+ }
+});
assert.sameValue(arr.length, 1, 'arr.length');
assert.sameValue(arr.hasOwnProperty("1"), false, 'arr.hasOwnProperty("1")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-172.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-172.js
index 938699559..a2c837074 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-172.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-172.js
@@ -12,23 +12,23 @@ description: >
(15.4.5.1 step 3.l.ii)
---*/
- var arr = [0, 1];
+var arr = [0, 1];
assert.throws(TypeError, function() {
- Object.defineProperty(arr, "1", {
- get: function () {
- return 2;
- },
- configurable: false
- });
+ Object.defineProperty(arr, "1", {
+ get: function() {
+ return 2;
+ },
+ configurable: false
+ });
- Array.prototype[1] = 3;
+ Array.prototype[1] = 3;
- Object.defineProperties(arr, {
- length: {
- value: 1
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: 1
+ }
+ });
});
assert.sameValue(arr.length, 2, 'arr.length');
assert(arr.hasOwnProperty("1"), 'arr.hasOwnProperty("1") !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-173.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-173.js
index 0664450db..de0b12fe0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-173.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-173.js
@@ -12,28 +12,28 @@ description: >
properties (15.4.5.1 step 3.l.ii)
---*/
- var arr = [0, 1];
+var arr = [0, 1];
assert.throws(TypeError, function() {
- Object.defineProperty(arr, "1", {
- get: function () {
- return 1;
- },
- configurable: false
- });
+ Object.defineProperty(arr, "1", {
+ get: function() {
+ return 1;
+ },
+ configurable: false
+ });
- Object.defineProperty(Array.prototype, "1", {
- get: function () {
- return 2;
- },
- configurable: true
- });
+ Object.defineProperty(Array.prototype, "1", {
+ get: function() {
+ return 2;
+ },
+ configurable: true
+ });
- Object.defineProperties(arr, {
- length: {
- value: 1
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: 1
+ }
+ });
});
assert.sameValue(arr.length, 2, 'arr.length');
assert(arr.hasOwnProperty("1"), 'arr.hasOwnProperty("1") !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-174.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-174.js
index 569dc35df..80c672016 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-174.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-174.js
@@ -10,12 +10,12 @@ description: >
property of 'O' can be deleted (15.4.5.1 step 3.l.ii)
---*/
- var arr = [0, 1];
+var arr = [0, 1];
- Object.defineProperties(arr, {
- length: {
- value: 1
- }
- });
+Object.defineProperties(arr, {
+ length: {
+ value: 1
+ }
+});
assert.sameValue(arr.hasOwnProperty("1"), false, 'arr.hasOwnProperty("1")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-175.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-175.js
index c4a266ad4..970f0e6b2 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-175.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-175.js
@@ -11,16 +11,16 @@ description: >
(15.4.5.1 step 3.l.iii.1)
---*/
- var arr = [0, 1, 2, 3];
+var arr = [0, 1, 2, 3];
- Object.defineProperty(arr, "1", {
- configurable: false
- });
+Object.defineProperty(arr, "1", {
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperties(arr, {
- length: {
- value: 1
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: 1
+ }
+ });
});
assert.sameValue(arr.length, 2, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-176.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-176.js
index e5c014707..228c529c1 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-176.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-176.js
@@ -17,24 +17,23 @@ includes: [propertyHelper.js]
var arr = [0, 1];
try {
- Object.defineProperty(arr, "1", {
- configurable: false
- });
+ Object.defineProperty(arr, "1", {
+ configurable: false
+ });
- Object.defineProperties(arr, {
- length: {
- value: 1,
- writable: false
- }
- });
+ Object.defineProperties(arr, {
+ length: {
+ value: 1,
+ writable: false
+ }
+ });
- $ERROR("Expected to throw TypeError");
+ $ERROR("Expected to throw TypeError");
} catch (e) {
- assert(e instanceof TypeError);
- assert(arr.hasOwnProperty("1"));
- verifyNotWritable(arr, "length");
- assert.sameValue(arr[0], 0);
- assert.sameValue(arr[1], 1);
- assert.sameValue(arr.length, 2)
+ assert(e instanceof TypeError);
+ assert(arr.hasOwnProperty("1"));
+ verifyNotWritable(arr, "length");
+ assert.sameValue(arr[0], 0);
+ assert.sameValue(arr[1], 1);
+ assert.sameValue(arr.length, 2)
}
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-177.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-177.js
index 57fb6e284..6af474432 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-177.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-177.js
@@ -13,14 +13,14 @@ description: >
includes: [propertyHelper.js]
---*/
-
+
var arr = [0, 1];
Object.defineProperties(arr, {
- length: {
- value: 0,
- writable: false
- }
+ length: {
+ value: 0,
+ writable: false
+ }
});
assert(!arr.hasOwnProperty("1"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-178.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-178.js
index 3beabc6fa..3b4dae0d0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-178.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-178.js
@@ -9,12 +9,12 @@ description: >
numbers (15.4.5.1 step 4.a)
---*/
- var arr = [0];
+var arr = [0];
- Object.defineProperties(arr, {
- "0": {
- value: 12
- }
- });
+Object.defineProperties(arr, {
+ "0": {
+ value: 12
+ }
+});
assert.sameValue(arr[0], 12, 'arr[0]');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-179.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-179.js
index 7fa434696..4da0d9d1f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-179.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-179.js
@@ -8,13 +8,13 @@ description: >
named property, 'P' is boundary value 2^32 - 2 (15.4.5.1 step 4.a)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperties(arr, {
- "4294967294": {
- value: 100
- }
- });
+Object.defineProperties(arr, {
+ "4294967294": {
+ value: 100
+ }
+});
assert(arr.hasOwnProperty("4294967294"), 'arr.hasOwnProperty("4294967294") !== true');
assert.sameValue(arr.length, 4294967295, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-18.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-18.js
index 57026dbdf..fdba2202b 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-18.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-18.js
@@ -13,29 +13,29 @@ includes: [propertyHelper.js]
var obj = new Date();
Object.defineProperty(obj, "prop", {
- value: 11,
- configurable: false
+ value: 11,
+ configurable: false
});
try {
- Object.defineProperties(obj, {
- prop: {
- value: 12,
- configurable: true
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ prop: {
+ value: 12,
+ configurable: true
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "prop", 11);
+ verifyEqualTo(obj, "prop", 11);
- verifyNotWritable(obj, "prop");
+ verifyNotWritable(obj, "prop");
- verifyNotEnumerable(obj, "prop");
+ verifyNotEnumerable(obj, "prop");
- verifyNotConfigurable(obj, "prop");
+ verifyNotConfigurable(obj, "prop");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-180.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-180.js
index 1e2c4de0d..85f89a62a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-180.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-180.js
@@ -8,13 +8,13 @@ description: >
named property, 'P' is boundary value 2^32 - 1 (15.4.5.1 step 4.a)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperties(arr, {
- "4294967295": {
- value: 100
- }
- });
+Object.defineProperties(arr, {
+ "4294967295": {
+ value: 100
+ }
+});
assert(arr.hasOwnProperty("4294967295"), 'arr.hasOwnProperty("4294967295") !== true');
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-181.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-181.js
index a04bc26f8..061fcc241 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-181.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-181.js
@@ -8,13 +8,13 @@ description: >
named property, 'P' is boundary value 2^32 (15.4.5.1 step 4.a)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperties(arr, {
- "4294967296": {
- value: 100
- }
- });
+Object.defineProperties(arr, {
+ "4294967296": {
+ value: 100
+ }
+});
assert(arr.hasOwnProperty("4294967296"), 'arr.hasOwnProperty("4294967296") !== true');
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-182.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-182.js
index 53f196422..8b785e358 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-182.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-182.js
@@ -8,13 +8,13 @@ description: >
named property, 'P' is boundary value 2^32 + 1 (15.4.5.1 step 4.a)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperties(arr, {
- "4294967297": {
- value: 100
- }
- });
+Object.defineProperties(arr, {
+ "4294967297": {
+ value: 100
+ }
+});
assert(arr.hasOwnProperty("4294967297"), 'arr.hasOwnProperty("4294967297") !== true');
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-183.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-183.js
index fc8c6fa11..618a11bb0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-183.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-183.js
@@ -10,17 +10,17 @@ description: >
less than value of the length property in'O' (15.4.5.1 step 4.b)
---*/
- var arr = [1, 2, 3];
+var arr = [1, 2, 3];
- Object.defineProperty(arr, "length", {
- writable: false
- });
+Object.defineProperty(arr, "length", {
+ writable: false
+});
- Object.defineProperties(arr, {
- "1": {
- value: "abc"
- }
- });
+Object.defineProperties(arr, {
+ "1": {
+ value: "abc"
+ }
+});
assert.sameValue(arr[0], 1, 'arr[0]');
assert.sameValue(arr[1], "abc", 'arr[1]');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-184.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-184.js
index 3fe016ff4..05c864486 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-184.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-184.js
@@ -10,17 +10,17 @@ description: >
the length property in 'O' (15.4.5.1 step 4.b)
---*/
- var arr = [1, 2, 3];
+var arr = [1, 2, 3];
- Object.defineProperty(arr, "length", {
- writable: false
- });
+Object.defineProperty(arr, "length", {
+ writable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperties(arr, {
- "3": {
- value: "abc"
- }
- });
+ Object.defineProperties(arr, {
+ "3": {
+ value: "abc"
+ }
+ });
});
assert.sameValue(arr[0], 1, 'arr[0]');
assert.sameValue(arr[1], 2, 'arr[1]');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-185.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-185.js
index 3698753c5..04268e171 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-185.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-185.js
@@ -10,17 +10,17 @@ description: >
of the length property in 'O' (15.4.5.1 step 4.b)
---*/
- var arr = [1, 2, 3];
+var arr = [1, 2, 3];
- Object.defineProperty(arr, "length", {
- writable: false
- });
+Object.defineProperty(arr, "length", {
+ writable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperties(arr, {
- "4": {
- value: "abc"
- }
- });
+ Object.defineProperties(arr, {
+ "4": {
+ value: "abc"
+ }
+ });
});
assert.sameValue(arr[0], 1, 'arr[0]');
assert.sameValue(arr[1], 2, 'arr[1]');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-186.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-186.js
index e5f5943f6..1421ccc13 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-186.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-186.js
@@ -8,17 +8,17 @@ description: >
named property, 'P' is own data property (15.4.5.1 step 4.c)
---*/
- var arr = [];
- Object.defineProperty(arr, 0, {
- value: "ownDataProperty",
- configurable: false
- });
+var arr = [];
+Object.defineProperty(arr, 0, {
+ value: "ownDataProperty",
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperties(arr, {
- "0": {
- value: "abc",
- configurable: true
- }
- });
+ Object.defineProperties(arr, {
+ "0": {
+ value: "abc",
+ configurable: true
+ }
+ });
});
assert.sameValue(arr[0], "ownDataProperty", 'arr[0]');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-187.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-187.js
index 239da3b32..b19e15195 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-187.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-187.js
@@ -8,18 +8,18 @@ description: >
named property, 'P' is inherited data property (15.4.5.1 step 4.c)
---*/
- Object.defineProperty(Array.prototype, "0", {
- value: 11,
- configurable: true
- });
+Object.defineProperty(Array.prototype, "0", {
+ value: 11,
+ configurable: true
+});
- var arr = [];
+var arr = [];
- Object.defineProperties(arr, {
- "0": {
- configurable: false
- }
- });
+Object.defineProperties(arr, {
+ "0": {
+ configurable: false
+ }
+});
assert(arr.hasOwnProperty("0"), 'arr.hasOwnProperty("0") !== true');
assert.sameValue(typeof arr[0], "undefined", 'typeof arr[0]');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-188.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-188.js
index a5895c270..0d7c7939f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-188.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-188.js
@@ -12,21 +12,21 @@ description: >
var arr = [];
assert.throws(TypeError, function() {
- Object.defineProperty(Array.prototype, "0", {
- value: 11,
- configurable: true
- });
+ Object.defineProperty(Array.prototype, "0", {
+ value: 11,
+ configurable: true
+ });
- Object.defineProperty(arr, "0", {
- value: 12,
- configurable: false
- });
+ Object.defineProperty(arr, "0", {
+ value: 12,
+ configurable: false
+ });
- Object.defineProperties(arr, {
- "0": {
- configurable: true
- }
- });
+ Object.defineProperties(arr, {
+ "0": {
+ configurable: true
+ }
+ });
});
assert.sameValue(arr[0], 12, 'arr[0]');
assert.sameValue(Array.prototype[0], 11, 'Array.prototype[0]');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-189.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-189.js
index 43dcd4991..b9daf11b0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-189.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-189.js
@@ -12,23 +12,23 @@ description: >
var arr = [];
assert.throws(TypeError, function() {
- Object.defineProperty(Array.prototype, "0", {
- get: function () {
- return 11;
- },
- configurable: true
- });
+ Object.defineProperty(Array.prototype, "0", {
+ get: function() {
+ return 11;
+ },
+ configurable: true
+ });
- Object.defineProperty(arr, "0", {
- value: 12,
- configurable: false
- });
+ Object.defineProperty(arr, "0", {
+ value: 12,
+ configurable: false
+ });
- Object.defineProperties(arr, {
- "0": {
- configurable: true
- }
- });
+ Object.defineProperties(arr, {
+ "0": {
+ configurable: true
+ }
+ });
});
assert.sameValue(arr[0], 12, 'arr[0]');
assert.sameValue(Array.prototype[0], 11, 'Array.prototype[0]');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-19.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-19.js
index 255d3fdc6..262f370b7 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-19.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-19.js
@@ -13,29 +13,29 @@ includes: [propertyHelper.js]
var obj = new RegExp();
Object.defineProperty(obj, "prop", {
- value: 11,
- configurable: false
+ value: 11,
+ configurable: false
});
try {
- Object.defineProperties(obj, {
- prop: {
- value: 12,
- configurable: true
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ prop: {
+ value: 12,
+ configurable: true
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "prop", 11);
+ verifyEqualTo(obj, "prop", 11);
- verifyNotWritable(obj, "prop");
+ verifyNotWritable(obj, "prop");
- verifyNotEnumerable(obj, "prop");
+ verifyNotEnumerable(obj, "prop");
- verifyNotConfigurable(obj, "prop");
+ verifyNotConfigurable(obj, "prop");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-190.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-190.js
index 7ecdc01b2..7d18bc591 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-190.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-190.js
@@ -8,22 +8,22 @@ description: >
named property, 'P' is own accessor property (15.4.5.1 step 4.c)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperty(arr, "0", {
- get: function () {
- return 11;
- },
- configurable: false
- });
+Object.defineProperty(arr, "0", {
+ get: function() {
+ return 11;
+ },
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperties(arr, {
- "0": {
- get: function () {
- return 12;
- },
- configurable: true
- }
- });
+ Object.defineProperties(arr, {
+ "0": {
+ get: function() {
+ return 12;
+ },
+ configurable: true
+ }
+ });
});
assert.sameValue(arr[0], 11, 'arr[0]');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-191.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-191.js
index c074029e5..e084173ff 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-191.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-191.js
@@ -8,23 +8,23 @@ description: >
property, 'P' is inherited accessor property (15.4.5.1 step 4.c)
---*/
- Object.defineProperty(Array.prototype, "0", {
- get: function () {
- return 11;
- },
- configurable: true
- });
+Object.defineProperty(Array.prototype, "0", {
+ get: function() {
+ return 11;
+ },
+ configurable: true
+});
- var arr = [];
+var arr = [];
- Object.defineProperties(arr, {
- "0": {
- get: function () {
- return 12;
- },
- configurable: false
- }
- });
+Object.defineProperties(arr, {
+ "0": {
+ get: function() {
+ return 12;
+ },
+ configurable: false
+ }
+});
assert(arr.hasOwnProperty("0"), 'arr.hasOwnProperty("0") !== true');
assert.sameValue(arr[0], 12, 'arr[0]');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-192.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-192.js
index 5c064cd64..e561d95d0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-192.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-192.js
@@ -12,23 +12,23 @@ description: >
var arr = [];
assert.throws(TypeError, function() {
- Object.defineProperty(Array.prototype, "0", {
- value: 11,
- configurable: true
- });
+ Object.defineProperty(Array.prototype, "0", {
+ value: 11,
+ configurable: true
+ });
- Object.defineProperty(arr, "0", {
- get: function () {
- return 12;
- },
- configurable: false
- });
+ Object.defineProperty(arr, "0", {
+ get: function() {
+ return 12;
+ },
+ configurable: false
+ });
- Object.defineProperties(arr, {
- "0": {
- configurable: true
- }
- });
+ Object.defineProperties(arr, {
+ "0": {
+ configurable: true
+ }
+ });
});
assert.sameValue(arr[0], 12, 'arr[0]');
assert.sameValue(Array.prototype[0], 11, 'Array.prototype[0]');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-193.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-193.js
index 1f6f92161..cfa67482c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-193.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-193.js
@@ -12,25 +12,25 @@ description: >
var arr = [];
assert.throws(TypeError, function() {
- Object.defineProperty(Array.prototype, "0", {
- get: function () {
- return 11;
- },
- configurable: true
- });
+ Object.defineProperty(Array.prototype, "0", {
+ get: function() {
+ return 11;
+ },
+ configurable: true
+ });
- Object.defineProperty(arr, "0", {
- get: function () {
- return 12;
- },
- configurable: false
- });
+ Object.defineProperty(arr, "0", {
+ get: function() {
+ return 12;
+ },
+ configurable: false
+ });
- Object.defineProperties(arr, {
- "0": {
- configurable: true
- }
- });
+ Object.defineProperties(arr, {
+ "0": {
+ configurable: true
+ }
+ });
});
assert.sameValue(arr[0], 12, 'arr[0]');
assert.sameValue(Array.prototype[0], 11, 'Array.prototype[0]');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-194.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-194.js
index 7241a38ef..e52aa66a3 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-194.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-194.js
@@ -9,13 +9,13 @@ description: >
is thrown when 'O' is not extensible (15.4.5.1 step 4.c)
---*/
- var arr = [];
- Object.preventExtensions(arr);
+var arr = [];
+Object.preventExtensions(arr);
assert.throws(TypeError, function() {
- Object.defineProperties(arr, {
- "0": {
- value: 1
- }
- });
+ Object.defineProperties(arr, {
+ "0": {
+ value: 1
+ }
+ });
});
assert.sameValue(arr.hasOwnProperty("0"), false, 'arr.hasOwnProperty("0")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-195.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-195.js
index f787b9c7e..13ef4b2a9 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-195.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-195.js
@@ -14,9 +14,9 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperties(arr, {
- "0": {
- enumerable: true
- }
+ "0": {
+ enumerable: true
+ }
});
verifyEqualTo(arr, "0", undefined);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-196.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-196.js
index 4d826caed..bd8358cec 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-196.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-196.js
@@ -10,15 +10,15 @@ description: >
[[Value]] is absent in data descriptor 'desc' (15.4.5.1 step 4.c)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperties(arr, {
- "0": {
- writable: true,
- enumerable: true,
- configurable: false
- }
- });
+Object.defineProperties(arr, {
+ "0": {
+ writable: true,
+ enumerable: true,
+ configurable: false
+ }
+});
assert(arr.hasOwnProperty("0"), 'arr.hasOwnProperty("0") !== true');
-assert.sameValue(typeof (arr[0]), "undefined", 'typeof (arr[0])');
+assert.sameValue(typeof(arr[0]), "undefined", 'typeof (arr[0])');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-197.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-197.js
index 20bdac360..d2a90405a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-197.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-197.js
@@ -17,11 +17,11 @@ var isOwnProperty = false;
var canWritable = false;
Object.defineProperties(arr, {
- "0": {
- value: 1001,
- enumerable: true,
- configurable: false
- }
+ "0": {
+ value: 1001,
+ enumerable: true,
+ configurable: false
+ }
});
assert(arr.hasOwnProperty("0"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-198.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-198.js
index 2d19fa185..e6ee90417 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-198.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-198.js
@@ -11,24 +11,24 @@ description: >
(15.4.5.1 step 4.c)
---*/
- var arr = [];
- var isOwnProperty = false;
- var canEnumerable = false;
+var arr = [];
+var isOwnProperty = false;
+var canEnumerable = false;
- Object.defineProperties(arr, {
- "0": {
- value: 1001,
- writable: true,
- configurable: true
- }
- });
+Object.defineProperties(arr, {
+ "0": {
+ value: 1001,
+ writable: true,
+ configurable: true
+ }
+});
- isOwnProperty = arr.hasOwnProperty("0");
- for (var i in arr) {
- if (i === "0") {
- canEnumerable = true;
- }
- }
+isOwnProperty = arr.hasOwnProperty("0");
+for (var i in arr) {
+ if (i === "0") {
+ canEnumerable = true;
+ }
+}
assert(isOwnProperty, 'isOwnProperty !== true');
assert.sameValue(canEnumerable, false, 'canEnumerable');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-199.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-199.js
index 3be40ccde..2800e7da7 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-199.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-199.js
@@ -17,11 +17,11 @@ var beforeDeleted = false;
var afterDeleted = false;
Object.defineProperties(arr, {
- "0": {
- value: 1001,
- writable: true,
- enumerable: true
- }
+ "0": {
+ value: 1001,
+ writable: true,
+ enumerable: true
+ }
});
assert(arr.hasOwnProperty("0"));
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-2.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-2.js
index 4565c67a7..037a2eba3 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-2.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-2.js
@@ -11,19 +11,19 @@ includes: [propertyHelper.js]
var proto = {};
Object.defineProperty(proto, "prop", {
- value: 11,
- configurable: false
+ value: 11,
+ configurable: false
});
-var Con = function () { };
+var Con = function() {};
Con.prototype = proto;
var obj = new Con();
Object.defineProperties(obj, {
- prop: {
- value: 12,
- configurable: true
- }
+ prop: {
+ value: 12,
+ configurable: true
+ }
});
verifyEqualTo(obj, "prop", 12);
@@ -33,4 +33,3 @@ verifyNotWritable(obj, "prop");
verifyNotEnumerable(obj, "prop");
verifyConfigurable(obj, "prop");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-20.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-20.js
index c6256b2e2..2a6a08acd 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-20.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-20.js
@@ -8,17 +8,17 @@ description: >
its own [[GetOwnProperty]] method to get 'P' (8.12.9 step 1 )
---*/
- Object.defineProperty(JSON, "prop", {
- value: 11,
- writable: true,
- configurable: true
- });
- var hasProperty = JSON.hasOwnProperty("prop") && JSON.prop === 11;
- Object.defineProperties(JSON, {
- prop: {
- value: 12
- }
- });
+Object.defineProperty(JSON, "prop", {
+ value: 11,
+ writable: true,
+ configurable: true
+});
+var hasProperty = JSON.hasOwnProperty("prop") && JSON.prop === 11;
+Object.defineProperties(JSON, {
+ prop: {
+ value: 12
+ }
+});
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(JSON.prop, 12, 'JSON.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-200.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-200.js
index cc35be1c1..5a26d73f9 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-200.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-200.js
@@ -13,12 +13,12 @@ includes: [propertyHelper.js]
var arr = [1]; // default value of attributes: writable: true, configurable: true, enumerable: true
Object.defineProperties(arr, {
- "0": {
- value: 1001,
- writable: false,
- enumerable: false,
- configurable: false
- }
+ "0": {
+ value: 1001,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ }
});
verifyEqualTo(arr, "0", 1001);
@@ -28,4 +28,3 @@ verifyNotWritable(arr, "0");
verifyNotEnumerable(arr, "0");
verifyNotConfigurable(arr, "0");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-201.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-201.js
index 999c5ba75..b4b0a7c72 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-201.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-201.js
@@ -10,15 +10,15 @@ description: >
is absent in accessor descriptor 'desc' (15.4.5.1 step 4.c)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperties(arr, {
- "0": {
- set: function () { },
- enumerable: true,
- configurable: true
- }
- });
+Object.defineProperties(arr, {
+ "0": {
+ set: function() {},
+ enumerable: true,
+ configurable: true
+ }
+});
assert(arr.hasOwnProperty("0"), 'arr.hasOwnProperty("0") !== true');
-assert.sameValue(typeof (arr[0]), "undefined", 'typeof (arr[0])');
+assert.sameValue(typeof(arr[0]), "undefined", 'typeof (arr[0])');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-202.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-202.js
index b9c049421..febd6c62a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-202.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-202.js
@@ -10,32 +10,32 @@ description: >
is absent in accessor descriptor 'desc' (15.4.5.1 step 4.c)
---*/
- var arr = [];
- var getFunc = function () {
- return 11;
- };
+var arr = [];
+var getFunc = function() {
+ return 11;
+};
- Object.defineProperties(arr, {
- "0": {
- get: getFunc,
- enumerable: true,
- configurable: true
- }
- });
+Object.defineProperties(arr, {
+ "0": {
+ get: getFunc,
+ enumerable: true,
+ configurable: true
+ }
+});
- var verifyEnumerable = false;
- for (var i in arr) {
- if (i === "0" && arr.hasOwnProperty("0")) {
- verifyEnumerable = true;
- }
- }
+var verifyEnumerable = false;
+for (var i in arr) {
+ if (i === "0" && arr.hasOwnProperty("0")) {
+ verifyEnumerable = true;
+ }
+}
- var desc = Object.getOwnPropertyDescriptor(arr, "0");
- var propertyDefineCorrect = arr.hasOwnProperty("0");
+var desc = Object.getOwnPropertyDescriptor(arr, "0");
+var propertyDefineCorrect = arr.hasOwnProperty("0");
- var verifyConfigurable = false;
- delete arr[0];
- verifyConfigurable = arr.hasOwnProperty("0");
+var verifyConfigurable = false;
+delete arr[0];
+verifyConfigurable = arr.hasOwnProperty("0");
assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set');
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-203.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-203.js
index 39d5ee0a6..e5bb72fba 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-203.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-203.js
@@ -11,16 +11,16 @@ description: >
(15.4.5.1 step 4.c)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperties(arr, {
- "0": {
- set: function () { },
- get: function () { },
- configurable: true
- }
- });
+Object.defineProperties(arr, {
+ "0": {
+ set: function() {},
+ get: function() {},
+ configurable: true
+ }
+});
- for (var i in arr) {
- assert.sameValue(i === "0" && arr.hasOwnProperty("0"), false, 'i === "0" && arr.hasOwnProperty("0")');
- }
+for (var i in arr) {
+ assert.sameValue(i === "0" && arr.hasOwnProperty("0"), false, 'i === "0" && arr.hasOwnProperty("0")');
+}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-204.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-204.js
index 806e428be..c120b0c91 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-204.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-204.js
@@ -16,19 +16,19 @@ var arr = [];
arr.verifySetter = 100;
Object.defineProperties(arr, {
- "0": {
- set: function (value) {
- arr.verifySetter = value;
- },
- get: function () {
- return arr.verifySetter;
- },
- enumerable: true
- }
+ "0": {
+ set: function(value) {
+ arr.verifySetter = value;
+ },
+ get: function() {
+ return arr.verifySetter;
+ },
+ enumerable: true
+ }
});
if (!Object.prototype.hasOwnProperty.call(arr, "0")) {
- $ERROR("Expected hasOwnProperty to return true.");
+ $ERROR("Expected hasOwnProperty to return true.");
}
arr[0] = 101;
@@ -36,7 +36,7 @@ arr[0] = 101;
verifyEqualTo(arr, 0, 101);
if (arr.verifySetter !== 101) {
- $ERROR('Expected arr.verifySetter === 101, actually ' + arr.verifySetter);
+ $ERROR('Expected arr.verifySetter === 101, actually ' + arr.verifySetter);
}
verifyNotConfigurable(arr, 0);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-205.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-205.js
index 08243fb84..e1ebc8eac 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-205.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-205.js
@@ -13,29 +13,29 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperties(arr, {
- "0": {
- get: function () {
- return 11;
- },
- set: function () { },
- configurable: true,
- enumerable: true
- }
+ "0": {
+ get: function() {
+ return 11;
+ },
+ set: function() {},
+ configurable: true,
+ enumerable: true
+ }
});
-var setFun = function (value) {
- arr.setVerifyHelpProp = value;
+var setFun = function(value) {
+ arr.setVerifyHelpProp = value;
};
-var getFun = function () {
- return 14;
+var getFun = function() {
+ return 14;
};
Object.defineProperties(arr, {
- "0": {
- get: getFun,
- set: setFun,
- configurable: false,
- enumerable: false
- }
+ "0": {
+ get: getFun,
+ set: setFun,
+ configurable: false,
+ enumerable: false
+ }
});
verifyEqualTo(arr, "0", getFun());
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-206.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-206.js
index 850cffa94..510fbad6e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-206.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-206.js
@@ -16,7 +16,7 @@ arr[0] = 101; // default value of attributes: writable: true, configurable: true
Object.defineProperties(arr, {
- "0": {}
+ "0": {}
});
verifyEqualTo(arr, "0", 101);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-207.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-207.js
index a70e5e30a..9aefa195c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-207.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-207.js
@@ -13,21 +13,22 @@ includes: [propertyHelper.js]
var arr = [];
function get_func() {
- return 11;
+ return 11;
}
+
function set_func(value) {
- arr.setVerifyHelpProp = value;
+ arr.setVerifyHelpProp = value;
}
Object.defineProperty(arr, "0", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
});
Object.defineProperties(arr, {
- "0": {}
+ "0": {}
});
verifyEqualTo(arr, "0", get_func());
@@ -36,4 +37,3 @@ verifyWritable(arr, "0", "setVerifyHelpProp");
verifyEnumerable(arr, "0");
verifyConfigurable(arr, "0");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-208.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-208.js
index e20e68697..79607b34a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-208.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-208.js
@@ -16,12 +16,12 @@ var arr = [];
arr[0] = 100; // default value of attributes: writable: true, configurable: true, enumerable: true
Object.defineProperties(arr, {
- "0": {
- value: 100,
- writable: true,
- enumerable: true,
- configurable: true
- }
+ "0": {
+ value: 100,
+ writable: true,
+ enumerable: true,
+ configurable: true
+ }
});
verifyEqualTo(arr, "0", 100);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-209.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-209.js
index a7186caa0..2620f9b4f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-209.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-209.js
@@ -12,22 +12,22 @@ includes: [propertyHelper.js]
---*/
var arr = [];
-var get_func = function () {
- return "100";
+var get_func = function() {
+ return "100";
};
-var set_func = function (value) {
- arr.setVerifyHelpProp = value;
+var set_func = function(value) {
+ arr.setVerifyHelpProp = value;
};
var descObj = {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
};
var properties = {
- "0": descObj
+ "0": descObj
};
Object.defineProperty(arr, "0", descObj);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-21.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-21.js
index 242d0abfa..f516ad3d0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-21.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-21.js
@@ -13,29 +13,29 @@ includes: [propertyHelper.js]
var obj = new Error();
Object.defineProperty(obj, "prop", {
- value: 11,
- configurable: false
+ value: 11,
+ configurable: false
});
try {
- Object.defineProperties(obj, {
- prop: {
- value: 12,
- configurable: true
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ prop: {
+ value: 12,
+ configurable: true
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "prop", 11);
+ verifyEqualTo(obj, "prop", 11);
- verifyNotWritable(obj, "prop");
+ verifyNotWritable(obj, "prop");
- verifyNotEnumerable(obj, "prop");
+ verifyNotEnumerable(obj, "prop");
- verifyNotConfigurable(obj, "prop");
+ verifyNotConfigurable(obj, "prop");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-210.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-210.js
index ae4eae8af..8eb9e5d41 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-210.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-210.js
@@ -14,13 +14,13 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "0", {
- value: undefined
+ value: undefined
});
Object.defineProperties(arr, {
- "0": {
- value: undefined
- }
+ "0": {
+ value: undefined
+ }
});
verifyEqualTo(arr, "0", undefined);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-211.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-211.js
index 5264f7457..f282f7cb3 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-211.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-211.js
@@ -13,13 +13,13 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "0", {
- value: null
+ value: null
});
Object.defineProperties(arr, {
- "0": {
- value: null
- }
+ "0": {
+ value: null
+ }
});
verifyEqualTo(arr, "0", null);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-212.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-212.js
index 7d734171f..6414e5e35 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-212.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-212.js
@@ -13,13 +13,13 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "0", {
- value: NaN
+ value: NaN
});
Object.defineProperties(arr, {
- "0": {
- value: NaN
- }
+ "0": {
+ value: NaN
+ }
});
verifyEqualTo(arr, "0", NaN);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-213.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-213.js
index 29609ef25..205082296 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-213.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-213.js
@@ -13,27 +13,27 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "0", {
- value: -0
+ value: -0
});
try {
- Object.defineProperties(arr, {
- "0": {
- value: +0
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arr, {
+ "0": {
+ value: +0
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arr, "0", -0);
+ verifyEqualTo(arr, "0", -0);
- verifyNotWritable(arr, "0");
+ verifyNotWritable(arr, "0");
- verifyNotEnumerable(arr, "0");
+ verifyNotEnumerable(arr, "0");
- verifyNotConfigurable(arr, "0");
+ verifyNotConfigurable(arr, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-214.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-214.js
index 3efb78355..0492fc989 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-214.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-214.js
@@ -13,27 +13,27 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "0", {
- value: +0
+ value: +0
});
try {
- Object.defineProperties(arr, {
- "0": {
- value: -0
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arr, {
+ "0": {
+ value: -0
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arr, "0", +0);
+ verifyEqualTo(arr, "0", +0);
- verifyNotWritable(arr, "0");
+ verifyNotWritable(arr, "0");
- verifyNotEnumerable(arr, "0");
+ verifyNotEnumerable(arr, "0");
- verifyNotConfigurable(arr, "0");
+ verifyNotConfigurable(arr, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-215.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-215.js
index 311a412c6..98155875e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-215.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-215.js
@@ -14,13 +14,13 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "0", {
- value: 101
+ value: 101
});
Object.defineProperties(arr, {
- "0": {
- value: 101
- }
+ "0": {
+ value: 101
+ }
});
verifyEqualTo(arr, "0", 101);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-216.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-216.js
index 85185125e..543f09d23 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-216.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-216.js
@@ -14,13 +14,13 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "0", {
- value: "abcd"
+ value: "abcd"
});
Object.defineProperties(arr, {
- "0": {
- value: "abcd"
- }
+ "0": {
+ value: "abcd"
+ }
});
verifyEqualTo(arr, "0", "abcd");
@@ -29,4 +29,3 @@ verifyNotWritable(arr, "0");
verifyNotEnumerable(arr, "0");
verifyNotConfigurable(arr, "0");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-217.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-217.js
index 1e4cbc9c4..a518691b6 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-217.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-217.js
@@ -14,13 +14,13 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "0", {
- value: true
+ value: true
});
Object.defineProperties(arr, {
- "0": {
- value: true
- }
+ "0": {
+ value: true
+ }
});
verifyEqualTo(arr, "0", true);
@@ -29,4 +29,3 @@ verifyNotWritable(arr, "0");
verifyNotEnumerable(arr, "0");
verifyNotConfigurable(arr, "0");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-218.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-218.js
index b0f97e9f3..5d44c3834 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-218.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-218.js
@@ -13,15 +13,17 @@ includes: [propertyHelper.js]
var arr = [];
-var obj1 = { length: 10 };
+var obj1 = {
+ length: 10
+};
Object.defineProperty(arr, "0", {
- value: obj1
+ value: obj1
});
var properties = {
- "0": {
- value: obj1
- }
+ "0": {
+ value: obj1
+ }
};
Object.defineProperties(arr, properties);
@@ -32,4 +34,3 @@ verifyNotWritable(arr, "0");
verifyNotEnumerable(arr, "0");
verifyNotConfigurable(arr, "0");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-219.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-219.js
index 8ad990d37..35ac3a739 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-219.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-219.js
@@ -13,13 +13,13 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "0", {
- writable: true
+ writable: true
});
Object.defineProperties(arr, {
- "0": {
- writable: true
- }
+ "0": {
+ writable: true
+ }
});
verifyEqualTo(arr, "0", undefined);
@@ -28,4 +28,3 @@ verifyWritable(arr, "0");
verifyNotEnumerable(arr, "0");
verifyNotConfigurable(arr, "0");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-22.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-22.js
index 03026ecbe..eb5f17481 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-22.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-22.js
@@ -9,19 +9,19 @@ description: >
step 1 )
---*/
- var arg = function () {
- return arguments;
- }();
+var arg = function() {
+ return arguments;
+}();
- Object.defineProperty(arg, "prop", {
- value: 11,
- configurable: false
- });
+Object.defineProperty(arg, "prop", {
+ value: 11,
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperties(arg, {
- prop: {
- value: 12,
- configurable: true
- }
- });
+ Object.defineProperties(arg, {
+ prop: {
+ value: 12,
+ configurable: true
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-220.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-220.js
index 748ce948f..4f86b5e13 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-220.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-220.js
@@ -13,14 +13,14 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "0", {
- writable: true,
- configurable: true
+ writable: true,
+ configurable: true
});
Object.defineProperties(arr, {
- "0": {
- writable: false
- }
+ "0": {
+ writable: false
+ }
});
verifyEqualTo(arr, "0", undefined);
@@ -29,4 +29,3 @@ verifyNotWritable(arr, "0");
verifyNotEnumerable(arr, "0");
verifyConfigurable(arr, "0");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-221.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-221.js
index debb4e15a..7644225b8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-221.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-221.js
@@ -14,17 +14,17 @@ includes: [propertyHelper.js]
var arr = [];
function get_func() {
- return 10;
+ return 10;
}
Object.defineProperty(arr, "0", {
- get: get_func
+ get: get_func
});
Object.defineProperties(arr, {
- "0": {
- get: get_func
- }
+ "0": {
+ get: get_func
+ }
});
verifyEqualTo(arr, "0", get_func());
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-222.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-222.js
index 7d8f78cf7..6e26cc004 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-222.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-222.js
@@ -14,17 +14,17 @@ includes: [propertyHelper.js]
var arr = [];
function set_func(value) {
- arr.setVerifyHelpProp = value;
+ arr.setVerifyHelpProp = value;
}
Object.defineProperty(arr, "0", {
- set: set_func
+ set: set_func
});
Object.defineProperties(arr, {
- "0": {
- set: set_func
- }
+ "0": {
+ set: set_func
+ }
});
verifyWritable(arr, "0", "setVerifyHelpProp");
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-223.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-223.js
index da7a0bac9..6bcd5d2b8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-223.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-223.js
@@ -13,13 +13,13 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "0", {
- enumerable: true
+ enumerable: true
});
Object.defineProperties(arr, {
- "0": {
- enumerable: true
- }
+ "0": {
+ enumerable: true
+ }
});
verifyEqualTo(arr, "0", undefined);
@@ -28,4 +28,3 @@ verifyNotWritable(arr, "0");
verifyEnumerable(arr, "0");
verifyNotConfigurable(arr, "0");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-224.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-224.js
index 70563553e..1392677bc 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-224.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-224.js
@@ -13,14 +13,14 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "0", {
- enumerable: true,
- configurable: true
+ enumerable: true,
+ configurable: true
});
Object.defineProperties(arr, {
- "0": {
- enumerable: false
- }
+ "0": {
+ enumerable: false
+ }
});
verifyEqualTo(arr, "0", undefined);
@@ -29,4 +29,3 @@ verifyNotWritable(arr, "0");
verifyNotEnumerable(arr, "0");
verifyConfigurable(arr, "0");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-225.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-225.js
index 7c33a6566..05a09c6c6 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-225.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-225.js
@@ -13,13 +13,13 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "0", {
- configurable: true
+ configurable: true
});
Object.defineProperties(arr, {
- "0": {
- configurable: true
- }
+ "0": {
+ configurable: true
+ }
});
verifyEqualTo(arr, "0", undefined);
@@ -28,4 +28,3 @@ verifyNotWritable(arr, "0");
verifyNotEnumerable(arr, "0");
verifyConfigurable(arr, "0");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-226.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-226.js
index 70706f009..dae3f933e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-226.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-226.js
@@ -13,13 +13,13 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "0", {
- configurable: true
+ configurable: true
});
Object.defineProperties(arr, {
- "0": {
- configurable: false
- }
+ "0": {
+ configurable: false
+ }
});
verifyEqualTo(arr, "0", undefined);
@@ -28,4 +28,3 @@ verifyNotWritable(arr, "0");
verifyNotEnumerable(arr, "0");
verifyNotConfigurable(arr, "0");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-227.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-227.js
index 58bdad714..653550a21 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-227.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-227.js
@@ -15,28 +15,28 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "1", {
- value: 3,
- configurable: false
+ value: 3,
+ configurable: false
});
try {
- Object.defineProperties(arr, {
- "1": {
- value: 13,
- configurable: true
- }
- });
+ Object.defineProperties(arr, {
+ "1": {
+ value: 13,
+ configurable: true
+ }
+ });
} catch (e) {
- verifyEqualTo(arr, "1", 3);
+ verifyEqualTo(arr, "1", 3);
- verifyNotWritable(arr, "1");
+ verifyNotWritable(arr, "1");
- verifyNotEnumerable(arr, "1");
+ verifyNotEnumerable(arr, "1");
- verifyNotConfigurable(arr, "1");
+ verifyNotConfigurable(arr, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-228.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-228.js
index 7eaededb8..a250ae9d8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-228.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-228.js
@@ -16,31 +16,31 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "1", {
- value: 3,
- configurable: false,
- enumerable: false
+ value: 3,
+ configurable: false,
+ enumerable: false
});
try {
- Object.defineProperties(arr, {
- "1": {
- value: 13,
- enumerable: true
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arr, {
+ "1": {
+ value: 13,
+ enumerable: true
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arr, "1", 3);
+ verifyEqualTo(arr, "1", 3);
- verifyNotWritable(arr, "1");
+ verifyNotWritable(arr, "1");
- verifyNotEnumerable(arr, "1");
+ verifyNotEnumerable(arr, "1");
- verifyNotConfigurable(arr, "1");
+ verifyNotConfigurable(arr, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-229.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-229.js
index 07f79fba3..af726bb47 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-229.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-229.js
@@ -15,32 +15,32 @@ includes: [propertyHelper.js]
var arr = [];
function set_fun(value) {
- arr.setVerifyHelpProp = value;
+ arr.setVerifyHelpProp = value;
}
Object.defineProperty(arr, "1", {
- set: set_fun,
- configurable: false
+ set: set_fun,
+ configurable: false
});
try {
- Object.defineProperties(arr, {
- "1": {
- value: 13
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arr, {
+ "1": {
+ value: 13
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyWritable(arr, "1", "setVerifyHelpProp");
+ verifyWritable(arr, "1", "setVerifyHelpProp");
- verifyNotEnumerable(arr, "1");
+ verifyNotEnumerable(arr, "1");
- verifyNotConfigurable(arr, "1");
+ verifyNotConfigurable(arr, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-230.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-230.js
index 77e9b5712..f73689086 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-230.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-230.js
@@ -15,28 +15,28 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "1", {
- value: 3,
- configurable: false
+ value: 3,
+ configurable: false
});
try {
- Object.defineProperties(arr, {
- "1": {
- set: function () { }
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arr, {
+ "1": {
+ set: function() {}
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arr, "1", 3);
+ verifyEqualTo(arr, "1", 3);
- verifyNotWritable(arr, "1");
+ verifyNotWritable(arr, "1");
- verifyNotEnumerable(arr, "1");
+ verifyNotEnumerable(arr, "1");
- verifyNotConfigurable(arr, "1");
+ verifyNotConfigurable(arr, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-231.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-231.js
index 5211ef404..65eab1859 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-231.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-231.js
@@ -16,13 +16,13 @@ var arr = [];
arr[1] = 3; // default value of attributes: writable: true, configurable: true, enumerable: true
function set_fun(value) {
- arr.setVerifyHelpProp = value;
+ arr.setVerifyHelpProp = value;
}
Object.defineProperties(arr, {
- "1": {
- set: set_fun
- }
+ "1": {
+ set: set_fun
+ }
});
verifyWritable(arr, "1", "setVerifyHelpProp");
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-232.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-232.js
index 8010987b0..03d8e1cfd 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-232.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-232.js
@@ -15,17 +15,17 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "1", {
- get: function () {
- return 3;
- },
- configurable: true
+ get: function() {
+ return 3;
+ },
+ configurable: true
});
Object.defineProperties(arr, {
- "1": {
- value: 12
- }
+ "1": {
+ value: 12
+ }
});
verifyEqualTo(arr, "1", 12);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-233.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-233.js
index 3bceb0c4d..3980d3d26 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-233.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-233.js
@@ -17,29 +17,29 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "1", {
- configurable: false,
- writable: false
+ configurable: false,
+ writable: false
});
try {
- Object.defineProperties(arr, {
- "1": {
- writable: true
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arr, {
+ "1": {
+ writable: true
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arr, "1", undefined);
+ verifyEqualTo(arr, "1", undefined);
- verifyNotWritable(arr, "1");
+ verifyNotWritable(arr, "1");
- verifyNotEnumerable(arr, "1");
+ verifyNotEnumerable(arr, "1");
- verifyNotConfigurable(arr, "1");
+ verifyNotConfigurable(arr, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-234.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-234.js
index b7e595b56..a9e97ed64 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-234.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-234.js
@@ -18,30 +18,30 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "1", {
- value: 3,
- configurable: false,
- writable: false
+ value: 3,
+ configurable: false,
+ writable: false
});
try {
- Object.defineProperties(arr, {
- "1": {
- value: "abc"
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arr, {
+ "1": {
+ value: "abc"
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arr, "1", 3);
+ verifyEqualTo(arr, "1", 3);
- verifyNotWritable(arr, "1");
+ verifyNotWritable(arr, "1");
- verifyNotEnumerable(arr, "1");
+ verifyNotEnumerable(arr, "1");
- verifyNotConfigurable(arr, "1");
+ verifyNotConfigurable(arr, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-235.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-235.js
index 1d32ba931..6b05968e0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-235.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-235.js
@@ -15,27 +15,27 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "1", {
- value: +0
+ value: +0
});
try {
- Object.defineProperties(arr, {
- "1": {
- value: -0
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arr, {
+ "1": {
+ value: -0
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arr, "1", +0);
+ verifyEqualTo(arr, "1", +0);
- verifyNotWritable(arr, "1");
+ verifyNotWritable(arr, "1");
- verifyNotEnumerable(arr, "1");
+ verifyNotEnumerable(arr, "1");
- verifyNotConfigurable(arr, "1");
+ verifyNotConfigurable(arr, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-236.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-236.js
index 9cd2f3b62..d8a49387c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-236.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-236.js
@@ -15,28 +15,28 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "1", {
- value: -0
+ value: -0
});
try {
- Object.defineProperties(arr, {
- "1": {
- value: +0
- }
- });
+ Object.defineProperties(arr, {
+ "1": {
+ value: +0
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arr, "1", -0);
+ verifyEqualTo(arr, "1", -0);
- verifyNotWritable(arr, "1");
+ verifyNotWritable(arr, "1");
- verifyNotEnumerable(arr, "1");
+ verifyNotEnumerable(arr, "1");
- verifyNotConfigurable(arr, "1");
+ verifyNotConfigurable(arr, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-237.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-237.js
index ee9913799..b0d4a4ca9 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-237.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-237.js
@@ -17,27 +17,27 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "1", {
- value: 12
+ value: 12
});
try {
- Object.defineProperties(arr, {
- "1": {
- value: 36
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arr, {
+ "1": {
+ value: 36
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arr, "1", 12);
+ verifyEqualTo(arr, "1", 12);
- verifyNotWritable(arr, "1");
+ verifyNotWritable(arr, "1");
- verifyNotEnumerable(arr, "1");
+ verifyNotEnumerable(arr, "1");
- verifyNotConfigurable(arr, "1");
+ verifyNotConfigurable(arr, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-238.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-238.js
index 12f1bdf6b..2874c575f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-238.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-238.js
@@ -16,27 +16,27 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "1", {
- value: "abcd"
+ value: "abcd"
});
try {
- Object.defineProperties(arr, {
- "1": {
- value: "efgh"
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arr, {
+ "1": {
+ value: "efgh"
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arr, "1", "abcd");
+ verifyEqualTo(arr, "1", "abcd");
- verifyNotWritable(arr, "1");
+ verifyNotWritable(arr, "1");
- verifyNotEnumerable(arr, "1");
+ verifyNotEnumerable(arr, "1");
- verifyNotConfigurable(arr, "1");
+ verifyNotConfigurable(arr, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-239.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-239.js
index f80453b6b..491f525f5 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-239.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-239.js
@@ -16,28 +16,28 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "1", {
- value: true
+ value: true
});
try {
- Object.defineProperties(arr, {
- "1": {
- value: false
- }
- });
+ Object.defineProperties(arr, {
+ "1": {
+ value: false
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arr, "1", true);
+ verifyEqualTo(arr, "1", true);
- verifyNotWritable(arr, "1");
+ verifyNotWritable(arr, "1");
- verifyNotEnumerable(arr, "1");
+ verifyNotEnumerable(arr, "1");
- verifyNotConfigurable(arr, "1");
+ verifyNotConfigurable(arr, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-24.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-24.js
index 1bf7cfbe7..47298404e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-24.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-24.js
@@ -12,16 +12,16 @@ includes: [propertyHelper.js]
Object.defineProperty(this, "prop", {
-value: 11,
-writable: true,
-enumerable: true,
-configurable: true
+ value: 11,
+ writable: true,
+ enumerable: true,
+ configurable: true
});
Object.defineProperties(this, {
- prop: {
- value: 12
- }
+ prop: {
+ value: 12
+ }
});
verifyEqualTo(this, "prop", 12);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-240.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-240.js
index 602c6232e..36c03a768 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-240.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-240.js
@@ -14,32 +14,36 @@ includes: [propertyHelper.js]
---*/
var arr = [];
-var obj1 = { value: 12 };
-var obj2 = { value: 36 };
+var obj1 = {
+ value: 12
+};
+var obj2 = {
+ value: 36
+};
Object.defineProperty(arr, "1", {
- value: obj1
+ value: obj1
});
try {
- Object.defineProperties(arr, {
- "1": {
- value: obj2
- }
- });
+ Object.defineProperties(arr, {
+ "1": {
+ value: obj2
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arr, "1", obj1);
+ verifyEqualTo(arr, "1", obj1);
- verifyNotWritable(arr, "1");
+ verifyNotWritable(arr, "1");
- verifyNotEnumerable(arr, "1");
+ verifyNotEnumerable(arr, "1");
- verifyNotConfigurable(arr, "1");
+ verifyNotConfigurable(arr, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-241.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-241.js
index 79a4db019..74406da4a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-241.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-241.js
@@ -17,29 +17,29 @@ includes: [propertyHelper.js]
var arr = [];
function set_fun(value) {
- arr.setVerifyHelpProp = value;
+ arr.setVerifyHelpProp = value;
}
Object.defineProperty(arr, "1", {
- set: set_fun
+ set: set_fun
});
try {
- Object.defineProperties(arr, {
- "1": {
- set: function () { }
- }
- });
+ Object.defineProperties(arr, {
+ "1": {
+ set: function() {}
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyWritable(arr, "1", "setVerifyHelpProp");
+ verifyWritable(arr, "1", "setVerifyHelpProp");
- verifyNotEnumerable(arr, "1");
+ verifyNotEnumerable(arr, "1");
- verifyNotConfigurable(arr, "1");
+ verifyNotConfigurable(arr, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-242.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-242.js
index 68874dde0..814abc3ec 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-242.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-242.js
@@ -16,29 +16,29 @@ includes: [propertyHelper.js]
var arr = [];
function set_fun(value) {
- arr.setVerifyHelpProp = value;
+ arr.setVerifyHelpProp = value;
}
Object.defineProperty(arr, "1", {
- set: set_fun
+ set: set_fun
});
try {
- Object.defineProperties(arr, {
- "1": {
- set: undefined
- }
- });
+ Object.defineProperties(arr, {
+ "1": {
+ set: undefined
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyWritable(arr, "1", "setVerifyHelpProp");
+ verifyWritable(arr, "1", "setVerifyHelpProp");
- verifyNotEnumerable(arr, "1");
+ verifyNotEnumerable(arr, "1");
- verifyNotConfigurable(arr, "1");
+ verifyNotConfigurable(arr, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-243.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-243.js
index 7077984f7..e9e5140eb 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-243.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-243.js
@@ -16,13 +16,13 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "1", {
- set: undefined
+ set: undefined
});
Object.defineProperties(arr, {
- "1": {
- set: undefined
- }
+ "1": {
+ set: undefined
+ }
});
verifyNotEnumerable(arr, "1");
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-244.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-244.js
index bdc27f3ec..7d465cd8a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-244.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-244.js
@@ -17,31 +17,31 @@ includes: [propertyHelper.js]
var arr = [];
function get_fun() {
- return 36;
+ return 36;
}
Object.defineProperty(arr, "1", {
- get: get_fun
+ get: get_fun
});
try {
- Object.defineProperties(arr, {
- "1": {
- get: function () {
- return 12;
- }
- }
- });
-
- $ERROR("Expected an exception.");
+ Object.defineProperties(arr, {
+ "1": {
+ get: function() {
+ return 12;
+ }
+ }
+ });
+
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arr, "1", get_fun());
+ verifyEqualTo(arr, "1", get_fun());
- verifyNotEnumerable(arr, "1");
+ verifyNotEnumerable(arr, "1");
- verifyNotConfigurable(arr, "1");
+ verifyNotConfigurable(arr, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-245.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-245.js
index f18c954ae..c4037f25d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-245.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-245.js
@@ -16,28 +16,28 @@ includes: [propertyHelper.js]
var arr = [];
function get_fun() {
- return 36;
+ return 36;
}
Object.defineProperty(arr, "1", {
- get: get_fun
+ get: get_fun
});
try {
- Object.defineProperties(arr, {
- "1": {
- get: undefined
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arr, {
+ "1": {
+ get: undefined
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arr, "1", get_fun());
+ verifyEqualTo(arr, "1", get_fun());
- verifyNotEnumerable(arr, "1");
+ verifyNotEnumerable(arr, "1");
- verifyNotConfigurable(arr, "1");
+ verifyNotConfigurable(arr, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-246.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-246.js
index 254a77b65..a4f6b477d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-246.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-246.js
@@ -17,16 +17,15 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "1", {
- get: undefined
+ get: undefined
});
Object.defineProperties(arr, {
- "1": {
- get: undefined
- }
+ "1": {
+ get: undefined
+ }
});
verifyNotEnumerable(arr, "1");
verifyNotConfigurable(arr, "1");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-247.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-247.js
index dde8f1693..e80d3aae0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-247.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-247.js
@@ -15,9 +15,9 @@ includes: [propertyHelper.js]
var arr = [12];
Object.defineProperties(arr, {
- "0": {
- value: 36
- }
+ "0": {
+ value: 36
+ }
});
verifyEqualTo(arr, "0", 36);
@@ -26,4 +26,3 @@ verifyWritable(arr, "0");
verifyEnumerable(arr, "0");
verifyConfigurable(arr, "0");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-248.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-248.js
index 8dc6f3b24..5d0431684 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-248.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-248.js
@@ -15,9 +15,9 @@ includes: [propertyHelper.js]
var arr = [12];
Object.defineProperties(arr, {
- "0": {
- value: undefined
- }
+ "0": {
+ value: undefined
+ }
});
verifyEqualTo(arr, "0", undefined);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-249.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-249.js
index 1af6dc847..25b2ca47f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-249.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-249.js
@@ -15,9 +15,9 @@ includes: [propertyHelper.js]
var arr = [undefined];
Object.defineProperties(arr, {
- "0": {
- value: 12
- }
+ "0": {
+ value: 12
+ }
});
verifyEqualTo(arr, "0", 12);
@@ -26,4 +26,3 @@ verifyWritable(arr, "0");
verifyEnumerable(arr, "0");
verifyConfigurable(arr, "0");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-25.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-25.js
index 3597664af..f6549a433 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-25.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-25.js
@@ -8,14 +8,14 @@ description: >
is thrown when 'O' is not extensible (8.12.9 step 3)
---*/
- var obj = {};
- Object.preventExtensions(obj);
+var obj = {};
+Object.preventExtensions(obj);
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- prop: {
- value: 12,
- configurable: true
- }
- });
+ Object.defineProperties(obj, {
+ prop: {
+ value: 12,
+ configurable: true
+ }
+ });
});
assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-250.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-250.js
index b9e5ace9a..0cfd563b5 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-250.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-250.js
@@ -15,9 +15,9 @@ includes: [propertyHelper.js]
var arr = [100];
Object.defineProperties(arr, {
- "0": {
- writable: false
- }
+ "0": {
+ writable: false
+ }
});
verifyEqualTo(arr, "0", 100);
@@ -26,4 +26,3 @@ verifyNotWritable(arr, "0");
verifyEnumerable(arr, "0");
verifyConfigurable(arr, "0");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-251.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-251.js
index a4f6abd72..bc07d4e52 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-251.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-251.js
@@ -15,9 +15,9 @@ includes: [propertyHelper.js]
var arr = [12];
Object.defineProperties(arr, {
- "0": {
- enumerable: false
- }
+ "0": {
+ enumerable: false
+ }
});
verifyEqualTo(arr, "0", 12);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-252.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-252.js
index e9d04518a..5d462269c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-252.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-252.js
@@ -15,9 +15,9 @@ includes: [propertyHelper.js]
var arr = [12];
Object.defineProperties(arr, {
- "0": {
- configurable: false
- }
+ "0": {
+ configurable: false
+ }
});
verifyEqualTo(arr, "0", 12);
@@ -26,4 +26,3 @@ verifyWritable(arr, "0");
verifyEnumerable(arr, "0");
verifyNotConfigurable(arr, "0");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-253.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-253.js
index 3d8a8044c..34fafda67 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-253.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-253.js
@@ -15,11 +15,11 @@ includes: [propertyHelper.js]
var arr = [12];
Object.defineProperties(arr, {
- "0": {
- value: 36,
- writable: false,
- configurable: false
- }
+ "0": {
+ value: 36,
+ writable: false,
+ configurable: false
+ }
});
verifyEqualTo(arr, "0", 36);
@@ -28,4 +28,3 @@ verifyNotWritable(arr, "0");
verifyEnumerable(arr, "0");
verifyNotConfigurable(arr, "0");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-254.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-254.js
index d97250fe6..930ca2baa 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-254.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-254.js
@@ -15,20 +15,20 @@ includes: [propertyHelper.js]
var arr = [];
function get_fun() {
- return 36;
+ return 36;
}
Object.defineProperty(arr, "0", {
- get: function () {
- return 12;
- },
- configurable: true
+ get: function() {
+ return 12;
+ },
+ configurable: true
});
Object.defineProperties(arr, {
- "0": {
- get: get_fun
- }
+ "0": {
+ get: get_fun
+ }
});
verifyEqualTo(arr, "0", get_fun());
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-255.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-255.js
index 8321e0c54..10d568585 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-255.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-255.js
@@ -15,16 +15,16 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "0", {
- get: function () {
- return 12;
- },
- configurable: true
+ get: function() {
+ return 12;
+ },
+ configurable: true
});
Object.defineProperties(arr, {
- "0": {
- get: undefined
- }
+ "0": {
+ get: undefined
+ }
});
verifyNotEnumerable(arr, "0");
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-256.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-256.js
index 202953c71..c71b8b28c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-256.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-256.js
@@ -15,18 +15,18 @@ includes: [propertyHelper.js]
var arr = [];
function get_fun() {
- return 36;
+ return 36;
}
Object.defineProperty(arr, "0", {
- get: undefined,
- configurable: true
+ get: undefined,
+ configurable: true
});
Object.defineProperties(arr, {
- "0": {
- get: get_fun
- }
+ "0": {
+ get: get_fun
+ }
});
verifyEqualTo(arr, "0", get_fun());
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-257.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-257.js
index 21f3d4fa1..7ef402276 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-257.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-257.js
@@ -15,22 +15,21 @@ includes: [propertyHelper.js]
var arr = [];
function set_fun(value) {
- arr.setVerifyHelpProp = value;
+ arr.setVerifyHelpProp = value;
}
Object.defineProperty(arr, "0", {
- set: function () { },
- configurable: true
+ set: function() {},
+ configurable: true
});
Object.defineProperties(arr, {
- "0": {
- set: set_fun
- }
+ "0": {
+ set: set_fun
+ }
});
verifyWritable(arr, "0", "setVerifyHelpProp");
verifyNotEnumerable(arr, "0");
verifyConfigurable(arr, "0");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-258.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-258.js
index be6f9065e..ebe68bdd9 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-258.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-258.js
@@ -15,14 +15,14 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "0", {
- set: function () { },
- configurable: true
+ set: function() {},
+ configurable: true
});
Object.defineProperties(arr, {
- "0": {
- set: undefined
- }
+ "0": {
+ set: undefined
+ }
});
verifyNotEnumerable(arr, "0");
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-259.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-259.js
index 5c9552d4d..bfc6e92ee 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-259.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-259.js
@@ -15,17 +15,17 @@ includes: [propertyHelper.js]
var arr = [];
function set_fun(value) {
- arr.setVerifyHelpProp = value;
+ arr.setVerifyHelpProp = value;
}
Object.defineProperty(arr, "0", {
- set: undefined,
- configurable: true
+ set: undefined,
+ configurable: true
});
Object.defineProperties(arr, {
- "0": {
- set: set_fun
- }
+ "0": {
+ set: set_fun
+ }
});
verifyWritable(arr, "0", "setVerifyHelpProp");
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-26.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-26.js
index 507a1c249..6aaeef9a9 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-26.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-26.js
@@ -9,15 +9,15 @@ description: >
step 4.a)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- prop: {
- configurable: true,
- enumerable: true
- }
- });
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperties(obj, {
+ prop: {
+ configurable: true,
+ enumerable: true
+ }
+});
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc.hasOwnProperty("value"), 'desc.hasOwnProperty("value") !== true');
assert.sameValue(typeof desc.value, "undefined", 'typeof desc.value');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-260.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-260.js
index 2afcae34b..cef2a2c89 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-260.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-260.js
@@ -15,18 +15,18 @@ includes: [propertyHelper.js]
var arr = [];
function set_fun(value) {
- arr.setVerifyHelpProp = value;
+ arr.setVerifyHelpProp = value;
}
Object.defineProperty(arr, "0", {
- set: set_fun,
- enumerable: true,
- configurable: true
+ set: set_fun,
+ enumerable: true,
+ configurable: true
});
Object.defineProperties(arr, {
- "0": {
- enumerable: false
- }
+ "0": {
+ enumerable: false
+ }
});
verifyWritable(arr, "0", "setVerifyHelpProp");
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-261.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-261.js
index f00373abd..95d0592bf 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-261.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-261.js
@@ -15,21 +15,20 @@ includes: [propertyHelper.js]
var arr = [];
function set_fun(value) {
- arr.setVerifyHelpProp = value;
+ arr.setVerifyHelpProp = value;
}
Object.defineProperty(arr, "0", {
- set: set_fun,
- configurable: true
+ set: set_fun,
+ configurable: true
});
Object.defineProperties(arr, {
- "0": {
- configurable: false
- }
+ "0": {
+ configurable: false
+ }
});
verifyWritable(arr, "0", "setVerifyHelpProp");
verifyNotEnumerable(arr, "0");
verifyNotConfigurable(arr, "0");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-262.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-262.js
index c0b2e5600..89c37c33c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-262.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-262.js
@@ -15,26 +15,27 @@ includes: [propertyHelper.js]
var arr = [];
function get_fun() {
- return 36;
+ return 36;
}
+
function set_fun(value) {
- arr.setVerifyHelpProp = value;
+ arr.setVerifyHelpProp = value;
}
Object.defineProperty(arr, "0", {
- get: function () {
- return 12;
- },
- set: set_fun,
- enumerable: true,
- configurable: true
+ get: function() {
+ return 12;
+ },
+ set: set_fun,
+ enumerable: true,
+ configurable: true
});
Object.defineProperties(arr, {
- "0": {
- get: get_fun,
- enumerable: false,
- configurable: false
- }
+ "0": {
+ get: get_fun,
+ enumerable: false,
+ configurable: false
+ }
});
verifyEqualTo(arr, "0", get_fun());
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-263.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-263.js
index d0dbf4145..aab9995f9 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-263.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-263.js
@@ -10,15 +10,15 @@ description: >
(15.4.5.1 step 4.e)
---*/
- var arr = [];
+var arr = [];
- arr.length = 3; // default value of length: writable: true, configurable: false, enumerable: false
+arr.length = 3; // default value of length: writable: true, configurable: false, enumerable: false
- Object.defineProperties(arr, {
- "1": {
- value: 26
- }
- });
+Object.defineProperties(arr, {
+ "1": {
+ value: 26
+ }
+});
assert.sameValue(arr.length, 3, 'arr.length');
assert.sameValue(arr[1], 26, 'arr[1]');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-264.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-264.js
index 5fa17de2b..03833d7c4 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-264.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-264.js
@@ -10,15 +10,15 @@ description: >
property in 'O' (15.4.5.1 step 4.e.ii)
---*/
- var arr = [];
+var arr = [];
- arr.length = 3; // default value of length: writable: true, configurable: false, enumerable: false
+arr.length = 3; // default value of length: writable: true, configurable: false, enumerable: false
- Object.defineProperties(arr, {
- "3": {
- value: 26
- }
- });
+Object.defineProperties(arr, {
+ "3": {
+ value: 26
+ }
+});
assert.sameValue(arr.length, 4, 'arr.length');
assert.sameValue(arr[3], 26, 'arr[3]');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-265.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-265.js
index 66cc2afd9..c20b84c7f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-265.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-265.js
@@ -10,13 +10,13 @@ description: >
length property in 'O' (15.4.5.1 step 4.e.ii)
---*/
- var arr = [];
+var arr = [];
- Object.defineProperties(arr, {
- "5": {
- value: 26
- }
- });
+Object.defineProperties(arr, {
+ "5": {
+ value: 26
+ }
+});
assert.sameValue(arr.length, 6, 'arr.length');
assert.sameValue(arr[5], 26, 'arr[5]');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-266.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-266.js
index 8183fd327..886cbecff 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-266.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-266.js
@@ -15,12 +15,12 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperties(arr, {
- "property": {
- value: 12,
- writable: true,
- enumerable: true,
- configurable: true
- }
+ "property": {
+ value: 12,
+ writable: true,
+ enumerable: true,
+ configurable: true
+ }
});
verifyEqualTo(arr, "property", 12);
@@ -31,6 +31,5 @@ verifyEnumerable(arr, "property");
verifyConfigurable(arr, "property");
if (arr.length !== 0) {
- $ERROR('Expected arr.length === 0, actually ' + arr.length);
+ $ERROR('Expected arr.length === 0, actually ' + arr.length);
}
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-267.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-267.js
index 504bb0dd0..3a2ac372d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-267.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-267.js
@@ -14,19 +14,20 @@ includes: [propertyHelper.js]
var arr = [];
function get_fun() {
- return 12;
+ return 12;
}
+
function set_fun(value) {
- arr.setVerifyHelpProp = value;
+ arr.setVerifyHelpProp = value;
}
Object.defineProperties(arr, {
- "property": {
- get: get_fun,
- set: set_fun,
- enumerable: true,
- configurable: true
- }
+ "property": {
+ get: get_fun,
+ set: set_fun,
+ enumerable: true,
+ configurable: true
+ }
});
verifyEqualTo(arr, "property", get_fun());
@@ -37,6 +38,5 @@ verifyEnumerable(arr, "property");
verifyConfigurable(arr, "property");
if (arr.length !== 0) {
- $ERROR('Expected arr.length === 0, actually ' + arr.length);
+ $ERROR('Expected arr.length === 0, actually ' + arr.length);
}
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-268.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-268.js
index 442ce615a..7c9b38e2a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-268.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-268.js
@@ -11,26 +11,28 @@ includes: [propertyHelper.js]
---*/
var arr = [];
+
function get_fun() {
- return 12;
+ return 12;
}
+
function set_fun(value) {
- arr.verifySetFun = value;
+ arr.verifySetFun = value;
}
Object.defineProperty(arr, "property", {
- get: function () {
- return 36;
- },
- enumerable: true,
- configurable: true
+ get: function() {
+ return 36;
+ },
+ enumerable: true,
+ configurable: true
});
Object.defineProperties(arr, {
- "property": {
- get: get_fun,
- set: set_fun,
- enumerable: false
- }
+ "property": {
+ get: get_fun,
+ set: set_fun,
+ enumerable: false
+ }
});
verifyEqualTo(arr, "property", get_fun());
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-269.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-269.js
index fbd5296bc..5a5f33fbb 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-269.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-269.js
@@ -15,11 +15,11 @@ var arr = [];
arr.property = 12; // default value of attributes: writable: true, configurable: true, enumerable: true
Object.defineProperties(arr, {
- "property": {
- writable: false,
- enumerable: false,
- configurable: false
- }
+ "property": {
+ writable: false,
+ enumerable: false,
+ configurable: false
+ }
});
verifyEqualTo(arr, "property", 12);
@@ -30,6 +30,5 @@ verifyNotEnumerable(arr, "property");
verifyNotConfigurable(arr, "property");
if (arr.length !== 0) {
- $ERROR('Expected arr.length === 0, actually ' + arr.length);
+ $ERROR('Expected arr.length === 0, actually ' + arr.length);
}
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-27.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-27.js
index a2b935595..6e5601ac3 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-27.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-27.js
@@ -9,15 +9,15 @@ description: >
'desc' (8.12.9 step 4.a.i)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- prop: {
- writable: true
- }
- });
+Object.defineProperties(obj, {
+ prop: {
+ writable: true
+ }
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc.hasOwnProperty("value"), 'desc.hasOwnProperty("value") !== true');
assert.sameValue(typeof desc.value, "undefined", 'typeof desc.value');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-270.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-270.js
index 3d82d9457..128bdf8be 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-270.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-270.js
@@ -15,27 +15,27 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "property", {
- value: 12
+ value: 12
});
try {
- Object.defineProperties(arr, {
- "property": {
- value: 36
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arr, {
+ "property": {
+ value: 36
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arr, "property", 12);
+ verifyEqualTo(arr, "property", 12);
- verifyNotWritable(arr, "property");
+ verifyNotWritable(arr, "property");
- verifyNotEnumerable(arr, "property");
+ verifyNotEnumerable(arr, "property");
- verifyNotConfigurable(arr, "property");
+ verifyNotConfigurable(arr, "property");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-271.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-271.js
index a305f8b0e..00e6605b9 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-271.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-271.js
@@ -15,27 +15,27 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "property", {
- writable: false
+ writable: false
});
try {
- Object.defineProperties(arr, {
- "property": {
- writable: true
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arr, {
+ "property": {
+ writable: true
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arr, "property", undefined);
+ verifyEqualTo(arr, "property", undefined);
- verifyNotWritable(arr, "property");
+ verifyNotWritable(arr, "property");
- verifyNotEnumerable(arr, "property");
+ verifyNotEnumerable(arr, "property");
- verifyNotConfigurable(arr, "property");
+ verifyNotConfigurable(arr, "property");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-272.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-272.js
index b6a732615..deacff500 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-272.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-272.js
@@ -15,28 +15,28 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "property", {
- value: 12,
- enumerable: false
+ value: 12,
+ enumerable: false
});
try {
- Object.defineProperties(arr, {
- "property": {
- enumerable: true
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arr, {
+ "property": {
+ enumerable: true
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arr, "property", 12);
+ verifyEqualTo(arr, "property", 12);
- verifyNotWritable(arr, "property");
+ verifyNotWritable(arr, "property");
- verifyNotEnumerable(arr, "property");
+ verifyNotEnumerable(arr, "property");
- verifyNotConfigurable(arr, "property");
+ verifyNotConfigurable(arr, "property");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-273.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-273.js
index 5a403be99..c300e411d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-273.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-273.js
@@ -15,27 +15,27 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperty(arr, "property", {
- value: 12
+ value: 12
});
try {
- Object.defineProperties(arr, {
- "property": {
- configurable: true
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arr, {
+ "property": {
+ configurable: true
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arr, "property", 12);
+ verifyEqualTo(arr, "property", 12);
- verifyNotWritable(arr, "property");
+ verifyNotWritable(arr, "property");
- verifyNotEnumerable(arr, "property");
+ verifyNotEnumerable(arr, "property");
- verifyNotConfigurable(arr, "property");
+ verifyNotConfigurable(arr, "property");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-274.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-274.js
index 8154599e0..8d1baaab9 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-274.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-274.js
@@ -14,36 +14,37 @@ includes: [propertyHelper.js]
var arr = [];
function get_fun() {
- return 37;
+ return 37;
}
+
function set_fun(value) {
- arr.verifySetFun = value;
+ arr.verifySetFun = value;
}
Object.defineProperty(arr, "property", {
- get: get_fun,
- set: set_fun
+ get: get_fun,
+ set: set_fun
});
try {
- Object.defineProperties(arr, {
- "property": {
- get: function () {
- return 36;
- }
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arr, {
+ "property": {
+ get: function() {
+ return 36;
+ }
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arr, "property", get_fun());
+ verifyEqualTo(arr, "property", get_fun());
- verifyWritable(arr, "property", "verifySetFun");
+ verifyWritable(arr, "property", "verifySetFun");
- verifyNotEnumerable(arr, "property");
+ verifyNotEnumerable(arr, "property");
- verifyNotConfigurable(arr, "property");
+ verifyNotConfigurable(arr, "property");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-275.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-275.js
index 8a1dfa710..1dbc7bb0f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-275.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-275.js
@@ -15,27 +15,27 @@ includes: [propertyHelper.js]
var arr = [];
function set_fun(value) {
- arr.setVerifyHelpProp = value;
+ arr.setVerifyHelpProp = value;
}
Object.defineProperty(arr, "property", {
- set: set_fun
+ set: set_fun
});
try {
- Object.defineProperties(arr, {
- "property": {
- set: function () { }
- }
- });
+ Object.defineProperties(arr, {
+ "property": {
+ set: function() {}
+ }
+ });
} catch (e) {
- verifyWritable(arr, "property", "setVerifyHelpProp");
+ verifyWritable(arr, "property", "setVerifyHelpProp");
- verifyNotEnumerable(arr, "property");
+ verifyNotEnumerable(arr, "property");
- verifyNotConfigurable(arr, "property");
+ verifyNotConfigurable(arr, "property");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-276.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-276.js
index a185104aa..5da3d5c05 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-276.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-276.js
@@ -15,29 +15,29 @@ includes: [propertyHelper.js]
var arr = [];
function set_fun(value) {
- arr.setVerifyHelpProp = value;
+ arr.setVerifyHelpProp = value;
}
Object.defineProperty(arr, "property", {
- set: set_fun,
- enumerable: false
+ set: set_fun,
+ enumerable: false
});
try {
- Object.defineProperties(arr, {
- "property": {
- enumerable: true
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arr, {
+ "property": {
+ enumerable: true
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyWritable(arr, "property", "setVerifyHelpProp");
+ verifyWritable(arr, "property", "setVerifyHelpProp");
- verifyNotEnumerable(arr, "property");
+ verifyNotEnumerable(arr, "property");
- verifyNotConfigurable(arr, "property");
+ verifyNotConfigurable(arr, "property");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-277.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-277.js
index 13c7086f3..c77ec6b47 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-277.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-277.js
@@ -15,29 +15,29 @@ includes: [propertyHelper.js]
var arr = [];
function set_fun(value) {
- arr.setVerifyHelpProp = value;
+ arr.setVerifyHelpProp = value;
}
Object.defineProperty(arr, "property", {
- set: set_fun,
- configurable: false
+ set: set_fun,
+ configurable: false
});
try {
- Object.defineProperties(arr, {
- "property": {
- configurable: true
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arr, {
+ "property": {
+ configurable: true
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyWritable(arr, "property", "setVerifyHelpProp");
+ verifyWritable(arr, "property", "setVerifyHelpProp");
- verifyNotEnumerable(arr, "property");
+ verifyNotEnumerable(arr, "property");
- verifyNotConfigurable(arr, "property");
+ verifyNotConfigurable(arr, "property");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-278.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-278.js
index b2acfa15a..b8bcd8b2e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-278.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-278.js
@@ -16,18 +16,18 @@ includes: [propertyHelper.js]
var arg;
(function fun(a, b, c) {
- arg = arguments;
+ arg = arguments;
}(0, 1, 2));
delete arg[0];
Object.defineProperties(arg, {
- "0": {
- value: 10,
- writable: true,
- enumerable: true,
- configurable: true
- }
+ "0": {
+ value: 10,
+ writable: true,
+ enumerable: true,
+ configurable: true
+ }
});
verifyEqualTo(arg, "0", 10);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-279.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-279.js
index d2df5266b..17f8a4a9a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-279.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-279.js
@@ -16,25 +16,26 @@ includes: [propertyHelper.js]
var arg;
(function fun(a, b, c) {
- arg = arguments;
+ arg = arguments;
}(0, 1, 2));
delete arg[0];
function get_func() {
- return 10;
+ return 10;
}
+
function set_func(value) {
- arg.setVerifyHelpProp = value;
+ arg.setVerifyHelpProp = value;
}
Object.defineProperties(arg, {
- "0": {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
- }
+ "0": {
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
+ }
});
verifyEqualTo(arg, "0", get_func());
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-28.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-28.js
index 9b31ad36e..5e6dff816 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-28.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-28.js
@@ -13,19 +13,19 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- prop: {
- value: 1001
- }
+ prop: {
+ value: 1001
+ }
});
if (isWritable(obj, "prop")) {
- $ERROR('Expected obj["prop"] not to be writable.');
+ $ERROR('Expected obj["prop"] not to be writable.');
}
if (!obj.hasOwnProperty("prop")) {
- $ERROR('Expected obj.hasOwnProperty("prop") to be true, actually ' + obj.hasOwnProperty("prop"));
+ $ERROR('Expected obj.hasOwnProperty("prop") to be true, actually ' + obj.hasOwnProperty("prop"));
}
if (obj.prop !== 1001) {
- $ERROR('Expected obj.prop === 1001, actually ' + obj.prop);
+ $ERROR('Expected obj.prop === 1001, actually ' + obj.prop);
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-280.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-280.js
index 4f4d8ef57..4e90dcae8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-280.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-280.js
@@ -10,35 +10,35 @@ description: >
attribute values of 'P' (10.6 [[DefineOwnProperty]] step 3)
---*/
- var arg;
-
- (function fun(a, b, c) {
- arg = arguments;
- } (0, 1, 2));
-
- function get_func1() {
- return 10;
- }
-
- Object.defineProperty(arg, "0", {
- get: get_func1,
- enumerable: true,
- configurable: true
- });
-
- function get_func2() {
- return 20;
- }
-
- Object.defineProperties(arg, {
- "0": {
- get: get_func2,
- enumerable: false,
- configurable: false
- }
- });
-
- var desc = Object.getOwnPropertyDescriptor(arg, "0");
+var arg;
+
+(function fun(a, b, c) {
+ arg = arguments;
+}(0, 1, 2));
+
+function get_func1() {
+ return 10;
+}
+
+Object.defineProperty(arg, "0", {
+ get: get_func1,
+ enumerable: true,
+ configurable: true
+});
+
+function get_func2() {
+ return 20;
+}
+
+Object.defineProperties(arg, {
+ "0": {
+ get: get_func2,
+ enumerable: false,
+ configurable: false
+ }
+});
+
+var desc = Object.getOwnPropertyDescriptor(arg, "0");
assert.sameValue(desc.get, get_func2, 'desc.get');
assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-281.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-281.js
index 45585e97c..9254d3da3 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-281.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-281.js
@@ -15,16 +15,16 @@ includes: [propertyHelper.js]
var arg;
(function fun(a, b, c) {
- arg = arguments;
+ arg = arguments;
}(0, 1, 2));
Object.defineProperties(arg, {
- "0": {
- value: 20,
- writable: false,
- enumerable: false,
- configurable: false
- }
+ "0": {
+ value: 20,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ }
});
verifyEqualTo(arg, "0", 20);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-282.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-282.js
index ab2c28488..01c1bdf28 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-282.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-282.js
@@ -16,34 +16,34 @@ includes: [propertyHelper.js]
var arg;
(function fun(a, b, c) {
- arg = arguments;
+ arg = arguments;
}(0, 1, 2));
Object.defineProperty(arg, "0", {
- value: 0,
- writable: false,
- configurable: false
+ value: 0,
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "0": {
- value: 10
- }
- });
+ Object.defineProperties(arg, {
+ "0": {
+ value: 10
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arg, "0", 0);
+ verifyEqualTo(arg, "0", 0);
- verifyNotWritable(arg, "0");
+ verifyNotWritable(arg, "0");
- verifyEnumerable(arg, "0");
+ verifyEnumerable(arg, "0");
- verifyNotConfigurable(arg, "0");
+ verifyNotConfigurable(arg, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-283.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-283.js
index 151852c14..a00a24558 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-283.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-283.js
@@ -16,35 +16,35 @@ includes: [propertyHelper.js]
var arg;
(function fun(a, b, c) {
- arg = arguments;
+ arg = arguments;
}(0, 1, 2));
Object.defineProperty(arg, "0", {
- value: 0,
- writable: false,
- enumerable: false,
- configurable: false
+ value: 0,
+ writable: false,
+ enumerable: false,
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "0": {
- writable: true
- }
- });
+ Object.defineProperties(arg, {
+ "0": {
+ writable: true
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arg, "0", 0);
+ verifyEqualTo(arg, "0", 0);
- verifyNotWritable(arg, "0");
+ verifyNotWritable(arg, "0");
- verifyNotEnumerable(arg, "0");
+ verifyNotEnumerable(arg, "0");
- verifyNotConfigurable(arg, "0");
+ verifyNotConfigurable(arg, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-284.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-284.js
index dbe08b59f..b7401b4e2 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-284.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-284.js
@@ -16,35 +16,35 @@ includes: [propertyHelper.js]
var arg;
(function fun(a, b, c) {
- arg = arguments;
+ arg = arguments;
}(0, 1, 2));
Object.defineProperty(arg, "0", {
- value: 0,
- writable: false,
- enumerable: true,
- configurable: false
+ value: 0,
+ writable: false,
+ enumerable: true,
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "0": {
- enumerable: false
- }
- });
+ Object.defineProperties(arg, {
+ "0": {
+ enumerable: false
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arg, "0", 0);
+ verifyEqualTo(arg, "0", 0);
- verifyNotWritable(arg, "0");
+ verifyNotWritable(arg, "0");
- verifyEnumerable(arg, "0");
+ verifyEnumerable(arg, "0");
- verifyNotConfigurable(arg, "0");
+ verifyNotConfigurable(arg, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-285.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-285.js
index 362cc2dfb..80f05bf0f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-285.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-285.js
@@ -16,35 +16,35 @@ includes: [propertyHelper.js]
var arg;
(function fun(a, b, c) {
- arg = arguments;
+ arg = arguments;
}(0, 1, 2));
Object.defineProperty(arg, "0", {
- value: 0,
- writable: false,
- enumerable: false,
- configurable: false
+ value: 0,
+ writable: false,
+ enumerable: false,
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "0": {
- configurable: true
- }
- });
+ Object.defineProperties(arg, {
+ "0": {
+ configurable: true
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arg, "0", 0);
+ verifyEqualTo(arg, "0", 0);
- verifyNotWritable(arg, "0");
+ verifyNotWritable(arg, "0");
- verifyNotEnumerable(arg, "0");
+ verifyNotEnumerable(arg, "0");
- verifyNotConfigurable(arg, "0");
+ verifyNotConfigurable(arg, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-286.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-286.js
index c65a852dc..3b7581a9c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-286.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-286.js
@@ -11,33 +11,33 @@ description: >
[[DefineOwnProperty]] step 4)
---*/
- var arg;
+var arg;
- (function fun(a, b, c) {
- arg = arguments;
- } (0, 1, 2));
+(function fun(a, b, c) {
+ arg = arguments;
+}(0, 1, 2));
- function get_func1() {
- return 0;
- }
+function get_func1() {
+ return 0;
+}
- Object.defineProperty(arg, "0", {
- get: get_func1,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(arg, "0", {
+ get: get_func1,
+ enumerable: false,
+ configurable: false
+});
- function get_func2() {
- return 10;
- }
+function get_func2() {
+ return 10;
+}
assert.throws(TypeError, function() {
- Object.defineProperties(arg, {
- "0": {
- get: get_func2
- }
- });
+ Object.defineProperties(arg, {
+ "0": {
+ get: get_func2
+ }
+ });
});
- var desc = Object.getOwnPropertyDescriptor(arg, "0");
+var desc = Object.getOwnPropertyDescriptor(arg, "0");
assert.sameValue(desc.get, get_func1, 'desc.get');
assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-287.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-287.js
index 798298cf8..df2778efb 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-287.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-287.js
@@ -11,34 +11,34 @@ description: >
[[DefineOwnProperty]] step 4)
---*/
- var arg;
+var arg;
- (function fun(a, b, c) {
- arg = arguments;
- }(0, 1, 2));
+(function fun(a, b, c) {
+ arg = arguments;
+}(0, 1, 2));
- function get_func() {
- return 0;
- }
+function get_func() {
+ return 0;
+}
- Object.defineProperty(arg, "0", {
- get: get_func,
- set: undefined,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(arg, "0", {
+ get: get_func,
+ set: undefined,
+ enumerable: false,
+ configurable: false
+});
- function set_func(value) {
- arg.setVerifyHelpProp = value;
- }
+function set_func(value) {
+ arg.setVerifyHelpProp = value;
+}
assert.throws(TypeError, function() {
- Object.defineProperties(arg, {
- "0": {
- set: set_func
- }
- });
+ Object.defineProperties(arg, {
+ "0": {
+ set: set_func
+ }
+ });
});
- var desc = Object.getOwnPropertyDescriptor(arg, "0");
+var desc = Object.getOwnPropertyDescriptor(arg, "0");
assert.sameValue(desc.get, get_func, 'desc.get');
assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-288.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-288.js
index b2ed708b4..0bcc9bc3e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-288.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-288.js
@@ -16,36 +16,36 @@ includes: [propertyHelper.js]
var arg;
(function fun(a, b, c) {
- arg = arguments;
+ arg = arguments;
}(0, 1, 2));
function get_func() {
- return 0;
+ return 0;
}
Object.defineProperty(arg, "0", {
- get: get_func,
- enumerable: true,
- configurable: false
+ get: get_func,
+ enumerable: true,
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "0": {
- enumerable: false
- }
- });
+ Object.defineProperties(arg, {
+ "0": {
+ enumerable: false
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arg, "0", get_func());
+ verifyEqualTo(arg, "0", get_func());
- verifyEnumerable(arg, "0");
+ verifyEnumerable(arg, "0");
- verifyNotConfigurable(arg, "0");
+ verifyNotConfigurable(arg, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-289.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-289.js
index 223497d04..42169d9c8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-289.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-289.js
@@ -16,36 +16,36 @@ includes: [propertyHelper.js]
var arg;
(function fun(a, b, c) {
- arg = arguments;
+ arg = arguments;
}(0, 1, 2));
function get_func() {
- return 0;
+ return 0;
}
Object.defineProperty(arg, "0", {
- get: get_func,
- enumerable: true,
- configurable: false
+ get: get_func,
+ enumerable: true,
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "0": {
- configurable: true
- }
- });
+ Object.defineProperties(arg, {
+ "0": {
+ configurable: true
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arg, "0", get_func());
+ verifyEqualTo(arg, "0", get_func());
- verifyEnumerable(arg, "0");
+ verifyEnumerable(arg, "0");
- verifyNotConfigurable(arg, "0");
+ verifyNotConfigurable(arg, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-29.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-29.js
index 3080c1615..fb45a1a6f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-29.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-29.js
@@ -9,14 +9,16 @@ description: >
descriptor 'desc' (8.12.9 step 4.a.i)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, {
- prop: { value: 1001}
- });
+Object.defineProperties(obj, {
+ prop: {
+ value: 1001
+ }
+});
- for (var prop in obj) {
- if (obj.hasOwnProperty(prop)) {
- assert.notSameValue(prop, "prop", 'prop');
- }
- }
+for (var prop in obj) {
+ if (obj.hasOwnProperty(prop)) {
+ assert.notSameValue(prop, "prop", 'prop');
+ }
+}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-290.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-290.js
index 3c8440c16..8fb59187a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-290.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-290.js
@@ -16,18 +16,18 @@ includes: [propertyHelper.js]
var arg;
(function fun() {
- arg = arguments;
+ arg = arguments;
}(0, 1, 2));
delete arg[0];
Object.defineProperties(arg, {
- "0": {
- value: 10,
- writable: false,
- enumerable: false,
- configurable: false
- }
+ "0": {
+ value: 10,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ }
});
verifyEqualTo(arg, "0", 10);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-291.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-291.js
index eb1a968f7..c885c76ce 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-291.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-291.js
@@ -16,25 +16,26 @@ includes: [propertyHelper.js]
var arg;
(function fun() {
- arg = arguments;
+ arg = arguments;
}(0, 1, 2));
delete arg[0];
function get_func() {
- return 10;
+ return 10;
}
+
function set_func(value) {
- arg.setVerifyHelpProp = value;
+ arg.setVerifyHelpProp = value;
}
Object.defineProperties(arg, {
- "0": {
- get: get_func,
- set: set_func,
- enumerable: false,
- configurable: false
- }
+ "0": {
+ get: get_func,
+ set: set_func,
+ enumerable: false,
+ configurable: false
+ }
});
verifyEqualTo(arg, "0", get_func());
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-292.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-292.js
index be6a0ea58..da3cc57d1 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-292.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-292.js
@@ -16,29 +16,29 @@ includes: [propertyHelper.js]
var arg;
(function fun() {
- arg = arguments;
+ arg = arguments;
}(0, 1, 2));
function get_func1() {
- return 10;
+ return 10;
}
Object.defineProperty(arg, "0", {
- get: get_func1,
- enumerable: true,
- configurable: true
+ get: get_func1,
+ enumerable: true,
+ configurable: true
});
function get_func2() {
- return 20;
+ return 20;
}
Object.defineProperties(arg, {
- "0": {
- get: get_func2,
- enumerable: false,
- configurable: false
- }
+ "0": {
+ get: get_func2,
+ enumerable: false,
+ configurable: false
+ }
});
verifyEqualTo(arg, "0", get_func2());
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-293.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-293.js
index d0f9cc9f8..6a9c04852 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-293.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-293.js
@@ -16,16 +16,16 @@ includes: [propertyHelper.js]
var arg;
(function fun() {
- arg = arguments;
+ arg = arguments;
}(0, 1, 2));
Object.defineProperties(arg, {
- "0": {
- value: 20,
- writable: false,
- enumerable: false,
- configurable: false
- }
+ "0": {
+ value: 20,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ }
});
verifyEqualTo(arg, "0", 20);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-294.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-294.js
index ef8834ed3..13b0269da 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-294.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-294.js
@@ -16,34 +16,34 @@ includes: [propertyHelper.js]
var arg;
(function fun() {
- arg = arguments;
+ arg = arguments;
}());
Object.defineProperty(arg, "0", {
- value: 0,
- writable: false,
- configurable: false
+ value: 0,
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "0": {
- value: 10
- }
- });
+ Object.defineProperties(arg, {
+ "0": {
+ value: 10
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arg, "0", 0);
+ verifyEqualTo(arg, "0", 0);
- verifyNotWritable(arg, "0");
+ verifyNotWritable(arg, "0");
- verifyNotEnumerable(arg, "0");
+ verifyNotEnumerable(arg, "0");
- verifyNotConfigurable(arg, "0");
+ verifyNotConfigurable(arg, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-295.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-295.js
index 6b23dcafa..42dc477b5 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-295.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-295.js
@@ -16,35 +16,35 @@ includes: [propertyHelper.js]
var arg;
(function fun() {
- arg = arguments;
+ arg = arguments;
}());
Object.defineProperty(arg, "0", {
- value: 0,
- writable: false,
- enumerable: false,
- configurable: false
+ value: 0,
+ writable: false,
+ enumerable: false,
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "0": {
- writable: true
- }
- });
+ Object.defineProperties(arg, {
+ "0": {
+ writable: true
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arg, "0", 0);
+ verifyEqualTo(arg, "0", 0);
- verifyNotWritable(arg, "0");
+ verifyNotWritable(arg, "0");
- verifyNotEnumerable(arg, "0");
+ verifyNotEnumerable(arg, "0");
- verifyNotConfigurable(arg, "0");
+ verifyNotConfigurable(arg, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-296.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-296.js
index 569a0618a..7be2e646e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-296.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-296.js
@@ -16,35 +16,35 @@ includes: [propertyHelper.js]
var arg;
(function fun() {
- arg = arguments;
+ arg = arguments;
}());
Object.defineProperty(arg, "0", {
- value: 0,
- writable: false,
- enumerable: true,
- configurable: false
+ value: 0,
+ writable: false,
+ enumerable: true,
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "0": {
- enumerable: false
- }
- });
+ Object.defineProperties(arg, {
+ "0": {
+ enumerable: false
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arg, "0", 0);
+ verifyEqualTo(arg, "0", 0);
- verifyNotWritable(arg, "0");
+ verifyNotWritable(arg, "0");
- verifyEnumerable(arg, "0");
+ verifyEnumerable(arg, "0");
- verifyNotConfigurable(arg, "0");
+ verifyNotConfigurable(arg, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-297.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-297.js
index c481b0d27..e59a4f51b 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-297.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-297.js
@@ -16,35 +16,35 @@ includes: [propertyHelper.js]
var arg;
(function fun() {
- arg = arguments;
+ arg = arguments;
}());
Object.defineProperty(arg, "0", {
- value: 0,
- writable: false,
- enumerable: false,
- configurable: false
+ value: 0,
+ writable: false,
+ enumerable: false,
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "0": {
- configurable: true
- }
- });
+ Object.defineProperties(arg, {
+ "0": {
+ configurable: true
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arg, "0", 0);
+ verifyEqualTo(arg, "0", 0);
- verifyNotWritable(arg, "0");
+ verifyNotWritable(arg, "0");
- verifyNotEnumerable(arg, "0");
+ verifyNotEnumerable(arg, "0");
- verifyNotConfigurable(arg, "0");
+ verifyNotConfigurable(arg, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-298.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-298.js
index 82d464a7f..5247a1c02 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-298.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-298.js
@@ -16,38 +16,38 @@ includes: [propertyHelper.js]
var arg;
(function fun() {
- arg = arguments;
+ arg = arguments;
}());
function get_func1() {
- return 0;
+ return 0;
}
Object.defineProperty(arg, "0", {
- get: get_func1,
- enumerable: false,
- configurable: false
+ get: get_func1,
+ enumerable: false,
+ configurable: false
});
function get_func2() {
- return 10;
+ return 10;
}
try {
- Object.defineProperties(arg, {
- "0": {
- get: get_func2
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arg, {
+ "0": {
+ get: get_func2
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arg, "0", get_func1());
+ verifyEqualTo(arg, "0", get_func1());
- verifyNotEnumerable(arg, "0");
+ verifyNotEnumerable(arg, "0");
- verifyNotConfigurable(arg, "0");
+ verifyNotConfigurable(arg, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-299.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-299.js
index 409ca275b..f8483571d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-299.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-299.js
@@ -16,39 +16,39 @@ includes: [propertyHelper.js]
var arg;
(function fun() {
- arg = arguments;
+ arg = arguments;
}());
function get_func() {
- return 0;
+ return 0;
}
Object.defineProperty(arg, "0", {
- get: get_func,
- set: undefined,
- enumerable: false,
- configurable: false
+ get: get_func,
+ set: undefined,
+ enumerable: false,
+ configurable: false
});
function set_func(value) {
- arg.setVerifyHelpProp = value;
+ arg.setVerifyHelpProp = value;
}
try {
- Object.defineProperties(arg, {
- "0": {
- set: set_func
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arg, {
+ "0": {
+ set: set_func
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arg, "0", get_func());
+ verifyEqualTo(arg, "0", get_func());
- verifyNotEnumerable(arg, "0");
+ verifyNotEnumerable(arg, "0");
- verifyNotConfigurable(arg, "0");
+ verifyNotConfigurable(arg, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-3.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-3.js
index aa93f1f02..44393b004 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-3.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-3.js
@@ -8,24 +8,24 @@ description: >
an inherited data property (8.12.9 step 1 )
---*/
- var proto = {};
- Object.defineProperty(proto, "prop", {
- value: 11,
- configurable: true
- });
- var Con = function () { };
- Con.prototype = proto;
+var proto = {};
+Object.defineProperty(proto, "prop", {
+ value: 11,
+ configurable: true
+});
+var Con = function() {};
+Con.prototype = proto;
- var obj = new Con();
- Object.defineProperty(obj, "prop", {
- value: 12,
- configurable: false
- });
+var obj = new Con();
+Object.defineProperty(obj, "prop", {
+ value: 12,
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- prop: {
- value: 13,
- configurable: true
- }
- });
+ Object.defineProperties(obj, {
+ prop: {
+ value: 13,
+ configurable: true
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-30.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-30.js
index 2811ce85e..56f43b86f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-30.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-30.js
@@ -14,16 +14,17 @@ var obj = {};
Object.defineProperties(obj, {
- prop: { value: 1001 }
+ prop: {
+ value: 1001
+ }
});
verifyNotConfigurable(obj, "prop");
if (!obj.hasOwnProperty("prop")) {
- $ERROR('Expected obj.hasOwnProperty("prop") to be true, actually ' + obj.hasOwnProperty("prop"));
+ $ERROR('Expected obj.hasOwnProperty("prop") to be true, actually ' + obj.hasOwnProperty("prop"));
}
if (obj.prop !== 1001) {
- $ERROR('Expected obj.prop === 1001, actually ' + obj.prop);
+ $ERROR('Expected obj.prop === 1001, actually ' + obj.prop);
}
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-300.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-300.js
index d49318a5c..1042edc13 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-300.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-300.js
@@ -16,35 +16,35 @@ includes: [propertyHelper.js]
var arg;
(function fun() {
- arg = arguments;
+ arg = arguments;
}());
function get_func() {
- return 0;
+ return 0;
}
Object.defineProperty(arg, "0", {
- get: get_func,
- enumerable: true,
- configurable: false
+ get: get_func,
+ enumerable: true,
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "0": {
- enumerable: false
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arg, {
+ "0": {
+ enumerable: false
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arg, "0", get_func());
+ verifyEqualTo(arg, "0", get_func());
- verifyEnumerable(arg, "0");
+ verifyEnumerable(arg, "0");
- verifyNotConfigurable(arg, "0");
+ verifyNotConfigurable(arg, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-301.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-301.js
index 0a4d2f117..686311e13 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-301.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-301.js
@@ -16,35 +16,35 @@ includes: [propertyHelper.js]
var arg;
(function fun() {
- arg = arguments;
+ arg = arguments;
}());
function get_func() {
- return 0;
+ return 0;
}
Object.defineProperty(arg, "0", {
- get: get_func,
- enumerable: true,
- configurable: false
+ get: get_func,
+ enumerable: true,
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "0": {
- configurable: true
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(arg, {
+ "0": {
+ configurable: true
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arg, "0", get_func());
+ verifyEqualTo(arg, "0", get_func());
- verifyEnumerable(arg, "0");
+ verifyEnumerable(arg, "0");
- verifyNotConfigurable(arg, "0");
+ verifyNotConfigurable(arg, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-302.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-302.js
index f327628ac..616737e3f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-302.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-302.js
@@ -11,17 +11,17 @@ description: >
includes: [propertyHelper.js]
---*/
-var arg = (function () {
- return arguments;
+var arg = (function() {
+ return arguments;
}(1, 2, 3));
Object.defineProperties(arg, {
- "genericProperty": {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
- }
+ "genericProperty": {
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
+ }
});
verifyEqualTo(arg, "genericProperty", 1001);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-303.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-303.js
index 162369ec9..f9fa042ff 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-303.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-303.js
@@ -11,23 +11,24 @@ description: >
includes: [propertyHelper.js]
---*/
-var arg = (function () {
- return arguments;
+var arg = (function() {
+ return arguments;
}(1, 2, 3));
function getFun() {
- return "getFunctionString";
+ return "getFunctionString";
}
+
function setFun(value) {
- arg.testGetFunction = value;
+ arg.testGetFunction = value;
}
Object.defineProperties(arg, {
- "genericProperty": {
- get: getFun,
- set: setFun,
- enumerable: true,
- configurable: true
- }
+ "genericProperty": {
+ get: getFun,
+ set: setFun,
+ enumerable: true,
+ configurable: true
+ }
});
verifyEqualTo(arg, "genericProperty", getFun());
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-304.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-304.js
index 6de139ec5..8c3d0a57f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-304.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-304.js
@@ -11,34 +11,35 @@ description: >
includes: [propertyHelper.js]
---*/
-var arg = (function () {
- return arguments;
+var arg = (function() {
+ return arguments;
}(1, 2, 3));
Object.defineProperty(arg, "genericProperty", {
- get: function () {
- return 1001;
- },
- set: function (value) {
- arg.testGetFunction1 = value;
- },
- enumerable: true,
- configurable: true
+ get: function() {
+ return 1001;
+ },
+ set: function(value) {
+ arg.testGetFunction1 = value;
+ },
+ enumerable: true,
+ configurable: true
});
function getFun() {
- return "getFunctionString";
+ return "getFunctionString";
}
+
function setFun(value) {
- arg.testGetFunction = value;
+ arg.testGetFunction = value;
}
Object.defineProperties(arg, {
- "genericProperty": {
- get: getFun,
- set: setFun,
- enumerable: false,
- configurable: false
- }
+ "genericProperty": {
+ get: getFun,
+ set: setFun,
+ enumerable: false,
+ configurable: false
+ }
});
verifyEqualTo(arg, "genericProperty", getFun());
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-305.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-305.js
index a066ade12..111feb5bc 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-305.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-305.js
@@ -11,23 +11,23 @@ description: >
includes: [propertyHelper.js]
---*/
-var arg = (function () {
- return arguments;
+var arg = (function() {
+ return arguments;
}(1, 2, 3));
Object.defineProperty(arg, "genericProperty", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
});
Object.defineProperties(arg, {
- "genericProperty": {
- value: 1002,
- enumerable: false,
- configurable: false
- }
+ "genericProperty": {
+ value: 1002,
+ enumerable: false,
+ configurable: false
+ }
});
verifyEqualTo(arg, "genericProperty", 1002);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-306.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-306.js
index e1ae25ad5..14968edc0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-306.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-306.js
@@ -11,35 +11,35 @@ description: >
includes: [propertyHelper.js]
---*/
-var arg = (function () {
- return arguments;
+var arg = (function() {
+ return arguments;
}(1, 2, 3));
Object.defineProperty(arg, "genericProperty", {
- value: 1001,
- writable: false,
- configurable: false
+ value: 1001,
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "genericProperty": {
- value: 1002
- }
- });
+ Object.defineProperties(arg, {
+ "genericProperty": {
+ value: 1002
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arg, "genericProperty", 1001);
+ verifyEqualTo(arg, "genericProperty", 1001);
- verifyNotWritable(arg, "genericProperty");
+ verifyNotWritable(arg, "genericProperty");
- verifyNotEnumerable(arg, "genericProperty");
+ verifyNotEnumerable(arg, "genericProperty");
- verifyNotConfigurable(arg, "genericProperty");
+ verifyNotConfigurable(arg, "genericProperty");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-307.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-307.js
index 34fafef04..f4309ee3a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-307.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-307.js
@@ -11,34 +11,34 @@ description: >
includes: [propertyHelper.js]
---*/
-var arg = (function () {
- return arguments;
+var arg = (function() {
+ return arguments;
}(1, 2, 3));
Object.defineProperty(arg, "genericProperty", {
- writable: false,
- configurable: false
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "genericProperty": {
- writable: true
- }
- });
+ Object.defineProperties(arg, {
+ "genericProperty": {
+ writable: true
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arg, "genericProperty", undefined);
+ verifyEqualTo(arg, "genericProperty", undefined);
- verifyNotWritable(arg, "genericProperty");
+ verifyNotWritable(arg, "genericProperty");
- verifyNotEnumerable(arg, "genericProperty");
+ verifyNotEnumerable(arg, "genericProperty");
- verifyNotConfigurable(arg, "genericProperty");
+ verifyNotConfigurable(arg, "genericProperty");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-308.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-308.js
index 8e014dbf0..6052175b1 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-308.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-308.js
@@ -11,34 +11,34 @@ description: >
includes: [propertyHelper.js]
---*/
-var arg = (function () {
- return arguments;
+var arg = (function() {
+ return arguments;
}(1, 2, 3));
Object.defineProperty(arg, "genericProperty", {
- enumerable: true,
- configurable: false
+ enumerable: true,
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "genericProperty": {
- enumerable: false
- }
- });
+ Object.defineProperties(arg, {
+ "genericProperty": {
+ enumerable: false
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arg, "genericProperty", undefined);
+ verifyEqualTo(arg, "genericProperty", undefined);
- verifyNotWritable(arg, "genericProperty");
+ verifyNotWritable(arg, "genericProperty");
- verifyEnumerable(arg, "genericProperty");
+ verifyEnumerable(arg, "genericProperty");
- verifyNotConfigurable(arg, "genericProperty");
+ verifyNotConfigurable(arg, "genericProperty");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-309.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-309.js
index 81d10db5a..2ec2e38b7 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-309.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-309.js
@@ -11,33 +11,33 @@ description: >
includes: [propertyHelper.js]
---*/
-var arg = (function () {
- return arguments;
+var arg = (function() {
+ return arguments;
}(1, 2, 3));
Object.defineProperty(arg, "genericProperty", {
- configurable: false
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "genericProperty": {
- configurable: true
- }
- });
+ Object.defineProperties(arg, {
+ "genericProperty": {
+ configurable: true
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arg, "genericProperty", undefined);
+ verifyEqualTo(arg, "genericProperty", undefined);
- verifyNotWritable(arg, "genericProperty");
+ verifyNotWritable(arg, "genericProperty");
- verifyNotEnumerable(arg, "genericProperty");
+ verifyNotEnumerable(arg, "genericProperty");
- verifyNotConfigurable(arg, "genericProperty");
+ verifyNotConfigurable(arg, "genericProperty");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-31.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-31.js
index 9666304b4..034c2820b 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-31.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-31.js
@@ -12,12 +12,12 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperties(obj, {
- prop: {
- value: 1002,
- writable: false,
- enumerable: false,
- configurable: false
- }
+ prop: {
+ value: 1002,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ }
});
verifyEqualTo(obj, "prop", 1002);
@@ -26,4 +26,3 @@ verifyNotWritable(obj, "prop");
verifyNotEnumerable(obj, "prop");
verifyNotConfigurable(obj, "prop");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-310.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-310.js
index 923709023..6c252eac4 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-310.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-310.js
@@ -11,43 +11,44 @@ description: >
includes: [propertyHelper.js]
---*/
-var arg = (function () {
- return arguments;
-} (1, 2, 3));
+var arg = (function() {
+ return arguments;
+}(1, 2, 3));
function getFun() {
- return "genericPropertyString";
+ return "genericPropertyString";
}
+
function setFun(value) {
- arg.verifySetFun = value;
+ arg.verifySetFun = value;
}
Object.defineProperty(arg, "genericProperty", {
- get: getFun,
- set: setFun,
- configurable: false
+ get: getFun,
+ set: setFun,
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "genericProperty": {
- get: function () {
- return "overideGenericPropertyString";
- }
- }
- });
-
- $ERROR("Expected an exception.");
+ Object.defineProperties(arg, {
+ "genericProperty": {
+ get: function() {
+ return "overideGenericPropertyString";
+ }
+ }
+ });
+
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arg, "genericProperty", getFun());
+ verifyEqualTo(arg, "genericProperty", getFun());
- verifyWritable(arg, "genericProperty", "verifySetFun");
+ verifyWritable(arg, "genericProperty", "verifySetFun");
- verifyNotEnumerable(arg, "genericProperty");
+ verifyNotEnumerable(arg, "genericProperty");
- verifyNotConfigurable(arg, "genericProperty");
+ verifyNotConfigurable(arg, "genericProperty");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-311.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-311.js
index e01e0c624..eacfb495e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-311.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-311.js
@@ -11,37 +11,37 @@ description: >
includes: [propertyHelper.js]
---*/
-var arg = (function () {
- return arguments;
+var arg = (function() {
+ return arguments;
}(1, 2, 3));
function setFun(value) {
- arg.genericPropertyString = value;
+ arg.genericPropertyString = value;
}
Object.defineProperty(arg, "genericProperty", {
- set: setFun,
- configurable: false
+ set: setFun,
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "genericProperty": {
- set: function (value) {
- arg.genericPropertyString1 = value;
- }
- }
- });
-
- $ERROR("Expected an exception.");
+ Object.defineProperties(arg, {
+ "genericProperty": {
+ set: function(value) {
+ arg.genericPropertyString1 = value;
+ }
+ }
+ });
+
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyWritable(arg, "genericProperty", "genericPropertyString");
+ verifyWritable(arg, "genericProperty", "genericPropertyString");
- verifyNotEnumerable(arg, "genericProperty");
+ verifyNotEnumerable(arg, "genericProperty");
- verifyNotConfigurable(arg, "genericProperty");
+ verifyNotConfigurable(arg, "genericProperty");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-312.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-312.js
index 5195da8d4..331f6565f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-312.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-312.js
@@ -11,36 +11,36 @@ description: >
includes: [propertyHelper.js]
---*/
-var arg = (function () {
- return arguments;
+var arg = (function() {
+ return arguments;
}(1, 2, 3));
function setFun(value) {
- arg.genericPropertyString = value;
+ arg.genericPropertyString = value;
}
Object.defineProperty(arg, "genericProperty", {
- set: setFun,
- enumerable: true,
- configurable: false
+ set: setFun,
+ enumerable: true,
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "genericProperty": {
- enumerable: false
- }
- });
+ Object.defineProperties(arg, {
+ "genericProperty": {
+ enumerable: false
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyWritable(arg, "genericProperty", "genericPropertyString");
+ verifyWritable(arg, "genericProperty", "genericPropertyString");
- verifyEnumerable(arg, "genericProperty");
+ verifyEnumerable(arg, "genericProperty");
- verifyNotConfigurable(arg, "genericProperty");
+ verifyNotConfigurable(arg, "genericProperty");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-313.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-313.js
index 5e2bbfb0e..17291265a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-313.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-313.js
@@ -11,35 +11,35 @@ description: >
includes: [propertyHelper.js]
---*/
-var arg = (function () {
- return arguments;
+var arg = (function() {
+ return arguments;
}(1, 2, 3));
function setFun(value) {
- arg.genericPropertyString = value;
+ arg.genericPropertyString = value;
}
Object.defineProperty(arg, "genericProperty", {
- set: setFun,
- configurable: false
+ set: setFun,
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "genericProperty": {
- configurable: true
- }
- });
+ Object.defineProperties(arg, {
+ "genericProperty": {
+ configurable: true
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyWritable(arg, "genericProperty", "genericPropertyString");
+ verifyWritable(arg, "genericProperty", "genericPropertyString");
- verifyNotEnumerable(arg, "genericProperty");
+ verifyNotEnumerable(arg, "genericProperty");
- verifyNotConfigurable(arg, "genericProperty");
+ verifyNotConfigurable(arg, "genericProperty");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-314.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-314.js
index 97f3e79dd..e1dd0c862 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-314.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-314.js
@@ -10,19 +10,19 @@ description: >
[[DefineOwnProperty]] step 5.a.i)
---*/
- var arg = (function () {
- return arguments;
- }(1, 2, 3));
- var accessed = false;
+var arg = (function() {
+ return arguments;
+}(1, 2, 3));
+var accessed = false;
- Object.defineProperties(arg, {
- "0": {
- get: function () {
- accessed = true;
- return 12;
- }
- }
- });
+Object.defineProperties(arg, {
+ "0": {
+ get: function() {
+ accessed = true;
+ return 12;
+ }
+ }
+});
assert.sameValue(arg[0], 12, 'arg[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-32.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-32.js
index db3c9ed05..c92629f04 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-32.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-32.js
@@ -9,11 +9,13 @@ description: >
values (8.12.9 step 4.a.i)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperties(obj, { prop: {} });
+Object.defineProperties(obj, {
+ prop: {}
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc.hasOwnProperty("value"), 'desc.hasOwnProperty("value") !== true');
assert.sameValue(typeof desc.value, "undefined", 'typeof desc.value');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-33.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-33.js
index bc699d003..8df808343 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-33.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-33.js
@@ -11,20 +11,19 @@ includes: [propertyHelper.js]
---*/
var obj = {};
-var setFun = function (value) {
- obj.setVerifyHelpProp = value;
+var setFun = function(value) {
+ obj.setVerifyHelpProp = value;
};
Object.defineProperties(obj, {
- prop: {
- set: setFun,
- enumerable: true,
- configurable: true
- }
+ prop: {
+ set: setFun,
+ enumerable: true,
+ configurable: true
+ }
});
verifyWritable(obj, "prop", "setVerifyHelpProp");
verifyEnumerable(obj, "prop");
verifyConfigurable(obj, "prop");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-34.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-34.js
index 3c3d69ebc..4e928915b 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-34.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-34.js
@@ -9,20 +9,20 @@ description: >
'desc' (8.12.9 step 4.b.i)
---*/
- var obj = {};
- var getFunc = function () {
- return 10;
- };
+var obj = {};
+var getFunc = function() {
+ return 10;
+};
- Object.defineProperties(obj, {
- prop: {
- get: getFunc,
- enumerable: true,
- configurable: true
- }
- });
+Object.defineProperties(obj, {
+ prop: {
+ get: getFunc,
+ enumerable: true,
+ configurable: true
+ }
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
-assert.sameValue(typeof (desc.set), "undefined", 'typeof (desc.set)');
+assert.sameValue(typeof(desc.set), "undefined", 'typeof (desc.set)');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-35.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-35.js
index 49e2d514b..9f6e931c1 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-35.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-35.js
@@ -11,19 +11,19 @@ includes: [propertyHelper.js]
---*/
var obj = {};
-var getFun = function () {
- return 10;
+var getFun = function() {
+ return 10;
};
-var setFun = function (value) {
- obj.setVerifyHelpProp = value;
+var setFun = function(value) {
+ obj.setVerifyHelpProp = value;
};
Object.defineProperties(obj, {
- prop: {
- set: setFun,
- get: getFun,
- configurable: true
- }
+ prop: {
+ set: setFun,
+ get: getFun,
+ configurable: true
+ }
});
verifyEqualTo(obj, "prop", getFun());
@@ -32,4 +32,3 @@ verifyWritable(obj, "prop", "setVerifyHelpProp");
verifyNotEnumerable(obj, "prop");
verifyConfigurable(obj, "prop");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-36.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-36.js
index 172e71d51..424240fd0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-36.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-36.js
@@ -12,19 +12,19 @@ includes:
---*/
var obj = {};
-var getFun = function () {
- return 10;
+var getFun = function() {
+ return 10;
};
-var setFun = function (value) {
- obj.setVerifyHelpProp = value;
+var setFun = function(value) {
+ obj.setVerifyHelpProp = value;
};
Object.defineProperties(obj, {
- prop: {
- set: setFun,
- get: getFun,
- enumerable: true
- }
+ prop: {
+ set: setFun,
+ get: getFun,
+ enumerable: true
+ }
});
verifyEqualTo(obj, "prop", 10);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-37.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-37.js
index 6670ea99c..3ec607f81 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-37.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-37.js
@@ -10,20 +10,20 @@ includes: [propertyHelper.js]
---*/
var obj = {};
-var getFun = function () {
- return 10;
+var getFun = function() {
+ return 10;
};
-var setFun = function (value) {
- obj.setVerifyHelpProp = value;
+var setFun = function(value) {
+ obj.setVerifyHelpProp = value;
};
Object.defineProperties(obj, {
- prop: {
- get: getFun,
- set: setFun,
- enumerable: false,
- configurable: false
- }
+ prop: {
+ get: getFun,
+ set: setFun,
+ enumerable: false,
+ configurable: false
+ }
});
verifyEqualTo(obj, "prop", getFun());
@@ -32,4 +32,3 @@ verifyWritable(obj, "prop", "setVerifyHelpProp");
verifyNotEnumerable(obj, "prop");
verifyNotConfigurable(obj, "prop");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38-1.js
index 9cdf31fce..1f8a55196 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38-1.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38-1.js
@@ -12,18 +12,20 @@ includes: [propertyHelper.js]
var obj = {};
-var getFunc = function () {
- return 12;
+var getFunc = function() {
+ return 12;
};
Object.defineProperties(obj, {
- foo: {
- get: getFunc,
- enumerable: true,
- configurable: true
- }
+ foo: {
+ get: getFunc,
+ enumerable: true,
+ configurable: true
+ }
});
-Object.defineProperties(obj, { foo: {} });
+Object.defineProperties(obj, {
+ foo: {}
+});
verifyEqualTo(obj, "foo", getFunc());
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38.js
index 2ab69a8e8..b984b2fb1 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38.js
@@ -14,7 +14,9 @@ includes: [propertyHelper.js]
var obj = {};
obj.foo = 100; // default value of attributes: writable: true, configurable: true, enumerable: true
-Object.defineProperties(obj, { foo: {} });
+Object.defineProperties(obj, {
+ foo: {}
+});
verifyEqualTo(obj, "foo", 100);
verifyWritable(obj, "foo");
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-39.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-39.js
index e3659e52d..a1532cb67 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-39.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-39.js
@@ -15,12 +15,12 @@ var obj = {};
obj.foo = 101; // default value of attributes: writable: true, configurable: true, enumerable: true
Object.defineProperties(obj, {
- foo: {
- value: 101,
- enumerable: true,
- writable: true,
- configurable: true
- }
+ foo: {
+ value: 101,
+ enumerable: true,
+ writable: true,
+ configurable: true
+ }
});
verifyEqualTo(obj, "foo", 101);
@@ -29,4 +29,3 @@ verifyWritable(obj, "foo");
verifyEnumerable(obj, "foo");
verifyConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-4.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-4.js
index e1c624b55..861d548cb 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-4.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-4.js
@@ -8,26 +8,26 @@ description: >
an inherited accessor property (8.12.9 step 1 )
---*/
- var proto = {};
- Object.defineProperty(proto, "prop", {
- get: function () {
- return 11;
- },
- configurable: true
- });
- var Con = function () { };
- Con.prototype = proto;
+var proto = {};
+Object.defineProperty(proto, "prop", {
+ get: function() {
+ return 11;
+ },
+ configurable: true
+});
+var Con = function() {};
+Con.prototype = proto;
- var obj = new Con();
- Object.defineProperty(obj, "prop", {
- value: 12,
- configurable: false
- });
+var obj = new Con();
+Object.defineProperty(obj, "prop", {
+ value: 12,
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- prop: {
- value: 13,
- configurable: true
- }
- });
+ Object.defineProperties(obj, {
+ prop: {
+ value: 13,
+ configurable: true
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-40.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-40.js
index 688821a53..cde59dc5e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-40.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-40.js
@@ -13,27 +13,28 @@ includes: [propertyHelper.js]
var obj = {};
function get_func() {
- return 0;
+ return 0;
}
+
function set_func(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
var desc = {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
};
Object.defineProperty(obj, "foo", desc);
Object.defineProperties(obj, {
- foo: {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
- }
+ foo: {
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
+ }
});
verifyEqualTo(obj, "foo", get_func());
@@ -42,4 +43,3 @@ verifyWritable(obj, "foo", "setVerifyHelpProp");
verifyEnumerable(obj, "foo");
verifyConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-41.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-41.js
index de330744d..4151bdaaf 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-41.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-41.js
@@ -15,9 +15,9 @@ var obj = {};
obj.foo = 101; // default value of attributes: writable: true, configurable: true, enumerable: true
Object.defineProperties(obj, {
- foo: {
- value: "102"
- }
+ foo: {
+ value: "102"
+ }
});
verifyEqualTo(obj, "foo", "102");
@@ -26,4 +26,3 @@ verifyWritable(obj, "foo");
verifyEnumerable(obj, "foo");
verifyConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-42.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-42.js
index 0c8907b68..a61da8f00 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-42.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-42.js
@@ -12,13 +12,15 @@ includes: [propertyHelper.js]
var obj = {};
-var desc = { value: undefined };
+var desc = {
+ value: undefined
+};
Object.defineProperty(obj, "foo", desc);
Object.defineProperties(obj, {
- foo: {
- value: undefined
- }
+ foo: {
+ value: undefined
+ }
});
verifyEqualTo(obj, "foo", undefined);
@@ -27,4 +29,3 @@ verifyNotWritable(obj, "foo");
verifyNotEnumerable(obj, "foo");
verifyNotConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-43.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-43.js
index 51c96244c..39f1d83f8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-43.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-43.js
@@ -12,13 +12,15 @@ includes: [propertyHelper.js]
var obj = {};
-var desc = { value: null };
+var desc = {
+ value: null
+};
Object.defineProperty(obj, "foo", desc);
Object.defineProperties(obj, {
- foo: {
- value: null
- }
+ foo: {
+ value: null
+ }
});
verifyEqualTo(obj, "foo", null);
@@ -27,4 +29,3 @@ verifyNotWritable(obj, "foo");
verifyNotEnumerable(obj, "foo");
verifyNotConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-44.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-44.js
index 9ff1d5bef..3eff29133 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-44.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-44.js
@@ -12,16 +12,17 @@ includes: [propertyHelper.js]
var obj = {};
-var desc = { value: NaN };
+var desc = {
+ value: NaN
+};
Object.defineProperty(obj, "foo", desc);
Object.defineProperties(obj, {
- foo: {
- value: NaN
- }
+ foo: {
+ value: NaN
+ }
});
verifyNotEnumerable(obj, "foo");
verifyNotWritable(obj, "foo");
verifyNotConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-45.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-45.js
index 33d369c4a..bda21bfe2 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-45.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-45.js
@@ -12,27 +12,29 @@ includes: [propertyHelper.js]
var obj = {};
-var desc = { value: -0 };
+var desc = {
+ value: -0
+};
Object.defineProperty(obj, "foo", desc);
try {
- Object.defineProperties(obj, {
- foo: {
- value: +0
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ foo: {
+ value: +0
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", -0);
+ verifyEqualTo(obj, "foo", -0);
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-46.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-46.js
index e8cc5df2b..1a7348c64 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-46.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-46.js
@@ -12,27 +12,29 @@ includes: [propertyHelper.js]
var obj = {};
-var desc = { value: +0 };
+var desc = {
+ value: +0
+};
Object.defineProperty(obj, "foo", desc);
try {
- Object.defineProperties(obj, {
- foo: {
- value: -0
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ foo: {
+ value: -0
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", +0);
+ verifyEqualTo(obj, "foo", +0);
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-47.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-47.js
index b14bf5030..638593200 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-47.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-47.js
@@ -12,13 +12,15 @@ includes: [propertyHelper.js]
var obj = {};
-var desc = { value: 101 };
+var desc = {
+ value: 101
+};
Object.defineProperty(obj, "foo", desc);
Object.defineProperties(obj, {
- foo: {
- value: 101
- }
+ foo: {
+ value: 101
+ }
});
verifyEqualTo(obj, "foo", 101);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-48.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-48.js
index 34d4dc158..910dbf79d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-48.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-48.js
@@ -15,9 +15,9 @@ var obj = {};
obj.foo = 101; // default value of attributes: writable: true, configurable: true, enumerable: true
Object.defineProperties(obj, {
- foo: {
- value: 102
- }
+ foo: {
+ value: 102
+ }
});
verifyEqualTo(obj, "foo", 102);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-49.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-49.js
index 08978d57c..381073f31 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-49.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-49.js
@@ -13,13 +13,15 @@ includes: [propertyHelper.js]
var obj = {};
-var desc = { value: "abcd" };
+var desc = {
+ value: "abcd"
+};
Object.defineProperty(obj, "foo", desc);
Object.defineProperties(obj, {
- foo: {
- value: "abcd"
- }
+ foo: {
+ value: "abcd"
+ }
});
verifyEqualTo(obj, "foo", "abcd");
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-5.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-5.js
index 3f13a5f7c..6159e5341 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-5.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-5.js
@@ -10,32 +10,33 @@ includes: [propertyHelper.js]
---*/
var obj = {};
+
function getFunc() {
- return 11;
+ return 11;
}
Object.defineProperty(obj, "prop", {
- get: getFunc,
- configurable: false
+ get: getFunc,
+ configurable: false
});
try {
- Object.defineProperties(obj, {
- prop: {
- value: 12,
- configurable: true
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ prop: {
+ value: 12,
+ configurable: true
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "prop", getFunc());
+ verifyEqualTo(obj, "prop", getFunc());
- verifyNotEnumerable(obj, "prop");
+ verifyNotEnumerable(obj, "prop");
- verifyNotConfigurable(obj, "prop");
+ verifyNotConfigurable(obj, "prop");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-50.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-50.js
index 96d7b3463..ca3ebff2e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-50.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-50.js
@@ -15,9 +15,9 @@ var obj = {};
obj.foo = "abcd"; // default value of attributes: writable: true, configurable: true, enumerable: true
Object.defineProperties(obj, {
- foo: {
- value: "fghj"
- }
+ foo: {
+ value: "fghj"
+ }
});
verifyEqualTo(obj, "foo", "fghj");
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-51.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-51.js
index d05bf78b4..2184bd1ef 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-51.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-51.js
@@ -12,13 +12,15 @@ includes: [propertyHelper.js]
var obj = {};
-var desc = { value: true };
+var desc = {
+ value: true
+};
Object.defineProperty(obj, "foo", desc);
Object.defineProperties(obj, {
- foo: {
- value: true
- }
+ foo: {
+ value: true
+ }
});
verifyEqualTo(obj, "foo", true);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-52.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-52.js
index c649cb77a..ec6ec8925 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-52.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-52.js
@@ -15,9 +15,9 @@ var obj = {};
obj.foo = true; // default value of attributes: writable: true, configurable: true, enumerable: true
Object.defineProperties(obj, {
- foo: {
- value: false
- }
+ foo: {
+ value: false
+ }
});
verifyEqualTo(obj, "foo", false);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-53.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-53.js
index df9ed9f8e..7b1f7f637 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-53.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-53.js
@@ -12,14 +12,18 @@ includes: [propertyHelper.js]
var obj = {};
-var obj1 = { length: 10 };
-var desc = { value: obj1 };
+var obj1 = {
+ length: 10
+};
+var desc = {
+ value: obj1
+};
Object.defineProperty(obj, "foo", desc);
Object.defineProperties(obj, {
- foo: {
- value: obj1
- }
+ foo: {
+ value: obj1
+ }
});
verifyEqualTo(obj, "foo", obj1);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-54.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-54.js
index cfbb1fe19..19e37a704 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-54.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-54.js
@@ -12,15 +12,19 @@ includes: [propertyHelper.js]
var obj = {};
-var obj1 = { length: 10 };
+var obj1 = {
+ length: 10
+};
obj.foo = obj1; // default value of attributes: writable: true, configurable: true, enumerable: true
-var obj2 = { length: 20 };
+var obj2 = {
+ length: 20
+};
Object.defineProperties(obj, {
- foo: {
- value: obj2
- }
+ foo: {
+ value: obj2
+ }
});
verifyEqualTo(obj, "foo", obj2);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-55.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-55.js
index 2037ebf6c..56ae78800 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-55.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-55.js
@@ -12,13 +12,15 @@ includes: [propertyHelper.js]
var obj = {};
-var desc = { writable: false };
+var desc = {
+ writable: false
+};
Object.defineProperty(obj, "foo", desc);
Object.defineProperties(obj, {
- foo: {
- writable: false
- }
+ foo: {
+ writable: false
+ }
});
verifyEqualTo(obj, "foo", undefined);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-56.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-56.js
index f4c47b700..3d6000d30 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-56.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-56.js
@@ -12,14 +12,17 @@ includes: [propertyHelper.js]
var obj = {};
-var desc = { writable: false, configurable: true };
+var desc = {
+ writable: false,
+ configurable: true
+};
Object.defineProperty(obj, "foo", desc);
Object.defineProperties(obj, {
- foo: {
- writable: true,
- configurable: true
- }
+ foo: {
+ writable: true,
+ configurable: true
+ }
});
verifyEqualTo(obj, "foo", undefined);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-57.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-57.js
index fb8470edc..67c6bc267 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-57.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-57.js
@@ -13,21 +13,20 @@ includes: [propertyHelper.js]
var obj = {};
function get_Func() {
- return 10;
+ return 10;
}
Object.defineProperty(obj, "foo", {
- get: get_Func
+ get: get_Func
});
Object.defineProperties(obj, {
- foo: {
- get: get_Func
- }
+ foo: {
+ get: get_Func
+ }
});
verifyNotEnumerable(obj, "foo");
assert.sameValue(obj.foo, 10);
verifyNotConfigurable(obj, "foo")
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-58.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-58.js
index ecbde1f77..c7a9d7c87 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-58.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-58.js
@@ -8,45 +8,45 @@ description: >
objects which refer to the different objects (8.12.9 step 6)
---*/
- var obj = {};
+var obj = {};
- function get_Func1() {
- return 10;
- }
+function get_Func1() {
+ return 10;
+}
- Object.defineProperty(obj, "foo", {
- get: get_Func1,
- configurable: true
- });
+Object.defineProperty(obj, "foo", {
+ get: get_Func1,
+ configurable: true
+});
- function get_Func2() {
- return 20;
- }
+function get_Func2() {
+ return 20;
+}
- Object.defineProperties(obj, {
- foo: {
- get: get_Func2
- }
- });
+Object.defineProperties(obj, {
+ foo: {
+ get: get_Func2
+ }
+});
- var verifyEnumerable = false;
- for (var p in obj) {
- if (p === "foo") {
- verifyEnumerable = true;
- }
- }
+var verifyEnumerable = false;
+for (var p in obj) {
+ if (p === "foo") {
+ verifyEnumerable = true;
+ }
+}
- var verifyValue = false;
- verifyValue = (obj.foo === 20);
+var verifyValue = false;
+verifyValue = (obj.foo === 20);
- var desc = Object.getOwnPropertyDescriptor(obj, "foo");
+var desc = Object.getOwnPropertyDescriptor(obj, "foo");
- var verifyConfigurable = false;
- delete obj.foo;
- verifyConfigurable = obj.hasOwnProperty("foo");
+var verifyConfigurable = false;
+delete obj.foo;
+verifyConfigurable = obj.hasOwnProperty("foo");
assert.sameValue(verifyConfigurable, false, 'verifyConfigurable');
assert.sameValue(verifyEnumerable, false, 'verifyEnumerable');
assert(verifyValue, 'verifyValue !== true');
-assert.sameValue(typeof (desc.set), "undefined", 'typeof (desc.set)');
+assert.sameValue(typeof(desc.set), "undefined", 'typeof (desc.set)');
assert.sameValue(desc.get, get_Func2, 'desc.get');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-59.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-59.js
index 4220a3787..f74d2a2fd 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-59.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-59.js
@@ -13,17 +13,17 @@ includes: [propertyHelper.js]
var obj = {};
function set_func(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperty(obj, "foo", {
- set: set_func
+ set: set_func
});
Object.defineProperties(obj, {
- foo: {
- set: set_func
- }
+ foo: {
+ set: set_func
+ }
});
verifyWritable(obj, "foo", "setVerifyHelpProp");
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-6.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-6.js
index cdd976461..1f3930f59 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-6.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-6.js
@@ -8,26 +8,26 @@ description: >
(8.12.9 step 1 )
---*/
- var proto = {};
- Object.defineProperty(proto, "prop", {
- get: function () {
- return 11;
- },
- configurable: false
- });
- var Con = function () { };
- Con.prototype = proto;
+var proto = {};
+Object.defineProperty(proto, "prop", {
+ get: function() {
+ return 11;
+ },
+ configurable: false
+});
+var Con = function() {};
+Con.prototype = proto;
- var obj = new Con();
+var obj = new Con();
- Object.defineProperties(obj, {
- prop: {
- get: function () {
- return 12;
- },
- configurable: true
- }
- });
+Object.defineProperties(obj, {
+ prop: {
+ get: function() {
+ return 12;
+ },
+ configurable: true
+ }
+});
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, 12, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-60.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-60.js
index 39e0c2e8e..4c619fd07 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-60.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-60.js
@@ -15,18 +15,18 @@ var obj = {};
function set_func1() {}
Object.defineProperty(obj, "foo", {
- set: set_func1,
- configurable: true
+ set: set_func1,
+ configurable: true
});
function set_func2(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperties(obj, {
- foo: {
- set: set_func2
- }
+ foo: {
+ set: set_func2
+ }
});
verifyWritable(obj, "foo", "setVerifyHelpProp");
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-61.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-61.js
index 78d9e185d..14b726244 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-61.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-61.js
@@ -12,15 +12,15 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: 10,
- enumerable: false
+Object.defineProperty(obj, "foo", {
+ value: 10,
+ enumerable: false
});
Object.defineProperties(obj, {
- foo: {
- enumerable: false
- }
+ foo: {
+ enumerable: false
+ }
});
verifyEqualTo(obj, "foo", 10);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-62.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-62.js
index 4c18015ff..7f7511776 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-62.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-62.js
@@ -12,16 +12,16 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: 10,
- enumerable: false,
- configurable: true
+Object.defineProperty(obj, "foo", {
+ value: 10,
+ enumerable: false,
+ configurable: true
});
Object.defineProperties(obj, {
- foo: {
- enumerable: true
- }
+ foo: {
+ enumerable: true
+ }
});
verifyEqualTo(obj, "foo", 10);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-63.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-63.js
index 860effe4e..b7c53b94e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-63.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-63.js
@@ -13,15 +13,15 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: 10,
- configurable: false
+Object.defineProperty(obj, "foo", {
+ value: 10,
+ configurable: false
});
Object.defineProperties(obj, {
- foo: {
- configurable: false
- }
+ foo: {
+ configurable: false
+ }
});
verifyEqualTo(obj, "foo", 10);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-64.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-64.js
index fa18f21d7..1fcaaa890 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-64.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-64.js
@@ -13,14 +13,14 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: 10,
- configurable: true
+ value: 10,
+ configurable: true
});
Object.defineProperties(obj, {
- foo: {
- configurable: false
- }
+ foo: {
+ configurable: false
+ }
});
verifyEqualTo(obj, "foo", 10);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-65.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-65.js
index a784e4fab..96f9243e6 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-65.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-65.js
@@ -13,28 +13,28 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: 10,
- configurable: false
+ value: 10,
+ configurable: false
});
try {
- Object.defineProperties(obj, {
- foo: {
- configurable: true
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ foo: {
+ configurable: true
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", 10);
+ verifyEqualTo(obj, "foo", 10);
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-66-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-66-1.js
index 3e068c2d2..1295aa86f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-66-1.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-66-1.js
@@ -14,29 +14,29 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: 10,
- enumerable: false,
- configurable: false
+ value: 10,
+ enumerable: false,
+ configurable: false
});
try {
- Object.defineProperties(obj, {
- foo: {
- enumerable: true
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ foo: {
+ enumerable: true
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", 10);
+ verifyEqualTo(obj, "foo", 10);
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-66.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-66.js
index 3b26b5018..702943705 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-66.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-66.js
@@ -13,30 +13,30 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: 10,
- enumerable: true,
- configurable: false
+Object.defineProperty(obj, "foo", {
+ value: 10,
+ enumerable: true,
+ configurable: false
});
try {
- Object.defineProperties(obj, {
- foo: {
- enumerable: false
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ foo: {
+ enumerable: false
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", 10);
+ verifyEqualTo(obj, "foo", 10);
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyEnumerable(obj, "foo");
+ verifyEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-67.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-67.js
index f90e5acd4..94d360b5e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-67.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-67.js
@@ -13,33 +13,32 @@ includes: [propertyHelper.js]
var obj = {};
function get_Func() {
- return 10;
+ return 10;
}
Object.defineProperty(obj, "foo", {
- get: get_Func,
- configurable: false
+ get: get_Func,
+ configurable: false
});
try {
- Object.defineProperties(obj, {
- foo: {
- value: 11
- }
- });
+ Object.defineProperties(obj, {
+ foo: {
+ value: 11
+ }
+ });
- $ERROR("Expected TypeError");
+ $ERROR("Expected TypeError");
} catch (e) {
- assert(e instanceof TypeError);
- verifyNotEnumerable(obj, "foo");
+ assert(e instanceof TypeError);
+ verifyNotEnumerable(obj, "foo");
- assert.sameValue(obj.foo, 10);
+ assert.sameValue(obj.foo, 10);
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- var desc = Object.getOwnPropertyDescriptor(obj, "foo");
+ var desc = Object.getOwnPropertyDescriptor(obj, "foo");
- assert.sameValue(typeof (desc.set), "undefined");
- assert.sameValue(desc.get, get_Func);
+ assert.sameValue(typeof(desc.set), "undefined");
+ assert.sameValue(desc.get, get_Func);
}
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-68.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-68.js
index d1615f974..8a5b27f21 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-68.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-68.js
@@ -14,32 +14,32 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: 10,
- configurable: false
+ value: 10,
+ configurable: false
});
function get_func() {
- return 11;
+ return 11;
}
try {
- Object.defineProperties(obj, {
- foo: {
- get: get_func
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ foo: {
+ get: get_func
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", 10);
+ verifyEqualTo(obj, "foo", 10);
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-69.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-69.js
index e0fb47e8e..8df102770 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-69.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-69.js
@@ -8,38 +8,38 @@ description: >
is true, desc is accessor property (8.12.9 step 9.b.i)
---*/
- var obj = {};
-
- Object.defineProperty(obj, "foo", {
- value: 10,
- configurable: true
- });
-
- function get_Func() {
- return 20;
- }
-
- Object.defineProperties(obj, {
- foo: {
- get: get_Func
- }
- });
-
- var verifyEnumerable = false;
- for (var p in obj) {
- if (p === "foo") {
- verifyEnumerable = true;
- }
- }
-
- var verifyValue = false;
- verifyValue = (obj.foo === 20);
-
- var desc = Object.getOwnPropertyDescriptor(obj, "foo");
-
- var verifyConfigurable = true;
- delete obj.foo;
- verifyConfigurable = obj.hasOwnProperty("foo");
+var obj = {};
+
+Object.defineProperty(obj, "foo", {
+ value: 10,
+ configurable: true
+});
+
+function get_Func() {
+ return 20;
+}
+
+Object.defineProperties(obj, {
+ foo: {
+ get: get_Func
+ }
+});
+
+var verifyEnumerable = false;
+for (var p in obj) {
+ if (p === "foo") {
+ verifyEnumerable = true;
+ }
+}
+
+var verifyValue = false;
+verifyValue = (obj.foo === 20);
+
+var desc = Object.getOwnPropertyDescriptor(obj, "foo");
+
+var verifyConfigurable = true;
+delete obj.foo;
+verifyConfigurable = obj.hasOwnProperty("foo");
assert.sameValue(verifyConfigurable, false, 'verifyConfigurable');
assert.sameValue(verifyEnumerable, false, 'verifyEnumerable');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-7.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-7.js
index f46b1a03a..a9aa8688f 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-7.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-7.js
@@ -8,27 +8,27 @@ description: >
overrides an inherited data property (8.12.9 step 1 )
---*/
- var proto = {};
- Object.defineProperty(proto, "prop", {
- value: 11,
- configurable: true
- });
- var Con = function () { };
- Con.prototype = proto;
+var proto = {};
+Object.defineProperty(proto, "prop", {
+ value: 11,
+ configurable: true
+});
+var Con = function() {};
+Con.prototype = proto;
- var obj = new Con();
- Object.defineProperty(obj, "prop", {
- get: function () {
- return 12;
- },
- configurable: false
- });
+var obj = new Con();
+Object.defineProperty(obj, "prop", {
+ get: function() {
+ return 12;
+ },
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- prop: {
- value: 13,
- configurable: true
- }
- });
+ Object.defineProperties(obj, {
+ prop: {
+ value: 13,
+ configurable: true
+ }
+ });
});
assert.sameValue(obj.prop, 12, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-70.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-70.js
index 63693367f..da3efb8d3 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-70.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-70.js
@@ -14,18 +14,18 @@ includes: [propertyHelper.js]
var obj = {};
function get_func() {
- return 10;
+ return 10;
}
Object.defineProperty(obj, "foo", {
- get: get_func,
- configurable: true
+ get: get_func,
+ configurable: true
});
Object.defineProperties(obj, {
- foo: {
- value: 12
- }
+ foo: {
+ value: 12
+ }
});
verifyEqualTo(obj, "foo", 12);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-71.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-71.js
index 1e4ebef1e..4b1fa5183 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-71.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-71.js
@@ -13,30 +13,30 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: 10,
- writable: false,
- configurable: false
+Object.defineProperty(obj, "foo", {
+ value: 10,
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperties(obj, {
- foo: {
- writable: true
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ foo: {
+ writable: true
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", 10);
+ verifyEqualTo(obj, "foo", 10);
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-72.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-72.js
index a7e08fd5d..45b00d5b2 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-72.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-72.js
@@ -14,30 +14,30 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: 10,
- writable: false,
- configurable: false
+Object.defineProperty(obj, "foo", {
+ value: 10,
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperties(obj, {
- foo: {
- value: 20
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ foo: {
+ value: 20
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", 10);
+ verifyEqualTo(obj, "foo", 10);
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-73.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-73.js
index b277a1b1a..65dbed0c1 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-73.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-73.js
@@ -13,16 +13,16 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: undefined,
- writable: false,
- configurable: false
+Object.defineProperty(obj, "foo", {
+ value: undefined,
+ writable: false,
+ configurable: false
});
Object.defineProperties(obj, {
- foo: {
- value: undefined
- }
+ foo: {
+ value: undefined
+ }
});
verifyEqualTo(obj, "foo", undefined);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-74.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-74.js
index 359fcbffb..0554f87c1 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-74.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-74.js
@@ -13,16 +13,16 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: null,
- writable: false,
- configurable: false
+Object.defineProperty(obj, "foo", {
+ value: null,
+ writable: false,
+ configurable: false
});
Object.defineProperties(obj, {
- foo: {
- value: null
- }
+ foo: {
+ value: null
+ }
});
verifyEqualTo(obj, "foo", null);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-75.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-75.js
index 7f3c41cb4..7d66ee61a 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-75.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-75.js
@@ -15,18 +15,17 @@ var obj = {};
var accessed = false;
Object.defineProperty(obj, "foo", {
- value: NaN,
- writable: false,
- configurable: false
+ value: NaN,
+ writable: false,
+ configurable: false
});
Object.defineProperties(obj, {
- foo: {
- value: NaN
- }
+ foo: {
+ value: NaN
+ }
});
verifyNotEnumerable(obj, "foo");
verifyNotWritable(obj, "foo");
verifyNotConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-76.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-76.js
index 8e45b20b1..9bc65e056 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-76.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-76.js
@@ -13,30 +13,30 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: -0,
- writable: false,
- configurable: false
+Object.defineProperty(obj, "foo", {
+ value: -0,
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperties(obj, {
- foo: {
- value: +0
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ foo: {
+ value: +0
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", -0);
+ verifyEqualTo(obj, "foo", -0);
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-77.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-77.js
index 76e45b219..bdda83d93 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-77.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-77.js
@@ -13,30 +13,30 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: +0,
- writable: false,
- configurable: false
+Object.defineProperty(obj, "foo", {
+ value: +0,
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperties(obj, {
- foo: {
- value: -0
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ foo: {
+ value: -0
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", +0);
+ verifyEqualTo(obj, "foo", +0);
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-78.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-78.js
index 2a65114e6..ac98a36dc 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-78.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-78.js
@@ -14,15 +14,15 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: 100,
- writable: false,
- configurable: false
+ value: 100,
+ writable: false,
+ configurable: false
});
Object.defineProperties(obj, {
- foo: {
- value: 100
- }
+ foo: {
+ value: 100
+ }
});
verifyEqualTo(obj, "foo", 100);
@@ -31,4 +31,3 @@ verifyNotWritable(obj, "foo");
verifyNotEnumerable(obj, "foo");
verifyNotConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-79.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-79.js
index 78f718e2f..e364fa603 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-79.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-79.js
@@ -13,30 +13,30 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: 10,
- writable: false,
- configurable: false
+Object.defineProperty(obj, "foo", {
+ value: 10,
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperties(obj, {
- foo: {
- value: 20
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ foo: {
+ value: 20
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", 10);
+ verifyEqualTo(obj, "foo", 10);
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-8.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-8.js
index 923f4fdc9..119c27d79 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-8.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-8.js
@@ -8,29 +8,29 @@ description: >
overrides an inherited accessor property (8.12.9 step 1 )
---*/
- var proto = {};
- Object.defineProperty(proto, "prop", {
- get: function() {
- return 11;
- },
- configurable: true
- });
- var Con = function () { };
- Con.prototype = proto;
+var proto = {};
+Object.defineProperty(proto, "prop", {
+ get: function() {
+ return 11;
+ },
+ configurable: true
+});
+var Con = function() {};
+Con.prototype = proto;
- var obj = new Con();
- Object.defineProperty(obj, "prop", {
- get: function () {
- return 12;
- },
- configurable: false
- });
+var obj = new Con();
+Object.defineProperty(obj, "prop", {
+ get: function() {
+ return 12;
+ },
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- prop: {
- value: 13,
- configurable: true
- }
- });
+ Object.defineProperties(obj, {
+ prop: {
+ value: 13,
+ configurable: true
+ }
+ });
});
assert.sameValue(obj.prop, 12, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-80.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-80.js
index 736f2945e..ba37ac598 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-80.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-80.js
@@ -14,15 +14,15 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: "abcd",
- writable: false,
- configurable: false
+ value: "abcd",
+ writable: false,
+ configurable: false
});
Object.defineProperties(obj, {
- foo: {
- value: "abcd"
- }
+ foo: {
+ value: "abcd"
+ }
});
verifyEqualTo(obj, "foo", "abcd");
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-81.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-81.js
index f44d56dd5..99a88342d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-81.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-81.js
@@ -13,30 +13,30 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: "abcd",
- writable: false,
- configurable: false
+Object.defineProperty(obj, "foo", {
+ value: "abcd",
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperties(obj, {
- foo: {
- value: "defg"
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ foo: {
+ value: "defg"
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", "abcd");
+ verifyEqualTo(obj, "foo", "abcd");
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-82.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-82.js
index e40729c33..10eff312d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-82.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-82.js
@@ -15,15 +15,15 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: false,
- writable: false,
- configurable: false
+ value: false,
+ writable: false,
+ configurable: false
});
Object.defineProperties(obj, {
- foo: {
- value: false
- }
+ foo: {
+ value: false
+ }
});
verifyEqualTo(obj, "foo", false);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-83.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-83.js
index 958e08ed9..6288ea2b3 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-83.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-83.js
@@ -14,29 +14,29 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: false,
- writable: false,
- configurable: false
+ value: false,
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperties(obj, {
- foo: {
- value: true
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ foo: {
+ value: true
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", false);
+ verifyEqualTo(obj, "foo", false);
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84-1.js
index 9ccb8b5c0..f78066f0c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84-1.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84-1.js
@@ -14,21 +14,23 @@ includes: [propertyHelper.js]
var obj = {};
-var obj1 = { length: 10 };
+var obj1 = {
+ length: 10
+};
Object.defineProperty(obj, "foo", {
- value: obj1,
- writable: false,
- configurable: false
+ value: obj1,
+ writable: false,
+ configurable: false
});
var obj2 = obj1;
obj2.y = "hello";
Object.defineProperties(obj, {
- foo: {
- value: obj2
- }
+ foo: {
+ value: obj2
+ }
});
verifyEqualTo(obj, "foo", obj1);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84.js
index 78e078fa7..35932acd6 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84.js
@@ -14,18 +14,20 @@ includes: [propertyHelper.js]
var obj = {};
-var obj1 = { length: 10 };
-
-Object.defineProperty(obj, "foo", {
- value: obj1,
- writable: false,
- configurable: false
+var obj1 = {
+ length: 10
+};
+
+Object.defineProperty(obj, "foo", {
+ value: obj1,
+ writable: false,
+ configurable: false
});
Object.defineProperties(obj, {
- foo: {
- value: obj1
- }
+ foo: {
+ value: obj1
+ }
});
verifyEqualTo(obj, "foo", obj1);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-85.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-85.js
index 7f5d016ed..9ff21468b 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-85.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-85.js
@@ -13,34 +13,38 @@ includes: [propertyHelper.js]
var obj = {};
-var obj1 = { length: 10 };
-
-Object.defineProperty(obj, "foo", {
- value: obj1,
- writable: false,
- configurable: false
+var obj1 = {
+ length: 10
+};
+
+Object.defineProperty(obj, "foo", {
+ value: obj1,
+ writable: false,
+ configurable: false
});
-var obj2 = { length: 20 };
+var obj2 = {
+ length: 20
+};
try {
- Object.defineProperties(obj, {
- foo: {
- value: obj2
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ foo: {
+ value: obj2
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", obj1);
+ verifyEqualTo(obj, "foo", obj1);
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86-1.js
index a6ede93bf..120d7ecce 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86-1.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86-1.js
@@ -14,34 +14,34 @@ includes: [propertyHelper.js]
var obj = {};
-var set_func = function (value) {
- obj.setVerifyHelpProp = value;
+var set_func = function(value) {
+ obj.setVerifyHelpProp = value;
};
Object.defineProperty(obj, "foo", {
- set: set_func,
- configurable: false
+ set: set_func,
+ configurable: false
});
-set_func = function (value) {
- obj.setVerifyHelpProp1 = value;
+set_func = function(value) {
+ obj.setVerifyHelpProp1 = value;
};
try {
- Object.defineProperties(obj, {
- foo: {
- set: set_func
- }
- });
+ Object.defineProperties(obj, {
+ foo: {
+ set: set_func
+ }
+ });
} catch (e) {
- verifyWritable(obj, "foo", "setVerifyHelpProp");
+ verifyWritable(obj, "foo", "setVerifyHelpProp");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86.js
index 4792d6dc7..762302ec8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86.js
@@ -14,22 +14,21 @@ includes: [propertyHelper.js]
var obj = {};
function set_func(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperty(obj, "foo", {
- set: set_func,
- configurable: false
+ set: set_func,
+ configurable: false
});
Object.defineProperties(obj, {
- foo: {
- set: set_func
- }
+ foo: {
+ set: set_func
+ }
});
verifyWritable(obj, "foo", "setVerifyHelpProp");
verifyNotEnumerable(obj, "foo");
verifyNotConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-87.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-87.js
index c62ac4b97..13dbde09c 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-87.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-87.js
@@ -14,33 +14,32 @@ includes: [propertyHelper.js]
var obj = {};
function set_func1(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperty(obj, "foo", {
- set: set_func1,
- configurable: false
+ set: set_func1,
+ configurable: false
});
function set_func2() {}
try {
- Object.defineProperties(obj, {
- foo: {
- set: set_func2
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ foo: {
+ set: set_func2
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyWritable(obj, "foo", "setVerifyHelpProp");
+ verifyWritable(obj, "foo", "setVerifyHelpProp");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-88.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-88.js
index a8ef44e7f..bc961e8ff 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-88.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-88.js
@@ -14,38 +14,38 @@ includes: [propertyHelper.js]
var obj = {};
function get_Func() {
- return 0;
+ return 0;
}
Object.defineProperty(obj, "foo", {
- set: undefined,
- get: get_Func,
- enumerable: false,
- configurable: false
+ set: undefined,
+ get: get_Func,
+ enumerable: false,
+ configurable: false
});
function set_Func() {}
try {
- Object.defineProperties(obj, {
- foo: {
- set: set_Func
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ foo: {
+ set: set_Func
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
- var desc = Object.getOwnPropertyDescriptor(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
+ var desc = Object.getOwnPropertyDescriptor(obj, "foo");
- if (typeof (desc.set) !== "undefined") {
- $ERROR('Expected typeof (desc.set) === "undefined", actually ' + typeof (desc.set));
- }
+ if (typeof(desc.set) !== "undefined") {
+ $ERROR('Expected typeof (desc.set) === "undefined", actually ' + typeof(desc.set));
+ }
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-89.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-89.js
index 778ba138b..0c2d713de 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-89.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-89.js
@@ -14,20 +14,20 @@ includes: [propertyHelper.js]
var obj = {};
function get_Func() {
- return 0;
+ return 0;
}
Object.defineProperty(obj, "foo", {
- get: get_Func,
- set: undefined,
- enumerable: false,
- configurable: false
+ get: get_Func,
+ set: undefined,
+ enumerable: false,
+ configurable: false
});
Object.defineProperties(obj, {
- foo: {
- set: undefined
- }
+ foo: {
+ set: undefined
+ }
});
verifyNotEnumerable(obj, "foo");
@@ -36,6 +36,6 @@ verifyNotConfigurable(obj, "foo");
var desc = Object.getOwnPropertyDescriptor(obj, "foo");
-if (typeof (desc.set) !== "undefined") {
- $ERROR('Expected typeof (desc.set) === "undefined", actually ' + typeof (desc.set));
+if (typeof(desc.set) !== "undefined") {
+ $ERROR('Expected typeof (desc.set) === "undefined", actually ' + typeof(desc.set));
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-9.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-9.js
index 1b703ad31..35f88c16d 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-9.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-9.js
@@ -8,16 +8,16 @@ description: >
get function (8.12.9 step 1 )
---*/
- var obj = {};
- Object.defineProperty(obj, "prop", {
- set: function () { },
- configurable: false
- });
+var obj = {};
+Object.defineProperty(obj, "prop", {
+ set: function() {},
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperties(obj, {
- prop: {
- get: function () { },
- configurable: true
- }
- });
+ Object.defineProperties(obj, {
+ prop: {
+ get: function() {},
+ configurable: true
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-90.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-90.js
index 2002a2c7a..c8407d1e8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-90.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-90.js
@@ -14,23 +14,24 @@ includes: [propertyHelper.js]
var obj = {};
function set_func(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
+
function get_func() {
- return 10;
+ return 10;
}
Object.defineProperty(obj, "foo", {
- get: get_func,
- set: set_func,
- enumerable: false,
- configurable: false
+ get: get_func,
+ set: set_func,
+ enumerable: false,
+ configurable: false
});
Object.defineProperties(obj, {
- foo: {
- get: get_func
- }
+ foo: {
+ get: get_func
+ }
});
verifyEqualTo(obj, "foo", get_func());
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-91.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-91.js
index 3698daffb..ec80c007b 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-91.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-91.js
@@ -14,42 +14,42 @@ includes: [propertyHelper.js]
var obj = {};
function set_func(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
+
function get_func1() {
- return 10;
+ return 10;
}
Object.defineProperty(obj, "foo", {
- get: get_func1,
- set: set_func,
- enumerable: false,
- configurable: false
+ get: get_func1,
+ set: set_func,
+ enumerable: false,
+ configurable: false
});
function get_func2() {
- return 20;
+ return 20;
}
try {
- Object.defineProperties(obj, {
- foo: {
- get: get_func2
- }
- });
- $ERROR("Expected an exception");
+ Object.defineProperties(obj, {
+ foo: {
+ get: get_func2
+ }
+ });
+ $ERROR("Expected an exception");
} catch (e) {
- verifyEqualTo(obj, "foo", get_func1());
+ verifyEqualTo(obj, "foo", get_func1());
- verifyWritable(obj, "foo", "setVerifyHelpProp");
+ verifyWritable(obj, "foo", "setVerifyHelpProp");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
-
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-92.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-92.js
index adfd982a3..2af77cd28 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-92.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-92.js
@@ -14,36 +14,36 @@ includes: [propertyHelper.js]
var obj = {};
function set_func(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperty(obj, "foo", {
- get: undefined,
- set: set_func,
- enumerable: false,
- configurable: false
+ get: undefined,
+ set: set_func,
+ enumerable: false,
+ configurable: false
});
function get_func() {
- return 0;
+ return 0;
}
try {
- Object.defineProperties(obj, {
- foo: {
- get: get_func
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ foo: {
+ get: get_func
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyWritable(obj, "foo", "setVerifyHelpProp");
+ verifyWritable(obj, "foo", "setVerifyHelpProp");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-1.js
index 50e80f248..2b77c05db 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-1.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-1.js
@@ -15,46 +15,46 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "property", {
- value: 1001,
- writable: false,
- configurable: true
+ value: 1001,
+ writable: false,
+ configurable: true
});
Object.defineProperty(obj, "property1", {
- value: 1003,
- writable: false,
- configurable: false
+ value: 1003,
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperties(obj, {
- property: {
- value: 1002
- },
- property1: {
- value: 1004
- }
- });
-
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ property: {
+ value: 1002
+ },
+ property1: {
+ value: 1004
+ }
+ });
+
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "property", 1002);
+ verifyEqualTo(obj, "property", 1002);
- verifyNotWritable(obj, "property");
+ verifyNotWritable(obj, "property");
- verifyNotEnumerable(obj, "property");
+ verifyNotEnumerable(obj, "property");
- verifyConfigurable(obj, "property");
- verifyEqualTo(obj, "property1", 1003);
+ verifyConfigurable(obj, "property");
+ verifyEqualTo(obj, "property1", 1003);
- verifyNotWritable(obj, "property1");
+ verifyNotWritable(obj, "property1");
- verifyNotEnumerable(obj, "property1");
+ verifyNotEnumerable(obj, "property1");
- verifyNotConfigurable(obj, "property1");
+ verifyNotConfigurable(obj, "property1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-2.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-2.js
index cfbe9f516..ccab6d7e8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-2.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-2.js
@@ -15,46 +15,46 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "0", {
- value: 1001,
- writable: false,
- configurable: true
+ value: 1001,
+ writable: false,
+ configurable: true
});
Object.defineProperty(obj, "1", {
- value: 1003,
- writable: false,
- configurable: false
+ value: 1003,
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperties(obj, {
- 0: {
- value: 1002
- },
- 1: {
- value: 1004
- }
- });
-
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ 0: {
+ value: 1002
+ },
+ 1: {
+ value: 1004
+ }
+ });
+
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "0", 1002);
+ verifyEqualTo(obj, "0", 1002);
- verifyNotWritable(obj, "0");
+ verifyNotWritable(obj, "0");
- verifyNotEnumerable(obj, "0");
+ verifyNotEnumerable(obj, "0");
- verifyConfigurable(obj, "0");
- verifyEqualTo(obj, "1", 1003);
+ verifyConfigurable(obj, "0");
+ verifyEqualTo(obj, "1", 1003);
- verifyNotWritable(obj, "1");
+ verifyNotWritable(obj, "1");
- verifyNotEnumerable(obj, "1");
+ verifyNotEnumerable(obj, "1");
- verifyNotConfigurable(obj, "1");
+ verifyNotConfigurable(obj, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-3.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-3.js
index ff5d40563..040fd17b3 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-3.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-3.js
@@ -14,47 +14,47 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "property", {
- value: 1001,
- writable: false,
- configurable: false
+ value: 1001,
+ writable: false,
+ configurable: false
});
Object.defineProperty(obj, "property1", {
- value: 1003,
- writable: false,
- configurable: true
+ value: 1003,
+ writable: false,
+ configurable: true
});
try {
- Object.defineProperties(obj, {
- property: {
- value: 1002
- },
- property1: {
- value: 1004
- }
- });
-
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ property: {
+ value: 1002
+ },
+ property1: {
+ value: 1004
+ }
+ });
+
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "property", 1001);
+ verifyEqualTo(obj, "property", 1001);
- verifyNotWritable(obj, "property");
+ verifyNotWritable(obj, "property");
- verifyNotEnumerable(obj, "property");
+ verifyNotEnumerable(obj, "property");
- verifyNotConfigurable(obj, "property");
+ verifyNotConfigurable(obj, "property");
- verifyEqualTo(obj, "property1", 1003);
+ verifyEqualTo(obj, "property1", 1003);
- verifyNotWritable(obj, "property1");
+ verifyNotWritable(obj, "property1");
- verifyNotEnumerable(obj, "property1");
+ verifyNotEnumerable(obj, "property1");
- verifyConfigurable(obj, "property1");
+ verifyConfigurable(obj, "property1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-4.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-4.js
index 89feb4d5f..3f871066b 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-4.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-4.js
@@ -14,46 +14,46 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "0", {
- value: 1001,
- writable: false,
- configurable: false
+ value: 1001,
+ writable: false,
+ configurable: false
});
Object.defineProperty(obj, "1", {
- value: 1003,
- writable: false,
- configurable: true
+ value: 1003,
+ writable: false,
+ configurable: true
});
try {
- Object.defineProperties(obj, {
- 0: {
- value: 1002
- },
- 1: {
- value: 1004
- }
- });
-
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ 0: {
+ value: 1002
+ },
+ 1: {
+ value: 1004
+ }
+ });
+
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "0", 1001);
+ verifyEqualTo(obj, "0", 1001);
- verifyNotWritable(obj, "0");
+ verifyNotWritable(obj, "0");
- verifyNotEnumerable(obj, "0");
+ verifyNotEnumerable(obj, "0");
- verifyNotConfigurable(obj, "0");
- verifyEqualTo(obj, "1", 1003);
+ verifyNotConfigurable(obj, "0");
+ verifyEqualTo(obj, "1", 1003);
- verifyNotWritable(obj, "1");
+ verifyNotWritable(obj, "1");
- verifyNotEnumerable(obj, "1");
+ verifyNotEnumerable(obj, "1");
- verifyConfigurable(obj, "1");
+ verifyConfigurable(obj, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93.js
index 2562a0ad0..4e3c784f2 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93.js
@@ -14,20 +14,20 @@ includes: [propertyHelper.js]
var obj = {};
function set_func(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperty(obj, "foo", {
- get: undefined,
- set: set_func,
- enumerable: false,
- configurable: false
+ get: undefined,
+ set: set_func,
+ enumerable: false,
+ configurable: false
});
Object.defineProperties(obj, {
- foo: {
- get: undefined
- }
+ foo: {
+ get: undefined
+ }
});
verifyWritable(obj, "foo", "setVerifyHelpProp");
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-94.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-94.js
index 2955e6ff4..1df8a4132 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-94.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-94.js
@@ -15,9 +15,9 @@ var obj = {};
obj.foo = 100; // default value of attributes: writable: true, configurable: true, enumerable: true
Object.defineProperties(obj, {
- foo: {
- value: 200
- }
+ foo: {
+ value: 200
+ }
});
verifyEqualTo(obj, "foo", 200);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-95.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-95.js
index 387c062a1..08a0229e8 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-95.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-95.js
@@ -13,16 +13,16 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: 200,
- enumerable: true,
- writable: true,
- configurable: true
+ value: 200,
+ enumerable: true,
+ writable: true,
+ configurable: true
});
Object.defineProperties(obj, {
- foo: {
- value: undefined
- }
+ foo: {
+ value: undefined
+ }
});
verifyEqualTo(obj, "foo", undefined);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-96.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-96.js
index 8fec3fa53..18e7cb5d0 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-96.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-96.js
@@ -13,16 +13,16 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: undefined,
- enumerable: true,
- writable: true,
- configurable: true
+ value: undefined,
+ enumerable: true,
+ writable: true,
+ configurable: true
});
Object.defineProperties(obj, {
- foo: {
- value: 200
- }
+ foo: {
+ value: 200
+ }
});
verifyEqualTo(obj, "foo", 200);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-97.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-97.js
index 197be1c81..015b74be7 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-97.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-97.js
@@ -12,17 +12,17 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: 100,
- enumerable: true,
- writable: false,
- configurable: true
+Object.defineProperty(obj, "foo", {
+ value: 100,
+ enumerable: true,
+ writable: false,
+ configurable: true
});
Object.defineProperties(obj, {
- foo: {
- writable: true
- }
+ foo: {
+ writable: true
+ }
});
verifyEqualTo(obj, "foo", 100);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-98.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-98.js
index cfd9cd94c..37e8dc012 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-98.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-98.js
@@ -12,17 +12,17 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: 200,
- enumerable: false,
- writable: true,
- configurable: true
+Object.defineProperty(obj, "foo", {
+ value: 200,
+ enumerable: false,
+ writable: true,
+ configurable: true
});
Object.defineProperties(obj, {
- foo: {
- enumerable: true
- }
+ foo: {
+ enumerable: true
+ }
});
verifyEqualTo(obj, "foo", 200);
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-99.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-99.js
index ce93bc299..055a3c849 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-99.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-99.js
@@ -12,17 +12,17 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: 200,
- enumerable: true,
- writable: true,
- configurable: true
+Object.defineProperty(obj, "foo", {
+ value: 200,
+ enumerable: true,
+ writable: true,
+ configurable: true
});
Object.defineProperties(obj, {
- foo: {
- configurable: false
- }
+ foo: {
+ configurable: false
+ }
});
verifyEqualTo(obj, "foo", 200);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-0-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-0-1.js
index e552666a3..e507ae0bc 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-0-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-0-1.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.6-0-1
description: Object.defineProperty must exist as a function
---*/
- var f = Object.defineProperty;
+var f = Object.defineProperty;
assert.sameValue(typeof(f), "function", 'typeof(f)');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-1-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-1-1.js
index 07851ab52..d78f0fa01 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-1-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-1-1.js
@@ -7,5 +7,5 @@ description: Object.defineProperty applied to undefined throws a TypeError
---*/
assert.throws(TypeError, function() {
- Object.defineProperty(undefined, "foo", {});
+ Object.defineProperty(undefined, "foo", {});
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-1-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-1-2.js
index ad1ef64aa..29698ff4a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-1-2.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-1-2.js
@@ -7,5 +7,5 @@ description: Object.defineProperty applied to null throws a TypeError
---*/
assert.throws(TypeError, function() {
- Object.defineProperty(null, "foo", {});
+ Object.defineProperty(null, "foo", {});
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-1-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-1-3.js
index 7fac12e1b..22322c244 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-1-3.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-1-3.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(TypeError, function() {
- Object.defineProperty(5, "foo", {});
+ Object.defineProperty(5, "foo", {});
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-1-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-1-4.js
index 2f0f77464..a2368fcc0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-1-4.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-1-4.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(TypeError, function() {
- Object.defineProperty("hello\nworld\\!", "foo", {});
+ Object.defineProperty("hello\nworld\\!", "foo", {});
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-1.js
index c3459ee28..bc863a7be 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-1.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(TypeError, function() {
- Object.defineProperty(true, "foo", {});
+ Object.defineProperty(true, "foo", {});
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-1.js
index 7858e8907..1b8589db2 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-1.js
@@ -8,7 +8,7 @@ description: >
string 'undefined'
---*/
- var obj = {};
- Object.defineProperty(obj, undefined, {});
+var obj = {};
+Object.defineProperty(obj, undefined, {});
assert(obj.hasOwnProperty("undefined"), 'obj.hasOwnProperty("undefined") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-10.js
index 6c8c201fe..c3b52b74d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-10.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-10.js
@@ -8,7 +8,7 @@ description: >
a string (value is a negative number)
---*/
- var obj = {};
- Object.defineProperty(obj, -20, {});
+var obj = {};
+Object.defineProperty(obj, -20, {});
assert(obj.hasOwnProperty("-20"), 'obj.hasOwnProperty("-20") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-11.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-11.js
index bfc039d84..576f3f968 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-11.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-11.js
@@ -8,7 +8,7 @@ description: >
a string (value is Infinity)
---*/
- var obj = {};
- Object.defineProperty(obj, Infinity, {});
+var obj = {};
+Object.defineProperty(obj, Infinity, {});
assert(obj.hasOwnProperty("Infinity"), 'obj.hasOwnProperty("Infinity") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-12.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-12.js
index 63ef4f254..fb1fed3da 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-12.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-12.js
@@ -8,7 +8,7 @@ description: >
a string (value is +Infinity)
---*/
- var obj = {};
- Object.defineProperty(obj, +Infinity, {});
+var obj = {};
+Object.defineProperty(obj, +Infinity, {});
assert(obj.hasOwnProperty("Infinity"), 'obj.hasOwnProperty("Infinity") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-13.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-13.js
index 230e0f1c7..2a2bb96bc 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-13.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-13.js
@@ -8,7 +8,7 @@ description: >
a string (value is -Infinity)
---*/
- var obj = {};
- Object.defineProperty(obj, -Infinity, {});
+var obj = {};
+Object.defineProperty(obj, -Infinity, {});
assert(obj.hasOwnProperty("-Infinity"), 'obj.hasOwnProperty("-Infinity") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-14.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-14.js
index 5283705b2..54800b7b3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-14.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-14.js
@@ -8,7 +8,7 @@ description: >
a string (value is 1(following 20 zeros))
---*/
- var obj = {};
- Object.defineProperty(obj, 100000000000000000000, {});
+var obj = {};
+Object.defineProperty(obj, 100000000000000000000, {});
assert(obj.hasOwnProperty("100000000000000000000"), 'obj.hasOwnProperty("100000000000000000000") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-15.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-15.js
index e6dbae772..f14f48452 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-15.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-15.js
@@ -8,7 +8,7 @@ description: >
a string (value is 1(following 21 zeros))
---*/
- var obj = {};
- Object.defineProperty(obj, 1000000000000000000000, {});
+var obj = {};
+Object.defineProperty(obj, 1000000000000000000000, {});
assert(obj.hasOwnProperty("1e+21"), 'obj.hasOwnProperty("1e+21") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-16.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-16.js
index e3a21b972..94ccfaa86 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-16.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-16.js
@@ -8,7 +8,7 @@ description: >
a string (value is 1(following 22 zeros))
---*/
- var obj = {};
- Object.defineProperty(obj, 10000000000000000000000, {});
+var obj = {};
+Object.defineProperty(obj, 10000000000000000000000, {});
assert(obj.hasOwnProperty("1e+22"), 'obj.hasOwnProperty("1e+22") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-17-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-17-1.js
index 2a57a5d35..d0aa983f8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-17-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-17-1.js
@@ -8,7 +8,7 @@ description: >
a string (value is 1)
---*/
- var obj = {};
- Object.defineProperty(obj, 1, {});
+var obj = {};
+Object.defineProperty(obj, 1, {});
assert(obj.hasOwnProperty("1"), 'obj.hasOwnProperty("1") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-17.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-17.js
index 9e8bb2ddb..ae62d9a03 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-17.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-17.js
@@ -8,7 +8,7 @@ description: >
a string (value is 1e+20)
---*/
- var obj = {};
- Object.defineProperty(obj, 1e+20, {});
+var obj = {};
+Object.defineProperty(obj, 1e+20, {});
assert(obj.hasOwnProperty("100000000000000000000"), 'obj.hasOwnProperty("100000000000000000000") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-18.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-18.js
index 0dbaf2e38..205de24a2 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-18.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-18.js
@@ -8,7 +8,7 @@ description: >
string (value is 1e+21)
---*/
- var obj = {};
- Object.defineProperty(obj, 1e+21, {});
+var obj = {};
+Object.defineProperty(obj, 1e+21, {});
assert(obj.hasOwnProperty("1e+21"), 'obj.hasOwnProperty("1e+21") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-19.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-19.js
index bda77ab5e..3cdcfc0d4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-19.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-19.js
@@ -8,7 +8,7 @@ description: >
string (value is 1e+22)
---*/
- var obj = {};
- Object.defineProperty(obj, 1e+22, {});
+var obj = {};
+Object.defineProperty(obj, 1e+22, {});
assert(obj.hasOwnProperty("1e+22"), 'obj.hasOwnProperty("1e+22") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-2.js
index 31d6fb887..68d62dd21 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-2.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-2.js
@@ -8,7 +8,7 @@ description: >
string 'null'
---*/
- var obj = {};
- Object.defineProperty(obj, null, {});
+var obj = {};
+Object.defineProperty(obj, null, {});
assert(obj.hasOwnProperty("null"), 'obj.hasOwnProperty("null") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-20.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-20.js
index 06d8aa82a..fc3d896c0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-20.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-20.js
@@ -8,7 +8,7 @@ description: >
a string (value is 0.000001)
---*/
- var obj = {};
- Object.defineProperty(obj, 0.000001, {});
+var obj = {};
+Object.defineProperty(obj, 0.000001, {});
assert(obj.hasOwnProperty("0.000001"), 'obj.hasOwnProperty("0.000001") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-21.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-21.js
index 287d8c1dd..d21b1b707 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-21.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-21.js
@@ -8,7 +8,7 @@ description: >
a string (value is 0.0000001)
---*/
- var obj = {};
- Object.defineProperty(obj, 0.0000001, {});
+var obj = {};
+Object.defineProperty(obj, 0.0000001, {});
assert(obj.hasOwnProperty("1e-7"), 'obj.hasOwnProperty("1e-7") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-22.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-22.js
index e803f48de..dc5764ddb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-22.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-22.js
@@ -8,7 +8,7 @@ description: >
a string (value is 0.00000001)
---*/
- var obj = {};
- Object.defineProperty(obj, 0.00000001, {});
+var obj = {};
+Object.defineProperty(obj, 0.00000001, {});
assert(obj.hasOwnProperty("1e-8"), 'obj.hasOwnProperty("1e-8") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-23.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-23.js
index 3839f960d..3422c1317 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-23.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-23.js
@@ -8,7 +8,7 @@ description: >
a string (value is 1e-7)
---*/
- var obj = {};
- Object.defineProperty(obj, 1e-7, {});
+var obj = {};
+Object.defineProperty(obj, 1e-7, {});
assert(obj.hasOwnProperty("1e-7"), 'obj.hasOwnProperty("1e-7") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-24.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-24.js
index da1d927b5..be331a8ac 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-24.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-24.js
@@ -8,7 +8,7 @@ description: >
a string (value is 1e-6)
---*/
- var obj = {};
- Object.defineProperty(obj, 1e-6, {});
+var obj = {};
+Object.defineProperty(obj, 1e-6, {});
assert(obj.hasOwnProperty("0.000001"), 'obj.hasOwnProperty("0.000001") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-25.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-25.js
index 740c0e3dd..79d010d5b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-25.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-25.js
@@ -8,7 +8,7 @@ description: >
a string (value is 1e-5)
---*/
- var obj = {};
- Object.defineProperty(obj, 1e-5, {});
+var obj = {};
+Object.defineProperty(obj, 1e-5, {});
assert(obj.hasOwnProperty("0.00001"), 'obj.hasOwnProperty("0.00001") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-26.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-26.js
index e514f84ac..5499e7f55 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-26.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-26.js
@@ -8,7 +8,7 @@ description: >
to a string (value is 123)
---*/
- var obj = {};
- Object.defineProperty(obj, 123, {});
+var obj = {};
+Object.defineProperty(obj, 123, {});
assert(obj.hasOwnProperty("123"), 'obj.hasOwnProperty("123") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-27.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-27.js
index 889ff4480..535f6c4b3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-27.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-27.js
@@ -8,7 +8,7 @@ description: >
a string (value is 123.456)
---*/
- var obj = {};
- Object.defineProperty(obj, 123.456, {});
+var obj = {};
+Object.defineProperty(obj, 123.456, {});
assert(obj.hasOwnProperty("123.456"), 'obj.hasOwnProperty("123.456") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-28.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-28.js
index ac3077dbf..dee948966 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-28.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-28.js
@@ -8,7 +8,7 @@ description: >
a string (value is 1(following 19 zeros).1)
---*/
- var obj = {};
- Object.defineProperty(obj, 10000000000000000000.1, {});
+var obj = {};
+Object.defineProperty(obj, 10000000000000000000.1, {});
assert(obj.hasOwnProperty("10000000000000000000"), 'obj.hasOwnProperty("10000000000000000000") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-29.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-29.js
index c4cd44599..b897ff648 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-29.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-29.js
@@ -8,7 +8,7 @@ description: >
a string (value is 1(following 20 zeros).1)
---*/
- var obj = {};
- Object.defineProperty(obj, 100000000000000000000.1, {});
+var obj = {};
+Object.defineProperty(obj, 100000000000000000000.1, {});
assert(obj.hasOwnProperty("100000000000000000000"), 'obj.hasOwnProperty("100000000000000000000") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-3.js
index 076c40166..e9d58d50c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-3.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-3.js
@@ -8,7 +8,7 @@ description: >
false
---*/
- var obj = {};
- Object.defineProperty(obj, false, {});
+var obj = {};
+Object.defineProperty(obj, false, {});
assert(obj.hasOwnProperty("false"), 'obj.hasOwnProperty("false") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-30.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-30.js
index 774bb3305..9dee13a29 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-30.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-30.js
@@ -8,7 +8,7 @@ description: >
a string (value is 1(following 21 zeros).1)
---*/
- var obj = {};
- Object.defineProperty(obj, 1000000000000000000000.1, {});
+var obj = {};
+Object.defineProperty(obj, 1000000000000000000000.1, {});
assert(obj.hasOwnProperty("1e+21"), 'obj.hasOwnProperty("1e+21") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-31.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-31.js
index 59dd29568..844d7b7f3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-31.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-31.js
@@ -8,7 +8,7 @@ description: >
a string (value is 1(following 22 zeros).1)
---*/
- var obj = {};
- Object.defineProperty(obj, 10000000000000000000000.1, {});
+var obj = {};
+Object.defineProperty(obj, 10000000000000000000000.1, {});
assert(obj.hasOwnProperty("1e+22"), 'obj.hasOwnProperty("1e+22") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-32.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-32.js
index fee7a1109..c34e5ae81 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-32.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-32.js
@@ -8,7 +8,7 @@ description: >
a string (value is 123.1234567)
---*/
- var obj = {};
- Object.defineProperty(obj, 123.1234567, {});
+var obj = {};
+Object.defineProperty(obj, 123.1234567, {});
assert(obj.hasOwnProperty("123.1234567"), 'obj.hasOwnProperty("123.1234567") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-33.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-33.js
index 4e62e4a16..5749d1c9b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-33.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-33.js
@@ -6,7 +6,7 @@ es5id: 15.2.3.6-2-33
description: Object.defineProperty - argument 'P' is applied to an empty string
---*/
- var obj = {};
- Object.defineProperty(obj, "", {});
+var obj = {};
+Object.defineProperty(obj, "", {});
assert(obj.hasOwnProperty(""), 'obj.hasOwnProperty("") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-34.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-34.js
index c8d127e5d..35b64a5a9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-34.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-34.js
@@ -6,7 +6,7 @@ es5id: 15.2.3.6-2-34
description: Object.defineProperty - argument 'P' is applied to string 'AB \cd'
---*/
- var obj = {};
- Object.defineProperty(obj, "AB\n\\cd", {});
+var obj = {};
+Object.defineProperty(obj, "AB\n\\cd", {});
assert(obj.hasOwnProperty("AB\n\\cd"), 'obj.hasOwnProperty("AB\n\\cd") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-35.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-35.js
index 85150e3fc..c5dfc603d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-35.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-35.js
@@ -8,7 +8,7 @@ description: >
'undefined'
---*/
- var obj = {};
- Object.defineProperty(obj, "undefined", {});
+var obj = {};
+Object.defineProperty(obj, "undefined", {});
assert(obj.hasOwnProperty("undefined"), 'obj.hasOwnProperty("undefined") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-36.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-36.js
index 1e63f2334..91e27ced4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-36.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-36.js
@@ -6,7 +6,7 @@ es5id: 15.2.3.6-2-36
description: Object.defineProperty - argument 'P' is applied to string 'null'
---*/
- var obj = {};
- Object.defineProperty(obj, "null", {});
+var obj = {};
+Object.defineProperty(obj, "null", {});
assert(obj.hasOwnProperty("null"), 'obj.hasOwnProperty("null") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-37.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-37.js
index 92fae11cd..84c75005a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-37.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-37.js
@@ -8,7 +8,7 @@ description: >
'123αβπcd'
---*/
- var obj = {};
- Object.defineProperty(obj, "123αβπcd", {});
+var obj = {};
+Object.defineProperty(obj, "123αβπcd", {});
assert(obj.hasOwnProperty("123αβπcd"), 'obj.hasOwnProperty("123αβπcd") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-38.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-38.js
index 97470527a..3a60248f4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-38.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-38.js
@@ -6,7 +6,7 @@ es5id: 15.2.3.6-2-38
description: Object.defineProperty - argument 'P' is applied to string '1'
---*/
- var obj = {};
- Object.defineProperty(obj, "1", {});
+var obj = {};
+Object.defineProperty(obj, "1", {});
assert(obj.hasOwnProperty("1"), 'obj.hasOwnProperty("1") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-39.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-39.js
index 37a927863..8574694e1 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-39.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-39.js
@@ -8,7 +8,7 @@ description: >
a string
---*/
- var obj = {};
- Object.defineProperty(obj, [1, 2], {});
+var obj = {};
+Object.defineProperty(obj, [1, 2], {});
assert(obj.hasOwnProperty("1,2"), 'obj.hasOwnProperty("1,2") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-4.js
index 5089fa099..b971991d7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-4.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-4.js
@@ -8,7 +8,7 @@ description: >
true
---*/
- var obj = {};
- Object.defineProperty(obj, true, {});
+var obj = {};
+Object.defineProperty(obj, true, {});
assert(obj.hasOwnProperty("true"), 'obj.hasOwnProperty("true") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-40.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-40.js
index af780b296..cda36d2b5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-40.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-40.js
@@ -8,7 +8,7 @@ description: >
converts to a string
---*/
- var obj = {};
- Object.defineProperty(obj, new String("Hello"), {});
+var obj = {};
+Object.defineProperty(obj, new String("Hello"), {});
assert(obj.hasOwnProperty("Hello"), 'obj.hasOwnProperty("Hello") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-41.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-41.js
index dcfcdc5d9..a605fd7eb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-41.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-41.js
@@ -8,7 +8,7 @@ description: >
converts to a string
---*/
- var obj = {};
- Object.defineProperty(obj, new Boolean(false), {});
+var obj = {};
+Object.defineProperty(obj, new Boolean(false), {});
assert(obj.hasOwnProperty("false"), 'obj.hasOwnProperty("false") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-42.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-42.js
index f2eab5c8b..194379fa1 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-42.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-42.js
@@ -8,7 +8,7 @@ description: >
converts to a string
---*/
- var obj = {};
- Object.defineProperty(obj, new Number(123), {});
+var obj = {};
+Object.defineProperty(obj, new Number(123), {});
assert(obj.hasOwnProperty("123"), 'obj.hasOwnProperty("123") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-43.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-43.js
index 699492a0b..6d65a48c5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-43.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-43.js
@@ -8,14 +8,14 @@ description: >
toString method
---*/
- var obj = {};
+var obj = {};
- var ownProp = {
- toString: function () {
- return "abc";
- }
- };
+var ownProp = {
+ toString: function() {
+ return "abc";
+ }
+};
- Object.defineProperty(obj, ownProp, {});
+Object.defineProperty(obj, ownProp, {});
assert(obj.hasOwnProperty("abc"), 'obj.hasOwnProperty("abc") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-44.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-44.js
index ce1c4987e..796bf8a94 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-44.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-44.js
@@ -8,15 +8,15 @@ description: >
valueOf method
---*/
- var obj = {};
+var obj = {};
- var ownProp = {
- valueOf: function () {
- return "abc";
- },
- toString: undefined
- };
+var ownProp = {
+ valueOf: function() {
+ return "abc";
+ },
+ toString: undefined
+};
- Object.defineProperty(obj, ownProp, {});
+Object.defineProperty(obj, ownProp, {});
assert(obj.hasOwnProperty("abc"), 'obj.hasOwnProperty("abc") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-45.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-45.js
index 09a51c198..992db6eee 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-45.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-45.js
@@ -9,22 +9,22 @@ description: >
primitive value
---*/
- var obj = {};
- var toStringAccessed = false;
- var valueOfAccessed = false;
+var obj = {};
+var toStringAccessed = false;
+var valueOfAccessed = false;
- var ownProp = {
- toString: function () {
- toStringAccessed = true;
- return {};
- },
- valueOf: function () {
- valueOfAccessed = true;
- return "abc";
- }
- };
+var ownProp = {
+ toString: function() {
+ toStringAccessed = true;
+ return {};
+ },
+ valueOf: function() {
+ valueOfAccessed = true;
+ return "abc";
+ }
+};
- Object.defineProperty(obj, ownProp, {});
+Object.defineProperty(obj, ownProp, {});
assert(obj.hasOwnProperty("abc"), 'obj.hasOwnProperty("abc") !== true');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-46.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-46.js
index cca20e2ee..49c5bbc73 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-46.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-46.js
@@ -8,21 +8,21 @@ description: >
toString and valueOf method
---*/
- var obj = {};
- var toStringAccessed = false;
- var valueOfAccessed = false;
+var obj = {};
+var toStringAccessed = false;
+var valueOfAccessed = false;
- var ownProp = {
- toString: function () {
- toStringAccessed = true;
- return "abc";
- },
- valueOf: function () {
- valueOfAccessed = true;
- return "prop";
- }
- };
- Object.defineProperty(obj, ownProp, {});
+var ownProp = {
+ toString: function() {
+ toStringAccessed = true;
+ return "abc";
+ },
+ valueOf: function() {
+ valueOfAccessed = true;
+ return "prop";
+ }
+};
+Object.defineProperty(obj, ownProp, {});
assert(obj.hasOwnProperty("abc"), 'obj.hasOwnProperty("abc") !== true');
assert.sameValue(valueOfAccessed, false, 'valueOfAccessed');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-47.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-47.js
index 1fa4963c1..b242a1786 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-47.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-47.js
@@ -9,22 +9,22 @@ description: >
value
---*/
- var obj = {};
- var toStringAccessed = false;
- var valueOfAccessed = false;
+var obj = {};
+var toStringAccessed = false;
+var valueOfAccessed = false;
- var ownProp = {
- toString: function () {
- toStringAccessed = true;
- return {};
- },
- valueOf: function () {
- valueOfAccessed = true;
- return {};
- }
- };
+var ownProp = {
+ toString: function() {
+ toStringAccessed = true;
+ return {};
+ },
+ valueOf: function() {
+ valueOfAccessed = true;
+ return {};
+ }
+};
assert.throws(TypeError, function() {
- Object.defineProperty(obj, ownProp, {});
+ Object.defineProperty(obj, ownProp, {});
});
assert(valueOfAccessed, 'valueOfAccessed !== true');
assert(toStringAccessed, 'toStringAccessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-48.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-48.js
index 4de8a76c9..792148aa7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-48.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-48.js
@@ -9,27 +9,27 @@ description: >
toString methods
---*/
- var obj = {};
- var toStringAccessed = false;
- var valueOfAccessed = false;
+var obj = {};
+var toStringAccessed = false;
+var valueOfAccessed = false;
- var proto = {
- toString: function () {
- toStringAccessed = true;
- return "test";
- }
- };
+var proto = {
+ toString: function() {
+ toStringAccessed = true;
+ return "test";
+ }
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- child.valueOf = function () {
- valueOfAccessed = true;
- return "10";
- };
+var child = new ConstructFun();
+child.valueOf = function() {
+ valueOfAccessed = true;
+ return "10";
+};
- Object.defineProperty(obj, child, {});
+Object.defineProperty(obj, child, {});
assert(obj.hasOwnProperty("test"), 'obj.hasOwnProperty("test") !== true');
assert.sameValue(valueOfAccessed, false, 'valueOfAccessed');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-5.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-5.js
index c0310cf55..001da3752 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-5.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-5.js
@@ -8,7 +8,7 @@ description: >
a string (value is NaN)
---*/
- var obj = {};
- Object.defineProperty(obj, NaN, {});
+var obj = {};
+Object.defineProperty(obj, NaN, {});
assert(obj.hasOwnProperty("NaN"), 'obj.hasOwnProperty("NaN") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-6.js
index 2915e96e4..6034791bf 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-6.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-6.js
@@ -8,7 +8,7 @@ description: >
a string (value is 0)
---*/
- var obj = {};
- Object.defineProperty(obj, 0, {});
+var obj = {};
+Object.defineProperty(obj, 0, {});
assert(obj.hasOwnProperty("0"), 'obj.hasOwnProperty("0") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-7.js
index 907eb445b..305ffc905 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-7.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-7.js
@@ -8,7 +8,7 @@ description: >
a string (value is +0)
---*/
- var obj = {};
- Object.defineProperty(obj, +0, {});
+var obj = {};
+Object.defineProperty(obj, +0, {});
assert(obj.hasOwnProperty("0"), 'obj.hasOwnProperty("0") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-8.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-8.js
index 5dd887196..c0776bb6e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-8.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-8.js
@@ -8,7 +8,7 @@ description: >
a string (value is -0)
---*/
- var obj = {};
- Object.defineProperty(obj, -0, {});
+var obj = {};
+Object.defineProperty(obj, -0, {});
assert(obj.hasOwnProperty("0"), 'obj.hasOwnProperty("0") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-9.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-9.js
index 409ef356e..021ab11fa 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-2-9.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-9.js
@@ -8,7 +8,7 @@ description: >
a string (value is a positive number)
---*/
- var obj = {};
- Object.defineProperty(obj, 30, {});
+var obj = {};
+Object.defineProperty(obj, 30, {});
assert(obj.hasOwnProperty("30"), 'obj.hasOwnProperty("30") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-1.js
index f3acf87e5..030b5d02b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-1.js
@@ -12,12 +12,17 @@ description: >
'value' present(8.10.5 step 9.a)
---*/
- var o = {};
+var o = {};
- // dummy getter
- var getter = function () { return 1; }
- var desc = { get: getter, value: 101};
+// dummy getter
+var getter = function() {
+ return 1;
+}
+var desc = {
+ get: getter,
+ value: 101
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-10.js
index d15bb70e5..ebb7f5bd4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-10.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-10.js
@@ -12,12 +12,14 @@ description: >
but not undefined (Number)(8.10.5 step 8.b)
---*/
- var o = {};
-
- // dummy setter
- var setter = 42;
- var desc = { set: setter };
+var o = {};
+
+// dummy setter
+var setter = 42;
+var desc = {
+ set: setter
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-100.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-100.js
index a792d3866..5c49f9552 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-100.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-100.js
@@ -9,9 +9,11 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = { };
+var obj = {};
-Object.defineProperty(obj, "property", { configurable: null });
+Object.defineProperty(obj, "property", {
+ configurable: null
+});
assert(obj.hasOwnProperty("property"));
verifyNotConfigurable(obj, "property");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-101.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-101.js
index 6f424df92..58ceddc3b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-101.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-101.js
@@ -8,15 +8,17 @@ description: >
true (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { configurable: true });
+Object.defineProperty(obj, "property", {
+ configurable: true
+});
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-102.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-102.js
index 956bdee57..f28ee3366 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-102.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-102.js
@@ -9,9 +9,11 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = { };
+var obj = {};
-Object.defineProperty(obj, "property", { configurable: false });
+Object.defineProperty(obj, "property", {
+ configurable: false
+});
assert(obj.hasOwnProperty("property"));
verifyNotConfigurable(obj, "property");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-103.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-103.js
index ca816d3b3..442ccffbe 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-103.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-103.js
@@ -9,9 +9,11 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = { };
+var obj = {};
-Object.defineProperty(obj, "property", { configurable: 0 });
+Object.defineProperty(obj, "property", {
+ configurable: 0
+});
assert(obj.hasOwnProperty("property"));
verifyNotConfigurable(obj, "property");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-104.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-104.js
index eee093efb..0de5f8d98 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-104.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-104.js
@@ -11,7 +11,9 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "property", { configurable: +0 });
+Object.defineProperty(obj, "property", {
+ configurable: +0
+});
assert(obj.hasOwnProperty("property"));
verifyNotConfigurable(obj, "property");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-105.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-105.js
index a96eceabe..c899a8e44 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-105.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-105.js
@@ -9,9 +9,11 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = { };
+var obj = {};
-Object.defineProperty(obj, "property", { configurable: -0 });
+Object.defineProperty(obj, "property", {
+ configurable: -0
+});
assert(obj.hasOwnProperty("property"));
verifyNotConfigurable(obj, "property");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-106.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-106.js
index 35b086b0d..4a6edd949 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-106.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-106.js
@@ -9,9 +9,11 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = { };
+var obj = {};
-Object.defineProperty(obj, "property", { configurable: NaN });
+Object.defineProperty(obj, "property", {
+ configurable: NaN
+});
assert(obj.hasOwnProperty("property"));
verifyNotConfigurable(obj, "property");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-107.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-107.js
index bfe8d6199..4268d5d75 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-107.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-107.js
@@ -8,15 +8,17 @@ description: >
a positive number (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { configurable: 12345 });
+Object.defineProperty(obj, "property", {
+ configurable: 12345
+});
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-108.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-108.js
index 533e2176e..b80fa4633 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-108.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-108.js
@@ -8,15 +8,17 @@ description: >
a negative number (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { configurable: -12345 });
+Object.defineProperty(obj, "property", {
+ configurable: -12345
+});
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-109.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-109.js
index ffd7940fe..26f6c4059 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-109.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-109.js
@@ -9,9 +9,11 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = { };
+var obj = {};
-Object.defineProperty(obj, "property", { configurable: "" });
+Object.defineProperty(obj, "property", {
+ configurable: ""
+});
assert(obj.hasOwnProperty("property"));
verifyNotConfigurable(obj, "property");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-11.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-11.js
index 28e657393..6de92ffa5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-11.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-11.js
@@ -12,12 +12,14 @@ description: >
but not undefined (Boolean)(8.10.5 step 8.b)
---*/
- var o = {};
-
- // dummy setter
- var setter = true;
- var desc = { set: setter };
+var o = {};
+
+// dummy setter
+var setter = true;
+var desc = {
+ set: setter
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-110.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-110.js
index fa8d9108e..9205a2b59 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-110.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-110.js
@@ -8,15 +8,17 @@ description: >
a non-empty string (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { configurable: " " });
+Object.defineProperty(obj, "property", {
+ configurable: " "
+});
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-111.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-111.js
index 03e65d3c8..4608840f9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-111.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-111.js
@@ -8,17 +8,17 @@ description: >
a Function object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", {
- configurable: function () { }
- });
+Object.defineProperty(obj, "property", {
+ configurable: function() {}
+});
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-112.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-112.js
index 8b0def7fd..a09d35399 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-112.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-112.js
@@ -8,15 +8,17 @@ description: >
an Array object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { configurable: [1, 2, 3] });
+Object.defineProperty(obj, "property", {
+ configurable: [1, 2, 3]
+});
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-113.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-113.js
index 59b678107..9f0d8f5e9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-113.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-113.js
@@ -8,15 +8,17 @@ description: >
a String object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { configurable: new String("bbq") });
+Object.defineProperty(obj, "property", {
+ configurable: new String("bbq")
+});
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-114.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-114.js
index c6a3e8cd2..46972c084 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-114.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-114.js
@@ -8,15 +8,17 @@ description: >
a Boolean object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { configurable: new Boolean(true) });
+Object.defineProperty(obj, "property", {
+ configurable: new Boolean(true)
+});
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-115.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-115.js
index 5907d7b81..09b23a6b9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-115.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-115.js
@@ -8,15 +8,17 @@ description: >
a Number object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { configurable: new Number(0) });
+Object.defineProperty(obj, "property", {
+ configurable: new Number(0)
+});
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-116.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-116.js
index 2803afbe0..9309ae735 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-116.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-116.js
@@ -8,15 +8,17 @@ description: >
the Math object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { configurable: Math });
+Object.defineProperty(obj, "property", {
+ configurable: Math
+});
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-117.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-117.js
index 2daeab199..04d74d887 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-117.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-117.js
@@ -8,15 +8,17 @@ description: >
a Date object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { configurable: new Date() });
+Object.defineProperty(obj, "property", {
+ configurable: new Date()
+});
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-118.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-118.js
index 76e6ed6d3..29356c1aa 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-118.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-118.js
@@ -8,19 +8,19 @@ description: >
a RegExp object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- var attr = {
- configurable: new RegExp()
- };
+var attr = {
+ configurable: new RegExp()
+};
- Object.defineProperty(obj, "property", attr);
+Object.defineProperty(obj, "property", attr);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-119.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-119.js
index 7b4ff65cf..07013e09b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-119.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-119.js
@@ -8,19 +8,19 @@ description: >
the JSON object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- var attr = {
- configurable: JSON
- };
+var attr = {
+ configurable: JSON
+};
- Object.defineProperty(obj, "property", attr);
+Object.defineProperty(obj, "property", attr);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-12.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-12.js
index fd0ff1197..023cb1f85 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-12.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-12.js
@@ -12,12 +12,14 @@ description: >
but not undefined (String)(8.10.5 step 8.b)
---*/
- var o = {};
-
- // dummy setter
- var setter = "abc";
- var desc = { set: setter };
+var o = {};
+
+// dummy setter
+var setter = "abc";
+var desc = {
+ set: setter
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-120.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-120.js
index 74acbbe02..9e7009358 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-120.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-120.js
@@ -8,19 +8,19 @@ description: >
a Error object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- var attr = {
- configurable: new SyntaxError()
- };
+var attr = {
+ configurable: new SyntaxError()
+};
- Object.defineProperty(obj, "property", attr);
+Object.defineProperty(obj, "property", attr);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-121.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-121.js
index d7c924ad5..ed80e3969 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-121.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-121.js
@@ -8,21 +8,23 @@ description: >
the Argument object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- var argObj = (function () { return arguments; })(1, true, "a");
+var argObj = (function() {
+ return arguments;
+})(1, true, "a");
- var attr = {
- configurable: argObj
- };
+var attr = {
+ configurable: argObj
+};
- Object.defineProperty(obj, "property", attr);
+Object.defineProperty(obj, "property", attr);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-123.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-123.js
index b89b54fc3..5af18a032 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-123.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-123.js
@@ -8,19 +8,19 @@ description: >
the global object (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- var attr = {
- configurable: this
- };
+var attr = {
+ configurable: this
+};
- Object.defineProperty(obj, "property", attr);
+Object.defineProperty(obj, "property", attr);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-124.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-124.js
index b4f1995e7..4cd00a0ca 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-124.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-124.js
@@ -9,19 +9,19 @@ description: >
step 4.b)
---*/
- var obj = {};
+var obj = {};
- var attr = {
- configurable: "false"
- };
+var attr = {
+ configurable: "false"
+};
- Object.defineProperty(obj, "property", attr);
+Object.defineProperty(obj, "property", attr);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-125.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-125.js
index 9c948ddaa..4b16e7dbb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-125.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-125.js
@@ -8,19 +8,19 @@ description: >
treated as true when it is new Boolean(false) (8.10.5 step 4.b)
---*/
- var obj = {};
+var obj = {};
- var attr = {
- configurable: new Boolean(false)
- };
+var attr = {
+ configurable: new Boolean(false)
+};
- Object.defineProperty(obj, "property", attr);
+Object.defineProperty(obj, "property", attr);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-126.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-126.js
index e6e27c455..055c95867 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-126.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-126.js
@@ -8,10 +8,12 @@ description: >
present (8.10.5 step 5)
---*/
- var obj = {};
+var obj = {};
- var attr = { value: 100 };
+var attr = {
+ value: 100
+};
- Object.defineProperty(obj, "property", attr);
+Object.defineProperty(obj, "property", attr);
assert.sameValue(obj.property, 100, 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-127.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-127.js
index 2356a57b6..a732f78a9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-127.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-127.js
@@ -8,13 +8,13 @@ description: >
present (8.10.5 step 5)
---*/
- var obj = { };
+var obj = {};
- var attr = {
- writable: true
- };
+var attr = {
+ writable: true
+};
- Object.defineProperty(obj, "property", attr);
+Object.defineProperty(obj, "property", attr);
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
-assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
+assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-129.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-129.js
index 6c0767ea0..1549cb62c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-129.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-129.js
@@ -8,17 +8,17 @@ description: >
inherited data property (8.10.5 step 5.a)
---*/
- var obj = { };
+var obj = {};
- var proto = {
- value: "inheritedDataProperty"
- };
+var proto = {
+ value: "inheritedDataProperty"
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var child = new ConstructFun();
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
assert.sameValue(obj.property, "inheritedDataProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-13.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-13.js
index 47111101f..384450224 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-13.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-13.js
@@ -12,12 +12,14 @@ description: >
not callable (Null)(8.10.5 step 8.b)
---*/
- var o = {};
-
- // dummy setter
- var setter = null;
- var desc = { set: setter };
+var o = {};
+
+// dummy setter
+var setter = null;
+var desc = {
+ set: setter
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-130.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-130.js
index d57fa6425..ad3067672 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-130.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-130.js
@@ -9,17 +9,19 @@ description: >
step 5.a)
---*/
- var obj = {};
+var obj = {};
- var proto = { value: "inheritedDataProperty" };
+var proto = {
+ value: "inheritedDataProperty"
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var child = new ConstructFun();
- child.value = "ownDataProperty";
+child.value = "ownDataProperty";
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
assert.sameValue(obj.property, "ownDataProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-131.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-131.js
index 6490829bf..bba5ca3f3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-131.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-131.js
@@ -9,24 +9,24 @@ description: >
(8.10.5 step 5.a)
---*/
- var obj = { };
+var obj = {};
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "value", {
- get: function () {
- return "inheritedAccessorProperty";
- }
- });
+Object.defineProperty(proto, "value", {
+ get: function() {
+ return "inheritedAccessorProperty";
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "value", {
- value: "ownDataProperty"
- });
+var child = new ConstructFun();
+Object.defineProperty(child, "value", {
+ value: "ownDataProperty"
+});
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
assert.sameValue(obj.property, "ownDataProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-132.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-132.js
index dac5ac76f..4b37f1d2a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-132.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-132.js
@@ -8,15 +8,15 @@ description: >
accessor property (8.10.5 step 5.a)
---*/
- var obj = { };
+var obj = {};
- var attr = {};
- Object.defineProperty(attr, "value", {
- get: function () {
- return "ownAccessorProperty";
- }
- });
+var attr = {};
+Object.defineProperty(attr, "value", {
+ get: function() {
+ return "ownAccessorProperty";
+ }
+});
- Object.defineProperty(obj, "property", attr);
+Object.defineProperty(obj, "property", attr);
assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-133.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-133.js
index 0fbac7b7c..96ba2888b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-133.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-133.js
@@ -8,20 +8,20 @@ description: >
inherited accessor property (8.10.5 step 5.a)
---*/
- var obj = { };
+var obj = {};
- var proto = {};
- Object.defineProperty(proto, "value", {
- get: function () {
- return "inheritedAccessorProperty";
- }
- });
+var proto = {};
+Object.defineProperty(proto, "value", {
+ get: function() {
+ return "inheritedAccessorProperty";
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var child = new ConstructFun();
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
assert.sameValue(obj.property, "inheritedAccessorProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-134.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-134.js
index 25e3a8e4f..bde2857dd 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-134.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-134.js
@@ -9,22 +9,22 @@ description: >
(8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- var proto = {
- value: "inheritedDataProperty"
- };
+var proto = {
+ value: "inheritedDataProperty"
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "value", {
- get: function () {
- return "ownAccessorProperty";
- }
- });
+var child = new ConstructFun();
+Object.defineProperty(child, "value", {
+ get: function() {
+ return "ownAccessorProperty";
+ }
+});
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-135.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-135.js
index 81361b3a5..7283eba4f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-135.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-135.js
@@ -9,25 +9,25 @@ description: >
(8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- var proto = {};
- Object.defineProperty(proto, "value", {
- get: function () {
- return "inheritedAccessorProperty";
- }
- });
+var proto = {};
+Object.defineProperty(proto, "value", {
+ get: function() {
+ return "inheritedAccessorProperty";
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "value", {
- get: function () {
- return "ownAccessorProperty";
- }
- });
+var child = new ConstructFun();
+Object.defineProperty(child, "value", {
+ get: function() {
+ return "ownAccessorProperty";
+ }
+});
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-136.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-136.js
index 6a3a9207e..da1a2d699 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-136.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-136.js
@@ -8,14 +8,14 @@ description: >
accessor property without a get function (8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- var attr = {};
- Object.defineProperty(attr, "value", {
- set: function () { }
- });
+var attr = {};
+Object.defineProperty(attr, "value", {
+ set: function() {}
+});
- Object.defineProperty(obj, "property", attr);
+Object.defineProperty(obj, "property", attr);
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
-assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
+assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-137.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-137.js
index aafeec5ff..da9ec587c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-137.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-137.js
@@ -9,24 +9,24 @@ description: >
inherited accessor property (8.10.5 step 5.a)
---*/
- var obj = { };
+var obj = {};
- var proto = {};
- Object.defineProperty(proto, "value", {
- get: function () {
- return "inheritedAccessorProperty";
- }
- });
+var proto = {};
+Object.defineProperty(proto, "value", {
+ get: function() {
+ return "inheritedAccessorProperty";
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "value", {
- set : function () { }
- });
+var child = new ConstructFun();
+Object.defineProperty(child, "value", {
+ set: function() {}
+});
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
-assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
+assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-138.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-138.js
index 1c0616d17..7d8496fe5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-138.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-138.js
@@ -9,19 +9,21 @@ description: >
5.a)
---*/
- var obj = { property : 120 };
+var obj = {
+ property: 120
+};
- var proto = {};
- Object.defineProperty(proto, "value", {
- set: function () { }
- });
+var proto = {};
+Object.defineProperty(proto, "value", {
+ set: function() {}
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var child = new ConstructFun();
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
-assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
+assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-139-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-139-1.js
index dc4bb72be..630261a0f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-139-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-139-1.js
@@ -9,13 +9,13 @@ description: >
of prototype object (8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- Function.prototype.value = "Function";
- var funObj = function (a, b) {
- return a + b;
- };
+Function.prototype.value = "Function";
+var funObj = function(a, b) {
+ return a + b;
+};
- Object.defineProperty(obj, "property", funObj);
+Object.defineProperty(obj, "property", funObj);
assert.sameValue(obj.property, "Function", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-139.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-139.js
index 544b80e06..86afdeca5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-139.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-139.js
@@ -9,14 +9,14 @@ description: >
(8.10.5 step 5.a)
---*/
- var obj = { };
+var obj = {};
- var funObj = function (a, b) {
- return a + b;
- };
+var funObj = function(a, b) {
+ return a + b;
+};
- funObj.value = "Function";
+funObj.value = "Function";
- Object.defineProperty(obj, "property", funObj);
+Object.defineProperty(obj, "property", funObj);
assert.sameValue(obj.property, "Function", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-14.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-14.js
index 68037deef..ea5c09dbf 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-14.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-14.js
@@ -12,12 +12,16 @@ description: >
but not undefined (Object)(8.10.5 step 8.b)
---*/
- var o = {};
-
- // dummy getter
- var setter = { a: 1 };
- var desc = { set: setter };
+var o = {};
+
+// dummy getter
+var setter = {
+ a: 1
+};
+var desc = {
+ set: setter
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-140-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-140-1.js
index 2427bce09..0a5328e01 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-140-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-140-1.js
@@ -9,11 +9,11 @@ description: >
prototype object (8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- Array.prototype.value = "Array";
- var arrObj = [1, 2, 3];
+Array.prototype.value = "Array";
+var arrObj = [1, 2, 3];
- Object.defineProperty(obj, "property", arrObj);
+Object.defineProperty(obj, "property", arrObj);
assert.sameValue(obj.property, "Array", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-140.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-140.js
index 5dcb9fc1e..3864f44ed 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-140.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-140.js
@@ -9,12 +9,12 @@ description: >
step 5.a)
---*/
- var obj = { };
+var obj = {};
- var arrObj = [1, 2, 3];
+var arrObj = [1, 2, 3];
- arrObj.value = "Array";
+arrObj.value = "Array";
- Object.defineProperty(obj, "property", arrObj);
+Object.defineProperty(obj, "property", arrObj);
assert.sameValue(obj.property, "Array", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-141-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-141-1.js
index 7168b9b07..01ceb708f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-141-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-141-1.js
@@ -9,11 +9,11 @@ description: >
prototype object (8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- String.prototype.value = "String";
- var strObj = new String("abc");
+String.prototype.value = "String";
+var strObj = new String("abc");
- Object.defineProperty(obj, "property", strObj);
+Object.defineProperty(obj, "property", strObj);
assert.sameValue(obj.property, "String", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-141.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-141.js
index 531b40470..4dfde83fd 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-141.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-141.js
@@ -9,12 +9,12 @@ description: >
step 5.a)
---*/
- var obj = { };
+var obj = {};
- var strObj = new String("abc");
+var strObj = new String("abc");
- strObj.value = "String";
+strObj.value = "String";
- Object.defineProperty(obj, "property", strObj);
+Object.defineProperty(obj, "property", strObj);
assert.sameValue(obj.property, "String", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-142-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-142-1.js
index b7c70877d..65e2d2982 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-142-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-142-1.js
@@ -9,11 +9,11 @@ description: >
prototype object (8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- Boolean.prototype.value = "Boolean";
- var boolObj = new Boolean(true);
+Boolean.prototype.value = "Boolean";
+var boolObj = new Boolean(true);
- Object.defineProperty(obj, "property", boolObj);
+Object.defineProperty(obj, "property", boolObj);
assert.sameValue(obj.property, "Boolean", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-142.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-142.js
index 9daa893ce..236907cd7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-142.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-142.js
@@ -9,12 +9,12 @@ description: >
step 5.a)
---*/
- var obj = { };
+var obj = {};
- var boolObj = new Boolean(true);
+var boolObj = new Boolean(true);
- boolObj.value = "Boolean";
+boolObj.value = "Boolean";
- Object.defineProperty(obj, "property", boolObj);
+Object.defineProperty(obj, "property", boolObj);
assert.sameValue(obj.property, "Boolean", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-143-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-143-1.js
index 855177b2c..fcab64dff 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-143-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-143-1.js
@@ -9,11 +9,11 @@ description: >
prototype object (8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- Number.prototype.value = "Number";
- var numObj = new Number(-2);
+Number.prototype.value = "Number";
+var numObj = new Number(-2);
- Object.defineProperty(obj, "property", numObj);
+Object.defineProperty(obj, "property", numObj);
assert.sameValue(obj.property, "Number", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-143.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-143.js
index e321f1990..7e3e52951 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-143.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-143.js
@@ -9,12 +9,12 @@ description: >
step 5.a)
---*/
- var obj = { };
+var obj = {};
- var numObj = new Number(-2);
+var numObj = new Number(-2);
- numObj.value = "Number";
+numObj.value = "Number";
- Object.defineProperty(obj, "property", numObj);
+Object.defineProperty(obj, "property", numObj);
assert.sameValue(obj.property, "Number", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-144-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-144-1.js
index 2d38e639f..684510495 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-144-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-144-1.js
@@ -9,10 +9,10 @@ description: >
prototype object (8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- Object.prototype.value = "Math";
+Object.prototype.value = "Math";
- Object.defineProperty(obj, "property", Math);
+Object.defineProperty(obj, "property", Math);
assert.sameValue(obj.property, "Math", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-144.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-144.js
index 5a243de1c..013d64c9f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-144.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-144.js
@@ -9,10 +9,10 @@ description: >
step 5.a)
---*/
- var obj = {};
+var obj = {};
- Math.value = "Math";
+Math.value = "Math";
- Object.defineProperty(obj, "property", Math);
+Object.defineProperty(obj, "property", Math);
assert.sameValue(obj.property, "Math", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-145-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-145-1.js
index 738ae2d0e..9c5905d7f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-145-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-145-1.js
@@ -9,11 +9,11 @@ description: >
prototype object (8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- Date.prototype.value = "Date";
- var dateObj = new Date();
+Date.prototype.value = "Date";
+var dateObj = new Date();
- Object.defineProperty(obj, "property", dateObj);
+Object.defineProperty(obj, "property", dateObj);
assert.sameValue(obj.property, "Date", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-145.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-145.js
index 0b7d5c75c..2fa41afc5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-145.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-145.js
@@ -9,12 +9,12 @@ description: >
step 5.a)
---*/
- var obj = { };
+var obj = {};
- var dateObj = new Date();
+var dateObj = new Date();
- dateObj.value = "Date";
+dateObj.value = "Date";
- Object.defineProperty(obj, "property", dateObj);
+Object.defineProperty(obj, "property", dateObj);
assert.sameValue(obj.property, "Date", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-146-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-146-1.js
index 28fd27b9d..6ba4c290a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-146-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-146-1.js
@@ -9,11 +9,11 @@ description: >
prototype object (8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- RegExp.prototype.value = "RegExp";
- var regObj = new RegExp();
+RegExp.prototype.value = "RegExp";
+var regObj = new RegExp();
- Object.defineProperty(obj, "property", regObj);
+Object.defineProperty(obj, "property", regObj);
assert.sameValue(obj.property, "RegExp", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-146.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-146.js
index fc99527fb..b8a123223 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-146.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-146.js
@@ -9,12 +9,12 @@ description: >
step 5.a)
---*/
- var obj = { };
+var obj = {};
- var regObj = new RegExp();
+var regObj = new RegExp();
- regObj.value = "RegExp";
+regObj.value = "RegExp";
- Object.defineProperty(obj, "property", regObj);
+Object.defineProperty(obj, "property", regObj);
assert.sameValue(obj.property, "RegExp", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-147-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-147-1.js
index 2a28c6b51..075a30d02 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-147-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-147-1.js
@@ -9,10 +9,10 @@ description: >
prototype object (8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- Object.prototype.value = "JSON";
+Object.prototype.value = "JSON";
- Object.defineProperty(obj, "property", JSON);
+Object.defineProperty(obj, "property", JSON);
assert.sameValue(obj.property, "JSON", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-147.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-147.js
index 5974a207b..66dca2c14 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-147.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-147.js
@@ -9,10 +9,10 @@ description: >
step 5.a)
---*/
- var obj = {};
+var obj = {};
- JSON.value = "JSON";
+JSON.value = "JSON";
- Object.defineProperty(obj, "property", JSON);
+Object.defineProperty(obj, "property", JSON);
assert.sameValue(obj.property, "JSON", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-148-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-148-1.js
index 516717351..d08b1716d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-148-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-148-1.js
@@ -9,11 +9,11 @@ description: >
prototype object (8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- Error.prototype.value = "Error";
- var errObj = new Error();
+Error.prototype.value = "Error";
+var errObj = new Error();
- Object.defineProperty(obj, "property", errObj);
+Object.defineProperty(obj, "property", errObj);
assert.sameValue(obj.property, "Error", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-148.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-148.js
index 0e7a99843..1e9363c73 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-148.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-148.js
@@ -9,12 +9,12 @@ description: >
step 5.a)
---*/
- var obj = {};
+var obj = {};
- var errObj = new Error();
+var errObj = new Error();
- errObj.value = "Error";
+errObj.value = "Error";
- Object.defineProperty(obj, "property", errObj);
+Object.defineProperty(obj, "property", errObj);
assert.sameValue(obj.property, "Error", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-149-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-149-1.js
index 7ce7e83e2..644b34466 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-149-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-149-1.js
@@ -9,12 +9,14 @@ description: >
of prototype object (8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- Object.prototype.value = "arguments";
- var argObj = (function () { return arguments; })();
+Object.prototype.value = "arguments";
+var argObj = (function() {
+ return arguments;
+})();
- Object.defineProperty(obj, "property", argObj);
+Object.defineProperty(obj, "property", argObj);
assert.sameValue(obj.property, "arguments", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-149.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-149.js
index 4385351de..164e85521 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-149.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-149.js
@@ -9,12 +9,14 @@ description: >
(8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- var argObj = (function () { return arguments; })();
+var argObj = (function() {
+ return arguments;
+})();
- argObj.value = "arguments";
+argObj.value = "arguments";
- Object.defineProperty(obj, "property", argObj);
+Object.defineProperty(obj, "property", argObj);
assert.sameValue(obj.property, "arguments", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-15.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-15.js
index 03bca14f1..f3f1d5483 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-15.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-15.js
@@ -6,7 +6,7 @@ es5id: 15.2.3.6-3-15
description: Object.defineProperty - 'Attributes' is undefined (8.10.5 step 1)
---*/
- var obj = {};
+var obj = {};
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "property", undefined);
+ Object.defineProperty(obj, "property", undefined);
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-151.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-151.js
index afa1640a3..e0d0737af 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-151.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-151.js
@@ -9,10 +9,10 @@ description: >
(8.10.5 step 5.a)
---*/
- var obj = {};
+var obj = {};
- this.value = "global";
+this.value = "global";
- Object.defineProperty(obj, "property", this);
+Object.defineProperty(obj, "property", this);
assert.sameValue(obj.property, "global", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-152.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-152.js
index 1b9eb1efe..d355d3c45 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-152.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-152.js
@@ -12,7 +12,7 @@ includes: [propertyHelper.js]
var obj = {};
var attr = {
- writable: false
+ writable: false
};
Object.defineProperty(obj, "property", attr);
@@ -20,4 +20,3 @@ Object.defineProperty(obj, "property", attr);
assert(obj.hasOwnProperty("property"));
verifyNotWritable(obj, "property");
verifyNotConfigurable(obj, "property");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-153.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-153.js
index d2ae3647f..15eeb6e1c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-153.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-153.js
@@ -12,7 +12,7 @@ includes: [propertyHelper.js]
var obj = {};
var attr = {
- value: 100
+ value: 100
};
Object.defineProperty(obj, "property", attr);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-154.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-154.js
index 68f33cd8e..b94627520 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-154.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-154.js
@@ -8,19 +8,19 @@ description: >
data property (8.10.5 step 6.a)
---*/
- var obj = { };
+var obj = {};
- var attr = {
- writable: true
- };
+var attr = {
+ writable: true
+};
- Object.defineProperty(obj, "property", attr);
+Object.defineProperty(obj, "property", attr);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-155.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-155.js
index da6d6e075..87423da12 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-155.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-155.js
@@ -8,24 +8,24 @@ description: >
inherited data property (8.10.5 step 6.a)
---*/
- var obj = { };
+var obj = {};
- var proto = {
- writable: true
- };
+var proto = {
+ writable: true
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var child = new ConstructFun();
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-156.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-156.js
index 18ef468a6..4e5a49d4e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-156.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-156.js
@@ -9,25 +9,25 @@ description: >
step 6.a)
---*/
- var obj = { };
+var obj = {};
- var proto = {
- writable: false
- };
+var proto = {
+ writable: false
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- child.writable = true;
+var child = new ConstructFun();
+child.writable = true;
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-157.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-157.js
index eb343016d..27c98e78b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-157.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-157.js
@@ -9,30 +9,30 @@ description: >
(8.10.5 step 6.a)
---*/
- var obj = { };
+var obj = {};
- var proto = { };
- Object.defineProperty(proto, "writable", {
- get : function () {
- return false;
- }
- });
+var proto = {};
+Object.defineProperty(proto, "writable", {
+ get: function() {
+ return false;
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "writable", {
- value: true
- });
+var child = new ConstructFun();
+Object.defineProperty(child, "writable", {
+ value: true
+});
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-158.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-158.js
index 38c165388..29d46ba9f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-158.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-158.js
@@ -8,22 +8,22 @@ description: >
accessor property (8.10.5 step 6.a)
---*/
- var obj = { };
+var obj = {};
- var attr = { };
- Object.defineProperty(attr, "writable", {
- get: function () {
- return true;
- }
- });
+var attr = {};
+Object.defineProperty(attr, "writable", {
+ get: function() {
+ return true;
+ }
+});
- Object.defineProperty(obj, "property", attr);
+Object.defineProperty(obj, "property", attr);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-159.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-159.js
index 32dbd5341..fa99dd2e7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-159.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-159.js
@@ -8,27 +8,27 @@ description: >
inherited accessor property (8.10.5 step 6.a)
---*/
- var obj = {};
+var obj = {};
- var proto = {};
- Object.defineProperty(proto, "writable", {
- get: function () {
- return true;
- }
- });
+var proto = {};
+Object.defineProperty(proto, "writable", {
+ get: function() {
+ return true;
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var child = new ConstructFun();
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-16.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-16.js
index e56a08412..3ed6b9190 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-16.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-16.js
@@ -7,5 +7,5 @@ description: Object.defineProperty - 'Attributes' is null (8.10.5 step 1)
---*/
assert.throws(TypeError, function() {
- Object.defineProperty({}, "property", null);
+ Object.defineProperty({}, "property", null);
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-160.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-160.js
index b363def64..d30abd312 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-160.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-160.js
@@ -9,29 +9,29 @@ description: >
(8.10.5 step 6.a)
---*/
- var obj = {};
+var obj = {};
- var proto = {
- writable: false
- };
+var proto = {
+ writable: false
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "writable", {
- get: function () {
- return true;
- }
- });
+var child = new ConstructFun();
+Object.defineProperty(child, "writable", {
+ get: function() {
+ return true;
+ }
+});
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-161.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-161.js
index e2e626d34..7072dc507 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-161.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-161.js
@@ -9,32 +9,32 @@ description: >
(8.10.5 step 6.a)
---*/
- var obj = {};
+var obj = {};
- var proto = {};
- Object.defineProperty(proto, "writable", {
- get: function () {
- return false;
- }
- });
+var proto = {};
+Object.defineProperty(proto, "writable", {
+ get: function() {
+ return false;
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "writable", {
- get: function () {
- return true;
- }
- });
+var child = new ConstructFun();
+Object.defineProperty(child, "writable", {
+ get: function() {
+ return true;
+ }
+});
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-162.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-162.js
index 1c3b3c7e9..e5081410b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-162.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-162.js
@@ -13,11 +13,10 @@ var obj = {};
var attr = {};
Object.defineProperty(attr, "writable", {
- set: function () { }
+ set: function() {}
});
Object.defineProperty(obj, "property", attr);
assert(obj.hasOwnProperty("property"));
verifyNotWritable(obj, "property");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-163.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-163.js
index bbdf9eed7..3615ce5c6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-163.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-163.js
@@ -14,17 +14,17 @@ var obj = {};
var proto = {};
Object.defineProperty(proto, "writable", {
- get: function () {
- return true;
- }
+ get: function() {
+ return true;
+ }
});
-var ConstructFun = function () { };
+var ConstructFun = function() {};
ConstructFun.prototype = proto;
var child = new ConstructFun();
Object.defineProperty(child, "writable", {
- set: function () { }
+ set: function() {}
});
Object.defineProperty(obj, "property", child);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-164.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-164.js
index 4c5e7b06c..baaa4a1a3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-164.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-164.js
@@ -14,10 +14,10 @@ var obj = {};
var proto = {};
Object.defineProperty(proto, "writable", {
- set: function () { }
+ set: function() {}
});
-var ConstructFun = function () { };
+var ConstructFun = function() {};
ConstructFun.prototype = proto;
var child = new ConstructFun();
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-165-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-165-1.js
index 2daa9523d..d790fc6e4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-165-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-165-1.js
@@ -9,20 +9,20 @@ description: >
property of prototype object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Function.prototype.writable = true;
- var funObj = function (a, b) {
- return a + b;
- };
+Function.prototype.writable = true;
+var funObj = function(a, b) {
+ return a + b;
+};
- Object.defineProperty(obj, "property", funObj);
+Object.defineProperty(obj, "property", funObj);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-165.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-165.js
index 3895b6f61..c0e137038 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-165.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-165.js
@@ -9,21 +9,21 @@ description: >
property (8.10.5 step 6.a)
---*/
- var obj = {};
+var obj = {};
- var funObj = function (a, b) {
- return a + b;
- };
+var funObj = function(a, b) {
+ return a + b;
+};
- funObj.writable = true;
+funObj.writable = true;
- Object.defineProperty(obj, "property", funObj);
+Object.defineProperty(obj, "property", funObj);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-166-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-166-1.js
index 66bc45603..3ed3f5223 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-166-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-166-1.js
@@ -9,18 +9,18 @@ description: >
prototype object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Array.prototype.writable = true;
- var arrObj = [1, 2, 3];
+Array.prototype.writable = true;
+var arrObj = [1, 2, 3];
- Object.defineProperty(obj, "property", arrObj);
+Object.defineProperty(obj, "property", arrObj);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-166.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-166.js
index 2781bbe76..2422bbd2e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-166.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-166.js
@@ -9,19 +9,19 @@ description: >
step 6.a)
---*/
- var obj = { };
+var obj = {};
- var arrObj = [1, 2, 3];
+var arrObj = [1, 2, 3];
- arrObj.writable = true;
+arrObj.writable = true;
- Object.defineProperty(obj, "property", arrObj);
+Object.defineProperty(obj, "property", arrObj);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-167-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-167-1.js
index e5227ee79..6fa37c460 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-167-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-167-1.js
@@ -9,18 +9,18 @@ description: >
prototype object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- String.prototype.writable = true;
- var strObj = new String("abc");
+String.prototype.writable = true;
+var strObj = new String("abc");
- Object.defineProperty(obj, "property", strObj);
+Object.defineProperty(obj, "property", strObj);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-167.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-167.js
index 9514ee522..955db2b90 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-167.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-167.js
@@ -9,19 +9,19 @@ description: >
step 6.a)
---*/
- var obj = {};
+var obj = {};
- var strObj = new String("abc");
+var strObj = new String("abc");
- strObj.writable = true;
+strObj.writable = true;
- Object.defineProperty(obj, "property", strObj);
+Object.defineProperty(obj, "property", strObj);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-168-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-168-1.js
index 347024234..9ae7ebb96 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-168-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-168-1.js
@@ -9,18 +9,18 @@ description: >
prototype object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Boolean.prototype.writable = true;
- var boolObj = new Boolean(true);
+Boolean.prototype.writable = true;
+var boolObj = new Boolean(true);
- Object.defineProperty(obj, "property", boolObj);
+Object.defineProperty(obj, "property", boolObj);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-168.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-168.js
index a81721331..ce57f9745 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-168.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-168.js
@@ -9,19 +9,19 @@ description: >
step 6.a)
---*/
- var obj = { };
+var obj = {};
- var boolObj = new Boolean(true);
+var boolObj = new Boolean(true);
- boolObj.writable = true;
+boolObj.writable = true;
- Object.defineProperty(obj, "property", boolObj);
+Object.defineProperty(obj, "property", boolObj);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-169-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-169-1.js
index 431adb9f6..c6c675e9c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-169-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-169-1.js
@@ -9,18 +9,18 @@ description: >
prototype object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Number.prototype.writable = true;
- var numObj = new Number(-2);
+Number.prototype.writable = true;
+var numObj = new Number(-2);
- Object.defineProperty(obj, "property", numObj);
+Object.defineProperty(obj, "property", numObj);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-169.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-169.js
index 4fbbfc386..dc0d5554f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-169.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-169.js
@@ -9,19 +9,19 @@ description: >
step 6.a)
---*/
- var obj = { };
+var obj = {};
- var numObj = new Number(-2);
+var numObj = new Number(-2);
- numObj.writable = true;
+numObj.writable = true;
- Object.defineProperty(obj, "property", numObj);
+Object.defineProperty(obj, "property", numObj);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-17.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-17.js
index 855ddf4b2..72f31b2e0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-17.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-17.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(TypeError, function() {
- Object.defineProperty({}, "property", true);
+ Object.defineProperty({}, "property", true);
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-170-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-170-1.js
index bd586b4b1..6a88ed9c5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-170-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-170-1.js
@@ -9,17 +9,17 @@ description: >
prototype object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.prototype.writable = true;
+Object.prototype.writable = true;
- Object.defineProperty(obj, "property", Math);
+Object.defineProperty(obj, "property", Math);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-170.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-170.js
index d0d86774f..6f5f3065b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-170.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-170.js
@@ -9,17 +9,17 @@ description: >
step 6.a)
---*/
- var obj = {};
+var obj = {};
- Math.writable = true;
+Math.writable = true;
- Object.defineProperty(obj, "property", Math);
+Object.defineProperty(obj, "property", Math);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-171-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-171-1.js
index a10aa1b7d..b5941c8bf 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-171-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-171-1.js
@@ -12,13 +12,13 @@ includes: [propertyHelper.js]
var obj = {};
try {
- Date.prototype.writable = true;
+ Date.prototype.writable = true;
- var dateObj = new Date();
+ var dateObj = new Date();
- Object.defineProperty(obj, "property", dateObj);
- verifyWritable(obj, "property");
+ Object.defineProperty(obj, "property", dateObj);
+ verifyWritable(obj, "property");
} finally {
- delete Date.prototype.writable;
+ delete Date.prototype.writable;
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-171.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-171.js
index 4cbcfcf9f..15f8cc9e8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-171.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-171.js
@@ -9,19 +9,19 @@ description: >
step 6.a)
---*/
- var obj = { };
+var obj = {};
- var dateObj = new Date();
+var dateObj = new Date();
- dateObj.writable = true;
+dateObj.writable = true;
- Object.defineProperty(obj, "property", dateObj);
+Object.defineProperty(obj, "property", dateObj);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-172-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-172-1.js
index abcd93fc0..c75e3af14 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-172-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-172-1.js
@@ -9,19 +9,19 @@ description: >
prototype object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- RegExp.prototype.writable = true;
+RegExp.prototype.writable = true;
- var regObj = new RegExp();
+var regObj = new RegExp();
- Object.defineProperty(obj, "property", regObj);
+Object.defineProperty(obj, "property", regObj);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-172.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-172.js
index 8c1f6a605..424ac5008 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-172.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-172.js
@@ -9,19 +9,19 @@ description: >
step 6.a)
---*/
- var obj = { };
+var obj = {};
- var regObj = new RegExp();
+var regObj = new RegExp();
- regObj.writable = true;
+regObj.writable = true;
- Object.defineProperty(obj, "property", regObj);
+Object.defineProperty(obj, "property", regObj);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-173-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-173-1.js
index 78f95f7d2..ec74c5a4f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-173-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-173-1.js
@@ -9,17 +9,17 @@ description: >
prototype object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.prototype.writable = true;
+Object.prototype.writable = true;
- Object.defineProperty(obj, "property", JSON);
+Object.defineProperty(obj, "property", JSON);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-173.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-173.js
index cb368f7d0..2b9aa032b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-173.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-173.js
@@ -9,17 +9,17 @@ description: >
step 6.a)
---*/
- var obj = {};
+var obj = {};
- JSON.writable = true;
+JSON.writable = true;
- Object.defineProperty(obj, "property", JSON);
+Object.defineProperty(obj, "property", JSON);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-174-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-174-1.js
index 073df7987..552d3ed01 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-174-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-174-1.js
@@ -9,19 +9,19 @@ description: >
prototype object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Error.prototype.writable = true;
+Error.prototype.writable = true;
- var errObj = new Error();
+var errObj = new Error();
- Object.defineProperty(obj, "property", errObj);
+Object.defineProperty(obj, "property", errObj);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-174.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-174.js
index e29059c3b..ee58430a9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-174.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-174.js
@@ -9,19 +9,19 @@ description: >
step 6.a)
---*/
- var obj = { };
+var obj = {};
- var errObj = new Error();
+var errObj = new Error();
- errObj.writable = true;
+errObj.writable = true;
- Object.defineProperty(obj, "property", errObj);
+Object.defineProperty(obj, "property", errObj);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-175-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-175-1.js
index cc32ea6b4..6ea481862 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-175-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-175-1.js
@@ -9,19 +9,21 @@ description: >
property of prototype object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.prototype.writable = true;
+Object.prototype.writable = true;
- var argObj = (function () { return arguments; })();
+var argObj = (function() {
+ return arguments;
+})();
- Object.defineProperty(obj, "property", argObj);
+Object.defineProperty(obj, "property", argObj);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-175.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-175.js
index f816f7acf..37644833d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-175.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-175.js
@@ -9,19 +9,21 @@ description: >
property (8.10.5 step 6.a)
---*/
- var obj = {};
+var obj = {};
- var argObj = (function () { return arguments; })();
+var argObj = (function() {
+ return arguments;
+})();
- argObj.writable = true;
+argObj.writable = true;
- Object.defineProperty(obj, "property", argObj);
+Object.defineProperty(obj, "property", argObj);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-177.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-177.js
index c044f4dd9..76ea0c955 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-177.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-177.js
@@ -9,17 +9,17 @@ description: >
(8.10.5 step 6.a)
---*/
- var obj = {};
+var obj = {};
- this.writable = true;
+this.writable = true;
- Object.defineProperty(obj, "property", this);
+Object.defineProperty(obj, "property", this);
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-178.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-178.js
index 77d1123e1..354b342f1 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-178.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-178.js
@@ -12,7 +12,7 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "property", {
- writable: undefined
+ writable: undefined
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-179.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-179.js
index ec43702bc..88c9e3f0d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-179.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-179.js
@@ -9,9 +9,11 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = { };
+var obj = {};
-Object.defineProperty(obj, "property", { writable: null });
+Object.defineProperty(obj, "property", {
+ writable: null
+});
assert(obj.hasOwnProperty("property"));
verifyNotWritable(obj, "property");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-18.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-18.js
index c2f3bcd67..ad1868068 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-18.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-18.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(TypeError, function() {
- Object.defineProperty({}, "property", 12);
+ Object.defineProperty({}, "property", 12);
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-180.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-180.js
index 41365f9ce..5eeabe40e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-180.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-180.js
@@ -8,15 +8,17 @@ description: >
true (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { writable: true });
+Object.defineProperty(obj, "property", {
+ writable: true
+});
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-181.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-181.js
index dba196310..7b40135c2 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-181.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-181.js
@@ -9,9 +9,11 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = { };
+var obj = {};
-Object.defineProperty(obj, "property", { writable: false });
+Object.defineProperty(obj, "property", {
+ writable: false
+});
assert(obj.hasOwnProperty("property"));
verifyNotWritable(obj, "property");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-182.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-182.js
index 559b4e64d..2d818dba2 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-182.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-182.js
@@ -9,9 +9,11 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = { };
+var obj = {};
-Object.defineProperty(obj, "property", { writable: 0 });
+Object.defineProperty(obj, "property", {
+ writable: 0
+});
assert(obj.hasOwnProperty("property"));
verifyNotWritable(obj, "property");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-183.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-183.js
index 815482b16..9b20abc03 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-183.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-183.js
@@ -11,7 +11,9 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "property", { writable: +0 });
+Object.defineProperty(obj, "property", {
+ writable: +0
+});
assert(obj.hasOwnProperty("property"));
verifyNotWritable(obj, "property");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-184.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-184.js
index a7829b766..d788c3d23 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-184.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-184.js
@@ -9,9 +9,11 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = { };
+var obj = {};
-Object.defineProperty(obj, "property", { writable: -0 });
+Object.defineProperty(obj, "property", {
+ writable: -0
+});
assert(obj.hasOwnProperty("property"));
verifyNotWritable(obj, "property");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-185.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-185.js
index 3e057091e..883316e49 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-185.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-185.js
@@ -9,13 +9,14 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = { };
+var obj = {};
-Object.defineProperty(obj, "property", { writable: NaN});
+Object.defineProperty(obj, "property", {
+ writable: NaN
+});
assert(obj.hasOwnProperty("property"));
verifyNotWritable(obj, "property");
-assert.sameValue(typeof (obj.property), "undefined");
-
+assert.sameValue(typeof(obj.property), "undefined");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-186.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-186.js
index 1239edb9d..59c0376b2 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-186.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-186.js
@@ -8,15 +8,17 @@ description: >
positive number (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { writable: 12345 });
+Object.defineProperty(obj, "property", {
+ writable: 12345
+});
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-187.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-187.js
index 91c91c7f5..3c393647a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-187.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-187.js
@@ -8,15 +8,17 @@ description: >
negative number (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { writable: -12345 });
+Object.defineProperty(obj, "property", {
+ writable: -12345
+});
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-188.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-188.js
index 51fca69ec..e23005612 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-188.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-188.js
@@ -11,7 +11,9 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "property", { writable: "" });
+Object.defineProperty(obj, "property", {
+ writable: ""
+});
assert(obj.hasOwnProperty("property"));
verifyNotWritable(obj, "property");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-189.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-189.js
index c3da81e30..02bd96fe6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-189.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-189.js
@@ -8,15 +8,17 @@ description: >
non-empty string (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { writable: " " });
+Object.defineProperty(obj, "property", {
+ writable: " "
+});
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-19.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-19.js
index c10821348..f4053d85c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-19.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-19.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(TypeError, function() {
- Object.defineProperty({}, "property", "abc");
+ Object.defineProperty({}, "property", "abc");
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-190.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-190.js
index a87d465a0..12ace4eb7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-190.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-190.js
@@ -8,17 +8,17 @@ description: >
Function object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", {
- writable: function () { }
- });
+Object.defineProperty(obj, "property", {
+ writable: function() {}
+});
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-191.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-191.js
index 0bed96abc..bae79913a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-191.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-191.js
@@ -8,15 +8,17 @@ description: >
Array object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { writable: [1, 2, 3] });
+Object.defineProperty(obj, "property", {
+ writable: [1, 2, 3]
+});
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-192.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-192.js
index 86a87b423..b7c3568f1 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-192.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-192.js
@@ -8,15 +8,17 @@ description: >
String object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { writable: new String("bbq") });
+Object.defineProperty(obj, "property", {
+ writable: new String("bbq")
+});
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-193.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-193.js
index 66f9558d0..9cec27586 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-193.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-193.js
@@ -8,15 +8,17 @@ description: >
Boolean object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { writable: new Boolean(true) });
+Object.defineProperty(obj, "property", {
+ writable: new Boolean(true)
+});
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-194.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-194.js
index df8ac1084..b79826339 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-194.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-194.js
@@ -8,15 +8,17 @@ description: >
Number object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { writable: new Number(123) });
+Object.defineProperty(obj, "property", {
+ writable: new Number(123)
+});
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-195.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-195.js
index 339bfc4c2..992e8da92 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-195.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-195.js
@@ -8,15 +8,17 @@ description: >
Math object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { writable: Math });
+Object.defineProperty(obj, "property", {
+ writable: Math
+});
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-196.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-196.js
index 2ce077a6e..62c4cd7d7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-196.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-196.js
@@ -8,15 +8,17 @@ description: >
Date object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { writable: new Date() });
+Object.defineProperty(obj, "property", {
+ writable: new Date()
+});
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-197.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-197.js
index 550d69b6b..702cffb78 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-197.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-197.js
@@ -8,17 +8,17 @@ description: >
RegExp object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", {
- writable: new RegExp()
- });
+Object.defineProperty(obj, "property", {
+ writable: new RegExp()
+});
- var beforeWrite = obj.hasOwnProperty("property") && typeof obj.property === "undefined";
+var beforeWrite = obj.hasOwnProperty("property") && typeof obj.property === "undefined";
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert(beforeWrite, 'beforeWrite !== true');
assert(afterWrite, 'afterWrite !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-198.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-198.js
index f5ccb8883..f7e0e2cb1 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-198.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-198.js
@@ -8,15 +8,17 @@ description: >
JSON object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { writable: JSON });
+Object.defineProperty(obj, "property", {
+ writable: JSON
+});
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-199.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-199.js
index ffd301e24..7b9d8aa35 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-199.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-199.js
@@ -8,15 +8,17 @@ description: >
Error object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { writable: new SyntaxError() });
+Object.defineProperty(obj, "property", {
+ writable: new SyntaxError()
+});
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-2.js
index 082d367fe..50c5a0faf 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-2.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-2.js
@@ -12,12 +12,17 @@ description: >
'writable' present(8.10.5 step 9.a)
---*/
- var o = {};
-
- // dummy getter
- var getter = function () { return 1; }
- var desc = { get: getter, writable: false };
+var o = {};
+
+// dummy getter
+var getter = function() {
+ return 1;
+}
+var desc = {
+ get: getter,
+ writable: false
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-20.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-20.js
index 1873ba03e..1fba3a8b8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-20.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-20.js
@@ -8,18 +8,18 @@ description: >
present (8.10.5 step 3)
---*/
- var obj = {};
+var obj = {};
- var accessed = false;
- Object.defineProperty(obj, "property", {
- enumerable: false
- });
+var accessed = false;
+Object.defineProperty(obj, "property", {
+ enumerable: false
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-200.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-200.js
index 286cb4f5d..8ce95c3dd 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-200.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-200.js
@@ -8,17 +8,21 @@ description: >
Argument object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- var argObj = (function () { return arguments; })(1, true, "a");
+var argObj = (function() {
+ return arguments;
+})(1, true, "a");
- Object.defineProperty(obj, "property", { writable: argObj });
+Object.defineProperty(obj, "property", {
+ writable: argObj
+});
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-202.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-202.js
index 52ee4bbd6..1a662e73f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-202.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-202.js
@@ -8,17 +8,17 @@ description: >
global object (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", {
- writable: this
- });
+Object.defineProperty(obj, "property", {
+ writable: this
+});
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-203.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-203.js
index cb0c0e497..9d4a5239e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-203.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-203.js
@@ -9,15 +9,17 @@ description: >
6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { writable: "false" });
+Object.defineProperty(obj, "property", {
+ writable: "false"
+});
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-204.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-204.js
index a8d61b311..07341a6ce 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-204.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-204.js
@@ -8,15 +8,17 @@ description: >
treated as true when it is new Boolean(false) (8.10.5 step 6.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", { writable: new Boolean(false) });
+Object.defineProperty(obj, "property", {
+ writable: new Boolean(false)
+});
- var beforeWrite = obj.hasOwnProperty("property");
+var beforeWrite = obj.hasOwnProperty("property");
- obj.property = "isWritable";
+obj.property = "isWritable";
- var afterWrite = (obj.property === "isWritable");
+var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-205.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-205.js
index 4d1f8183b..0aa07865d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-205.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-205.js
@@ -8,12 +8,12 @@ description: >
(8.10.5 step 7)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", {
- get: function () {
- return "present";
- }
- });
+Object.defineProperty(obj, "property", {
+ get: function() {
+ return "present";
+ }
+});
assert.sameValue(obj.property, "present", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-206.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-206.js
index 004e92a78..b7ee5eb85 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-206.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-206.js
@@ -8,11 +8,11 @@ description: >
present (8.10.5 step 7)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", {
- set: function () {}
- });
+Object.defineProperty(obj, "property", {
+ set: function() {}
+});
assert.sameValue(typeof obj.property, "undefined", 'typeof obj.property');
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-207.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-207.js
index 720e1e1c0..f0d1e1537 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-207.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-207.js
@@ -8,13 +8,13 @@ description: >
property (8.10.5 step 7.a)
---*/
- var obj = {};
- var attributes = {
- get: function () {
- return "ownDataProperty";
- }
- };
+var obj = {};
+var attributes = {
+ get: function() {
+ return "ownDataProperty";
+ }
+};
- Object.defineProperty(obj, "property", attributes);
+Object.defineProperty(obj, "property", attributes);
assert.sameValue(obj.property, "ownDataProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-208.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-208.js
index 3be19510a..acfd6d48a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-208.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-208.js
@@ -8,18 +8,18 @@ description: >
inherited data property (8.10.5 step 7.a)
---*/
- var obj = {};
- var proto = {
- get: function () {
- return "inheritedDataProperty";
- }
- };
+var obj = {};
+var proto = {
+ get: function() {
+ return "inheritedDataProperty";
+ }
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var child = new ConstructFun();
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
assert.sameValue(obj.property, "inheritedDataProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-209.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-209.js
index 06e83faf6..65e76e89c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-209.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-209.js
@@ -9,21 +9,21 @@ description: >
7.a)
---*/
- var obj = {};
- var proto = {
- get: function () {
- return "inheritedDataProperty";
- }
- };
+var obj = {};
+var proto = {
+ get: function() {
+ return "inheritedDataProperty";
+ }
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- child.get = function () {
- return "ownDataProperty";
- };
+var child = new ConstructFun();
+child.get = function() {
+ return "ownDataProperty";
+};
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
assert.sameValue(obj.property, "ownDataProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-21.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-21.js
index 24baf80a0..b8054e9b4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-21.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-21.js
@@ -8,16 +8,16 @@ description: >
not present (8.10.5 step 3)
---*/
- var obj = {};
+var obj = {};
- var attr = {};
- var accessed = false;
- Object.defineProperty(obj, "property", attr);
+var attr = {};
+var accessed = false;
+Object.defineProperty(obj, "property", attr);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-210.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-210.js
index 52122a629..8f62b01be 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-210.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-210.js
@@ -9,27 +9,27 @@ description: >
step 7.a)
---*/
- var obj = {};
- var proto = {};
- var fun = function () {
- return "inheritedAccessorProperty";
- };
- Object.defineProperty(proto, "get", {
- get: function () {
- return fun;
- }
- });
+var obj = {};
+var proto = {};
+var fun = function() {
+ return "inheritedAccessorProperty";
+};
+Object.defineProperty(proto, "get", {
+ get: function() {
+ return fun;
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "get", {
- value: function () {
- return "ownDataProperty";
- }
- });
+var child = new ConstructFun();
+Object.defineProperty(child, "get", {
+ value: function() {
+ return "ownDataProperty";
+ }
+});
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
assert.sameValue(obj.property, "ownDataProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-211.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-211.js
index 543ef14fb..ba3085b96 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-211.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-211.js
@@ -8,17 +8,17 @@ description: >
accessor property (8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- var attributes = {};
- Object.defineProperty(attributes, "get", {
- get: function () {
- return function () {
- return "ownAccessorProperty";
- };
- }
- });
+var attributes = {};
+Object.defineProperty(attributes, "get", {
+ get: function() {
+ return function() {
+ return "ownAccessorProperty";
+ };
+ }
+});
- Object.defineProperty(obj, "property", attributes);
+Object.defineProperty(obj, "property", attributes);
assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-212.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-212.js
index 9cf8718b8..4eb0b303c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-212.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-212.js
@@ -8,21 +8,21 @@ description: >
inherited accessor property (8.10.5 step 7.a)
---*/
- var obj = {};
- var proto = {};
- Object.defineProperty(proto, "get", {
- get: function () {
- return function () {
- return "inheritedAccessorProperty";
- };
- }
- });
+var obj = {};
+var proto = {};
+Object.defineProperty(proto, "get", {
+ get: function() {
+ return function() {
+ return "inheritedAccessorProperty";
+ };
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var child = new ConstructFun();
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
assert.sameValue(obj.property, "inheritedAccessorProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-213.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-213.js
index 2b51e1554..a0839ccfe 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-213.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-213.js
@@ -9,25 +9,25 @@ description: >
(8.10.5 step 7.a)
---*/
- var obj = {};
- var proto = {
- get: function () {
- return "inheritedDataProperty";
- }
- };
+var obj = {};
+var proto = {
+ get: function() {
+ return "inheritedDataProperty";
+ }
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "get", {
- get: function () {
- return function () {
- return "ownAccessorProperty";
- };
- }
- });
+var child = new ConstructFun();
+Object.defineProperty(child, "get", {
+ get: function() {
+ return function() {
+ return "ownAccessorProperty";
+ };
+ }
+});
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-214.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-214.js
index b740fedec..b4bbb8442 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-214.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-214.js
@@ -9,28 +9,28 @@ description: >
(8.10.5 step 7.a)
---*/
- var obj = {};
- var proto = {};
- Object.defineProperty(proto, "get", {
- get: function () {
- return function () {
- return "inheritedAccessorProperty";
- };
- }
- });
+var obj = {};
+var proto = {};
+Object.defineProperty(proto, "get", {
+ get: function() {
+ return function() {
+ return "inheritedAccessorProperty";
+ };
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "get", {
- get: function () {
- return function () {
- return "ownAccessorProperty";
- };
- }
- });
+var child = new ConstructFun();
+Object.defineProperty(child, "get", {
+ get: function() {
+ return function() {
+ return "ownAccessorProperty";
+ };
+ }
+});
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-215.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-215.js
index 0e03885d0..cd74bb102 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-215.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-215.js
@@ -8,14 +8,14 @@ description: >
accessor property without a get function (8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- var attributes = {};
- Object.defineProperty(attributes, "get", {
- set: function () { }
- });
+var attributes = {};
+Object.defineProperty(attributes, "get", {
+ set: function() {}
+});
- Object.defineProperty(obj, "property", attributes);
+Object.defineProperty(obj, "property", attributes);
assert.sameValue(typeof obj.property, "undefined", 'typeof obj.property');
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-216.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-216.js
index f80e5aa70..d8a9c0098 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-216.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-216.js
@@ -9,25 +9,25 @@ description: >
inherited accessor property (8.10.5 step 7.a)
---*/
- var obj = {};
- var proto = {};
- Object.defineProperty(proto, "get", {
- get: function () {
- return function () {
- return "inheritedAccessorProperty";
- };
- }
- });
+var obj = {};
+var proto = {};
+Object.defineProperty(proto, "get", {
+ get: function() {
+ return function() {
+ return "inheritedAccessorProperty";
+ };
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "get", {
- set: function () { }
- });
+var child = new ConstructFun();
+Object.defineProperty(child, "get", {
+ set: function() {}
+});
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(typeof obj.property, "undefined", 'typeof obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-217.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-217.js
index 4454a148e..78ed6f0f0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-217.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-217.js
@@ -9,18 +9,18 @@ description: >
7.a)
---*/
- var obj = {};
- var proto = {};
- Object.defineProperty(proto, "get", {
- set: function () { }
- });
+var obj = {};
+var proto = {};
+Object.defineProperty(proto, "get", {
+ set: function() {}
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var child = new ConstructFun();
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(typeof obj.property, "undefined", 'typeof obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-218-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-218-1.js
index af3ba07d2..ea8476132 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-218-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-218-1.js
@@ -9,13 +9,13 @@ description: >
prototype object (8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- Function.prototype.get = function () {
- return "functionGetProperty";
- };
- var funObj = function () { };
+Function.prototype.get = function() {
+ return "functionGetProperty";
+};
+var funObj = function() {};
- Object.defineProperty(obj, "property", funObj);
+Object.defineProperty(obj, "property", funObj);
assert.sameValue(obj.property, "functionGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-218.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-218.js
index 4b1b50bb7..3237a5db9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-218.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-218.js
@@ -9,14 +9,14 @@ description: >
(8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- var funObj = function () { };
+var funObj = function() {};
- funObj.get = function () {
- return "functionGetProperty";
- };
+funObj.get = function() {
+ return "functionGetProperty";
+};
- Object.defineProperty(obj, "property", funObj);
+Object.defineProperty(obj, "property", funObj);
assert.sameValue(obj.property, "functionGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-219-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-219-1.js
index 777e4b1e1..65f8a003e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-219-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-219-1.js
@@ -9,13 +9,13 @@ description: >
object (8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- Array.prototype.get = function () {
- return "arrayGetProperty";
- };
- var arrObj = [];
+Array.prototype.get = function() {
+ return "arrayGetProperty";
+};
+var arrObj = [];
- Object.defineProperty(obj, "property", arrObj);
+Object.defineProperty(obj, "property", arrObj);
assert.sameValue(obj.property, "arrayGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-219.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-219.js
index 4586f5b9d..561257b21 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-219.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-219.js
@@ -9,14 +9,14 @@ description: >
7.a)
---*/
- var obj = {};
+var obj = {};
- var arrObj = [];
+var arrObj = [];
- arrObj.get = function () {
- return "arrayGetProperty";
- };
+arrObj.get = function() {
+ return "arrayGetProperty";
+};
- Object.defineProperty(obj, "property", arrObj);
+Object.defineProperty(obj, "property", arrObj);
assert.sameValue(obj.property, "arrayGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-22.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-22.js
index e09e9b43b..858e65ee7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-22.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-22.js
@@ -8,17 +8,17 @@ description: >
own data property (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", {
- enumerable: true
- });
+Object.defineProperty(obj, "property", {
+ enumerable: true
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-220-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-220-1.js
index 12816889e..e84ef2f7f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-220-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-220-1.js
@@ -9,13 +9,13 @@ description: >
object (8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- String.prototype.get = function () {
- return "stringGetProperty";
- };
- var strObj = new String();
+String.prototype.get = function() {
+ return "stringGetProperty";
+};
+var strObj = new String();
- Object.defineProperty(obj, "property", strObj);
+Object.defineProperty(obj, "property", strObj);
assert.sameValue(obj.property, "stringGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-220.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-220.js
index 90284ea2d..093721583 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-220.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-220.js
@@ -9,14 +9,14 @@ description: >
7.a)
---*/
- var obj = {};
+var obj = {};
- var strObj = new String();
+var strObj = new String();
- strObj.get = function () {
- return "stringGetProperty";
- };
+strObj.get = function() {
+ return "stringGetProperty";
+};
- Object.defineProperty(obj, "property", strObj);
+Object.defineProperty(obj, "property", strObj);
assert.sameValue(obj.property, "stringGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-221-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-221-1.js
index 5984602a4..70a954f19 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-221-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-221-1.js
@@ -9,13 +9,13 @@ description: >
object (8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- Boolean.prototype.get = function () {
- return "booleanGetProperty";
- };
- var boolObj = new Boolean(true);
+Boolean.prototype.get = function() {
+ return "booleanGetProperty";
+};
+var boolObj = new Boolean(true);
- Object.defineProperty(obj, "property", boolObj);
+Object.defineProperty(obj, "property", boolObj);
assert.sameValue(obj.property, "booleanGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-221.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-221.js
index d23d5d32a..f62fd3eb7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-221.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-221.js
@@ -9,14 +9,14 @@ description: >
7.a)
---*/
- var obj = {};
+var obj = {};
- var boolObj = new Boolean(true);
+var boolObj = new Boolean(true);
- boolObj.get = function () {
- return "booleanGetProperty";
- };
+boolObj.get = function() {
+ return "booleanGetProperty";
+};
- Object.defineProperty(obj, "property", boolObj);
+Object.defineProperty(obj, "property", boolObj);
assert.sameValue(obj.property, "booleanGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-222-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-222-1.js
index 2782d5443..b2b3af569 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-222-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-222-1.js
@@ -9,13 +9,13 @@ description: >
object (8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- Number.prototype.get = function () {
- return "numberGetProperty";
- };
- var numObj = new Number(-2);
+Number.prototype.get = function() {
+ return "numberGetProperty";
+};
+var numObj = new Number(-2);
- Object.defineProperty(obj, "property", numObj);
+Object.defineProperty(obj, "property", numObj);
assert.sameValue(obj.property, "numberGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-222.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-222.js
index 539969123..04f5d8af6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-222.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-222.js
@@ -9,14 +9,14 @@ description: >
7.a)
---*/
- var obj = {};
+var obj = {};
- var numObj = new Number(-2);
+var numObj = new Number(-2);
- numObj.get = function () {
- return "numberGetProperty";
- };
+numObj.get = function() {
+ return "numberGetProperty";
+};
- Object.defineProperty(obj, "property", numObj);
+Object.defineProperty(obj, "property", numObj);
assert.sameValue(obj.property, "numberGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-223-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-223-1.js
index cb7c01393..d8849c6a2 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-223-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-223-1.js
@@ -9,12 +9,12 @@ description: >
object (8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- Object.prototype.get = function () {
- return "mathGetProperty";
- };
+Object.prototype.get = function() {
+ return "mathGetProperty";
+};
- Object.defineProperty(obj, "property", Math);
+Object.defineProperty(obj, "property", Math);
assert.sameValue(obj.property, "mathGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-223.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-223.js
index 165f297a7..e9de0f518 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-223.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-223.js
@@ -9,12 +9,12 @@ description: >
7.a)
---*/
- var obj = {};
+var obj = {};
- Math.get = function () {
- return "mathGetProperty";
- };
+Math.get = function() {
+ return "mathGetProperty";
+};
- Object.defineProperty(obj, "property", Math);
+Object.defineProperty(obj, "property", Math);
assert.sameValue(obj.property, "mathGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-224-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-224-1.js
index 4e2957df9..dd6e0d050 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-224-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-224-1.js
@@ -9,13 +9,13 @@ description: >
object (8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- Date.prototype.get = function () {
- return "dateGetProperty";
- };
- var dateObj = new Date();
+Date.prototype.get = function() {
+ return "dateGetProperty";
+};
+var dateObj = new Date();
- Object.defineProperty(obj, "property", dateObj);
+Object.defineProperty(obj, "property", dateObj);
assert.sameValue(obj.property, "dateGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-224.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-224.js
index aff1cffe0..3b6b143c4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-224.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-224.js
@@ -9,14 +9,14 @@ description: >
7.a)
---*/
- var obj = {};
+var obj = {};
- var dateObj = new Date();
+var dateObj = new Date();
- dateObj.get = function () {
- return "dateGetProperty";
- };
+dateObj.get = function() {
+ return "dateGetProperty";
+};
- Object.defineProperty(obj, "property", dateObj);
+Object.defineProperty(obj, "property", dateObj);
assert.sameValue(obj.property, "dateGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-225-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-225-1.js
index cac536761..fc96a2d1d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-225-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-225-1.js
@@ -9,14 +9,14 @@ description: >
object (8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- RegExp.prototype.get = function () {
- return "regExpGetProperty";
- };
- var regObj = new RegExp();
+RegExp.prototype.get = function() {
+ return "regExpGetProperty";
+};
+var regObj = new RegExp();
- Object.defineProperty(obj, "property", regObj);
+Object.defineProperty(obj, "property", regObj);
assert.sameValue(obj.property, "regExpGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-225.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-225.js
index df394a642..f65c6e74a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-225.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-225.js
@@ -9,14 +9,14 @@ description: >
7.a)
---*/
- var obj = {};
+var obj = {};
- var regObj = new RegExp();
+var regObj = new RegExp();
- regObj.get = function () {
- return "regExpGetProperty";
- };
+regObj.get = function() {
+ return "regExpGetProperty";
+};
- Object.defineProperty(obj, "property", regObj);
+Object.defineProperty(obj, "property", regObj);
assert.sameValue(obj.property, "regExpGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-226-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-226-1.js
index 63ccc8a3a..8531ea1b9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-226-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-226-1.js
@@ -9,12 +9,12 @@ description: >
object (8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- Object.prototype.get = function () {
- return "jsonGetProperty";
- };
+Object.prototype.get = function() {
+ return "jsonGetProperty";
+};
- Object.defineProperty(obj, "property", JSON);
+Object.defineProperty(obj, "property", JSON);
assert.sameValue(obj.property, "jsonGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-226.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-226.js
index 404626ea1..f7d951013 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-226.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-226.js
@@ -9,12 +9,12 @@ description: >
7.a)
---*/
- var obj = {};
+var obj = {};
- JSON.get = function () {
- return "jsonGetProperty";
- };
+JSON.get = function() {
+ return "jsonGetProperty";
+};
- Object.defineProperty(obj, "property", JSON);
+Object.defineProperty(obj, "property", JSON);
assert.sameValue(obj.property, "jsonGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-227-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-227-1.js
index 3b694afa2..69c0c2b1f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-227-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-227-1.js
@@ -9,13 +9,13 @@ description: >
object (8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- Error.prototype.get = function () {
- return "errorGetProperty";
- };
- var errObj = new Error();
+Error.prototype.get = function() {
+ return "errorGetProperty";
+};
+var errObj = new Error();
- Object.defineProperty(obj, "property", errObj);
+Object.defineProperty(obj, "property", errObj);
assert.sameValue(obj.property, "errorGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-227.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-227.js
index a61ca0f0c..cd5a996ed 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-227.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-227.js
@@ -9,14 +9,14 @@ description: >
7.a)
---*/
- var obj = {};
+var obj = {};
- var errObj = new Error();
+var errObj = new Error();
- errObj.get = function () {
- return "errorGetProperty";
- };
+errObj.get = function() {
+ return "errorGetProperty";
+};
- Object.defineProperty(obj, "property", errObj);
+Object.defineProperty(obj, "property", errObj);
assert.sameValue(obj.property, "errorGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-228-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-228-1.js
index 89b7ba7df..2f6acb4b1 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-228-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-228-1.js
@@ -9,13 +9,15 @@ description: >
prototype object (8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- Object.prototype.get = function () {
- return "argumentGetProperty";
- };
- var argObj = (function () { return arguments; })();
+Object.prototype.get = function() {
+ return "argumentGetProperty";
+};
+var argObj = (function() {
+ return arguments;
+})();
- Object.defineProperty(obj, "property", argObj);
+Object.defineProperty(obj, "property", argObj);
assert.sameValue(obj.property, "argumentGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-228.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-228.js
index abacba3aa..3bed3952c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-228.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-228.js
@@ -9,14 +9,16 @@ description: >
(8.10.5 step 7.a)
---*/
- var obj = {};
+var obj = {};
- var argObj = (function () { return arguments; })();
+var argObj = (function() {
+ return arguments;
+})();
- argObj.get = function () {
- return "argumentGetProperty";
- };
+argObj.get = function() {
+ return "argumentGetProperty";
+};
- Object.defineProperty(obj, "property", argObj);
+Object.defineProperty(obj, "property", argObj);
assert.sameValue(obj.property, "argumentGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-23.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-23.js
index bb1b20d09..b45a048a3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-23.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-23.js
@@ -8,25 +8,25 @@ description: >
an inherited data property (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- var proto = {};
- Object.defineProperty(proto, "enumerable", {
- value: true
- });
+var proto = {};
+Object.defineProperty(proto, "enumerable", {
+ value: true
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var child = new ConstructFun();
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-230.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-230.js
index 2a894faeb..69a884b8f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-230.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-230.js
@@ -9,12 +9,12 @@ description: >
step 7.a)
---*/
- var obj = {};
+var obj = {};
- this.get = function () {
- return "globalGetProperty";
- };
+this.get = function() {
+ return "globalGetProperty";
+};
- Object.defineProperty(obj, "property", this);
+Object.defineProperty(obj, "property", this);
assert.sameValue(obj.property, "globalGetProperty", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-231.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-231.js
index 3352bff3c..b9c1fab4b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-231.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-231.js
@@ -8,11 +8,11 @@ description: >
undefined (8.10.5 step 7.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", {
- get: undefined
- });
+Object.defineProperty(obj, "property", {
+ get: undefined
+});
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(typeof obj.property, "undefined", 'typeof obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-232.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-232.js
index 1556b1c7b..78e0e141e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-232.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-232.js
@@ -8,13 +8,13 @@ description: >
a function (8.10.5 step 7.b)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", {
- get: function () {
- return "getFunction";
- }
- });
+Object.defineProperty(obj, "property", {
+ get: function() {
+ return "getFunction";
+ }
+});
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(obj.property, "getFunction", 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-235.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-235.js
index e4b65b842..97cec2135 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-235.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-235.js
@@ -8,16 +8,16 @@ description: >
(8.10.5 step 8)
---*/
- var obj = {};
- var data = "data";
+var obj = {};
+var data = "data";
- Object.defineProperty(obj, "property", {
- set: function (value) {
- data = value;
- }
- });
+Object.defineProperty(obj, "property", {
+ set: function(value) {
+ data = value;
+ }
+});
- obj.property = "overrideData";
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-236.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-236.js
index 8a09f51b0..a52ba6e96 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-236.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-236.js
@@ -12,9 +12,9 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "property", {
- get: function () {
- return 11;
- }
+ get: function() {
+ return 11;
+ }
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-237.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-237.js
index 6f940328b..8060ed559 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-237.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-237.js
@@ -8,16 +8,16 @@ description: >
property (8.10.5 step 8.a)
---*/
- var obj = {};
- var data = "data";
+var obj = {};
+var data = "data";
- Object.defineProperty(obj, "property", {
- set: function (value) {
- data = value;
- }
- });
+Object.defineProperty(obj, "property", {
+ set: function(value) {
+ data = value;
+ }
+});
- obj.property = "overrideData";
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-238.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-238.js
index ee2a0704c..6b1fcfc71 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-238.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-238.js
@@ -8,22 +8,22 @@ description: >
inherited data property (8.10.5 step 8.a)
---*/
- var obj = {};
- var data = "data";
- var proto = {
- set: function (value) {
- data = value;
- }
- };
+var obj = {};
+var data = "data";
+var proto = {
+ set: function(value) {
+ data = value;
+ }
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var child = new ConstructFun();
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
- obj.property = "overrideData";
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-239.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-239.js
index fc8ab6600..90a83a52f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-239.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-239.js
@@ -9,26 +9,26 @@ description: >
8.a)
---*/
- var obj = {};
- var data1 = "data";
- var data2 = "data";
- var proto = {
- set: function (value) {
- data1 = value;
- }
- };
+var obj = {};
+var data1 = "data";
+var data2 = "data";
+var proto = {
+ set: function(value) {
+ data1 = value;
+ }
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- child.set = function (value) {
- data2 = value;
- };
+var child = new ConstructFun();
+child.set = function(value) {
+ data2 = value;
+};
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
- obj.property = "overrideData";
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data1, "data", 'data1');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-24.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-24.js
index bccb1de1e..fe6ed9ef3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-24.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-24.js
@@ -9,28 +9,28 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- var proto = {};
- Object.defineProperty(proto, "enumerable", {
- value: false
- });
+var proto = {};
+Object.defineProperty(proto, "enumerable", {
+ value: false
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "enumerable", {
- value: true
- });
+var child = new ConstructFun();
+Object.defineProperty(child, "enumerable", {
+ value: true
+});
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-240.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-240.js
index 3a148ce82..20efcfc13 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-240.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-240.js
@@ -9,32 +9,32 @@ description: >
step 8.a)
---*/
- var obj = {};
- var proto = {};
- var data1 = "data";
- var data2 = "data";
-
- Object.defineProperty(proto, "set", {
- get: function () {
- return function (value) {
- data1 = value;
- };
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var child = new ConstructFun();
- Object.defineProperty(child, "set", {
- value: function (value) {
- data2 = value;
- }
- });
-
- Object.defineProperty(obj, "property", child);
-
- obj.property = "overrideData";
+var obj = {};
+var proto = {};
+var data1 = "data";
+var data2 = "data";
+
+Object.defineProperty(proto, "set", {
+ get: function() {
+ return function(value) {
+ data1 = value;
+ };
+ }
+});
+
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+
+var child = new ConstructFun();
+Object.defineProperty(child, "set", {
+ value: function(value) {
+ data2 = value;
+ }
+});
+
+Object.defineProperty(obj, "property", child);
+
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data1, "data", 'data1');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-241.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-241.js
index 17bf99c8a..159da6087 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-241.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-241.js
@@ -8,19 +8,19 @@ description: >
accessor property (8.10.5 step 8.a)
---*/
- var obj = {};
- var data = "data";
- var attributes = {};
- Object.defineProperty(attributes, "set", {
- get: function () {
- return function (value) {
- data = value;
- };
- }
- });
+var obj = {};
+var data = "data";
+var attributes = {};
+Object.defineProperty(attributes, "set", {
+ get: function() {
+ return function(value) {
+ data = value;
+ };
+ }
+});
- Object.defineProperty(obj, "property", attributes);
- obj.property = "ownAccessorProperty";
+Object.defineProperty(obj, "property", attributes);
+obj.property = "ownAccessorProperty";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "ownAccessorProperty", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-242.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-242.js
index 132baba02..a1b53d312 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-242.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-242.js
@@ -8,24 +8,24 @@ description: >
inherited accessor property (8.10.5 step 8.a)
---*/
- var obj = {};
- var proto = {};
- var data = "data";
- Object.defineProperty(proto, "set", {
- get: function () {
- return function (value) {
- data = value;
- };
- }
- });
+var obj = {};
+var proto = {};
+var data = "data";
+Object.defineProperty(proto, "set", {
+ get: function() {
+ return function(value) {
+ data = value;
+ };
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var child = new ConstructFun();
- Object.defineProperty(obj, "property", child);
- obj.property = "inheritedAccessorProperty";
+Object.defineProperty(obj, "property", child);
+obj.property = "inheritedAccessorProperty";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "inheritedAccessorProperty", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-243.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-243.js
index f343f73a4..a324607a0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-243.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-243.js
@@ -9,30 +9,30 @@ description: >
(8.10.5 step 8.a)
---*/
- var obj = {};
- var data1 = "data";
- var data2 = "data";
+var obj = {};
+var data1 = "data";
+var data2 = "data";
- var proto = {
- set: function (value) {
- data1 = value;
- }
- };
+var proto = {
+ set: function(value) {
+ data1 = value;
+ }
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "set", {
- get: function () {
- return function (value) {
- data2 = value;
- };
- }
- });
+var child = new ConstructFun();
+Object.defineProperty(child, "set", {
+ get: function() {
+ return function(value) {
+ data2 = value;
+ };
+ }
+});
- Object.defineProperty(obj, "property", child);
- obj.property = "ownAccessorProperty";
+Object.defineProperty(obj, "property", child);
+obj.property = "ownAccessorProperty";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data1, "data", 'data1');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-244.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-244.js
index 1696066e4..0989ddcdb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-244.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-244.js
@@ -9,32 +9,32 @@ description: >
(8.10.5 step 8.a)
---*/
- var obj = {};
- var proto = {};
- var data1 = "data";
- var data2 = "data";
- Object.defineProperty(proto, "set", {
- get: function () {
- return function (value) {
- data1 = value;
- };
- }
- });
+var obj = {};
+var proto = {};
+var data1 = "data";
+var data2 = "data";
+Object.defineProperty(proto, "set", {
+ get: function() {
+ return function(value) {
+ data1 = value;
+ };
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "set", {
- get: function () {
- return function (value) {
- data2 = value;
- };
- }
- });
+var child = new ConstructFun();
+Object.defineProperty(child, "set", {
+ get: function() {
+ return function(value) {
+ data2 = value;
+ };
+ }
+});
- Object.defineProperty(obj, "property", child);
- obj.property = "ownAccessorProperty";
+Object.defineProperty(obj, "property", child);
+obj.property = "ownAccessorProperty";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data1, "data", 'data1');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-245.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-245.js
index 5953cc76f..87f88a3dd 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-245.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-245.js
@@ -13,7 +13,7 @@ var obj = {};
var attributes = {};
Object.defineProperty(attributes, "set", {
- set: function () { }
+ set: function() {}
});
Object.defineProperty(obj, "property", attributes);
@@ -25,4 +25,3 @@ var desc = Object.getOwnPropertyDescriptor(obj, "property");
assert(obj.hasOwnProperty("property"));
assert.sameValue(typeof obj.property, "undefined");
assert.sameValue(typeof desc.set, "undefined");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-246.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-246.js
index d3c9b3b05..aaada824f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-246.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-246.js
@@ -14,19 +14,19 @@ var obj = {};
var proto = {};
var data = "data";
Object.defineProperty(proto, "set", {
- get: function () {
- return function (value) {
- data = value;
- };
- }
+ get: function() {
+ return function(value) {
+ data = value;
+ };
+ }
});
-var ConstructFun = function () { };
+var ConstructFun = function() {};
ConstructFun.prototype = proto;
var child = new ConstructFun();
Object.defineProperty(child, "set", {
- set: function () { }
+ set: function() {}
});
Object.defineProperty(obj, "property", child);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-247.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-247.js
index 7de4f4b3f..ad5c22ada 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-247.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-247.js
@@ -13,10 +13,10 @@ includes: [propertyHelper.js]
var obj = {};
var proto = {};
Object.defineProperty(proto, "set", {
- set: function () { }
+ set: function() {}
});
-var ConstructFun = function () { };
+var ConstructFun = function() {};
ConstructFun.prototype = proto;
var child = new ConstructFun();
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-248-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-248-1.js
index 4ff3487ad..222c7aca7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-248-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-248-1.js
@@ -9,16 +9,16 @@ description: >
prototype object (8.10.5 step 8.a)
---*/
- var obj = {};
- var data = "data";
+var obj = {};
+var data = "data";
- Function.prototype.set = function (value) {
- data = value;
- };
- var funObj = function () { };
+Function.prototype.set = function(value) {
+ data = value;
+};
+var funObj = function() {};
- Object.defineProperty(obj, "property", funObj);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", funObj);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-248.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-248.js
index 2f473b986..7097d1770 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-248.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-248.js
@@ -9,16 +9,16 @@ description: >
(8.10.5 step 8.a)
---*/
- var obj = {};
- var data = "data";
- var funObj = function () { };
+var obj = {};
+var data = "data";
+var funObj = function() {};
- funObj.set = function (value) {
- data = value;
- };
+funObj.set = function(value) {
+ data = value;
+};
- Object.defineProperty(obj, "property", funObj);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", funObj);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-249-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-249-1.js
index 12f19e894..11845419a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-249-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-249-1.js
@@ -9,16 +9,16 @@ description: >
object (8.10.5 step 8.a)
---*/
- var obj = {};
- var data = "data";
+var obj = {};
+var data = "data";
- Array.prototype.set = function (value) {
- data = value;
- };
- var arrObj = [];
+Array.prototype.set = function(value) {
+ data = value;
+};
+var arrObj = [];
- Object.defineProperty(obj, "property", arrObj);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", arrObj);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-249.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-249.js
index dce84e78b..b431308da 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-249.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-249.js
@@ -9,16 +9,16 @@ description: >
8.a)
---*/
- var obj = {};
- var data = "data";
- var arrObj = [];
+var obj = {};
+var data = "data";
+var arrObj = [];
- arrObj.set = function (value) {
- data = value;
- };
+arrObj.set = function(value) {
+ data = value;
+};
- Object.defineProperty(obj, "property", arrObj);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", arrObj);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-25.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-25.js
index 2b278d63b..5bbdda116 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-25.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-25.js
@@ -9,30 +9,30 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
-
- var proto = {};
- Object.defineProperty(proto, "enumerable", {
- get: function () {
- return false;
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var child = new ConstructFun();
- Object.defineProperty(child, "enumerable", {
- value: true
- });
-
- Object.defineProperty(obj, "property", child);
-
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+var obj = {};
+var accessed = false;
+
+var proto = {};
+Object.defineProperty(proto, "enumerable", {
+ get: function() {
+ return false;
+ }
+});
+
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+
+var child = new ConstructFun();
+Object.defineProperty(child, "enumerable", {
+ value: true
+});
+
+Object.defineProperty(obj, "property", child);
+
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-250-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-250-1.js
index 10055b5c8..372576ab9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-250-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-250-1.js
@@ -9,16 +9,16 @@ description: >
object (8.10.5 step 8.a)
---*/
- var obj = {};
+var obj = {};
- String.prototype.set = function (value) {
- data = value;
- };
- var strObj = new String();
- var data = "data";
+String.prototype.set = function(value) {
+ data = value;
+};
+var strObj = new String();
+var data = "data";
- Object.defineProperty(obj, "property", strObj);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", strObj);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-250.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-250.js
index bfededf6b..0549855c4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-250.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-250.js
@@ -9,16 +9,16 @@ description: >
8.a)
---*/
- var obj = {};
- var strObj = new String();
- var data = "data";
+var obj = {};
+var strObj = new String();
+var data = "data";
- strObj.set = function (value) {
- data = value;
- };
+strObj.set = function(value) {
+ data = value;
+};
- Object.defineProperty(obj, "property", strObj);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", strObj);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-251-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-251-1.js
index 6ea5a518d..f4799b729 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-251-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-251-1.js
@@ -9,16 +9,16 @@ description: >
object (8.10.5 step 8.a)
---*/
- var obj = {};
- var data = "data";
+var obj = {};
+var data = "data";
- Boolean.prototype.set = function (value) {
- data = value;
- };
- var boolObj = new Boolean(true);
+Boolean.prototype.set = function(value) {
+ data = value;
+};
+var boolObj = new Boolean(true);
- Object.defineProperty(obj, "property", boolObj);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", boolObj);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-251.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-251.js
index 9bbccaff9..5e7f2ddd2 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-251.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-251.js
@@ -9,16 +9,16 @@ description: >
8.a)
---*/
- var obj = {};
- var data = "data";
- var boolObj = new Boolean(true);
+var obj = {};
+var data = "data";
+var boolObj = new Boolean(true);
- boolObj.set = function (value) {
- data = value;
- };
+boolObj.set = function(value) {
+ data = value;
+};
- Object.defineProperty(obj, "property", boolObj);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", boolObj);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-252-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-252-1.js
index 749f8bc33..72e1288dd 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-252-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-252-1.js
@@ -9,16 +9,16 @@ description: >
object (8.10.5 step 8.a)
---*/
- var obj = {};
- var data = "data";
+var obj = {};
+var data = "data";
- Number.prototype.set = function (value) {
- data = value;
- };
- var numObj = new Number(-2);
+Number.prototype.set = function(value) {
+ data = value;
+};
+var numObj = new Number(-2);
- Object.defineProperty(obj, "property", numObj);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", numObj);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-252.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-252.js
index 549dcd00e..199d853db 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-252.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-252.js
@@ -9,16 +9,16 @@ description: >
8.a)
---*/
- var obj = {};
- var data = "data";
- var numObj = new Number(-2);
+var obj = {};
+var data = "data";
+var numObj = new Number(-2);
- numObj.set = function (value) {
- data = value;
- };
+numObj.set = function(value) {
+ data = value;
+};
- Object.defineProperty(obj, "property", numObj);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", numObj);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-253-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-253-1.js
index 96622fe50..56d185832 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-253-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-253-1.js
@@ -9,15 +9,15 @@ description: >
object (8.10.5 step 8.a)
---*/
- var obj = {};
- var data = "data";
+var obj = {};
+var data = "data";
- Object.prototype.set = function (value) {
- data = value;
- };
+Object.prototype.set = function(value) {
+ data = value;
+};
- Object.defineProperty(obj, "property", Math);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", Math);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-253.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-253.js
index 322dfe1f0..5aa8e6a57 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-253.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-253.js
@@ -9,15 +9,15 @@ description: >
8.a)
---*/
- var obj = {};
- var data = "data";
+var obj = {};
+var data = "data";
- Math.set = function (value) {
- data = value;
- };
+Math.set = function(value) {
+ data = value;
+};
- Object.defineProperty(obj, "property", Math);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", Math);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-254-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-254-1.js
index 9b3a47fe4..3d774064d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-254-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-254-1.js
@@ -9,16 +9,16 @@ description: >
object (8.10.5 step 8.a)
---*/
- var obj = {};
- var data = "data";
+var obj = {};
+var data = "data";
- Date.prototype.set = function (value) {
- data = value;
- };
- var dateObj = new Date();
+Date.prototype.set = function(value) {
+ data = value;
+};
+var dateObj = new Date();
- Object.defineProperty(obj, "property", dateObj);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", dateObj);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-254.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-254.js
index 215cd639d..3c5799b94 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-254.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-254.js
@@ -9,16 +9,16 @@ description: >
8.a)
---*/
- var obj = {};
- var data = "data";
- var dateObj = new Date();
+var obj = {};
+var data = "data";
+var dateObj = new Date();
- dateObj.set = function (value) {
- data = value;
- };
+dateObj.set = function(value) {
+ data = value;
+};
- Object.defineProperty(obj, "property", dateObj);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", dateObj);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-255-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-255-1.js
index 15c2b421e..04d4f46f0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-255-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-255-1.js
@@ -9,16 +9,16 @@ description: >
object (8.10.5 step 8.a)
---*/
- var obj = {};
- var data = "data";
+var obj = {};
+var data = "data";
- RegExp.prototype.set = function (value) {
- data = value;
- };
- var regObj = new RegExp();
+RegExp.prototype.set = function(value) {
+ data = value;
+};
+var regObj = new RegExp();
- Object.defineProperty(obj, "property", regObj);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", regObj);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-255.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-255.js
index 058730c2f..fd1f42cf8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-255.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-255.js
@@ -9,16 +9,16 @@ description: >
8.a)
---*/
- var obj = {};
- var data = "data";
- var regObj = new RegExp();
+var obj = {};
+var data = "data";
+var regObj = new RegExp();
- regObj.set = function (value) {
- data = value;
- };
+regObj.set = function(value) {
+ data = value;
+};
- Object.defineProperty(obj, "property", regObj);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", regObj);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-256-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-256-1.js
index 86747c4b8..5b3a9c5db 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-256-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-256-1.js
@@ -9,15 +9,15 @@ description: >
object (8.10.5 step 8.a)
---*/
- var obj = {};
- var data = "data";
+var obj = {};
+var data = "data";
- Object.prototype.set = function (value) {
- data = value;
- };
+Object.prototype.set = function(value) {
+ data = value;
+};
- Object.defineProperty(obj, "property", JSON);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", JSON);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-256.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-256.js
index 67353422e..885adc176 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-256.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-256.js
@@ -9,15 +9,15 @@ description: >
8.a)
---*/
- var obj = {};
- var data = "data";
+var obj = {};
+var data = "data";
- JSON.set = function (value) {
- data = value;
- };
+JSON.set = function(value) {
+ data = value;
+};
- Object.defineProperty(obj, "property", JSON);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", JSON);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-257-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-257-1.js
index a0fe03339..86693a8ac 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-257-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-257-1.js
@@ -9,16 +9,16 @@ description: >
object (8.10.5 step 8.a)
---*/
- var obj = {};
- var data = "data";
+var obj = {};
+var data = "data";
- Error.prototype.set = function (value) {
- data = value;
- };
- var errObj = new Error();
+Error.prototype.set = function(value) {
+ data = value;
+};
+var errObj = new Error();
- Object.defineProperty(obj, "property", errObj);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", errObj);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-257.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-257.js
index 944e77f98..e11ce787d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-257.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-257.js
@@ -9,16 +9,16 @@ description: >
8.a)
---*/
- var obj = {};
- var data = "data";
- var errObj = new Error();
+var obj = {};
+var data = "data";
+var errObj = new Error();
- errObj.set = function (value) {
- data = value;
- };
+errObj.set = function(value) {
+ data = value;
+};
- Object.defineProperty(obj, "property", errObj);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", errObj);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-258-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-258-1.js
index 0b250f10f..48c857b9b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-258-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-258-1.js
@@ -9,16 +9,18 @@ description: >
prototype object (8.10.5 step 8.a)
---*/
- var obj = {};
- var data = "data";
+var obj = {};
+var data = "data";
- Object.prototype.set = function (value) {
- data = value;
- };
- var argObj = (function () { return arguments; })();
+Object.prototype.set = function(value) {
+ data = value;
+};
+var argObj = (function() {
+ return arguments;
+})();
- Object.defineProperty(obj, "property", argObj);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", argObj);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-258.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-258.js
index 3ec7fdcf0..f75b5de0e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-258.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-258.js
@@ -9,15 +9,17 @@ description: >
(8.10.5 step 8.a)
---*/
- var obj = {};
- var data = "data";
- var argObj = (function () { return arguments; })();
- argObj.set = function (value) {
- data = value;
- };
+var obj = {};
+var data = "data";
+var argObj = (function() {
+ return arguments;
+})();
+argObj.set = function(value) {
+ data = value;
+};
- Object.defineProperty(obj, "property", argObj);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", argObj);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-26.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-26.js
index cddcf00fa..cb6114b6c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-26.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-26.js
@@ -8,22 +8,22 @@ description: >
own accessor property (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- var attr = {};
- Object.defineProperty(attr, "enumerable", {
- get: function () {
- return true;
- }
- });
+var attr = {};
+Object.defineProperty(attr, "enumerable", {
+ get: function() {
+ return true;
+ }
+});
- Object.defineProperty(obj, "property", attr);
+Object.defineProperty(obj, "property", attr);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-260.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-260.js
index 17a785f86..993707e94 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-260.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-260.js
@@ -9,15 +9,15 @@ description: >
step 8.a)
---*/
- var obj = {};
- var data = "data";
+var obj = {};
+var data = "data";
- this.set = function (value) {
- data = value;
- };
+this.set = function(value) {
+ data = value;
+};
- Object.defineProperty(obj, "property", this);
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", this);
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-261.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-261.js
index 517fd8067..bf605c2c8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-261.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-261.js
@@ -12,7 +12,7 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "property", {
- set: undefined
+ set: undefined
});
var desc = Object.getOwnPropertyDescriptor(obj, "property");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-262.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-262.js
index 0b8522c7f..7e5c6c1c2 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-262.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-262.js
@@ -8,15 +8,15 @@ description: >
a function (8.10.5 step 8.b)
---*/
- var obj = {};
- var data = "data";
+var obj = {};
+var data = "data";
- Object.defineProperty(obj, "property", {
- set: function (value) {
- data = value;
- }
- });
- obj.property = "overrideData";
+Object.defineProperty(obj, "property", {
+ set: function(value) {
+ data = value;
+ }
+});
+obj.property = "overrideData";
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(data, "overrideData", 'data');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-27.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-27.js
index 83cb14573..05c981290 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-27.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-27.js
@@ -8,27 +8,27 @@ description: >
an inherited accessor property (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- var proto = {};
- Object.defineProperty(proto, "enumerable", {
- get: function () {
- return true;
- }
- });
+var proto = {};
+Object.defineProperty(proto, "enumerable", {
+ get: function() {
+ return true;
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var child = new ConstructFun();
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-28.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-28.js
index 0de7fce4a..013382fe9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-28.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-28.js
@@ -9,28 +9,30 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- var proto = { enumerable: false };
+var proto = {
+ enumerable: false
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var child = new ConstructFun();
- Object.defineProperty(child, "enumerable", {
- get: function () {
- return true;
- }
- });
+Object.defineProperty(child, "enumerable", {
+ get: function() {
+ return true;
+ }
+});
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-29.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-29.js
index 665c3218e..c7a432892 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-29.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-29.js
@@ -9,33 +9,33 @@ description: >
property (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
- var proto = {};
-
- Object.defineProperty(proto, "enumerable", {
- get: function () {
- return false;
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
-
- var child = new ConstructFun();
-
- Object.defineProperty(child, "enumerable", {
- get: function () {
- return true;
- }
- });
-
- Object.defineProperty(obj, "property", child);
-
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+var obj = {};
+var accessed = false;
+var proto = {};
+
+Object.defineProperty(proto, "enumerable", {
+ get: function() {
+ return false;
+ }
+});
+
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+
+var child = new ConstructFun();
+
+Object.defineProperty(child, "enumerable", {
+ get: function() {
+ return true;
+ }
+});
+
+Object.defineProperty(obj, "property", child);
+
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-3.js
index 9e0d0f396..d701420b4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-3.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-3.js
@@ -12,12 +12,15 @@ description: >
'value' present(8.10.5 step 9.a)
---*/
- var o = {};
+var o = {};
- // dummy setter
- var setter = function () { }
- var desc = { set: setter, value: 101};
+// dummy setter
+var setter = function() {}
+var desc = {
+ set: setter,
+ value: 101
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-30.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-30.js
index 54be326f7..cfc961d17 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-30.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-30.js
@@ -8,20 +8,20 @@ description: >
own accessor property without a get function (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- var attr = {};
- Object.defineProperty(attr, "enumerable", {
- set: function () { }
- });
+var attr = {};
+Object.defineProperty(attr, "enumerable", {
+ set: function() {}
+});
- Object.defineProperty(obj, "property", attr);
+Object.defineProperty(obj, "property", attr);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-31.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-31.js
index 476cf5038..f628d6422 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-31.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-31.js
@@ -9,31 +9,31 @@ description: >
inherited accessor property (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
- var proto = {};
+var obj = {};
+var accessed = false;
+var proto = {};
- Object.defineProperty(proto, "enumerable", {
- get: function () {
- return true;
- }
- });
+Object.defineProperty(proto, "enumerable", {
+ get: function() {
+ return true;
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var child = new ConstructFun();
- Object.defineProperty(child, "enumerable", {
- set: function () { }
- });
+Object.defineProperty(child, "enumerable", {
+ set: function() {}
+});
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-32.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-32.js
index b1981975f..112d61a29 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-32.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-32.js
@@ -9,25 +9,25 @@ description: >
3.a)
---*/
- var obj = {};
- var accessed = false;
- var proto = {};
+var obj = {};
+var accessed = false;
+var proto = {};
- Object.defineProperty(proto, "enumerable", {
- set: function () { }
- });
+Object.defineProperty(proto, "enumerable", {
+ set: function() {}
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var child = new ConstructFun();
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-33-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-33-1.js
index 17f152928..60d9644e4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-33-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-33-1.js
@@ -9,18 +9,18 @@ description: >
property of prototype object (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Function.prototype.enumerable = true;
- var fun = function () { };
+Function.prototype.enumerable = true;
+var fun = function() {};
- Object.defineProperty(obj, "property", fun);
+Object.defineProperty(obj, "property", fun);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-33.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-33.js
index 98980b1d5..60abcc95d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-33.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-33.js
@@ -9,18 +9,18 @@ description: >
property (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- var fun = function () { };
- fun.enumerable = true;
+var fun = function() {};
+fun.enumerable = true;
- Object.defineProperty(obj, "property", fun);
+Object.defineProperty(obj, "property", fun);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-34-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-34-1.js
index 6a54cf172..d17143545 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-34-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-34-1.js
@@ -9,18 +9,18 @@ description: >
prototype object (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Array.prototype.enumerable = true;
- var arrObj = [];
+Array.prototype.enumerable = true;
+var arrObj = [];
- Object.defineProperty(obj, "property", arrObj);
+Object.defineProperty(obj, "property", arrObj);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-34.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-34.js
index 83aba5145..1d9464652 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-34.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-34.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- var arrObj = [];
- arrObj.enumerable = true;
+var arrObj = [];
+arrObj.enumerable = true;
- Object.defineProperty(obj, "property", arrObj);
+Object.defineProperty(obj, "property", arrObj);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-35-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-35-1.js
index 908e603b1..3d47c1b36 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-35-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-35-1.js
@@ -9,18 +9,18 @@ description: >
prototype object (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- String.prototype.enumerable = true;
- var strObj = new String();
+String.prototype.enumerable = true;
+var strObj = new String();
- Object.defineProperty(obj, "property", strObj);
+Object.defineProperty(obj, "property", strObj);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-35.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-35.js
index 00b780f0a..a38b4988b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-35.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-35.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- var strObj = new String();
- strObj.enumerable = true;
+var strObj = new String();
+strObj.enumerable = true;
- Object.defineProperty(obj, "property", strObj);
+Object.defineProperty(obj, "property", strObj);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-36-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-36-1.js
index a385748a7..fe685c511 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-36-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-36-1.js
@@ -9,18 +9,18 @@ description: >
prototype object (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Boolean.prototype.enumerable = true;
- var boolObj = new Boolean(true);
+Boolean.prototype.enumerable = true;
+var boolObj = new Boolean(true);
- Object.defineProperty(obj, "property", boolObj);
+Object.defineProperty(obj, "property", boolObj);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-36.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-36.js
index 2ca7f9ab9..da7627450 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-36.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-36.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- var boolObj = new Boolean(true);
- boolObj.enumerable = true;
+var boolObj = new Boolean(true);
+boolObj.enumerable = true;
- Object.defineProperty(obj, "property", boolObj);
+Object.defineProperty(obj, "property", boolObj);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-37-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-37-1.js
index d9e83be1f..4cd927281 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-37-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-37-1.js
@@ -9,18 +9,18 @@ description: >
prototype object (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Number.prototype.enumerable = true;
- var numObj = new Number(-2);
+Number.prototype.enumerable = true;
+var numObj = new Number(-2);
- Object.defineProperty(obj, "property", numObj);
+Object.defineProperty(obj, "property", numObj);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-37.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-37.js
index 291f1b0e3..b7cf88d53 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-37.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-37.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- var numObj = new Number(-2);
- numObj.enumerable = true;
+var numObj = new Number(-2);
+numObj.enumerable = true;
- Object.defineProperty(obj, "property", numObj);
+Object.defineProperty(obj, "property", numObj);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-38-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-38-1.js
index c49dc19dc..0fe274646 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-38-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-38-1.js
@@ -9,17 +9,17 @@ description: >
prototype object (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.prototype.enumerable = true;
+Object.prototype.enumerable = true;
- Object.defineProperty(obj, "property", Math);
+Object.defineProperty(obj, "property", Math);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-38.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-38.js
index ea7b3809f..d3851c5f6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-38.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-38.js
@@ -9,17 +9,17 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Math.enumerable = true;
+Math.enumerable = true;
- Object.defineProperty(obj, "property", Math);
+Object.defineProperty(obj, "property", Math);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-39-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-39-1.js
index 54bc49d18..2ea93ddfc 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-39-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-39-1.js
@@ -9,18 +9,18 @@ description: >
prototype object (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Date.prototype.enumerable = true;
- var dateObj = new Date();
+Date.prototype.enumerable = true;
+var dateObj = new Date();
- Object.defineProperty(obj, "property", dateObj);
+Object.defineProperty(obj, "property", dateObj);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-39.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-39.js
index 476162159..605f7a5f9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-39.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-39.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- var dateObj = new Date();
- dateObj.enumerable = true;
+var dateObj = new Date();
+dateObj.enumerable = true;
- Object.defineProperty(obj, "property", dateObj);
+Object.defineProperty(obj, "property", dateObj);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-4.js
index e740fecf1..209074cda 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-4.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-4.js
@@ -12,12 +12,15 @@ description: >
'writable' present(8.10.5 step 9.a)
---*/
- var o = {};
-
- // dummy getter
- var setter = function () { }
- var desc = { set: setter, writable: false };
+var o = {};
+
+// dummy getter
+var setter = function() {}
+var desc = {
+ set: setter,
+ writable: false
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-40-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-40-1.js
index 6f2548ffd..a9250c89c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-40-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-40-1.js
@@ -9,18 +9,18 @@ description: >
prototype object (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- RegExp.prototype.enumerable = true;
- var regObj = new RegExp();
+RegExp.prototype.enumerable = true;
+var regObj = new RegExp();
- Object.defineProperty(obj, "property", regObj);
+Object.defineProperty(obj, "property", regObj);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-40.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-40.js
index 46975d82c..1d87040b4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-40.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-40.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- var regObj = new RegExp();
- regObj.enumerable = true;
+var regObj = new RegExp();
+regObj.enumerable = true;
- Object.defineProperty(obj, "property", regObj);
+Object.defineProperty(obj, "property", regObj);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-41-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-41-1.js
index c53c41840..562a96cd8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-41-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-41-1.js
@@ -9,17 +9,17 @@ description: >
prototype object (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.prototype.enumerable = true;
+Object.prototype.enumerable = true;
- Object.defineProperty(obj, "property", JSON);
+Object.defineProperty(obj, "property", JSON);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-41.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-41.js
index 6475a5ceb..5c25f8002 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-41.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-41.js
@@ -9,17 +9,17 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- JSON.enumerable = true;
+JSON.enumerable = true;
- Object.defineProperty(obj, "property", JSON);
+Object.defineProperty(obj, "property", JSON);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-42-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-42-1.js
index 41e13499f..cec338131 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-42-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-42-1.js
@@ -9,18 +9,18 @@ description: >
prototype object (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Error.prototype.enumerable = true;
- var errObj = new Error();
+Error.prototype.enumerable = true;
+var errObj = new Error();
- Object.defineProperty(obj, "property", errObj);
+Object.defineProperty(obj, "property", errObj);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-42.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-42.js
index 909994b82..9e287b18d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-42.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-42.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- var errObj = new Error();
- errObj.enumerable = true;
+var errObj = new Error();
+errObj.enumerable = true;
- Object.defineProperty(obj, "property", errObj);
+Object.defineProperty(obj, "property", errObj);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-43-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-43-1.js
index 7a799db39..c1565948e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-43-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-43-1.js
@@ -9,18 +9,20 @@ description: >
property of prototype object (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.prototype.enumerable = true;
- var argObj = (function () { return arguments; })();
+Object.prototype.enumerable = true;
+var argObj = (function() {
+ return arguments;
+})();
- Object.defineProperty(obj, "property", argObj);
+Object.defineProperty(obj, "property", argObj);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-43.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-43.js
index 8c2be1cae..f4a0f9de7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-43.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-43.js
@@ -9,18 +9,20 @@ description: >
property (8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- var argObj = (function () { return arguments; })();
- argObj.enumerable = true;
+var argObj = (function() {
+ return arguments;
+})();
+argObj.enumerable = true;
- Object.defineProperty(obj, "property", argObj);
+Object.defineProperty(obj, "property", argObj);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-45.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-45.js
index 98538314a..eedac149c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-45.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-45.js
@@ -9,17 +9,17 @@ description: >
(8.10.5 step 3.a)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- this.enumerable = true;
+this.enumerable = true;
- Object.defineProperty(obj, "property", this);
+Object.defineProperty(obj, "property", this);
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-46.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-46.js
index 9e6003e7c..ded4ff967 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-46.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-46.js
@@ -8,17 +8,17 @@ description: >
'Attributes' is undefined (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", {
- enumerable: undefined
- });
+Object.defineProperty(obj, "property", {
+ enumerable: undefined
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-47.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-47.js
index 2ed3c5efd..3a927f0f2 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-47.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-47.js
@@ -8,15 +8,17 @@ description: >
'Attributes' is null (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: null });
+Object.defineProperty(obj, "property", {
+ enumerable: null
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-48.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-48.js
index d1e420ea8..c42943fe7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-48.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-48.js
@@ -8,15 +8,17 @@ description: >
'Attributes' is true (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: true });
+Object.defineProperty(obj, "property", {
+ enumerable: true
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-49.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-49.js
index bed11ffd6..f24a82be3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-49.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-49.js
@@ -8,15 +8,17 @@ description: >
'Attributes' is false (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: false });
+Object.defineProperty(obj, "property", {
+ enumerable: false
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-5.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-5.js
index 763fbca7a..e2290434d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-5.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-5.js
@@ -12,12 +12,14 @@ description: >
but not undefined (Number)(8.10.5 step 7.b)
---*/
- var o = {};
-
- // dummy getter
- var getter = 42;
- var desc = { get: getter };
+var o = {};
+
+// dummy getter
+var getter = 42;
+var desc = {
+ get: getter
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-50.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-50.js
index 91a8d0906..aa6c0582e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-50.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-50.js
@@ -8,15 +8,17 @@ description: >
'Attributes' is 0 (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: 0 });
+Object.defineProperty(obj, "property", {
+ enumerable: 0
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-51.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-51.js
index ddea2dfa7..4b5e1dffc 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-51.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-51.js
@@ -8,15 +8,17 @@ description: >
'Attributes' is +0 (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: +0 });
+Object.defineProperty(obj, "property", {
+ enumerable: +0
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-52.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-52.js
index 2fb433b80..19ad09b8d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-52.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-52.js
@@ -8,15 +8,17 @@ description: >
'Attributes' is -0 (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: -0 });
+Object.defineProperty(obj, "property", {
+ enumerable: -0
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-53.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-53.js
index aaa5fef8e..9b22a839b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-53.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-53.js
@@ -8,15 +8,17 @@ description: >
'Attributes' is NaN (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: NaN });
+Object.defineProperty(obj, "property", {
+ enumerable: NaN
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-54.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-54.js
index 479ed01b7..0eb6de95d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-54.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-54.js
@@ -8,15 +8,17 @@ description: >
'Attributes' is a positive number (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: 12 });
+Object.defineProperty(obj, "property", {
+ enumerable: 12
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-55.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-55.js
index bba81e43e..7357b3c82 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-55.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-55.js
@@ -8,15 +8,17 @@ description: >
'Attributes' is a negative number (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: -2 });
+Object.defineProperty(obj, "property", {
+ enumerable: -2
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-56.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-56.js
index ff875f28a..8bf0c1e6a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-56.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-56.js
@@ -8,15 +8,17 @@ description: >
'Attributes' is an empty string (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: "" });
+Object.defineProperty(obj, "property", {
+ enumerable: ""
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-57.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-57.js
index ec0bb7376..78c6e6928 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-57.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-57.js
@@ -8,15 +8,17 @@ description: >
'Attributes' is a non-empty string (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: "AB\n\\cd" });
+Object.defineProperty(obj, "property", {
+ enumerable: "AB\n\\cd"
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-58.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-58.js
index be5dd1d8d..2cb29dd7a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-58.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-58.js
@@ -8,17 +8,17 @@ description: >
'Attributes' is a Function object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", {
- enumerable: function () { }
- });
+Object.defineProperty(obj, "property", {
+ enumerable: function() {}
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-59.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-59.js
index 404f491ef..6a4e73e7e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-59.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-59.js
@@ -8,15 +8,17 @@ description: >
'Attributes' is an Array object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: [] });
+Object.defineProperty(obj, "property", {
+ enumerable: []
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-6.js
index be4b9302e..333d6a1d8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-6.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-6.js
@@ -12,12 +12,14 @@ description: >
but not undefined (Boolean)(8.10.5 step 7.b)
---*/
- var o = {};
-
- // dummy getter
- var getter = true;
- var desc = { get: getter };
+var o = {};
+
+// dummy getter
+var getter = true;
+var desc = {
+ get: getter
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-60.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-60.js
index b8a43aeb7..c1a4fc7b7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-60.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-60.js
@@ -8,15 +8,17 @@ description: >
'Attributes' is a String Object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: new String() });
+Object.defineProperty(obj, "property", {
+ enumerable: new String()
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-61.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-61.js
index 1e963978c..7d46bdf7b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-61.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-61.js
@@ -8,15 +8,17 @@ description: >
'Attributes' is a Boolean Object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: new Boolean() });
+Object.defineProperty(obj, "property", {
+ enumerable: new Boolean()
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-62.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-62.js
index 60be30065..cb2aef8d0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-62.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-62.js
@@ -8,15 +8,17 @@ description: >
'Attributes' is a Number Object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: new Number() });
+Object.defineProperty(obj, "property", {
+ enumerable: new Number()
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-63.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-63.js
index a18690aac..ef607344f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-63.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-63.js
@@ -8,15 +8,17 @@ description: >
'Attributes' is the Math Object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: Math });
+Object.defineProperty(obj, "property", {
+ enumerable: Math
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-64.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-64.js
index 8ede8c20e..4cd67c97d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-64.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-64.js
@@ -8,15 +8,17 @@ description: >
'Attributes' is a Date Object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: new Date() });
+Object.defineProperty(obj, "property", {
+ enumerable: new Date()
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-65.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-65.js
index 57380cd63..0be3df181 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-65.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-65.js
@@ -8,15 +8,17 @@ description: >
'Attributes' is a RegExp Object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: new RegExp() });
+Object.defineProperty(obj, "property", {
+ enumerable: new RegExp()
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-66.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-66.js
index ec2550435..0d07de5d2 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-66.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-66.js
@@ -8,15 +8,17 @@ description: >
'Attributes' is the JSON Object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: JSON });
+Object.defineProperty(obj, "property", {
+ enumerable: JSON
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-67.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-67.js
index fe4c45f0e..f2993f58d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-67.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-67.js
@@ -8,15 +8,17 @@ description: >
'Attributes' is an Error Object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: new Error() });
+Object.defineProperty(obj, "property", {
+ enumerable: new Error()
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-68.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-68.js
index 842b98eb2..e5b19c83e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-68.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-68.js
@@ -8,16 +8,20 @@ description: >
'Attributes' is an Arguments Object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
- var argObj = (function () { return arguments; })(0, 1, 2);
+var obj = {};
+var accessed = false;
+var argObj = (function() {
+ return arguments;
+})(0, 1, 2);
- Object.defineProperty(obj, "property", { enumerable: argObj });
+Object.defineProperty(obj, "property", {
+ enumerable: argObj
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-7.js
index 54556c303..b9690c2bb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-7.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-7.js
@@ -12,12 +12,14 @@ description: >
but not undefined (String)(8.10.5 step 7.b)
---*/
- var o = {};
-
- // dummy getter
- var getter = "abc";
- var desc = { get: getter };
+var o = {};
+
+// dummy getter
+var getter = "abc";
+var desc = {
+ get: getter
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-70.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-70.js
index ded68d14c..f3b46f3d6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-70.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-70.js
@@ -8,15 +8,17 @@ description: >
'Attributes' is the global object (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: this });
+Object.defineProperty(obj, "property", {
+ enumerable: this
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-71.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-71.js
index d732a9523..d32608e8a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-71.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-71.js
@@ -9,15 +9,17 @@ description: >
'false') (8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: "false" });
+Object.defineProperty(obj, "property", {
+ enumerable: "false"
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-72.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-72.js
index 64bd3d7e2..1da2600b6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-72.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-72.js
@@ -9,15 +9,17 @@ description: >
(8.10.5 step 3.b)
---*/
- var obj = {};
- var accessed = false;
+var obj = {};
+var accessed = false;
- Object.defineProperty(obj, "property", { enumerable: new Boolean(false) });
+Object.defineProperty(obj, "property", {
+ enumerable: new Boolean(false)
+});
- for (var prop in obj) {
- if (prop === "property") {
- accessed = true;
- }
- }
+for (var prop in obj) {
+ if (prop === "property") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-73.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-73.js
index baac16ea6..cc482c6c8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-73.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-73.js
@@ -12,7 +12,7 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "property", {
- configurable: false
+ configurable: false
});
assert(obj.hasOwnProperty("property"));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-74.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-74.js
index c6fc62d82..d5c2b4ba9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-74.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-74.js
@@ -9,9 +9,11 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = { };
+var obj = {};
-Object.defineProperty(obj, "property", { value: 100 });
+Object.defineProperty(obj, "property", {
+ value: 100
+});
assert(obj.hasOwnProperty("property"));
verifyNotConfigurable(obj, "property");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-75.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-75.js
index 57de46485..29eabf5bd 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-75.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-75.js
@@ -8,17 +8,17 @@ description: >
own data property (8.10.5 step 4.a)
---*/
- var obj = { };
+var obj = {};
- Object.defineProperty(obj, "property", {
- configurable: true
- });
+Object.defineProperty(obj, "property", {
+ configurable: true
+});
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-76.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-76.js
index 39e2e863a..649f877b3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-76.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-76.js
@@ -9,13 +9,13 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = { };
+var obj = {};
var proto = {
- configurable: false
+ configurable: false
};
-var ConstructFun = function () { };
+var ConstructFun = function() {};
ConstructFun.prototype = proto;
var child = new ConstructFun();
@@ -28,4 +28,4 @@ verifyNotConfigurable(obj, "property");
assert(obj.hasOwnProperty("property"));
-assert.sameValue(typeof (obj.property), "undefined");
+assert.sameValue(typeof(obj.property), "undefined");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-77.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-77.js
index 9d80e8cb7..849e2ce6e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-77.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-77.js
@@ -9,25 +9,25 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = { };
+var obj = {};
- var proto = {
- configurable: false
- };
+var proto = {
+ configurable: false
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- child.configurable = true;
+var child = new ConstructFun();
+child.configurable = true;
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-78.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-78.js
index 7373f4374..b6c53ec3f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-78.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-78.js
@@ -9,31 +9,31 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- var proto = { };
+var proto = {};
- Object.defineProperty(proto, "configurable", {
- get: function () {
- return false;
- }
- });
+Object.defineProperty(proto, "configurable", {
+ get: function() {
+ return false;
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "configurable", {
- value: true
- });
+var child = new ConstructFun();
+Object.defineProperty(child, "configurable", {
+ value: true
+});
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-79.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-79.js
index 175d52cd6..047d7763f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-79.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-79.js
@@ -8,22 +8,22 @@ description: >
own accessor property (8.10.5 step 4.a)
---*/
- var obj = { };
+var obj = {};
- var attr = {};
- Object.defineProperty(attr, "configurable", {
- get: function () {
- return true;
- }
- });
+var attr = {};
+Object.defineProperty(attr, "configurable", {
+ get: function() {
+ return true;
+ }
+});
- Object.defineProperty(obj, "property", attr);
+Object.defineProperty(obj, "property", attr);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-8.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-8.js
index 31591f85f..95eac7daf 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-8.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-8.js
@@ -12,12 +12,14 @@ description: >
but not undefined (Null)(8.10.5 step 7.b)
---*/
- var o = {};
-
- // dummy getter
- var getter = null;
- var desc = { get: getter };
+var o = {};
+
+// dummy getter
+var getter = null;
+var desc = {
+ get: getter
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-80.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-80.js
index c89606b69..d89c14ee7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-80.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-80.js
@@ -8,27 +8,27 @@ description: >
an inherited accessor property (8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- var proto = {};
- Object.defineProperty(proto, "configurable", {
- get: function () {
- return true;
- }
- });
+var proto = {};
+Object.defineProperty(proto, "configurable", {
+ get: function() {
+ return true;
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var child = new ConstructFun();
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-81.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-81.js
index a4f3021f6..136567ae3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-81.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-81.js
@@ -9,29 +9,29 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- var proto = {
- configurable: false
- };
+var proto = {
+ configurable: false
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "configurable", {
- get: function () {
- return true;
- }
- });
+var child = new ConstructFun();
+Object.defineProperty(child, "configurable", {
+ get: function() {
+ return true;
+ }
+});
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-82.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-82.js
index ac8473eff..25c3a1db6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-82.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-82.js
@@ -9,32 +9,32 @@ description: >
property (8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- var proto = {};
- Object.defineProperty(proto, "configurable", {
- get: function () {
- return false;
- }
- });
+var proto = {};
+Object.defineProperty(proto, "configurable", {
+ get: function() {
+ return false;
+ }
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "configurable", {
- get: function () {
- return true;
- }
- });
+var child = new ConstructFun();
+Object.defineProperty(child, "configurable", {
+ get: function() {
+ return true;
+ }
+});
- Object.defineProperty(obj, "property", child);
+Object.defineProperty(obj, "property", child);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-83.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-83.js
index a11deb24a..b39b5cf91 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-83.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-83.js
@@ -9,11 +9,11 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = { };
+var obj = {};
var attr = {};
Object.defineProperty(attr, "configurable", {
- set : function () { }
+ set: function() {}
});
Object.defineProperty(obj, "property", attr);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-84.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-84.js
index 5b646c9ad..73297b372 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-84.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-84.js
@@ -14,17 +14,17 @@ var obj = {};
var proto = {};
Object.defineProperty(proto, "configurable", {
- get: function () {
- return true;
- }
+ get: function() {
+ return true;
+ }
});
-var ConstructFun = function () { };
+var ConstructFun = function() {};
ConstructFun.prototype = proto;
var child = new ConstructFun();
Object.defineProperty(child, "configurable", {
- set: function () { }
+ set: function() {}
});
Object.defineProperty(obj, "property", child);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-85.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-85.js
index 0d4c6548c..3d8051dc5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-85.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-85.js
@@ -14,10 +14,10 @@ var obj = {};
var proto = {};
Object.defineProperty(proto, "configurable", {
- set: function () { }
+ set: function() {}
});
-var ConstructFun = function () { };
+var ConstructFun = function() {};
ConstructFun.prototype = proto;
var child = new ConstructFun();
@@ -29,6 +29,4 @@ assert(obj.hasOwnProperty("property"));
verifyNotConfigurable(obj, "property");
assert(obj.hasOwnProperty("property"));
-assert.sameValue(typeof (obj.property), "undefined");
-
-
+assert.sameValue(typeof(obj.property), "undefined");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-86-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-86-1.js
index 016698c0e..687d2cd7b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-86-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-86-1.js
@@ -9,20 +9,20 @@ description: >
property of prototype object (8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- Function.prototype.configurable = true;
- var funObj = function (a, b) {
- return a + b;
- };
+Function.prototype.configurable = true;
+var funObj = function(a, b) {
+ return a + b;
+};
- Object.defineProperty(obj, "property", funObj);
+Object.defineProperty(obj, "property", funObj);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-86.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-86.js
index bccb67715..d50eee13c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-86.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-86.js
@@ -9,21 +9,21 @@ description: >
property (8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- var funObj = function (a, b) {
- return a + b;
- };
+var funObj = function(a, b) {
+ return a + b;
+};
- funObj.configurable = true;
+funObj.configurable = true;
- Object.defineProperty(obj, "property", funObj);
+Object.defineProperty(obj, "property", funObj);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-87-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-87-1.js
index b28cb6881..8d7386e46 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-87-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-87-1.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- Array.prototype.configurable = true;
- var arrObj = [1, 2, 3];
+Array.prototype.configurable = true;
+var arrObj = [1, 2, 3];
- Object.defineProperty(obj, "property", arrObj);
+Object.defineProperty(obj, "property", arrObj);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-87.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-87.js
index ed16679ea..7473126e8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-87.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-87.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = { };
+var obj = {};
- var arrObj = [1, 2, 3];
+var arrObj = [1, 2, 3];
- arrObj.configurable = true;
+arrObj.configurable = true;
- Object.defineProperty(obj, "property", arrObj);
+Object.defineProperty(obj, "property", arrObj);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-88-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-88-1.js
index c0708bbe1..c5b2ee9fb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-88-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-88-1.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- String.prototype.configurable = true;
- var strObj = new String("abc");
+String.prototype.configurable = true;
+var strObj = new String("abc");
- Object.defineProperty(obj, "property", strObj);
+Object.defineProperty(obj, "property", strObj);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-88.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-88.js
index 4060b4f3a..9accbf112 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-88.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-88.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = { };
+var obj = {};
- var strObj = new String("abc");
+var strObj = new String("abc");
- strObj.configurable = true;
+strObj.configurable = true;
- Object.defineProperty(obj, "property", strObj);
+Object.defineProperty(obj, "property", strObj);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-89-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-89-1.js
index 2ee6e1792..f0fd7d2f0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-89-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-89-1.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- Boolean.prototype.configurable = true;
- var boolObj = new Boolean(true);
+Boolean.prototype.configurable = true;
+var boolObj = new Boolean(true);
- Object.defineProperty(obj, "property", boolObj);
+Object.defineProperty(obj, "property", boolObj);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-89.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-89.js
index f39c1ed8d..b693ffbca 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-89.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-89.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = { };
+var obj = {};
- var boolObj = new Boolean(true);
+var boolObj = new Boolean(true);
- boolObj.configurable = true;
+boolObj.configurable = true;
- Object.defineProperty(obj, "property", boolObj);
+Object.defineProperty(obj, "property", boolObj);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-9.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-9.js
index e0fe885c6..a3f036a73 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-9.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-9.js
@@ -12,12 +12,16 @@ description: >
but not undefined (Object)(8.10.5 step 7.b)
---*/
- var o = {};
-
- // dummy getter
- var getter = { a: 1 };
- var desc = { get: getter };
+var o = {};
+
+// dummy getter
+var getter = {
+ a: 1
+};
+var desc = {
+ get: getter
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-90-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-90-1.js
index d867abbc6..542a8eebb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-90-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-90-1.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- Number.prototype.configurable = true;
- var numObj = new Number(-2);
+Number.prototype.configurable = true;
+var numObj = new Number(-2);
- Object.defineProperty(obj, "property", numObj);
+Object.defineProperty(obj, "property", numObj);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-90.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-90.js
index e3d3251d9..a5904b051 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-90.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-90.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = { };
+var obj = {};
- var numObj = new Number(-2);
+var numObj = new Number(-2);
- numObj.configurable = true;
+numObj.configurable = true;
- Object.defineProperty(obj, "property", numObj);
+Object.defineProperty(obj, "property", numObj);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-91-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-91-1.js
index 2191b771e..d0a8e2927 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-91-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-91-1.js
@@ -9,17 +9,17 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- Object.prototype.configurable = true;
+Object.prototype.configurable = true;
- Object.defineProperty(obj, "property", Math);
+Object.defineProperty(obj, "property", Math);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-91.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-91.js
index e87007a5a..934094a5e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-91.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-91.js
@@ -9,17 +9,17 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- Math.configurable = true;
+Math.configurable = true;
- Object.defineProperty(obj, "property", Math);
+Object.defineProperty(obj, "property", Math);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-92-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-92-1.js
index 8665effb5..f02615e75 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-92-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-92-1.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- Date.prototype.configurable = true;
- var dateObj = new Date();
+Date.prototype.configurable = true;
+var dateObj = new Date();
- Object.defineProperty(obj, "property", dateObj);
+Object.defineProperty(obj, "property", dateObj);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-92.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-92.js
index b245dc17d..1afb86767 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-92.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-92.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = { };
+var obj = {};
- var dateObj = new Date();
+var dateObj = new Date();
- dateObj.configurable = true;
+dateObj.configurable = true;
- Object.defineProperty(obj, "property", dateObj);
+Object.defineProperty(obj, "property", dateObj);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-93-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-93-1.js
index b34879406..775057ba8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-93-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-93-1.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- RegExp.prototype.configurable = true;
- var regObj = new RegExp();
+RegExp.prototype.configurable = true;
+var regObj = new RegExp();
- Object.defineProperty(obj, "property", regObj);
+Object.defineProperty(obj, "property", regObj);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-93.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-93.js
index 3657fd461..f79298d35 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-93.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-93.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = { };
+var obj = {};
- var regObj = new RegExp();
+var regObj = new RegExp();
- regObj.configurable = true;
+regObj.configurable = true;
- Object.defineProperty(obj, "property", regObj);
+Object.defineProperty(obj, "property", regObj);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-94-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-94-1.js
index 293602b42..aa834b6bb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-94-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-94-1.js
@@ -9,17 +9,17 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- Object.prototype.configurable = true;
+Object.prototype.configurable = true;
- Object.defineProperty(obj, "property", JSON);
+Object.defineProperty(obj, "property", JSON);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-94.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-94.js
index f7cd3d9aa..a3a3f4d30 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-94.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-94.js
@@ -9,17 +9,17 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- JSON.configurable = true;
+JSON.configurable = true;
- Object.defineProperty(obj, "property", JSON);
+Object.defineProperty(obj, "property", JSON);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-95-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-95-1.js
index 28d5de387..e86e3bd9a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-95-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-95-1.js
@@ -9,18 +9,18 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- Error.prototype.configurable = true;
- var errObj = new Error();
+Error.prototype.configurable = true;
+var errObj = new Error();
- Object.defineProperty(obj, "property", errObj);
+Object.defineProperty(obj, "property", errObj);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-95.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-95.js
index f0063df45..f37dab149 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-95.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-95.js
@@ -9,19 +9,19 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = { };
+var obj = {};
- var errObj = new Error();
+var errObj = new Error();
- errObj.configurable = true;
+errObj.configurable = true;
- Object.defineProperty(obj, "property", errObj);
+Object.defineProperty(obj, "property", errObj);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-96-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-96-1.js
index 53a448dd0..3dad6f88b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-96-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-96-1.js
@@ -9,18 +9,20 @@ description: >
property (8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- Object.prototype.configurable = true;
- var argObj = (function () { return arguments; })();
+Object.prototype.configurable = true;
+var argObj = (function() {
+ return arguments;
+})();
- Object.defineProperty(obj, "property", argObj);
+Object.defineProperty(obj, "property", argObj);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-96.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-96.js
index 97b7217a6..1730ebf40 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-96.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-96.js
@@ -9,18 +9,20 @@ description: >
property (8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- var argObj = (function () { return arguments; })();
- argObj.configurable = true;
+var argObj = (function() {
+ return arguments;
+})();
+argObj.configurable = true;
- Object.defineProperty(obj, "property", argObj);
+Object.defineProperty(obj, "property", argObj);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-98.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-98.js
index 5480de3fa..26be7d83b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-98.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-98.js
@@ -9,17 +9,17 @@ description: >
(8.10.5 step 4.a)
---*/
- var obj = {};
+var obj = {};
- this.configurable = true;
+this.configurable = true;
- Object.defineProperty(obj, "property", this);
+Object.defineProperty(obj, "property", this);
- var beforeDeleted = obj.hasOwnProperty("property");
+var beforeDeleted = obj.hasOwnProperty("property");
- delete obj.property;
+delete obj.property;
- var afterDeleted = obj.hasOwnProperty("property");
+var afterDeleted = obj.hasOwnProperty("property");
assert.sameValue(beforeDeleted, true, 'beforeDeleted');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-99.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-99.js
index f78b899c8..b809de323 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-99.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-99.js
@@ -9,9 +9,11 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = { };
+var obj = {};
-Object.defineProperty(obj, "property", { configurable: undefined });
+Object.defineProperty(obj, "property", {
+ configurable: undefined
+});
assert(obj.hasOwnProperty("property"));
verifyNotConfigurable(obj, "property");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-1.js
index 8dfc4e949..00a540894 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-1.js
@@ -14,10 +14,12 @@ description: >
non-extensible objects(8.12.9 step 3)
---*/
- var o = {};
- Object.preventExtensions(o);
+var o = {};
+Object.preventExtensions(o);
assert.throws(TypeError, function() {
- var desc = { value: 1 };
- Object.defineProperty(o, "foo", desc);
+ var desc = {
+ value: 1
+ };
+ Object.defineProperty(o, "foo", desc);
});
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-10.js
index 9c6022243..71145b2c8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-10.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-10.js
@@ -14,22 +14,31 @@ description: >
properties
---*/
- var o = {};
+var o = {};
- // create an accessor property; all other attributes default to false.
- // dummy getter
- var getter = function () { return 1; }
- var d1 = { get: getter, enumerable: false, configurable: false };
- Object.defineProperty(o, "foo", d1);
+// create an accessor property; all other attributes default to false.
+// dummy getter
+var getter = function() {
+ return 1;
+}
+var d1 = {
+ get: getter,
+ enumerable: false,
+ configurable: false
+};
+Object.defineProperty(o, "foo", d1);
- // now, setting enumerable to true should fail, since [[Configurable]]
- // on the original property will be false.
- var desc = { get: getter, enumerable: true };
+// now, setting enumerable to true should fail, since [[Configurable]]
+// on the original property will be false.
+var desc = {
+ get: getter,
+ enumerable: true
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
- // the property should remain unchanged.
- var d2 = Object.getOwnPropertyDescriptor(o, "foo");
+// the property should remain unchanged.
+var d2 = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(d2.get, getter, 'd2.get');
assert.sameValue(d2.enumerable, false, 'd2.enumerable');
assert.sameValue(d2.configurable, false, 'd2.configurable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-100.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-100.js
index b3d524226..efda2cd61 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-100.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-100.js
@@ -14,7 +14,7 @@ var obj = {};
obj.foo = 100; // default value of attributes: writable: true, configurable: true, enumerable: true
Object.defineProperty(obj, "foo", {
- value: 200
+ value: 200
});
verifyEqualTo(obj, "foo", 200);
@@ -23,4 +23,3 @@ verifyWritable(obj, "foo");
verifyEnumerable(obj, "foo");
verifyConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-101.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-101.js
index 2d32ed31d..bd15bb566 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-101.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-101.js
@@ -13,7 +13,9 @@ var obj = {};
obj.foo = 100; // default value of attributes: writable: true, configurable: true, enumerable: true
-Object.defineProperty(obj, "foo", { value: undefined });
+Object.defineProperty(obj, "foo", {
+ value: undefined
+});
verifyEqualTo(obj, "foo", undefined);
verifyWritable(obj, "foo");
@@ -21,4 +23,3 @@ verifyWritable(obj, "foo");
verifyEnumerable(obj, "foo");
verifyConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-102.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-102.js
index 01fd9bdb5..5ad0a75c5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-102.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-102.js
@@ -13,7 +13,9 @@ var obj = {};
obj.foo = undefined; // default value of attributes: writable: true, configurable: true, enumerable: true
-Object.defineProperty(obj, "foo", { value: 100 });
+Object.defineProperty(obj, "foo", {
+ value: 100
+});
verifyEqualTo(obj, "foo", 100);
verifyWritable(obj, "foo");
@@ -21,4 +23,3 @@ verifyWritable(obj, "foo");
verifyEnumerable(obj, "foo");
verifyConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-103.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-103.js
index 9a082b26a..44f7cb2fb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-103.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-103.js
@@ -13,11 +13,12 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- writable: false, configurable: true
+ writable: false,
+ configurable: true
});
Object.defineProperty(obj, "foo", {
- writable: true
+ writable: true
});
verifyEqualTo(obj, "foo", undefined);
@@ -26,4 +27,3 @@ verifyWritable(obj, "foo");
verifyNotEnumerable(obj, "foo");
verifyConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-104.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-104.js
index 74fa125da..1a2b93d2a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-104.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-104.js
@@ -13,12 +13,12 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- enumerable: false,
- configurable: true
+ enumerable: false,
+ configurable: true
});
Object.defineProperty(obj, "foo", {
- enumerable: true
+ enumerable: true
});
verifyEqualTo(obj, "foo", undefined);
@@ -27,4 +27,3 @@ verifyNotWritable(obj, "foo");
verifyEnumerable(obj, "foo");
verifyConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-105.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-105.js
index 67a9b88f0..8059ec365 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-105.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-105.js
@@ -13,14 +13,14 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: 200,
- enumerable: true,
- writable: true,
- configurable: true
+ value: 200,
+ enumerable: true,
+ writable: true,
+ configurable: true
});
Object.defineProperty(obj, "foo", {
- configurable: false
+ configurable: false
});
verifyEqualTo(obj, "foo", 200);
@@ -30,4 +30,3 @@ verifyWritable(obj, "foo");
verifyEnumerable(obj, "foo");
verifyNotConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-106.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-106.js
index 598d0a06e..c6a9e58fd 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-106.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-106.js
@@ -12,17 +12,17 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: 100,
- writable: true,
- enumerable: true,
- configurable: true
+Object.defineProperty(obj, "foo", {
+ value: 100,
+ writable: true,
+ enumerable: true,
+ configurable: true
});
-Object.defineProperty(obj, "foo", {
- value: 200,
- writable: false,
- enumerable: false
+Object.defineProperty(obj, "foo", {
+ value: 200,
+ writable: false,
+ enumerable: false
});
verifyEqualTo(obj, "foo", 200);
@@ -31,4 +31,3 @@ verifyNotWritable(obj, "foo");
verifyNotEnumerable(obj, "foo");
verifyConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-107.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-107.js
index ee85f3e49..f888deb39 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-107.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-107.js
@@ -14,25 +14,25 @@ includes: [propertyHelper.js]
var obj = {};
function getFunc() {
- return 10;
+ return 10;
}
function setFunc(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperty(obj, "foo", {
- get: getFunc,
- set: setFunc,
- configurable: true
+ get: getFunc,
+ set: setFunc,
+ configurable: true
});
function getFunc2() {
- return 20;
+ return 20;
}
Object.defineProperty(obj, "foo", {
- get: getFunc2
+ get: getFunc2
});
verifyEqualTo(obj, "foo", getFunc2());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-108.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-108.js
index 2e967e1cb..14f5eb822 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-108.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-108.js
@@ -14,23 +14,23 @@ includes: [propertyHelper.js]
var obj = {};
function getFunc() {
- return 10;
+ return 10;
}
function setFunc(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperty(obj, "foo", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "foo", {
- set: setFunc,
- get: undefined
+ set: setFunc,
+ get: undefined
});
verifyWritable(obj, "foo", "setVerifyHelpProp");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-109.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-109.js
index 80c2b1ce4..8b7123a39 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-109.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-109.js
@@ -13,22 +13,22 @@ includes: [propertyHelper.js]
var obj = {};
function setFunc(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperty(obj, "foo", {
- set: setFunc,
- get: undefined,
- enumerable: true,
- configurable: true
+ set: setFunc,
+ get: undefined,
+ enumerable: true,
+ configurable: true
});
function getFunc() {
- return 10;
+ return 10;
}
Object.defineProperty(obj, "foo", {
- get: getFunc
+ get: getFunc
});
verifyEqualTo(obj, "foo", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-11.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-11.js
index a189d2109..aa07d64e5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-11.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-11.js
@@ -14,22 +14,31 @@ description: >
properties
---*/
- var o = {};
+var o = {};
- // create an accessor property; all other attributes default to false.
- // dummy getter
- var getter = function () { return 1; }
- var d1 = { get: getter, enumerable: true, configurable: false };
- Object.defineProperty(o, "foo", d1);
+// create an accessor property; all other attributes default to false.
+// dummy getter
+var getter = function() {
+ return 1;
+}
+var d1 = {
+ get: getter,
+ enumerable: true,
+ configurable: false
+};
+Object.defineProperty(o, "foo", d1);
- // now, setting enumerable to true should fail, since [[Configurable]]
- // on the original property will be false.
- var desc = { get: getter, enumerable: false };
+// now, setting enumerable to true should fail, since [[Configurable]]
+// on the original property will be false.
+var desc = {
+ get: getter,
+ enumerable: false
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
- // the property should remain unchanged.
- var d2 = Object.getOwnPropertyDescriptor(o, "foo");
+// the property should remain unchanged.
+var d2 = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(d2.get, getter, 'd2.get');
assert.sameValue(d2.enumerable, true, 'd2.enumerable');
assert.sameValue(d2.configurable, false, 'd2.configurable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-110.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-110.js
index 834b0959d..459f7b702 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-110.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-110.js
@@ -14,21 +14,21 @@ includes: [propertyHelper.js]
var obj = {};
function setFunc1() {
- return 10;
+ return 10;
}
Object.defineProperty(obj, "foo", {
- set: setFunc1,
- enumerable: true,
- configurable: true
+ set: setFunc1,
+ enumerable: true,
+ configurable: true
});
function setFunc2(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperty(obj, "foo", {
- set: setFunc2
+ set: setFunc2
});
verifyWritable(obj, "foo", "setVerifyHelpProp");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-111.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-111.js
index c61565170..dfdd3d42e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-111.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-111.js
@@ -9,30 +9,30 @@ description: >
(8.12.9 step 12)
---*/
- var obj = {};
+var obj = {};
- function getFunc() {
- return 10;
- }
+function getFunc() {
+ return 10;
+}
- function setFunc(value) {
- obj.setVerifyHelpProp = value;
- }
+function setFunc(value) {
+ obj.setVerifyHelpProp = value;
+}
- Object.defineProperty(obj, "foo", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "foo", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+});
- Object.defineProperty(obj, "foo", {
- set: undefined,
- get: getFunc
- });
+Object.defineProperty(obj, "foo", {
+ set: undefined,
+ get: getFunc
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "foo");
+var desc = Object.getOwnPropertyDescriptor(obj, "foo");
assert(obj.hasOwnProperty("foo"), 'obj.hasOwnProperty("foo") !== true');
-assert.sameValue(typeof (desc.set), "undefined", 'typeof (desc.set)');
+assert.sameValue(typeof(desc.set), "undefined", 'typeof (desc.set)');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-112.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-112.js
index 1b0201c10..85bde155a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-112.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-112.js
@@ -14,22 +14,22 @@ includes: [propertyHelper.js]
var obj = {};
function getFunc() {
- return 10;
+ return 10;
}
Object.defineProperty(obj, "foo", {
- set: undefined,
- get: getFunc,
- enumerable: true,
- configurable: true
+ set: undefined,
+ get: getFunc,
+ enumerable: true,
+ configurable: true
});
function setFunc(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperty(obj, "foo", {
- set: setFunc
+ set: setFunc
});
verifyEqualTo(obj, "foo", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-113.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-113.js
index a40b2b652..7ec7a57bf 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-113.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-113.js
@@ -14,18 +14,18 @@ includes: [propertyHelper.js]
var obj = {};
function getFunc() {
- return 10;
+ return 10;
}
Object.defineProperty(obj, "foo", {
- get: getFunc,
- enumerable: true,
- configurable: true
+ get: getFunc,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "foo", {
- get: getFunc,
- enumerable: false
+ get: getFunc,
+ enumerable: false
});
verifyEqualTo(obj, "foo", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-114.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-114.js
index c1b9f1774..c8f90bfcc 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-114.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-114.js
@@ -14,22 +14,22 @@ includes: [propertyHelper.js]
var obj = {};
function setFunc(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
function getFunc() {
- return 10;
+ return 10;
}
Object.defineProperty(obj, "foo", {
- get: getFunc,
- set: setFunc,
- configurable: true
+ get: getFunc,
+ set: setFunc,
+ configurable: true
});
Object.defineProperty(obj, "foo", {
- get: getFunc,
- configurable: false
+ get: getFunc,
+ configurable: false
});
verifyEqualTo(obj, "foo", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-115.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-115.js
index 5cb28ab76..702324b47 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-115.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-115.js
@@ -14,27 +14,29 @@ includes: [propertyHelper.js]
var obj = {};
function getFunc1() {
- return 10;
+ return 10;
}
+
function setFunc1() {}
Object.defineProperty(obj, "foo", {
- get: getFunc1,
- set: setFunc1,
- enumerable: true,
- configurable: true
+ get: getFunc1,
+ set: setFunc1,
+ enumerable: true,
+ configurable: true
});
function getFunc2() {
- return 20;
+ return 20;
}
+
function setFunc2(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperty(obj, "foo", {
- get: getFunc2,
- set: setFunc2,
- enumerable: false
+ get: getFunc2,
+ set: setFunc2,
+ enumerable: false
});
verifyEqualTo(obj, "foo", getFunc2());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-116.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-116.js
index 65a3d68c6..2e0c7b7fa 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-116.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-116.js
@@ -8,14 +8,16 @@ description: >
of 'O' is own data property (15.4.5.1 step 1)
---*/
- var arrObj = [0, 1];
- Object.defineProperty(arrObj, "1", {
- value: 1,
- configurable: false
- });
+var arrObj = [0, 1];
+Object.defineProperty(arrObj, "1", {
+ value: 1,
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(arrObj, "length", { value: 1 });
+ Object.defineProperty(arrObj, "length", {
+ value: 1
+ });
});
var desc = Object.getOwnPropertyDescriptor(arrObj, "length");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-117.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-117.js
index 2fd599c0b..6e8f17960 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-117.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-117.js
@@ -9,21 +9,21 @@ description: >
property (15.4.5.1 step 1)
---*/
- var arrObj = [0, 1, 2];
- var arrProtoLen;
+var arrObj = [0, 1, 2];
+var arrProtoLen;
assert.throws(TypeError, function() {
- arrProtoLen = Array.prototype.length;
- Array.prototype.length = 0;
+ arrProtoLen = Array.prototype.length;
+ Array.prototype.length = 0;
-
- Object.defineProperty(arrObj, "2", {
- configurable: false
- });
- Object.defineProperty(arrObj, "length", {
- value: 1
- });
+ Object.defineProperty(arrObj, "2", {
+ configurable: false
+ });
+
+ Object.defineProperty(arrObj, "length", {
+ value: 1
+ });
});
assert.sameValue(arrObj.length, 3, 'arrObj.length');
assert.sameValue(Array.prototype.length, 0, 'Array.prototype.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-119.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-119.js
index 6890b115a..f1bef7cb1 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-119.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-119.js
@@ -14,9 +14,9 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "length", {
- writable: true,
- enumerable: false,
- configurable: false
+ writable: true,
+ enumerable: false,
+ configurable: false
});
assert.sameValue(arrObj.length, 0);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-12.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-12.js
index b189fc5c6..ecc53f25a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-12.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-12.js
@@ -12,24 +12,31 @@ description: >
non-configurable data properties to accessor properties
---*/
- var o = {};
+var o = {};
- // create a data valued property; all other attributes default to false.
- var d1 = { value: 101, configurable: false };
- Object.defineProperty(o, "foo", d1);
+// create a data valued property; all other attributes default to false.
+var d1 = {
+ value: 101,
+ configurable: false
+};
+Object.defineProperty(o, "foo", d1);
- // changing "foo" to be an accessor should fail, since [[Configurable]]
- // on the original property will be false.
+// changing "foo" to be an accessor should fail, since [[Configurable]]
+// on the original property will be false.
- // dummy getter
- var getter = function () { return 1; }
+// dummy getter
+var getter = function() {
+ return 1;
+}
- var desc = { get: getter };
+var desc = {
+ get: getter
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
- // the property should remain a data valued property.
- var d2 = Object.getOwnPropertyDescriptor(o, "foo");
+// the property should remain a data valued property.
+var d2 = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(d2.value, 101, 'd2.value');
assert.sameValue(d2.writable, false, 'd2.writable');
assert.sameValue(d2.enumerable, false, 'd2.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-120.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-120.js
index 62f3f419f..61098e3ef 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-120.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-120.js
@@ -10,9 +10,9 @@ description: >
of the length property from false to true (15.4.5.1 step 3.a.i)
---*/
- var arrObj = [];
+var arrObj = [];
assert.throws(TypeError, function() {
- Object.defineProperty(arrObj, "length", {
- configurable: true
- });
+ Object.defineProperty(arrObj, "length", {
+ configurable: true
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-121.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-121.js
index 3122743c3..0679c6b54 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-121.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-121.js
@@ -10,9 +10,9 @@ description: >
the length property from false to true (15.4.5.1 step 3.a.i)
---*/
- var arrObj = [];
+var arrObj = [];
assert.throws(TypeError, function() {
- Object.defineProperty(arrObj, "length", {
- enumerable: true
- });
+ Object.defineProperty(arrObj, "length", {
+ enumerable: true
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-122.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-122.js
index d65953e87..5dd8d1d42 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-122.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-122.js
@@ -9,11 +9,11 @@ description: >
descriptor (15.4.5.1 step 3.a.i)
---*/
- var arrObj = [];
+var arrObj = [];
assert.throws(TypeError, function() {
- Object.defineProperty(arrObj, "length", {
- get: function () {
- return 2;
- }
- });
+ Object.defineProperty(arrObj, "length", {
+ get: function() {
+ return 2;
+ }
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-123.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-123.js
index f807ba252..ab1a64da7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-123.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-123.js
@@ -10,12 +10,12 @@ description: >
the length property from false to true (15.4.5.1 step 3.a.i)
---*/
- var arrObj = [];
+var arrObj = [];
assert.throws(TypeError, function() {
- Object.defineProperty(arrObj, "length", {
- writable: false
- });
- Object.defineProperty(arrObj, "length", {
- writable: true
- });
+ Object.defineProperty(arrObj, "length", {
+ writable: false
+ });
+ Object.defineProperty(arrObj, "length", {
+ writable: true
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-124.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-124.js
index b178a24d3..e5940a064 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-124.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-124.js
@@ -14,7 +14,7 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "length", {
- writable: false
+ writable: false
});
verifyEqualTo(arrObj, "length", 0);
@@ -23,4 +23,3 @@ verifyNotWritable(arrObj, "length");
verifyNotEnumerable(arrObj, "length");
verifyNotConfigurable(arrObj, "length");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-125.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-125.js
index 32c822833..2cd5d4ee9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-125.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-125.js
@@ -9,9 +9,9 @@ description: >
[[Value]] field of 'desc' is undefined (15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
assert.throws(RangeError, function() {
- Object.defineProperty(arrObj, "length", {
- value: undefined
- });
+ Object.defineProperty(arrObj, "length", {
+ value: undefined
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-126.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-126.js
index 17c5c77b0..4eca508ef 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-126.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-126.js
@@ -9,10 +9,10 @@ description: >
(15.4.5.1 step 3.c)
---*/
- var arrObj = [0, 1];
+var arrObj = [0, 1];
- Object.defineProperty(arrObj, "length", {
- value: null
- });
+Object.defineProperty(arrObj, "length", {
+ value: null
+});
assert.sameValue(arrObj.length, 0, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-127.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-127.js
index ca691383c..5c8680749 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-127.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-127.js
@@ -9,11 +9,11 @@ description: >
with value false (15.4.5.1 step 3.c)
---*/
- var arrObj = [0, 1];
+var arrObj = [0, 1];
- Object.defineProperty(arrObj, "length", {
- value: false
- });
+Object.defineProperty(arrObj, "length", {
+ value: false
+});
assert.sameValue(arrObj.length, 0, 'arrObj.length');
assert.sameValue(arrObj.hasOwnProperty("0"), false, 'arrObj.hasOwnProperty("0")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-128.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-128.js
index 29a46e6e9..3784c89bc 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-128.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-128.js
@@ -9,10 +9,10 @@ description: >
with value true (15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
- Object.defineProperty(arrObj, "length", {
- value: true
- });
+Object.defineProperty(arrObj, "length", {
+ value: true
+});
assert.sameValue(arrObj.length, 1, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-129.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-129.js
index 6bb132493..96c7b8a9e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-129.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-129.js
@@ -9,10 +9,10 @@ description: >
[[Value]] field of 'desc' is 0 (15.4.5.1 step 3.c)
---*/
- var arrObj = [0, 1];
+var arrObj = [0, 1];
- Object.defineProperty(arrObj, "length", {
- value: 0
- });
+Object.defineProperty(arrObj, "length", {
+ value: 0
+});
assert.sameValue(arrObj.length, 0, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-13.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-13.js
index 6666176e9..badd02ccc 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-13.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-13.js
@@ -12,22 +12,29 @@ description: >
non-configurable accessor properties to data properties
---*/
- var o = {};
+var o = {};
- // create an accessor property; all other attributes default to false.
-
- // dummy getter
- var getter = function () { return 1; }
- var d1 = { get: getter, configurable: false };
- Object.defineProperty(o, "foo", d1);
+// create an accessor property; all other attributes default to false.
- // changing "foo" to be a data property should fail, since [[Configurable]]
- // on the original property will be false.
- var desc = { value: 101 };
+// dummy getter
+var getter = function() {
+ return 1;
+}
+var d1 = {
+ get: getter,
+ configurable: false
+};
+Object.defineProperty(o, "foo", d1);
+
+// changing "foo" to be a data property should fail, since [[Configurable]]
+// on the original property will be false.
+var desc = {
+ value: 101
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
- // the property should remain an accessor property.
- var d2 = Object.getOwnPropertyDescriptor(o, "foo");
+// the property should remain an accessor property.
+var d2 = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(d2.get, getter, 'd2.get');
assert.sameValue(d2.configurable, false, 'd2.configurable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-130.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-130.js
index d4d9bf8b7..ce0d5bba0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-130.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-130.js
@@ -9,10 +9,10 @@ description: >
[[Value]] field of 'desc' is +0 (15.4.5.1 step 3.c)
---*/
- var arrObj = [0, 1];
+var arrObj = [0, 1];
- Object.defineProperty(arrObj, "length", {
- value: +0
- });
+Object.defineProperty(arrObj, "length", {
+ value: +0
+});
assert.sameValue(arrObj.length, 0, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-131.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-131.js
index 3a0b3de42..3458c6ca7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-131.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-131.js
@@ -9,10 +9,10 @@ description: >
[[Value]] field of 'desc' is -0 (15.4.5.1 step 3.c)
---*/
- var arrObj = [0, 1];
+var arrObj = [0, 1];
- Object.defineProperty(arrObj, "length", {
- value: -0
- });
+Object.defineProperty(arrObj, "length", {
+ value: -0
+});
assert.sameValue(arrObj.length, 0, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-132.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-132.js
index d431841b1..2fc557ce7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-132.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-132.js
@@ -9,10 +9,10 @@ description: >
[[Value]] field of 'desc' is a positive number (15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
- Object.defineProperty(arrObj, "length", {
- value: 12
- });
+Object.defineProperty(arrObj, "length", {
+ value: 12
+});
assert.sameValue(arrObj.length, 12, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-133.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-133.js
index 990f4c190..1f5373e66 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-133.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-133.js
@@ -9,9 +9,9 @@ description: >
[[Value]] field of 'desc' is a negative number (15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
assert.throws(RangeError, function() {
- Object.defineProperty(arrObj, "length", {
- value: -9
- });
+ Object.defineProperty(arrObj, "length", {
+ value: -9
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-134.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-134.js
index 6141877b5..598061012 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-134.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-134.js
@@ -9,9 +9,9 @@ description: >
[[Value]] field of 'desc' is +Infinity (15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
assert.throws(RangeError, function() {
- Object.defineProperty(arrObj, "length", {
- value: +Infinity
- });
+ Object.defineProperty(arrObj, "length", {
+ value: +Infinity
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-135.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-135.js
index fa36e838f..8e5876ef0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-135.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-135.js
@@ -9,9 +9,9 @@ description: >
[[Value]] field of 'desc' is -Infinity (15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
assert.throws(RangeError, function() {
- Object.defineProperty(arrObj, "length", {
- value: -Infinity
- });
+ Object.defineProperty(arrObj, "length", {
+ value: -Infinity
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-136.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-136.js
index a4b4c1b79..6804e776f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-136.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-136.js
@@ -9,9 +9,9 @@ description: >
[[Value]] field of 'desc' is NaN (15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
assert.throws(RangeError, function() {
- Object.defineProperty(arrObj, "length", {
- value: NaN
- });
+ Object.defineProperty(arrObj, "length", {
+ value: NaN
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-137.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-137.js
index 1e58b7dad..ddf5cde58 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-137.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-137.js
@@ -10,10 +10,10 @@ description: >
(15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
- Object.defineProperty(arrObj, "length", {
- value: "2"
- });
+Object.defineProperty(arrObj, "length", {
+ value: "2"
+});
assert.sameValue(arrObj.length, 2, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-138.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-138.js
index b1f9b8fc6..0ec1ead0d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-138.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-138.js
@@ -10,9 +10,9 @@ description: >
(15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
assert.throws(RangeError, function() {
- Object.defineProperty(arrObj, "length", {
- value: "-42"
- });
+ Object.defineProperty(arrObj, "length", {
+ value: "-42"
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-139.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-139.js
index 13a4b9380..30fdd1657 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-139.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-139.js
@@ -10,9 +10,9 @@ description: >
(15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
assert.throws(RangeError, function() {
- Object.defineProperty(arrObj, "length", {
- value: "200.59"
- });
+ Object.defineProperty(arrObj, "length", {
+ value: "200.59"
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-14.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-14.js
index 7a4cbf272..e38bf445e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-14.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-14.js
@@ -12,23 +12,27 @@ description: >
property for configurable properties
---*/
- var o = {};
+var o = {};
- // create a data property. In this case,
- // [[Enumerable]] and [[Configurable]] are true
- o["foo"] = 101;
+// create a data property. In this case,
+// [[Enumerable]] and [[Configurable]] are true
+o["foo"] = 101;
- // changing "foo" to be an accessor should succeed, since [[Configurable]]
- // on the original property will be true. Existing values of [[Configurable]]
- // and [[Enumerable]] need to be preserved and the rest need to be set to
- // their default values
+// changing "foo" to be an accessor should succeed, since [[Configurable]]
+// on the original property will be true. Existing values of [[Configurable]]
+// and [[Enumerable]] need to be preserved and the rest need to be set to
+// their default values
- // dummy getter
- var getter = function () { return 1; }
- var d1 = { get: getter };
- Object.defineProperty(o, "foo", d1);
+// dummy getter
+var getter = function() {
+ return 1;
+}
+var d1 = {
+ get: getter
+};
+Object.defineProperty(o, "foo", d1);
- var d2 = Object.getOwnPropertyDescriptor(o, "foo");
+var d2 = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(d2.get, getter, 'd2.get');
assert.sameValue(d2.enumerable, true, 'd2.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-140.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-140.js
index 65d068b74..c3c3a831a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-140.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-140.js
@@ -10,9 +10,9 @@ description: >
(15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
assert.throws(RangeError, function() {
- Object.defineProperty(arrObj, "length", {
- value: "+Infinity"
- });
+ Object.defineProperty(arrObj, "length", {
+ value: "+Infinity"
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-141.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-141.js
index a39d1564a..fed04a925 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-141.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-141.js
@@ -10,9 +10,9 @@ description: >
(15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
assert.throws(RangeError, function() {
- Object.defineProperty(arrObj, "length", {
- value: "-Infinity"
- });
+ Object.defineProperty(arrObj, "length", {
+ value: "-Infinity"
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-142.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-142.js
index 8880cf8cf..8924cd6c7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-142.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-142.js
@@ -9,10 +9,10 @@ description: >
containing an exponential number (15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
- Object.defineProperty(arrObj, "length", {
- value: "2E3"
- });
+Object.defineProperty(arrObj, "length", {
+ value: "2E3"
+});
assert.sameValue(arrObj.length, 2E3, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-143.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-143.js
index 55b9b1ffd..d304794f2 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-143.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-143.js
@@ -9,10 +9,10 @@ description: >
containing a hex number (15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
- Object.defineProperty(arrObj, "length", {
- value: "0x00B"
- });
+Object.defineProperty(arrObj, "length", {
+ value: "0x00B"
+});
assert.sameValue(arrObj.length, 0x00B, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-144.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-144.js
index be700ec76..9259a153e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-144.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-144.js
@@ -9,10 +9,10 @@ description: >
containing a number with leading zeros (15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
- Object.defineProperty(arrObj, "length", {
- value: "0002.0"
- });
+Object.defineProperty(arrObj, "length", {
+ value: "0002.0"
+});
assert.sameValue(arrObj.length, 2, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-145.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-145.js
index 8909f1994..5f14b513c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-145.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-145.js
@@ -10,9 +10,9 @@ description: >
number (15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
assert.throws(RangeError, function() {
- Object.defineProperty(arrObj, "length", {
- value: "two"
- });
+ Object.defineProperty(arrObj, "length", {
+ value: "two"
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-146.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-146.js
index 565369fb7..2cc6ec6af 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-146.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-146.js
@@ -9,14 +9,14 @@ description: >
which has an own toString method (15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
- Object.defineProperty(arrObj, "length", {
- value: {
- toString: function () {
- return '2';
- }
- }
- });
+Object.defineProperty(arrObj, "length", {
+ value: {
+ toString: function() {
+ return '2';
+ }
+ }
+});
assert.sameValue(arrObj.length, 2, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-147.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-147.js
index 4274ebbb3..7549f17bd 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-147.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-147.js
@@ -9,14 +9,14 @@ description: >
which has an own valueOf method (15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
- Object.defineProperty(arrObj, "length", {
- value: {
- valueOf: function () {
- return 2;
- }
- }
- });
+Object.defineProperty(arrObj, "length", {
+ value: {
+ valueOf: function() {
+ return 2;
+ }
+ }
+});
assert.sameValue(arrObj.length, 2, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-148.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-148.js
index 19cb735ae..aac1a6d50 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-148.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-148.js
@@ -10,23 +10,23 @@ description: >
toString method that returns a string (15.4.5.1 step 3.c)
---*/
- var arrObj = [];
- var toStringAccessed = false;
- var valueOfAccessed = false;
+var arrObj = [];
+var toStringAccessed = false;
+var valueOfAccessed = false;
- Object.defineProperty(arrObj, "length", {
- value: {
- toString: function () {
- toStringAccessed = true;
- return '2';
- },
+Object.defineProperty(arrObj, "length", {
+ value: {
+ toString: function() {
+ toStringAccessed = true;
+ return '2';
+ },
- valueOf: function () {
- valueOfAccessed = true;
- return {};
- }
- }
- });
+ valueOf: function() {
+ valueOfAccessed = true;
+ return {};
+ }
+ }
+});
assert.sameValue(arrObj.length, 2, 'arrObj.length');
assert(toStringAccessed, 'toStringAccessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-149.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-149.js
index dbcbc3fa3..d00974ad7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-149.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-149.js
@@ -9,23 +9,23 @@ description: >
which has an own toString and valueOf method (15.4.5.1 step 3.c)
---*/
- var arrObj = [];
- var toStringAccessed = false;
- var valueOfAccessed = false;
+var arrObj = [];
+var toStringAccessed = false;
+var valueOfAccessed = false;
- Object.defineProperty(arrObj, "length", {
- value: {
- toString: function () {
- toStringAccessed = true;
- return '2';
- },
+Object.defineProperty(arrObj, "length", {
+ value: {
+ toString: function() {
+ toStringAccessed = true;
+ return '2';
+ },
- valueOf: function () {
- valueOfAccessed = true;
- return 3;
- }
- }
- });
+ valueOf: function() {
+ valueOfAccessed = true;
+ return 3;
+ }
+ }
+});
assert.sameValue(arrObj.length, 3, 'arrObj.length');
assert.sameValue(toStringAccessed, false, 'toStringAccessed');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-15.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-15.js
index 838309ba6..ce8de772a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-15.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-15.js
@@ -12,21 +12,28 @@ description: >
property for configurable properties
---*/
- var o = {};
+var o = {};
- // define an accessor property
- // dummy getter
- var getter = function () { return 1; }
- var d1 = { get: getter, configurable: true };
- Object.defineProperty(o, "foo", d1);
+// define an accessor property
+// dummy getter
+var getter = function() {
+ return 1;
+}
+var d1 = {
+ get: getter,
+ configurable: true
+};
+Object.defineProperty(o, "foo", d1);
- // changing "foo" to be a data valued property should succeed, since
- // [[Configurable]] on the original property will be true. Existing
- // values of [[Configurable]] and [[Enumerable]] need to be preserved
- // and the rest need to be set to their default values.
- var desc = { value: 101 };
- Object.defineProperty(o, "foo", desc);
- var d2 = Object.getOwnPropertyDescriptor(o, "foo");
+// changing "foo" to be a data valued property should succeed, since
+// [[Configurable]] on the original property will be true. Existing
+// values of [[Configurable]] and [[Enumerable]] need to be preserved
+// and the rest need to be set to their default values.
+var desc = {
+ value: 101
+};
+Object.defineProperty(o, "foo", desc);
+var d2 = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(d2.value, 101, 'd2.value');
assert.sameValue(d2.writable, false, 'd2.writable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-150.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-150.js
index caafe2291..4aef28ab8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-150.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-150.js
@@ -10,23 +10,23 @@ description: >
return primitive value (15.4.5.1 step 3.c)
---*/
- var arrObj = [];
- var toStringAccessed = false;
- var valueOfAccessed = false;
+var arrObj = [];
+var toStringAccessed = false;
+var valueOfAccessed = false;
assert.throws(TypeError, function() {
- Object.defineProperty(arrObj, "length", {
- value: {
- toString: function () {
- toStringAccessed = true;
- return {};
- },
+ Object.defineProperty(arrObj, "length", {
+ value: {
+ toString: function() {
+ toStringAccessed = true;
+ return {};
+ },
- valueOf: function () {
- valueOfAccessed = true;
- return {};
- }
- }
- });
+ valueOf: function() {
+ valueOfAccessed = true;
+ return {};
+ }
+ }
+ });
});
assert(toStringAccessed, 'toStringAccessed !== true');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-151.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-151.js
index 4cce14207..ddddccf16 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-151.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-151.js
@@ -10,29 +10,29 @@ description: >
(15.4.5.1 step 3.c), test that the inherited valueOf method is used
---*/
- var arrObj = [];
- var toStringAccessed = false;
- var valueOfAccessed = false;
+var arrObj = [];
+var toStringAccessed = false;
+var valueOfAccessed = false;
- var proto = {
- valueOf: function () {
- valueOfAccessed = true;
- return 2;
- }
- };
+var proto = {
+ valueOf: function() {
+ valueOfAccessed = true;
+ return 2;
+ }
+};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- child.toString = function () {
- toStringAccessed = true;
- return 3;
- };
+var child = new ConstructFun();
+child.toString = function() {
+ toStringAccessed = true;
+ return 3;
+};
- Object.defineProperty(arrObj, "length", {
- value: child
- });
+Object.defineProperty(arrObj, "length", {
+ value: child
+});
assert.sameValue(arrObj.length, 2, 'arrObj.length');
assert.sameValue(toStringAccessed, false, 'toStringAccessed');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-152.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-152.js
index e3975ad9e..d9812947d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-152.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-152.js
@@ -10,9 +10,9 @@ description: >
3.c)
---*/
- var arrObj = [];
+var arrObj = [];
assert.throws(RangeError, function() {
- Object.defineProperty(arrObj, "length", {
- value: 123.5
- });
+ Object.defineProperty(arrObj, "length", {
+ value: 123.5
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-153.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-153.js
index dc60afadf..dbaefd338 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-153.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-153.js
@@ -10,9 +10,9 @@ description: >
3.c)
---*/
- var arrObj = [];
+var arrObj = [];
assert.throws(RangeError, function() {
- Object.defineProperty(arrObj, "length", {
- value: -4294967294.5
- });
+ Object.defineProperty(arrObj, "length", {
+ value: -4294967294.5
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-154.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-154.js
index c499969dd..b940cb001 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-154.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-154.js
@@ -9,10 +9,10 @@ description: >
value 2^32 - 2 (15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
- Object.defineProperty(arrObj, "length", {
- value: 4294967294
- });
+Object.defineProperty(arrObj, "length", {
+ value: 4294967294
+});
assert.sameValue(arrObj.length, 4294967294, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-155.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-155.js
index b9bfd0689..1801b334f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-155.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-155.js
@@ -9,10 +9,10 @@ description: >
value 2^32 - 1 (15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
- Object.defineProperty(arrObj, "length", {
- value: 4294967295
- });
+Object.defineProperty(arrObj, "length", {
+ value: 4294967295
+});
assert.sameValue(arrObj.length, 4294967295, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-156.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-156.js
index 010a2237c..09db6bd97 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-156.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-156.js
@@ -9,9 +9,9 @@ description: >
field of 'desc' is boundary value 2^32 (15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
assert.throws(RangeError, function() {
- Object.defineProperty(arrObj, "length", {
- value: 4294967296
- });
+ Object.defineProperty(arrObj, "length", {
+ value: 4294967296
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-157.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-157.js
index 24b4e08ee..ecf1b7df3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-157.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-157.js
@@ -9,9 +9,9 @@ description: >
field of 'desc' is boundary value 2^32 + 1 (15.4.5.1 step 3.c)
---*/
- var arrObj = [];
+var arrObj = [];
assert.throws(RangeError, function() {
- Object.defineProperty(arrObj, "length", {
- value: 4294967297
- });
+ Object.defineProperty(arrObj, "length", {
+ value: 4294967297
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-159.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-159.js
index 06246ef3e..7e143736b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-159.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-159.js
@@ -9,11 +9,11 @@ description: >
greater than the existing value of length (15.4.5.1 step 3.f)
---*/
- var arrObj = [0, , 2];
+var arrObj = [0, , 2];
- Object.defineProperty(arrObj, "length", {
- value: 5
- });
+Object.defineProperty(arrObj, "length", {
+ value: 5
+});
assert.sameValue(arrObj.length, 5, 'arrObj.length');
assert.sameValue(arrObj[0], 0, 'arrObj[0]');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-16.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-16.js
index 4b7db063c..78b883a3f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-16.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-16.js
@@ -12,20 +12,25 @@ description: >
on non-configurable data properties
---*/
- var o = {};
+var o = {};
- // create a data valued property; all other attributes default to false.
- var d1 = { value: 101 };
- Object.defineProperty(o, "foo", d1);
+// create a data valued property; all other attributes default to false.
+var d1 = {
+ value: 101
+};
+Object.defineProperty(o, "foo", d1);
- // now, relaxing [[Writable]] on "foo" should fail, since both
- // [[Configurable]] and [[Writable]] on the original property will be false.
- var desc = { value: 101, writable: true };
+// now, relaxing [[Writable]] on "foo" should fail, since both
+// [[Configurable]] and [[Writable]] on the original property will be false.
+var desc = {
+ value: 101,
+ writable: true
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
- // the property should remain unchanged.
- var d2 = Object.getOwnPropertyDescriptor(o, "foo");
+// the property should remain unchanged.
+var d2 = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(d2.value, 101, 'd2.value');
assert.sameValue(d2.writable, false, 'd2.writable');
assert.sameValue(d2.enumerable, false, 'd2.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-160.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-160.js
index 889d911df..db884901e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-160.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-160.js
@@ -9,11 +9,11 @@ description: >
equal to the existing value of length (15.4.5.1 step 3.f)
---*/
- var arrObj = [0, , 2];
+var arrObj = [0, , 2];
- Object.defineProperty(arrObj, "length", {
- value: 3
- });
+Object.defineProperty(arrObj, "length", {
+ value: 3
+});
assert.sameValue(arrObj.length, 3, 'arrObj.length');
assert.sameValue(arrObj[0], 0, 'arrObj[0]');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-161.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-161.js
index 881a01347..5c0c453d6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-161.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-161.js
@@ -10,11 +10,11 @@ description: >
beyond the new length are deleted(15.4.5.1 step 3.f)
---*/
- var arrObj = [0, 1];
-
- Object.defineProperty(arrObj, "length", {
- value: 1
- });
+var arrObj = [0, 1];
+
+Object.defineProperty(arrObj, "length", {
+ value: 1
+});
assert.sameValue(arrObj.length, 1, 'arrObj.length');
assert.sameValue(arrObj.hasOwnProperty("1"), false, 'arrObj.hasOwnProperty("1")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-162.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-162.js
index dd21806a7..d1103d1bb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-162.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-162.js
@@ -10,13 +10,13 @@ description: >
length property is not writable (15.4.5.1 step 3.f.i)
---*/
- var arrObj = [];
+var arrObj = [];
- Object.defineProperty(arrObj, "length", {
- writable: false
- });
+Object.defineProperty(arrObj, "length", {
+ writable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(arrObj, "length", {
- value: 12
- });
+ Object.defineProperty(arrObj, "length", {
+ value: 12
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-163.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-163.js
index 99ad98928..77c932472 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-163.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-163.js
@@ -10,12 +10,12 @@ description: >
property is not writable (15.4.5.1 step 3.f.i)
---*/
- var arrObj = [];
+var arrObj = [];
- Object.defineProperty(arrObj, "length", {
- writable: false
- });
+Object.defineProperty(arrObj, "length", {
+ writable: false
+});
- Object.defineProperty(arrObj, "length", {
- value: 0
- });
+Object.defineProperty(arrObj, "length", {
+ value: 0
+});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-164.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-164.js
index c8a0513c7..73e614da2 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-164.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-164.js
@@ -11,13 +11,13 @@ description: >
step 3.g)
---*/
- var arrObj = [0, 1];
+var arrObj = [0, 1];
- Object.defineProperty(arrObj, "length", {
- writable: false
- });
+Object.defineProperty(arrObj, "length", {
+ writable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(arrObj, "length", {
- value: 0
- });
+ Object.defineProperty(arrObj, "length", {
+ value: 0
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-165.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-165.js
index 4a72cda65..ffa15660d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-165.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-165.js
@@ -12,15 +12,15 @@ description: >
(15.4.5.1 step 3.h)
---*/
- var arrObj = [0, 1];
+var arrObj = [0, 1];
- Object.defineProperty(arrObj, "length", {
- value: 1
- });
+Object.defineProperty(arrObj, "length", {
+ value: 1
+});
- var indexDeleted = !arrObj.hasOwnProperty("1");
+var indexDeleted = !arrObj.hasOwnProperty("1");
- arrObj.length = 10;
+arrObj.length = 10;
assert(indexDeleted, 'indexDeleted !== true');
assert.sameValue(arrObj.length, 10, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-166.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-166.js
index 85c2e654d..c080747ef 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-166.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-166.js
@@ -12,16 +12,16 @@ description: >
(15.4.5.1 step 3.h)
---*/
- var arrObj = [0, 1];
+var arrObj = [0, 1];
- Object.defineProperty(arrObj, "length", {
- value: 1,
- writable: true
- });
+Object.defineProperty(arrObj, "length", {
+ value: 1,
+ writable: true
+});
- var indexDeleted = !arrObj.hasOwnProperty("1");
+var indexDeleted = !arrObj.hasOwnProperty("1");
- arrObj.length = 10;
+arrObj.length = 10;
assert(indexDeleted, 'indexDeleted !== true');
assert.sameValue(arrObj.length, 10, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-167.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-167.js
index 0a481d5c7..a2de291b8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-167.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-167.js
@@ -17,8 +17,8 @@ includes: [propertyHelper.js]
var arrObj = [0, 1];
Object.defineProperty(arrObj, "length", {
- value: 1,
- writable: false
+ value: 1,
+ writable: false
});
assert(!arrObj.hasOwnProperty("1"))
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-168.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-168.js
index 1cb70eb37..d03d1325a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-168.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-168.js
@@ -14,15 +14,15 @@ description: >
thrown (15.4.5.1 step 3.i.iii)
---*/
- var arrObj = [0, 1, 2];
+var arrObj = [0, 1, 2];
assert.throws(TypeError, function() {
- Object.defineProperty(arrObj, "1", {
- configurable: false
- });
+ Object.defineProperty(arrObj, "1", {
+ configurable: false
+ });
- Object.defineProperty(arrObj, "length", {
- value: 0,
- writable: false
- });
+ Object.defineProperty(arrObj, "length", {
+ value: 0,
+ writable: false
+ });
});
assert.sameValue(arrObj.length, 2, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-169.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-169.js
index 15aff6190..ec14c9514 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-169.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-169.js
@@ -12,19 +12,19 @@ description: >
TypeError is thrown (15.4.5.1 step 3.l.i)
---*/
- var arrObj = [0, 1, 2];
+var arrObj = [0, 1, 2];
- Object.defineProperty(arrObj, "1", {
- configurable: false
- });
+Object.defineProperty(arrObj, "1", {
+ configurable: false
+});
- Object.defineProperty(arrObj, "2", {
- configurable: true
- });
+Object.defineProperty(arrObj, "2", {
+ configurable: true
+});
assert.throws(TypeError, function() {
- Object.defineProperty(arrObj, "length", {
- value: 1
- });
+ Object.defineProperty(arrObj, "length", {
+ value: 1
+ });
});
assert.sameValue(arrObj.length, 2, 'arrObj.length');
assert.sameValue(arrObj.hasOwnProperty("2"), false, 'arrObj.hasOwnProperty("2")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-17.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-17.js
index 8f4ad3a85..9b93e9efb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-17.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-17.js
@@ -12,20 +12,24 @@ description: >
non-writable non-configurable data properties
---*/
- var o = {};
+var o = {};
- // create a data valued property; all other attributes default to false.
- var d1 = { value: 101 };
- Object.defineProperty(o, "foo", d1);
+// create a data valued property; all other attributes default to false.
+var d1 = {
+ value: 101
+};
+Object.defineProperty(o, "foo", d1);
- // now, trying to change the value of "foo" should fail, since both
- // [[Configurable]] and [[Writable]] on the original property will be false.
- var desc = { value: 102 };
+// now, trying to change the value of "foo" should fail, since both
+// [[Configurable]] and [[Writable]] on the original property will be false.
+var desc = {
+ value: 102
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
- // the property should remain unchanged.
- var d2 = Object.getOwnPropertyDescriptor(o, "foo");
+// the property should remain unchanged.
+var d2 = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(d2.value, 101, 'd2.value');
assert.sameValue(d2.writable, false, 'd2.writable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-170.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-170.js
index 4650c357e..3f9622bbb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-170.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-170.js
@@ -13,15 +13,15 @@ description: >
thrown (15.4.5.1 step 3.l.ii)
---*/
- var arrObj = [0, 1];
+var arrObj = [0, 1];
assert.throws(TypeError, function() {
- Object.defineProperty(arrObj, "1", {
- configurable: false
- });
+ Object.defineProperty(arrObj, "1", {
+ configurable: false
+ });
- Object.defineProperty(arrObj, "length", {
- value: 1
- });
+ Object.defineProperty(arrObj, "length", {
+ value: 1
+ });
});
assert.sameValue(arrObj.length, 2, 'arrObj.length');
assert(arrObj.hasOwnProperty("1"), 'arrObj.hasOwnProperty("1") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-171.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-171.js
index 29cef1594..f3283840c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-171.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-171.js
@@ -11,12 +11,12 @@ description: >
deleting index named properties (15.4.5.1 step 3.l.ii)
---*/
- var arrObj = [0, 1];
+var arrObj = [0, 1];
- Array.prototype[1] = 2; // Not setting the [[Configurable]] attribute of property "1" to false here, since Array.prototype is a global object, and non-configurbale property can't revert to configurable
- Object.defineProperty(arrObj, "length", {
- value: 1
- });
+Array.prototype[1] = 2; // Not setting the [[Configurable]] attribute of property "1" to false here, since Array.prototype is a global object, and non-configurbale property can't revert to configurable
+Object.defineProperty(arrObj, "length", {
+ value: 1
+});
assert.sameValue(arrObj.length, 1, 'arrObj.length');
assert.sameValue(arrObj.hasOwnProperty("1"), false, 'arrObj.hasOwnProperty("1")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-172.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-172.js
index 11e3ff7ff..b6f14808a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-172.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-172.js
@@ -12,17 +12,17 @@ description: >
(15.4.5.1 step 3.l.ii)
---*/
- var arrObj = [0, 1];
+var arrObj = [0, 1];
assert.throws(TypeError, function() {
- Object.defineProperty(arrObj, "1", {
- configurable: false
- });
-
- Array.prototype[1] = 2;
- Object.defineProperty(arrObj, "length", {
- value: 1
- });
+ Object.defineProperty(arrObj, "1", {
+ configurable: false
+ });
+
+ Array.prototype[1] = 2;
+ Object.defineProperty(arrObj, "length", {
+ value: 1
+ });
});
assert.sameValue(arrObj.length, 2, 'arrObj.length');
assert(arrObj.hasOwnProperty("1"), 'arrObj.hasOwnProperty("1") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-173.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-173.js
index 27a85d434..a0179d45a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-173.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-173.js
@@ -12,23 +12,23 @@ description: >
properties (15.4.5.1 step 3.l.ii)
---*/
- var arrObj = [0, 1];
+var arrObj = [0, 1];
assert.throws(TypeError, function() {
- Object.defineProperty(arrObj, "1", {
- configurable: false
- });
+ Object.defineProperty(arrObj, "1", {
+ configurable: false
+ });
- Object.defineProperty(Array.prototype, "1", {
- get: function () {
- return 2;
- },
- configurable: true
- });
+ Object.defineProperty(Array.prototype, "1", {
+ get: function() {
+ return 2;
+ },
+ configurable: true
+ });
- Object.defineProperty(arrObj, "length", {
- value: 1
- });
+ Object.defineProperty(arrObj, "length", {
+ value: 1
+ });
});
assert.sameValue(arrObj.length, 2, 'arrObj.length');
assert(arrObj.hasOwnProperty("1"), 'arrObj.hasOwnProperty("1") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-174.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-174.js
index 422632e80..ee5deb2f9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-174.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-174.js
@@ -11,18 +11,18 @@ description: >
deleting index named properties (15.4.5.1 step 3.l.ii)
---*/
- var arrObj = [0, 1];
+var arrObj = [0, 1];
assert.throws(TypeError, function() {
- Object.defineProperty(arrObj, "1", {
- get: function () {
- return 1;
- },
- configurable: false
- });
+ Object.defineProperty(arrObj, "1", {
+ get: function() {
+ return 1;
+ },
+ configurable: false
+ });
- Object.defineProperty(arrObj, "length", {
- value: 1
- });
+ Object.defineProperty(arrObj, "length", {
+ value: 1
+ });
});
assert.sameValue(arrObj.length, 2, 'arrObj.length');
assert(arrObj.hasOwnProperty("1"), 'arrObj.hasOwnProperty("1") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-175.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-175.js
index 4e7d05ceb..23357a32c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-175.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-175.js
@@ -11,18 +11,18 @@ description: >
stop deleting index named properties (15.4.5.1 step 3.l.ii)
---*/
- var arrObj = [0, 1];
+var arrObj = [0, 1];
- Object.defineProperty(Array.prototype, "1", {
- get: function () {
- return 1;
- },
- configurable: true // Not setting the [[Configurable]] attribute of property "1" to false here, since Array.prototype is a global object, and non-configurbale property can't revert to configurable
- });
+Object.defineProperty(Array.prototype, "1", {
+ get: function() {
+ return 1;
+ },
+ configurable: true // Not setting the [[Configurable]] attribute of property "1" to false here, since Array.prototype is a global object, and non-configurbale property can't revert to configurable
+});
- Object.defineProperty(arrObj, "length", {
- value: 1
- });
+Object.defineProperty(arrObj, "length", {
+ value: 1
+});
assert.sameValue(arrObj.length, 1, 'arrObj.length');
assert.sameValue(arrObj.hasOwnProperty("1"), false, 'arrObj.hasOwnProperty("1")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-176.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-176.js
index 4d1d9ac03..475d082d9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-176.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-176.js
@@ -12,20 +12,20 @@ description: >
properties (15.4.5.1 step 3.l.ii)
---*/
- var arrObj = [0, 1];
+var arrObj = [0, 1];
assert.throws(TypeError, function() {
- Object.defineProperty(arrObj, "1", {
- get: function () {
- return 2;
- },
- configurable: false
- });
-
- Array.prototype[1] = 2;
- Object.defineProperty(arrObj, "length", {
- value: 1
- });
+ Object.defineProperty(arrObj, "1", {
+ get: function() {
+ return 2;
+ },
+ configurable: false
+ });
+
+ Array.prototype[1] = 2;
+ Object.defineProperty(arrObj, "length", {
+ value: 1
+ });
});
assert.sameValue(arrObj.length, 2, 'arrObj.length');
assert(arrObj.hasOwnProperty("1"), 'arrObj.hasOwnProperty("1") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-177.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-177.js
index f9c666b27..c856a3d7b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-177.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-177.js
@@ -12,26 +12,26 @@ description: >
properties (15.4.5.1 step 3.l.ii)
---*/
- var arrObj = [0, 1];
+var arrObj = [0, 1];
assert.throws(TypeError, function() {
- Object.defineProperty(arrObj, "1", {
- get: function () {
- return 1;
- },
- configurable: false
- });
-
- Object.defineProperty(Array.prototype, "1", {
- get: function () {
- return 2;
- },
- configurable: true
- });
+ Object.defineProperty(arrObj, "1", {
+ get: function() {
+ return 1;
+ },
+ configurable: false
+ });
- Object.defineProperty(arrObj, "length", {
- value: 1
- });
+ Object.defineProperty(Array.prototype, "1", {
+ get: function() {
+ return 2;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arrObj, "length", {
+ value: 1
+ });
});
assert.sameValue(arrObj.length, 2, 'arrObj.length');
assert(arrObj.hasOwnProperty("1"), 'arrObj.hasOwnProperty("1") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-178.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-178.js
index 10a208b9b..4df1e5802 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-178.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-178.js
@@ -10,10 +10,10 @@ description: >
property of 'O' is deleted (15.4.5.1 step 3.l.ii)
---*/
- var arrObj = [0, 1];
+var arrObj = [0, 1];
- Object.defineProperty(arrObj, "length", {
- value: 1
- });
+Object.defineProperty(arrObj, "length", {
+ value: 1
+});
assert.sameValue(arrObj.hasOwnProperty("1"), false, 'arrObj.hasOwnProperty("1")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-179-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-179-1.js
index d59c20d30..5026a63d9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-179-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-179-1.js
@@ -10,14 +10,14 @@ description: >
is same as [[Value]] (15.4.5.1 step 3.l.iii.1)
---*/
- var arrObj = [0, 1, 2, 3];
+var arrObj = [0, 1, 2, 3];
- Object.defineProperty(arrObj, "1", {
- configurable: false
- });
+Object.defineProperty(arrObj, "1", {
+ configurable: false
+});
- Object.defineProperty(arrObj, "length", {
- value: 3
- });
+Object.defineProperty(arrObj, "length", {
+ value: 3
+});
assert.sameValue(arrObj.length, 3, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-18.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-18.js
index 9701c6e9d..36e9117d5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-18.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-18.js
@@ -12,23 +12,29 @@ description: >
non-configurable accessor properties(8.12.9 step 11.a.i)
---*/
- var o = {};
+var o = {};
- // create an accessor property; all other attributes default to false.
- // dummy getter
- var getter = function () { return 1;}
- var d1 = { get: getter };
- Object.defineProperty(o, "foo", d1);
+// create an accessor property; all other attributes default to false.
+// dummy getter
+var getter = function() {
+ return 1;
+}
+var d1 = {
+ get: getter
+};
+Object.defineProperty(o, "foo", d1);
- // now, trying to change the setter should fail, since [[Configurable]]
- // on the original property will be false.
- var setter = function (x) {};
- var desc = { set: setter };
+// now, trying to change the setter should fail, since [[Configurable]]
+// on the original property will be false.
+var setter = function(x) {};
+var desc = {
+ set: setter
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
- // the property should remain unchanged.
- var d2 = Object.getOwnPropertyDescriptor(o, "foo");
+// the property should remain unchanged.
+var d2 = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(d2.get, getter, 'd2.get');
assert.sameValue(d2.configurable, false, 'd2.configurable');
assert.sameValue(d2.enumerable, false, 'd2.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-181.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-181.js
index 68b0f0daa..11dcd7d49 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-181.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-181.js
@@ -17,8 +17,8 @@ includes: [propertyHelper.js]
var arrObj = [0, 1];
Object.defineProperty(arrObj, "length", {
- value: 0,
- writable: false
+ value: 0,
+ writable: false
});
verifyNotWritable(arrObj, "length");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-182.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-182.js
index 9f3e38ad0..340149c4e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-182.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-182.js
@@ -9,10 +9,10 @@ description: >
numbers (15.4.5.1 step 4.a)
---*/
- var arrObj = [];
+var arrObj = [];
- Object.defineProperty(arrObj, "0", {
- value: 12
- });
+Object.defineProperty(arrObj, "0", {
+ value: 12
+});
assert.sameValue(arrObj[0], 12, 'arrObj[0]');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-183.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-183.js
index 3fa0485eb..7a668ddac 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-183.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-183.js
@@ -9,11 +9,11 @@ description: >
4.a)
---*/
- var arrObj = [];
+var arrObj = [];
- Object.defineProperty(arrObj, 4294967294, {
- value: 100
- });
+Object.defineProperty(arrObj, 4294967294, {
+ value: 100
+});
assert(arrObj.hasOwnProperty("4294967294"), 'arrObj.hasOwnProperty("4294967294") !== true');
assert.sameValue(arrObj.length, 4294967295, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-184.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-184.js
index b3678ae48..3e1ca6947 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-184.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-184.js
@@ -9,11 +9,11 @@ description: >
4.a)
---*/
- var arrObj = [];
+var arrObj = [];
- Object.defineProperty(arrObj, 4294967295, {
- value: 100
- });
+Object.defineProperty(arrObj, 4294967295, {
+ value: 100
+});
assert(arrObj.hasOwnProperty("4294967295"), 'arrObj.hasOwnProperty("4294967295") !== true');
assert.sameValue(arrObj.length, 0, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-185.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-185.js
index c99ce7106..69843271a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-185.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-185.js
@@ -8,11 +8,11 @@ description: >
named property, 'name' is boundary value 2^32 (15.4.5.1 step 4.a)
---*/
- var arrObj = [];
+var arrObj = [];
- Object.defineProperty(arrObj, 4294967296, {
- value: 100
- });
+Object.defineProperty(arrObj, 4294967296, {
+ value: 100
+});
assert(arrObj.hasOwnProperty("4294967296"), 'arrObj.hasOwnProperty("4294967296") !== true');
assert.sameValue(arrObj.length, 0, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-186.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-186.js
index 0af8105b0..560214a26 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-186.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-186.js
@@ -9,11 +9,11 @@ description: >
4.a)
---*/
- var arrObj = [];
+var arrObj = [];
- Object.defineProperty(arrObj, 4294967297, {
- value: 100
- });
+Object.defineProperty(arrObj, 4294967297, {
+ value: 100
+});
assert(arrObj.hasOwnProperty("4294967297"), 'arrObj.hasOwnProperty("4294967297") !== true');
assert.sameValue(arrObj.length, 0, 'arrObj.length');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-187.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-187.js
index e6050fceb..dd975e31a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-187.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-187.js
@@ -11,13 +11,12 @@ description: >
4.b)
---*/
- var arrObj = [1, 2, 3];
+var arrObj = [1, 2, 3];
- Object.defineProperty(arrObj, "length", {
- writable: false
- });
-
- Object.defineProperty(arrObj, 1, {
- value: "abc"
- });
+Object.defineProperty(arrObj, "length", {
+ writable: false
+});
+Object.defineProperty(arrObj, 1, {
+ value: "abc"
+});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-188.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-188.js
index 53b68caf9..889e6d237 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-188.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-188.js
@@ -10,13 +10,13 @@ description: >
'name' equals to value of the length property (15.4.5.1 step 4.b)
---*/
- var arrObj = [1, 2, 3];
+var arrObj = [1, 2, 3];
- Object.defineProperty(arrObj, "length", {
- writable: false
- });
+Object.defineProperty(arrObj, "length", {
+ writable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(arrObj, 3, {
- value: "abc"
- });
+ Object.defineProperty(arrObj, 3, {
+ value: "abc"
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-189.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-189.js
index f67443f47..1c61ecf6f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-189.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-189.js
@@ -11,13 +11,13 @@ description: >
4.b)
---*/
- var arrObj = [1, 2, 3];
+var arrObj = [1, 2, 3];
- Object.defineProperty(arrObj, "length", {
- writable: false
- });
+Object.defineProperty(arrObj, "length", {
+ writable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(arrObj, 4, {
- value: "abc"
- });
+ Object.defineProperty(arrObj, 4, {
+ value: "abc"
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-19.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-19.js
index 2758d9847..f148c9622 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-19.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-19.js
@@ -12,20 +12,26 @@ description: >
non-configurable accessor properties(8.12.9 step 10.a.ii.1)
---*/
- var o = {};
+var o = {};
- // create an accessor property; all other attributes default to false.
- // dummy getter
- var getter = function () { return 1;}
- var d1 = { get: getter };
- Object.defineProperty(o, "foo", d1);
+// create an accessor property; all other attributes default to false.
+// dummy getter
+var getter = function() {
+ return 1;
+}
+var d1 = {
+ get: getter
+};
+Object.defineProperty(o, "foo", d1);
- // now, trying to set the setter should succeed even though [[Configurable]]
- // on the original property will be false.
- var desc = { set: undefined };
- Object.defineProperty(o, "foo", desc);
+// now, trying to set the setter should succeed even though [[Configurable]]
+// on the original property will be false.
+var desc = {
+ set: undefined
+};
+Object.defineProperty(o, "foo", desc);
- var d2 = Object.getOwnPropertyDescriptor(o, "foo");
+var d2 = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(d2.get, getter, 'd2.get');
assert.sameValue(d2.set, undefined, 'd2.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-190.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-190.js
index 438fe21f4..098e05861 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-190.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-190.js
@@ -14,25 +14,25 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, 0, {
- value: "ownDataProperty",
- configurable: false
+ value: "ownDataProperty",
+ configurable: false
});
try {
- Object.defineProperty(arrObj, 0, {
- configurable: true
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, 0, {
+ configurable: true
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "0", "ownDataProperty");
+ verifyEqualTo(arrObj, "0", "ownDataProperty");
- verifyNotWritable(arrObj, "0");
+ verifyNotWritable(arrObj, "0");
- verifyNotEnumerable(arrObj, "0");
+ verifyNotEnumerable(arrObj, "0");
- verifyNotConfigurable(arrObj, "0");
+ verifyNotConfigurable(arrObj, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-191.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-191.js
index 6f98b428d..1b4fb59bd 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-191.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-191.js
@@ -10,27 +10,27 @@ description: >
---*/
try {
- Object.defineProperty(Array.prototype, "0", {
- value: 11,
- configurable: true
- });
+ Object.defineProperty(Array.prototype, "0", {
+ value: 11,
+ configurable: true
+ });
- var arrObj = [];
+ var arrObj = [];
- Object.defineProperty(arrObj, "0", {
- configurable: false
- });
+ Object.defineProperty(arrObj, "0", {
+ configurable: false
+ });
- if (!arrObj.hasOwnProperty("0")) {
- $ERROR("Expected arrObj.hasOwnProperty('0') === true, actually " + arrObj.hasOwnProperty("0"));
- }
- if (Array.prototype[0] !== 11) {
- $ERROR("Expected Array.prototype[0] === 11), actually " + Array.prototype[0]);
- }
- if (typeof arrObj[0] !== "undefined") {
- $ERROR("Expected typeof arrObj[0] === 'undefined'), actually " + typeof arrObj[0]);
- }
+ if (!arrObj.hasOwnProperty("0")) {
+ $ERROR("Expected arrObj.hasOwnProperty('0') === true, actually " + arrObj.hasOwnProperty("0"));
+ }
+ if (Array.prototype[0] !== 11) {
+ $ERROR("Expected Array.prototype[0] === 11), actually " + Array.prototype[0]);
+ }
+ if (typeof arrObj[0] !== "undefined") {
+ $ERROR("Expected typeof arrObj[0] === 'undefined'), actually " + typeof arrObj[0]);
+ }
} finally {
- delete Array.prototype[0];
+ delete Array.prototype[0];
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-192.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-192.js
index 5e28dc2d3..65c0025e1 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-192.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-192.js
@@ -13,19 +13,19 @@ description: >
var arrObj = [];
assert.throws(TypeError, function() {
- Object.defineProperty(Array.prototype, "0", {
- value: 11,
- configurable: true
- });
+ Object.defineProperty(Array.prototype, "0", {
+ value: 11,
+ configurable: true
+ });
- Object.defineProperty(arrObj, "0", {
- value: 12,
- configurable: false
- });
-
- Object.defineProperty(arrObj, "0", {
- configurable: true
- });
+ Object.defineProperty(arrObj, "0", {
+ value: 12,
+ configurable: false
+ });
+
+ Object.defineProperty(arrObj, "0", {
+ configurable: true
+ });
});
assert.sameValue(Array.prototype[0], 11, 'Array.prototype[0]');
assert.sameValue(arrObj[0], 12, 'arrObj[0]');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-193.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-193.js
index 03c38b4db..2507d3c33 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-193.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-193.js
@@ -15,21 +15,21 @@ description: >
var arrObj = [];
assert.throws(TypeError, function() {
- Object.defineProperty(Array.prototype, "0", {
- get: function () {
- return 11;
- },
- configurable: true
- });
+ Object.defineProperty(Array.prototype, "0", {
+ get: function() {
+ return 11;
+ },
+ configurable: true
+ });
- Object.defineProperty(arrObj, "0", {
- value: 12,
- configurable: false
- });
+ Object.defineProperty(arrObj, "0", {
+ value: 12,
+ configurable: false
+ });
- Object.defineProperty(arrObj, "0", {
- configurable: true
- });
+ Object.defineProperty(arrObj, "0", {
+ configurable: true
+ });
});
assert.sameValue(Array.prototype[0], 11, 'Array.prototype[0]');
assert.sameValue(arrObj[0], 12, 'arrObj[0]');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-194.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-194.js
index 7cacb2d47..990f8f92b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-194.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-194.js
@@ -12,29 +12,29 @@ includes: [propertyHelper.js]
---*/
var arrObj = [];
-var getFunc = function () {
- return 11;
+var getFunc = function() {
+ return 11;
};
Object.defineProperty(arrObj, "0", {
- get: getFunc,
- configurable: false
+ get: getFunc,
+ configurable: false
});
try {
- Object.defineProperty(arrObj, "0", {
- configurable: true
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "0", {
+ configurable: true
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "0", getFunc());
+ verifyEqualTo(arrObj, "0", getFunc());
- verifyNotEnumerable(arrObj, "0");
+ verifyNotEnumerable(arrObj, "0");
- verifyNotConfigurable(arrObj, "0");
+ verifyNotConfigurable(arrObj, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e.name);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e.name);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-195.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-195.js
index 4181928c0..491372f01 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-195.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-195.js
@@ -11,38 +11,39 @@ includes: [propertyHelper.js]
---*/
function getFunc() {
- return arrObj.helpVerifySet;
+ return arrObj.helpVerifySet;
}
+
function setFunc(value) {
- arrObj.helpVerifySet = value;
+ arrObj.helpVerifySet = value;
}
try {
- Object.defineProperty(Array.prototype, "0", {
- get: function () {
- return 11;
- },
- configurable: true
- });
+ Object.defineProperty(Array.prototype, "0", {
+ get: function() {
+ return 11;
+ },
+ configurable: true
+ });
- var arrObj = [];
+ var arrObj = [];
- Object.defineProperty(arrObj, "0", {
- get: getFunc,
- set: setFunc,
- configurable: false
- });
+ Object.defineProperty(arrObj, "0", {
+ get: getFunc,
+ set: setFunc,
+ configurable: false
+ });
- arrObj[0] = 13;
+ arrObj[0] = 13;
- verifyEqualTo(arrObj, "0", getFunc());
+ verifyEqualTo(arrObj, "0", getFunc());
- verifyWritable(arrObj, "0", "helpVerifySet");
+ verifyWritable(arrObj, "0", "helpVerifySet");
- verifyNotEnumerable(arrObj, "0");
+ verifyNotEnumerable(arrObj, "0");
- verifyNotConfigurable(arrObj, "0");
+ verifyNotConfigurable(arrObj, "0");
} finally {
- delete Array.prototype[0];
+ delete Array.prototype[0];
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-196.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-196.js
index 7ddb2e1dd..f40f1cfd4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-196.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-196.js
@@ -11,18 +11,18 @@ description: >
assert.throws(TypeError, function() {
- Object.defineProperty(Array.prototype, "0", {
- value: 11,
- configurable: true
- });
+ Object.defineProperty(Array.prototype, "0", {
+ value: 11,
+ configurable: true
+ });
- var arrObj = [];
- Object.defineProperty(arrObj, "0", {
- get: function () { },
- configurable: false
- });
+ var arrObj = [];
+ Object.defineProperty(arrObj, "0", {
+ get: function() {},
+ configurable: false
+ });
- Object.defineProperty(arrObj, "0", {
- configurable: true
- });
+ Object.defineProperty(arrObj, "0", {
+ configurable: true
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-197.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-197.js
index 4fc4f1e83..5887be340 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-197.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-197.js
@@ -11,18 +11,18 @@ description: >
assert.throws(TypeError, function() {
- Object.defineProperty(Array.prototype, "0", {
- get: function () { },
- configurable: true
- });
+ Object.defineProperty(Array.prototype, "0", {
+ get: function() {},
+ configurable: true
+ });
- var arrObj = [];
- Object.defineProperty(arrObj, "0", {
- get: function () { },
- configurable: false
- });
+ var arrObj = [];
+ Object.defineProperty(arrObj, "0", {
+ get: function() {},
+ configurable: false
+ });
- Object.defineProperty(arrObj, "0", {
- configurable: true
- });
+ Object.defineProperty(arrObj, "0", {
+ configurable: true
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-198.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-198.js
index 27354b58d..0ecd59a2f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-198.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-198.js
@@ -9,10 +9,12 @@ description: >
TypeError is thrown when 'O' is not extensible (15.4.5.1 step 4.c)
---*/
- var arrObj = [];
- Object.preventExtensions(arrObj);
+var arrObj = [];
+Object.preventExtensions(arrObj);
assert.throws(TypeError, function() {
- var desc = { value: 1 };
- Object.defineProperty(arrObj, "0", desc);
+ var desc = {
+ value: 1
+ };
+ Object.defineProperty(arrObj, "0", desc);
});
assert.sameValue(arrObj.hasOwnProperty("0"), false, 'arrObj.hasOwnProperty("0")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-199.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-199.js
index 5052ac886..58c486b4c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-199.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-199.js
@@ -14,7 +14,7 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "0", {
- enumerable: true
+ enumerable: true
});
verifyEqualTo(arrObj, "0", undefined);
@@ -24,4 +24,3 @@ verifyNotWritable(arrObj, "0");
verifyEnumerable(arrObj, "0");
verifyNotConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-2.js
index ef6d4e2e5..a97cbedfc 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-2.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-2.js
@@ -12,14 +12,16 @@ description: >
values (data properties)(8.12.9 step 4.a.i)
---*/
- var o = {};
+var o = {};
- var desc = { value: 1 };
- Object.defineProperty(o, "foo", desc);
+var desc = {
+ value: 1
+};
+Object.defineProperty(o, "foo", desc);
- var propDesc = Object.getOwnPropertyDescriptor(o, "foo");
+var propDesc = Object.getOwnPropertyDescriptor(o, "foo");
-assert.sameValue(propDesc.value, 1, 'propDesc.value'); // this is the value that was set
-assert.sameValue(propDesc.writable, false, 'propDesc.writable'); // false by default
-assert.sameValue(propDesc.enumerable, false, 'propDesc.enumerable'); // false by default
-assert.sameValue(propDesc.configurable, false, 'propDesc.configurable'); // false by default
+assert.sameValue(propDesc.value, 1, 'propDesc.value'); // this is the value that was set
+assert.sameValue(propDesc.writable, false, 'propDesc.writable'); // false by default
+assert.sameValue(propDesc.enumerable, false, 'propDesc.enumerable'); // false by default
+assert.sameValue(propDesc.configurable, false, 'propDesc.configurable'); // false by default
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-20.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-20.js
index d38088903..d16ab047c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-20.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-20.js
@@ -13,21 +13,28 @@ description: >
11.a.ii)
---*/
- var o = {};
+var o = {};
- // create an accessor property; all other attributes default to false.
- // dummy getter/setter
- var getter = function () { return 1;}
- var d1 = { get: getter, configurable: false };
- Object.defineProperty(o, "foo", d1);
+// create an accessor property; all other attributes default to false.
+// dummy getter/setter
+var getter = function() {
+ return 1;
+}
+var d1 = {
+ get: getter,
+ configurable: false
+};
+Object.defineProperty(o, "foo", d1);
- // now, trying to change the setter should fail, since [[Configurable]]
- // on the original property will be false.
- var desc = { get: undefined };
+// now, trying to change the setter should fail, since [[Configurable]]
+// on the original property will be false.
+var desc = {
+ get: undefined
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
- var d2 = Object.getOwnPropertyDescriptor(o, "foo");
+var d2 = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(d2.get, getter, 'd2.get');
assert.sameValue(d2.configurable, false, 'd2.configurable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-200.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-200.js
index 63077a0cb..9f5256890 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-200.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-200.js
@@ -15,9 +15,9 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "0", {
- writable: true,
- enumerable: true,
- configurable: false
+ writable: true,
+ enumerable: true,
+ configurable: false
});
verifyEqualTo(arrObj, "0", undefined);
@@ -27,4 +27,3 @@ verifyWritable(arrObj, "0");
verifyEnumerable(arrObj, "0");
verifyNotConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-201.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-201.js
index 7b3f9f33a..f0482af89 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-201.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-201.js
@@ -15,9 +15,9 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "0", {
- value: 1001,
- enumerable: true,
- configurable: false
+ value: 1001,
+ enumerable: true,
+ configurable: false
});
verifyEqualTo(arrObj, "0", 1001);
@@ -26,4 +26,3 @@ verifyNotWritable(arrObj, "0");
verifyEnumerable(arrObj, "0");
verifyNotConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-202.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-202.js
index 0c987dfff..d6bdee22b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-202.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-202.js
@@ -15,9 +15,9 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "0", {
- value: 1001,
- writable: true,
- configurable: true
+ value: 1001,
+ writable: true,
+ configurable: true
});
verifyEqualTo(arrObj, "0", 1001);
@@ -26,4 +26,3 @@ verifyWritable(arrObj, "0");
verifyNotEnumerable(arrObj, "0");
verifyConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-203.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-203.js
index 82a8aeb45..abee7a278 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-203.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-203.js
@@ -15,9 +15,9 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "0", {
- value: 1001,
- writable: true,
- enumerable: true
+ value: 1001,
+ writable: true,
+ enumerable: true
});
verifyEqualTo(arrObj, "0", 1001);
@@ -26,4 +26,3 @@ verifyWritable(arrObj, "0");
verifyEnumerable(arrObj, "0");
verifyNotConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-204.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-204.js
index 899fc6f99..e19e46508 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-204.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-204.js
@@ -13,10 +13,10 @@ includes: [propertyHelper.js]
var arrObj = [1]; // default value of attributes: writable: true, configurable: true, enumerable: true
Object.defineProperty(arrObj, "0", {
- value: 1001,
- writable: false,
- enumerable: false,
- configurable: false
+ value: 1001,
+ writable: false,
+ enumerable: false,
+ configurable: false
});
verifyEqualTo(arrObj, "0", 1001);
@@ -26,4 +26,3 @@ verifyNotWritable(arrObj, "0");
verifyNotEnumerable(arrObj, "0");
verifyNotConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-205.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-205.js
index 58020eb3b..04c926f70 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-205.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-205.js
@@ -12,14 +12,14 @@ includes: [propertyHelper.js]
---*/
var arrObj = [];
-var setFunc = function (value) {
- arrObj.setVerifyHelpProp = value;
+var setFunc = function(value) {
+ arrObj.setVerifyHelpProp = value;
};
Object.defineProperty(arrObj, "0", {
- set: setFunc,
- enumerable: true,
- configurable: true
+ set: setFunc,
+ enumerable: true,
+ configurable: true
});
verifyWritable(arrObj, "0", "setVerifyHelpProp");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-206.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-206.js
index 50a9bc2ad..a21a365d1 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-206.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-206.js
@@ -10,16 +10,16 @@ description: >
is absent in accessor descriptor 'desc' (15.4.5.1 step 4.c)
---*/
- var arrObj = [];
- var getFunc = function () { };
+var arrObj = [];
+var getFunc = function() {};
- Object.defineProperty(arrObj, "0", {
- get: getFunc,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(arrObj, "0", {
+ get: getFunc,
+ enumerable: true,
+ configurable: true
+});
- var desc = Object.getOwnPropertyDescriptor(arrObj, "0");
+var desc = Object.getOwnPropertyDescriptor(arrObj, "0");
assert(arrObj.hasOwnProperty("0"), 'arrObj.hasOwnProperty("0") !== true');
assert(desc.hasOwnProperty("set"), 'desc.hasOwnProperty("set") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-207.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-207.js
index 8f9c19117..338b788ef 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-207.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-207.js
@@ -14,15 +14,15 @@ includes: [propertyHelper.js]
var arrObj = [];
-var setFunc = function (value) {
- arrObj.setVerifyHelpProp = value;
+var setFunc = function(value) {
+ arrObj.setVerifyHelpProp = value;
};
-var getFunc = function () { };
+var getFunc = function() {};
Object.defineProperty(arrObj, "0", {
- set: setFunc,
- get: getFunc,
- configurable: true
+ set: setFunc,
+ get: getFunc,
+ configurable: true
});
verifyEqualTo(arrObj, "0", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-208.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-208.js
index 6c3814e9d..540472ce3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-208.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-208.js
@@ -13,15 +13,15 @@ includes: [propertyHelper.js]
---*/
var arrObj = [];
-var setFunc = function (value) {
- arrObj.setVerifyHelpProp = value;
+var setFunc = function(value) {
+ arrObj.setVerifyHelpProp = value;
};
-var getFunc = function () { };
+var getFunc = function() {};
Object.defineProperty(arrObj, "0", {
- set: setFunc,
- get: getFunc,
- enumerable: true
+ set: setFunc,
+ get: getFunc,
+ enumerable: true
});
verifyEqualTo(arrObj, "0", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-209.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-209.js
index d9ce590c6..315efeb87 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-209.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-209.js
@@ -11,27 +11,27 @@ includes: [propertyHelper.js]
---*/
var arrObj = [];
-var setFunc = function (value) {
- arrObj.setVerifyHelpProp = value;
+var setFunc = function(value) {
+ arrObj.setVerifyHelpProp = value;
};
-var getFunc = function () {
- return 14;
+var getFunc = function() {
+ return 14;
};
Object.defineProperty(arrObj, "0", {
- get: function () {
- return 11;
- },
- set: function () { },
- configurable: true,
- enumerable: true
+ get: function() {
+ return 11;
+ },
+ set: function() {},
+ configurable: true,
+ enumerable: true
});
Object.defineProperty(arrObj, "0", {
- get: getFunc,
- set: setFunc,
- configurable: false,
- enumerable: false
+ get: getFunc,
+ set: setFunc,
+ configurable: false,
+ enumerable: false
});
verifyEqualTo(arrObj, "0", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-21.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-21.js
index 5fa94235b..5f357e7b3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-21.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-21.js
@@ -12,21 +12,25 @@ description: >
non-configurable accessor properties(8.12.9 step 11.a.ii)
---*/
- var o = {};
+var o = {};
- // create an accessor property; all other attributes default to false.
- // dummy setter
- var setter = function (x) {}
- var d1 = { set: setter };
- Object.defineProperty(o, "foo", d1);
+// create an accessor property; all other attributes default to false.
+// dummy setter
+var setter = function(x) {}
+var d1 = {
+ set: setter
+};
+Object.defineProperty(o, "foo", d1);
- // now, trying to set the getter should succeed even though [[Configurable]]
- // on the original property will be false. Existing values of need to be preserved.
- var getter = undefined;
- var desc = { get: getter };
+// now, trying to set the getter should succeed even though [[Configurable]]
+// on the original property will be false. Existing values of need to be preserved.
+var getter = undefined;
+var desc = {
+ get: getter
+};
- Object.defineProperty(o, "foo", desc);
- var d2 = Object.getOwnPropertyDescriptor(o, "foo");
+Object.defineProperty(o, "foo", desc);
+var d2 = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(d2.get, getter, 'd2.get');
assert.sameValue(d2.set, setter, 'd2.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-210.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-210.js
index 2c9c13ac6..0cd5779c4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-210.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-210.js
@@ -22,4 +22,3 @@ verifyWritable(arrObj, "0");
verifyEnumerable(arrObj, "0");
verifyConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-211.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-211.js
index e02b3584c..030a92221 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-211.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-211.js
@@ -13,17 +13,18 @@ includes: [propertyHelper.js]
var arrObj = [];
function getFunc() {
- return 11;
+ return 11;
}
+
function setFunc(value) {
- arrObj.setVerifyHelpProp = value;
+ arrObj.setVerifyHelpProp = value;
}
Object.defineProperty(arrObj, "0", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(arrObj, "0", {});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-212.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-212.js
index 1ba665155..a7abee310 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-212.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-212.js
@@ -16,10 +16,10 @@ var arrObj = [];
arrObj[0] = 100; // default value of attributes: writable: true, configurable: true, enumerable: true
Object.defineProperty(arrObj, "0", {
- value: 100,
- writable: true,
- enumerable: true,
- configurable: true
+ value: 100,
+ writable: true,
+ enumerable: true,
+ configurable: true
});
verifyEqualTo(arrObj, "0", 100);
@@ -29,4 +29,3 @@ verifyWritable(arrObj, "0");
verifyEnumerable(arrObj, "0");
verifyConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-213.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-213.js
index 96b57c408..2b691bf41 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-213.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-213.js
@@ -12,25 +12,25 @@ includes: [propertyHelper.js]
---*/
var arrObj = [];
-var getFunc = function () {
- return "100";
+var getFunc = function() {
+ return "100";
};
-var setFunc = function (value) {
- arrObj.setVerifyHelpProp = value;
+var setFunc = function(value) {
+ arrObj.setVerifyHelpProp = value;
};
var desc = {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
};
Object.defineProperty(arrObj, "0", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(arrObj, "0", desc);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-214.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-214.js
index ec961abde..eacdbcdc4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-214.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-214.js
@@ -15,25 +15,27 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, 0, {
- value: 101,
- writable: false,
- configurable: false
+ value: 101,
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperty(arrObj, "0", { value: "abc" });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "0", {
+ value: "abc"
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "0", 101);
+ verifyEqualTo(arrObj, "0", 101);
- verifyNotWritable(arrObj, "0");
+ verifyNotWritable(arrObj, "0");
- verifyNotEnumerable(arrObj, "0");
+ verifyNotEnumerable(arrObj, "0");
- verifyNotConfigurable(arrObj, "0");
+ verifyNotConfigurable(arrObj, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-215.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-215.js
index 1ed17f2be..49bff01a3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-215.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-215.js
@@ -12,9 +12,13 @@ includes: [propertyHelper.js]
var arrObj = [];
-Object.defineProperty(arrObj, "0", { value: undefined });
+Object.defineProperty(arrObj, "0", {
+ value: undefined
+});
-Object.defineProperty(arrObj, "0", { value: undefined });
+Object.defineProperty(arrObj, "0", {
+ value: undefined
+});
verifyEqualTo(arrObj, "0", undefined);
verifyNotWritable(arrObj, "0");
@@ -22,4 +26,3 @@ verifyNotWritable(arrObj, "0");
verifyNotEnumerable(arrObj, "0");
verifyNotConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-216.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-216.js
index b5efb6f80..ec465e9c2 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-216.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-216.js
@@ -12,9 +12,13 @@ includes: [propertyHelper.js]
var arrObj = [];
-Object.defineProperty(arrObj, "0", { value: null });
+Object.defineProperty(arrObj, "0", {
+ value: null
+});
-Object.defineProperty(arrObj, "0", { value: null });
+Object.defineProperty(arrObj, "0", {
+ value: null
+});
verifyEqualTo(arrObj, "0", null);
verifyNotWritable(arrObj, "0");
@@ -22,4 +26,3 @@ verifyNotWritable(arrObj, "0");
verifyNotEnumerable(arrObj, "0");
verifyNotConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-217.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-217.js
index c57e94ea6..a8851cf79 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-217.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-217.js
@@ -12,9 +12,13 @@ includes: [propertyHelper.js]
var arrObj = [];
-Object.defineProperty(arrObj, "0", { value: NaN });
+Object.defineProperty(arrObj, "0", {
+ value: NaN
+});
-Object.defineProperty(arrObj, "0", { value: NaN });
+Object.defineProperty(arrObj, "0", {
+ value: NaN
+});
assert(arrObj.hasOwnProperty("0"));
assert(arrObj[0] !== arrObj[0]);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-218.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-218.js
index c393a72a7..c81c6c055 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-218.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-218.js
@@ -13,22 +13,26 @@ includes: [propertyHelper.js]
var arrObj = [];
-Object.defineProperty(arrObj, "0", { value: -0 });
+Object.defineProperty(arrObj, "0", {
+ value: -0
+});
try {
- Object.defineProperty(arrObj, "0", { value: +0 });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "0", {
+ value: +0
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "0", -0);
+ verifyEqualTo(arrObj, "0", -0);
- verifyNotWritable(arrObj, "0");
+ verifyNotWritable(arrObj, "0");
- verifyNotEnumerable(arrObj, "0");
+ verifyNotEnumerable(arrObj, "0");
- verifyNotConfigurable(arrObj, "0");
+ verifyNotConfigurable(arrObj, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-219.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-219.js
index 3e9acbdd0..d2f045ce5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-219.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-219.js
@@ -13,22 +13,26 @@ includes: [propertyHelper.js]
var arrObj = [];
-Object.defineProperty(arrObj, "0", { value: +0 });
+Object.defineProperty(arrObj, "0", {
+ value: +0
+});
try {
- Object.defineProperty(arrObj, "0", { value: -0 });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "0", {
+ value: -0
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "0", +0);
+ verifyEqualTo(arrObj, "0", +0);
- verifyNotWritable(arrObj, "0");
+ verifyNotWritable(arrObj, "0");
- verifyNotEnumerable(arrObj, "0");
+ verifyNotEnumerable(arrObj, "0");
- verifyNotConfigurable(arrObj, "0");
+ verifyNotConfigurable(arrObj, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-22.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-22.js
index 6643da65d..02e527405 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-22.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-22.js
@@ -8,15 +8,15 @@ description: >
(8.12.9 step 1)
---*/
- var obj = {};
- Object.defineProperty(obj, "foo", {
- value: 11,
- configurable: false
- });
+var obj = {};
+Object.defineProperty(obj, "foo", {
+ value: 11,
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "foo", {
- value: 12,
- configurable: true
- });
+ Object.defineProperty(obj, "foo", {
+ value: 12,
+ configurable: true
+ });
});
assert.sameValue(obj.foo, 11, 'obj.foo');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-220.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-220.js
index e4a6b3aa3..10696ad39 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-220.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-220.js
@@ -13,9 +13,13 @@ includes: [propertyHelper.js]
var arrObj = [];
-Object.defineProperty(arrObj, "0", { value: 101 });
+Object.defineProperty(arrObj, "0", {
+ value: 101
+});
-Object.defineProperty(arrObj, "0", { value: 101 });
+Object.defineProperty(arrObj, "0", {
+ value: 101
+});
verifyEqualTo(arrObj, "0", 101);
verifyNotWritable(arrObj, "0");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-221.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-221.js
index aff5f3150..d2a4ae6ad 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-221.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-221.js
@@ -14,25 +14,27 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, 0, {
- value: 101,
- writable: false,
- configurable: false
+ value: 101,
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperty(arrObj, "0", { value: 123 });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "0", {
+ value: 123
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "0", 101);
+ verifyEqualTo(arrObj, "0", 101);
- verifyNotWritable(arrObj, "0");
+ verifyNotWritable(arrObj, "0");
- verifyNotEnumerable(arrObj, "0");
+ verifyNotEnumerable(arrObj, "0");
- verifyNotConfigurable(arrObj, "0");
+ verifyNotConfigurable(arrObj, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-222.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-222.js
index f2e6a291b..ed3c0936c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-222.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-222.js
@@ -13,9 +13,13 @@ includes: [propertyHelper.js]
var arrObj = [];
-Object.defineProperty(arrObj, "0", { value: "abcd" });
+Object.defineProperty(arrObj, "0", {
+ value: "abcd"
+});
-Object.defineProperty(arrObj, "0", { value: "abcd" });
+Object.defineProperty(arrObj, "0", {
+ value: "abcd"
+});
verifyEqualTo(arrObj, "0", "abcd");
verifyNotWritable(arrObj, "0");
@@ -23,4 +27,3 @@ verifyNotWritable(arrObj, "0");
verifyNotEnumerable(arrObj, "0");
verifyNotConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-223.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-223.js
index 310795319..03029236f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-223.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-223.js
@@ -14,25 +14,27 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, 0, {
- value: "abcd",
- writable: false,
- configurable: false
+ value: "abcd",
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperty(arrObj, "0", { value: "fghj" });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "0", {
+ value: "fghj"
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "0", "abcd");
+ verifyEqualTo(arrObj, "0", "abcd");
- verifyNotWritable(arrObj, "0");
+ verifyNotWritable(arrObj, "0");
- verifyNotEnumerable(arrObj, "0");
+ verifyNotEnumerable(arrObj, "0");
- verifyNotConfigurable(arrObj, "0");
+ verifyNotConfigurable(arrObj, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-224.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-224.js
index 1751ddc12..de19df976 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-224.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-224.js
@@ -13,9 +13,13 @@ includes: [propertyHelper.js]
var arrObj = [];
-Object.defineProperty(arrObj, "0", { value: true });
+Object.defineProperty(arrObj, "0", {
+ value: true
+});
-Object.defineProperty(arrObj, "0", { value: true });
+Object.defineProperty(arrObj, "0", {
+ value: true
+});
verifyEqualTo(arrObj, "0", true);
verifyNotWritable(arrObj, "0");
@@ -23,4 +27,3 @@ verifyNotWritable(arrObj, "0");
verifyNotEnumerable(arrObj, "0");
verifyNotConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-225.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-225.js
index a9ccc96f4..c2da23fe6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-225.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-225.js
@@ -14,25 +14,27 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, 0, {
- value: true,
- writable: false,
- configurable: false
+ value: true,
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperty(arrObj, "0", { value: false });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "0", {
+ value: false
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "0", true);
+ verifyEqualTo(arrObj, "0", true);
- verifyNotWritable(arrObj, "0");
+ verifyNotWritable(arrObj, "0");
- verifyNotEnumerable(arrObj, "0");
+ verifyNotEnumerable(arrObj, "0");
- verifyNotConfigurable(arrObj, "0");
+ verifyNotConfigurable(arrObj, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-226.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-226.js
index eec15afe1..5b7e7edd2 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-226.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-226.js
@@ -13,11 +13,17 @@ includes: [propertyHelper.js]
var arrObj = [];
-var obj1 = { length: 10 };
+var obj1 = {
+ length: 10
+};
-Object.defineProperty(arrObj, "0", { value: obj1 });
+Object.defineProperty(arrObj, "0", {
+ value: obj1
+});
-Object.defineProperty(arrObj, "0", { value: obj1 });
+Object.defineProperty(arrObj, "0", {
+ value: obj1
+});
verifyEqualTo(arrObj, "0", obj1);
verifyNotWritable(arrObj, "0");
@@ -25,4 +31,3 @@ verifyNotWritable(arrObj, "0");
verifyNotEnumerable(arrObj, "0");
verifyNotConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-227.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-227.js
index 59184c388..7eabcaaad 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-227.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-227.js
@@ -13,29 +13,35 @@ includes: [propertyHelper.js]
var arrObj = [];
-var obj1 = { length: 10 };
+var obj1 = {
+ length: 10
+};
Object.defineProperty(arrObj, 0, {
- value: obj1,
- writable: false,
- configurable: false
+ value: obj1,
+ writable: false,
+ configurable: false
});
-var obj2 = { length: 20 };
+var obj2 = {
+ length: 20
+};
try {
- Object.defineProperty(arrObj, "0", { value: obj2 });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "0", {
+ value: obj2
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "0", obj1);
+ verifyEqualTo(arrObj, "0", obj1);
- verifyNotWritable(arrObj, "0");
+ verifyNotWritable(arrObj, "0");
- verifyNotEnumerable(arrObj, "0");
+ verifyNotEnumerable(arrObj, "0");
- verifyNotConfigurable(arrObj, "0");
+ verifyNotConfigurable(arrObj, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-228.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-228.js
index 4ad03d8e7..3e873291d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-228.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-228.js
@@ -13,9 +13,13 @@ includes: [propertyHelper.js]
var arrObj = [];
-Object.defineProperty(arrObj, "0", { writable: false });
+Object.defineProperty(arrObj, "0", {
+ writable: false
+});
-Object.defineProperty(arrObj, "0", { writable: false });
+Object.defineProperty(arrObj, "0", {
+ writable: false
+});
verifyEqualTo(arrObj, "0", undefined);
verifyNotWritable(arrObj, "0");
@@ -23,4 +27,3 @@ verifyNotWritable(arrObj, "0");
verifyNotEnumerable(arrObj, "0");
verifyNotConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-229.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-229.js
index 90ece61c7..859a41f62 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-229.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-229.js
@@ -13,9 +13,14 @@ includes: [propertyHelper.js]
var arrObj = [];
-Object.defineProperty(arrObj, "0", { writable: false, configurable: true });
+Object.defineProperty(arrObj, "0", {
+ writable: false,
+ configurable: true
+});
-Object.defineProperty(arrObj, "0", { writable: true });
+Object.defineProperty(arrObj, "0", {
+ writable: true
+});
verifyEqualTo(arrObj, "0", undefined);
verifyWritable(arrObj, "0");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-23.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-23.js
index 6acf72daa..6b59c0e79 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-23.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-23.js
@@ -8,19 +8,19 @@ description: >
property (8.12.9 step 1)
---*/
- var proto = {};
- Object.defineProperty(proto, "foo", {
- value: 11,
- configurable: false
- });
+var proto = {};
+Object.defineProperty(proto, "foo", {
+ value: 11,
+ configurable: false
+});
- var ConstructFun = function () {};
- ConstructFun.prototype = proto;
- var obj = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var obj = new ConstructFun();
- Object.defineProperty(obj, "foo", {
- configurable: true
- });
+Object.defineProperty(obj, "foo", {
+ configurable: true
+});
assert(obj.hasOwnProperty("foo"), 'obj.hasOwnProperty("foo") !== true');
assert.sameValue(typeof obj.foo, "undefined", 'typeof obj.foo');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-230.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-230.js
index 4f70bbbdc..d2d6797a6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-230.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-230.js
@@ -15,19 +15,20 @@ var arrObj = [];
arrObj.helpVerifySet = 10;
function getFunc() {
- return arrObj.helpVerifySet;
+ return arrObj.helpVerifySet;
}
+
function setFunc(value) {
- arrObj.helpVerifySet = value;
+ arrObj.helpVerifySet = value;
}
Object.defineProperty(arrObj, "0", {
- get: getFunc,
- set: setFunc
+ get: getFunc,
+ set: setFunc
});
Object.defineProperty(arrObj, "0", {
- get: getFunc
+ get: getFunc
});
verifyEqualTo(arrObj, "0", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-231.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-231.js
index ed12f8ca5..b8cac4a63 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-231.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-231.js
@@ -15,23 +15,25 @@ var arrObj = [];
arrObj.helpVerifySet = 10;
function getFunc1() {
- return 20;
+ return 20;
}
+
function getFunc2() {
- return arrObj.helpVerifySet;
+ return arrObj.helpVerifySet;
}
+
function setFunc(value) {
- arrObj.helpVerifySet = value;
+ arrObj.helpVerifySet = value;
}
Object.defineProperty(arrObj, "0", {
- get: getFunc1,
- set: setFunc,
- configurable: true
+ get: getFunc1,
+ set: setFunc,
+ configurable: true
});
Object.defineProperty(arrObj, "0", {
- get: getFunc2
+ get: getFunc2
});
verifyEqualTo(arrObj, "0", getFunc2());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-232.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-232.js
index b814729f4..757da898b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-232.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-232.js
@@ -14,12 +14,16 @@ includes: [propertyHelper.js]
var arrObj = [];
function setFunc(value) {
- arrObj.setVerifyHelpProp = value;
+ arrObj.setVerifyHelpProp = value;
}
-Object.defineProperty(arrObj, "0", { set: setFunc });
+Object.defineProperty(arrObj, "0", {
+ set: setFunc
+});
-Object.defineProperty(arrObj, "0", { set: setFunc });
+Object.defineProperty(arrObj, "0", {
+ set: setFunc
+});
verifyWritable(arrObj, "0", "setVerifyHelpProp");
verifyNotEnumerable(arrObj, "0");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-233.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-233.js
index e6ebeb804..1fb647246 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-233.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-233.js
@@ -13,18 +13,20 @@ includes: [propertyHelper.js]
var arrObj = [];
-function setFunc1() { }
+function setFunc1() {}
Object.defineProperty(arrObj, "0", {
- set: setFunc1,
- configurable: true
+ set: setFunc1,
+ configurable: true
});
function setFunc2(value) {
- arrObj.setVerifyHelpProp = value;
+ arrObj.setVerifyHelpProp = value;
}
-Object.defineProperty(arrObj, "0", { set: setFunc2 });
+Object.defineProperty(arrObj, "0", {
+ set: setFunc2
+});
verifyWritable(arrObj, "0", "setVerifyHelpProp");
verifyNotEnumerable(arrObj, "0");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-234.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-234.js
index 4c622249d..20d6f364b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-234.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-234.js
@@ -13,9 +13,13 @@ includes: [propertyHelper.js]
var arrObj = [];
-Object.defineProperty(arrObj, "0", { enumerable: false });
+Object.defineProperty(arrObj, "0", {
+ enumerable: false
+});
-Object.defineProperty(arrObj, "0", { enumerable: false });
+Object.defineProperty(arrObj, "0", {
+ enumerable: false
+});
verifyEqualTo(arrObj, "0", undefined);
verifyNotWritable(arrObj, "0");
@@ -23,4 +27,3 @@ verifyNotWritable(arrObj, "0");
verifyNotEnumerable(arrObj, "0");
verifyNotConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-235.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-235.js
index 06e3e2c7b..bc5cf2789 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-235.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-235.js
@@ -13,9 +13,14 @@ includes: [propertyHelper.js]
var arrObj = [];
-Object.defineProperty(arrObj, "0", { enumerable: false, configurable: true });
-
-Object.defineProperty(arrObj, "0", { enumerable: true });
+Object.defineProperty(arrObj, "0", {
+ enumerable: false,
+ configurable: true
+});
+
+Object.defineProperty(arrObj, "0", {
+ enumerable: true
+});
verifyEqualTo(arrObj, "0", undefined);
verifyNotWritable(arrObj, "0");
@@ -23,4 +28,3 @@ verifyNotWritable(arrObj, "0");
verifyEnumerable(arrObj, "0");
verifyConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-236.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-236.js
index 29fc96410..3ca288600 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-236.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-236.js
@@ -13,9 +13,13 @@ includes: [propertyHelper.js]
var arrObj = [];
-Object.defineProperty(arrObj, "0", { configurable: false });
+Object.defineProperty(arrObj, "0", {
+ configurable: false
+});
-Object.defineProperty(arrObj, "0", { configurable: false });
+Object.defineProperty(arrObj, "0", {
+ configurable: false
+});
verifyEqualTo(arrObj, "0", undefined);
verifyNotWritable(arrObj, "0");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-237.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-237.js
index 5b17acde0..bbcd44437 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-237.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-237.js
@@ -13,9 +13,13 @@ includes: [propertyHelper.js]
var arrObj = [];
-Object.defineProperty(arrObj, "0", { configurable: true });
+Object.defineProperty(arrObj, "0", {
+ configurable: true
+});
-Object.defineProperty(arrObj, "0", { configurable: false });
+Object.defineProperty(arrObj, "0", {
+ configurable: false
+});
verifyEqualTo(arrObj, "0", undefined);
verifyNotWritable(arrObj, "0");
@@ -23,4 +27,3 @@ verifyNotWritable(arrObj, "0");
verifyNotEnumerable(arrObj, "0");
verifyNotConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-238.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-238.js
index abdca9f4f..bbcac3d55 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-238.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-238.js
@@ -15,30 +15,30 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "1", {
- value: 3,
- writable: true,
- configurable: false
+ value: 3,
+ writable: true,
+ configurable: false
});
try {
- Object.defineProperty(arrObj, "1", {
- value: 13,
- writable: true,
- configurable: true
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "1", {
+ value: 13,
+ writable: true,
+ configurable: true
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "1", 3);
+ verifyEqualTo(arrObj, "1", 3);
- verifyWritable(arrObj, "1");
+ verifyWritable(arrObj, "1");
- verifyNotEnumerable(arrObj, "1");
+ verifyNotEnumerable(arrObj, "1");
- verifyNotConfigurable(arrObj, "1");
+ verifyNotConfigurable(arrObj, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-239.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-239.js
index c680ee224..0863f52f5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-239.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-239.js
@@ -16,31 +16,31 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "1", {
- value: 3,
- writable: true,
- configurable: false,
- enumerable: false
+ value: 3,
+ writable: true,
+ configurable: false,
+ enumerable: false
});
try {
- Object.defineProperty(arrObj, "1", {
- value: 13,
- writable: true,
- enumerable: true
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "1", {
+ value: 13,
+ writable: true,
+ enumerable: true
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "1", 3);
+ verifyEqualTo(arrObj, "1", 3);
- verifyWritable(arrObj, "1");
+ verifyWritable(arrObj, "1");
- verifyNotEnumerable(arrObj, "1");
+ verifyNotEnumerable(arrObj, "1");
- verifyNotConfigurable(arrObj, "1");
+ verifyNotConfigurable(arrObj, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-24.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-24.js
index a1e7f654f..0a0e6bd27 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-24.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-24.js
@@ -8,22 +8,22 @@ description: >
an inherited data property (8.12.9 step 1)
---*/
- var proto = {};
- Object.defineProperty(proto, "foo", {
- value: 12,
- configurable: true
- });
+var proto = {};
+Object.defineProperty(proto, "foo", {
+ value: 12,
+ configurable: true
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var obj = new ConstructFun();
- Object.defineProperty(obj, "foo", {
- value: 11,
- configurable: false
- });
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var obj = new ConstructFun();
+Object.defineProperty(obj, "foo", {
+ value: 11,
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "foo", {
- configurable: true
- });
+ Object.defineProperty(obj, "foo", {
+ configurable: true
+ });
});
assert.sameValue(obj.foo, 11, 'obj.foo');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-240.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-240.js
index b5b0993cf..4b6b824e8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-240.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-240.js
@@ -15,29 +15,29 @@ includes: [propertyHelper.js]
var arrObj = [];
function setFunc(value) {
- arrObj.setVerifyHelpProp = value;
+ arrObj.setVerifyHelpProp = value;
}
Object.defineProperty(arrObj, "1", {
- set: setFunc,
- configurable: false
+ set: setFunc,
+ configurable: false
});
try {
- Object.defineProperty(arrObj, "1", {
- value: 13
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "1", {
+ value: 13
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyWritable(arrObj, "1", "setVerifyHelpProp");
+ verifyWritable(arrObj, "1", "setVerifyHelpProp");
- verifyNotEnumerable(arrObj, "1");
+ verifyNotEnumerable(arrObj, "1");
- verifyNotConfigurable(arrObj, "1");
+ verifyNotConfigurable(arrObj, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-241.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-241.js
index 3615552c3..1cad6cfc8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-241.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-241.js
@@ -15,27 +15,27 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "1", {
- value: 3,
- configurable: false
+ value: 3,
+ configurable: false
});
try {
- Object.defineProperty(arrObj, "1", {
- set: function () { }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "1", {
+ set: function() {}
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "1", 3);
+ verifyEqualTo(arrObj, "1", 3);
- verifyNotWritable(arrObj, "1");
+ verifyNotWritable(arrObj, "1");
- verifyNotEnumerable(arrObj, "1");
+ verifyNotEnumerable(arrObj, "1");
- verifyNotConfigurable(arrObj, "1");
+ verifyNotConfigurable(arrObj, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-242-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-242-1.js
index 796c4d0bf..d0cd2bd47 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-242-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-242-1.js
@@ -15,9 +15,9 @@ includes: [propertyHelper.js]
var arrObj = [3];
Object.defineProperty(arrObj, "0", {
- value: 1001,
- writable: false,
- enumerable: false
+ value: 1001,
+ writable: false,
+ enumerable: false
});
verifyEqualTo(arrObj, "0", 1001);
@@ -27,4 +27,3 @@ verifyNotWritable(arrObj, "0");
verifyNotEnumerable(arrObj, "0");
verifyConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-242.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-242.js
index 249a4b0ec..862326c37 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-242.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-242.js
@@ -16,10 +16,10 @@ includes: [propertyHelper.js]
var arrObj = [3];
function setFunc(value) {
- arrObj.setVerifyHelpProp = value;
+ arrObj.setVerifyHelpProp = value;
}
Object.defineProperty(arrObj, "0", {
- set: setFunc
+ set: setFunc
});
verifyWritable(arrObj, "0", "setVerifyHelpProp");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-243-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-243-1.js
index 0f8a8ab4b..bca8f0606 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-243-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-243-1.js
@@ -16,11 +16,11 @@ flags: [noStrict]
var arrObj = [];
function getFunc() {
- return 3;
+ return 3;
}
Object.defineProperty(arrObj, "1", {
- get: getFunc,
- configurable: true
+ get: getFunc,
+ configurable: true
});
arrObj[1] = 4;
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-243-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-243-2.js
index 94d5e325f..2e8572a93 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-243-2.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-243-2.js
@@ -16,25 +16,24 @@ flags: [onlyStrict]
var arrObj = [];
function getFunc() {
- return 3;
+ return 3;
}
Object.defineProperty(arrObj, "1", {
- get: getFunc,
- configurable: true
+ get: getFunc,
+ configurable: true
});
try {
- arrObj[1] = 4;
+ arrObj[1] = 4;
} catch (e) {
- verifyEqualTo(arrObj, "1", getFunc());
+ verifyEqualTo(arrObj, "1", getFunc());
- verifyNotEnumerable(arrObj, "1");
+ verifyNotEnumerable(arrObj, "1");
- verifyConfigurable(arrObj, "1");
+ verifyConfigurable(arrObj, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-243.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-243.js
index 993eba0fc..1c9e01206 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-243.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-243.js
@@ -16,15 +16,15 @@ includes: [propertyHelper.js]
var arrObj = [];
function getFunc() {
- return 3;
+ return 3;
}
Object.defineProperty(arrObj, "1", {
- get: getFunc,
- configurable: true
+ get: getFunc,
+ configurable: true
});
Object.defineProperty(arrObj, "1", {
- value: 12
+ value: 12
});
verifyEqualTo(arrObj, "1", 12);
@@ -34,4 +34,3 @@ verifyNotWritable(arrObj, "1");
verifyNotEnumerable(arrObj, "1");
verifyConfigurable(arrObj, "1");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-244.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-244.js
index 44106866a..71a507f31 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-244.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-244.js
@@ -17,28 +17,28 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "1", {
- writable: false,
- configurable: false
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperty(arrObj, "1", {
- writable: true
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "1", {
+ writable: true
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "1", undefined);
+ verifyEqualTo(arrObj, "1", undefined);
- verifyNotWritable(arrObj, "1");
+ verifyNotWritable(arrObj, "1");
- verifyNotEnumerable(arrObj, "1");
+ verifyNotEnumerable(arrObj, "1");
- verifyNotConfigurable(arrObj, "1");
+ verifyNotConfigurable(arrObj, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-245.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-245.js
index ad2a61ac9..9684f81e7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-245.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-245.js
@@ -18,27 +18,27 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "1", {
- value: 3,
- writable: false,
- configurable: false
+ value: 3,
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperty(arrObj, "1", {
- value: "abc"
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "1", {
+ value: "abc"
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "1", 3);
+ verifyEqualTo(arrObj, "1", 3);
- verifyNotWritable(arrObj, "1");
+ verifyNotWritable(arrObj, "1");
- verifyNotEnumerable(arrObj, "1");
+ verifyNotEnumerable(arrObj, "1");
- verifyNotConfigurable(arrObj, "1");
+ verifyNotConfigurable(arrObj, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-246.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-246.js
index 3d26d0479..caefee79c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-246.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-246.js
@@ -17,26 +17,26 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "1", {
- value: -0
+ value: -0
});
try {
- Object.defineProperty(arrObj, "1", {
- value: +0
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "1", {
+ value: +0
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "1", -0);
+ verifyEqualTo(arrObj, "1", -0);
- verifyNotWritable(arrObj, "1");
+ verifyNotWritable(arrObj, "1");
- verifyNotEnumerable(arrObj, "1");
+ verifyNotEnumerable(arrObj, "1");
- verifyNotConfigurable(arrObj, "1");
+ verifyNotConfigurable(arrObj, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-247.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-247.js
index 91f7cec22..0bec01913 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-247.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-247.js
@@ -17,26 +17,26 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "1", {
- value: +0
+ value: +0
});
try {
- Object.defineProperty(arrObj, "1", {
- value: -0
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "1", {
+ value: -0
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "1", +0);
+ verifyEqualTo(arrObj, "1", +0);
- verifyNotWritable(arrObj, "1");
+ verifyNotWritable(arrObj, "1");
- verifyNotEnumerable(arrObj, "1");
+ verifyNotEnumerable(arrObj, "1");
- verifyNotConfigurable(arrObj, "1");
+ verifyNotConfigurable(arrObj, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-248.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-248.js
index e30b88ebf..8467c4e60 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-248.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-248.js
@@ -17,25 +17,25 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "1", {
- value: 12
+ value: 12
});
try {
- Object.defineProperty(arrObj, "1", {
- value: 15
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "1", {
+ value: 15
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "1", 12);
+ verifyEqualTo(arrObj, "1", 12);
- verifyNotWritable(arrObj, "1");
+ verifyNotWritable(arrObj, "1");
- verifyNotEnumerable(arrObj, "1");
+ verifyNotEnumerable(arrObj, "1");
- verifyNotConfigurable(arrObj, "1");
+ verifyNotConfigurable(arrObj, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-249.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-249.js
index 6b3c2a884..5987bb657 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-249.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-249.js
@@ -17,26 +17,25 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "1", {
- value: "abc"
+ value: "abc"
});
try {
- Object.defineProperty(arrObj, "1", {
- value: "fgh"
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "1", {
+ value: "fgh"
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "1", "abc");
+ verifyEqualTo(arrObj, "1", "abc");
- verifyNotWritable(arrObj, "1");
+ verifyNotWritable(arrObj, "1");
- verifyNotEnumerable(arrObj, "1");
+ verifyNotEnumerable(arrObj, "1");
- verifyNotConfigurable(arrObj, "1");
+ verifyNotConfigurable(arrObj, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-25.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-25.js
index 0dafb044a..1d9d42a44 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-25.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-25.js
@@ -8,22 +8,22 @@ description: >
an inherited accessor property (8.12.9 step 1)
---*/
- var proto = {};
- Object.defineProperty(proto, "foo", {
- get: function () { },
- configurable: true
- });
+var proto = {};
+Object.defineProperty(proto, "foo", {
+ get: function() {},
+ configurable: true
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var obj = new ConstructFun();
- Object.defineProperty(obj, "foo", {
- value: 11,
- configurable: false
- });
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var obj = new ConstructFun();
+Object.defineProperty(obj, "foo", {
+ value: 11,
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "foo", {
- configurable: true
- });
+ Object.defineProperty(obj, "foo", {
+ configurable: true
+ });
});
assert.sameValue(obj.foo, 11, 'obj.foo');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-250.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-250.js
index 9a50cf741..607e0d752 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-250.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-250.js
@@ -17,25 +17,25 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "1", {
- value: false
+ value: false
});
try {
- Object.defineProperty(arrObj, "1", {
- value: true
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "1", {
+ value: true
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "1", false);
+ verifyEqualTo(arrObj, "1", false);
- verifyNotWritable(arrObj, "1");
+ verifyNotWritable(arrObj, "1");
- verifyNotEnumerable(arrObj, "1");
+ verifyNotEnumerable(arrObj, "1");
- verifyNotConfigurable(arrObj, "1");
+ verifyNotConfigurable(arrObj, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-251.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-251.js
index 6d5de0343..23fdaab4c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-251.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-251.js
@@ -15,27 +15,30 @@ includes: [propertyHelper.js]
---*/
var arrObj = [];
-var obj = { length: 10 };
+var obj = {
+ length: 10
+};
Object.defineProperty(arrObj, "1", {
- value: obj
+ value: obj
});
try {
- Object.defineProperty(arrObj, "1", { value: {} });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "1", {
+ value: {}
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "1", obj);
+ verifyEqualTo(arrObj, "1", obj);
- verifyNotWritable(arrObj, "1");
+ verifyNotWritable(arrObj, "1");
- verifyNotEnumerable(arrObj, "1");
+ verifyNotEnumerable(arrObj, "1");
- verifyNotConfigurable(arrObj, "1");
+ verifyNotConfigurable(arrObj, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-252.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-252.js
index 3454a5e9c..4d9f341fe 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-252.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-252.js
@@ -17,27 +17,27 @@ includes: [propertyHelper.js]
var arrObj = [];
function setFunc(value) {
- arrObj.setVerifyHelpProp = value;
+ arrObj.setVerifyHelpProp = value;
}
Object.defineProperty(arrObj, "1", {
- set: setFunc
+ set: setFunc
});
try {
- Object.defineProperty(arrObj, "1", {
- set: function () { }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "1", {
+ set: function() {}
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyWritable(arrObj, "1", "setVerifyHelpProp");
+ verifyWritable(arrObj, "1", "setVerifyHelpProp");
- verifyNotEnumerable(arrObj, "1");
+ verifyNotEnumerable(arrObj, "1");
- verifyNotConfigurable(arrObj, "1");
+ verifyNotConfigurable(arrObj, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-253.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-253.js
index be181bb01..3885a37c5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-253.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-253.js
@@ -14,29 +14,30 @@ includes: [propertyHelper.js]
---*/
var arrObj = [];
+
function getFunc() {
- return 12;
+ return 12;
}
Object.defineProperty(arrObj, "1", {
- get: getFunc,
- set: undefined
+ get: getFunc,
+ set: undefined
});
try {
- Object.defineProperty(arrObj, "1", {
- set: function () { }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "1", {
+ set: function() {}
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "1", getFunc());
+ verifyEqualTo(arrObj, "1", getFunc());
- verifyNotEnumerable(arrObj, "1");
+ verifyNotEnumerable(arrObj, "1");
- verifyNotConfigurable(arrObj, "1");
+ verifyNotConfigurable(arrObj, "1");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-254.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-254.js
index a12ad1cc8..233b2deac 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-254.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-254.js
@@ -16,12 +16,12 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "1", {
- set: undefined
+ set: undefined
});
assert(arrObj.hasOwnProperty("1"));
Object.defineProperty(arrObj, "1", {
- set: undefined
+ set: undefined
});
var desc = Object.getOwnPropertyDescriptor(arrObj, "1");
@@ -31,4 +31,3 @@ assert(desc.hasOwnProperty("set") && typeof desc.set === "undefined");
verifyNotEnumerable(arrObj, "1");
verifyNotConfigurable(arrObj, "1");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-255.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-255.js
index b82ea6fd2..054edeca8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-255.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-255.js
@@ -17,31 +17,30 @@ includes: [propertyHelper.js]
var arrObj = [];
function getFunc() {
- return 12;
+ return 12;
}
Object.defineProperty(arrObj, "1", {
- get: getFunc
+ get: getFunc
});
try {
- Object.defineProperty(arrObj, "1", {
- get: function () {
- return 14;
- }
- });
+ Object.defineProperty(arrObj, "1", {
+ get: function() {
+ return 14;
+ }
+ });
- $ERROR("Expected TypeError");
+ $ERROR("Expected TypeError");
} catch (e) {
- assert(e instanceof TypeError);
- assert(arrObj.hasOwnProperty("1"));
+ assert(e instanceof TypeError);
+ assert(arrObj.hasOwnProperty("1"));
- var desc = Object.getOwnPropertyDescriptor(arrObj, "1");
+ var desc = Object.getOwnPropertyDescriptor(arrObj, "1");
- assert(arrObj[1] === getFunc());
+ assert(arrObj[1] === getFunc());
- assert(desc.hasOwnProperty("set") && typeof desc.set === "undefined");
+ assert(desc.hasOwnProperty("set") && typeof desc.set === "undefined");
- verifyNotEnumerable(arrObj, "1");
- verifyNotConfigurable(arrObj, "1");
+ verifyNotEnumerable(arrObj, "1");
+ verifyNotConfigurable(arrObj, "1");
}
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-256.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-256.js
index b362fd4c1..5082b79ff 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-256.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-256.js
@@ -14,30 +14,30 @@ includes: [propertyHelper.js]
---*/
var arrObj = [];
+
function getFunc() {
- return 12;
+ return 12;
}
Object.defineProperty(arrObj, "1", {
- get: getFunc
+ get: getFunc
});
try {
- Object.defineProperty(arrObj, "1", {
- get: undefined
- });
- $ERROR("Expected TypeError");
+ Object.defineProperty(arrObj, "1", {
+ get: undefined
+ });
+ $ERROR("Expected TypeError");
} catch (e) {
- assert(e instanceof TypeError);
- assert(arrObj.hasOwnProperty("1"));
+ assert(e instanceof TypeError);
+ assert(arrObj.hasOwnProperty("1"));
- var desc = Object.getOwnPropertyDescriptor(arrObj, "1");
+ var desc = Object.getOwnPropertyDescriptor(arrObj, "1");
- assert(arrObj[1] === getFunc());
- assert(desc.hasOwnProperty("set") && typeof desc.set === "undefined");
+ assert(arrObj[1] === getFunc());
+ assert(desc.hasOwnProperty("set") && typeof desc.set === "undefined");
- verifyNotWritable(arrObj, "1");
+ verifyNotWritable(arrObj, "1");
- verifyNotConfigurable(arrObj, "1");
+ verifyNotConfigurable(arrObj, "1");
}
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-257.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-257.js
index 37aafce38..d8563de26 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-257.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-257.js
@@ -14,18 +14,19 @@ includes: [propertyHelper.js]
---*/
var arrObj = [];
+
function setFunc(value) {
- arrObj.setVerifyHelpProp = value;
+ arrObj.setVerifyHelpProp = value;
}
Object.defineProperty(arrObj, "1", {
- get: undefined,
- set: setFunc,
- configurable: false
+ get: undefined,
+ set: setFunc,
+ configurable: false
});
Object.defineProperty(arrObj, "1", {
- get: undefined
+ get: undefined
});
verifyWritable(arrObj, "1", "setVerifyHelpProp");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-258.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-258.js
index 53d53f56e..fc823796a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-258.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-258.js
@@ -15,7 +15,7 @@ includes: [propertyHelper.js]
var arrObj = [100];
Object.defineProperty(arrObj, "0", {
- value: 200
+ value: 200
});
verifyEqualTo(arrObj, "0", 200);
@@ -24,4 +24,3 @@ verifyWritable(arrObj, "0");
verifyEnumerable(arrObj, "0");
verifyConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-259.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-259.js
index d7d3f6160..11d17e672 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-259.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-259.js
@@ -15,7 +15,7 @@ includes: [propertyHelper.js]
var arrObj = [100];
Object.defineProperty(arrObj, "0", {
- value: undefined
+ value: undefined
});
verifyEqualTo(arrObj, "0", undefined);
@@ -24,4 +24,3 @@ verifyWritable(arrObj, "0");
verifyEnumerable(arrObj, "0");
verifyConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-26.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-26.js
index 5a6c52ba5..42cd36095 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-26.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-26.js
@@ -8,20 +8,20 @@ description: >
step 1)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", {
- get: function () {
- return 11;
- },
- configurable: false
- });
+Object.defineProperty(obj, "property", {
+ get: function() {
+ return 11;
+ },
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "property", {
- get: function () {
- return 12;
- },
- configurable: true
- });
+ Object.defineProperty(obj, "property", {
+ get: function() {
+ return 12;
+ },
+ configurable: true
+ });
});
assert.sameValue(obj.property, 11, 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-260.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-260.js
index 53b6be800..81452c8a3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-260.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-260.js
@@ -14,7 +14,7 @@ includes: [propertyHelper.js]
var arrObj = [undefined];
Object.defineProperty(arrObj, "0", {
- value: 100
+ value: 100
});
verifyEqualTo(arrObj, "0", 100);
@@ -23,4 +23,3 @@ verifyWritable(arrObj, "0");
verifyEnumerable(arrObj, "0");
verifyConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-261.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-261.js
index 22b6bde12..00983ec92 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-261.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-261.js
@@ -14,7 +14,7 @@ includes: [propertyHelper.js]
var arrObj = [100];
Object.defineProperty(arrObj, "0", {
- writable: false
+ writable: false
});
verifyEqualTo(arrObj, "0", 100);
@@ -23,4 +23,3 @@ verifyNotWritable(arrObj, "0");
verifyEnumerable(arrObj, "0");
verifyConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-262.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-262.js
index 200656186..3ab254e83 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-262.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-262.js
@@ -15,7 +15,7 @@ includes: [propertyHelper.js]
var arrObj = [100];
Object.defineProperty(arrObj, "0", {
- enumerable: false
+ enumerable: false
});
verifyEqualTo(arrObj, "0", 100);
@@ -24,4 +24,3 @@ verifyWritable(arrObj, "0");
verifyNotEnumerable(arrObj, "0");
verifyConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-263.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-263.js
index 9572c45b8..383acb95b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-263.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-263.js
@@ -15,7 +15,7 @@ includes: [propertyHelper.js]
var arrObj = [100];
Object.defineProperty(arrObj, "0", {
- configurable: false
+ configurable: false
});
verifyEqualTo(arrObj, "0", 100);
@@ -24,4 +24,3 @@ verifyWritable(arrObj, "0");
verifyEnumerable(arrObj, "0");
verifyNotConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-264.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-264.js
index 68c0c1b6b..cff7a2c80 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-264.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-264.js
@@ -14,9 +14,9 @@ includes: [propertyHelper.js]
var arrObj = [100];
Object.defineProperty(arrObj, "0", {
- writable: false,
- enumerable: false,
- configurable: false
+ writable: false,
+ enumerable: false,
+ configurable: false
});
verifyEqualTo(arrObj, "0", 100);
@@ -25,4 +25,3 @@ verifyNotWritable(arrObj, "0");
verifyNotEnumerable(arrObj, "0");
verifyNotConfigurable(arrObj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-265.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-265.js
index ea1fe6a87..e0c5c88cc 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-265.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-265.js
@@ -15,16 +15,16 @@ includes: [propertyHelper.js]
var arrObj = [];
function getFunc() {
- return 100;
+ return 100;
}
Object.defineProperty(arrObj, "0", {
- get: function () {
- return 12;
- },
- configurable: true
+ get: function() {
+ return 12;
+ },
+ configurable: true
});
Object.defineProperty(arrObj, "0", {
- get: getFunc
+ get: getFunc
});
verifyEqualTo(arrObj, "0", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-266.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-266.js
index 58c677ac6..404c0b27b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-266.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-266.js
@@ -13,17 +13,18 @@ includes: [propertyHelper.js]
var arrObj = [];
+
function getFunc() {
- return 12;
+ return 12;
}
Object.defineProperty(arrObj, "0", {
- get: getFunc,
- configurable: true
+ get: getFunc,
+ configurable: true
});
Object.defineProperty(arrObj, "0", {
- get: undefined
+ get: undefined
});
verifyNotEnumerable(arrObj, "0");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-267.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-267.js
index 22929edfa..0b277d2b3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-267.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-267.js
@@ -15,15 +15,15 @@ includes: [propertyHelper.js]
var arrObj = [];
function getFunc() {
- return 12;
+ return 12;
}
Object.defineProperty(arrObj, "0", {
- get: undefined,
- configurable: true
+ get: undefined,
+ configurable: true
});
Object.defineProperty(arrObj, "0", {
- get: getFunc
+ get: getFunc
});
verifyEqualTo(arrObj, "0", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-268.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-268.js
index 065e96b8a..77eb27765 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-268.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-268.js
@@ -15,15 +15,15 @@ includes: [propertyHelper.js]
var arrObj = [];
function setFunc(value) {
- arrObj.setVerifyHelpProp = value;
+ arrObj.setVerifyHelpProp = value;
}
Object.defineProperty(arrObj, "0", {
- set: function () { },
- configurable: true
+ set: function() {},
+ configurable: true
});
Object.defineProperty(arrObj, "0", {
- set: setFunc
+ set: setFunc
});
verifyWritable(arrObj, "0", "setVerifyHelpProp");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-269.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-269.js
index 377757089..d745c8ec7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-269.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-269.js
@@ -15,12 +15,12 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "0", {
- set: function () { },
- configurable: true
+ set: function() {},
+ configurable: true
});
Object.defineProperty(arrObj, "0", {
- set: undefined
+ set: undefined
});
verifyNotEnumerable(arrObj, "0");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-27.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-27.js
index 01f897d3b..b6064724d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-27.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-27.js
@@ -8,24 +8,24 @@ description: >
(8.12.9 step 1)
---*/
- var proto = {};
- Object.defineProperty(proto, "property", {
- get: function () {
- return 11;
- },
- configurable: false
- });
+var proto = {};
+Object.defineProperty(proto, "property", {
+ get: function() {
+ return 11;
+ },
+ configurable: false
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var obj = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var obj = new ConstructFun();
- Object.defineProperty(obj, "property", {
- get: function () {
- return 12;
- },
- configurable: true
- });
+Object.defineProperty(obj, "property", {
+ get: function() {
+ return 12;
+ },
+ configurable: true
+});
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert.sameValue(obj.property, 12, 'obj.property');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-270.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-270.js
index dcbb81896..2139b32e7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-270.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-270.js
@@ -15,16 +15,16 @@ includes: [propertyHelper.js]
var arrObj = [];
function setFunc(value) {
- arrObj.setVerifyHelpProp = value;
+ arrObj.setVerifyHelpProp = value;
}
Object.defineProperty(arrObj, "0", {
- set: undefined,
- configurable: true
+ set: undefined,
+ configurable: true
});
Object.defineProperty(arrObj, "0", {
- set: setFunc
+ set: setFunc
});
verifyWritable(arrObj, "0", "setVerifyHelpProp");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-271.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-271.js
index f61deec36..b6e062cfa 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-271.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-271.js
@@ -15,17 +15,17 @@ includes: [propertyHelper.js]
var arrObj = [];
function setFunc(value) {
- arrObj.setVerifyHelpProp = value;
+ arrObj.setVerifyHelpProp = value;
}
Object.defineProperty(arrObj, "0", {
- set: setFunc,
- enumerable: true,
- configurable: true
+ set: setFunc,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(arrObj, "0", {
- enumerable: false
+ enumerable: false
});
verifyWritable(arrObj, "0", "setVerifyHelpProp");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-272.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-272.js
index 9e3f26cc6..85c7d938e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-272.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-272.js
@@ -13,17 +13,18 @@ includes: [propertyHelper.js]
var arrObj = [];
+
function setFunc(value) {
- arrObj.setVerifyHelpProp = value;
+ arrObj.setVerifyHelpProp = value;
}
Object.defineProperty(arrObj, "0", {
- set: setFunc,
- configurable: true
+ set: setFunc,
+ configurable: true
});
Object.defineProperty(arrObj, "0", {
- configurable: false
+ configurable: false
});
verifyWritable(arrObj, "0", "setVerifyHelpProp");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-273.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-273.js
index bf3d1c439..96cd481ae 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-273.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-273.js
@@ -15,24 +15,25 @@ includes: [propertyHelper.js]
var arrObj = [];
function setFunc(value) {
- arrObj.setVerifyHelpProp = value;
+ arrObj.setVerifyHelpProp = value;
}
+
function getFunc() {
- return 12;
+ return 12;
}
Object.defineProperty(arrObj, "1", {
- get: function () {
- return 6;
- },
- set: setFunc,
- enumerable: true,
- configurable: true
+ get: function() {
+ return 6;
+ },
+ set: setFunc,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(arrObj, "1", {
- get: getFunc,
- enumerable: false,
- configurable: false
+ get: getFunc,
+ enumerable: false,
+ configurable: false
});
verifyEqualTo(arrObj, "1", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-274.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-274.js
index 3ffc0976a..fa14d9a5d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-274.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-274.js
@@ -10,12 +10,12 @@ description: >
(15.4.5.1 step 4.e)
---*/
- var arrObj = [];
- arrObj.length = 3; // default value of length: writable: true, configurable: false, enumerable: false
+var arrObj = [];
+arrObj.length = 3; // default value of length: writable: true, configurable: false, enumerable: false
- Object.defineProperty(arrObj, "1", {
- value: 14
- });
+Object.defineProperty(arrObj, "1", {
+ value: 14
+});
assert.sameValue(arrObj.length, 3, 'arrObj.length');
assert.sameValue(arrObj[1], 14, 'arrObj[1]');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-275.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-275.js
index 314b3a9a6..54a9dc7c4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-275.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-275.js
@@ -10,12 +10,12 @@ description: >
length property in 'O' (15.4.5.1 step 4.e.ii)
---*/
- var arrObj = [];
- arrObj.length = 3; // default value of length: writable: true, configurable: false, enumerable: false
+var arrObj = [];
+arrObj.length = 3; // default value of length: writable: true, configurable: false, enumerable: false
- Object.defineProperty(arrObj, "3", {
- value: 3
- });
+Object.defineProperty(arrObj, "3", {
+ value: 3
+});
assert.sameValue(arrObj.length, 4, 'arrObj.length');
assert.sameValue(arrObj[3], 3, 'arrObj[3]');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-276.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-276.js
index ec26b3097..fc39726c9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-276.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-276.js
@@ -10,11 +10,11 @@ description: >
the length property in 'O' (15.4.5.1 step 4.e.ii)
---*/
- var arrObj = [];
+var arrObj = [];
- Object.defineProperty(arrObj, "5", {
- value: 3
- });
+Object.defineProperty(arrObj, "5", {
+ value: 3
+});
assert.sameValue(arrObj.length, 6, 'arrObj.length');
assert.sameValue(arrObj[5], 3, 'arrObj[5]');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-277.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-277.js
index 63ad1e663..bd2d31b64 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-277.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-277.js
@@ -15,10 +15,10 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "property", {
- value: 12,
- writable: true,
- enumerable: true,
- configurable: true
+ value: 12,
+ writable: true,
+ enumerable: true,
+ configurable: true
});
verifyEqualTo(arrObj, "property", 12);
@@ -28,4 +28,3 @@ verifyWritable(arrObj, "property");
verifyEnumerable(arrObj, "property");
verifyConfigurable(arrObj, "property");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-278.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-278.js
index 663a41f2b..1a2a67150 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-278.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-278.js
@@ -14,17 +14,18 @@ includes: [propertyHelper.js]
var arrObj = [];
function getFunc() {
- return 12;
+ return 12;
}
+
function setFunc(value) {
- arrObj.setVerifyHelpProp = value;
+ arrObj.setVerifyHelpProp = value;
}
Object.defineProperty(arrObj, "property", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
});
verifyEqualTo(arrObj, "property", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-279.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-279.js
index 38d117e60..cc89be686 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-279.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-279.js
@@ -14,23 +14,24 @@ includes: [propertyHelper.js]
var arrObj = [];
function getFunc() {
- return 12;
+ return 12;
}
+
function setFunc(value) {
- arrObj.setVerifyHelpProp = value;
+ arrObj.setVerifyHelpProp = value;
}
Object.defineProperty(arrObj, "property", {
- get: function () {
- return 24;
- },
- enumerable: true,
- configurable: true
+ get: function() {
+ return 24;
+ },
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(arrObj, "property", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: false
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
});
verifyEqualTo(arrObj, "property", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-28.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-28.js
index e2918e4bb..8e4ce0c27 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-28.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-28.js
@@ -8,21 +8,21 @@ description: >
overrides an inherited data property (8.12.9 step 1)
---*/
- var proto = {};
- Object.defineProperty(proto, "foo", {
- value: 11,
- configurable: true
- });
+var proto = {};
+Object.defineProperty(proto, "foo", {
+ value: 11,
+ configurable: true
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var obj = new ConstructFun();
- Object.defineProperty(obj, "foo", {
- get: function () { },
- configurable: false
- });
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var obj = new ConstructFun();
+Object.defineProperty(obj, "foo", {
+ get: function() {},
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "foo", {
- configurable: true
- });
+ Object.defineProperty(obj, "foo", {
+ configurable: true
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-280.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-280.js
index 49ff7a928..b6001dca1 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-280.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-280.js
@@ -16,9 +16,9 @@ var arrObj = [];
arrObj.property = 12; // default value of attributes: writable: true, configurable: true, enumerable: true
Object.defineProperty(arrObj, "property", {
- writable: false,
- enumerable: false,
- configurable: false
+ writable: false,
+ enumerable: false,
+ configurable: false
});
verifyEqualTo(arrObj, "property", 12);
@@ -28,4 +28,3 @@ verifyNotWritable(arrObj, "property");
verifyNotEnumerable(arrObj, "property");
verifyNotConfigurable(arrObj, "property");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-281.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-281.js
index 8d56e858b..e222043de 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-281.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-281.js
@@ -15,24 +15,24 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "property", {
- value: 12
+ value: 12
});
try {
- Object.defineProperty(arrObj, "property", {
- value: 36
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "property", {
+ value: 36
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "property", 12);
+ verifyEqualTo(arrObj, "property", 12);
- verifyNotWritable(arrObj, "property");
+ verifyNotWritable(arrObj, "property");
- verifyNotEnumerable(arrObj, "property");
+ verifyNotEnumerable(arrObj, "property");
- verifyNotConfigurable(arrObj, "property");
+ verifyNotConfigurable(arrObj, "property");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-282.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-282.js
index 0d374be65..4aaa7cc07 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-282.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-282.js
@@ -15,24 +15,24 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "property", {
- writable: false
+ writable: false
});
try {
- Object.defineProperty(arrObj, "property", {
- writable: true
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "property", {
+ writable: true
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "property", undefined);
+ verifyEqualTo(arrObj, "property", undefined);
- verifyNotWritable(arrObj, "property");
+ verifyNotWritable(arrObj, "property");
- verifyNotEnumerable(arrObj, "property");
+ verifyNotEnumerable(arrObj, "property");
- verifyNotConfigurable(arrObj, "property");
+ verifyNotConfigurable(arrObj, "property");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-283.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-283.js
index ecc7280f6..f86d1ce0e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-283.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-283.js
@@ -14,25 +14,25 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "property", {
- value: 12,
- enumerable: false
+ value: 12,
+ enumerable: false
});
try {
- Object.defineProperty(arrObj, "property", {
- enumerable: true
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "property", {
+ enumerable: true
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "property", 12);
+ verifyEqualTo(arrObj, "property", 12);
- verifyNotWritable(arrObj, "property");
+ verifyNotWritable(arrObj, "property");
- verifyNotEnumerable(arrObj, "property");
+ verifyNotEnumerable(arrObj, "property");
- verifyNotConfigurable(arrObj, "property");
+ verifyNotConfigurable(arrObj, "property");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-284.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-284.js
index abc5fc8c9..1ef365e86 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-284.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-284.js
@@ -15,24 +15,24 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, "property", {
- value: 12
+ value: 12
});
try {
- Object.defineProperty(arrObj, "property", {
- configurable: true
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "property", {
+ configurable: true
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "property", 12);
+ verifyEqualTo(arrObj, "property", 12);
- verifyNotWritable(arrObj, "property");
+ verifyNotWritable(arrObj, "property");
- verifyNotEnumerable(arrObj, "property");
+ verifyNotEnumerable(arrObj, "property");
- verifyNotConfigurable(arrObj, "property");
+ verifyNotConfigurable(arrObj, "property");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-285.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-285.js
index 145ce3c7b..1de36f3b1 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-285.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-285.js
@@ -15,33 +15,34 @@ includes: [propertyHelper.js]
var arrObj = [];
function getFunc() {
- return 12;
+ return 12;
}
+
function setFunc(value) {
- arrObj.setVerifyHelpProp = value;
+ arrObj.setVerifyHelpProp = value;
}
Object.defineProperty(arrObj, "property", {
- get: getFunc,
- set: setFunc
+ get: getFunc,
+ set: setFunc
});
try {
- Object.defineProperty(arrObj, "property", {
- get: function () {
- return 36;
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "property", {
+ get: function() {
+ return 36;
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "property", getFunc());
+ verifyEqualTo(arrObj, "property", getFunc());
- verifyWritable(arrObj, "property", "setVerifyHelpProp");
+ verifyWritable(arrObj, "property", "setVerifyHelpProp");
- verifyNotEnumerable(arrObj, "property");
+ verifyNotEnumerable(arrObj, "property");
- verifyNotConfigurable(arrObj, "property");
+ verifyNotConfigurable(arrObj, "property");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-286.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-286.js
index 89daab9eb..529988204 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-286.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-286.js
@@ -15,25 +15,25 @@ includes: [propertyHelper.js]
var arrObj = [];
function setFunc(value) {
- arrObj.setVerifyHelpProp = value;
+ arrObj.setVerifyHelpProp = value;
}
Object.defineProperty(arrObj, "property", {
- set: setFunc
+ set: setFunc
});
try {
- Object.defineProperty(arrObj, "property", {
- set: function () {}
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "property", {
+ set: function() {}
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyWritable(arrObj, "property", "setVerifyHelpProp");
+ verifyWritable(arrObj, "property", "setVerifyHelpProp");
- verifyNotEnumerable(arrObj, "property");
+ verifyNotEnumerable(arrObj, "property");
- verifyNotConfigurable(arrObj, "property");
+ verifyNotConfigurable(arrObj, "property");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-287.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-287.js
index e1f3ffda4..354519f6b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-287.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-287.js
@@ -15,26 +15,26 @@ includes: [propertyHelper.js]
var arrObj = [];
function setFunc(value) {
- arrObj.setVerifyHelpProp = value;
+ arrObj.setVerifyHelpProp = value;
}
Object.defineProperty(arrObj, "property", {
- set: setFunc,
- enumerable: false
+ set: setFunc,
+ enumerable: false
});
try {
- Object.defineProperty(arrObj, "property", {
- enumerable: true
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "property", {
+ enumerable: true
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyWritable(arrObj, "property", "setVerifyHelpProp");
+ verifyWritable(arrObj, "property", "setVerifyHelpProp");
- verifyNotEnumerable(arrObj, "property");
+ verifyNotEnumerable(arrObj, "property");
- verifyNotConfigurable(arrObj, "property");
+ verifyNotConfigurable(arrObj, "property");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-288.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-288.js
index 0ab89201a..a0290cf04 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-288.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-288.js
@@ -15,26 +15,26 @@ includes: [propertyHelper.js]
var arrObj = [];
function setFunc(value) {
- arrObj.setVerifyHelpProp = value;
+ arrObj.setVerifyHelpProp = value;
}
Object.defineProperty(arrObj, "property", {
- set: setFunc,
- configurable: false
+ set: setFunc,
+ configurable: false
});
try {
- Object.defineProperty(arrObj, "property", {
- configurable: true
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "property", {
+ configurable: true
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyWritable(arrObj, "property", "setVerifyHelpProp");
+ verifyWritable(arrObj, "property", "setVerifyHelpProp");
- verifyNotEnumerable(arrObj, "property");
+ verifyNotEnumerable(arrObj, "property");
- verifyNotConfigurable(arrObj, "property");
+ verifyNotConfigurable(arrObj, "property");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-289-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-289-1.js
index 1549e47f4..e254dc76f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-289-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-289-1.js
@@ -13,25 +13,26 @@ description: >
includes: [propertyHelper.js]
---*/
-;(function (a, b, c) {
- delete arguments[0];
+;
+(function(a, b, c) {
+ delete arguments[0];
- Object.defineProperty(arguments, "0", {
- value: 10,
- writable: true,
- enumerable: true,
- configurable: true
- });
+ Object.defineProperty(arguments, "0", {
+ value: 10,
+ writable: true,
+ enumerable: true,
+ configurable: true
+ });
- if (a !== 0) {
- $ERROR("Expected a === 0, actually " + a);
- }
-
- verifyEqualTo(arguments, "0", 10);
+ if (a !== 0) {
+ $ERROR("Expected a === 0, actually " + a);
+ }
- verifyWritable(arguments, "0");
+ verifyEqualTo(arguments, "0", 10);
- verifyEnumerable(arguments, "0");
+ verifyWritable(arguments, "0");
- verifyConfigurable(arguments, "0");
+ verifyEnumerable(arguments, "0");
+
+ verifyConfigurable(arguments, "0");
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-289.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-289.js
index 084dc93ef..feef9e44e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-289.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-289.js
@@ -11,20 +11,19 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- delete arguments[0];
- Object.defineProperty(arguments, "0", {
- value: 10,
- writable: true,
- enumerable: true,
- configurable: true
- });
- verifyEqualTo(arguments, "0", 10);
+(function() {
+ delete arguments[0];
+ Object.defineProperty(arguments, "0", {
+ value: 10,
+ writable: true,
+ enumerable: true,
+ configurable: true
+ });
+ verifyEqualTo(arguments, "0", 10);
- verifyWritable(arguments, "0");
+ verifyWritable(arguments, "0");
- verifyEnumerable(arguments, "0");
+ verifyEnumerable(arguments, "0");
- verifyConfigurable(arguments, "0");
+ verifyConfigurable(arguments, "0");
}(0, 1, 2));
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-29.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-29.js
index 249380afc..e2553691a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-29.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-29.js
@@ -8,21 +8,21 @@ description: >
overrides an inherited accessor property (8.12.9 step 1)
---*/
- var proto = {};
- Object.defineProperty(proto, "foo", {
- get: function () { },
- configurable: true
- });
+var proto = {};
+Object.defineProperty(proto, "foo", {
+ get: function() {},
+ configurable: true
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var obj = new ConstructFun();
- Object.defineProperty(obj, "foo", {
- get: function () { },
- configurable: false
- });
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var obj = new ConstructFun();
+Object.defineProperty(obj, "foo", {
+ get: function() {},
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "foo", {
- configurable: true
- });
+ Object.defineProperty(obj, "foo", {
+ configurable: true
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-290-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-290-1.js
index 303a2570d..0cd20ff34 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-290-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-290-1.js
@@ -13,29 +13,31 @@ description: >
includes: [propertyHelper.js]
---*/
-(function (a, b, c) {
- delete arguments[0];
- function getFunc() {
- return 10;
- }
- function setFunc(value) {
- this.setVerifyHelpProp = value;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
- if (a !== 0) {
- $ERROR('Expected a === 0, actually ' + a);
- }
-
- verifyEqualTo(arguments, "0", getFunc());
-
- verifyWritable(arguments, "0", "setVerifyHelpProp");
-
- verifyEnumerable(arguments, "0");
-
- verifyConfigurable(arguments, "0");
+(function(a, b, c) {
+ delete arguments[0];
+
+ function getFunc() {
+ return 10;
+ }
+
+ function setFunc(value) {
+ this.setVerifyHelpProp = value;
+ }
+ Object.defineProperty(arguments, "0", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+ });
+ if (a !== 0) {
+ $ERROR('Expected a === 0, actually ' + a);
+ }
+
+ verifyEqualTo(arguments, "0", getFunc());
+
+ verifyWritable(arguments, "0", "setVerifyHelpProp");
+
+ verifyEnumerable(arguments, "0");
+
+ verifyConfigurable(arguments, "0");
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-290.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-290.js
index 6214d72d3..bb6143ac5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-290.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-290.js
@@ -11,25 +11,27 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- delete arguments[0];
- function getFunc() {
- return 10;
- }
- function setFunc(value) {
- this.setVerifyHelpProp = value;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
- verifyEqualTo(arguments, "0", getFunc());
+(function() {
+ delete arguments[0];
- verifyWritable(arguments, "0", "setVerifyHelpProp");
+ function getFunc() {
+ return 10;
+ }
- verifyEnumerable(arguments, "0");
+ function setFunc(value) {
+ this.setVerifyHelpProp = value;
+ }
+ Object.defineProperty(arguments, "0", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+ });
+ verifyEqualTo(arguments, "0", getFunc());
- verifyConfigurable(arguments, "0");
-}(0, 1, 2));
+ verifyWritable(arguments, "0", "setVerifyHelpProp");
+
+ verifyEnumerable(arguments, "0");
+
+ verifyConfigurable(arguments, "0");
+}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-291-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-291-1.js
index bbb1c94d7..4b75da8ad 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-291-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-291-1.js
@@ -12,30 +12,31 @@ description: >
includes: [propertyHelper.js]
---*/
-(function (a, b, c) {
- function getFunc1() {
- return 10;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc1,
- enumerable: true,
- configurable: true
- });
- function getFunc2() {
- return 20;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc2,
- enumerable: false,
- configurable: false
- });
- if (a !== 0) {
- $ERROR('Expected a === 0, actually ' + a);
- }
+(function(a, b, c) {
+ function getFunc1() {
+ return 10;
+ }
+ Object.defineProperty(arguments, "0", {
+ get: getFunc1,
+ enumerable: true,
+ configurable: true
+ });
- verifyEqualTo(arguments, "0", getFunc2());
+ function getFunc2() {
+ return 20;
+ }
+ Object.defineProperty(arguments, "0", {
+ get: getFunc2,
+ enumerable: false,
+ configurable: false
+ });
+ if (a !== 0) {
+ $ERROR('Expected a === 0, actually ' + a);
+ }
- verifyNotEnumerable(arguments, "0");
+ verifyEqualTo(arguments, "0", getFunc2());
- verifyNotConfigurable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
+
+ verifyNotConfigurable(arguments, "0");
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-291.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-291.js
index d63f267c7..17755a5de 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-291.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-291.js
@@ -11,26 +11,27 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- function getFunc1() {
- return 10;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc1,
- enumerable: true,
- configurable: true
- });
- function getFunc2() {
- return 20;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc2,
- enumerable: false,
- configurable: false
- });
- verifyEqualTo(arguments, "0", getFunc2());
+(function() {
+ function getFunc1() {
+ return 10;
+ }
+ Object.defineProperty(arguments, "0", {
+ get: getFunc1,
+ enumerable: true,
+ configurable: true
+ });
- verifyNotEnumerable(arguments, "0");
+ function getFunc2() {
+ return 20;
+ }
+ Object.defineProperty(arguments, "0", {
+ get: getFunc2,
+ enumerable: false,
+ configurable: false
+ });
+ verifyEqualTo(arguments, "0", getFunc2());
- verifyNotConfigurable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
+
+ verifyNotConfigurable(arguments, "0");
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-292-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-292-1.js
index a3d45777b..9c20ee459 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-292-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-292-1.js
@@ -13,23 +13,23 @@ includes: [propertyHelper.js]
flags: [noStrict]
---*/
-(function (a, b, c) {
- Object.defineProperty(arguments, "0", {
- value: 20,
- writable: false,
- enumerable: false,
- configurable: false
- });
+(function(a, b, c) {
+ Object.defineProperty(arguments, "0", {
+ value: 20,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ });
- if (a !== 20) {
- $ERROR('Expected a === 20, actually ' + a);
- }
+ if (a !== 20) {
+ $ERROR('Expected a === 20, actually ' + a);
+ }
- verifyEqualTo(arguments, "0", 20);
+ verifyEqualTo(arguments, "0", 20);
- verifyNotWritable(arguments, "0");
+ verifyNotWritable(arguments, "0");
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
+ verifyNotConfigurable(arguments, "0");
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-292-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-292-2.js
index d76c7156d..1e9fec466 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-292-2.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-292-2.js
@@ -13,23 +13,23 @@ includes: [propertyHelper.js]
flags: [onlyStrict]
---*/
-(function (a, b, c) {
- Object.defineProperty(arguments, "0", {
- value: 20,
- writable: false,
- enumerable: false,
- configurable: false
- });
+(function(a, b, c) {
+ Object.defineProperty(arguments, "0", {
+ value: 20,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ });
- if (a !== 0) {
- $ERROR('Expected a === 0, actually ' + a);
- }
+ if (a !== 0) {
+ $ERROR('Expected a === 0, actually ' + a);
+ }
- verifyEqualTo(arguments, "0", 20);
+ verifyEqualTo(arguments, "0", 20);
- verifyNotWritable(arguments, "0");
+ verifyNotWritable(arguments, "0");
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
+ verifyNotConfigurable(arguments, "0");
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-292.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-292.js
index 7af204af1..97aec8b7c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-292.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-292.js
@@ -11,19 +11,18 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- Object.defineProperty(arguments, "0", {
- value: 20,
- writable: false,
- enumerable: false,
- configurable: false
- });
- verifyEqualTo(arguments, "0", 20);
+(function() {
+ Object.defineProperty(arguments, "0", {
+ value: 20,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ });
+ verifyEqualTo(arguments, "0", 20);
- verifyNotWritable(arguments, "0");
+ verifyNotWritable(arguments, "0");
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
+ verifyNotConfigurable(arguments, "0");
}(0, 1, 2));
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-1.js
index 34617245b..b9e13227a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-1.js
@@ -12,20 +12,19 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false
- });
- Object.defineProperty(arguments, "0", {
- value: 20
- });
- verifyEqualTo(arguments, "0", 20);
+(function() {
+ Object.defineProperty(arguments, "0", {
+ value: 10,
+ writable: false
+ });
+ Object.defineProperty(arguments, "0", {
+ value: 20
+ });
+ verifyEqualTo(arguments, "0", 20);
- verifyNotWritable(arguments, "0");
+ verifyNotWritable(arguments, "0");
- verifyEnumerable(arguments, "0");
+ verifyEnumerable(arguments, "0");
- verifyConfigurable(arguments, "0");
+ verifyConfigurable(arguments, "0");
}(0, 1, 2));
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-2.js
index d994ce03e..10e87a7fb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-2.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-2.js
@@ -14,36 +14,36 @@ includes: [propertyHelper.js]
flags: [noStrict]
---*/
-(function (a, b, c) {
+(function(a, b, c) {
+ Object.defineProperty(arguments, "0", {
+ value: 10,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false,
- enumerable: false,
- configurable: false
+ value: 20
});
- try {
- Object.defineProperty(arguments, "0", {
- value: 20
- });
- $ERROR("Expected an exception.");
-
- } catch (e) {
+ $ERROR("Expected an exception.");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ } catch (e) {
- verifyEqualTo(arguments, "0", 10);
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
- verifyNotWritable(arguments, "0");
+ verifyEqualTo(arguments, "0", 10);
- verifyNotEnumerable(arguments, "0");
+ verifyNotWritable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- if (a !== 10) {
- $ERROR('Expected "a === 10", actually ' + a);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (a !== 10) {
+ $ERROR('Expected "a === 10", actually ' + a);
}
+
+ }
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-3.js
index 20aa562ff..9ba1c6d05 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-3.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-3.js
@@ -14,23 +14,23 @@ includes: [propertyHelper.js]
flags: [noStrict]
---*/
-(function (a, b, c) {
- Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false,
- });
- Object.defineProperty(arguments, "0", {
- value: 20
- });
- if (a !== 10) {
- $ERROR('Expected "a === 10", actually ' + a);
- }
+(function(a, b, c) {
+ Object.defineProperty(arguments, "0", {
+ value: 10,
+ writable: false,
+ });
+ Object.defineProperty(arguments, "0", {
+ value: 20
+ });
+ if (a !== 10) {
+ $ERROR('Expected "a === 10", actually ' + a);
+ }
- verifyEqualTo(arguments, "0", 20);
+ verifyEqualTo(arguments, "0", 20);
- verifyNotWritable(arguments, "0");
+ verifyNotWritable(arguments, "0");
- verifyEnumerable(arguments, "0");
+ verifyEnumerable(arguments, "0");
- verifyConfigurable(arguments, "0");
+ verifyConfigurable(arguments, "0");
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-4.js
index 2396c2d7b..384e59654 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-4.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-4.js
@@ -14,23 +14,23 @@ includes: [propertyHelper.js]
flags: [onlyStrict]
---*/
-(function (a, b, c) {
- Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false,
- });
- Object.defineProperty(arguments, "0", {
- value: 20
- });
- if (a !== 0) {
- $ERROR('Expected "a === 0", actually ' + a);
- }
+(function(a, b, c) {
+ Object.defineProperty(arguments, "0", {
+ value: 10,
+ writable: false,
+ });
+ Object.defineProperty(arguments, "0", {
+ value: 20
+ });
+ if (a !== 0) {
+ $ERROR('Expected "a === 0", actually ' + a);
+ }
- verifyEqualTo(arguments, "0", 20);
+ verifyEqualTo(arguments, "0", 20);
- verifyNotWritable(arguments, "0");
+ verifyNotWritable(arguments, "0");
- verifyEnumerable(arguments, "0");
+ verifyEnumerable(arguments, "0");
- verifyConfigurable(arguments, "0");
+ verifyConfigurable(arguments, "0");
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-293.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-293.js
index 14c60ff60..4f4245931 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-293.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-293.js
@@ -12,30 +12,30 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
+(function() {
+ Object.defineProperty(arguments, "0", {
+ value: 10,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false,
- enumerable: false,
- configurable: false
+ value: 20
});
- try {
- Object.defineProperty(arguments, "0", {
- value: 20
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", 10);
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", 10);
- verifyNotWritable(arguments, "0");
+ verifyNotWritable(arguments, "0");
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
-
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-294-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-294-1.js
index ad6a9bd02..7ece96050 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-294-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-294-1.js
@@ -14,37 +14,36 @@ includes: [propertyHelper.js]
flags: [noStrict]
---*/
-(function (a, b, c) {
+(function(a, b, c) {
+ Object.defineProperty(arguments, "0", {
+ value: 10,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false,
- enumerable: false,
- configurable: false
+ writable: true
});
- try {
- Object.defineProperty(arguments, "0", {
- writable: true
- });
- $ERROR("Expected an exception.");
- } catch (e) {
+ $ERROR("Expected an exception.");
+ } catch (e) {
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
-
- verifyEqualTo(arguments, "0", 10);
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
- verifyNotWritable(arguments, "0");
+ verifyEqualTo(arguments, "0", 10);
- verifyNotEnumerable(arguments, "0");
+ verifyNotWritable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- if (a !== 10) {
- $ERROR('Expected "a === 10", actually ' + a);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (a !== 10) {
+ $ERROR('Expected "a === 10", actually ' + a);
}
-}(0, 1, 2));
+ }
+}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-294.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-294.js
index e2447d157..33567f400 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-294.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-294.js
@@ -11,30 +11,30 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
+(function() {
+ Object.defineProperty(arguments, "0", {
+ value: 10,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false,
- enumerable: false,
- configurable: false
+ writable: true
});
- try {
- Object.defineProperty(arguments, "0", {
- writable: true
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", 10);
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", 10);
- verifyNotWritable(arguments, "0");
+ verifyNotWritable(arguments, "0");
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
-
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-295-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-295-1.js
index 55fca4ff6..c430603b4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-295-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-295-1.js
@@ -15,33 +15,33 @@ flags: [noStrict]
---*/
-(function (a, b, c) {
+(function(a, b, c) {
+ Object.defineProperty(arguments, "0", {
+ value: 10,
+ writable: false,
+ enumerable: true,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false,
- enumerable: true,
- configurable: false
+ enumerable: false
});
- try {
- Object.defineProperty(arguments, "0", {
- enumerable: false
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
- verifyEqualTo(arguments, "0", 10);
+ verifyEqualTo(arguments, "0", 10);
- verifyNotWritable(arguments, "0");
+ verifyNotWritable(arguments, "0");
- verifyEnumerable(arguments, "0");
+ verifyEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
+ verifyNotConfigurable(arguments, "0");
- if (a !== 10) {
- $ERROR('Expected "a === 10", actually ' + a);
- }
+ if (a !== 10) {
+ $ERROR('Expected "a === 10", actually ' + a);
}
+ }
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-295.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-295.js
index 0b224a8cf..1aec126bb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-295.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-295.js
@@ -11,30 +11,30 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
+(function() {
+ Object.defineProperty(arguments, "0", {
+ value: 10,
+ writable: false,
+ enumerable: true,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false,
- enumerable: true,
- configurable: false
+ enumerable: false
});
- try {
- Object.defineProperty(arguments, "0", {
- enumerable: false
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", 10);
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", 10);
- verifyNotWritable(arguments, "0");
+ verifyNotWritable(arguments, "0");
- verifyEnumerable(arguments, "0");
+ verifyEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
-
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-296-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-296-1.js
index 32abc599d..6c092c6ee 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-296-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-296-1.js
@@ -14,33 +14,33 @@ includes: [propertyHelper.js]
flags: [noStrict]
---*/
-(function (a, b, c) {
+(function(a, b, c) {
+ Object.defineProperty(arguments, "0", {
+ value: 10,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false,
- enumerable: false,
- configurable: false
+ configurable: true
});
- try {
- Object.defineProperty(arguments, "0", {
- configurable: true
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
- verifyEqualTo(arguments, "0", 10);
+ verifyEqualTo(arguments, "0", 10);
- verifyNotWritable(arguments, "0");
+ verifyNotWritable(arguments, "0");
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
+ verifyNotConfigurable(arguments, "0");
- if (a !== 10) {
- $ERROR('Expected "a === 10", actually ' + a);
- }
+ if (a !== 10) {
+ $ERROR('Expected "a === 10", actually ' + a);
}
+ }
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-296.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-296.js
index 0903bade7..6791a73d7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-296.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-296.js
@@ -11,30 +11,30 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
+(function() {
+ Object.defineProperty(arguments, "0", {
+ value: 10,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false,
- enumerable: false,
- configurable: false
+ configurable: true
});
- try {
- Object.defineProperty(arguments, "0", {
- configurable: true
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", 10);
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", 10);
- verifyNotWritable(arguments, "0");
+ verifyNotWritable(arguments, "0");
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
-
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-297-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-297-1.js
index f5236683f..184c9a58c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-297-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-297-1.js
@@ -13,37 +13,38 @@ description: >
includes: [propertyHelper.js]
---*/
-(function (a, b, c) {
- function getFunc1() {
- return 10;
- }
+(function(a, b, c) {
+ function getFunc1() {
+ return 10;
+ }
+ Object.defineProperty(arguments, "0", {
+ get: getFunc1,
+ enumerable: false,
+ configurable: false
+ });
+
+ function getFunc2() {
+ return 20;
+ }
+ try {
Object.defineProperty(arguments, "0", {
- get: getFunc1,
- enumerable: false,
- configurable: false
+ get: getFunc2
});
- function getFunc2() {
- return 20;
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ if (a !== 0) {
+ $ERROR('Expected a === 0, actually ' + a);
}
- try {
- Object.defineProperty(arguments, "0", {
- get: getFunc2
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- if (a !== 0) {
- $ERROR('Expected a === 0, actually ' + a);
- }
- verifyEqualTo(arguments, "0", getFunc1());
+ verifyEqualTo(arguments, "0", getFunc1());
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
-
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-297.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-297.js
index 55c7428fb..974e8ecdb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-297.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-297.js
@@ -11,33 +11,34 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- function getFunc1() {
- return 10;
- }
+(function() {
+ function getFunc1() {
+ return 10;
+ }
+ Object.defineProperty(arguments, "0", {
+ get: getFunc1,
+ enumerable: false,
+ configurable: false
+ });
+
+ function getFunc2() {
+ return 20;
+ }
+ try {
Object.defineProperty(arguments, "0", {
- get: getFunc1,
- enumerable: false,
- configurable: false
+ get: getFunc2
});
- function getFunc2() {
- return 20;
- }
- try {
- Object.defineProperty(arguments, "0", {
- get: getFunc2
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", getFunc1());
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", getFunc1());
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
-
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-298-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-298-1.js
index bddc9dde7..0b2827750 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-298-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-298-1.js
@@ -13,38 +13,39 @@ description: >
includes: [propertyHelper.js]
---*/
-(function (a, b, c) {
- function getFunc() {
- return 10;
- }
+(function(a, b, c) {
+ function getFunc() {
+ return 10;
+ }
+ Object.defineProperty(arguments, "0", {
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: false
+ });
+
+ function setFunc(value) {
+ this.setVerifyHelpProp = value;
+ }
+ try {
Object.defineProperty(arguments, "0", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: false
+ set: setFunc
});
- function setFunc(value) {
- this.setVerifyHelpProp = value;
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ if (a !== 0) {
+ $ERROR('Expected a === 0, actually ' + a);
}
- try {
- Object.defineProperty(arguments, "0", {
- set: setFunc
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- if (a !== 0) {
- $ERROR('Expected a === 0, actually ' + a);
- }
- verifyEqualTo(arguments, "0", getFunc());
+ verifyEqualTo(arguments, "0", getFunc());
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
-
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-298.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-298.js
index 1036ffbd6..14ac5ab6a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-298.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-298.js
@@ -11,34 +11,35 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- function getFunc() {
- return 10;
- }
+(function() {
+ function getFunc() {
+ return 10;
+ }
+ Object.defineProperty(arguments, "0", {
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: false
+ });
+
+ function setFunc(value) {
+ this.setVerifyHelpProp = value;
+ }
+ try {
Object.defineProperty(arguments, "0", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: false
+ set: setFunc
});
- function setFunc(value) {
- this.setVerifyHelpProp = value;
- }
- try {
- Object.defineProperty(arguments, "0", {
- set: setFunc
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", getFunc());
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", getFunc());
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
-
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-299-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-299-1.js
index 544a70266..671be8644 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-299-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-299-1.js
@@ -13,33 +13,33 @@ description: >
includes: [propertyHelper.js]
---*/
-(function (a, b, c) {
- function getFunc() {
- return 10;
- }
+(function(a, b, c) {
+ function getFunc() {
+ return 10;
+ }
+ Object.defineProperty(arguments, "0", {
+ get: getFunc,
+ enumerable: true,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "0", {
- get: getFunc,
- enumerable: true,
- configurable: false
+ enumerable: false
});
- try {
- Object.defineProperty(arguments, "0", {
- enumerable: false
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- if (a !== 0) {
- $ERROR('Expected a === 0, actually ' + a);
- }
- verifyEqualTo(arguments, "0", getFunc());
-
- verifyEnumerable(arguments, "0");
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ if (a !== 0) {
+ $ERROR('Expected a === 0, actually ' + a);
+ }
+ verifyEqualTo(arguments, "0", getFunc());
- verifyNotConfigurable(arguments, "0");
+ verifyEnumerable(arguments, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-299.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-299.js
index 0075afdc5..38c23592e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-299.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-299.js
@@ -11,30 +11,30 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- function getFunc() {
- return 10;
- }
+(function() {
+ function getFunc() {
+ return 10;
+ }
+ Object.defineProperty(arguments, "0", {
+ get: getFunc,
+ enumerable: true,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "0", {
- get: getFunc,
- enumerable: true,
- configurable: false
+ enumerable: false
});
- try {
- Object.defineProperty(arguments, "0", {
- enumerable: false
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", getFunc());
-
- verifyEnumerable(arguments, "0");
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", getFunc());
- verifyNotConfigurable(arguments, "0");
+ verifyEnumerable(arguments, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-3.js
index 0eb4b5756..845cc0173 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-3.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-3.js
@@ -12,17 +12,21 @@ description: >
values (accessor)(8.12.9 step 4.b.i)
---*/
- var o = {};
+var o = {};
- var getter = function () { return 1; };
- var desc = { get: getter };
+var getter = function() {
+ return 1;
+};
+var desc = {
+ get: getter
+};
- Object.defineProperty(o, "foo", desc);
+Object.defineProperty(o, "foo", desc);
- var propDesc = Object.getOwnPropertyDescriptor(o, "foo");
+var propDesc = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(typeof(propDesc.get), "function", 'typeof(propDesc.get)');
-assert.sameValue(propDesc.get, getter, 'propDesc.get'); // the getter must be the function that was provided
-assert.sameValue(propDesc.set, undefined, 'propDesc.set'); // undefined by default
-assert.sameValue(propDesc.enumerable, false, 'propDesc.enumerable'); // false by default
-assert.sameValue(propDesc.configurable, false, 'propDesc.configurable'); // false by default \ No newline at end of file
+assert.sameValue(propDesc.get, getter, 'propDesc.get'); // the getter must be the function that was provided
+assert.sameValue(propDesc.set, undefined, 'propDesc.set'); // undefined by default
+assert.sameValue(propDesc.enumerable, false, 'propDesc.enumerable'); // false by default
+assert.sameValue(propDesc.configurable, false, 'propDesc.configurable'); // false by default
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-30.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-30.js
index 3c42e298d..de6eda229 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-30.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-30.js
@@ -8,13 +8,13 @@ description: >
get function (8.12.9 step 1)
---*/
- var obj = {};
- Object.defineProperty(obj, "foo", {
- set: function () { },
- configurable: false
- });
+var obj = {};
+Object.defineProperty(obj, "foo", {
+ set: function() {},
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "foo", {
- configurable: true
- });
+ Object.defineProperty(obj, "foo", {
+ configurable: true
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-300-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-300-1.js
index 4f28e9379..04174e0bc 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-300-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-300-1.js
@@ -13,33 +13,33 @@ description: >
includes: [propertyHelper.js]
---*/
-(function (a, b, c) {
- function getFunc() {
- return 0;
- }
+(function(a, b, c) {
+ function getFunc() {
+ return 0;
+ }
+ Object.defineProperty(arguments, "0", {
+ get: getFunc,
+ enumerable: true,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "0", {
- get: getFunc,
- enumerable: true,
- configurable: false
+ configurable: true
});
- try {
- Object.defineProperty(arguments, "0", {
- configurable: true
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- if (a !== 0) {
- $ERROR('Expected a === 0, actually ' + a);
- }
- verifyEqualTo(arguments, "0", getFunc());
-
- verifyEnumerable(arguments, "0");
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ if (a !== 0) {
+ $ERROR('Expected a === 0, actually ' + a);
+ }
+ verifyEqualTo(arguments, "0", getFunc());
- verifyNotConfigurable(arguments, "0");
+ verifyEnumerable(arguments, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-300.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-300.js
index 2b7c8baaf..89f3607be 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-300.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-300.js
@@ -11,30 +11,30 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- function getFunc() {
- return 10;
- }
+(function() {
+ function getFunc() {
+ return 10;
+ }
+ Object.defineProperty(arguments, "0", {
+ get: getFunc,
+ enumerable: true,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "0", {
- get: getFunc,
- enumerable: true,
- configurable: false
+ configurable: true
});
- try {
- Object.defineProperty(arguments, "0", {
- configurable: true
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", getFunc());
-
- verifyEnumerable(arguments, "0");
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", getFunc());
- verifyNotConfigurable(arguments, "0");
+ verifyEnumerable(arguments, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-301-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-301-1.js
index 205a5dc25..68f714814 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-301-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-301-1.js
@@ -12,23 +12,22 @@ description: >
includes: [propertyHelper.js]
---*/
-(function (a, b, c) {
- delete arguments[0];
- Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false,
- enumerable: false,
- configurable: false
- });
- if (a !== 0) {
- $ERROR("Expected a === 0, actually " + a);
- }
- verifyEqualTo(arguments, "0", 10);
+(function(a, b, c) {
+ delete arguments[0];
+ Object.defineProperty(arguments, "0", {
+ value: 10,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ });
+ if (a !== 0) {
+ $ERROR("Expected a === 0, actually " + a);
+ }
+ verifyEqualTo(arguments, "0", 10);
- verifyNotWritable(arguments, "0");
+ verifyNotWritable(arguments, "0");
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
+ verifyNotConfigurable(arguments, "0");
}(0, 1, 2));
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-301.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-301.js
index 8bfc2369c..6dc4637f9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-301.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-301.js
@@ -12,20 +12,19 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- delete arguments[0];
- Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false,
- enumerable: false,
- configurable: false
- });
- verifyEqualTo(arguments, "0", 10);
+(function() {
+ delete arguments[0];
+ Object.defineProperty(arguments, "0", {
+ value: 10,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ });
+ verifyEqualTo(arguments, "0", 10);
- verifyNotWritable(arguments, "0");
+ verifyNotWritable(arguments, "0");
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
+ verifyNotConfigurable(arguments, "0");
}(0, 1, 2));
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-302-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-302-1.js
index 6d81eb5f8..2abc9a5ca 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-302-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-302-1.js
@@ -13,28 +13,30 @@ description: >
includes: [propertyHelper.js]
---*/
-(function (a, b, c) {
- delete arguments[0];
- function getFunc() {
- return 10;
- }
- function setFunc(value) {
- this.setVerifyHelpProp = value;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: false
- });
- if (a !== 0) {
- $ERROR('Expected a === 0, actually ' + a);
- }
- verifyEqualTo(arguments, "0", getFunc());
+(function(a, b, c) {
+ delete arguments[0];
- verifyWritable(arguments, "0", "setVerifyHelpProp");
+ function getFunc() {
+ return 10;
+ }
- verifyNotEnumerable(arguments, "0");
+ function setFunc(value) {
+ this.setVerifyHelpProp = value;
+ }
+ Object.defineProperty(arguments, "0", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
+ });
+ if (a !== 0) {
+ $ERROR('Expected a === 0, actually ' + a);
+ }
+ verifyEqualTo(arguments, "0", getFunc());
- verifyNotConfigurable(arguments, "0");
+ verifyWritable(arguments, "0", "setVerifyHelpProp");
+
+ verifyNotEnumerable(arguments, "0");
+
+ verifyNotConfigurable(arguments, "0");
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-302.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-302.js
index 516c7d377..fd92a564f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-302.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-302.js
@@ -12,25 +12,27 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- delete arguments[0];
- function getFunc() {
- return 10;
- }
- function setFunc(value) {
- this.setVerifyHelpProp = value;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: false
- });
- verifyEqualTo(arguments, "0", getFunc());
+(function() {
+ delete arguments[0];
- verifyWritable(arguments, "0", "setVerifyHelpProp");
+ function getFunc() {
+ return 10;
+ }
- verifyNotEnumerable(arguments, "0");
+ function setFunc(value) {
+ this.setVerifyHelpProp = value;
+ }
+ Object.defineProperty(arguments, "0", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
+ });
+ verifyEqualTo(arguments, "0", getFunc());
- verifyNotConfigurable(arguments, "0");
+ verifyWritable(arguments, "0", "setVerifyHelpProp");
+
+ verifyNotEnumerable(arguments, "0");
+
+ verifyNotConfigurable(arguments, "0");
}(0, 1, 2));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-303.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-303.js
index 2b8de6f01..33605ec77 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-303.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-303.js
@@ -12,26 +12,27 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- function getFunc1() {
- return 10;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc1,
- enumerable: true,
- configurable: true
- });
- function getFunc2() {
- return 20;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc2,
- enumerable: false,
- configurable: false
- });
- verifyEqualTo(arguments, "0", getFunc2());
+(function() {
+ function getFunc1() {
+ return 10;
+ }
+ Object.defineProperty(arguments, "0", {
+ get: getFunc1,
+ enumerable: true,
+ configurable: true
+ });
- verifyNotEnumerable(arguments, "0");
+ function getFunc2() {
+ return 20;
+ }
+ Object.defineProperty(arguments, "0", {
+ get: getFunc2,
+ enumerable: false,
+ configurable: false
+ });
+ verifyEqualTo(arguments, "0", getFunc2());
- verifyNotConfigurable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
+
+ verifyNotConfigurable(arguments, "0");
}());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-304.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-304.js
index 0700b56e0..c775554ae 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-304.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-304.js
@@ -12,19 +12,18 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- Object.defineProperty(arguments, "0", {
- value: 20,
- writable: false,
- enumerable: false,
- configurable: false
- });
- verifyEqualTo(arguments, "0", 20);
+(function() {
+ Object.defineProperty(arguments, "0", {
+ value: 20,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ });
+ verifyEqualTo(arguments, "0", 20);
- verifyNotWritable(arguments, "0");
+ verifyNotWritable(arguments, "0");
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
+ verifyNotConfigurable(arguments, "0");
}());
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-305.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-305.js
index 4c7193201..e02038bfa 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-305.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-305.js
@@ -12,30 +12,30 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
+(function() {
+ Object.defineProperty(arguments, "0", {
+ value: 0,
+ writable: false,
+ configurable: false
+ });
+
+ try {
Object.defineProperty(arguments, "0", {
- value: 0,
- writable: false,
- configurable: false
+ value: 10
});
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", 0);
- try {
- Object.defineProperty(arguments, "0", {
- value: 10
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", 0);
+ verifyNotWritable(arguments, "0");
- verifyNotWritable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotEnumerable(arguments, "0");
-
- verifyNotConfigurable(arguments, "0");
-
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-306.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-306.js
index 93ba566f1..5cd489d47 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-306.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-306.js
@@ -12,30 +12,30 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
+(function() {
+ Object.defineProperty(arguments, "0", {
+ value: 0,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "0", {
- value: 0,
- writable: false,
- enumerable: false,
- configurable: false
+ writable: true
});
- try {
- Object.defineProperty(arguments, "0", {
- writable: true
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", 0);
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", 0);
- verifyNotWritable(arguments, "0");
+ verifyNotWritable(arguments, "0");
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
-
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-307.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-307.js
index 82bdebdbf..043ae972f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-307.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-307.js
@@ -12,30 +12,30 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
+(function() {
+ Object.defineProperty(arguments, "0", {
+ value: 0,
+ writable: false,
+ enumerable: true,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "0", {
- value: 0,
- writable: false,
- enumerable: true,
- configurable: false
+ enumerable: false
});
- try {
- Object.defineProperty(arguments, "0", {
- enumerable: false
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", 0);
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", 0);
- verifyNotWritable(arguments, "0");
+ verifyNotWritable(arguments, "0");
- verifyEnumerable(arguments, "0");
+ verifyEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
-
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-308.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-308.js
index d38bd2a2a..33aff6bdb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-308.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-308.js
@@ -12,30 +12,30 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
+(function() {
+ Object.defineProperty(arguments, "0", {
+ value: 0,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "0", {
- value: 0,
- writable: false,
- enumerable: false,
- configurable: false
+ configurable: true
});
- try {
- Object.defineProperty(arguments, "0", {
- configurable: true
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", 0);
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", 0);
- verifyNotWritable(arguments, "0");
+ verifyNotWritable(arguments, "0");
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
-
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-309.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-309.js
index cc26f96be..f35c9908c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-309.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-309.js
@@ -12,33 +12,34 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- function getFunc1() {
- return 0;
- }
+(function() {
+ function getFunc1() {
+ return 0;
+ }
+ Object.defineProperty(arguments, "0", {
+ get: getFunc1,
+ enumerable: false,
+ configurable: false
+ });
+
+ function getFunc2() {
+ return 10;
+ }
+ try {
Object.defineProperty(arguments, "0", {
- get: getFunc1,
- enumerable: false,
- configurable: false
+ get: getFunc2
});
- function getFunc2() {
- return 10;
- }
- try {
- Object.defineProperty(arguments, "0", {
- get: getFunc2
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", getFunc1());
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", getFunc1());
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
-
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-31.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-31.js
index 3a2098e1e..5ba147afa 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-31.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-31.js
@@ -9,21 +9,21 @@ description: >
step 1)
---*/
- var proto = {};
- Object.defineProperty(proto, "foo", {
- get: function () { },
- configurable: true
- });
+var proto = {};
+Object.defineProperty(proto, "foo", {
+ get: function() {},
+ configurable: true
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var obj = new ConstructFun();
- Object.defineProperty(obj, "foo", {
- set: function () { },
- configurable: false
- });
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var obj = new ConstructFun();
+Object.defineProperty(obj, "foo", {
+ set: function() {},
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "foo", {
- configurable: true
- });
+ Object.defineProperty(obj, "foo", {
+ configurable: true
+ });
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-310.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-310.js
index bc48c6d5c..69301af5f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-310.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-310.js
@@ -12,34 +12,35 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- function getFunc() {
- return 0;
- }
+(function() {
+ function getFunc() {
+ return 0;
+ }
+ Object.defineProperty(arguments, "0", {
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: false
+ });
+
+ function setFunc(value) {
+ this.setVerifyHelpProp = value;
+ }
+ try {
Object.defineProperty(arguments, "0", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: false
+ set: setFunc
});
- function setFunc(value) {
- this.setVerifyHelpProp = value;
- }
- try {
- Object.defineProperty(arguments, "0", {
- set: setFunc
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", getFunc());
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", getFunc());
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
-
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-311.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-311.js
index ab56a5add..4d574987c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-311.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-311.js
@@ -12,30 +12,30 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- function getFunc() {
- return 0;
- }
+(function() {
+ function getFunc() {
+ return 0;
+ }
+ Object.defineProperty(arguments, "0", {
+ get: getFunc,
+ enumerable: true,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "0", {
- get: getFunc,
- enumerable: true,
- configurable: false
+ enumerable: false
});
- try {
- Object.defineProperty(arguments, "0", {
- enumerable: false
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", getFunc());
-
- verifyEnumerable(arguments, "0");
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", getFunc());
- verifyNotConfigurable(arguments, "0");
+ verifyEnumerable(arguments, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-312.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-312.js
index 68a0e4479..a78e3f2c5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-312.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-312.js
@@ -12,29 +12,28 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- function getFunc() {
- }
+(function() {
+ function getFunc() {}
+ Object.defineProperty(arguments, "0", {
+ get: getFunc,
+ enumerable: true,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "0", {
- get: getFunc,
- enumerable: true,
- configurable: false
+ configurable: true
});
- try {
- Object.defineProperty(arguments, "0", {
- configurable: true
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", getFunc());
-
- verifyEnumerable(arguments, "0");
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", getFunc());
- verifyNotConfigurable(arguments, "0");
+ verifyEnumerable(arguments, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "0");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-313-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-313-1.js
index 7385b374d..7e90583b8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-313-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-313-1.js
@@ -11,19 +11,18 @@ description: >
includes: [propertyHelper.js]
---*/
-(function (a, b, c) {
- Object.defineProperty(arguments, "genericProperty", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
- });
- verifyEqualTo(arguments, "genericProperty", 1001);
+(function(a, b, c) {
+ Object.defineProperty(arguments, "genericProperty", {
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
+ });
+ verifyEqualTo(arguments, "genericProperty", 1001);
- verifyWritable(arguments, "genericProperty");
+ verifyWritable(arguments, "genericProperty");
- verifyEnumerable(arguments, "genericProperty");
+ verifyEnumerable(arguments, "genericProperty");
- verifyConfigurable(arguments, "genericProperty");
+ verifyConfigurable(arguments, "genericProperty");
}(1, 2, 3));
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-313.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-313.js
index cbe180e17..05d378ee2 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-313.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-313.js
@@ -11,19 +11,18 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- Object.defineProperty(arguments, "genericProperty", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
- });
- verifyEqualTo(arguments, "genericProperty", 1001);
+(function() {
+ Object.defineProperty(arguments, "genericProperty", {
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
+ });
+ verifyEqualTo(arguments, "genericProperty", 1001);
- verifyWritable(arguments, "genericProperty");
+ verifyWritable(arguments, "genericProperty");
- verifyEnumerable(arguments, "genericProperty");
+ verifyEnumerable(arguments, "genericProperty");
- verifyConfigurable(arguments, "genericProperty");
+ verifyConfigurable(arguments, "genericProperty");
}(1, 2, 3));
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-314-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-314-1.js
index 97b466ce6..8ed0c58c0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-314-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-314-1.js
@@ -11,24 +11,25 @@ description: >
includes: [propertyHelper.js]
---*/
-(function (a, b, c) {
- function getFunc() {
- return "getFunctionString";
- }
- function setFunc(value) {
- this.testgetFunction = value;
- }
- Object.defineProperty(arguments, "genericProperty", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
- verifyEqualTo(arguments, "genericProperty", getFunc());
+(function(a, b, c) {
+ function getFunc() {
+ return "getFunctionString";
+ }
- verifyWritable(arguments, "genericProperty", "testgetFunction");
+ function setFunc(value) {
+ this.testgetFunction = value;
+ }
+ Object.defineProperty(arguments, "genericProperty", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+ });
+ verifyEqualTo(arguments, "genericProperty", getFunc());
- verifyEnumerable(arguments, "genericProperty");
+ verifyWritable(arguments, "genericProperty", "testgetFunction");
- verifyConfigurable(arguments, "genericProperty");
+ verifyEnumerable(arguments, "genericProperty");
+
+ verifyConfigurable(arguments, "genericProperty");
}(1, 2, 3));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-314.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-314.js
index a7ea9e957..916707797 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-314.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-314.js
@@ -11,24 +11,25 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- function getFunc() {
- return "getFunctionString";
- }
- function setFunc(value) {
- this.testgetFunction = value;
- }
- Object.defineProperty(arguments, "genericProperty", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
- verifyEqualTo(arguments, "genericProperty", getFunc());
+(function() {
+ function getFunc() {
+ return "getFunctionString";
+ }
- verifyWritable(arguments, "genericProperty", "testgetFunction");
+ function setFunc(value) {
+ this.testgetFunction = value;
+ }
+ Object.defineProperty(arguments, "genericProperty", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+ });
+ verifyEqualTo(arguments, "genericProperty", getFunc());
- verifyEnumerable(arguments, "genericProperty");
+ verifyWritable(arguments, "genericProperty", "testgetFunction");
- verifyConfigurable(arguments, "genericProperty");
+ verifyEnumerable(arguments, "genericProperty");
+
+ verifyConfigurable(arguments, "genericProperty");
}(1, 2, 3));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-315-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-315-1.js
index d809fe96b..a223dc3d4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-315-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-315-1.js
@@ -11,38 +11,40 @@ description: >
includes: [propertyHelper.js]
---*/
-(function (a, b, c) {
- Object.defineProperty(arguments, "genericProperty", {
- get: function () {
- return 1001;
- },
- set: function (value) {
- this.testgetFunction1 = value;
- },
- enumerable: true,
- configurable: true
- });
- function getFunc() {
- return "getFunctionString";
- }
- function setFunc(value) {
- this.testgetFunction = value;
- }
- Object.defineProperty(arguments, "genericProperty", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: false
- });
- if (c !== 3) {
- $ERROR('Expected c === 3, actually ' + c);
- }
-
- verifyEqualTo(arguments, "genericProperty", getFunc());
-
- verifyWritable(arguments, "genericProperty", "testgetFunction");
-
- verifyNotEnumerable(arguments, "genericProperty");
-
- verifyNotConfigurable(arguments, "genericProperty");
+(function(a, b, c) {
+ Object.defineProperty(arguments, "genericProperty", {
+ get: function() {
+ return 1001;
+ },
+ set: function(value) {
+ this.testgetFunction1 = value;
+ },
+ enumerable: true,
+ configurable: true
+ });
+
+ function getFunc() {
+ return "getFunctionString";
+ }
+
+ function setFunc(value) {
+ this.testgetFunction = value;
+ }
+ Object.defineProperty(arguments, "genericProperty", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
+ });
+ if (c !== 3) {
+ $ERROR('Expected c === 3, actually ' + c);
+ }
+
+ verifyEqualTo(arguments, "genericProperty", getFunc());
+
+ verifyWritable(arguments, "genericProperty", "testgetFunction");
+
+ verifyNotEnumerable(arguments, "genericProperty");
+
+ verifyNotConfigurable(arguments, "genericProperty");
}(1, 2, 3));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-315.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-315.js
index a6986d75b..023026644 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-315.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-315.js
@@ -11,34 +11,36 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- Object.defineProperty(arguments, "genericProperty", {
- get: function () {
- return 1001;
- },
- set: function (value) {
- this.testgetFunction1 = value;
- },
- enumerable: true,
- configurable: true
- });
- function getFunc() {
- return "getFunctionString";
- }
- function setFunc(value) {
- this.testgetFunction = value;
- }
- Object.defineProperty(arguments, "genericProperty", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: false
- });
- verifyEqualTo(arguments, "genericProperty", getFunc());
+(function() {
+ Object.defineProperty(arguments, "genericProperty", {
+ get: function() {
+ return 1001;
+ },
+ set: function(value) {
+ this.testgetFunction1 = value;
+ },
+ enumerable: true,
+ configurable: true
+ });
- verifyWritable(arguments, "genericProperty", "testgetFunction");
+ function getFunc() {
+ return "getFunctionString";
+ }
- verifyNotEnumerable(arguments, "genericProperty");
+ function setFunc(value) {
+ this.testgetFunction = value;
+ }
+ Object.defineProperty(arguments, "genericProperty", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
+ });
+ verifyEqualTo(arguments, "genericProperty", getFunc());
- verifyNotConfigurable(arguments, "genericProperty");
+ verifyWritable(arguments, "genericProperty", "testgetFunction");
+
+ verifyNotEnumerable(arguments, "genericProperty");
+
+ verifyNotConfigurable(arguments, "genericProperty");
}(1, 2, 3));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-316-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-316-1.js
index e412d2e31..3b84cf6e3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-316-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-316-1.js
@@ -11,24 +11,23 @@ description: >
includes: [propertyHelper.js]
---*/
-(function (a, b, c) {
- Object.defineProperty(arguments, "genericProperty", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(arguments, "genericProperty", {
- value: 1002,
- enumerable: false,
- configurable: false
- });
- verifyEqualTo(arguments, "genericProperty", 1002);
+(function(a, b, c) {
+ Object.defineProperty(arguments, "genericProperty", {
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(arguments, "genericProperty", {
+ value: 1002,
+ enumerable: false,
+ configurable: false
+ });
+ verifyEqualTo(arguments, "genericProperty", 1002);
- verifyWritable(arguments, "genericProperty");
+ verifyWritable(arguments, "genericProperty");
- verifyNotEnumerable(arguments, "genericProperty");
+ verifyNotEnumerable(arguments, "genericProperty");
- verifyNotConfigurable(arguments, "genericProperty");
+ verifyNotConfigurable(arguments, "genericProperty");
}(1, 2, 3));
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-316.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-316.js
index 0b80a5b24..5383d137e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-316.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-316.js
@@ -11,24 +11,23 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- Object.defineProperty(arguments, "genericProperty", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(arguments, "genericProperty", {
- value: 1002,
- enumerable: false,
- configurable: false
- });
- verifyEqualTo(arguments, "genericProperty", 1002);
+(function() {
+ Object.defineProperty(arguments, "genericProperty", {
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(arguments, "genericProperty", {
+ value: 1002,
+ enumerable: false,
+ configurable: false
+ });
+ verifyEqualTo(arguments, "genericProperty", 1002);
- verifyWritable(arguments, "genericProperty");
+ verifyWritable(arguments, "genericProperty");
- verifyNotEnumerable(arguments, "genericProperty");
+ verifyNotEnumerable(arguments, "genericProperty");
- verifyNotConfigurable(arguments, "genericProperty");
+ verifyNotConfigurable(arguments, "genericProperty");
}(1, 2, 3));
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-317-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-317-1.js
index 542b7ca83..b8263cf93 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-317-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-317-1.js
@@ -12,33 +12,33 @@ description: >
includes: [propertyHelper.js]
---*/
-(function (a, b, c) {
+(function(a, b, c) {
+ Object.defineProperty(arguments, "genericProperty", {
+ value: 1001,
+ writable: false,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "genericProperty", {
- value: 1001,
- writable: false,
- configurable: false
+ value: 1002
});
- try {
- Object.defineProperty(arguments, "genericProperty", {
- value: 1002
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- if (b !== 2) {
- $ERROR('Expected "b === 2;", actually ' + b);
- }
-
- verifyEqualTo(arguments, "genericProperty", 1001);
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ if (b !== 2) {
+ $ERROR('Expected "b === 2;", actually ' + b);
+ }
- verifyNotWritable(arguments, "genericProperty");
+ verifyEqualTo(arguments, "genericProperty", 1001);
- verifyNotEnumerable(arguments, "genericProperty");
+ verifyNotWritable(arguments, "genericProperty");
- verifyNotConfigurable(arguments, "genericProperty");
+ verifyNotEnumerable(arguments, "genericProperty");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "genericProperty");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(1, 2, 3));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-317.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-317.js
index 829f23872..737aa02bd 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-317.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-317.js
@@ -11,29 +11,29 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
+(function() {
+ Object.defineProperty(arguments, "genericProperty", {
+ value: 1001,
+ writable: false,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "genericProperty", {
- value: 1001,
- writable: false,
- configurable: false
+ value: 1002
});
- try {
- Object.defineProperty(arguments, "genericProperty", {
- value: 1002
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "genericProperty", 1001);
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "genericProperty", 1001);
- verifyNotWritable(arguments, "genericProperty");
+ verifyNotWritable(arguments, "genericProperty");
- verifyNotEnumerable(arguments, "genericProperty");
+ verifyNotEnumerable(arguments, "genericProperty");
- verifyNotConfigurable(arguments, "genericProperty");
-
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "genericProperty");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(1, 2, 3));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-318-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-318-1.js
index 15a8a573a..563f91211 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-318-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-318-1.js
@@ -12,28 +12,28 @@ description: >
includes: [propertyHelper.js]
---*/
-(function (a, b, c) {
+(function(a, b, c) {
+ Object.defineProperty(arguments, "genericProperty", {
+ writable: false,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "genericProperty", {
- writable: false,
- configurable: false
+ writable: true
});
- try {
- Object.defineProperty(arguments, "genericProperty", {
- writable: true
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "genericProperty", undefined);
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "genericProperty", undefined);
- verifyNotWritable(arguments, "genericProperty");
+ verifyNotWritable(arguments, "genericProperty");
- verifyNotEnumerable(arguments, "genericProperty");
+ verifyNotEnumerable(arguments, "genericProperty");
- verifyNotConfigurable(arguments, "genericProperty");
-
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "genericProperty");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(1, 2, 3));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-318.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-318.js
index 68dd7dd69..8ffe4fac9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-318.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-318.js
@@ -11,30 +11,30 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
+(function() {
+ Object.defineProperty(arguments, "genericProperty", {
+ writable: false,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "genericProperty", {
- writable: false,
- configurable: false
+ writable: true
});
- try {
- Object.defineProperty(arguments, "genericProperty", {
- writable: true
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "genericProperty", undefined);
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "genericProperty", undefined);
- verifyNotWritable(arguments, "genericProperty");
+ verifyNotWritable(arguments, "genericProperty");
- verifyNotEnumerable(arguments, "genericProperty");
+ verifyNotEnumerable(arguments, "genericProperty");
- verifyNotConfigurable(arguments, "genericProperty");
+ verifyNotConfigurable(arguments, "genericProperty");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
-
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+ }
+
}(1, 2, 3));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-319-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-319-1.js
index 070ea10a9..43ba1dee9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-319-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-319-1.js
@@ -12,29 +12,29 @@ description: >
includes: [propertyHelper.js]
---*/
-(function (a, b, c) {
+(function(a, b, c) {
+ Object.defineProperty(arguments, "genericProperty", {
+ enumerable: true,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "genericProperty", {
- enumerable: true,
- configurable: false
+ enumerable: false
});
- try {
- Object.defineProperty(arguments, "genericProperty", {
- enumerable: false
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "genericProperty", undefined);
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "genericProperty", undefined);
- verifyNotWritable(arguments, "genericProperty");
+ verifyNotWritable(arguments, "genericProperty");
- verifyEnumerable(arguments, "genericProperty");
+ verifyEnumerable(arguments, "genericProperty");
- verifyNotConfigurable(arguments, "genericProperty");
+ verifyNotConfigurable(arguments, "genericProperty");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
-
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(1, 2, 3));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-319.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-319.js
index 50697d9d2..4df5a0c9b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-319.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-319.js
@@ -11,28 +11,28 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
+(function() {
+ Object.defineProperty(arguments, "genericProperty", {
+ enumerable: true,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "genericProperty", {
- enumerable: true,
- configurable: false
+ enumerable: false
});
- try {
- Object.defineProperty(arguments, "genericProperty", {
- enumerable: false
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "genericProperty", undefined);
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "genericProperty", undefined);
- verifyNotWritable(arguments, "genericProperty");
+ verifyNotWritable(arguments, "genericProperty");
- verifyEnumerable(arguments, "genericProperty");
+ verifyEnumerable(arguments, "genericProperty");
- verifyNotConfigurable(arguments, "genericProperty");
-
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "genericProperty");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(1, 2, 3));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-32.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-32.js
index 858591bc5..127cf711d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-32.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-32.js
@@ -8,19 +8,19 @@ description: >
without a get function (8.12.9 step 1)
---*/
- var proto = {};
- Object.defineProperty(proto, "foo", {
- set: function () { },
- configurable: false
- });
+var proto = {};
+Object.defineProperty(proto, "foo", {
+ set: function() {},
+ configurable: false
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var obj = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var obj = new ConstructFun();
- Object.defineProperty(obj, "foo", {
- configurable: true
- });
+Object.defineProperty(obj, "foo", {
+ configurable: true
+});
assert(obj.hasOwnProperty("foo"), 'obj.hasOwnProperty("foo") !== true');
assert.sameValue(typeof obj.foo, "undefined", 'typeof obj.foo');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-320-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-320-1.js
index aa9cb3e7f..abf523f65 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-320-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-320-1.js
@@ -12,27 +12,27 @@ description: >
includes: [propertyHelper.js]
---*/
-(function (a, b, c) {
+(function(a, b, c) {
+ Object.defineProperty(arguments, "genericProperty", {
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "genericProperty", {
- configurable: false
+ configurable: true
});
- try {
- Object.defineProperty(arguments, "genericProperty", {
- configurable: true
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "genericProperty", undefined);
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "genericProperty", undefined);
- verifyNotWritable(arguments, "genericProperty");
+ verifyNotWritable(arguments, "genericProperty");
- verifyNotEnumerable(arguments, "genericProperty");
+ verifyNotEnumerable(arguments, "genericProperty");
- verifyNotConfigurable(arguments, "genericProperty");
-
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "genericProperty");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(1, 2, 3));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-320.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-320.js
index a1d0b7318..67d041b9f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-320.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-320.js
@@ -11,29 +11,29 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
+(function() {
+ Object.defineProperty(arguments, "genericProperty", {
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "genericProperty", {
- configurable: false
+ configurable: true
});
- try {
- Object.defineProperty(arguments, "genericProperty", {
- configurable: true
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "genericProperty", undefined);
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "genericProperty", undefined);
- verifyNotWritable(arguments, "genericProperty");
+ verifyNotWritable(arguments, "genericProperty");
- verifyNotEnumerable(arguments, "genericProperty");
+ verifyNotEnumerable(arguments, "genericProperty");
- verifyNotConfigurable(arguments, "genericProperty");
+ verifyNotConfigurable(arguments, "genericProperty");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
-
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+ }
+
}(1, 2, 3));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-321-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-321-1.js
index 5b8195c0f..c1cd750ee 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-321-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-321-1.js
@@ -12,41 +12,42 @@ description: >
includes: [propertyHelper.js]
---*/
-(function (a, b, c) {
- function getFunc() {
- return "genericPropertyString";
- }
- function setFunc(value) {
- this.helpVerifyGet = value;
- }
+(function(a, b, c) {
+ function getFunc() {
+ return "genericPropertyString";
+ }
+
+ function setFunc(value) {
+ this.helpVerifyGet = value;
+ }
+ Object.defineProperty(arguments, "genericProperty", {
+ get: getFunc,
+ set: setFunc,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "genericProperty", {
- get: getFunc,
- set: setFunc,
- configurable: false
+ get: function() {
+ return "overideGenericPropertyString";
+ }
});
- try {
- Object.defineProperty(arguments, "genericProperty", {
- get: function () {
- return "overideGenericPropertyString";
- }
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- if (a !== 1) {
- $ERROR('Expected a === 1, actually ' + a);
- }
-
- verifyEqualTo(arguments, "genericProperty", getFunc());
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ if (a !== 1) {
+ $ERROR('Expected a === 1, actually ' + a);
+ }
- verifyWritable(arguments, "genericProperty", "helpVerifyGet");
+ verifyEqualTo(arguments, "genericProperty", getFunc());
- verifyNotEnumerable(arguments, "genericProperty");
+ verifyWritable(arguments, "genericProperty", "helpVerifyGet");
- verifyNotConfigurable(arguments, "genericProperty");
+ verifyNotEnumerable(arguments, "genericProperty");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "genericProperty");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(1, 2, 3));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-321.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-321.js
index 66a537da7..18efcbf7e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-321.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-321.js
@@ -11,37 +11,38 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- function getFunc() {
- return "genericPropertyString";
- }
- function setFunc(value) {
- this.helpVerifyGet = value;
- }
+(function() {
+ function getFunc() {
+ return "genericPropertyString";
+ }
+
+ function setFunc(value) {
+ this.helpVerifyGet = value;
+ }
+ Object.defineProperty(arguments, "genericProperty", {
+ get: getFunc,
+ set: setFunc,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "genericProperty", {
- get: getFunc,
- set: setFunc,
- configurable: false
+ get: function() {
+ return "overideGenericPropertyString";
+ }
});
- try {
- Object.defineProperty(arguments, "genericProperty", {
- get: function () {
- return "overideGenericPropertyString";
- }
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "genericProperty", getFunc());
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "genericProperty", getFunc());
- verifyWritable(arguments, "genericProperty", "helpVerifyGet");
+ verifyWritable(arguments, "genericProperty", "helpVerifyGet");
- verifyNotEnumerable(arguments, "genericProperty");
+ verifyNotEnumerable(arguments, "genericProperty");
- verifyNotConfigurable(arguments, "genericProperty");
-
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "genericProperty");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(1, 2, 3));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-322-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-322-1.js
index 16a87c954..b4da0dc39 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-322-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-322-1.js
@@ -12,31 +12,31 @@ description: >
includes: [propertyHelper.js]
---*/
-(function (a, b, c) {
- function setFunc(value) {
- this.genericPropertyString = value;
- }
+(function(a, b, c) {
+ function setFunc(value) {
+ this.genericPropertyString = value;
+ }
+ Object.defineProperty(arguments, "genericProperty", {
+ set: setFunc,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "genericProperty", {
- set: setFunc,
- configurable: false
+ set: function(value) {
+ this.genericPropertyString1 = value;
+ }
});
- try {
- Object.defineProperty(arguments, "genericProperty", {
- set: function (value) {
- this.genericPropertyString1 = value;
- }
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyWritable(arguments, "genericProperty", "genericPropertyString");
-
- verifyNotEnumerable(arguments, "genericProperty");
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyWritable(arguments, "genericProperty", "genericPropertyString");
- verifyNotConfigurable(arguments, "genericProperty");
+ verifyNotEnumerable(arguments, "genericProperty");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "genericProperty");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(1, 2, 3));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-322.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-322.js
index f8597ced1..b14567fe7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-322.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-322.js
@@ -11,31 +11,31 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- function setFunc(value) {
- this.genericPropertyString = value;
- }
+(function() {
+ function setFunc(value) {
+ this.genericPropertyString = value;
+ }
+ Object.defineProperty(arguments, "genericProperty", {
+ set: setFunc,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "genericProperty", {
- set: setFunc,
- configurable: false
+ set: function(value) {
+ this.genericPropertyString1 = value;
+ }
});
- try {
- Object.defineProperty(arguments, "genericProperty", {
- set: function (value) {
- this.genericPropertyString1 = value;
- }
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyWritable(arguments, "genericProperty", "genericPropertyString");
-
- verifyNotEnumerable(arguments, "genericProperty");
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyWritable(arguments, "genericProperty", "genericPropertyString");
- verifyNotConfigurable(arguments, "genericProperty");
+ verifyNotEnumerable(arguments, "genericProperty");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "genericProperty");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(1, 2, 3));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-323-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-323-1.js
index 14ce76e95..9f6c3f0e9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-323-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-323-1.js
@@ -12,34 +12,34 @@ description: >
includes: [propertyHelper.js]
---*/
-(function (a, b, c) {
- function setFunc(value) {
- this.genericPropertyString = value;
- }
+(function(a, b, c) {
+ function setFunc(value) {
+ this.genericPropertyString = value;
+ }
+ Object.defineProperty(arguments, "genericProperty", {
+ set: setFunc,
+ enumerable: true,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "genericProperty", {
- set: setFunc,
- enumerable: true,
- configurable: false
+ enumerable: false
});
- try {
- Object.defineProperty(arguments, "genericProperty", {
- enumerable: false
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- if (c !== 3) {
- $ERROR('Expected c === 3, actually ' + c);
- }
- verifyWritable(arguments, "genericProperty", "genericPropertyString");
-
- verifyEnumerable(arguments, "genericProperty");
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ if (c !== 3) {
+ $ERROR('Expected c === 3, actually ' + c);
+ }
+ verifyWritable(arguments, "genericProperty", "genericPropertyString");
- verifyNotConfigurable(arguments, "genericProperty");
+ verifyEnumerable(arguments, "genericProperty");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "genericProperty");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+ }
+
}(1, 2, 3));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-323.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-323.js
index 905770f05..b7104257d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-323.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-323.js
@@ -11,30 +11,30 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- function setFunc(value) {
- this.genericPropertyString = value;
- }
+(function() {
+ function setFunc(value) {
+ this.genericPropertyString = value;
+ }
+ Object.defineProperty(arguments, "genericProperty", {
+ set: setFunc,
+ enumerable: true,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "genericProperty", {
- set: setFunc,
- enumerable: true,
- configurable: false
+ enumerable: false
});
- try {
- Object.defineProperty(arguments, "genericProperty", {
- enumerable: false
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyWritable(arguments, "genericProperty", "genericPropertyString");
-
- verifyEnumerable(arguments, "genericProperty");
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyWritable(arguments, "genericProperty", "genericPropertyString");
- verifyNotConfigurable(arguments, "genericProperty");
+ verifyEnumerable(arguments, "genericProperty");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "genericProperty");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(1, 2, 3));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-324-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-324-1.js
index 846f093a5..ef6ec1c0d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-324-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-324-1.js
@@ -12,29 +12,29 @@ description: >
includes: [propertyHelper.js]
---*/
-(function (a, b, c) {
- function setFunc(value) {
- this.genericPropertyString = value;
- }
+(function(a, b, c) {
+ function setFunc(value) {
+ this.genericPropertyString = value;
+ }
+ Object.defineProperty(arguments, "genericProperty", {
+ set: setFunc,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "genericProperty", {
- set: setFunc,
- configurable: false
+ configurable: true
});
- try {
- Object.defineProperty(arguments, "genericProperty", {
- configurable: true
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyWritable(arguments, "genericProperty", "genericPropertyString");
-
- verifyNotEnumerable(arguments, "genericProperty");
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyWritable(arguments, "genericProperty", "genericPropertyString");
- verifyNotConfigurable(arguments, "genericProperty");
+ verifyNotEnumerable(arguments, "genericProperty");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "genericProperty");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
+
+ }
}(1, 2, 3));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-324.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-324.js
index 7d5eacf71..0986e4a5b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-324.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-324.js
@@ -11,30 +11,30 @@ description: >
includes: [propertyHelper.js]
---*/
-(function () {
- function setFunc(value) {
- this.genericPropertyString = value;
- }
+(function() {
+ function setFunc(value) {
+ this.genericPropertyString = value;
+ }
+ Object.defineProperty(arguments, "genericProperty", {
+ set: setFunc,
+ configurable: false
+ });
+ try {
Object.defineProperty(arguments, "genericProperty", {
- set: setFunc,
- configurable: false
+ configurable: true
});
- try {
- Object.defineProperty(arguments, "genericProperty", {
- configurable: true
- });
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyWritable(arguments, "genericProperty", "genericPropertyString");
-
- verifyNotEnumerable(arguments, "genericProperty");
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyWritable(arguments, "genericProperty", "genericPropertyString");
- verifyNotConfigurable(arguments, "genericProperty");
+ verifyNotEnumerable(arguments, "genericProperty");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(arguments, "genericProperty");
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
}
- false;
+
+ }
+ false;
}(1, 2, 3));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-325-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-325-1.js
index e91a4651c..2c3f0c653 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-325-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-325-1.js
@@ -11,15 +11,17 @@ description: >
[[DefineOwnProperty]] step 5.a.i)
---*/
- var argObj = (function (a, b, c) { return arguments; })(1, 2, 3);
- var accessed = false;
+var argObj = (function(a, b, c) {
+ return arguments;
+})(1, 2, 3);
+var accessed = false;
- Object.defineProperty(argObj, 0, {
- get: function () {
- accessed = true;
- return 12;
- }
- });
+Object.defineProperty(argObj, 0, {
+ get: function() {
+ accessed = true;
+ return 12;
+ }
+});
assert.sameValue(argObj[0], 12, 'argObj[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-325.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-325.js
index b0204f081..f710f39c0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-325.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-325.js
@@ -10,15 +10,17 @@ description: >
[[DefineOwnProperty]] step 5.a.i)
---*/
- var argObj = (function () { return arguments; })(1, 2, 3);
- var accessed = false;
+var argObj = (function() {
+ return arguments;
+})(1, 2, 3);
+var accessed = false;
- Object.defineProperty(argObj, 0, {
- get: function () {
- accessed = true;
- return 12;
- }
- });
+Object.defineProperty(argObj, 0, {
+ get: function() {
+ accessed = true;
+ return 12;
+ }
+});
assert.sameValue(argObj[0], 12, 'argObj[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-326.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-326.js
index 4ec0121f3..64001fbf3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-326.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-326.js
@@ -8,16 +8,16 @@ description: >
true, [[Configurable]] is true) is writable
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: true
- });
- var propertyDefineCorrect = (obj.prop === 2010);
- obj.prop = 1001;
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
+var propertyDefineCorrect = (obj.prop === 2010);
+obj.prop = 1001;
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(obj.prop, 1001, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-327.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-327.js
index 97d2ddcc7..b23770c5b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-327.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-327.js
@@ -10,22 +10,22 @@ description: >
var propertyFound = false;
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: true
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var property in obj) {
- if (property === "prop") {
- propertyFound = true;
- break;
- }
- }
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var property in obj) {
+ if (property === "prop") {
+ propertyFound = true;
+ break;
+ }
+}
assert(propertyFound, 'Property not found');
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-328.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-328.js
index 70c4b2669..88c5d3641 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-328.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-328.js
@@ -8,17 +8,17 @@ description: >
true, [[Configurable]] is true) is deletable
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: true
- });
- var beforeDelete = obj.hasOwnProperty("prop");
- delete obj.prop;
- var afterDelete = obj.hasOwnProperty("prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
+var beforeDelete = obj.hasOwnProperty("prop");
+delete obj.prop;
+var afterDelete = obj.hasOwnProperty("prop");
assert(beforeDelete, 'beforeDelete !== true');
assert.sameValue(afterDelete, false, 'afterDelete');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-329.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-329.js
index b184812e7..adbb6100a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-329.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-329.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is true) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: true
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- writable: false
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ writable: false
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.writable, true, 'desc1.writable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-33.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-33.js
index 0f95d6cf5..e5f3df8a8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-33.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-33.js
@@ -9,16 +9,16 @@ description: >
(8.12.9 step 1)
---*/
- var fun = function () { };
+var fun = function() {};
- Object.defineProperty(fun, "foo", {
- value: 12,
- configurable: false
- });
+Object.defineProperty(fun, "foo", {
+ value: 12,
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(fun, "foo", {
- value: 11,
- configurable: true
- });
+ Object.defineProperty(fun, "foo", {
+ value: 11,
+ configurable: true
+ });
});
assert.sameValue(fun.foo, 12, 'fun.foo');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-330.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-330.js
index 98ef3f69f..aeebc3870 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-330.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-330.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is true) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: true
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- enumerable: false
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ enumerable: false
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.enumerable, true, 'desc1.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-331.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-331.js
index 86300a83e..7f7a95b71 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-331.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-331.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is true) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: true
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- configurable: false
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ configurable: false
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.configurable, true, 'desc1.configurable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-332.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-332.js
index 80b01079f..9bea7a897 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-332.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-332.js
@@ -9,23 +9,23 @@ description: >
accessor property
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: true
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- function getFunc() {
- return 20;
- }
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+function getFunc() {
+ return 20;
+}
+Object.defineProperty(obj, "prop", {
+ get: getFunc
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc1.hasOwnProperty("value"), 'desc1.hasOwnProperty("value") !== true');
assert.sameValue(desc2.get, getFunc, 'desc2.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-1.js
index b67a2a2e2..40a30010e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-1.js
@@ -15,13 +15,13 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "property", {
- value: 1001,
- writable: true,
- configurable: false
+ value: 1001,
+ writable: true,
+ configurable: false
});
Object.defineProperty(obj, "property", {
- value: 1002
+ value: 1002
});
verifyEqualTo(obj, "property", 1002);
@@ -31,4 +31,3 @@ verifyWritable(obj, "property");
verifyNotEnumerable(obj, "property");
verifyNotConfigurable(obj, "property");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-10.js
index 226f17c35..672ddb6d7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-10.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-10.js
@@ -9,18 +9,18 @@ description: >
is writable using simple assignment, 'O' is an Arguments object
---*/
- var obj = (function () {
- return arguments;
- }());
+var obj = (function() {
+ return arguments;
+}());
- Object.defineProperty(obj, "0", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: false
- });
- var verifyValue = (obj[0] === 2010);
- obj[0] = 1001;
+Object.defineProperty(obj, "0", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: false
+});
+var verifyValue = (obj[0] === 2010);
+obj[0] = 1001;
assert(verifyValue, 'verifyValue !== true');
assert.sameValue(obj[0], 1001, 'obj[0]');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-11.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-11.js
index e8a45d3f6..a52e55457 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-11.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-11.js
@@ -9,16 +9,16 @@ description: >
is writable using simple assignment, 'O' is an Arguments object
---*/
- var obj = (function (x) {
- return arguments;
- }(1001));
+var obj = (function(x) {
+ return arguments;
+}(1001));
- Object.defineProperty(obj, "0", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: false
- });
- var verifyValue = (obj[0] === 2010);
+Object.defineProperty(obj, "0", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: false
+});
+var verifyValue = (obj[0] === 2010);
assert(verifyValue, 'verifyValue !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-2.js
index d91292788..b6353b226 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-2.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-2.js
@@ -15,13 +15,13 @@ includes: [propertyHelper.js]
var obj = [];
Object.defineProperty(obj, "0", {
- value: 1001,
- writable: true,
- configurable: false
+ value: 1001,
+ writable: true,
+ configurable: false
});
Object.defineProperty(obj, "0", {
- value: 1002
+ value: 1002
});
verifyEqualTo(obj, "0", 1002);
@@ -31,4 +31,3 @@ verifyWritable(obj, "0");
verifyNotEnumerable(obj, "0");
verifyNotConfigurable(obj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-3.js
index a74dc8fda..5b416a760 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-3.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-3.js
@@ -12,18 +12,18 @@ includes: [propertyHelper.js]
---*/
-var obj = (function () {
- return arguments;
+var obj = (function() {
+ return arguments;
}());
Object.defineProperty(obj, "property", {
- value: 1001,
- writable: true,
- configurable: false
+ value: 1001,
+ writable: true,
+ configurable: false
});
Object.defineProperty(obj, "property", {
- value: 1002
+ value: 1002
});
verifyEqualTo(obj, "property", 1002);
@@ -33,4 +33,3 @@ verifyWritable(obj, "property");
verifyNotEnumerable(obj, "property");
verifyNotConfigurable(obj, "property");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-4.js
index 1779e740b..e5f4c63c3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-4.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-4.js
@@ -9,16 +9,16 @@ description: >
simple assignment, 'A' is an Array Object
---*/
- var obj = [];
+var obj = [];
- Object.defineProperty(obj, "0", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: false
- });
- var verifyValue = (obj[0] === 2010);
- obj[0] = 1001;
+Object.defineProperty(obj, "0", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: false
+});
+var verifyValue = (obj[0] === 2010);
+obj[0] = 1001;
assert(verifyValue, 'verifyValue !== true');
assert.sameValue(obj[0], 1001, 'obj[0]');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-5.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-5.js
index cb4f8fa5e..cff0a8b7e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-5.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-5.js
@@ -9,18 +9,18 @@ description: >
is writable using simple assignment, 'O' is an Arguments object
---*/
- var obj = (function () {
- return arguments;
- }());
+var obj = (function() {
+ return arguments;
+}());
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: false
- });
- var verifyValue = (obj.prop === 2010);
- obj.prop = 1001;
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: false
+});
+var verifyValue = (obj.prop === 2010);
+obj.prop = 1001;
assert(verifyValue, 'verifyValue !== true');
assert.sameValue(obj.prop, 1001, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-6.js
index 955b03487..0d2f0a3a2 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-6.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-6.js
@@ -15,13 +15,13 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "0", {
- value: 1001,
- writable: true,
- configurable: false
+ value: 1001,
+ writable: true,
+ configurable: false
});
Object.defineProperty(obj, "0", {
- value: 1002
+ value: 1002
});
verifyEqualTo(obj, "0", 1002);
@@ -31,4 +31,3 @@ verifyWritable(obj, "0");
verifyNotEnumerable(obj, "0");
verifyNotConfigurable(obj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-7.js
index 128da1b7d..b32f5fc53 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-7.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-7.js
@@ -15,13 +15,13 @@ includes: [propertyHelper.js]
var obj = [];
Object.defineProperty(obj, "prop", {
- value: 1001,
- writable: true,
- configurable: false
+ value: 1001,
+ writable: true,
+ configurable: false
});
Object.defineProperty(obj, "prop", {
- value: 1002
+ value: 1002
});
verifyEqualTo(obj, "prop", 1002);
@@ -31,4 +31,3 @@ verifyWritable(obj, "prop");
verifyNotEnumerable(obj, "prop");
verifyNotConfigurable(obj, "prop");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-8.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-8.js
index da792059f..4cebcc068 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-8.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-8.js
@@ -12,18 +12,18 @@ includes: [propertyHelper.js]
---*/
-var obj = (function () {
- return arguments;
+var obj = (function() {
+ return arguments;
}());
Object.defineProperty(obj, "0", {
- value: 1001,
- writable: true,
- configurable: false
+ value: 1001,
+ writable: true,
+ configurable: false
});
Object.defineProperty(obj, "0", {
- value: 1002
+ value: 1002
});
verifyEqualTo(obj, "0", 1002);
@@ -33,4 +33,3 @@ verifyWritable(obj, "0");
verifyNotEnumerable(obj, "0");
verifyNotConfigurable(obj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-9.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-9.js
index de964513d..7d87b54c0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-9.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-9.js
@@ -9,16 +9,16 @@ description: >
writable using simple assignment, 'A' is an Array Object
---*/
- var obj = [];
+var obj = [];
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: false
- });
- var verifyValue = (obj.prop === 2010);
- obj.prop = 1001;
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: false
+});
+var verifyValue = (obj.prop === 2010);
+obj.prop = 1001;
assert(verifyValue, 'verifyValue !== true');
assert.sameValue(obj.prop, 1001, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333.js
index fc22ccde7..cfe91358e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333.js
@@ -8,16 +8,16 @@ description: >
true, [[Configurable]] is false) is writable
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: false
- });
- var propertyDefineCorrect = (obj.prop === 2010);
- obj.prop = 1001;
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: false
+});
+var propertyDefineCorrect = (obj.prop === 2010);
+obj.prop = 1001;
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(obj.prop, 1001, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-334.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-334.js
index f4322915e..b6e4a6cf4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-334.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-334.js
@@ -10,22 +10,22 @@ description: >
var propertyFound = false;
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: false
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p in obj) {
- if (p === "prop") {
- propertyFound = true;
- break;
- }
- }
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: false
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p in obj) {
+ if (p === "prop") {
+ propertyFound = true;
+ break;
+ }
+}
assert(propertyFound, 'Property not found');
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-335.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-335.js
index d7a4f1ec5..eebfebf57 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-335.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-335.js
@@ -12,10 +12,10 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: false
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: false
});
assert(obj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-336.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-336.js
index 61256748e..e67228041 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-336.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-336.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is false) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: false
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: false
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- writable: false
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ writable: false
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.writable, true, 'desc1.writable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-337.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-337.js
index a09c71134..c62c50d2f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-337.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-337.js
@@ -9,23 +9,23 @@ description: >
[[Configurable]] is false) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: false
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- enumerable: false
- });
+ Object.defineProperty(obj, "prop", {
+ enumerable: false
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.enumerable, true, 'desc1.enumerable');
assert.sameValue(obj.prop, 2010, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-338.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-338.js
index 45425687a..356445fd6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-338.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-338.js
@@ -9,22 +9,22 @@ description: >
[[Configurable]] is false) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: false
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: false
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- configurable: true
- });
+ Object.defineProperty(obj, "prop", {
+ configurable: true
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.configurable, false, 'desc1.configurable');
assert.sameValue(obj.prop, 2010, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-339-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-339-1.js
index f4523b9af..5cbb3950e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-339-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-339-1.js
@@ -10,26 +10,26 @@ description: >
'A' is an Array object (8.12.9 - step 9.a)
---*/
- var obj = [];
+var obj = [];
- Object.defineProperty(obj, "0", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: false
- });
- var propertyDefineCorrect = obj.hasOwnProperty("0");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "0");
+Object.defineProperty(obj, "0", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: false
+});
+var propertyDefineCorrect = obj.hasOwnProperty("0");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "0");
- function getFunc() {
- return 20;
- }
+function getFunc() {
+ return 20;
+}
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "0", {
- get: getFunc
- });
+ Object.defineProperty(obj, "0", {
+ get: getFunc
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "0");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "0");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.value, 2010, 'desc1.value');
assert.sameValue(obj[0], 2010, 'obj[0]');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-339-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-339-2.js
index d2efb019b..2694ee194 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-339-2.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-339-2.js
@@ -10,28 +10,28 @@ description: >
'O' is an Arguments object (8.12.9 - step 9.a)
---*/
- var obj = (function () {
- return arguments;
- }());
+var obj = (function() {
+ return arguments;
+}());
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: false
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: false
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- function getFunc() {
- return 20;
- }
+function getFunc() {
+ return 20;
+}
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
+ Object.defineProperty(obj, "prop", {
+ get: getFunc
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.value, 2010, 'desc1.value');
assert.sameValue(obj.prop, 2010, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-339-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-339-3.js
index dedf8ce8f..4188ac5df 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-339-3.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-339-3.js
@@ -10,26 +10,26 @@ description: >
'A' is an Array object (8.12.9 - step 9.a)
---*/
- var obj = [];
+var obj = [];
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: false
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: false
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- function getFunc() {
- return 20;
- }
+function getFunc() {
+ return 20;
+}
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
+ Object.defineProperty(obj, "prop", {
+ get: getFunc
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.value, 2010, 'desc1.value');
assert.sameValue(obj.prop, 2010, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-339-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-339-4.js
index 35d2aa614..ce959873b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-339-4.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-339-4.js
@@ -10,28 +10,28 @@ description: >
'O' is an Arguments object (8.12.9 - step 9.a)
---*/
- var obj = (function () {
- return arguments;
- }());
+var obj = (function() {
+ return arguments;
+}());
- Object.defineProperty(obj, "0", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: false
- });
- var propertyDefineCorrect = obj.hasOwnProperty("0");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "0");
+Object.defineProperty(obj, "0", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: false
+});
+var propertyDefineCorrect = obj.hasOwnProperty("0");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "0");
- function getFunc() {
- return 20;
- }
+function getFunc() {
+ return 20;
+}
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "0", {
- get: getFunc
- });
+ Object.defineProperty(obj, "0", {
+ get: getFunc
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "0");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "0");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.value, 2010, 'desc1.value');
assert.sameValue(obj[0], 2010, 'obj[0]');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-339.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-339.js
index 1cce212b2..8a1123417 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-339.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-339.js
@@ -9,26 +9,26 @@ description: >
accessor property
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: true,
- configurable: false
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: true,
+ configurable: false
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- function getFunc() {
- return 20;
- }
+function getFunc() {
+ return 20;
+}
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
+ Object.defineProperty(obj, "prop", {
+ get: getFunc
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.value, 2010, 'desc1.value');
assert.sameValue(obj.prop, 2010, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-34.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-34.js
index 323bd5e01..b275043fb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-34.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-34.js
@@ -9,16 +9,16 @@ description: >
step 1)
---*/
- var arrObj = [];
+var arrObj = [];
- Object.defineProperty(arrObj, "foo", {
- value: 12,
- configurable: false
- });
+Object.defineProperty(arrObj, "foo", {
+ value: 12,
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(arrObj, "foo", {
- value: 11,
- configurable: true
- });
+ Object.defineProperty(arrObj, "foo", {
+ value: 11,
+ configurable: true
+ });
});
assert.sameValue(arrObj.foo, 12, 'arrObj.foo');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-340.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-340.js
index d54903654..f87c237eb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-340.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-340.js
@@ -8,16 +8,16 @@ description: >
false, [[Configurable]] is true) is writable
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: false,
- configurable: true
- });
- var propertyDefineCorrect = (obj.prop === 2010);
- obj.prop = 1001;
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: false,
+ configurable: true
+});
+var propertyDefineCorrect = (obj.prop === 2010);
+obj.prop = 1001;
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(obj.prop, 1001, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-341.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-341.js
index 1a2324b5f..c2515c453 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-341.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-341.js
@@ -8,19 +8,19 @@ description: >
false, [[Configurable]] is true) is non-enumerable
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: false,
- configurable: true
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p in obj) {
- assert.notSameValue(p, "prop", 'p');
- }
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: false,
+ configurable: true
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p in obj) {
+ assert.notSameValue(p, "prop", 'p');
+}
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-342.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-342.js
index 3ccac9871..6544fcaf9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-342.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-342.js
@@ -8,17 +8,17 @@ description: >
false, [[Configurable]] is true) is deletable
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: false,
- configurable: true
- });
- var beforeDelete = obj.hasOwnProperty("prop");
- delete obj.prop;
- var afterDelete = obj.hasOwnProperty("prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: false,
+ configurable: true
+});
+var beforeDelete = obj.hasOwnProperty("prop");
+delete obj.prop;
+var afterDelete = obj.hasOwnProperty("prop");
assert(beforeDelete, 'beforeDelete !== true');
assert.sameValue(afterDelete, false, 'afterDelete');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-343.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-343.js
index 7d9169e97..c3bfa8cb8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-343.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-343.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is true) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: false,
- configurable: true
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: false,
+ configurable: true
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- writable: false
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ writable: false
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.writable, true, 'desc1.writable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-344.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-344.js
index 6e61cad2d..c78933d70 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-344.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-344.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is true) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: false,
- configurable: true
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: false,
+ configurable: true
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- enumerable: true
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ enumerable: true
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.enumerable, false, 'desc1.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-345.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-345.js
index 8909632d9..367859f22 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-345.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-345.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is true) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: false,
- configurable: true
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: false,
+ configurable: true
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- configurable: false
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ configurable: false
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.configurable, true, 'desc1.configurable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-346.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-346.js
index ecd43d652..edbeeae3b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-346.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-346.js
@@ -9,23 +9,23 @@ description: >
accessor property
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: false,
- configurable: true
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: false,
+ configurable: true
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- function getFunc() {
- return 20;
- }
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+function getFunc() {
+ return 20;
+}
+Object.defineProperty(obj, "prop", {
+ get: getFunc
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc1.hasOwnProperty("value"), 'desc1.hasOwnProperty("value") !== true');
assert(desc2.hasOwnProperty("get"), 'desc2.hasOwnProperty("get") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-347.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-347.js
index dcefdd011..5356d0e82 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-347.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-347.js
@@ -8,16 +8,16 @@ description: >
false, [[Configurable]] is false) is writable
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: false,
- configurable: false
- });
- var propertyDefineCorrect = (obj.prop === 2010);
- obj.prop = 1001;
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: false,
+ configurable: false
+});
+var propertyDefineCorrect = (obj.prop === 2010);
+obj.prop = 1001;
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(obj.prop, 1001, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-348.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-348.js
index 90804ded5..fb067ad3a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-348.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-348.js
@@ -8,19 +8,19 @@ description: >
false, [[Configurable]] is false) is non-enumerable
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: false,
- configurable: false
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p in obj) {
- assert.notSameValue(p, "prop", 'p');
- }
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: false,
+ configurable: false
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p in obj) {
+ assert.notSameValue(p, "prop", 'p');
+}
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-349.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-349.js
index 5572ca864..bbcfa17b5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-349.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-349.js
@@ -12,10 +12,10 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: false,
- configurable: false
+ value: 2010,
+ writable: true,
+ enumerable: false,
+ configurable: false
});
assert(obj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-35.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-35.js
index b6f3fb3b3..198074994 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-35.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-35.js
@@ -9,16 +9,16 @@ description: >
(8.12.9 step 1)
---*/
- var str = new String("abc");
+var str = new String("abc");
- Object.defineProperty(str, "foo", {
- value: 12,
- configurable: false
- });
+Object.defineProperty(str, "foo", {
+ value: 12,
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(str, "foo", {
- value: 11,
- configurable: true
- });
+ Object.defineProperty(str, "foo", {
+ value: 11,
+ configurable: true
+ });
});
assert.sameValue(str.foo, 12, 'str.foo');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-350.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-350.js
index ad0446494..bdc583e44 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-350.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-350.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is false) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: false,
- configurable: false
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: false,
+ configurable: false
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- writable: false
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ writable: false
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.writable, true, 'desc1.writable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-351.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-351.js
index 4007343fa..a4a48f90b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-351.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-351.js
@@ -9,23 +9,23 @@ description: >
[[Configurable]] is false) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: false,
+ configurable: false
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- enumerable: true
- });
+ Object.defineProperty(obj, "prop", {
+ enumerable: true
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.enumerable, false, 'desc1.enumerable');
assert.sameValue(obj.prop, 2010, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-352.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-352.js
index e06bcef7a..c3a7ec650 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-352.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-352.js
@@ -9,23 +9,23 @@ description: >
[[Configurable]] is false) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: false,
+ configurable: false
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- configurable: true
- });
+ Object.defineProperty(obj, "prop", {
+ configurable: true
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.configurable, false, 'desc1.configurable');
assert.sameValue(obj.prop, 2010, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-353.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-353.js
index 7f90efce2..f6ce4a256 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-353.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-353.js
@@ -9,26 +9,26 @@ description: >
accessor property
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: true,
- enumerable: false,
- configurable: false
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: true,
+ enumerable: false,
+ configurable: false
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- function getFunc() {
- return 20;
- }
+function getFunc() {
+ return 20;
+}
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
+ Object.defineProperty(obj, "prop", {
+ get: getFunc
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.value, 2010, 'desc1.value');
assert.sameValue(obj.prop, 2010, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-1.js
index ec5df9f4e..250dde1b0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-1.js
@@ -15,13 +15,13 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "property", {
- value: 1001,
- writable: false,
- configurable: true
+ value: 1001,
+ writable: false,
+ configurable: true
});
Object.defineProperty(obj, "property", {
- value: 1002
+ value: 1002
});
verifyEqualTo(obj, "property", 1002);
@@ -31,4 +31,3 @@ verifyNotWritable(obj, "property");
verifyNotEnumerable(obj, "property");
verifyConfigurable(obj, "property");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-10.js
index 6d6912d72..61ff2684d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-10.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-10.js
@@ -15,13 +15,13 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "0", {
- value: 1001,
- writable: false,
- configurable: true
+ value: 1001,
+ writable: false,
+ configurable: true
});
Object.defineProperty(obj, "0", {
- value: 1002
+ value: 1002
});
verifyEqualTo(obj, "0", 1002);
@@ -31,4 +31,3 @@ verifyNotWritable(obj, "0");
verifyNotEnumerable(obj, "0");
verifyConfigurable(obj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-11.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-11.js
index 1e2c2184e..0ee0d5a4e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-11.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-11.js
@@ -15,13 +15,13 @@ includes: [propertyHelper.js]
var obj = [];
Object.defineProperty(obj, "prop", {
- value: 1001,
- writable: false,
- configurable: true
+ value: 1001,
+ writable: false,
+ configurable: true
});
Object.defineProperty(obj, "prop", {
- value: 1002
+ value: 1002
});
verifyEqualTo(obj, "prop", 1002);
@@ -31,4 +31,3 @@ verifyNotWritable(obj, "prop");
verifyNotEnumerable(obj, "prop");
verifyConfigurable(obj, "prop");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-12.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-12.js
index ac85dafe0..780fee5e5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-12.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-12.js
@@ -12,18 +12,18 @@ includes: [propertyHelper.js]
---*/
-var obj = (function () {
- return arguments;
+var obj = (function() {
+ return arguments;
}());
Object.defineProperty(obj, "0", {
- value: 1001,
- writable: false,
- configurable: true
+ value: 1001,
+ writable: false,
+ configurable: true
});
Object.defineProperty(obj, "0", {
- value: 1002
+ value: 1002
});
verifyEqualTo(obj, "0", 1002);
@@ -33,4 +33,3 @@ verifyNotWritable(obj, "0");
verifyNotEnumerable(obj, "0");
verifyConfigurable(obj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-15.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-15.js
index 597b7454a..ad1e8d85e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-15.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-15.js
@@ -13,12 +13,11 @@ includes: [propertyHelper.js]
var obj = [];
Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: true
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: true
});
assert.sameValue(obj.prop, 2010);
verifyNotWritable(obj, "prop");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-16.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-16.js
index 351aab70e..7432ccdd3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-16.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-16.js
@@ -11,15 +11,15 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = (function () {
- return arguments;
+var obj = (function() {
+ return arguments;
}());
Object.defineProperty(obj, "0", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: true
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: true
});
assert.sameValue(obj[0], 2010);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-2.js
index 5ee6d41a8..46bf18f41 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-2.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-2.js
@@ -15,13 +15,13 @@ includes: [propertyHelper.js]
var obj = [];
Object.defineProperty(obj, "0", {
- value: 1001,
- writable: false,
- configurable: true
+ value: 1001,
+ writable: false,
+ configurable: true
});
Object.defineProperty(obj, "0", {
- value: 1002
+ value: 1002
});
verifyEqualTo(obj, "0", 1002);
@@ -31,4 +31,3 @@ verifyNotWritable(obj, "0");
verifyNotEnumerable(obj, "0");
verifyConfigurable(obj, "0");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-3.js
index 6a32d0ca0..f1f5cb86c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-3.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-3.js
@@ -11,18 +11,18 @@ includes: [propertyHelper.js]
---*/
-var obj = (function () {
- return arguments;
+var obj = (function() {
+ return arguments;
}());
Object.defineProperty(obj, "property", {
- value: 1001,
- writable: false,
- configurable: true
+ value: 1001,
+ writable: false,
+ configurable: true
});
Object.defineProperty(obj, "property", {
- value: 1002
+ value: 1002
});
verifyEqualTo(obj, "property", 1002);
@@ -32,4 +32,3 @@ verifyNotWritable(obj, "property");
verifyNotEnumerable(obj, "property");
verifyConfigurable(obj, "property");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-6.js
index 641f44ad2..0b48c16cc 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-6.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-6.js
@@ -13,10 +13,10 @@ includes: [propertyHelper.js]
var obj = [];
Object.defineProperty(obj, "0", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: true
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: true
});
assert.sameValue(obj[0], 2010);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-7.js
index 5755ad6d1..81fb76e89 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-7.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-7.js
@@ -10,15 +10,15 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = (function () {
- return arguments;
+var obj = (function() {
+ return arguments;
}());
Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: true
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: true
});
assert.sameValue(obj.prop, 2010);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354.js
index ffe8e1a3b..712fde363 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354.js
@@ -12,10 +12,10 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: true
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: true
});
assert.sameValue(obj.prop, 2010);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-355.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-355.js
index 7b08f6ee6..e764e8b28 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-355.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-355.js
@@ -10,22 +10,22 @@ description: >
var propertyFound = false;
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: true
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var property in obj) {
- if (property === "prop") {
- propertyFound = true;
- break;
- }
- }
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: true
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var property in obj) {
+ if (property === "prop") {
+ propertyFound = true;
+ break;
+ }
+}
assert(propertyFound, 'Property not found');
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-356.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-356.js
index c31bf7e1b..abcbdcef6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-356.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-356.js
@@ -8,17 +8,17 @@ description: >
is true, [[Configurable]] is true) is deletable
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: true
- });
- var beforeDelete = obj.hasOwnProperty("prop");
- delete obj.prop;
- var afterDelete = obj.hasOwnProperty("prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: true
+});
+var beforeDelete = obj.hasOwnProperty("prop");
+delete obj.prop;
+var afterDelete = obj.hasOwnProperty("prop");
assert(beforeDelete, 'beforeDelete !== true');
assert.sameValue(afterDelete, false, 'afterDelete');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-357.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-357.js
index 7af95b48c..88a79a479 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-357.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-357.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is true) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: true
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: true
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- writable: true
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ writable: true
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.writable, false, 'desc1.writable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-358.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-358.js
index e475c264e..867414802 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-358.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-358.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is true) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: true
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: true
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- enumerable: false
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ enumerable: false
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.enumerable, true, 'desc1.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-359.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-359.js
index cae4f4c7f..6536821e1 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-359.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-359.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is true) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: true
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: true
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- configurable: false
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ configurable: false
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.configurable, true, 'desc1.configurable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-36.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-36.js
index 207e87585..ab6dedcd9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-36.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-36.js
@@ -9,16 +9,16 @@ description: >
step 1)
---*/
- var obj = new Boolean(true);
+var obj = new Boolean(true);
- Object.defineProperty(obj, "foo", {
- value: 12,
- configurable: false
- });
+Object.defineProperty(obj, "foo", {
+ value: 12,
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "foo", {
- value: 11,
- configurable: true
- });
+ Object.defineProperty(obj, "foo", {
+ value: 11,
+ configurable: true
+ });
});
assert.sameValue(obj.foo, 12, 'obj.foo');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-360-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-360-1.js
index 68d77e7cc..1d4d3db75 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-360-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-360-1.js
@@ -10,23 +10,23 @@ description: >
object (8.12.9 - step 9.b.i)
---*/
- var obj = [];
+var obj = [];
- Object.defineProperty(obj, "0", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: true
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "0");
+Object.defineProperty(obj, "0", {
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: true
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "0");
- function getFunc() {
- return 20;
- }
- Object.defineProperty(obj, "0", {
- get: getFunc
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "0");
+function getFunc() {
+ return 20;
+}
+Object.defineProperty(obj, "0", {
+ get: getFunc
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "0");
assert(desc1.hasOwnProperty("value"), 'desc1.hasOwnProperty("value") !== true');
assert(desc2.hasOwnProperty("get"), 'desc2.hasOwnProperty("get") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-360-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-360-2.js
index c7cf7e7f2..ca58ca4fb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-360-2.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-360-2.js
@@ -10,25 +10,25 @@ description: >
9.b.i)
---*/
- var obj = (function () {
- return arguments;
- }());
+var obj = (function() {
+ return arguments;
+}());
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: true
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: true
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- function getFunc() {
- return 20;
- }
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+function getFunc() {
+ return 20;
+}
+Object.defineProperty(obj, "prop", {
+ get: getFunc
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc1.hasOwnProperty("value"), 'desc1.hasOwnProperty("value") !== true');
assert(desc2.hasOwnProperty("get"), 'desc2.hasOwnProperty("get") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-360-5.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-360-5.js
index 29ab089dc..b47a62077 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-360-5.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-360-5.js
@@ -10,23 +10,23 @@ description: >
step 9.b.i)
---*/
- var obj = [];
+var obj = [];
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: true
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: true
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- function getFunc() {
- return 20;
- }
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+function getFunc() {
+ return 20;
+}
+Object.defineProperty(obj, "prop", {
+ get: getFunc
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc1.hasOwnProperty("value"), 'desc1.hasOwnProperty("value") !== true');
assert(desc2.hasOwnProperty("get"), 'desc2.hasOwnProperty("get") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-360-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-360-6.js
index 87d14d4fb..ea0f6506d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-360-6.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-360-6.js
@@ -10,25 +10,25 @@ description: >
Arguments object (8.12.9 - step 9.b.i)
---*/
- var obj = (function () {
- return arguments;
- }());
+var obj = (function() {
+ return arguments;
+}());
- Object.defineProperty(obj, "0", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: true
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "0");
+Object.defineProperty(obj, "0", {
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: true
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "0");
- function getFunc() {
- return 20;
- }
- Object.defineProperty(obj, "0", {
- get: getFunc
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "0");
+function getFunc() {
+ return 20;
+}
+Object.defineProperty(obj, "0", {
+ get: getFunc
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "0");
assert(desc1.hasOwnProperty("value"), 'desc1.hasOwnProperty("value") !== true');
assert(desc2.hasOwnProperty("get"), 'desc2.hasOwnProperty("get") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-360.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-360.js
index 3e68d2ec7..bee8167d3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-360.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-360.js
@@ -9,23 +9,23 @@ description: >
accessor property
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: true
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: true
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- function getFunc() {
- return 20;
- }
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+function getFunc() {
+ return 20;
+}
+Object.defineProperty(obj, "prop", {
+ get: getFunc
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc1.hasOwnProperty("value"), 'desc1.hasOwnProperty("value") !== true');
assert(desc2.hasOwnProperty("get"), 'desc2.hasOwnProperty("get") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-361.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-361.js
index 72b34e7d0..069e007cf 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-361.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-361.js
@@ -12,10 +12,10 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: false
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: false
});
assert.sameValue(obj.prop, 2010);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-362.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-362.js
index 1e5d40c2e..d13e35646 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-362.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-362.js
@@ -10,21 +10,21 @@ description: >
var propertyFound = false;
- var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: false
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var property in obj) {
- if (property === "prop") {
- propertyFound = true;
- break;
- }
- }
+var obj = {};
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: false
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var property in obj) {
+ if (property === "prop") {
+ propertyFound = true;
+ break;
+ }
+}
assert(propertyFound, 'Property not found');
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-363.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-363.js
index 0a34bd053..17f928bda 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-363.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-363.js
@@ -12,10 +12,10 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: false
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: false
});
assert(obj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-364.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-364.js
index 2bca77ac7..75f086e41 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-364.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-364.js
@@ -9,22 +9,22 @@ description: >
[[Configurable]] is false) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: false
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: false
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- writable: true
- });
+ Object.defineProperty(obj, "prop", {
+ writable: true
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.writable, false, 'desc1.writable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-365.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-365.js
index e64f411e9..81006c4b8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-365.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-365.js
@@ -9,22 +9,22 @@ description: >
[[Configurable]] is false) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: false
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: false
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- enumerable: false
- });
+ Object.defineProperty(obj, "prop", {
+ enumerable: false
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.enumerable, true, 'desc1.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-366.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-366.js
index 1b8309916..95b7014a5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-366.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-366.js
@@ -9,22 +9,22 @@ description: >
[[Configurable]] is false) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: false
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: false
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- configurable: true
- });
+ Object.defineProperty(obj, "prop", {
+ configurable: true
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.configurable, false, 'desc1.configurable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-367.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-367.js
index 2626b69fa..9b9e0cb18 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-367.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-367.js
@@ -9,26 +9,26 @@ description: >
accessor property
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: false
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: false
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- function getFunc() {
- return 20;
- }
+function getFunc() {
+ return 20;
+}
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
+ Object.defineProperty(obj, "prop", {
+ get: getFunc
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.value, 2010, 'desc1.value');
assert.sameValue(obj.prop, 2010, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-368.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-368.js
index a9caeef64..96db2fbed 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-368.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-368.js
@@ -12,10 +12,10 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: false,
- configurable: true
+ value: 2010,
+ writable: false,
+ enumerable: false,
+ configurable: true
});
assert.sameValue(obj.prop, 2010);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-369.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-369.js
index 1950c4a80..d0a0fb9bb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-369.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-369.js
@@ -8,19 +8,19 @@ description: >
is false, [[Configurable]] is true) is non-enumerable
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: false,
- configurable: true
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p in obj) {
- assert.notSameValue(p, "prop", 'p');
- }
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p in obj) {
+ assert.notSameValue(p, "prop", 'p');
+}
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-37.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-37.js
index c27cbbc78..96bbf30e2 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-37.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-37.js
@@ -9,16 +9,16 @@ description: >
step 1)
---*/
- var obj = new Number(-2);
+var obj = new Number(-2);
- Object.defineProperty(obj, "foo", {
- value: 12,
- configurable: false
- });
+Object.defineProperty(obj, "foo", {
+ value: 12,
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "foo", {
- value: 11,
- configurable: true
- });
+ Object.defineProperty(obj, "foo", {
+ value: 11,
+ configurable: true
+ });
});
assert.sameValue(obj.foo, 12, 'obj.foo');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-370.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-370.js
index 96e8bc9e2..84042d502 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-370.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-370.js
@@ -8,17 +8,17 @@ description: >
is false, [[Configurable]] is true) is deletable
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: false,
- configurable: true
- });
- var beforeDelete = obj.hasOwnProperty("prop");
- delete obj.prop;
- var afterDelete = obj.hasOwnProperty("prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
+var beforeDelete = obj.hasOwnProperty("prop");
+delete obj.prop;
+var afterDelete = obj.hasOwnProperty("prop");
assert(beforeDelete, 'beforeDelete !== true');
assert.sameValue(afterDelete, false, 'afterDelete');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-371.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-371.js
index ce74180fd..9cff15820 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-371.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-371.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is true) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: false,
- configurable: true
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- writable: true
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ writable: true
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.writable, false, 'desc1.writable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-372.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-372.js
index 23d887263..706fe0181 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-372.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-372.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is true) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: false,
- configurable: true
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- enumerable: true
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ enumerable: true
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.enumerable, false, 'desc1.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-373.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-373.js
index 7e32a7a11..f430e1e2b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-373.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-373.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is true) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: false,
- configurable: true
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- configurable: false
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ configurable: false
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.configurable, true, 'desc1.configurable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-374.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-374.js
index 90e0d9d9f..8e7e19a67 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-374.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-374.js
@@ -9,22 +9,23 @@ description: >
accessor property
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: false,
- configurable: true
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- function getFunc() {
- return 20;
- }
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+
+function getFunc() {
+ return 20;
+}
+Object.defineProperty(obj, "prop", {
+ get: getFunc
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc1.hasOwnProperty("value"), 'desc1.hasOwnProperty("value") !== true');
assert.sameValue(desc2.get, getFunc, 'desc2.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-375.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-375.js
index 1af367932..93537a5ae 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-375.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-375.js
@@ -12,10 +12,10 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: false,
- configurable: false
+ value: 2010,
+ writable: false,
+ enumerable: false,
+ configurable: false
});
assert.sameValue(obj.prop, 2010);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-376.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-376.js
index 310fee16e..96651adc6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-376.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-376.js
@@ -8,19 +8,19 @@ description: >
is false, [[Configurable]] is false) is non-enumerable
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: false,
- configurable: false
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p in obj) {
- assert.notSameValue(p, "prop", 'p');
- }
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: false,
+ configurable: false
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p in obj) {
+ assert.notSameValue(p, "prop", 'p');
+}
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-377.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-377.js
index 068452b19..7e748275d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-377.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-377.js
@@ -12,10 +12,10 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: false,
- configurable: false
+ value: 2010,
+ writable: false,
+ enumerable: false,
+ configurable: false
});
assert(obj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-378.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-378.js
index ca9b1ab78..52430b44d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-378.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-378.js
@@ -9,22 +9,22 @@ description: >
[[Configurable]] is false) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: false,
- configurable: false
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: false,
+ configurable: false
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- writable: true
- });
+ Object.defineProperty(obj, "prop", {
+ writable: true
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.writable, false, 'desc1.writable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-379.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-379.js
index 8d52b1bb0..d7b5f4561 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-379.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-379.js
@@ -9,22 +9,22 @@ description: >
[[Configurable]] is false) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: false,
- configurable: false
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: false,
+ configurable: false
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- enumerable: true
- });
+ Object.defineProperty(obj, "prop", {
+ enumerable: true
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.enumerable, false, 'desc1.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-38.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-38.js
index 0489a3548..8a2d9ccfd 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-38.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-38.js
@@ -11,19 +11,18 @@ includes: [propertyHelper.js]
---*/
try {
- Object.defineProperty(Math, "foo", {
- value: 12,
- configurable: true
- });
-
- verifyEqualTo(Math, "foo", 12);
+ Object.defineProperty(Math, "foo", {
+ value: 12,
+ configurable: true
+ });
- verifyNotWritable(Math, "foo");
+ verifyEqualTo(Math, "foo", 12);
- verifyNotEnumerable(Math, "foo");
+ verifyNotWritable(Math, "foo");
- verifyConfigurable(Math, "foo");
+ verifyNotEnumerable(Math, "foo");
+
+ verifyConfigurable(Math, "foo");
} finally {
- delete Math.foo;
+ delete Math.foo;
}
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-380.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-380.js
index 8797d6d55..5cb151869 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-380.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-380.js
@@ -9,22 +9,22 @@ description: >
[[Configurable]] is false) to different value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: false,
- configurable: false
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: false,
+ configurable: false
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- configurable: true
- });
+ Object.defineProperty(obj, "prop", {
+ configurable: true
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.configurable, false, 'desc1.configurable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-381.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-381.js
index 93a371d41..51ed16c60 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-381.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-381.js
@@ -9,26 +9,26 @@ description: >
accessor property
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: false,
- configurable: false
- });
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: false,
+ configurable: false
+});
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- function getFunc() {
- return 20;
- }
+function getFunc() {
+ return 20;
+}
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
+ Object.defineProperty(obj, "prop", {
+ get: getFunc
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.value, 2010, 'desc1.value');
assert.sameValue(obj.prop, 2010, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-382.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-382.js
index 6a13ff503..705e91afd 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-382.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-382.js
@@ -6,13 +6,13 @@ es5id: 15.2.3.6-4-382
description: ES5 Attributes - [[Value]] attribute of data property is a number
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 1001
- });
+Object.defineProperty(obj, "prop", {
+ value: 1001
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(obj.prop, 1001, 'obj.prop');
assert.sameValue(desc.value, 1001, 'desc.value');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-383.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-383.js
index 16e5e19d0..38d55b278 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-383.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-383.js
@@ -6,13 +6,13 @@ es5id: 15.2.3.6-4-383
description: ES5 Attributes - [[Value]] attribute of data property is a string
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: "ThisIsAString"
- });
+Object.defineProperty(obj, "prop", {
+ value: "ThisIsAString"
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(obj.prop, "ThisIsAString", 'obj.prop');
assert.sameValue(desc.value, "ThisIsAString", 'desc.value');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-384.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-384.js
index cf51444dd..e7a3c51c8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-384.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-384.js
@@ -6,13 +6,13 @@ es5id: 15.2.3.6-4-384
description: ES5 Attributes - [[Value]] attribute of data property is a boolean
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: false
- });
+Object.defineProperty(obj, "prop", {
+ value: false
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(obj.prop, false, 'obj.prop');
assert.sameValue(desc.value, false, 'desc.value');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-385.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-385.js
index 397487f5c..d4dc8814d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-385.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-385.js
@@ -8,14 +8,16 @@ description: >
object
---*/
- var obj = {};
- var tempObj = { testproperty: 100 };
+var obj = {};
+var tempObj = {
+ testproperty: 100
+};
- Object.defineProperty(obj, "prop", {
- value: tempObj
- });
+Object.defineProperty(obj, "prop", {
+ value: tempObj
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(obj.prop, tempObj, 'obj.prop');
assert.sameValue(desc.value, tempObj, 'desc.value');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-386.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-386.js
index 44f100f09..112cd69dd 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-386.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-386.js
@@ -8,14 +8,14 @@ description: >
object
---*/
- var obj = {};
- var arrObj = [];
+var obj = {};
+var arrObj = [];
- Object.defineProperty(obj, "prop", {
- value: arrObj
- });
+Object.defineProperty(obj, "prop", {
+ value: arrObj
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(obj.prop, arrObj, 'obj.prop');
assert.sameValue(desc.value, arrObj, 'desc.value');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-387.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-387.js
index 0e8c8b77d..8da74faf3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-387.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-387.js
@@ -8,14 +8,14 @@ description: >
object
---*/
- var obj = {};
- var strObj = new String();
+var obj = {};
+var strObj = new String();
- Object.defineProperty(obj, "prop", {
- value: strObj
- });
+Object.defineProperty(obj, "prop", {
+ value: strObj
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(obj.prop, strObj, 'obj.prop');
assert.sameValue(desc.value, strObj, 'desc.value');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-388.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-388.js
index cef375818..9287bc675 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-388.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-388.js
@@ -8,14 +8,14 @@ description: >
object
---*/
- var obj = {};
- var numObj = new Number();
+var obj = {};
+var numObj = new Number();
- Object.defineProperty(obj, "prop", {
- value: numObj
- });
+Object.defineProperty(obj, "prop", {
+ value: numObj
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(obj.prop, numObj, 'obj.prop');
assert.sameValue(desc.value, numObj, 'desc.value');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-389.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-389.js
index 4777b4566..464ff9ea7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-389.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-389.js
@@ -8,14 +8,14 @@ description: >
Object
---*/
- var obj = {};
- var boolObj = new Boolean();
+var obj = {};
+var boolObj = new Boolean();
- Object.defineProperty(obj, "prop", {
- value: boolObj
- });
+Object.defineProperty(obj, "prop", {
+ value: boolObj
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(obj.prop, boolObj, 'obj.prop');
assert.sameValue(desc.value, boolObj, 'desc.value');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-39.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-39.js
index 8e26fa442..62173de61 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-39.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-39.js
@@ -9,16 +9,16 @@ description: >
step 1)
---*/
- var desc = new Date();
+var desc = new Date();
- Object.defineProperty(desc, "foo", {
- value: 12,
- configurable: false
- });
+Object.defineProperty(desc, "foo", {
+ value: 12,
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(desc, "foo", {
- value: 11,
- configurable: true
- });
+ Object.defineProperty(desc, "foo", {
+ value: 11,
+ configurable: true
+ });
});
assert.sameValue(desc.foo, 12, 'desc.foo');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-390.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-390.js
index c60d8330b..6025d9fae 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-390.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-390.js
@@ -8,14 +8,14 @@ description: >
Function object
---*/
- var obj = {};
- var funObj = function () { };
+var obj = {};
+var funObj = function() {};
- Object.defineProperty(obj, "prop", {
- value: funObj
- });
+Object.defineProperty(obj, "prop", {
+ value: funObj
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(obj.prop, funObj, 'obj.prop');
assert.sameValue(desc.value, funObj, 'desc.value');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-391.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-391.js
index 4d8b67005..d43ce7655 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-391.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-391.js
@@ -8,14 +8,14 @@ description: >
object
---*/
- var obj = {};
- var errObj = new Error();
+var obj = {};
+var errObj = new Error();
- Object.defineProperty(obj, "prop", {
- value: errObj
- });
+Object.defineProperty(obj, "prop", {
+ value: errObj
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(obj.prop, errObj, 'obj.prop');
assert.sameValue(desc.value, errObj, 'desc.value');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-392.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-392.js
index dd614a623..79cf9e516 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-392.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-392.js
@@ -8,14 +8,14 @@ description: >
object
---*/
- var obj = {};
- var dateObj = new Date();
+var obj = {};
+var dateObj = new Date();
- Object.defineProperty(obj, "prop", {
- value: dateObj
- });
+Object.defineProperty(obj, "prop", {
+ value: dateObj
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(obj.prop, dateObj, 'obj.prop');
assert.sameValue(desc.value, dateObj, 'desc.value');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-393.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-393.js
index 2d00d4687..8d32bbf87 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-393.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-393.js
@@ -8,14 +8,14 @@ description: >
object
---*/
- var obj = {};
- var regObj = new RegExp();
+var obj = {};
+var regObj = new RegExp();
- Object.defineProperty(obj, "prop", {
- value: regObj
- });
+Object.defineProperty(obj, "prop", {
+ value: regObj
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(obj.prop, regObj, 'obj.prop');
assert.sameValue(desc.value, regObj, 'desc.value');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-394.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-394.js
index f5e858877..51fdeaec1 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-394.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-394.js
@@ -6,13 +6,13 @@ es5id: 15.2.3.6-4-394
description: ES5 Attributes - [[Value]] attribute of data property is undefined
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: undefined
- });
+Object.defineProperty(obj, "prop", {
+ value: undefined
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(typeof obj.prop, "undefined", 'typeof obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-395.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-395.js
index de734ce6d..a37d12bb3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-395.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-395.js
@@ -6,13 +6,13 @@ es5id: 15.2.3.6-4-395
description: ES5 Attributes - [[Value]] attribute of data property is null
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: null
- });
+Object.defineProperty(obj, "prop", {
+ value: null
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(obj.prop, null, 'obj.prop');
assert.sameValue(desc.value, null, 'desc.value');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-396.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-396.js
index 2fb0eff84..165689aee 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-396.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-396.js
@@ -6,13 +6,13 @@ es5id: 15.2.3.6-4-396
description: ES5 Attributes - [[Value]] attribute of data property is NaN
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: NaN
- });
+Object.defineProperty(obj, "prop", {
+ value: NaN
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(obj.prop !== obj.prop, 'obj.prop !== obj.prop !== true');
assert(desc.value !== desc.value, 'desc.value !== desc.value !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-397.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-397.js
index e368a8e9b..92f7a3531 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-397.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-397.js
@@ -6,13 +6,13 @@ es5id: 15.2.3.6-4-397
description: ES5 Attributes - [[Value]] attribute of data property is Infinity
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: Infinity
- });
+Object.defineProperty(obj, "prop", {
+ value: Infinity
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(obj.prop, Infinity, 'obj.prop');
assert.sameValue(desc.value, Infinity, 'desc.value');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-398.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-398.js
index c3aadc108..62911ed65 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-398.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-398.js
@@ -6,13 +6,13 @@ es5id: 15.2.3.6-4-398
description: ES5 Attributes - [[Value]] attribute of data property is -Infinity
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: -Infinity
- });
+Object.defineProperty(obj, "prop", {
+ value: -Infinity
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(obj.prop, -Infinity, 'obj.prop');
assert.sameValue(desc.value, -Infinity, 'desc.value');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-399.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-399.js
index 0967e3d18..00ce04677 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-399.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-399.js
@@ -8,13 +8,13 @@ description: >
global object
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: this
- });
+Object.defineProperty(obj, "prop", {
+ value: this
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(obj.prop, this, 'obj.prop');
assert.sameValue(desc.value, this, 'desc.value');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-4.js
index 83d8922f6..8cbf79c11 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-4.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-4.js
@@ -12,14 +12,14 @@ description: >
desc(8.12.9 step 4.a.i)
---*/
- var o = {};
-
- var desc = {};
- Object.defineProperty(o, "foo", desc);
+var o = {};
- var propDesc = Object.getOwnPropertyDescriptor(o, "foo");
+var desc = {};
+Object.defineProperty(o, "foo", desc);
-assert.sameValue(propDesc.value, undefined, 'propDesc.value'); // undefined by default
-assert.sameValue(propDesc.writable, false, 'propDesc.writable'); // false by default
-assert.sameValue(propDesc.enumerable, false, 'propDesc.enumerable'); // false by default
-assert.sameValue(propDesc.configurable, false, 'propDesc.configurable'); // false by default
+var propDesc = Object.getOwnPropertyDescriptor(o, "foo");
+
+assert.sameValue(propDesc.value, undefined, 'propDesc.value'); // undefined by default
+assert.sameValue(propDesc.writable, false, 'propDesc.writable'); // false by default
+assert.sameValue(propDesc.enumerable, false, 'propDesc.enumerable'); // false by default
+assert.sameValue(propDesc.configurable, false, 'propDesc.configurable'); // false by default
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-40.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-40.js
index bfff5ac93..1ce253431 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-40.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-40.js
@@ -9,16 +9,16 @@ description: >
step 1)
---*/
- var desc = new RegExp();
+var desc = new RegExp();
- Object.defineProperty(desc, "foo", {
- value: 12,
- configurable: false
- });
+Object.defineProperty(desc, "foo", {
+ value: 12,
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(desc, "foo", {
- value: 11,
- configurable: true
- });
+ Object.defineProperty(desc, "foo", {
+ value: 11,
+ configurable: true
+ });
});
assert.sameValue(desc.foo, 12, 'desc.foo');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-402.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-402.js
index 1ef35f2bc..13ebd7a1f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-402.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-402.js
@@ -8,13 +8,13 @@ description: >
[[Prototype]] internal property is correct (String instance)
---*/
- Object.defineProperty(String.prototype, "prop", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
- });
- var strObj = new String();
+Object.defineProperty(String.prototype, "prop", {
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
+var strObj = new String();
assert.sameValue(strObj.hasOwnProperty("prop"), false, 'strObj.hasOwnProperty("prop")');
assert.sameValue(strObj.prop, 1001, 'strObj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-403.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-403.js
index 989f5d5e9..9039016e7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-403.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-403.js
@@ -9,14 +9,14 @@ description: >
attribute is set to true (Array instance)
---*/
- Object.defineProperty(Array.prototype, "prop", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
- });
- var arrObj = [];
- arrObj.prop = 1002;
+Object.defineProperty(Array.prototype, "prop", {
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
+var arrObj = [];
+arrObj.prop = 1002;
assert(arrObj.hasOwnProperty("prop"), 'arrObj.hasOwnProperty("prop") !== true');
assert.sameValue(arrObj.prop, 1002, 'arrObj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-404.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-404.js
index 5cd579892..bae93ad81 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-404.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-404.js
@@ -8,20 +8,20 @@ description: >
is set to true is enumerable (Boolean instance)
---*/
- Object.defineProperty(Boolean.prototype, "prop", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
- });
- var boolObj = new Boolean();
+Object.defineProperty(Boolean.prototype, "prop", {
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
+var boolObj = new Boolean();
- var verifyEnumerable = false;
- for (var p in boolObj) {
- if (p === "prop") {
- verifyEnumerable = true;
- }
- }
+var verifyEnumerable = false;
+for (var p in boolObj) {
+ if (p === "prop") {
+ verifyEnumerable = true;
+ }
+}
assert.sameValue(boolObj.hasOwnProperty("prop"), false, 'boolObj.hasOwnProperty("prop")');
assert(verifyEnumerable, 'verifyEnumerable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-405.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-405.js
index 3f7a50438..a6baa7252 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-405.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-405.js
@@ -10,14 +10,14 @@ description: >
includes: [propertyHelper.js]
---*/
- Object.defineProperty(Number.prototype, "prop", {
- value: 1001,
- writable: false,
- enumerable: false,
- configurable: true
- });
-
- var numObj = new Number();
+Object.defineProperty(Number.prototype, "prop", {
+ value: 1001,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
- assert(!numObj.hasOwnProperty("prop"));
- verifyNotWritable(numObj, "prop", "noCheckOwnProp");
+var numObj = new Number();
+
+assert(!numObj.hasOwnProperty("prop"));
+verifyNotWritable(numObj, "prop", "noCheckOwnProp");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-406.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-406.js
index 25ede11d5..b68b6c4cc 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-406.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-406.js
@@ -8,20 +8,20 @@ description: >
is set to false is non-enumerable (Function instance)
---*/
- Object.defineProperty(Function.prototype, "prop", {
- value: 1001,
- writable: false,
- enumerable: false,
- configurable: true
- });
- var funObj = function () { };
+Object.defineProperty(Function.prototype, "prop", {
+ value: 1001,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
+var funObj = function() {};
- var verifyEnumerable = false;
- for (var p in funObj) {
- if (p === "prop") {
- verifyEnumerable = true;
- }
- }
+var verifyEnumerable = false;
+for (var p in funObj) {
+ if (p === "prop") {
+ verifyEnumerable = true;
+ }
+}
assert.sameValue(funObj.hasOwnProperty("prop"), false, 'funObj.hasOwnProperty("prop")');
assert.sameValue(verifyEnumerable, false, 'verifyEnumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-407.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-407.js
index eeabd495e..4b5f67bb6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-407.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-407.js
@@ -8,13 +8,13 @@ description: >
[[Prototype]] internal property is correct (Error Instance)
---*/
- Object.defineProperty(Error.prototype, "prop", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
- });
- var errObj = new Error();
+Object.defineProperty(Error.prototype, "prop", {
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
+var errObj = new Error();
assert.sameValue(errObj.hasOwnProperty("prop"), false, 'errObj.hasOwnProperty("prop")');
assert.sameValue(errObj.prop, 1001, 'errObj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-408.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-408.js
index c1223a55c..d7d291df0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-408.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-408.js
@@ -9,14 +9,14 @@ description: >
attribute is set to true (Date instance)
---*/
- Object.defineProperty(Date.prototype, "prop", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
- });
- var dateObj = new Date();
- dateObj.prop = 1002;
+Object.defineProperty(Date.prototype, "prop", {
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
+var dateObj = new Date();
+dateObj.prop = 1002;
assert(dateObj.hasOwnProperty("prop"), 'dateObj.hasOwnProperty("prop") !== true');
assert.sameValue(dateObj.prop, 1002, 'dateObj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-409.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-409.js
index 8dd96da0b..3966b302f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-409.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-409.js
@@ -8,20 +8,20 @@ description: >
is set to false is enumerable (RegExp instance)
---*/
- Object.defineProperty(RegExp.prototype, "prop", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
- });
- var regObj = new RegExp();
+Object.defineProperty(RegExp.prototype, "prop", {
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
+var regObj = new RegExp();
- var verifyEnumerable = false;
- for (var p in regObj) {
- if (p === "prop") {
- verifyEnumerable = true;
- }
- }
+var verifyEnumerable = false;
+for (var p in regObj) {
+ if (p === "prop") {
+ verifyEnumerable = true;
+ }
+}
assert.sameValue(regObj.hasOwnProperty("prop"), false, 'regObj.hasOwnProperty("prop")');
assert(verifyEnumerable, 'verifyEnumerable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-41.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-41.js
index 83b86dbd7..b9c4cb1be 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-41.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-41.js
@@ -12,8 +12,8 @@ includes: [propertyHelper.js]
Object.defineProperty(JSON, "foo", {
-value: 12,
-configurable: true
+ value: 12,
+ configurable: true
});
verifyEqualTo(JSON, "foo", 12);
@@ -25,4 +25,3 @@ verifyNotEnumerable(JSON, "foo");
verifyConfigurable(JSON, "foo");
delete JSON.foo;
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-410.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-410.js
index 7c7a84256..d8efd15d9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-410.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-410.js
@@ -10,13 +10,13 @@ description: >
includes: [propertyHelper.js]
---*/
- Object.defineProperty(Object.prototype, "prop", {
- value: 1001,
- writable: false,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(Object.prototype, "prop", {
+ value: 1001,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
- assert(!JSON.hasOwnProperty("prop"));
- verifyNotWritable(JSON, "prop", "noCheckOwnProp");
- assert.sameValue(JSON.prop, 1001);
+assert(!JSON.hasOwnProperty("prop"));
+verifyNotWritable(JSON, "prop", "noCheckOwnProp");
+assert.sameValue(JSON.prop, 1001);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-411.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-411.js
index b8d82ce40..c19bd7905 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-411.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-411.js
@@ -8,19 +8,19 @@ description: >
is set to false is non-enumerable (Math)
---*/
- Object.defineProperty(Object.prototype, "prop", {
- value: 1001,
- writable: false,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(Object.prototype, "prop", {
+ value: 1001,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
- var verifyEnumerable = false;
- for (var p in Math) {
- if (p === "prop") {
- verifyEnumerable = true;
- }
- }
+var verifyEnumerable = false;
+for (var p in Math) {
+ if (p === "prop") {
+ verifyEnumerable = true;
+ }
+}
assert.sameValue(Math.hasOwnProperty("prop"), false, 'Math.hasOwnProperty("prop")');
assert.sameValue(verifyEnumerable, false, 'verifyEnumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-412.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-412.js
index 03459242f..e9fc63842 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-412.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-412.js
@@ -8,34 +8,34 @@ description: >
[[Prototype]] internal property is correct(Object.create)
---*/
- var appointment = {};
+var appointment = {};
- Object.defineProperty(appointment, "startTime", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(appointment, "name", {
- value: "NAME",
- writable: true,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(appointment, "startTime", {
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
+Object.defineProperty(appointment, "name", {
+ value: "NAME",
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
- var meeting = Object.create(appointment);
- Object.defineProperty(meeting, "conferenceCall", {
- value: "In-person meeting",
- writable: true,
- enumerable: true,
- configurable: true
- });
+var meeting = Object.create(appointment);
+Object.defineProperty(meeting, "conferenceCall", {
+ value: "In-person meeting",
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
- var teamMeeting = Object.create(meeting);
+var teamMeeting = Object.create(meeting);
- var hasOwnProperty = !teamMeeting.hasOwnProperty("name") &&
- !teamMeeting.hasOwnProperty("startTime") &&
- !teamMeeting.hasOwnProperty('conferenceCall');
+var hasOwnProperty = !teamMeeting.hasOwnProperty("name") &&
+ !teamMeeting.hasOwnProperty("startTime") &&
+ !teamMeeting.hasOwnProperty('conferenceCall');
assert(hasOwnProperty, 'hasOwnProperty !== true');
assert.sameValue(teamMeeting.name, "NAME", 'teamMeeting.name');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-413.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-413.js
index 9c832eed1..c168e5eb8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-413.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-413.js
@@ -9,38 +9,38 @@ description: >
[[Writable]] set to true (Object.create)
---*/
- var appointment = {};
+var appointment = {};
- Object.defineProperty(appointment, "startTime", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(appointment, "name", {
- value: "NAME",
- writable: true,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(appointment, "startTime", {
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
+Object.defineProperty(appointment, "name", {
+ value: "NAME",
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
- var meeting = Object.create(appointment);
- Object.defineProperty(meeting, "conferenceCall", {
- value: "In-person meeting",
- writable: true,
- enumerable: true,
- configurable: true
- });
+var meeting = Object.create(appointment);
+Object.defineProperty(meeting, "conferenceCall", {
+ value: "In-person meeting",
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
- var teamMeeting = Object.create(meeting);
- teamMeeting.name = "Team Meeting";
- var dateObj = new Date("10/31/2010 08:00");
- teamMeeting.startTime = dateObj;
- teamMeeting.conferenceCall = "4255551212";
+var teamMeeting = Object.create(meeting);
+teamMeeting.name = "Team Meeting";
+var dateObj = new Date("10/31/2010 08:00");
+teamMeeting.startTime = dateObj;
+teamMeeting.conferenceCall = "4255551212";
- var hasOwnProperty = teamMeeting.hasOwnProperty("name") &&
- teamMeeting.hasOwnProperty("startTime") &&
- teamMeeting.hasOwnProperty('conferenceCall');
+var hasOwnProperty = teamMeeting.hasOwnProperty("name") &&
+ teamMeeting.hasOwnProperty("startTime") &&
+ teamMeeting.hasOwnProperty('conferenceCall');
assert(hasOwnProperty, 'hasOwnProperty !== true');
assert.sameValue(teamMeeting.name, "Team Meeting", 'teamMeeting.name');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-414.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-414.js
index d0d7f1ea4..801915c95 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-414.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-414.js
@@ -8,49 +8,49 @@ description: >
is set to true is enumerable (Object.create)
---*/
- var appointment = new Object();
-
- Object.defineProperty(appointment, "startTime", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(appointment, "name", {
- value: "NAME",
- writable: true,
- enumerable: true,
- configurable: true
- });
-
- var meeting = Object.create(appointment);
- Object.defineProperty(meeting, "conferenceCall", {
- value: "In-person meeting",
- writable: true,
- enumerable: true,
- configurable: true
- });
-
- var teamMeeting = Object.create(meeting);
-
- var verifyTimeProp = false;
- var verifyNameProp = false;
- var verifyCallProp = false;
- for (var p in teamMeeting) {
- if (p === "startTime") {
- verifyTimeProp = true;
- }
- if (p === "name") {
- verifyNameProp = true;
- }
- if (p === "conferenceCall") {
- verifyCallProp = true;
- }
- }
-
- var hasOwnProperty = !teamMeeting.hasOwnProperty("name") &&
- !teamMeeting.hasOwnProperty("startTime") &&
- !teamMeeting.hasOwnProperty("conferenceCall");
+var appointment = new Object();
+
+Object.defineProperty(appointment, "startTime", {
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
+Object.defineProperty(appointment, "name", {
+ value: "NAME",
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
+
+var meeting = Object.create(appointment);
+Object.defineProperty(meeting, "conferenceCall", {
+ value: "In-person meeting",
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
+
+var teamMeeting = Object.create(meeting);
+
+var verifyTimeProp = false;
+var verifyNameProp = false;
+var verifyCallProp = false;
+for (var p in teamMeeting) {
+ if (p === "startTime") {
+ verifyTimeProp = true;
+ }
+ if (p === "name") {
+ verifyNameProp = true;
+ }
+ if (p === "conferenceCall") {
+ verifyCallProp = true;
+ }
+}
+
+var hasOwnProperty = !teamMeeting.hasOwnProperty("name") &&
+ !teamMeeting.hasOwnProperty("startTime") &&
+ !teamMeeting.hasOwnProperty("conferenceCall");
assert(hasOwnProperty, 'hasOwnProperty !== true');
assert(verifyTimeProp, 'verifyTimeProp !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-415.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-415.js
index fa7a07c40..74596c8c6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-415.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-415.js
@@ -13,24 +13,24 @@ includes: [propertyHelper.js]
var appointment = new Object();
Object.defineProperty(appointment, "startTime", {
- value: 1001,
- writable: false,
- enumerable: false,
- configurable: true
+ value: 1001,
+ writable: false,
+ enumerable: false,
+ configurable: true
});
Object.defineProperty(appointment, "name", {
- value: "NAME",
- writable: false,
- enumerable: false,
- configurable: true
+ value: "NAME",
+ writable: false,
+ enumerable: false,
+ configurable: true
});
var meeting = Object.create(appointment);
Object.defineProperty(meeting, "conferenceCall", {
- value: "In-person meeting",
- writable: false,
- enumerable: false,
- configurable: true
+ value: "In-person meeting",
+ writable: false,
+ enumerable: false,
+ configurable: true
});
var teamMeeting = Object.create(meeting);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-416.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-416.js
index 510662766..2d8308868 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-416.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-416.js
@@ -8,49 +8,49 @@ description: >
attribute is set to false is non-enumerable (Object.create)
---*/
- var appointment = {};
-
- Object.defineProperty(appointment, "startTime", {
- value: 1001,
- writable: false,
- enumerable: false,
- configurable: true
- });
- Object.defineProperty(appointment, "name", {
- value: "NAME",
- writable: false,
- enumerable: false,
- configurable: true
- });
-
- var meeting = Object.create(appointment);
- Object.defineProperty(meeting, "conferenceCall", {
- value: "In-person meeting",
- writable: false,
- enumerable: false,
- configurable: true
- });
-
- var teamMeeting = Object.create(meeting);
-
- var verifyTimeProp = false;
- var verifyNameProp = false;
- var verifyCallProp = false;
- for (var p in teamMeeting) {
- if (p === "startTime") {
- verifyTimeProp = true;
- }
- if (p === "name") {
- verifyNameProp = true;
- }
- if (p === "conferenceCall") {
- verifyCallProp = true;
- }
- }
-
- var hasOwnProperty = !teamMeeting.hasOwnProperty("name") &&
- !teamMeeting.hasOwnProperty("startTime") &&
- !teamMeeting.hasOwnProperty("conferenceCall");
+var appointment = {};
+
+Object.defineProperty(appointment, "startTime", {
+ value: 1001,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
+Object.defineProperty(appointment, "name", {
+ value: "NAME",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
+
+var meeting = Object.create(appointment);
+Object.defineProperty(meeting, "conferenceCall", {
+ value: "In-person meeting",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
+
+var teamMeeting = Object.create(meeting);
+
+var verifyTimeProp = false;
+var verifyNameProp = false;
+var verifyCallProp = false;
+for (var p in teamMeeting) {
+ if (p === "startTime") {
+ verifyTimeProp = true;
+ }
+ if (p === "name") {
+ verifyNameProp = true;
+ }
+ if (p === "conferenceCall") {
+ verifyCallProp = true;
+ }
+}
+
+var hasOwnProperty = !teamMeeting.hasOwnProperty("name") &&
+ !teamMeeting.hasOwnProperty("startTime") &&
+ !teamMeeting.hasOwnProperty("conferenceCall");
assert(hasOwnProperty, 'hasOwnProperty !== true');
assert.sameValue(verifyTimeProp, false, 'verifyTimeProp');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-417.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-417.js
index 6df596d40..d43581a35 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-417.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-417.js
@@ -8,16 +8,16 @@ description: >
[[Prototype]] internal property is correct(Function.prototype.bind)
---*/
- var foo = function () { };
+var foo = function() {};
- Object.defineProperty(Function.prototype, "prop", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(Function.prototype, "prop", {
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
- var obj = foo.bind({});
+var obj = foo.bind({});
assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")');
assert.sameValue(obj.prop, 1001, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-418.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-418.js
index d2c0ab532..cf49b910a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-418.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-418.js
@@ -9,17 +9,17 @@ description: >
[[Writable]] set to true (Function.prototype.bind)
---*/
- var foo = function () { };
+var foo = function() {};
- Object.defineProperty(Function.prototype, "prop", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(Function.prototype, "prop", {
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
- var obj = foo.bind({});
- obj.prop = 1002;
+var obj = foo.bind({});
+obj.prop = 1002;
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, 1002, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-419.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-419.js
index e175d090f..b1ff3a222 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-419.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-419.js
@@ -8,22 +8,22 @@ description: >
is set to true is enumerable (Function.prototype.bind)
---*/
- var foo = function () { };
+var foo = function() {};
- Object.defineProperty(Function.prototype, "prop", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(Function.prototype, "prop", {
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
- var obj = foo.bind({});
- var verifyEnumerable = false;
- for (var p in obj) {
- if (p === "prop") {
- verifyEnumerable = true;
- }
- }
+var obj = foo.bind({});
+var verifyEnumerable = false;
+for (var p in obj) {
+ if (p === "prop") {
+ verifyEnumerable = true;
+ }
+}
assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")');
assert(verifyEnumerable, 'verifyEnumerable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-42.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-42.js
index 2ca95325b..94147d9ee 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-42.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-42.js
@@ -9,16 +9,16 @@ description: >
step 1)
---*/
- var desc = new Error();
+var desc = new Error();
- Object.defineProperty(desc, "foo", {
- value: 12,
- configurable: false
- });
+Object.defineProperty(desc, "foo", {
+ value: 12,
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(desc, "foo", {
- value: 11,
- configurable: true
- });
+ Object.defineProperty(desc, "foo", {
+ value: 11,
+ configurable: true
+ });
});
assert.sameValue(desc.foo, 12, 'desc.foo');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-420.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-420.js
index f403f9b34..61e0d7a4a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-420.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-420.js
@@ -10,15 +10,15 @@ description: >
includes: [propertyHelper.js]
---*/
-var foo = function () { };
+var foo = function() {};
- Object.defineProperty(Function.prototype, "prop", {
- value: 1001,
- writable: false,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(Function.prototype, "prop", {
+ value: 1001,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
- var obj = foo.bind({});
- assert(!obj.hasOwnProperty("prop"));
- verifyNotWritable(foo, "prop", "noCheckOwnProp");
+var obj = foo.bind({});
+assert(!obj.hasOwnProperty("prop"));
+verifyNotWritable(foo, "prop", "noCheckOwnProp");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-421.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-421.js
index 120ffe0fd..8bfc1a459 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-421.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-421.js
@@ -8,22 +8,22 @@ description: >
is set to false is non-enumerable (Function.prototype.bind)
---*/
- var foo = function () { };
+var foo = function() {};
- Object.defineProperty(Function.prototype, "prop", {
- value: 1001,
- writable: false,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(Function.prototype, "prop", {
+ value: 1001,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
- var obj = foo.bind({});
- var verifyEnumerable = false;
- for (var p in obj) {
- if (p === "prop") {
- verifyEnumerable = true;
- }
- }
+var obj = foo.bind({});
+var verifyEnumerable = false;
+for (var p in obj) {
+ if (p === "prop") {
+ verifyEnumerable = true;
+ }
+}
assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")');
assert.sameValue(verifyEnumerable, false, 'verifyEnumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-422.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-422.js
index af1d66714..d616795c4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-422.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-422.js
@@ -9,17 +9,17 @@ description: >
[[Configurable]] is true) is undefined
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: true,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(typeof desc.get, "undefined", 'typeof desc.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-423.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-423.js
index 8f3e9ae5b..22145fef6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-423.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-423.js
@@ -9,17 +9,17 @@ description: >
[[Configurable]] is true) is undefined
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: true,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-424.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-424.js
index 1cfca488e..ef50f24f1 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-424.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-424.js
@@ -11,24 +11,24 @@ description: >
var propertyFound = false;
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: true,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p in obj) {
- if (p === "prop") {
- propertyFound = true;
- break;
- }
- }
+for (var p in obj) {
+ if (p === "prop") {
+ propertyFound = true;
+ break;
+ }
+}
assert(propertyFound, 'Property not found');
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-425.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-425.js
index f088516cc..86e8a7d0d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-425.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-425.js
@@ -9,19 +9,19 @@ description: >
deletable
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: true,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- delete obj.prop;
+delete obj.prop;
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.configurable, true, 'desc.configurable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-426.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-426.js
index 645d4286b..f8d02fa44 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-426.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-426.js
@@ -10,27 +10,27 @@ description: >
value
---*/
- var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var obj = {};
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: true,
+ configurable: true
+});
- var result1 = typeof obj.prop === "undefined";
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result1 = typeof obj.prop === "undefined";
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc
+});
- var result2 = obj.prop === 1001;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result2 = obj.prop === 1001;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-427.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-427.js
index 0aad297c2..e891baa30 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-427.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-427.js
@@ -10,28 +10,28 @@ description: >
value
---*/
- var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var obj = {};
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: true,
+ configurable: true
+});
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- set: setFunc
- });
+Object.defineProperty(obj, "prop", {
+ set: setFunc
+});
- obj.prop = "overrideData";
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+obj.prop = "overrideData";
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(typeof desc1.set, "undefined", 'typeof desc1.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-428.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-428.js
index 1e52d201b..df07ef319 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-428.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-428.js
@@ -10,32 +10,32 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: true,
- configurable: true
- });
- var result1 = false;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p1 in obj) {
- if (p1 === "prop") {
- result1 = true;
- }
- }
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: true,
+ configurable: true
+});
+var result1 = false;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p1 in obj) {
+ if (p1 === "prop") {
+ result1 = true;
+ }
+}
- Object.defineProperty(obj, "prop", {
- enumerable: false
- });
- var result2 = false;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p2 in obj) {
- if (p2 === "prop") {
- result2 = true;
- }
- }
+Object.defineProperty(obj, "prop", {
+ enumerable: false
+});
+var result2 = false;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p2 in obj) {
+ if (p2 === "prop") {
+ result2 = true;
+ }
+}
assert(result1, 'result1 !== true');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-429.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-429.js
index 3501ac669..a81c5f63d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-429.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-429.js
@@ -14,15 +14,15 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: true,
- configurable: true
+ get: undefined,
+ set: undefined,
+ enumerable: true,
+ configurable: true
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
Object.defineProperty(obj, "prop", {
- configurable: false
+ configurable: false
});
var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-43.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-43.js
index 4146385ec..bf28f6e87 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-43.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-43.js
@@ -9,16 +9,18 @@ description: >
property (8.12.9 step 1)
---*/
- var argObj = (function () { return arguments; })();
+var argObj = (function() {
+ return arguments;
+})();
- Object.defineProperty(argObj, "foo", {
- value: 12,
- configurable: false
- });
+Object.defineProperty(argObj, "foo", {
+ value: 12,
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(argObj, "foo", {
- value: 11,
- configurable: true
- });
+ Object.defineProperty(argObj, "foo", {
+ value: 11,
+ configurable: true
+ });
});
assert.sameValue(argObj.foo, 12, 'argObj.foo');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-430.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-430.js
index 315581b82..bd0f2560d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-430.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-430.js
@@ -9,20 +9,20 @@ description: >
[[Configurable]] is true) to a data property
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: true,
- configurable: true
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: true,
+ configurable: true
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- value: 1001
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 1001
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true');
assert(desc2.hasOwnProperty("value"), 'desc2.hasOwnProperty("value") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-431.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-431.js
index ad0e57ba9..f80f41183 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-431.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-431.js
@@ -9,17 +9,17 @@ description: >
[[Configurable]] is false) is undefined
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: true,
+ configurable: false
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(typeof desc.get, "undefined", 'typeof desc.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-432.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-432.js
index dc57d00b1..6e03e42e4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-432.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-432.js
@@ -9,17 +9,17 @@ description: >
[[Configurable]] is false) is undefined
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: true,
+ configurable: false
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-433.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-433.js
index e374de5ab..8cf33d7cd 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-433.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-433.js
@@ -11,24 +11,24 @@ description: >
var propertyFound = false;
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: true,
+ configurable: false
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p in obj) {
- if (p === "prop") {
- propertyFound = true;
- break;
- }
- }
+for (var p in obj) {
+ if (p === "prop") {
+ propertyFound = true;
+ break;
+ }
+}
assert(propertyFound, 'Property not found');
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-434.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-434.js
index b767db801..30d4a3257 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-434.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-434.js
@@ -13,10 +13,10 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: true,
- configurable: false
+ get: undefined,
+ set: undefined,
+ enumerable: true,
+ configurable: false
});
assert(obj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-435.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-435.js
index c95379168..3ed0e6ee8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-435.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-435.js
@@ -10,27 +10,27 @@ description: >
value
---*/
- var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var obj = {};
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: true,
+ configurable: false
+});
- var result1 = typeof obj.prop === "undefined";
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result1 = typeof obj.prop === "undefined";
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
+ Object.defineProperty(obj, "prop", {
+ get: getFunc
+ });
});
- var result2 = typeof obj.prop === "undefined";
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result2 = typeof obj.prop === "undefined";
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
assert.sameValue(typeof desc1.get, "undefined", 'typeof desc1.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-436.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-436.js
index 56a876802..2bdca2dc7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-436.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-436.js
@@ -10,25 +10,25 @@ description: >
value
---*/
- var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var obj = {};
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: true,
+ configurable: false
+});
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- set: setFunc
- });
+ Object.defineProperty(obj, "prop", {
+ set: setFunc
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(typeof desc1.set, "undefined", 'typeof desc1.set');
assert.sameValue(typeof desc2.set, "undefined", 'typeof desc2.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-437.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-437.js
index 1ad84c659..b12de9e8b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-437.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-437.js
@@ -10,33 +10,33 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: true,
- configurable: false
- });
- var result1 = false;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p1 in obj) {
- if (p1 === "prop") {
- result1 = true;
- }
- }
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: true,
+ configurable: false
+});
+var result1 = false;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p1 in obj) {
+ if (p1 === "prop") {
+ result1 = true;
+ }
+}
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- enumerable: false
- });
+ Object.defineProperty(obj, "prop", {
+ enumerable: false
+ });
});
- var result2 = false;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p2 in obj) {
- if (p2 === "prop") {
- result2 = true;
- }
- }
+var result2 = false;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p2 in obj) {
+ if (p2 === "prop") {
+ result2 = true;
+ }
+}
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-438.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-438.js
index 54ea036a5..68fc31929 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-438.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-438.js
@@ -14,28 +14,28 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: true,
- configurable: false
+ get: undefined,
+ set: undefined,
+ enumerable: true,
+ configurable: false
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
try {
- Object.defineProperty(obj, "prop", {
- configurable: true
- });
+ Object.defineProperty(obj, "prop", {
+ configurable: true
+ });
- $ERROR("Expected TypeError");
+ $ERROR("Expected TypeError");
} catch (e) {
- assert(e instanceof TypeError);
+ assert(e instanceof TypeError);
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+ var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- assert.sameValue(desc1.configurable, false);
- assert.sameValue(desc2.configurable, false);
+ assert.sameValue(desc1.configurable, false);
+ assert.sameValue(desc2.configurable, false);
- verifyNotConfigurable(obj, "prop");
+ verifyNotConfigurable(obj, "prop");
- assert(obj.hasOwnProperty("prop"));
+ assert(obj.hasOwnProperty("prop"));
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-439.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-439.js
index ce40ec27b..885ea7fad 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-439.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-439.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is false) to a data property
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: true,
- configurable: false
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: true,
+ configurable: false
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- value: 1001
- });
+ Object.defineProperty(obj, "prop", {
+ value: 1001
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true');
assert.sameValue(desc2.hasOwnProperty("value"), false, 'desc2.hasOwnProperty("value")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-440.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-440.js
index cbdec5470..3f07f5fad 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-440.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-440.js
@@ -9,17 +9,17 @@ description: >
[[Configurable]] is true) is undefined
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: false,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(typeof desc.get, "undefined", 'typeof desc.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-441.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-441.js
index 2a44e2278..039993477 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-441.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-441.js
@@ -9,17 +9,17 @@ description: >
[[Configurable]] is true) is undefined
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: false,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-442.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-442.js
index 72f9bf32f..2faca9506 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-442.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-442.js
@@ -9,21 +9,21 @@ description: >
non-enumerable
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: false,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p in obj) {
- assert.notSameValue(p, "prop", 'p');
- }
+for (var p in obj) {
+ assert.notSameValue(p, "prop", 'p');
+}
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-443.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-443.js
index b20c7d664..c1ebaabbe 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-443.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-443.js
@@ -9,19 +9,19 @@ description: >
deletable
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: false,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- delete obj.prop;
+delete obj.prop;
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.configurable, true, 'desc.configurable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-444.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-444.js
index 06fe5d84f..8868623ca 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-444.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-444.js
@@ -10,27 +10,27 @@ description: >
value
---*/
- var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var obj = {};
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: false,
+ configurable: true
+});
- var result1 = typeof obj.prop === "undefined";
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result1 = typeof obj.prop === "undefined";
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc
+});
- var result2 = obj.prop === 1001;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result2 = obj.prop === 1001;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-445.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-445.js
index 2e29668de..80cf08840 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-445.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-445.js
@@ -10,29 +10,29 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: false,
+ configurable: true
+});
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
- Object.defineProperty(obj, "prop", {
- set: setFunc
- });
+Object.defineProperty(obj, "prop", {
+ set: setFunc
+});
- obj.prop = "overrideData";
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+obj.prop = "overrideData";
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(typeof desc1.set, "undefined", 'typeof desc1.set');
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-446.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-446.js
index 83a537a9c..5d4b94e6a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-446.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-446.js
@@ -10,32 +10,32 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: false,
- configurable: true
- });
- var result1 = false;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p1 in obj) {
- if (p1 === "prop") {
- result1 = true;
- }
- }
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: false,
+ configurable: true
+});
+var result1 = false;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p1 in obj) {
+ if (p1 === "prop") {
+ result1 = true;
+ }
+}
- Object.defineProperty(obj, "prop", {
- enumerable: true
- });
- var result2 = false;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p2 in obj) {
- if (p2 === "prop") {
- result2 = true;
- }
- }
+Object.defineProperty(obj, "prop", {
+ enumerable: true
+});
+var result2 = false;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p2 in obj) {
+ if (p2 === "prop") {
+ result2 = true;
+ }
+}
assert.sameValue(result1, false, 'result1');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-447.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-447.js
index 9e464a5eb..29400f464 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-447.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-447.js
@@ -14,15 +14,15 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: false,
- configurable: true
+ get: undefined,
+ set: undefined,
+ enumerable: false,
+ configurable: true
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
Object.defineProperty(obj, "prop", {
- configurable: false
+ configurable: false
});
var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-448.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-448.js
index c86437c68..890d97d88 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-448.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-448.js
@@ -9,20 +9,20 @@ description: >
[[Configurable]] is true) to a data property
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: false,
- configurable: true
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: false,
+ configurable: true
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- value: 1001
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 1001
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true');
assert(desc2.hasOwnProperty("value"), 'desc2.hasOwnProperty("value") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-449.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-449.js
index 8454c88fe..3a3fb7f0d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-449.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-449.js
@@ -9,17 +9,17 @@ description: >
[[Configurable]] is false) is undefined
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: false,
+ configurable: false
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(typeof desc.get, "undefined", 'typeof desc.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-45.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-45.js
index 8f846042f..20fabf0ab 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-45.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-45.js
@@ -11,8 +11,8 @@ includes: [propertyHelper.js]
---*/
Object.defineProperty(this, "foo", {
- value: 12,
- configurable: true
+ value: 12,
+ configurable: true
});
verifyEqualTo(this, "foo", 12);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-450.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-450.js
index 8b3da549b..879174ee5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-450.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-450.js
@@ -9,17 +9,17 @@ description: >
[[Configurable]] is false) is undefined
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: false,
+ configurable: false
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-451.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-451.js
index ef9fb05c2..01ccab698 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-451.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-451.js
@@ -9,21 +9,21 @@ description: >
non-enumerable
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: false,
+ configurable: false
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p in obj) {
- assert.notSameValue(p, "prop", 'p');
- }
+for (var p in obj) {
+ assert.notSameValue(p, "prop", 'p');
+}
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-452.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-452.js
index c673a5394..e180f9c4c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-452.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-452.js
@@ -13,10 +13,10 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: false,
- configurable: false
+ get: undefined,
+ set: undefined,
+ enumerable: false,
+ configurable: false
});
assert(obj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-453.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-453.js
index c0780c55b..1dc9a7a40 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-453.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-453.js
@@ -10,27 +10,27 @@ description: >
value
---*/
- var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var obj = {};
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: false,
+ configurable: false
+});
- var result1 = typeof obj.prop === "undefined";
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result1 = typeof obj.prop === "undefined";
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
+ Object.defineProperty(obj, "prop", {
+ get: getFunc
+ });
});
- var result2 = typeof obj.prop === "undefined";
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result2 = typeof obj.prop === "undefined";
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
assert.sameValue(typeof desc1.get, "undefined", 'typeof desc1.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-454.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-454.js
index 52e445972..80fc87b8b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-454.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-454.js
@@ -10,26 +10,26 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: false,
+ configurable: false
+});
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- set: setFunc
- });
+ Object.defineProperty(obj, "prop", {
+ set: setFunc
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(typeof desc1.set, "undefined", 'typeof desc1.set');
assert.sameValue(typeof desc2.set, "undefined", 'typeof desc2.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-455.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-455.js
index baad82466..8626d0143 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-455.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-455.js
@@ -10,33 +10,33 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: false,
- configurable: false
- });
- var result1 = false;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p1 in obj) {
- if (p1 === "prop") {
- result1 = true;
- }
- }
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: false,
+ configurable: false
+});
+var result1 = false;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p1 in obj) {
+ if (p1 === "prop") {
+ result1 = true;
+ }
+}
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- enumerable: true
- });
+ Object.defineProperty(obj, "prop", {
+ enumerable: true
+ });
});
- var result2 = false;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p2 in obj) {
- if (p2 === "prop") {
- result2 = true;
- }
- }
+var result2 = false;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p2 in obj) {
+ if (p2 === "prop") {
+ result2 = true;
+ }
+}
assert.sameValue(result1, false, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-456.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-456.js
index d909bfd1d..e6c683654 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-456.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-456.js
@@ -14,28 +14,28 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: false,
- configurable: false
+ get: undefined,
+ set: undefined,
+ enumerable: false,
+ configurable: false
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
try {
- Object.defineProperty(obj, "prop", {
- configurable: true
- });
+ Object.defineProperty(obj, "prop", {
+ configurable: true
+ });
- $ERROR("Expected TypeError");
+ $ERROR("Expected TypeError");
} catch (e) {
- assert(e instanceof TypeError);
-
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+ assert(e instanceof TypeError);
- assert.sameValue(desc1.configurable, false);
- assert.sameValue(desc2.configurable, false);
+ var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- verifyNotConfigurable(obj, "prop");
+ assert.sameValue(desc1.configurable, false);
+ assert.sameValue(desc2.configurable, false);
- assert(obj.hasOwnProperty("prop"));
+ verifyNotConfigurable(obj, "prop");
+
+ assert(obj.hasOwnProperty("prop"));
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-457.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-457.js
index 7f90aa379..9cdb490ad 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-457.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-457.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is false) to a data property
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: undefined,
- enumerable: false,
- configurable: false
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: undefined,
+ enumerable: false,
+ configurable: false
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- value: 1001
- });
+ Object.defineProperty(obj, "prop", {
+ value: 1001
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true');
assert.sameValue(desc2.hasOwnProperty("value"), false, 'desc2.hasOwnProperty("value")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-458.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-458.js
index 97868514a..c069ec8e4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-458.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-458.js
@@ -9,22 +9,22 @@ description: >
[[Configurable]] is true) is undefined
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(typeof desc.get, "undefined", 'typeof desc.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-459.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-459.js
index 7f5fbeb97..e0c30c91f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-459.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-459.js
@@ -9,23 +9,23 @@ description: >
[[Configurable]] is true) is the expected function
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+});
- obj.prop = "overrideData";
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+obj.prop = "overrideData";
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.set, setFunc, 'desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-46.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-46.js
index 6bb80f608..4fbc77bcf 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-46.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-46.js
@@ -9,18 +9,18 @@ description: >
descriptor (8.12.9 step 4.a)
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "property", {
- enumerable: true
- });
+Object.defineProperty(obj, "property", {
+ enumerable: true
+});
- var isEnumerable = false;
- for (var item in obj) {
- if (obj.hasOwnProperty(item) && item === "property") {
- isEnumerable = true;
- }
- }
+var isEnumerable = false;
+for (var item in obj) {
+ if (obj.hasOwnProperty(item) && item === "property") {
+ isEnumerable = true;
+ }
+}
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
assert(isEnumerable, 'isEnumerable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-460.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-460.js
index 0ff4a8016..fdae5fabf 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-460.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-460.js
@@ -11,29 +11,29 @@ description: >
var propertyFound = false;
- var obj = {};
-
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
-
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
-
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
-
- for (var p in obj) {
- if (p === "prop") {
- propertyFound = true;
- break;
- }
- }
+var obj = {};
+
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
+
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+});
+
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+
+for (var p in obj) {
+ if (p === "prop") {
+ propertyFound = true;
+ break;
+ }
+}
assert(propertyFound, 'Property not found');
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-461.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-461.js
index 0def8453a..95a8fa78c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-461.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-461.js
@@ -9,24 +9,24 @@ description: >
deletable
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- delete obj.prop;
+delete obj.prop;
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.configurable, true, 'desc.configurable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-462.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-462.js
index 3e1a0de3b..63380aa1b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-462.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-462.js
@@ -10,33 +10,33 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+});
- var result1 = typeof obj.prop === "undefined";
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result1 = typeof obj.prop === "undefined";
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc
+});
- var result2 = obj.prop === 1001;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result2 = obj.prop === 1001;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-463.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-463.js
index 2df1dddc7..c23898424 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-463.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-463.js
@@ -10,27 +10,27 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+});
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- set: undefined
- });
+Object.defineProperty(obj, "prop", {
+ set: undefined
+});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(desc1.set, setFunc, 'desc1.set');
assert.sameValue(typeof desc2.set, "undefined", 'typeof desc2.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-464.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-464.js
index bd4d6d709..28eecc8f0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-464.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-464.js
@@ -10,38 +10,38 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+});
- var result1 = false;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p1 in obj) {
- if (p1 === "prop") {
- result1 = true;
- }
- }
+var result1 = false;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p1 in obj) {
+ if (p1 === "prop") {
+ result1 = true;
+ }
+}
- Object.defineProperty(obj, "prop", {
- enumerable: false
- });
- var result2 = false;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p2 in obj) {
- if (p2 === "prop") {
- result2 = true;
- }
- }
+Object.defineProperty(obj, "prop", {
+ enumerable: false
+});
+var result2 = false;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p2 in obj) {
+ if (p2 === "prop") {
+ result2 = true;
+ }
+}
assert(result1, 'result1 !== true');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-465.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-465.js
index a3f5ed2ea..52e31f678 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-465.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-465.js
@@ -14,20 +14,20 @@ includes: [propertyHelper.js]
var obj = {};
var verifySetFunc = "data";
-var setFunc = function (value) {
- verifySetFunc = value;
+var setFunc = function(value) {
+ verifySetFunc = value;
};
Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: true,
- configurable: true
+ get: undefined,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
Object.defineProperty(obj, "prop", {
- configurable: false
+ configurable: false
});
var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-466.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-466.js
index 9bbd3affe..b89d8d49d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-466.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-466.js
@@ -9,25 +9,25 @@ description: >
[[Configurable]] is true) to a data property
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- value: 1001
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 1001
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true');
assert(desc2.hasOwnProperty("value"), 'desc2.hasOwnProperty("value") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-467.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-467.js
index 9bd1e448e..66de51eda 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-467.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-467.js
@@ -9,22 +9,22 @@ description: >
[[Configurable]] is false) is undefined
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(typeof desc.get, "undefined", 'typeof desc.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-468.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-468.js
index 0ad4ce436..f79b26f7e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-468.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-468.js
@@ -9,23 +9,23 @@ description: >
[[Configurable]] is false) is the expected function
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
+});
- obj.prop = "overrideData";
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+obj.prop = "overrideData";
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.set, setFunc, 'desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-469.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-469.js
index 391bbf7ae..b492d13ca 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-469.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-469.js
@@ -11,29 +11,29 @@ description: >
var propertyFound = false;
- var obj = {};
-
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
-
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: true,
- configurable: false
- });
-
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
-
- for (var p in obj) {
- if (p === "prop") {
- propertyFound = true;
- break;
- }
- }
+var obj = {};
+
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
+
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
+});
+
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+
+for (var p in obj) {
+ if (p === "prop") {
+ propertyFound = true;
+ break;
+ }
+}
assert(propertyFound, 'Property not found');
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-47.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-47.js
index 2dc07f0c5..079b50517 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-47.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-47.js
@@ -13,9 +13,9 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "property", {
- writable: true,
- enumerable: true,
- configurable: false
+ writable: true,
+ enumerable: true,
+ configurable: false
});
verifyEqualTo(obj, "property", undefined);
@@ -25,4 +25,3 @@ verifyWritable(obj, "property");
verifyEnumerable(obj, "property");
verifyNotConfigurable(obj, "property");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-470.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-470.js
index 9686379c5..d725daa99 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-470.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-470.js
@@ -13,15 +13,15 @@ includes: [propertyHelper.js]
var obj = {};
var verifySetFunc = "data";
-var setFunc = function (value) {
- verifySetFunc = value;
+var setFunc = function(value) {
+ verifySetFunc = value;
};
Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: true,
- configurable: false
+ get: undefined,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
});
assert(obj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-471.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-471.js
index 1d0099628..1edb26951 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-471.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-471.js
@@ -10,33 +10,33 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
+});
- var result1 = typeof obj.prop === "undefined";
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result1 = typeof obj.prop === "undefined";
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
+ Object.defineProperty(obj, "prop", {
+ get: getFunc
+ });
});
- var result2 = typeof obj.prop === "undefined";
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result2 = typeof obj.prop === "undefined";
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-472.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-472.js
index 1502c79c1..c22ce621a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-472.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-472.js
@@ -10,27 +10,27 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
+});
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- set: undefined
- });
+ Object.defineProperty(obj, "prop", {
+ set: undefined
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(desc1.set, setFunc, 'desc1.set');
assert.sameValue(desc2.set, setFunc, 'desc2.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-473.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-473.js
index a9c65d14d..ab525133f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-473.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-473.js
@@ -10,39 +10,39 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
+});
- var result1 = false;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p1 in obj) {
- if (p1 === "prop") {
- result1 = true;
- }
- }
+var result1 = false;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p1 in obj) {
+ if (p1 === "prop") {
+ result1 = true;
+ }
+}
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- enumerable: false
- });
+ Object.defineProperty(obj, "prop", {
+ enumerable: false
+ });
});
- var result2 = false;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p2 in obj) {
- if (p2 === "prop") {
- result2 = true;
- }
- }
+var result2 = false;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p2 in obj) {
+ if (p2 === "prop") {
+ result2 = true;
+ }
+}
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-474.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-474.js
index c3b2af60e..27355b6c5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-474.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-474.js
@@ -14,33 +14,33 @@ includes: [propertyHelper.js]
var obj = {};
var verifySetFunc = "data";
-var setFunc = function (value) {
- verifySetFunc = value;
+var setFunc = function(value) {
+ verifySetFunc = value;
};
Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: true,
- configurable: false
+ get: undefined,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
try {
- Object.defineProperty(obj, "prop", {
- configurable: true
- });
+ Object.defineProperty(obj, "prop", {
+ configurable: true
+ });
- $ERROR("Expected TypeError");
+ $ERROR("Expected TypeError");
} catch (e) {
- assert(e instanceof TypeError);
+ assert(e instanceof TypeError);
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+ var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- assert.sameValue(desc1.configurable, false);
- assert.sameValue(desc2.configurable, false);
+ assert.sameValue(desc1.configurable, false);
+ assert.sameValue(desc2.configurable, false);
- verifyNotConfigurable(obj, "prop");
+ verifyNotConfigurable(obj, "prop");
- assert(obj.hasOwnProperty("prop"));
+ assert(obj.hasOwnProperty("prop"));
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-475.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-475.js
index 1ea58556c..77b5946d7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-475.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-475.js
@@ -9,26 +9,26 @@ description: >
[[Configurable]] is false) to a data property
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: true,
- configurable: false
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- value: 1001
- });
+ Object.defineProperty(obj, "prop", {
+ value: 1001
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true');
assert.sameValue(desc2.hasOwnProperty("value"), false, 'desc2.hasOwnProperty("value")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-476.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-476.js
index c9203cdd7..5ca6b3223 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-476.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-476.js
@@ -9,22 +9,22 @@ description: >
[[Configurable]] is true) is undefined
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: false,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(typeof desc.get, "undefined", 'typeof desc.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-477.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-477.js
index 0285a1f9b..965e6c0f9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-477.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-477.js
@@ -9,23 +9,23 @@ description: >
[[Configurable]] is true) is the expected function
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: false,
+ configurable: true
+});
- obj.prop = "overrideData";
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+obj.prop = "overrideData";
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.set, setFunc, 'desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-478.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-478.js
index 519d80e7b..8d604495f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-478.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-478.js
@@ -9,26 +9,26 @@ description: >
non-enumerable
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: false,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p in obj) {
- assert.notSameValue(p, "prop", 'p');
- }
+for (var p in obj) {
+ assert.notSameValue(p, "prop", 'p');
+}
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-479.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-479.js
index 8faf0c6c1..2625d302c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-479.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-479.js
@@ -9,24 +9,24 @@ description: >
deletable
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: false,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- delete obj.prop;
+delete obj.prop;
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.configurable, true, 'desc.configurable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-48.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-48.js
index 6b57a7c2c..14b658aad 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-48.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-48.js
@@ -13,9 +13,9 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "property", {
- value: 1001,
- enumerable: true,
- configurable: false
+ value: 1001,
+ enumerable: true,
+ configurable: false
});
verifyEqualTo(obj, "property", 1001);
@@ -25,4 +25,3 @@ verifyNotWritable(obj, "property");
verifyEnumerable(obj, "property");
verifyNotConfigurable(obj, "property");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-480.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-480.js
index d3c67c802..0fdba161c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-480.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-480.js
@@ -10,33 +10,33 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: false,
+ configurable: true
+});
- var result1 = typeof obj.prop === "undefined";
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result1 = typeof obj.prop === "undefined";
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc
+});
- var result2 = obj.prop === 1001;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result2 = obj.prop === 1001;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-481.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-481.js
index a876dad7e..f9219bfc3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-481.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-481.js
@@ -10,27 +10,27 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: false,
+ configurable: true
+});
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- set: undefined
- });
+Object.defineProperty(obj, "prop", {
+ set: undefined
+});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(desc1.set, setFunc, 'desc1.set');
assert.sameValue(typeof desc2.set, "undefined", 'typeof desc2.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-482.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-482.js
index a0ed01131..502550fcf 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-482.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-482.js
@@ -10,38 +10,38 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: false,
+ configurable: true
+});
- var result1 = false;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p1 in obj) {
- if (p1 === "prop") {
- result1 = true;
- }
- }
+var result1 = false;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p1 in obj) {
+ if (p1 === "prop") {
+ result1 = true;
+ }
+}
- Object.defineProperty(obj, "prop", {
- enumerable: true
- });
- var result2 = false;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p2 in obj) {
- if (p2 === "prop") {
- result2 = true;
- }
- }
+Object.defineProperty(obj, "prop", {
+ enumerable: true
+});
+var result2 = false;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p2 in obj) {
+ if (p2 === "prop") {
+ result2 = true;
+ }
+}
assert.sameValue(result1, false, 'result1');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-483.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-483.js
index 5ff0c4423..f957a1dd0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-483.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-483.js
@@ -14,20 +14,20 @@ includes: [propertyHelper.js]
var obj = {};
var verifySetFunc = "data";
-var setFunc = function (value) {
- verifySetFunc = value;
+var setFunc = function(value) {
+ verifySetFunc = value;
};
Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: false,
- configurable: true
+ get: undefined,
+ set: setFunc,
+ enumerable: false,
+ configurable: true
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
Object.defineProperty(obj, "prop", {
- configurable: false
+ configurable: false
});
var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-484.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-484.js
index 92329f3d7..000f16cd3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-484.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-484.js
@@ -9,25 +9,25 @@ description: >
[[Configurable]] is true) to a data property
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: false,
- configurable: true
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: false,
+ configurable: true
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- value: 1001
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 1001
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true');
assert(desc2.hasOwnProperty("value"), 'desc2.hasOwnProperty("value") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-485.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-485.js
index 2a1a18a85..de21112f7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-485.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-485.js
@@ -9,22 +9,22 @@ description: >
[[Configurable]] is false) is undefined
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(typeof desc.get, "undefined", 'typeof desc.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-486.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-486.js
index 2f5f0e3b0..40f2608fa 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-486.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-486.js
@@ -9,23 +9,23 @@ description: >
[[Configurable]] is false) is the expected function
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
+});
- obj.prop = "overrideData";
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+obj.prop = "overrideData";
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.set, setFunc, 'desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-487.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-487.js
index 8aaf8e2ba..d3f9ccc5d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-487.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-487.js
@@ -9,26 +9,26 @@ description: >
non-enumerable
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p in obj) {
- assert.notSameValue(p, "prop", 'p');
- }
+for (var p in obj) {
+ assert.notSameValue(p, "prop", 'p');
+}
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-488.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-488.js
index 1f310fae3..feb156428 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-488.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-488.js
@@ -13,15 +13,15 @@ includes: [propertyHelper.js]
var obj = {};
var verifySetFunc = "data";
-var setFunc = function (value) {
- verifySetFunc = value;
+var setFunc = function(value) {
+ verifySetFunc = value;
};
Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: false,
- configurable: false
+ get: undefined,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
});
assert(obj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-489.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-489.js
index 18e561052..8b09d6cc8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-489.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-489.js
@@ -10,33 +10,33 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
+});
- var result1 = typeof obj.prop === "undefined";
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result1 = typeof obj.prop === "undefined";
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
+ Object.defineProperty(obj, "prop", {
+ get: getFunc
+ });
});
- var result2 = typeof obj.prop === "undefined";
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result2 = typeof obj.prop === "undefined";
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-49.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-49.js
index 8bbe80ad4..98db24fdd 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-49.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-49.js
@@ -13,9 +13,9 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "property", {
- value: 1001,
- writable: true,
- configurable: true
+ value: 1001,
+ writable: true,
+ configurable: true
});
verifyEqualTo(obj, "property", 1001);
@@ -24,4 +24,3 @@ verifyWritable(obj, "property");
verifyNotEnumerable(obj, "property");
verifyConfigurable(obj, "property");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-490.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-490.js
index a397f74ee..2ce9c7276 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-490.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-490.js
@@ -10,27 +10,27 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
+});
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- set: undefined
- });
+ Object.defineProperty(obj, "prop", {
+ set: undefined
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(desc1.set, setFunc, 'desc1.set');
assert.sameValue(desc2.set, setFunc, 'desc2.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-491.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-491.js
index 04c26899b..db3c1fba4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-491.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-491.js
@@ -10,39 +10,39 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
+});
- var result1 = false;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p1 in obj) {
- if (p1 === "prop") {
- result1 = true;
- }
- }
+var result1 = false;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p1 in obj) {
+ if (p1 === "prop") {
+ result1 = true;
+ }
+}
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- enumerable: true
- });
+ Object.defineProperty(obj, "prop", {
+ enumerable: true
+ });
});
- var result2 = false;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p2 in obj) {
- if (p2 === "prop") {
- result2 = true;
- }
- }
+var result2 = false;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p2 in obj) {
+ if (p2 === "prop") {
+ result2 = true;
+ }
+}
assert.sameValue(result1, false, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-492.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-492.js
index 8365a46aa..1cdf9be44 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-492.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-492.js
@@ -14,33 +14,33 @@ includes: [propertyHelper.js]
var obj = {};
var verifySetFunc = "data";
-var setFunc = function (value) {
- verifySetFunc = value;
+var setFunc = function(value) {
+ verifySetFunc = value;
};
Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: false,
- configurable: false
+ get: undefined,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
try {
- Object.defineProperty(obj, "prop", {
- configurable: true
- });
+ Object.defineProperty(obj, "prop", {
+ configurable: true
+ });
- $ERROR("Expected TypeError");
+ $ERROR("Expected TypeError");
} catch (e) {
- assert(e instanceof TypeError);
+ assert(e instanceof TypeError);
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+ var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- verifyNotConfigurable(obj, "prop");
+ verifyNotConfigurable(obj, "prop");
- assert.sameValue(desc1.configurable, false);
- assert.sameValue(desc2.configurable, false);
+ assert.sameValue(desc1.configurable, false);
+ assert.sameValue(desc2.configurable, false);
- assert(obj.hasOwnProperty("prop"));
+ assert(obj.hasOwnProperty("prop"));
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-493.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-493.js
index 8e51a7fd8..6d9039cb3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-493.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-493.js
@@ -9,26 +9,26 @@ description: >
[[Configurable]] is false) to a data property
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: undefined,
- set: setFunc,
- enumerable: false,
- configurable: false
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ get: undefined,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- value: 1001
- });
+ Object.defineProperty(obj, "prop", {
+ value: 1001
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true');
assert.sameValue(desc2.hasOwnProperty("value"), false, 'desc2.hasOwnProperty("value")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-494.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-494.js
index 307059771..aa2ca2bc5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-494.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-494.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is true) is the expected function
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: true,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.get, getFunc, 'desc.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-495.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-495.js
index 924720e5e..88e0b13c0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-495.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-495.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is true) is undefined
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: true,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-496.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-496.js
index 2e63e773b..01e69ac78 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-496.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-496.js
@@ -11,28 +11,28 @@ description: >
var propertyFound = false;
- var obj = {};
-
- var getFunc = function () {
- return 1001;
- };
-
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: true,
- configurable: true
- });
-
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
-
- for (var p in obj) {
- if (p === "prop") {
- propertyFound = true;
- break;
- }
- }
+var obj = {};
+
+var getFunc = function() {
+ return 1001;
+};
+
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: true,
+ configurable: true
+});
+
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+
+for (var p in obj) {
+ if (p === "prop") {
+ propertyFound = true;
+ break;
+ }
+}
assert(propertyFound, 'Property not found');
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-497.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-497.js
index f2079be32..56cd7c4d0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-497.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-497.js
@@ -9,23 +9,23 @@ description: >
deletable
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: true,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- delete obj.prop;
+delete obj.prop;
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.configurable, true, 'desc.configurable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-498.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-498.js
index 2289b4393..dc83bf088 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-498.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-498.js
@@ -10,27 +10,27 @@ description: >
value
---*/
- var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var obj = {};
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: true,
+ configurable: true
+});
- var result1 = obj.prop === 1001;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result1 = obj.prop === 1001;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- get: undefined
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined
+});
- var result2 = typeof obj.prop === "undefined";
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result2 = typeof obj.prop === "undefined";
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-499.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-499.js
index d07f52810..23e5d1856 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-499.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-499.js
@@ -10,32 +10,32 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: true,
+ configurable: true
+});
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- set: setFunc
- });
+Object.defineProperty(obj, "prop", {
+ set: setFunc
+});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- obj.prop = "overrideData";
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+obj.prop = "overrideData";
assert.sameValue(typeof desc1.set, "undefined", 'typeof desc1.set');
assert.sameValue(desc2.set, setFunc, 'desc2.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-5.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-5.js
index 1bafed8ad..8ce00687b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-5.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-5.js
@@ -13,28 +13,33 @@ description: >
data desc
---*/
- function sameDataDescriptorValues(d1, d2) {
- return (d1.value === d2.value &&
- d1.enumerable === d2.enumerable &&
- d1.writable === d2.writable &&
- d1.configurable === d2.configurable);
- }
-
- var o = {};
-
- // create a data valued property with the following attributes:
- // value: 101, enumerable: true, writable: true, configurable: true
- o["foo"] = 101;
-
- // query for, and save, the desc. A subsequent call to defineProperty
- // with the same desc should not disturb the property definition.
- var d1 = Object.getOwnPropertyDescriptor(o, "foo");
-
- // now, redefine the property with the same descriptor
- // the property defintion should not get disturbed.
- var desc = { value: 101, enumerable: true, writable: true, configurable: true };
- Object.defineProperty(o, "foo", desc);
-
- var d2 = Object.getOwnPropertyDescriptor(o, "foo");
+function sameDataDescriptorValues(d1, d2) {
+ return (d1.value === d2.value &&
+ d1.enumerable === d2.enumerable &&
+ d1.writable === d2.writable &&
+ d1.configurable === d2.configurable);
+}
+
+var o = {};
+
+// create a data valued property with the following attributes:
+// value: 101, enumerable: true, writable: true, configurable: true
+o["foo"] = 101;
+
+// query for, and save, the desc. A subsequent call to defineProperty
+// with the same desc should not disturb the property definition.
+var d1 = Object.getOwnPropertyDescriptor(o, "foo");
+
+// now, redefine the property with the same descriptor
+// the property defintion should not get disturbed.
+var desc = {
+ value: 101,
+ enumerable: true,
+ writable: true,
+ configurable: true
+};
+Object.defineProperty(o, "foo", desc);
+
+var d2 = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(sameDataDescriptorValues(d1, d2), true, 'sameDataDescriptorValues(d1, d2)');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-50.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-50.js
index efe6ef67f..71b2c8d1a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-50.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-50.js
@@ -13,9 +13,9 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "property", {
- value: 1001,
- writable: true,
- enumerable: true
+ value: 1001,
+ writable: true,
+ enumerable: true
});
verifyEqualTo(obj, "property", 1001);
@@ -24,4 +24,3 @@ verifyWritable(obj, "property");
verifyEnumerable(obj, "property");
verifyNotConfigurable(obj, "property");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-500.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-500.js
index ed20f1ac7..aee530e20 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-500.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-500.js
@@ -10,36 +10,36 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: true,
- configurable: true
- });
- var result1 = false;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p1 in obj) {
- if (p1 === "prop") {
- result1 = true;
- }
- }
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: true,
+ configurable: true
+});
+var result1 = false;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p1 in obj) {
+ if (p1 === "prop") {
+ result1 = true;
+ }
+}
- Object.defineProperty(obj, "prop", {
- enumerable: false
- });
- var result2 = false;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p2 in obj) {
- if (p2 === "prop") {
- result2 = true;
- }
- }
+Object.defineProperty(obj, "prop", {
+ enumerable: false
+});
+var result2 = false;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p2 in obj) {
+ if (p2 === "prop") {
+ result2 = true;
+ }
+}
assert(result1, 'result1 !== true');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-501.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-501.js
index 6e0b509f6..8e08bb907 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-501.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-501.js
@@ -13,20 +13,20 @@ includes: [propertyHelper.js]
var obj = {};
-var getFunc = function () {
- return 1001;
+var getFunc = function() {
+ return 1001;
};
Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: true,
- configurable: true
+ get: getFunc,
+ set: undefined,
+ enumerable: true,
+ configurable: true
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
Object.defineProperty(obj, "prop", {
- configurable: false
+ configurable: false
});
var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-502.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-502.js
index 7a2ef9839..e34e339b3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-502.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-502.js
@@ -9,24 +9,24 @@ description: >
[[Configurable]] is true) to a data property
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: true,
- configurable: true
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: true,
+ configurable: true
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- value: 1001
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 1001
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true');
assert(desc2.hasOwnProperty("value"), 'desc2.hasOwnProperty("value") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-503.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-503.js
index 76320b704..88f45cc23 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-503.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-503.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is false) is the expected function
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: true,
+ configurable: false
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.get, getFunc, 'desc.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-504.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-504.js
index f1534efb0..9de8384ee 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-504.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-504.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is false) is undefined
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: true,
+ configurable: false
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-505.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-505.js
index f15171ddc..0d4931588 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-505.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-505.js
@@ -11,28 +11,28 @@ description: >
var propertyFound = false;
- var obj = {};
-
- var getFunc = function () {
- return 1001;
- };
-
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: true,
- configurable: false
- });
-
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
-
- for (var p in obj) {
- if (p === "prop") {
- propertyFound = true;
- break;
- }
- }
+var obj = {};
+
+var getFunc = function() {
+ return 1001;
+};
+
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: true,
+ configurable: false
+});
+
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+
+for (var p in obj) {
+ if (p === "prop") {
+ propertyFound = true;
+ break;
+ }
+}
assert(propertyFound, 'Property not found');
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-506.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-506.js
index 402a33861..0156fa1ba 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-506.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-506.js
@@ -12,15 +12,15 @@ includes: [propertyHelper.js]
var obj = {};
-var getFunc = function () {
- return 1001;
+var getFunc = function() {
+ return 1001;
};
Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: true,
- configurable: false
+ get: getFunc,
+ set: undefined,
+ enumerable: true,
+ configurable: false
});
assert(obj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-507.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-507.js
index f5ffda634..96f2c3ff3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-507.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-507.js
@@ -10,27 +10,27 @@ description: >
value
---*/
- var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var obj = {};
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: true,
+ configurable: false
+});
- var result1 = obj.prop === 1001;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result1 = obj.prop === 1001;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- get: undefined
- });
+ Object.defineProperty(obj, "prop", {
+ get: undefined
+ });
});
- var result2 = obj.prop === 1001;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result2 = obj.prop === 1001;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-508.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-508.js
index 5aba3d35e..c355e64e1 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-508.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-508.js
@@ -10,31 +10,31 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: true,
+ configurable: false
+});
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- set: setFunc
- });
+ Object.defineProperty(obj, "prop", {
+ set: setFunc
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(typeof desc1.set, "undefined", 'typeof desc1.set');
assert.sameValue(typeof desc2.set, "undefined", 'typeof desc2.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-509.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-509.js
index 697a1b3c4..4a5aaa080 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-509.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-509.js
@@ -10,37 +10,37 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: true,
- configurable: false
- });
- var result1 = false;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p1 in obj) {
- if (p1 === "prop") {
- result1 = true;
- }
- }
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: true,
+ configurable: false
+});
+var result1 = false;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p1 in obj) {
+ if (p1 === "prop") {
+ result1 = true;
+ }
+}
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- enumerable: false
- });
+ Object.defineProperty(obj, "prop", {
+ enumerable: false
+ });
});
- var result2 = false;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p2 in obj) {
- if (p2 === "prop") {
- result2 = true;
- }
- }
+var result2 = false;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p2 in obj) {
+ if (p2 === "prop") {
+ result2 = true;
+ }
+}
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-51.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-51.js
index c5866cbee..58b2ff240 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-51.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-51.js
@@ -9,13 +9,15 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = { "property": 1 }; // default value of attributes: writable: true, configurable: true, enumerable: true
+var obj = {
+ "property": 1
+}; // default value of attributes: writable: true, configurable: true, enumerable: true
Object.defineProperty(obj, "property", {
- value: 1001,
- writable: false,
- enumerable: false,
- configurable: false
+ value: 1001,
+ writable: false,
+ enumerable: false,
+ configurable: false
});
verifyEqualTo(obj, "property", 1001);
@@ -25,4 +27,3 @@ verifyNotWritable(obj, "property");
verifyNotEnumerable(obj, "property");
verifyNotConfigurable(obj, "property");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-510.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-510.js
index 41e43cbeb..1ca3ab85a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-510.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-510.js
@@ -13,33 +13,33 @@ includes: [propertyHelper.js]
var obj = {};
-var getFunc = function () {
- return 1001;
+var getFunc = function() {
+ return 1001;
};
Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: true,
- configurable: false
+ get: getFunc,
+ set: undefined,
+ enumerable: true,
+ configurable: false
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
try {
- Object.defineProperty(obj, "prop", {
- configurable: true
- });
+ Object.defineProperty(obj, "prop", {
+ configurable: true
+ });
- $ERROR("Expected TypeError");
+ $ERROR("Expected TypeError");
} catch (e) {
- assert(e instanceof TypeError);
+ assert(e instanceof TypeError);
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+ var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- assert.sameValue(desc1.configurable, false);
- assert.sameValue(desc2.configurable, false);
+ assert.sameValue(desc1.configurable, false);
+ assert.sameValue(desc2.configurable, false);
- verifyNotConfigurable(obj, "prop");
+ verifyNotConfigurable(obj, "prop");
- assert(obj.hasOwnProperty("prop"));
+ assert(obj.hasOwnProperty("prop"));
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-511.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-511.js
index d3c44cf0b..04577039c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-511.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-511.js
@@ -9,25 +9,25 @@ description: >
[[Configurable]] is false) to a data property
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: true,
- configurable: false
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: true,
+ configurable: false
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- value: 1001
- });
+ Object.defineProperty(obj, "prop", {
+ value: 1001
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true');
assert.sameValue(desc2.hasOwnProperty("value"), false, 'desc2.hasOwnProperty("value")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-512.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-512.js
index c7627d864..3aae36099 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-512.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-512.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is true) is the expected function
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.get, getFunc, 'desc.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-513.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-513.js
index f44cb451a..8e7a5afc6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-513.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-513.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is true) is undefined
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-514.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-514.js
index 6b80aa137..09ea483b5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-514.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-514.js
@@ -9,25 +9,25 @@ description: >
non-enumerable
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p in obj) {
- assert.notSameValue(p, "prop", 'p');
- }
+for (var p in obj) {
+ assert.notSameValue(p, "prop", 'p');
+}
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-515.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-515.js
index b87f8abd5..68f8ec750 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-515.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-515.js
@@ -9,23 +9,23 @@ description: >
deletable
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- delete obj.prop;
+delete obj.prop;
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.configurable, true, 'desc.configurable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-516.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-516.js
index 523204109..29e30b240 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-516.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-516.js
@@ -10,27 +10,27 @@ description: >
value
---*/
- var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var obj = {};
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: true
+});
- var result1 = obj.prop === 1001;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result1 = obj.prop === 1001;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- get: undefined
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined
+});
- var result2 = typeof obj.prop === "undefined";
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result2 = typeof obj.prop === "undefined";
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-517.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-517.js
index d47836e41..fd7bd5d47 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-517.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-517.js
@@ -10,33 +10,33 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: true
+});
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
- Object.defineProperty(obj, "prop", {
- set: setFunc
- });
+Object.defineProperty(obj, "prop", {
+ set: setFunc
+});
- obj.prop = "overrideData";
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+obj.prop = "overrideData";
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(typeof desc1.set, "undefined", 'typeof desc1.set');
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-518.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-518.js
index bbf3dbf0c..2c04a1f97 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-518.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-518.js
@@ -10,36 +10,36 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: true
- });
- var result1 = false;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p1 in obj) {
- if (p1 === "prop") {
- result1 = true;
- }
- }
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: true
+});
+var result1 = false;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p1 in obj) {
+ if (p1 === "prop") {
+ result1 = true;
+ }
+}
- Object.defineProperty(obj, "prop", {
- enumerable: true
- });
- var result2 = false;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p2 in obj) {
- if (p2 === "prop") {
- result2 = true;
- }
- }
+Object.defineProperty(obj, "prop", {
+ enumerable: true
+});
+var result2 = false;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p2 in obj) {
+ if (p2 === "prop") {
+ result2 = true;
+ }
+}
assert.sameValue(result1, false, 'result1');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-519.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-519.js
index ee0a43eab..98382e84f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-519.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-519.js
@@ -13,20 +13,20 @@ includes: [propertyHelper.js]
var obj = {};
-var getFunc = function () {
- return 1001;
+var getFunc = function() {
+ return 1001;
};
Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: true
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: true
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
Object.defineProperty(obj, "prop", {
- configurable: false
+ configurable: false
});
var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-52.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-52.js
index 171df640c..1908bdf01 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-52.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-52.js
@@ -21,4 +21,3 @@ verifyNotWritable(obj, "property");
verifyNotEnumerable(obj, "property");
verifyNotConfigurable(obj, "property");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-520.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-520.js
index 166779005..241b8ba74 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-520.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-520.js
@@ -9,24 +9,24 @@ description: >
[[Configurable]] is true) to a data property
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: true
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: true
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- value: 1001
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ value: 1001
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true');
assert(desc2.hasOwnProperty("value"), 'desc2.hasOwnProperty("value") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-521.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-521.js
index 26ed78b25..56745554a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-521.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-521.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is false) is the expected function
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: false
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.get, getFunc, 'desc.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-522.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-522.js
index 7b4a2b78a..95715c56e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-522.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-522.js
@@ -9,21 +9,21 @@ description: >
[[Configurable]] is false) is undefined
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: false
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-523.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-523.js
index 8c1377dc0..2423be8bf 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-523.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-523.js
@@ -9,25 +9,25 @@ description: >
non-enumerable
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: false
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p in obj) {
- assert.notSameValue(p, "prop", 'p');
- }
+for (var p in obj) {
+ assert.notSameValue(p, "prop", 'p');
+}
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-524.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-524.js
index 2bdc20ca6..0020bc962 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-524.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-524.js
@@ -12,15 +12,15 @@ includes: [propertyHelper.js]
var obj = {};
-var getFunc = function () {
- return 1001;
+var getFunc = function() {
+ return 1001;
};
Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: false
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: false
});
assert(obj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-525.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-525.js
index 1ac4af8f8..c1320bc65 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-525.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-525.js
@@ -10,27 +10,27 @@ description: >
value
---*/
- var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var obj = {};
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: false
+});
- var result1 = obj.prop === 1001;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result1 = obj.prop === 1001;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- get: undefined
- });
+ Object.defineProperty(obj, "prop", {
+ get: undefined
+ });
});
- var result2 = obj.prop === 1001;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result2 = obj.prop === 1001;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-526.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-526.js
index 620c61a24..f861fa1c0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-526.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-526.js
@@ -10,31 +10,31 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: false
+});
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- set: setFunc
- });
+ Object.defineProperty(obj, "prop", {
+ set: setFunc
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(typeof desc1.set, "undefined", 'typeof desc1.set');
assert.sameValue(typeof desc2.set, "undefined", 'typeof desc2.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-527.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-527.js
index a1cc85f9a..d7174363b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-527.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-527.js
@@ -10,37 +10,37 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: false
- });
- var result1 = false;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p1 in obj) {
- if (p1 === "prop") {
- result1 = true;
- }
- }
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: false
+});
+var result1 = false;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p1 in obj) {
+ if (p1 === "prop") {
+ result1 = true;
+ }
+}
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- enumerable: true
- });
+ Object.defineProperty(obj, "prop", {
+ enumerable: true
+ });
});
- var result2 = false;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p2 in obj) {
- if (p2 === "prop") {
- result2 = true;
- }
- }
+var result2 = false;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p2 in obj) {
+ if (p2 === "prop") {
+ result2 = true;
+ }
+}
assert.sameValue(result1, false, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-528.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-528.js
index 31510895a..12189aeb1 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-528.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-528.js
@@ -13,33 +13,33 @@ includes: [propertyHelper.js]
var obj = {};
-var getFunc = function () {
- return 1001;
+var getFunc = function() {
+ return 1001;
};
Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: false
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: false
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
try {
- Object.defineProperty(obj, "prop", {
- configurable: true
- });
+ Object.defineProperty(obj, "prop", {
+ configurable: true
+ });
- $ERROR("Expected TypeError");
+ $ERROR("Expected TypeError");
} catch (e) {
- assert(e instanceof TypeError);
+ assert(e instanceof TypeError);
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+ var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- assert.sameValue(desc1.configurable, false);
- assert.sameValue(desc2.configurable, false);
-
- verifyNotConfigurable(obj, "prop");
+ assert.sameValue(desc1.configurable, false);
+ assert.sameValue(desc2.configurable, false);
- assert(obj.hasOwnProperty("prop"));
+ verifyNotConfigurable(obj, "prop");
+
+ assert(obj.hasOwnProperty("prop"));
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-529.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-529.js
index 891797eb9..6c1379041 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-529.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-529.js
@@ -9,25 +9,25 @@ description: >
[[Configurable]] is false) to a data property
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: false
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: false
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- value: 1001
- });
+ Object.defineProperty(obj, "prop", {
+ value: 1001
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true');
assert.sameValue(desc2.hasOwnProperty("value"), false, 'desc2.hasOwnProperty("value")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-53.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-53.js
index 784f6499c..454f0f8f5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-53.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-53.js
@@ -11,14 +11,14 @@ includes: [propertyHelper.js]
---*/
var obj = {};
-var setFunc = function (value) {
- obj.setVerifyHelpProp = value;
+var setFunc = function(value) {
+ obj.setVerifyHelpProp = value;
};
Object.defineProperty(obj, "property", {
- set: setFunc,
- enumerable: true,
- configurable: true
+ set: setFunc,
+ enumerable: true,
+ configurable: true
});
verifyWritable(obj, "property", "setVerifyHelpProp");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-530.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-530.js
index 794b0bdc7..2a5620740 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-530.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-530.js
@@ -9,26 +9,26 @@ description: >
[[Configurable]] is true) is the expected function
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.get, getFunc, 'desc.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-1.js
index aec2d504d..e24cd71d1 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-1.js
@@ -14,26 +14,26 @@ includes: [propertyHelper.js]
var obj = {};
obj.verifySetFunction = "data";
Object.defineProperty(obj, "property", {
- get: function () {
- return obj.verifySetFunction;
- },
- set: function (value) {
- obj.verifySetFunction = value;
- },
- configurable: true
+ get: function() {
+ return obj.verifySetFunction;
+ },
+ set: function(value) {
+ obj.verifySetFunction = value;
+ },
+ configurable: true
});
obj.verifySetFunction1 = "data1";
-var getFunc = function () {
- return obj.verifySetFunction1;
+var getFunc = function() {
+ return obj.verifySetFunction1;
};
-var setFunc = function (value) {
- obj.verifySetFunction1 = value;
+var setFunc = function(value) {
+ obj.verifySetFunction1 = value;
};
Object.defineProperty(obj, "property", {
- get: getFunc,
- set: setFunc
+ get: getFunc,
+ set: setFunc
});
verifyEqualTo(obj, "property", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-10.js
index 39aec7cfa..9d6ac91a6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-10.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-10.js
@@ -16,26 +16,26 @@ var obj = {};
obj.verifySetFunction = "data";
Object.defineProperty(obj, "0", {
- get: function () {
- return obj.verifySetFunction;
- },
- set: function (value) {
- obj.verifySetFunction = value;
- },
- configurable: true
+ get: function() {
+ return obj.verifySetFunction;
+ },
+ set: function(value) {
+ obj.verifySetFunction = value;
+ },
+ configurable: true
});
obj.verifySetFunction1 = "data1";
-var getFunc = function () {
- return obj.verifySetFunction1;
+var getFunc = function() {
+ return obj.verifySetFunction1;
};
-var setFunc = function (value) {
- obj.verifySetFunction1 = value;
+var setFunc = function(value) {
+ obj.verifySetFunction1 = value;
};
Object.defineProperty(obj, "0", {
- get: getFunc,
- set: setFunc
+ get: getFunc,
+ set: setFunc
});
verifyEqualTo(obj, "0", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-11.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-11.js
index 006eba6b0..ed85b1d96 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-11.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-11.js
@@ -15,26 +15,26 @@ var obj = [];
obj.verifySetFunction = "data";
Object.defineProperty(obj, "prop", {
- get: function () {
- return obj.verifySetFunction;
- },
- set: function (value) {
- obj.verifySetFunction = value;
- },
- configurable: true
+ get: function() {
+ return obj.verifySetFunction;
+ },
+ set: function(value) {
+ obj.verifySetFunction = value;
+ },
+ configurable: true
});
obj.verifySetFunction1 = "data1";
-var getFunc = function () {
- return obj.verifySetFunction1;
+var getFunc = function() {
+ return obj.verifySetFunction1;
};
-var setFunc = function (value) {
- obj.verifySetFunction1 = value;
+var setFunc = function(value) {
+ obj.verifySetFunction1 = value;
};
Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc
+ get: getFunc,
+ set: setFunc
});
verifyEqualTo(obj, "prop", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-12.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-12.js
index ab79cd60e..2cb8b6a77 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-12.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-12.js
@@ -11,32 +11,32 @@ includes: [propertyHelper.js]
---*/
-var obj = (function () {
- return arguments;
+var obj = (function() {
+ return arguments;
}());
obj.verifySetFunction = "data";
Object.defineProperty(obj, "0", {
- get: function () {
- return obj.verifySetFunction;
- },
- set: function (value) {
- obj.verifySetFunction = value;
- },
- configurable: true
+ get: function() {
+ return obj.verifySetFunction;
+ },
+ set: function(value) {
+ obj.verifySetFunction = value;
+ },
+ configurable: true
});
obj.verifySetFunction1 = "data1";
-var getFunc = function () {
- return obj.verifySetFunction1;
+var getFunc = function() {
+ return obj.verifySetFunction1;
};
-var setFunc = function (value) {
- obj.verifySetFunction1 = value;
+var setFunc = function(value) {
+ obj.verifySetFunction1 = value;
};
Object.defineProperty(obj, "0", {
- get: getFunc,
- set: setFunc
+ get: getFunc,
+ set: setFunc
});
verifyEqualTo(obj, "0", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-15.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-15.js
index eec71d694..7d290be2d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-15.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-15.js
@@ -9,26 +9,26 @@ description: >
step 5.b)
---*/
- var obj = [];
+var obj = [];
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
- var getFunc = function () {
- return verifySetFunc;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
+var getFunc = function() {
+ return verifySetFunc;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+});
- obj.prop = "overrideData";
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+obj.prop = "overrideData";
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.set, setFunc, 'desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-16.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-16.js
index 18edd69ae..5016c0b40 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-16.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-16.js
@@ -8,28 +8,28 @@ description: >
simple assignment, 'O' is an Arguments object (8.12.5 step 5.b)
---*/
- var obj = (function () {
- return arguments;
- }());
+var obj = (function() {
+ return arguments;
+}());
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
- var getFunc = function () {
- return verifySetFunc;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
+var getFunc = function() {
+ return verifySetFunc;
+};
- Object.defineProperty(obj, "0", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "0", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+});
- obj[0] = "overrideData";
- var propertyDefineCorrect = obj.hasOwnProperty("0");
- var desc = Object.getOwnPropertyDescriptor(obj, "0");
+obj[0] = "overrideData";
+var propertyDefineCorrect = obj.hasOwnProperty("0");
+var desc = Object.getOwnPropertyDescriptor(obj, "0");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.set, setFunc, 'desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-2.js
index e0e3eded8..16bd7a199 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-2.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-2.js
@@ -16,26 +16,26 @@ var obj = [];
obj.verifySetFunction = "data";
Object.defineProperty(obj, "0", {
- get: function () {
- return obj.verifySetFunction;
- },
- set: function (value) {
- obj.verifySetFunction = value;
- },
- configurable: true
+ get: function() {
+ return obj.verifySetFunction;
+ },
+ set: function(value) {
+ obj.verifySetFunction = value;
+ },
+ configurable: true
});
obj.verifySetFunction1 = "data1";
-var getFunc = function () {
- return obj.verifySetFunction1;
+var getFunc = function() {
+ return obj.verifySetFunction1;
};
-var setFunc = function (value) {
- obj.verifySetFunction1 = value;
+var setFunc = function(value) {
+ obj.verifySetFunction1 = value;
};
Object.defineProperty(obj, "0", {
- get: getFunc,
- set: setFunc
+ get: getFunc,
+ set: setFunc
});
verifyEqualTo(obj, "0", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-3.js
index 8f6b3eaa0..cc97b6371 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-3.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-3.js
@@ -11,32 +11,32 @@ includes: [propertyHelper.js]
---*/
-var obj = (function () {
- return arguments;
+var obj = (function() {
+ return arguments;
}());
obj.verifySetFunction = "data";
Object.defineProperty(obj, "property", {
- get: function () {
- return obj.verifySetFunction;
- },
- set: function (value) {
- obj.verifySetFunction = value;
- },
- configurable: true
+ get: function() {
+ return obj.verifySetFunction;
+ },
+ set: function(value) {
+ obj.verifySetFunction = value;
+ },
+ configurable: true
});
obj.verifySetFunction1 = "data1";
-var getFunc = function () {
- return obj.verifySetFunction1;
+var getFunc = function() {
+ return obj.verifySetFunction1;
};
-var setFunc = function (value) {
- obj.verifySetFunction1 = value;
+var setFunc = function(value) {
+ obj.verifySetFunction1 = value;
};
Object.defineProperty(obj, "property", {
- get: getFunc,
- set: setFunc
+ get: getFunc,
+ set: setFunc
});
verifyEqualTo(obj, "property", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-6.js
index 8bb261f1f..64e8ede81 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-6.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-6.js
@@ -13,14 +13,14 @@ includes: [propertyHelper.js]
var obj = [];
var verifySetFunc = "data";
-var getFunc = function () {
- return verifySetFunc;
+var getFunc = function() {
+ return verifySetFunc;
};
Object.defineProperty(obj, "0", {
- get: getFunc,
- enumerable: true,
- configurable: true
+ get: getFunc,
+ enumerable: true,
+ configurable: true
});
verifyNotWritable(obj, "0");
@@ -29,4 +29,3 @@ assert(obj.hasOwnProperty("0"));
var desc = Object.getOwnPropertyDescriptor(obj, "0");
assert.sameValue(typeof desc.set, "undefined");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-7.js
index ebd0d7c6c..f120c9fe5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-7.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-7.js
@@ -10,19 +10,19 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = (function () {
- return arguments;
+var obj = (function() {
+ return arguments;
}());
var verifySetFunc = "data";
-var getFunc = function () {
- return verifySetFunc;
+var getFunc = function() {
+ return verifySetFunc;
};
Object.defineProperty(obj, "prop", {
- get: getFunc,
- enumerable: true,
- configurable: true
+ get: getFunc,
+ enumerable: true,
+ configurable: true
});
assert(obj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531.js
index dcb124023..bf61045fe 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531.js
@@ -9,27 +9,27 @@ description: >
[[Configurable]] is true) is the expected function
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+});
- obj.prop = "overrideData";
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+obj.prop = "overrideData";
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.set, setFunc, 'desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-532.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-532.js
index ee3370eaf..69e401856 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-532.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-532.js
@@ -11,33 +11,33 @@ description: >
var propertyFound = false;
- var obj = {};
-
- var getFunc = function () {
- return 1001;
- };
-
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
-
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
-
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
-
- for (var p in obj) {
- if (p === "prop") {
- propertyFound = true;
- break;
- }
- }
+var obj = {};
+
+var getFunc = function() {
+ return 1001;
+};
+
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
+
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+});
+
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+
+for (var p in obj) {
+ if (p === "prop") {
+ propertyFound = true;
+ break;
+ }
+}
assert(propertyFound, 'Property not found');
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-533.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-533.js
index 7c26ccedb..e750f0f51 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-533.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-533.js
@@ -9,28 +9,28 @@ description: >
deletable
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- delete obj.prop;
+delete obj.prop;
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.configurable, true, 'desc.configurable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-534.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-534.js
index c6acdc49d..0bed7486f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-534.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-534.js
@@ -10,33 +10,33 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+});
- var result1 = obj.prop === 1001;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result1 = obj.prop === 1001;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- get: undefined
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined
+});
- var result2 = typeof obj.prop === "undefined";
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result2 = typeof obj.prop === "undefined";
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-535.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-535.js
index 7235c3f78..9dc369ef8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-535.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-535.js
@@ -10,31 +10,31 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+});
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- set: undefined
- });
+Object.defineProperty(obj, "prop", {
+ set: undefined
+});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(desc1.set, setFunc, 'desc1.set');
assert.sameValue(typeof desc2.set, "undefined", 'typeof desc2.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-536.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-536.js
index f3ff2e36a..93ad10992 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-536.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-536.js
@@ -10,41 +10,41 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
- var result1 = false;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p1 in obj) {
- if (p1 === "prop") {
- result1 = true;
- }
- }
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
+});
+var result1 = false;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p1 in obj) {
+ if (p1 === "prop") {
+ result1 = true;
+ }
+}
- Object.defineProperty(obj, "prop", {
- enumerable: false
- });
- var result2 = false;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p2 in obj) {
- if (p2 === "prop") {
- result2 = true;
- }
- }
+Object.defineProperty(obj, "prop", {
+ enumerable: false
+});
+var result2 = false;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p2 in obj) {
+ if (p2 === "prop") {
+ result2 = true;
+ }
+}
assert(result1, 'result1 !== true');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-537.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-537.js
index 06c2d5faf..15de96a3d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-537.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-537.js
@@ -13,26 +13,26 @@ includes: [propertyHelper.js]
var obj = {};
-var getFunc = function () {
- return 1001;
+var getFunc = function() {
+ return 1001;
};
var verifySetFunc = "data";
-var setFunc = function (value) {
- verifySetFunc = value;
+var setFunc = function(value) {
+ verifySetFunc = value;
};
Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
Object.defineProperty(obj, "prop", {
- configurable: false
+ configurable: false
});
var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-538-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-538-1.js
index 21426bfe9..3b65218cc 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-538-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-538-1.js
@@ -13,41 +13,41 @@ includes: [propertyHelper.js]
var obj = [];
obj.verifySetFunc = "data";
-var getFunc = function () {
- return obj.verifySetFunc;
+var getFunc = function() {
+ return obj.verifySetFunc;
};
-var setFunc = function (value) {
- obj.verifySetFunc = value;
+var setFunc = function(value) {
+ obj.verifySetFunc = value;
};
Object.defineProperty(obj, "0", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "0");
Object.defineProperty(obj, "0", {
- value: 1001
+ value: 1001
});
var desc2 = Object.getOwnPropertyDescriptor(obj, "0");
if (!desc1.hasOwnProperty("get")) {
- $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get"));
+ $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get"));
}
if (!desc2.hasOwnProperty("value")) {
- $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value"));
+ $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value"));
}
if (typeof desc2.get !== "undefined") {
- $ERROR('Expected typeof desc2.get === "undefined", actually ' + typeof desc2.get);
+ $ERROR('Expected typeof desc2.get === "undefined", actually ' + typeof desc2.get);
}
if (typeof desc2.set !== "undefined") {
- $ERROR('Expected typeof desc2.set === "undefined", actually ' + typeof desc2.set);
+ $ERROR('Expected typeof desc2.set === "undefined", actually ' + typeof desc2.set);
}
verifyEqualTo(obj, "0", 1001);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-538-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-538-2.js
index e33824934..78d2ca97b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-538-2.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-538-2.js
@@ -10,46 +10,46 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = (function () {
- return arguments;
+var obj = (function() {
+ return arguments;
}());
obj.verifySetFunc = "data";
-var getFunc = function () {
- return obj.verifySetFunc;
+var getFunc = function() {
+ return obj.verifySetFunc;
};
-var setFunc = function (value) {
- obj.verifySetFunc = value;
+var setFunc = function(value) {
+ obj.verifySetFunc = value;
};
Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
Object.defineProperty(obj, "prop", {
- value: 1001
+ value: 1001
});
var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
-if (!desc1.hasOwnProperty("get") ) {
- $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get"));
+if (!desc1.hasOwnProperty("get")) {
+ $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get"));
}
-if (!desc2.hasOwnProperty("value") ) {
- $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value"));
+if (!desc2.hasOwnProperty("value")) {
+ $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value"));
}
-if (typeof desc2.get !== "undefined" ) {
- $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get );
+if (typeof desc2.get !== "undefined") {
+ $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get);
}
-if (typeof desc2.set !== "undefined" ) {
- $ERROR('Expected typeof desc2.set === "undefined" , actually ' + typeof desc2.set );
+if (typeof desc2.set !== "undefined") {
+ $ERROR('Expected typeof desc2.set === "undefined" , actually ' + typeof desc2.set);
}
verifyEqualTo(obj, "prop", 1001);
@@ -59,5 +59,3 @@ verifyNotWritable(obj, "prop");
verifyEnumerable(obj, "prop");
verifyConfigurable(obj, "prop");
-
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-538-5.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-538-5.js
index 010ad008e..fdc987cfd 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-538-5.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-538-5.js
@@ -13,41 +13,41 @@ includes: [propertyHelper.js]
var obj = [];
obj.verifySetFunc = "data";
-var getFunc = function () {
- return obj.verifySetFunc;
+var getFunc = function() {
+ return obj.verifySetFunc;
};
-var setFunc = function (value) {
- obj.verifySetFunc = value;
+var setFunc = function(value) {
+ obj.verifySetFunc = value;
};
Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
Object.defineProperty(obj, "prop", {
- value: 1001
+ value: 1001
});
-var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
-if (!desc1.hasOwnProperty("get") ) {
- $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get"));
+if (!desc1.hasOwnProperty("get")) {
+ $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get"));
}
-if (!desc2.hasOwnProperty("value") ) {
- $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value"));
+if (!desc2.hasOwnProperty("value")) {
+ $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value"));
}
-if (typeof desc2.get !== "undefined" ) {
- $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get);
+if (typeof desc2.get !== "undefined") {
+ $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get);
}
-if (typeof desc2.set !== "undefined" ) {
- $ERROR('Expected typeof desc2.set === "undefined" , actually ' + typeof desc2.set);
+if (typeof desc2.set !== "undefined") {
+ $ERROR('Expected typeof desc2.set === "undefined" , actually ' + typeof desc2.set);
}
@@ -58,5 +58,3 @@ verifyNotWritable(obj, "prop");
verifyEnumerable(obj, "prop");
verifyConfigurable(obj, "prop");
-
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-538-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-538-6.js
index c991bea62..5c90ba8f9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-538-6.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-538-6.js
@@ -10,46 +10,46 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = (function () {
- return arguments;
+var obj = (function() {
+ return arguments;
}());
obj.verifySetFunc = "data";
-var getFunc = function () {
- return obj.verifySetFunc;
+var getFunc = function() {
+ return obj.verifySetFunc;
};
-var setFunc = function (value) {
- obj.verifySetFunc = value;
+var setFunc = function(value) {
+ obj.verifySetFunc = value;
};
Object.defineProperty(obj, "0", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "0");
Object.defineProperty(obj, "0", {
- value: 1001
+ value: 1001
});
var desc2 = Object.getOwnPropertyDescriptor(obj, "0");
-if (!desc1.hasOwnProperty("get") ) {
- $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get"));
+if (!desc1.hasOwnProperty("get")) {
+ $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get"));
}
-if (!desc2.hasOwnProperty("value") ) {
- $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value"));
+if (!desc2.hasOwnProperty("value")) {
+ $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value"));
}
-if (typeof desc2.get !== "undefined" ) {
- $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get);
+if (typeof desc2.get !== "undefined") {
+ $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get);
}
-if (typeof desc2.set !== "undefined" ) {
- $ERROR('Expected typeof desc2.set === "undefined" , actually ' + typeof desc2.set);
+if (typeof desc2.set !== "undefined") {
+ $ERROR('Expected typeof desc2.set === "undefined" , actually ' + typeof desc2.set);
}
verifyEqualTo(obj, "0", 1001);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-538.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-538.js
index ee5808341..3b97da4a8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-538.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-538.js
@@ -12,38 +12,38 @@ includes: [propertyHelper.js]
var obj = {};
-var getFunc = function () {
- return 1001;
+var getFunc = function() {
+ return 1001;
};
var verifySetFunc = "data";
-var setFunc = function (value) {
- verifySetFunc = value;
+var setFunc = function(value) {
+ verifySetFunc = value;
};
Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
Object.defineProperty(obj, "prop", {
- value: 1001
+ value: 1001
});
var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
-if (!desc1.hasOwnProperty("get") ) {
- $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get"));
+if (!desc1.hasOwnProperty("get")) {
+ $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get"));
}
-if (!desc2.hasOwnProperty("value") ) {
- $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value"));
+if (!desc2.hasOwnProperty("value")) {
+ $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value"));
}
-if (typeof desc2.get !== "undefined" ) {
- $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get );
+if (typeof desc2.get !== "undefined") {
+ $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get);
}
@@ -54,6 +54,3 @@ verifyNotWritable(obj, "prop");
verifyEnumerable(obj, "prop");
verifyConfigurable(obj, "prop");
-
-
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-539.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-539.js
index 6d06b7a1f..d1ee1d3a3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-539.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-539.js
@@ -9,26 +9,26 @@ description: >
[[Configurable]] is false) is the expected function
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.get, getFunc, 'desc.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-54.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-54.js
index 3d6c34dba..6fa06bee3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-54.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-54.js
@@ -13,11 +13,11 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "property", {
- get: function () {
- return "property";
- },
- enumerable: false,
- configurable: false
+ get: function() {
+ return "property";
+ },
+ enumerable: false,
+ configurable: false
});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-1.js
index 65219f6d3..396bcfba3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-1.js
@@ -14,57 +14,57 @@ includes: [propertyHelper.js]
var obj = {};
obj.verifySetFunction = "data";
-var getFunc = function () {
- return obj.verifySetFunction;
+var getFunc = function() {
+ return obj.verifySetFunction;
};
-var setFunc = function (value) {
- obj.verifySetFunction = value;
+var setFunc = function(value) {
+ obj.verifySetFunction = value;
};
Object.defineProperty(obj, "property", {
- get: getFunc,
- set: setFunc,
- configurable: false
+ get: getFunc,
+ set: setFunc,
+ configurable: false
});
var result = false;
try {
- Object.defineProperty(obj, "property", {
- get: function () {
- return 100;
- }
- });
+ Object.defineProperty(obj, "property", {
+ get: function() {
+ return 100;
+ }
+ });
} catch (e) {
- result = e instanceof TypeError;
- verifyEqualTo(obj, "property", getFunc());
+ result = e instanceof TypeError;
+ verifyEqualTo(obj, "property", getFunc());
- verifyWritable(obj, "property", "verifySetFunction");
+ verifyWritable(obj, "property", "verifySetFunction");
- verifyNotEnumerable(obj, "property");
+ verifyNotEnumerable(obj, "property");
- verifyNotConfigurable(obj, "property");
+ verifyNotConfigurable(obj, "property");
}
try {
- Object.defineProperty(obj, "property", {
- set: function (value) {
- obj.verifySetFunction1 = value;
- }
- });
-} catch (e) {
- if (!result) {
- $ERROR('Expected result to be true, actually ' + result);
+ Object.defineProperty(obj, "property", {
+ set: function(value) {
+ obj.verifySetFunction1 = value;
}
-
- verifyEqualTo(obj, "property", getFunc());
+ });
+} catch (e) {
+ if (!result) {
+ $ERROR('Expected result to be true, actually ' + result);
+ }
- verifyWritable(obj, "property", "verifySetFunction");
+ verifyEqualTo(obj, "property", getFunc());
- verifyNotEnumerable(obj, "property");
+ verifyWritable(obj, "property", "verifySetFunction");
- verifyNotConfigurable(obj, "property");
+ verifyNotEnumerable(obj, "property");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(obj, "property");
+
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-10.js
index 42279065b..9b05fab44 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-10.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-10.js
@@ -9,29 +9,29 @@ description: >
(8.12.5 step 5.b)
---*/
- var obj = (function () {
- return arguments;
- }());
+var obj = (function() {
+ return arguments;
+}());
- obj.verifySetFunc = "data";
- var getFunc = function () {
- return obj.verifySetFunc;
- };
+obj.verifySetFunc = "data";
+var getFunc = function() {
+ return obj.verifySetFunc;
+};
- var setFunc = function (value) {
- obj.verifySetFunc = value;
- };
+var setFunc = function(value) {
+ obj.verifySetFunc = value;
+};
- Object.defineProperty(obj, "0", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "0", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
+});
- obj[0] = "overrideData";
- var propertyDefineCorrect = obj.hasOwnProperty("0");
- var desc = Object.getOwnPropertyDescriptor(obj, "0");
+obj[0] = "overrideData";
+var propertyDefineCorrect = obj.hasOwnProperty("0");
+var desc = Object.getOwnPropertyDescriptor(obj, "0");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.set, setFunc, 'desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-2.js
index 52c2bfe09..6d5e5a4fd 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-2.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-2.js
@@ -14,57 +14,57 @@ includes: [propertyHelper.js]
var obj = [];
obj.verifySetFunction = "data";
-var getFunc = function () {
- return obj.verifySetFunction;
+var getFunc = function() {
+ return obj.verifySetFunction;
};
-var setFunc = function (value) {
- obj.verifySetFunction = value;
+var setFunc = function(value) {
+ obj.verifySetFunction = value;
};
Object.defineProperty(obj, "0", {
- get: getFunc,
- set: setFunc,
- configurable: false
+ get: getFunc,
+ set: setFunc,
+ configurable: false
});
var result = false;
try {
- Object.defineProperty(obj, "0", {
- get: function () {
- return 100;
- }
- });
+ Object.defineProperty(obj, "0", {
+ get: function() {
+ return 100;
+ }
+ });
} catch (e) {
- result = e instanceof TypeError;
- verifyEqualTo(obj, "0", getFunc());
+ result = e instanceof TypeError;
+ verifyEqualTo(obj, "0", getFunc());
- verifyWritable(obj, "0", "verifySetFunction");
+ verifyWritable(obj, "0", "verifySetFunction");
- verifyNotEnumerable(obj, "0");
+ verifyNotEnumerable(obj, "0");
- verifyNotConfigurable(obj, "0");
+ verifyNotConfigurable(obj, "0");
}
try {
- Object.defineProperty(obj, "0", {
- set: function (value) {
- obj.verifySetFunction1 = value;
- }
- });
-} catch (e) {
- if (!result ) {
- $ERROR('Expected result to be true, actually ' + result );
+ Object.defineProperty(obj, "0", {
+ set: function(value) {
+ obj.verifySetFunction1 = value;
}
-
- verifyEqualTo(obj, "0", getFunc());
+ });
+} catch (e) {
+ if (!result) {
+ $ERROR('Expected result to be true, actually ' + result);
+ }
- verifyWritable(obj, "0", "verifySetFunction");
+ verifyEqualTo(obj, "0", getFunc());
- verifyNotEnumerable(obj, "0");
+ verifyWritable(obj, "0", "verifySetFunction");
- verifyNotConfigurable(obj, "0");
+ verifyNotEnumerable(obj, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(obj, "0");
+
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-3.js
index 011fb4fbb..0b7b5bcdc 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-3.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-3.js
@@ -10,63 +10,63 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = (function () {
- return arguments;
+var obj = (function() {
+ return arguments;
}());
obj.verifySetFunction = "data";
-var getFunc = function () {
- return obj.verifySetFunction;
+var getFunc = function() {
+ return obj.verifySetFunction;
};
-var setFunc = function (value) {
- obj.verifySetFunction = value;
+var setFunc = function(value) {
+ obj.verifySetFunction = value;
};
Object.defineProperty(obj, "property", {
- get: getFunc,
- set: setFunc,
- configurable: false
+ get: getFunc,
+ set: setFunc,
+ configurable: false
});
var result = false;
try {
- Object.defineProperty(obj, "property", {
- get: function () {
- return 100;
- }
- });
+ Object.defineProperty(obj, "property", {
+ get: function() {
+ return 100;
+ }
+ });
} catch (e) {
- result = e instanceof TypeError;
- verifyEqualTo(obj, "property", getFunc());
+ result = e instanceof TypeError;
+ verifyEqualTo(obj, "property", getFunc());
- verifyWritable(obj, "property", "verifySetFunction");
+ verifyWritable(obj, "property", "verifySetFunction");
- verifyNotEnumerable(obj, "property");
+ verifyNotEnumerable(obj, "property");
- verifyNotConfigurable(obj, "property");
+ verifyNotConfigurable(obj, "property");
}
try {
- Object.defineProperty(obj, "property", {
- set: function (value) {
- obj.verifySetFunction1 = value;
- }
- });
+ Object.defineProperty(obj, "property", {
+ set: function(value) {
+ obj.verifySetFunction1 = value;
+ }
+ });
} catch (e) {
- if (!result) {
- $ERROR('Expected result to be true, actually ' + result);
- }
+ if (!result) {
+ $ERROR('Expected result to be true, actually ' + result);
+ }
- verifyEqualTo(obj, "property", getFunc());
+ verifyEqualTo(obj, "property", getFunc());
- verifyWritable(obj, "property", "verifySetFunction");
+ verifyWritable(obj, "property", "verifySetFunction");
- verifyNotEnumerable(obj, "property");
+ verifyNotEnumerable(obj, "property");
- verifyNotConfigurable(obj, "property");
+ verifyNotConfigurable(obj, "property");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js
index 7db3da876..4ab77fa5f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js
@@ -9,27 +9,27 @@ description: >
step 5.b)
---*/
- var obj = [];
+var obj = [];
- obj.verifySetFunc = "data";
- var getFunc = function () {
- return obj.verifySetFunc;
- };
+obj.verifySetFunc = "data";
+var getFunc = function() {
+ return obj.verifySetFunc;
+};
- var setFunc = function (value) {
- obj.verifySetFunc = value;
- };
+var setFunc = function(value) {
+ obj.verifySetFunc = value;
+};
- Object.defineProperty(obj, "0", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "0", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
+});
- obj[0] = "overrideData";
- var propertyDefineCorrect = obj.hasOwnProperty("0");
- var desc = Object.getOwnPropertyDescriptor(obj, "0");
+obj[0] = "overrideData";
+var propertyDefineCorrect = obj.hasOwnProperty("0");
+var desc = Object.getOwnPropertyDescriptor(obj, "0");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.set, setFunc, 'desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-5.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-5.js
index 04d921614..945dc58d8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-5.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-5.js
@@ -9,29 +9,29 @@ description: >
(8.12.5 step 5.b)
---*/
- var obj = (function () {
- return arguments;
- }());
+var obj = (function() {
+ return arguments;
+}());
- obj.verifySetFunc = "data";
- var getFunc = function () {
- return obj.verifySetFunc;
- };
+obj.verifySetFunc = "data";
+var getFunc = function() {
+ return obj.verifySetFunc;
+};
- var setFunc = function (value) {
- obj.verifySetFunc = value;
- };
+var setFunc = function(value) {
+ obj.verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
+});
- obj.prop = "overrideData";
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+obj.prop = "overrideData";
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.set, setFunc, 'desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-6.js
index 26a9524cc..778a22ac5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-6.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-6.js
@@ -14,59 +14,59 @@ includes: [propertyHelper.js]
var obj = {};
obj.verifySetFunction = "data";
-var getFunc = function () {
- return obj.verifySetFunction;
+var getFunc = function() {
+ return obj.verifySetFunction;
};
-var setFunc = function (value) {
- obj.verifySetFunction = value;
+var setFunc = function(value) {
+ obj.verifySetFunction = value;
};
Object.defineProperty(obj, "0", {
- get: getFunc,
- set: setFunc,
- configurable: false
+ get: getFunc,
+ set: setFunc,
+ configurable: false
});
var result = false;
try {
- Object.defineProperty(obj, "0", {
- get: function () {
- return 100;
- }
- });
+ Object.defineProperty(obj, "0", {
+ get: function() {
+ return 100;
+ }
+ });
} catch (e) {
- result = e instanceof TypeError;
+ result = e instanceof TypeError;
- verifyEqualTo(obj, "0", getFunc());
+ verifyEqualTo(obj, "0", getFunc());
- verifyWritable(obj, "0", "verifySetFunction");
+ verifyWritable(obj, "0", "verifySetFunction");
- verifyNotEnumerable(obj, "0");
+ verifyNotEnumerable(obj, "0");
- verifyNotConfigurable(obj, "0");
+ verifyNotConfigurable(obj, "0");
}
try {
- Object.defineProperty(obj, "0", {
- set: function (value) {
- obj.verifySetFunction1 = value;
- }
- });
-} catch (e) {
- if (!result) {
- $ERROR('Expected result to be true, actually ' + result);
+ Object.defineProperty(obj, "0", {
+ set: function(value) {
+ obj.verifySetFunction1 = value;
}
-
- verifyEqualTo(obj, "0", getFunc());
+ });
+} catch (e) {
+ if (!result) {
+ $ERROR('Expected result to be true, actually ' + result);
+ }
- verifyWritable(obj, "0", "verifySetFunction");
+ verifyEqualTo(obj, "0", getFunc());
- verifyNotEnumerable(obj, "0");
+ verifyWritable(obj, "0", "verifySetFunction");
- verifyNotConfigurable(obj, "0");
+ verifyNotEnumerable(obj, "0");
+ verifyNotConfigurable(obj, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-7.js
index c67b0e581..b953deb29 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-7.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-7.js
@@ -14,59 +14,59 @@ includes: [propertyHelper.js]
var obj = [];
obj.verifySetFunction = "data";
-var getFunc = function () {
- return obj.verifySetFunction;
+var getFunc = function() {
+ return obj.verifySetFunction;
};
-var setFunc = function (value) {
- obj.verifySetFunction = value;
+var setFunc = function(value) {
+ obj.verifySetFunction = value;
};
Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- configurable: false
+ get: getFunc,
+ set: setFunc,
+ configurable: false
});
var result = false;
try {
- Object.defineProperty(obj, "prop", {
- get: function () {
- return 100;
- }
- });
+ Object.defineProperty(obj, "prop", {
+ get: function() {
+ return 100;
+ }
+ });
} catch (e) {
- result = e instanceof TypeError;
- verifyEqualTo(obj, "prop", getFunc());
+ result = e instanceof TypeError;
+ verifyEqualTo(obj, "prop", getFunc());
- verifyWritable(obj, "prop", "verifySetFunction");
+ verifyWritable(obj, "prop", "verifySetFunction");
- verifyNotEnumerable(obj, "prop");
+ verifyNotEnumerable(obj, "prop");
- verifyNotConfigurable(obj, "prop");
+ verifyNotConfigurable(obj, "prop");
}
try {
- Object.defineProperty(obj, "prop", {
- set: function (value) {
- obj.verifySetFunction1 = value;
- }
- });
-} catch (e1) {
- if (!result) {
- $ERROR('Expected result to be true, actually ' + result);
+ Object.defineProperty(obj, "prop", {
+ set: function(value) {
+ obj.verifySetFunction1 = value;
}
-
+ });
+} catch (e1) {
+ if (!result) {
+ $ERROR('Expected result to be true, actually ' + result);
+ }
- verifyEqualTo(obj, "prop", getFunc());
- verifyWritable(obj, "prop", "verifySetFunction");
+ verifyEqualTo(obj, "prop", getFunc());
- verifyNotEnumerable(obj, "prop");
+ verifyWritable(obj, "prop", "verifySetFunction");
- verifyNotConfigurable(obj, "prop");
+ verifyNotEnumerable(obj, "prop");
+ verifyNotConfigurable(obj, "prop");
- if (!(e1 instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e1);
- }
+
+ if (!(e1 instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e1);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-8.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-8.js
index f59421aa9..d9df97b88 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-8.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-8.js
@@ -11,62 +11,62 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = (function () {
- return arguments;
+var obj = (function() {
+ return arguments;
}());
obj.verifySetFunction = "data";
-var getFunc = function () {
- return obj.verifySetFunction;
+var getFunc = function() {
+ return obj.verifySetFunction;
};
-var setFunc = function (value) {
- obj.verifySetFunction = value;
+var setFunc = function(value) {
+ obj.verifySetFunction = value;
};
Object.defineProperty(obj, "0", {
- get: getFunc,
- set: setFunc,
- configurable: false
+ get: getFunc,
+ set: setFunc,
+ configurable: false
});
var result = false;
try {
- Object.defineProperty(obj, "0", {
- get: function () {
- return 100;
- }
- });
+ Object.defineProperty(obj, "0", {
+ get: function() {
+ return 100;
+ }
+ });
} catch (e) {
- result = e instanceof TypeError;
- verifyEqualTo(obj, "0", getFunc());
+ result = e instanceof TypeError;
+ verifyEqualTo(obj, "0", getFunc());
- verifyWritable(obj, "0", "verifySetFunction");
+ verifyWritable(obj, "0", "verifySetFunction");
- verifyNotEnumerable(obj, "0");
+ verifyNotEnumerable(obj, "0");
- verifyNotConfigurable(obj, "0");
+ verifyNotConfigurable(obj, "0");
}
try {
- Object.defineProperty(obj, "0", {
- set: function (value) {
- obj.verifySetFunction1 = value;
- }
- });
-} catch (e) {
- if (!result ) {
- $ERROR('Expected result to be true, actually ' + result );
+ Object.defineProperty(obj, "0", {
+ set: function(value) {
+ obj.verifySetFunction1 = value;
}
-
- verifyEqualTo(obj, "0", getFunc());
+ });
+} catch (e) {
+ if (!result) {
+ $ERROR('Expected result to be true, actually ' + result);
+ }
- verifyWritable(obj, "0", "verifySetFunction");
+ verifyEqualTo(obj, "0", getFunc());
- verifyNotEnumerable(obj, "0");
+ verifyWritable(obj, "0", "verifySetFunction");
- verifyNotConfigurable(obj, "0");
+ verifyNotEnumerable(obj, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(obj, "0");
+
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-9.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-9.js
index b2354b2e1..b0259ddce 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-9.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-9.js
@@ -9,27 +9,27 @@ description: >
step 5.b)
---*/
- var obj = [];
+var obj = [];
- obj.verifySetFunc = "data";
- var getFunc = function () {
- return obj.verifySetFunc;
- };
+obj.verifySetFunc = "data";
+var getFunc = function() {
+ return obj.verifySetFunc;
+};
- var setFunc = function (value) {
- obj.verifySetFunc = value;
- };
+var setFunc = function(value) {
+ obj.verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
+});
- obj.prop = "overrideData";
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+obj.prop = "overrideData";
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.set, setFunc, 'desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540.js
index 141ecc9f5..6ca07a414 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540.js
@@ -9,27 +9,27 @@ description: >
[[Configurable]] is false) is the expected function
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
+});
- obj.prop = "overrideData";
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+obj.prop = "overrideData";
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.set, setFunc, 'desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-541.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-541.js
index 4651f86e4..46d603d74 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-541.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-541.js
@@ -11,33 +11,33 @@ description: >
var propertyFound = false;
- var obj = {};
-
- var getFunc = function () {
- return 1001;
- };
-
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
-
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: false
- });
-
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
-
- for (var p in obj) {
- if (p === "prop") {
- propertyFound = true;
- break;
- }
- }
+var obj = {};
+
+var getFunc = function() {
+ return 1001;
+};
+
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
+
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
+});
+
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+
+for (var p in obj) {
+ if (p === "prop") {
+ propertyFound = true;
+ break;
+ }
+}
assert(propertyFound, 'Property not found');
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-542.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-542.js
index 8382e3cec..900872e59 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-542.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-542.js
@@ -12,20 +12,20 @@ includes: [propertyHelper.js]
var obj = {};
-var getFunc = function () {
- return 1001;
+var getFunc = function() {
+ return 1001;
};
var verifySetFunc = "data";
-var setFunc = function (value) {
- verifySetFunc = value;
+var setFunc = function(value) {
+ verifySetFunc = value;
};
Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: false
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
});
assert(obj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-543.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-543.js
index 7afe42f31..4f57461d9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-543.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-543.js
@@ -10,33 +10,33 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
+});
- var result1 = obj.prop === 1001;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result1 = obj.prop === 1001;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- get: undefined
- });
+ Object.defineProperty(obj, "prop", {
+ get: undefined
+ });
});
- var result2 = obj.prop === 1001;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result2 = obj.prop === 1001;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-544.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-544.js
index c8b18272f..7e74c4f8d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-544.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-544.js
@@ -10,31 +10,31 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
+});
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- set: undefined
- });
+ Object.defineProperty(obj, "prop", {
+ set: undefined
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(desc1.set, setFunc, 'desc1.set');
assert.sameValue(desc2.set, setFunc, 'desc2.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-545.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-545.js
index f6150509a..d166513f3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-545.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-545.js
@@ -10,42 +10,42 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: false
- });
- var result1 = false;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p1 in obj) {
- if (p1 === "prop") {
- result1 = true;
- }
- }
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
+});
+var result1 = false;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p1 in obj) {
+ if (p1 === "prop") {
+ result1 = true;
+ }
+}
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- enumerable: false
- });
+ Object.defineProperty(obj, "prop", {
+ enumerable: false
+ });
});
- var result2 = false;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p2 in obj) {
- if (p2 === "prop") {
- result2 = true;
- }
- }
+var result2 = false;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p2 in obj) {
+ if (p2 === "prop") {
+ result2 = true;
+ }
+}
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-546.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-546.js
index ce460d2c0..74dca6bda 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-546.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-546.js
@@ -13,35 +13,35 @@ includes: [propertyHelper.js]
var obj = {};
-var getFunc = function () {
- return 1001;
+var getFunc = function() {
+ return 1001;
};
var verifySetFunc = "data";
-var setFunc = function (value) {
- verifySetFunc = value;
+var setFunc = function(value) {
+ verifySetFunc = value;
};
Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: false
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
try {
- Object.defineProperty(obj, "prop", {
- configurable: true
- });
+ Object.defineProperty(obj, "prop", {
+ configurable: true
+ });
- $ERROR("Expected TypeError");
+ $ERROR("Expected TypeError");
} catch (e) {
- assert(e instanceof TypeError);
- assert.sameValue(desc1.configurable, false);
+ assert(e instanceof TypeError);
+ assert.sameValue(desc1.configurable, false);
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- assert.sameValue(desc2.configurable, false);
+ var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+ assert.sameValue(desc2.configurable, false);
- verifyNotConfigurable(obj, "prop");
+ verifyNotConfigurable(obj, "prop");
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-1.js
index 9c0d1cc4c..359362b86 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-1.js
@@ -13,51 +13,51 @@ includes: [propertyHelper.js]
var obj = [];
obj.verifySetFunc = "data";
-var getFunc = function () {
- return obj.verifySetFunc;
+var getFunc = function() {
+ return obj.verifySetFunc;
};
-var setFunc = function (value) {
- obj.verifySetFunc = value;
+var setFunc = function(value) {
+ obj.verifySetFunc = value;
};
Object.defineProperty(obj, "0", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: false
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "0");
try {
- Object.defineProperty(obj, "0", {
- value: 1001
- });
+ Object.defineProperty(obj, "0", {
+ value: 1001
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- var desc2 = Object.getOwnPropertyDescriptor(obj, "0");
+ var desc2 = Object.getOwnPropertyDescriptor(obj, "0");
- if (!desc1.hasOwnProperty("get")) {
- $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get"));
- }
-
- if (desc2.hasOwnProperty("value")) {
- $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value"));
- }
-
+ if (!desc1.hasOwnProperty("get")) {
+ $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get"));
+ }
- verifyEqualTo(obj, "0", getFunc());
+ if (desc2.hasOwnProperty("value")) {
+ $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value"));
+ }
- verifyWritable(obj, "0", "verifySetFunc");
- verifyEnumerable(obj, "0");
+ verifyEqualTo(obj, "0", getFunc());
- verifyNotConfigurable(obj, "0");
+ verifyWritable(obj, "0", "verifySetFunc");
+ verifyEnumerable(obj, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(obj, "0");
+
+
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-2.js
index dbb08ef9c..6a08c62d6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-2.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-2.js
@@ -10,56 +10,56 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = (function () {
- return arguments;
+var obj = (function() {
+ return arguments;
}());
obj.verifySetFunc = "data";
-var getFunc = function () {
- return obj.verifySetFunc;
+var getFunc = function() {
+ return obj.verifySetFunc;
};
-var setFunc = function (value) {
- obj.verifySetFunc = value;
+var setFunc = function(value) {
+ obj.verifySetFunc = value;
};
Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: false
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
try {
- Object.defineProperty(obj, "prop", {
- value: 1001
- });
+ Object.defineProperty(obj, "prop", {
+ value: 1001
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+ var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- if (!desc1.hasOwnProperty("get")) {
- $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get"));
- }
-
- if (desc2.hasOwnProperty("value")) {
- $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value"));
- }
-
+ if (!desc1.hasOwnProperty("get")) {
+ $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get"));
+ }
- verifyEqualTo(obj, "prop", getFunc());
+ if (desc2.hasOwnProperty("value")) {
+ $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value"));
+ }
- verifyWritable(obj, "prop", "verifySetFunc");
- verifyEnumerable(obj, "prop");
+ verifyEqualTo(obj, "prop", getFunc());
- verifyNotConfigurable(obj, "prop");
-
+ verifyWritable(obj, "prop", "verifySetFunc");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyEnumerable(obj, "prop");
+
+ verifyNotConfigurable(obj, "prop");
+
+
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-3.js
index 3caf081e4..db807f2b6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-3.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-3.js
@@ -13,50 +13,50 @@ includes: [propertyHelper.js]
var obj = [];
obj.verifySetFunc = "data";
-var getFunc = function () {
- return obj.verifySetFunc;
+var getFunc = function() {
+ return obj.verifySetFunc;
};
-var setFunc = function (value) {
- obj.verifySetFunc = value;
+var setFunc = function(value) {
+ obj.verifySetFunc = value;
};
Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: false
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
try {
- Object.defineProperty(obj, "prop", {
- value: 1001
- });
+ Object.defineProperty(obj, "prop", {
+ value: 1001
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+ var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- if (!desc1.hasOwnProperty("get")) {
- $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get"));
- }
-
- if (desc2.hasOwnProperty("value")) {
- $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value"));
- }
-
+ if (!desc1.hasOwnProperty("get")) {
+ $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get"));
+ }
- verifyEqualTo(obj, "prop", getFunc());
+ if (desc2.hasOwnProperty("value")) {
+ $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value"));
+ }
- verifyWritable(obj, "prop", "verifySetFunc");
- verifyEnumerable(obj, "prop");
+ verifyEqualTo(obj, "prop", getFunc());
- verifyNotConfigurable(obj, "prop");
+ verifyWritable(obj, "prop", "verifySetFunc");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyEnumerable(obj, "prop");
+
+ verifyNotConfigurable(obj, "prop");
+
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-4.js
index c7ab2851c..fd8fe6f5b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-4.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-4.js
@@ -10,54 +10,54 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = (function () {
- return arguments;
+var obj = (function() {
+ return arguments;
}());
obj.verifySetFunc = "data";
-var getFunc = function () {
- return obj.verifySetFunc;
+var getFunc = function() {
+ return obj.verifySetFunc;
};
-var setFunc = function (value) {
- obj.verifySetFunc = value;
+var setFunc = function(value) {
+ obj.verifySetFunc = value;
};
Object.defineProperty(obj, "0", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: false
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "0");
try {
- Object.defineProperty(obj, "0", {
- value: 1001
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(obj, "0", {
+ value: 1001
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- var desc2 = Object.getOwnPropertyDescriptor(obj, "0");
+ var desc2 = Object.getOwnPropertyDescriptor(obj, "0");
- if (!desc1.hasOwnProperty("get")) {
- $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get"));
- }
-
- if (desc2.hasOwnProperty("value")) {
- $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value"));
- }
-
- verifyEqualTo(obj, "0", getFunc());
+ if (!desc1.hasOwnProperty("get")) {
+ $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get"));
+ }
- verifyWritable(obj, "0", "verifySetFunc");
+ if (desc2.hasOwnProperty("value")) {
+ $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value"));
+ }
- verifyEnumerable(obj, "0");
+ verifyEqualTo(obj, "0", getFunc());
- verifyNotConfigurable(obj, "0");
+ verifyWritable(obj, "0", "verifySetFunc");
+ verifyEnumerable(obj, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ verifyNotConfigurable(obj, "0");
+
+
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-547.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-547.js
index a75fb8782..ee342321c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-547.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-547.js
@@ -9,30 +9,30 @@ description: >
[[Configurable]] is false) to a data property
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: false
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: false
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- value: 1001
- });
+ Object.defineProperty(obj, "prop", {
+ value: 1001
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true');
assert.sameValue(desc2.hasOwnProperty("value"), false, 'desc2.hasOwnProperty("value")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-548.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-548.js
index fc6d76d47..06148ad7f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-548.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-548.js
@@ -9,26 +9,26 @@ description: >
[[Configurable]] is true) is the expected function
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.get, getFunc, 'desc.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-549.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-549.js
index a8cd117d9..4448f293a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-549.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-549.js
@@ -9,27 +9,27 @@ description: >
[[Configurable]] is true) is the expected function
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: true
+});
- obj.prop = "overrideData";
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+obj.prop = "overrideData";
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.set, setFunc, 'desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-55.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-55.js
index 4c3747d7b..3453d9198 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-55.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-55.js
@@ -12,17 +12,17 @@ includes: [propertyHelper.js]
var obj = {};
-var setFunc = function (value) {
- obj.setVerifyHelpProp = value;
+var setFunc = function(value) {
+ obj.setVerifyHelpProp = value;
};
-var getFunc = function () {
- return 10;
+var getFunc = function() {
+ return 10;
};
Object.defineProperty(obj, "property", {
- set: setFunc,
- get: getFunc,
- configurable: true
+ set: setFunc,
+ get: getFunc,
+ configurable: true
});
verifyEqualTo(obj, "property", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-550.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-550.js
index bb17ddc1b..e61cb23e6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-550.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-550.js
@@ -9,30 +9,30 @@ description: >
non-enumerable
---*/
- var obj = {};
-
- var getFunc = function () {
- return 1001;
- };
-
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
-
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: true
- });
-
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
-
- for (var p in obj) {
- assert.notSameValue(p, "prop", 'p');
- }
+var obj = {};
+
+var getFunc = function() {
+ return 1001;
+};
+
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
+
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: true
+});
+
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+
+for (var p in obj) {
+ assert.notSameValue(p, "prop", 'p');
+}
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-551.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-551.js
index 1cd7d71c7..6002a2509 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-551.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-551.js
@@ -9,28 +9,28 @@ description: >
deletable
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: true
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
- delete obj.prop;
+delete obj.prop;
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.configurable, true, 'desc.configurable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-552.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-552.js
index 34fe59a86..edb2b6cb8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-552.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-552.js
@@ -10,33 +10,33 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: true
+});
- var result1 = obj.prop === 1001;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result1 = obj.prop === 1001;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- get: undefined
- });
+Object.defineProperty(obj, "prop", {
+ get: undefined
+});
- var result2 = typeof obj.prop === "undefined";
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result2 = typeof obj.prop === "undefined";
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-553.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-553.js
index 62695097d..ef243fdd9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-553.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-553.js
@@ -10,31 +10,31 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: true
+});
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- Object.defineProperty(obj, "prop", {
- set: undefined
- });
+Object.defineProperty(obj, "prop", {
+ set: undefined
+});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(desc1.set, setFunc, 'desc1.set');
assert.sameValue(typeof desc2.set, "undefined", 'typeof desc2.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-554.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-554.js
index 248611615..608f5f42f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-554.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-554.js
@@ -10,42 +10,42 @@ description: >
value
---*/
- var obj = {};
-
- var getFunc = function () {
- return 1001;
- };
-
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
-
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: true
- });
-
- var result1 = false;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p1 in obj) {
- if (p1 === "prop") {
- result1 = true;
- }
- }
-
- Object.defineProperty(obj, "prop", {
- enumerable: true
- });
- var result2 = false;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p2 in obj) {
- if (p2 === "prop") {
- result2 = true;
- }
- }
+var obj = {};
+
+var getFunc = function() {
+ return 1001;
+};
+
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
+
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: true
+});
+
+var result1 = false;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p1 in obj) {
+ if (p1 === "prop") {
+ result1 = true;
+ }
+}
+
+Object.defineProperty(obj, "prop", {
+ enumerable: true
+});
+var result2 = false;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p2 in obj) {
+ if (p2 === "prop") {
+ result2 = true;
+ }
+}
assert.sameValue(result1, false, 'result1');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-555.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-555.js
index aa5eda936..89dbef084 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-555.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-555.js
@@ -13,27 +13,27 @@ includes: [propertyHelper.js]
var obj = {};
-var getFunc = function () {
- return 1001;
+var getFunc = function() {
+ return 1001;
};
var verifySetFunc = "data";
-var setFunc = function (value) {
- verifySetFunc = value;
+var setFunc = function(value) {
+ verifySetFunc = value;
};
Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: true
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: true
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(desc1.configurable, true);
Object.defineProperty(obj, "prop", {
- configurable: false
+ configurable: false
});
verifyNotConfigurable(obj, "prop");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-556.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-556.js
index 0e91ba3b5..2ff92d6d1 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-556.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-556.js
@@ -9,30 +9,30 @@ description: >
[[Configurable]] is true) to a data property
---*/
- var obj = {};
-
- var getFunc = function () {
- return 1001;
- };
-
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
-
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: true
- });
-
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
-
- Object.defineProperty(obj, "prop", {
- value: 1001
- });
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var obj = {};
+
+var getFunc = function() {
+ return 1001;
+};
+
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
+
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: true
+});
+
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+
+Object.defineProperty(obj, "prop", {
+ value: 1001
+});
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true');
assert(desc2.hasOwnProperty("value"), 'desc2.hasOwnProperty("value") !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-557.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-557.js
index be2d5d46c..1c3312d01 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-557.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-557.js
@@ -9,26 +9,26 @@ description: >
[[Configurable]] is false) is the expected function
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
+});
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.get, getFunc, 'desc.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-558.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-558.js
index 1bcd85f7c..9eae2cd02 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-558.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-558.js
@@ -9,27 +9,27 @@ description: >
[[Configurable]] is false) is the expected function
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
+});
- obj.prop = "overrideData";
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+obj.prop = "overrideData";
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.set, setFunc, 'desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-559.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-559.js
index f2f308b34..f0a3b8c51 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-559.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-559.js
@@ -9,30 +9,30 @@ description: >
non-enumerable
---*/
- var obj = {};
-
- var getFunc = function () {
- return 1001;
- };
-
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
-
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: false
- });
-
- var propertyDefineCorrect = obj.hasOwnProperty("prop");
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
-
- for (var p in obj) {
- assert.notSameValue(p, "prop", 'p');
- }
+var obj = {};
+
+var getFunc = function() {
+ return 1001;
+};
+
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
+
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
+});
+
+var propertyDefineCorrect = obj.hasOwnProperty("prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+
+for (var p in obj) {
+ assert.notSameValue(p, "prop", 'p');
+}
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-56.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-56.js
index dd42a9569..6e0ccaa92 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-56.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-56.js
@@ -11,17 +11,17 @@ includes: [propertyHelper.js]
---*/
var obj = {};
-var setFunc = function (value) {
- obj.setVerifyHelpProp = value;
+var setFunc = function(value) {
+ obj.setVerifyHelpProp = value;
};
-var getFunc = function () {
- return 10;
+var getFunc = function() {
+ return 10;
};
Object.defineProperty(obj, "property", {
- set: setFunc,
- get: getFunc,
- enumerable: true
+ set: setFunc,
+ get: getFunc,
+ enumerable: true
});
verifyEqualTo(obj, "property", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-560.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-560.js
index 40a31583e..75751e6f3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-560.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-560.js
@@ -12,20 +12,20 @@ includes: [propertyHelper.js]
var obj = {};
-var getFunc = function () {
- return 1001;
+var getFunc = function() {
+ return 1001;
};
var verifySetFunc = "data";
-var setFunc = function (value) {
- verifySetFunc = value;
+var setFunc = function(value) {
+ verifySetFunc = value;
};
Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: false
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
});
assert(obj.hasOwnProperty("prop"));
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-561.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-561.js
index 376507ea1..077cfdfb4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-561.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-561.js
@@ -10,33 +10,33 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
+});
- var result1 = obj.prop === 1001;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result1 = obj.prop === 1001;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- get: undefined
- });
+ Object.defineProperty(obj, "prop", {
+ get: undefined
+ });
});
- var result2 = obj.prop === 1001;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var result2 = obj.prop === 1001;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-562.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-562.js
index 874f22ea2..7591887dc 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-562.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-562.js
@@ -10,31 +10,31 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
+});
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- set: undefined
- });
+ Object.defineProperty(obj, "prop", {
+ set: undefined
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(desc1.set, setFunc, 'desc1.set');
assert.sameValue(desc2.set, setFunc, 'desc2.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-563.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-563.js
index 56423191a..a4bc20ffa 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-563.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-563.js
@@ -10,42 +10,42 @@ description: >
value
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: false
- });
- var result1 = false;
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p1 in obj) {
- if (p1 === "prop") {
- result1 = true;
- }
- }
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
+});
+var result1 = false;
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p1 in obj) {
+ if (p1 === "prop") {
+ result1 = true;
+ }
+}
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- enumerable: true
- });
+ Object.defineProperty(obj, "prop", {
+ enumerable: true
+ });
});
- var result2 = false;
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
- for (var p2 in obj) {
- if (p2 === "prop") {
- result2 = true;
- }
- }
+var result2 = false;
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+for (var p2 in obj) {
+ if (p2 === "prop") {
+ result2 = true;
+ }
+}
assert.sameValue(result1, false, 'result1');
assert.sameValue(result2, false, 'result2');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-564.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-564.js
index 6b205e636..81f0cc5a5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-564.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-564.js
@@ -13,31 +13,31 @@ includes: [propertyHelper.js]
var obj = {};
-var getFunc = function () {
- return 1001;
+var getFunc = function() {
+ return 1001;
};
var verifySetFunc = "data";
-var setFunc = function (value) {
- verifySetFunc = value;
+var setFunc = function(value) {
+ verifySetFunc = value;
};
Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: false
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
});
var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
try {
- Object.defineProperty(obj, "prop", {
- configurable: true
- });
+ Object.defineProperty(obj, "prop", {
+ configurable: true
+ });
- $ERROR("Expected TypeError");
+ $ERROR("Expected TypeError");
} catch (e) {
- assert(e instanceof TypeError);
- assert.sameValue(desc1.configurable, false);
- verifyNotConfigurable(obj, "prop");
+ assert(e instanceof TypeError);
+ assert.sameValue(desc1.configurable, false);
+ verifyNotConfigurable(obj, "prop");
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-565.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-565.js
index 6876df415..ad1c54da4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-565.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-565.js
@@ -9,30 +9,30 @@ description: >
[[Configurable]] is false) to a data property
---*/
- var obj = {};
+var obj = {};
- var getFunc = function () {
- return 1001;
- };
+var getFunc = function() {
+ return 1001;
+};
- var verifySetFunc = "data";
- var setFunc = function (value) {
- verifySetFunc = value;
- };
+var verifySetFunc = "data";
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: false
- });
- var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ get: getFunc,
+ set: setFunc,
+ enumerable: false,
+ configurable: false
+});
+var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- value: 1001
- });
+ Object.defineProperty(obj, "prop", {
+ value: 1001
+ });
});
- var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true');
assert.sameValue(desc2.hasOwnProperty("value"), false, 'desc2.hasOwnProperty("value")');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-566.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-566.js
index f3deecae4..b878b5e1f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-566.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-566.js
@@ -8,16 +8,16 @@ description: >
argument
---*/
- var obj = {};
- var getFunc = function () {
- return 2010;
- };
+var obj = {};
+var getFunc = function() {
+ return 2010;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, 2010, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-567.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-567.js
index b61e13a1f..65022ccab 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-567.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-567.js
@@ -8,16 +8,16 @@ description: >
argument
---*/
- var obj = {};
- var getFunc = function (arg1) {
- return 2010;
- };
+var obj = {};
+var getFunc = function(arg1) {
+ return 2010;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, 2010, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-568.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-568.js
index 9a37b39d5..6277ce348 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-568.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-568.js
@@ -8,16 +8,16 @@ description: >
arguments
---*/
- var obj = {};
- var getFunc = function (arg1, arg2) {
- return 2010;
- };
+var obj = {};
+var getFunc = function(arg1, arg2) {
+ return 2010;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, 2010, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-569.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-569.js
index 9c1564a68..555136872 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-569.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-569.js
@@ -8,17 +8,17 @@ description: >
global variable
---*/
- var obj = {};
- var globalVariable = 20;
- var getFunc = function () {
- globalVariable = 2010;
- return globalVariable;
- };
+var obj = {};
+var globalVariable = 20;
+var getFunc = function() {
+ globalVariable = 2010;
+ return globalVariable;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ get: getFunc
+});
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(desc.get, getFunc, 'desc.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-57.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-57.js
index dc56011a0..e94a09d88 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-57.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-57.js
@@ -10,27 +10,27 @@ includes: [propertyHelper.js]
---*/
var obj = {};
-var setFunc = function (value) {
- obj.setVerifyHelpProp = value;
+var setFunc = function(value) {
+ obj.setVerifyHelpProp = value;
};
-var getFunc = function () {
- return 14;
+var getFunc = function() {
+ return 14;
};
Object.defineProperty(obj, "property", {
- get: function () {
- return 11;
- },
- set: function (value) { },
- configurable: true,
- enumerable: true
+ get: function() {
+ return 11;
+ },
+ set: function(value) {},
+ configurable: true,
+ enumerable: true
});
Object.defineProperty(obj, "property", {
- get: getFunc,
- set: setFunc,
- configurable: false,
- enumerable: false
+ get: getFunc,
+ set: setFunc,
+ configurable: false,
+ enumerable: false
});
verifyEqualTo(obj, "property", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-570.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-570.js
index 5aa6cada3..c06f383b7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-570.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-570.js
@@ -8,17 +8,17 @@ description: >
contains return statement
---*/
- var obj = {};
- var verifyExecute = false;
- var getFunc = function () {
- verifyExecute = true;
- };
+var obj = {};
+var verifyExecute = false;
+var getFunc = function() {
+ verifyExecute = true;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(desc.get, getFunc, 'desc.get');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-571.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-571.js
index 308b6693b..7037e7c8d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-571.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-571.js
@@ -8,18 +8,18 @@ description: >
'this' object into statement(s)
---*/
- var obj = {
- len: 2010
- };
- var getFunc = function () {
- return this;
- };
+var obj = {
+ len: 2010
+};
+var getFunc = function() {
+ return this;
+};
- Object.defineProperty(obj, "prop", {
- get: getFunc
- });
+Object.defineProperty(obj, "prop", {
+ get: getFunc
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(obj.prop, obj, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-572.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-572.js
index 74d43c55a..84e9e1ffd 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-572.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-572.js
@@ -8,15 +8,15 @@ description: >
argument
---*/
- var obj = {};
+var obj = {};
- var setFunc = function () { };
+var setFunc = function() {};
- Object.defineProperty(obj, "prop", {
- set: setFunc
- });
+Object.defineProperty(obj, "prop", {
+ set: setFunc
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(desc.set, setFunc, 'desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-573.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-573.js
index f6d79774d..6dff586f7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-573.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-573.js
@@ -8,17 +8,17 @@ description: >
argument
---*/
- var obj = {};
+var obj = {};
- var verifySetFunc = 20;
- var setFunc = function (value) {
- verifySetFunc = value;
- };
- Object.defineProperty(obj, "prop", {
- set: setFunc
- });
- obj.prop = 2010;
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var verifySetFunc = 20;
+var setFunc = function(value) {
+ verifySetFunc = value;
+};
+Object.defineProperty(obj, "prop", {
+ set: setFunc
+});
+obj.prop = 2010;
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(desc.set, setFunc, 'desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-574.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-574.js
index 0d63001c6..ea9a74c7b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-574.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-574.js
@@ -8,19 +8,19 @@ description: >
arguments
---*/
- var obj = {};
- var firstArg = 12;
- var secondArg = 12;
+var obj = {};
+var firstArg = 12;
+var secondArg = 12;
- var setFunc = function (a, b) {
- firstArg = a;
- secondArg = b;
- };
- Object.defineProperty(obj, "prop", {
- set: setFunc
- });
- obj.prop = 100;
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var setFunc = function(a, b) {
+ firstArg = a;
+ secondArg = b;
+};
+Object.defineProperty(obj, "prop", {
+ set: setFunc
+});
+obj.prop = 100;
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(desc.set, setFunc, 'desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-575.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-575.js
index 7a0601c56..d2eb6b26c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-575.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-575.js
@@ -8,17 +8,17 @@ description: >
global variable
---*/
- var obj = {};
- var globalVariable = 20;
- var setFunc = function () {
- globalVariable = 2010;
- };
+var obj = {};
+var globalVariable = 20;
+var setFunc = function() {
+ globalVariable = 2010;
+};
- Object.defineProperty(obj, "prop", {
- set: setFunc
- });
- obj.prop = 10;
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+Object.defineProperty(obj, "prop", {
+ set: setFunc
+});
+obj.prop = 10;
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(desc.set, setFunc, 'desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-576.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-576.js
index 36c181458..2723d7053 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-576.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-576.js
@@ -8,17 +8,17 @@ description: >
return statement
---*/
- var obj = {};
+var obj = {};
- var setFunc = function () {
- return 2010;
- };
+var setFunc = function() {
+ return 2010;
+};
- Object.defineProperty(obj, "prop", {
- set: setFunc
- });
+Object.defineProperty(obj, "prop", {
+ set: setFunc
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(desc.set, setFunc, 'desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-577.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-577.js
index a7bba5a0e..5d3156e76 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-577.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-577.js
@@ -8,18 +8,18 @@ description: >
'this' object into statement(s)
---*/
- var obj = {};
+var obj = {};
- var setFunc = function (value) {
- this.len = value;
- };
+var setFunc = function(value) {
+ this.len = value;
+};
- Object.defineProperty(obj, "prop", {
- set: setFunc
- });
- obj.prop = 2010;
+Object.defineProperty(obj, "prop", {
+ set: setFunc
+});
+obj.prop = 2010;
- var desc = Object.getOwnPropertyDescriptor(obj, "prop");
+var desc = Object.getOwnPropertyDescriptor(obj, "prop");
assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true');
assert.sameValue(desc.set, setFunc, 'desc.set');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-578.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-578.js
index eee9a7cfe..7b5c723c8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-578.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-578.js
@@ -8,19 +8,19 @@ description: >
[[Prototype]] internal property is correct (String instance)
---*/
- var data = "data";
+var data = "data";
- Object.defineProperty(String.prototype, "prop", {
- get: function () {
- return data;
- },
- set: function (value) {
- data = value;
- },
- enumerable: true,
- configurable: true
- });
- var strObj = new String();
+Object.defineProperty(String.prototype, "prop", {
+ get: function() {
+ return data;
+ },
+ set: function(value) {
+ data = value;
+ },
+ enumerable: true,
+ configurable: true
+});
+var strObj = new String();
assert.sameValue(strObj.hasOwnProperty("prop"), false, 'strObj.hasOwnProperty("prop")');
assert.sameValue(strObj.prop, "data", 'strObj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-579.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-579.js
index e910f3335..c8ecdb820 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-579.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-579.js
@@ -8,20 +8,20 @@ description: >
instance)
---*/
- var data = "data";
+var data = "data";
- Object.defineProperty(Array.prototype, "prop", {
- get: function () {
- return data;
- },
- set: function (value) {
- data = value;
- },
- enumerable: true,
- configurable: true
- });
- var arrObj = [];
- arrObj.prop = "myOwnProperty";
+Object.defineProperty(Array.prototype, "prop", {
+ get: function() {
+ return data;
+ },
+ set: function(value) {
+ data = value;
+ },
+ enumerable: true,
+ configurable: true
+});
+var arrObj = [];
+arrObj.prop = "myOwnProperty";
assert.sameValue(arrObj.hasOwnProperty("prop"), false, 'arrObj.hasOwnProperty("prop")');
assert.sameValue(arrObj.prop, "myOwnProperty", 'arrObj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-58.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-58.js
index 2870587d2..4fa1be7ba 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-58.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-58.js
@@ -22,4 +22,3 @@ verifyWritable(obj, "foo");
verifyEnumerable(obj, "foo");
verifyConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-580.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-580.js
index d4c99db07..b88e32e56 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-580.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-580.js
@@ -8,25 +8,25 @@ description: >
instance)
---*/
- var data = "data";
+var data = "data";
- Object.defineProperty(Boolean.prototype, "prop", {
- get: function () {
- return data;
- },
- set: function (value) {
- data = value;
- },
- enumerable: true,
- configurable: true
- });
- var boolObj = new Boolean();
- var verifyEnumerable = false;
- for (var p in boolObj) {
- if(p === "prop") {
- verifyEnumerable = true;
- }
- }
+Object.defineProperty(Boolean.prototype, "prop", {
+ get: function() {
+ return data;
+ },
+ set: function(value) {
+ data = value;
+ },
+ enumerable: true,
+ configurable: true
+});
+var boolObj = new Boolean();
+var verifyEnumerable = false;
+for (var p in boolObj) {
+ if (p === "prop") {
+ verifyEnumerable = true;
+ }
+}
assert.sameValue(boolObj.hasOwnProperty("prop"), false, 'boolObj.hasOwnProperty("prop")');
assert(verifyEnumerable, 'verifyEnumerable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-581.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-581.js
index 2931f9c8f..9df0254a2 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-581.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-581.js
@@ -9,17 +9,17 @@ includes: [propertyHelper.js]
var data = "data";
- Object.defineProperty(Number.prototype, "prop", {
- get: function () {
- return data;
- },
- enumerable: false,
- configurable: true
- });
- var numObj = new Number();
+Object.defineProperty(Number.prototype, "prop", {
+ get: function() {
+ return data;
+ },
+ enumerable: false,
+ configurable: true
+});
+var numObj = new Number();
- verifyNotWritable(numObj, "prop", "nocheck");
+verifyNotWritable(numObj, "prop", "nocheck");
- assert(!numObj.hasOwnProperty("prop"));
- assert.sameValue(numObj.prop, "data");
- assert.sameValue(data, "data");
+assert(!numObj.hasOwnProperty("prop"));
+assert.sameValue(numObj.prop, "data");
+assert.sameValue(data, "data");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-582.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-582.js
index 7895b7455..af5292564 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-582.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-582.js
@@ -8,22 +8,22 @@ description: >
instance)
---*/
- var data = "data";
+var data = "data";
- Object.defineProperty(Function.prototype, "prop", {
- get: function () {
- return data;
- },
- enumerable: false,
- configurable: true
- });
- var funObj = function () { };
- var verifyEnumerable = false;
- for (var p in funObj) {
- if (p === "prop") {
- verifyEnumerable = true;
- }
- }
+Object.defineProperty(Function.prototype, "prop", {
+ get: function() {
+ return data;
+ },
+ enumerable: false,
+ configurable: true
+});
+var funObj = function() {};
+var verifyEnumerable = false;
+for (var p in funObj) {
+ if (p === "prop") {
+ verifyEnumerable = true;
+ }
+}
assert.sameValue(funObj.hasOwnProperty("prop"), false, 'funObj.hasOwnProperty("prop")');
assert.sameValue(verifyEnumerable, false, 'verifyEnumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-583.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-583.js
index 97b7352fd..88590d4b9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-583.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-583.js
@@ -8,19 +8,19 @@ description: >
[[Prototype]] internal property is correct (Error Instance)
---*/
- var data = "data";
+var data = "data";
- Object.defineProperty(Error.prototype, "prop", {
- get: function () {
- return data;
- },
- set: function (value) {
- data = value;
- },
- enumerable: true,
- configurable: true
- });
- var errObj = new Error();
+Object.defineProperty(Error.prototype, "prop", {
+ get: function() {
+ return data;
+ },
+ set: function(value) {
+ data = value;
+ },
+ enumerable: true,
+ configurable: true
+});
+var errObj = new Error();
assert.sameValue(errObj.hasOwnProperty("prop"), false, 'errObj.hasOwnProperty("prop")');
assert.sameValue(errObj.prop, "data", 'errObj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-584.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-584.js
index 716431a7b..c12f8d013 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-584.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-584.js
@@ -6,20 +6,20 @@ es5id: 15.2.3.6-4-584
description: ES5 Attributes - Failed to add property into object (Date instance)
---*/
- var data = "data";
+var data = "data";
- Object.defineProperty(Date.prototype, "prop", {
- get: function () {
- return data;
- },
- set: function (value) {
- data = value;
- },
- enumerable: true,
- configurable: true
- });
- var dateObj = new Date();
- dateObj.prop = "myOwnProperty";
+Object.defineProperty(Date.prototype, "prop", {
+ get: function() {
+ return data;
+ },
+ set: function(value) {
+ data = value;
+ },
+ enumerable: true,
+ configurable: true
+});
+var dateObj = new Date();
+dateObj.prop = "myOwnProperty";
assert.sameValue(dateObj.hasOwnProperty("prop"), false, 'dateObj.hasOwnProperty("prop")');
assert.sameValue(dateObj.prop, "myOwnProperty", 'dateObj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-585.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-585.js
index b58e59416..7a292295a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-585.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-585.js
@@ -6,25 +6,25 @@ es5id: 15.2.3.6-4-585
description: ES5 Attributes - Inherited property is enumerable (RegExp instance)
---*/
- var data = "data";
+var data = "data";
- Object.defineProperty(RegExp.prototype, "prop", {
- get: function () {
- return data;
- },
- set: function (value) {
- data = value;
- },
- enumerable: true,
- configurable: true
- });
- var regObj = new RegExp();
- var verifyEnumerable = false;
- for (var p in regObj) {
- if (p === "prop") {
- verifyEnumerable = true;
- }
- }
+Object.defineProperty(RegExp.prototype, "prop", {
+ get: function() {
+ return data;
+ },
+ set: function(value) {
+ data = value;
+ },
+ enumerable: true,
+ configurable: true
+});
+var regObj = new RegExp();
+var verifyEnumerable = false;
+for (var p in regObj) {
+ if (p === "prop") {
+ verifyEnumerable = true;
+ }
+}
assert.sameValue(regObj.hasOwnProperty("prop"), false, 'regObj.hasOwnProperty("prop")');
assert(verifyEnumerable, 'verifyEnumerable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-586.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-586.js
index 37c718de9..44fdf5191 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-586.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-586.js
@@ -11,15 +11,15 @@ includes: [propertyHelper.js]
var data = "data";
- Object.defineProperty(Object.prototype, "prop", {
- get: function () {
- return data;
- },
- enumerable: false,
- configurable: true
- });
- verifyNotWritable(JSON, "prop", "nocheck");
+Object.defineProperty(Object.prototype, "prop", {
+ get: function() {
+ return data;
+ },
+ enumerable: false,
+ configurable: true
+});
+verifyNotWritable(JSON, "prop", "nocheck");
- assert(!JSON.hasOwnProperty("prop"));
- assert.sameValue(JSON.prop, "data");
- assert.sameValue(data, "data");
+assert(!JSON.hasOwnProperty("prop"));
+assert.sameValue(JSON.prop, "data");
+assert.sameValue(data, "data");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-587.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-587.js
index 441dfe023..2994155b0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-587.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-587.js
@@ -6,21 +6,21 @@ es5id: 15.2.3.6-4-587
description: ES5 Attributes - Inherited property is non-enumerable (Math)
---*/
- var data = "data";
+var data = "data";
- Object.defineProperty(Object.prototype, "prop", {
- get: function () {
- return data;
- },
- enumerable: false,
- configurable: true
- });
- var verifyEnumerable = false;
- for (var p in Math) {
- if (p === "prop") {
- verifyEnumerable = true;
- }
- }
+Object.defineProperty(Object.prototype, "prop", {
+ get: function() {
+ return data;
+ },
+ enumerable: false,
+ configurable: true
+});
+var verifyEnumerable = false;
+for (var p in Math) {
+ if (p === "prop") {
+ verifyEnumerable = true;
+ }
+}
assert.sameValue(Math.hasOwnProperty("prop"), false, 'Math.hasOwnProperty("prop")');
assert.sameValue(verifyEnumerable, false, 'verifyEnumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-588.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-588.js
index 09d635b64..38cb3ff2c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-588.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-588.js
@@ -8,43 +8,43 @@ description: >
[[Prototype]] internal property is correct (Object.create)
---*/
- var appointment = {};
+var appointment = {};
- var data1 = 1001;
- Object.defineProperty(appointment, "startTime", {
- get: function () {
- return data1;
- },
- enumerable: true,
- configurable: false
- });
- var data2 = "NAME";
- Object.defineProperty(appointment, "name", {
- get: function () {
- return data2;
- },
- set: function (value) {
- data2 = value;
- },
- enumerable: true,
- configurable: true
- });
+var data1 = 1001;
+Object.defineProperty(appointment, "startTime", {
+ get: function() {
+ return data1;
+ },
+ enumerable: true,
+ configurable: false
+});
+var data2 = "NAME";
+Object.defineProperty(appointment, "name", {
+ get: function() {
+ return data2;
+ },
+ set: function(value) {
+ data2 = value;
+ },
+ enumerable: true,
+ configurable: true
+});
- var meeting = Object.create(appointment);
- var data3 = "In-person meeting";
- Object.defineProperty(meeting, "conferenceCall", {
- get: function () {
- return data3;
- },
- enumerable: true,
- configurable: false
- });
+var meeting = Object.create(appointment);
+var data3 = "In-person meeting";
+Object.defineProperty(meeting, "conferenceCall", {
+ get: function() {
+ return data3;
+ },
+ enumerable: true,
+ configurable: false
+});
- var teamMeeting = Object.create(meeting);
+var teamMeeting = Object.create(meeting);
- var hasOwnProperty = !teamMeeting.hasOwnProperty("name") &&
- !teamMeeting.hasOwnProperty("startTime") &&
- !teamMeeting.hasOwnProperty('conferenceCall');
+var hasOwnProperty = !teamMeeting.hasOwnProperty("name") &&
+ !teamMeeting.hasOwnProperty("startTime") &&
+ !teamMeeting.hasOwnProperty('conferenceCall');
assert(hasOwnProperty, 'hasOwnProperty !== true');
assert.sameValue(teamMeeting.name, "NAME", 'teamMeeting.name');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-589.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-589.js
index d3c303a97..6bfcba317 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-589.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-589.js
@@ -8,53 +8,53 @@ description: >
[[Proptotype]] internal property (Object.create)
---*/
- var appointment = {};
+var appointment = {};
- var data1 = 1001;
- Object.defineProperty(appointment, "startTime", {
- get: function () {
- return data1;
- },
- set: function (value) {
- data1 = value;
- },
- enumerable: true,
- configurable: true
- });
- var data2 = "NAME";
- Object.defineProperty(appointment, "name", {
- get: function () {
- return data2;
- },
- set: function (value) {
- data2 = value;
- },
- enumerable: true,
- configurable: false
- });
+var data1 = 1001;
+Object.defineProperty(appointment, "startTime", {
+ get: function() {
+ return data1;
+ },
+ set: function(value) {
+ data1 = value;
+ },
+ enumerable: true,
+ configurable: true
+});
+var data2 = "NAME";
+Object.defineProperty(appointment, "name", {
+ get: function() {
+ return data2;
+ },
+ set: function(value) {
+ data2 = value;
+ },
+ enumerable: true,
+ configurable: false
+});
- var meeting = Object.create(appointment);
- var data3 = "In-person meeting";
- Object.defineProperty(meeting, "conferenceCall", {
- get: function () {
- return data3;
- },
- set: function (value) {
- data3 = value;
- },
- enumerable: true,
- configurable: false
- });
+var meeting = Object.create(appointment);
+var data3 = "In-person meeting";
+Object.defineProperty(meeting, "conferenceCall", {
+ get: function() {
+ return data3;
+ },
+ set: function(value) {
+ data3 = value;
+ },
+ enumerable: true,
+ configurable: false
+});
- var teamMeeting = Object.create(meeting);
- teamMeeting.name = "Team Meeting";
- var dateObj = new Date("10/31/2010 08:00");
- teamMeeting.startTime = dateObj;
- teamMeeting.conferenceCall = "4255551212";
+var teamMeeting = Object.create(meeting);
+teamMeeting.name = "Team Meeting";
+var dateObj = new Date("10/31/2010 08:00");
+teamMeeting.startTime = dateObj;
+teamMeeting.conferenceCall = "4255551212";
- var hasOwnProperty = !teamMeeting.hasOwnProperty("name") &&
- !teamMeeting.hasOwnProperty("startTime") &&
- !teamMeeting.hasOwnProperty('conferenceCall');
+var hasOwnProperty = !teamMeeting.hasOwnProperty("name") &&
+ !teamMeeting.hasOwnProperty("startTime") &&
+ !teamMeeting.hasOwnProperty('conferenceCall');
assert(hasOwnProperty, 'hasOwnProperty !== true');
assert.sameValue(teamMeeting.name, "Team Meeting", 'teamMeeting.name');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-59.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-59.js
index f8928ac1f..e8eeb3ca6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-59.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-59.js
@@ -13,15 +13,16 @@ includes: [propertyHelper.js]
var obj = {};
function getFunc() {
- return 0;
+ return 0;
}
+
function setFunc(value) {
- obj.helpVerifySet = value;
+ obj.helpVerifySet = value;
}
Object.defineProperty(obj, "foo", {
- get: getFunc,
- set: setFunc
+ get: getFunc,
+ set: setFunc
});
Object.defineProperty(obj, "foo", {});
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-590.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-590.js
index 3e326be2e..58b2a46f9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-590.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-590.js
@@ -6,64 +6,64 @@ es5id: 15.2.3.6-4-590
description: ES5 Attributes - Inherited property is enumerable (Object.create)
---*/
- var appointment = {};
+var appointment = {};
- var data1 = 1001;
- Object.defineProperty(appointment, "startTime", {
- get: function () {
- return data1;
- },
- set: function (value) {
- data1 = value;
- },
- enumerable: true,
- configurable: true
- });
- var data2 = "NAME";
- Object.defineProperty(appointment, "name", {
- get: function () {
- return data2;
- },
- set: function (value) {
- data2 = value;
- },
- enumerable: true,
- configurable: false
- });
+var data1 = 1001;
+Object.defineProperty(appointment, "startTime", {
+ get: function() {
+ return data1;
+ },
+ set: function(value) {
+ data1 = value;
+ },
+ enumerable: true,
+ configurable: true
+});
+var data2 = "NAME";
+Object.defineProperty(appointment, "name", {
+ get: function() {
+ return data2;
+ },
+ set: function(value) {
+ data2 = value;
+ },
+ enumerable: true,
+ configurable: false
+});
- var meeting = Object.create(appointment);
- var data3 = "In-person meeting";
- Object.defineProperty(meeting, "conferenceCall", {
- get: function () {
- return data3;
- },
- set: function (value) {
- data3 = value;
- },
- enumerable: true,
- configurable: false
- });
+var meeting = Object.create(appointment);
+var data3 = "In-person meeting";
+Object.defineProperty(meeting, "conferenceCall", {
+ get: function() {
+ return data3;
+ },
+ set: function(value) {
+ data3 = value;
+ },
+ enumerable: true,
+ configurable: false
+});
- var teamMeeting = Object.create(meeting);
+var teamMeeting = Object.create(meeting);
- var verifyTimeProp = false;
- var verifyNameProp = false;
- var verifyCallProp = false;
- for (var p in teamMeeting) {
- if (p === "startTime") {
- verifyTimeProp = true;
- }
- if (p === "name") {
- verifyNameProp = true;
- }
- if (p === "conferenceCall") {
- verifyCallProp = true;
- }
- }
+var verifyTimeProp = false;
+var verifyNameProp = false;
+var verifyCallProp = false;
+for (var p in teamMeeting) {
+ if (p === "startTime") {
+ verifyTimeProp = true;
+ }
+ if (p === "name") {
+ verifyNameProp = true;
+ }
+ if (p === "conferenceCall") {
+ verifyCallProp = true;
+ }
+}
- var hasOwnProperty = !teamMeeting.hasOwnProperty("name") &&
- !teamMeeting.hasOwnProperty("startTime") &&
- !teamMeeting.hasOwnProperty('conferenceCall');
+var hasOwnProperty = !teamMeeting.hasOwnProperty("name") &&
+ !teamMeeting.hasOwnProperty("startTime") &&
+ !teamMeeting.hasOwnProperty('conferenceCall');
assert(hasOwnProperty, 'hasOwnProperty !== true');
assert(verifyTimeProp, 'verifyTimeProp !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-591.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-591.js
index fd0e92199..8b1eb7312 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-591.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-591.js
@@ -13,29 +13,29 @@ var appointment = {};
var data1 = 1001;
Object.defineProperty(appointment, "startTime", {
- get: function () {
- return data1;
- },
- enumerable: false,
- configurable: false
+ get: function() {
+ return data1;
+ },
+ enumerable: false,
+ configurable: false
});
var data2 = "NAME";
Object.defineProperty(appointment, "name", {
- get: function () {
- return data2;
- },
- enumerable: false,
- configurable: true
+ get: function() {
+ return data2;
+ },
+ enumerable: false,
+ configurable: true
});
var meeting = Object.create(appointment);
var data3 = "In-person meeting";
Object.defineProperty(meeting, "conferenceCall", {
- get: function () {
- return data3;
- },
- enumerable: false,
- configurable: false
+ get: function() {
+ return data3;
+ },
+ enumerable: false,
+ configurable: false
});
var teamMeeting = Object.create(meeting);
@@ -45,22 +45,22 @@ verifyNotWritable(teamMeeting, "startTime", "nocheck");
verifyNotWritable(teamMeeting, "conferenceCall", "nocheck");
try {
- teamMeeting.name = "IE Team Meeting";
+ teamMeeting.name = "IE Team Meeting";
} catch (e) {
- assert(e instanceof TypeError);
+ assert(e instanceof TypeError);
}
try {
- var dateObj = new Date("10/31/2010 08:00");
- teamMeeting.startTime = dateObj;
+ var dateObj = new Date("10/31/2010 08:00");
+ teamMeeting.startTime = dateObj;
} catch (e) {
- assert(e instanceof TypeError);
+ assert(e instanceof TypeError);
}
try {
- teamMeeting.conferenceCall = "4255551212";
+ teamMeeting.conferenceCall = "4255551212";
} catch (e) {
- assert(e instanceof TypeError);
+ assert(e instanceof TypeError);
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-592.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-592.js
index 40784147f..26d450b26 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-592.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-592.js
@@ -8,55 +8,55 @@ description: >
(Object.create)
---*/
- var appointment = {};
+var appointment = {};
- var data1 = 1001;
- Object.defineProperty(appointment, "startTime", {
- get: function () {
- return data1;
- },
- enumerable: false,
- configurable: true
- });
- var data2 = "NAME";
- Object.defineProperty(appointment, "name", {
- get: function () {
- return data2;
- },
- enumerable: false,
- configurable: false
- });
+var data1 = 1001;
+Object.defineProperty(appointment, "startTime", {
+ get: function() {
+ return data1;
+ },
+ enumerable: false,
+ configurable: true
+});
+var data2 = "NAME";
+Object.defineProperty(appointment, "name", {
+ get: function() {
+ return data2;
+ },
+ enumerable: false,
+ configurable: false
+});
- var meeting = Object.create(appointment);
- var data3 = "In-person meeting";
- Object.defineProperty(meeting, "conferenceCall", {
- get: function () {
- return data3;
- },
- enumerable: false,
- configurable: true
- });
+var meeting = Object.create(appointment);
+var data3 = "In-person meeting";
+Object.defineProperty(meeting, "conferenceCall", {
+ get: function() {
+ return data3;
+ },
+ enumerable: false,
+ configurable: true
+});
- var teamMeeting = Object.create(meeting);
+var teamMeeting = Object.create(meeting);
- var verifyTimeProp = false;
- var verifyNameProp = false;
- var verifyCallProp = false;
- for (var p in teamMeeting) {
- if (p === "startTime") {
- verifyTimeProp = true;
- }
- if (p === "name") {
- verifyNameProp = true;
- }
- if (p === "conferenceCall") {
- verifyCallProp = true;
- }
- }
+var verifyTimeProp = false;
+var verifyNameProp = false;
+var verifyCallProp = false;
+for (var p in teamMeeting) {
+ if (p === "startTime") {
+ verifyTimeProp = true;
+ }
+ if (p === "name") {
+ verifyNameProp = true;
+ }
+ if (p === "conferenceCall") {
+ verifyCallProp = true;
+ }
+}
- var hasOwnProperty = !teamMeeting.hasOwnProperty("name") &&
- !teamMeeting.hasOwnProperty("startTime") &&
- !teamMeeting.hasOwnProperty('conferenceCall');
+var hasOwnProperty = !teamMeeting.hasOwnProperty("name") &&
+ !teamMeeting.hasOwnProperty("startTime") &&
+ !teamMeeting.hasOwnProperty('conferenceCall');
assert(hasOwnProperty, 'hasOwnProperty !== true');
assert.sameValue(verifyTimeProp, false, 'verifyTimeProp');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-593.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-593.js
index 877f17efb..7d53609fa 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-593.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-593.js
@@ -9,21 +9,21 @@ description: >
(Function.prototype.bind)
---*/
- var foo = function () { };
- var data = "data";
+var foo = function() {};
+var data = "data";
- Object.defineProperty(Function.prototype, "prop", {
- get: function () {
- return data;
- },
- set: function (value) {
- data = value;
- },
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(Function.prototype, "prop", {
+ get: function() {
+ return data;
+ },
+ set: function(value) {
+ data = value;
+ },
+ enumerable: true,
+ configurable: true
+});
- var obj = foo.bind({});
+var obj = foo.bind({});
assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")');
assert.sameValue(obj.prop, data, 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-594.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-594.js
index 8d5726679..f3194743e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-594.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-594.js
@@ -8,22 +8,22 @@ description: >
[[Proptotype]] internal property (Function.prototype.bind)
---*/
- var foo = function () { };
- var data = "data";
+var foo = function() {};
+var data = "data";
- Object.defineProperty(Function.prototype, "prop", {
- get: function () {
- return data;
- },
- set: function (value) {
- data = value;
- },
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(Function.prototype, "prop", {
+ get: function() {
+ return data;
+ },
+ set: function(value) {
+ data = value;
+ },
+ enumerable: true,
+ configurable: true
+});
- var obj = foo.bind({});
- obj.prop = "overrideData";
+var obj = foo.bind({});
+obj.prop = "overrideData";
assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")');
assert.sameValue(obj.prop, "overrideData", 'obj.prop');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-595.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-595.js
index 2f800ac1c..f533cbdc6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-595.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-595.js
@@ -8,28 +8,28 @@ description: >
(Function.prototype.bind)
---*/
- var foo = function () { };
- var data = "data";
+var foo = function() {};
+var data = "data";
- Object.defineProperty(Function.prototype, "prop", {
- get: function () {
- return data;
- },
- set: function (value) {
- data = value;
- },
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(Function.prototype, "prop", {
+ get: function() {
+ return data;
+ },
+ set: function(value) {
+ data = value;
+ },
+ enumerable: true,
+ configurable: true
+});
- var obj = foo.bind({});
+var obj = foo.bind({});
- var verifyEnumerable = false;
- for (var p in obj) {
- if (p === "prop") {
- verifyEnumerable = true;
- }
- }
+var verifyEnumerable = false;
+for (var p in obj) {
+ if (p === "prop") {
+ verifyEnumerable = true;
+ }
+}
assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")');
assert(verifyEnumerable, 'verifyEnumerable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-596.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-596.js
index 5489deaa0..98ba76b3d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-596.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-596.js
@@ -9,19 +9,19 @@ description: >
includes: [propertyHelper.js]
---*/
-var foo = function () { };
+var foo = function() {};
var data = "data";
- Object.defineProperty(Function.prototype, "prop", {
- get: function () {
- return data;
- },
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(Function.prototype, "prop", {
+ get: function() {
+ return data;
+ },
+ enumerable: false,
+ configurable: true
+});
- var obj = foo.bind({});
+var obj = foo.bind({});
- assert(!obj.hasOwnProperty("prop"));
- verifyNotWritable(obj, "prop", "nocheck");
- assert.sameValue(obj.prop, "data");;
+assert(!obj.hasOwnProperty("prop"));
+verifyNotWritable(obj, "prop", "nocheck");
+assert.sameValue(obj.prop, "data");;
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-597.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-597.js
index 9a46c54cd..832008560 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-597.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-597.js
@@ -8,25 +8,25 @@ description: >
(Function.prototype.bind)
---*/
- var foo = function () { };
- var data = "data";
+var foo = function() {};
+var data = "data";
- Object.defineProperty(Function.prototype, "prop", {
- get: function () {
- return data;
- },
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(Function.prototype, "prop", {
+ get: function() {
+ return data;
+ },
+ enumerable: false,
+ configurable: true
+});
- var obj = foo.bind({});
+var obj = foo.bind({});
- var verifyEnumerable = false;
- for (var p in obj) {
- if (p === "prop") {
- verifyEnumerable = true;
- }
- }
+var verifyEnumerable = false;
+for (var p in obj) {
+ if (p === "prop") {
+ verifyEnumerable = true;
+ }
+}
assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")');
assert.sameValue(verifyEnumerable, false, 'verifyEnumerable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-598.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-598.js
index 55420c69f..b1a5e8a5c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-598.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-598.js
@@ -8,27 +8,27 @@ description: >
correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "getPrototypeOf");
+var desc = Object.getOwnPropertyDescriptor(Object, "getPrototypeOf");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Object.getPrototypeOf;
+var temp = Object.getPrototypeOf;
- Object.getPrototypeOf = "2010";
+Object.getPrototypeOf = "2010";
- var isWritable = (Object.getPrototypeOf === "2010");
+var isWritable = (Object.getPrototypeOf === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Object) {
- if (prop === "getPrototypeOf") {
- isEnumerable = true;
- }
- }
-
- delete Object.getPrototypeOf;
+for (var prop in Object) {
+ if (prop === "getPrototypeOf") {
+ isEnumerable = true;
+ }
+}
- var isConfigurable = !Object.hasOwnProperty("getPrototypeOf");
+delete Object.getPrototypeOf;
+
+var isConfigurable = !Object.hasOwnProperty("getPrototypeOf");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-599.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-599.js
index 00e61a739..129ad5402 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-599.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-599.js
@@ -8,27 +8,27 @@ description: >
are correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyDescriptor");
+var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyDescriptor");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Object.getOwnPropertyDescriptor;
+var temp = Object.getOwnPropertyDescriptor;
- Object.getOwnPropertyDescriptor = "2010";
+Object.getOwnPropertyDescriptor = "2010";
- var isWritable = (Object.getOwnPropertyDescriptor === "2010");
+var isWritable = (Object.getOwnPropertyDescriptor === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Object) {
- if (prop === "getOwnPropertyDescriptor") {
- isEnumerable = true;
- }
- }
+for (var prop in Object) {
+ if (prop === "getOwnPropertyDescriptor") {
+ isEnumerable = true;
+ }
+}
- delete Object.getOwnPropertyDescriptor;
+delete Object.getOwnPropertyDescriptor;
- var isConfigurable = !Object.hasOwnProperty("getOwnPropertyDescriptor");
+var isConfigurable = !Object.hasOwnProperty("getOwnPropertyDescriptor");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-6.js
index f96e56cab..0d4c3e19f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-6.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-6.js
@@ -13,32 +13,32 @@ description: >
accessor desc
---*/
- function sameAccessorDescriptorValues(d1, d2) {
- return (d1.get == d2.get &&
- d1.enumerable == d2.enumerable &&
- d1.configurable == d2.configurable);
- }
+function sameAccessorDescriptorValues(d1, d2) {
+ return (d1.get == d2.get &&
+ d1.enumerable == d2.enumerable &&
+ d1.configurable == d2.configurable);
+}
- var o = {};
+var o = {};
- // create an accessor property with the following attributes:
- // enumerable: true, configurable: true
- var desc = {
- get: function () {},
- enumerable: true,
- configurable: true
- };
+// create an accessor property with the following attributes:
+// enumerable: true, configurable: true
+var desc = {
+ get: function() {},
+ enumerable: true,
+ configurable: true
+};
- Object.defineProperty(o, "foo", desc);
+Object.defineProperty(o, "foo", desc);
- // query for, and save, the desc. A subsequent call to defineProperty
- // with the same desc should not disturb the property definition.
- var d1 = Object.getOwnPropertyDescriptor(o, "foo");
+// query for, and save, the desc. A subsequent call to defineProperty
+// with the same desc should not disturb the property definition.
+var d1 = Object.getOwnPropertyDescriptor(o, "foo");
- // now, redefine the property with the same descriptor
- // the property defintion should not get disturbed.
- Object.defineProperty(o, "foo", desc);
+// now, redefine the property with the same descriptor
+// the property defintion should not get disturbed.
+Object.defineProperty(o, "foo", desc);
- var d2 = Object.getOwnPropertyDescriptor(o, "foo");
+var d2 = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(sameAccessorDescriptorValues(d1, d2), true, 'sameAccessorDescriptorValues(d1, d2)');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-60.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-60.js
index 906ae5460..12e6d66da 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-60.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-60.js
@@ -14,7 +14,9 @@ var obj = {};
obj.foo = 101; // default value of attributes: writable: true, configurable: true, enumerable: true
-Object.defineProperty(obj, "foo", { value: "abc" });
+Object.defineProperty(obj, "foo", {
+ value: "abc"
+});
verifyEqualTo(obj, "foo", "abc");
verifyWritable(obj, "foo");
@@ -22,4 +24,3 @@ verifyWritable(obj, "foo");
verifyEnumerable(obj, "foo");
verifyConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-600.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-600.js
index 7f1ab0b27..c9775c52f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-600.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-600.js
@@ -8,27 +8,27 @@ description: >
correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyNames");
+var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyNames");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Object.getOwnPropertyNames;
+var temp = Object.getOwnPropertyNames;
- Object.getOwnPropertyNames = "2010";
+Object.getOwnPropertyNames = "2010";
- var isWritable = (Object.getOwnPropertyNames === "2010");
+var isWritable = (Object.getOwnPropertyNames === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Object) {
- if (prop === "getOwnPropertyNames") {
- isEnumerable = true;
- }
- }
-
- delete Object.getOwnPropertyNames;
+for (var prop in Object) {
+ if (prop === "getOwnPropertyNames") {
+ isEnumerable = true;
+ }
+}
- var isConfigurable = !Object.hasOwnProperty("getOwnPropertyNames");
+delete Object.getOwnPropertyNames;
+
+var isConfigurable = !Object.hasOwnProperty("getOwnPropertyNames");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-601.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-601.js
index b9bcd8dc3..930b2b841 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-601.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-601.js
@@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-601
description: ES5 Attributes - all attributes in Object.create are correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "create");
+var desc = Object.getOwnPropertyDescriptor(Object, "create");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Object.create;
+var temp = Object.create;
- Object.create = "2010";
+Object.create = "2010";
- var isWritable = (Object.create === "2010");
+var isWritable = (Object.create === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Object) {
- if (prop === "create") {
- isEnumerable = true;
- }
- }
-
- delete Object.create;
+for (var prop in Object) {
+ if (prop === "create") {
+ isEnumerable = true;
+ }
+}
- var isConfigurable = !Object.hasOwnProperty("create");
+delete Object.create;
+
+var isConfigurable = !Object.hasOwnProperty("create");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-602.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-602.js
index d2f6f0de2..61eb16bb6 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-602.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-602.js
@@ -8,26 +8,26 @@ description: >
correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "defineProperty");
+var desc = Object.getOwnPropertyDescriptor(Object, "defineProperty");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Object.defineProperty;
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var temp = Object.defineProperty;
- Object.defineProperty = "2010";
+Object.defineProperty = "2010";
- var isWritable = (Object.defineProperty === "2010");
+var isWritable = (Object.defineProperty === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Object) {
- if (prop === "defineProperty") {
- isEnumerable = true;
- }
- }
+for (var prop in Object) {
+ if (prop === "defineProperty") {
+ isEnumerable = true;
+ }
+}
- delete Object.defineProperty;
+delete Object.defineProperty;
- var isConfigurable = !Object.hasOwnProperty("defineProperty");
+var isConfigurable = !Object.hasOwnProperty("defineProperty");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-603.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-603.js
index 7959a39ee..0fb05283a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-603.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-603.js
@@ -8,27 +8,27 @@ description: >
correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "defineProperties");
+var desc = Object.getOwnPropertyDescriptor(Object, "defineProperties");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Object.defineProperties;
+var temp = Object.defineProperties;
- Object.defineProperties = "2010";
+Object.defineProperties = "2010";
- var isWritable = (Object.defineProperties === "2010");
+var isWritable = (Object.defineProperties === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Object) {
- if (prop === "defineProperties") {
- isEnumerable = true;
- }
- }
-
- delete Object.defineProperties;
+for (var prop in Object) {
+ if (prop === "defineProperties") {
+ isEnumerable = true;
+ }
+}
- var isConfigurable = !Object.hasOwnProperty("defineProperties");
+delete Object.defineProperties;
+
+var isConfigurable = !Object.hasOwnProperty("defineProperties");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-604.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-604.js
index 497ebad75..ec234ccef 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-604.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-604.js
@@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-604
description: ES5 Attributes - all attributes in Object.seal are correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "seal");
+var desc = Object.getOwnPropertyDescriptor(Object, "seal");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Object.seal;
+var temp = Object.seal;
- Object.seal = "2010";
+Object.seal = "2010";
- var isWritable = (Object.seal === "2010");
+var isWritable = (Object.seal === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Object) {
- if (prop === "seal") {
- isEnumerable = true;
- }
- }
-
- delete Object.seal;
+for (var prop in Object) {
+ if (prop === "seal") {
+ isEnumerable = true;
+ }
+}
- var isConfigurable = !Object.hasOwnProperty("seal");
+delete Object.seal;
+
+var isConfigurable = !Object.hasOwnProperty("seal");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-605.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-605.js
index 45952f26c..bf120a7f0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-605.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-605.js
@@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-605
description: ES5 Attributes - all attributes in Object.freeze are correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "freeze");
+var desc = Object.getOwnPropertyDescriptor(Object, "freeze");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Object.freeze;
+var temp = Object.freeze;
- Object.freeze = "2010";
+Object.freeze = "2010";
- var isWritable = (Object.freeze === "2010");
+var isWritable = (Object.freeze === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Object) {
- if (prop === "freeze") {
- isEnumerable = true;
- }
- }
-
- delete Object.freeze;
+for (var prop in Object) {
+ if (prop === "freeze") {
+ isEnumerable = true;
+ }
+}
- var isConfigurable = !Object.hasOwnProperty("freeze");
+delete Object.freeze;
+
+var isConfigurable = !Object.hasOwnProperty("freeze");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-606.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-606.js
index a3621fdd1..7a6a177e2 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-606.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-606.js
@@ -8,27 +8,27 @@ description: >
correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "preventExtensions");
+var desc = Object.getOwnPropertyDescriptor(Object, "preventExtensions");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Object.preventExtensions;
+var temp = Object.preventExtensions;
- Object.preventExtensions = "2010";
+Object.preventExtensions = "2010";
- var isWritable = (Object.preventExtensions === "2010");
+var isWritable = (Object.preventExtensions === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Object) {
- if (prop === "preventExtensions") {
- isEnumerable = true;
- }
- }
-
- delete Object.preventExtensions;
+for (var prop in Object) {
+ if (prop === "preventExtensions") {
+ isEnumerable = true;
+ }
+}
- var isConfigurable = !Object.hasOwnProperty("preventExtensions");
+delete Object.preventExtensions;
+
+var isConfigurable = !Object.hasOwnProperty("preventExtensions");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-607.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-607.js
index 88beb3e67..0713aace0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-607.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-607.js
@@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-607
description: ES5 Attributes - all attributes in Object.isSealed are correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "isSealed");
+var desc = Object.getOwnPropertyDescriptor(Object, "isSealed");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Object.isSealed;
+var temp = Object.isSealed;
- Object.isSealed = "2010";
+Object.isSealed = "2010";
- var isWritable = (Object.isSealed === "2010");
+var isWritable = (Object.isSealed === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Object) {
- if (prop === "isSealed") {
- isEnumerable = true;
- }
- }
-
- delete Object.isSealed;
+for (var prop in Object) {
+ if (prop === "isSealed") {
+ isEnumerable = true;
+ }
+}
- var isConfigurable = !Object.hasOwnProperty("isSealed");
+delete Object.isSealed;
+
+var isConfigurable = !Object.hasOwnProperty("isSealed");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-608.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-608.js
index f752bc678..c16a7ad9c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-608.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-608.js
@@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-608
description: ES5 Attributes - all attributes in Object.isFrozen are correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "isFrozen");
+var desc = Object.getOwnPropertyDescriptor(Object, "isFrozen");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Object.isFrozen;
+var temp = Object.isFrozen;
- Object.isFrozen = "2010";
+Object.isFrozen = "2010";
- var isWritable = (Object.isFrozen === "2010");
+var isWritable = (Object.isFrozen === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Object) {
- if (prop === "isFrozen") {
- isEnumerable = true;
- }
- }
-
- delete Object.isFrozen;
+for (var prop in Object) {
+ if (prop === "isFrozen") {
+ isEnumerable = true;
+ }
+}
- var isConfigurable = !Object.hasOwnProperty("isFrozen");
+delete Object.isFrozen;
+
+var isConfigurable = !Object.hasOwnProperty("isFrozen");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-609.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-609.js
index aa12befa7..767111461 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-609.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-609.js
@@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-609
description: ES5 Attributes - all attributes in Object.isExtensible are correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "isExtensible");
+var desc = Object.getOwnPropertyDescriptor(Object, "isExtensible");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Object.isExtensible;
+var temp = Object.isExtensible;
- Object.isExtensible = "2010";
+Object.isExtensible = "2010";
- var isWritable = (Object.isExtensible === "2010");
+var isWritable = (Object.isExtensible === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Object) {
- if (prop === "isExtensible") {
- isEnumerable = true;
- }
- }
-
- delete Object.isExtensible;
+for (var prop in Object) {
+ if (prop === "isExtensible") {
+ isEnumerable = true;
+ }
+}
- var isConfigurable = !Object.hasOwnProperty("isExtensible");
+delete Object.isExtensible;
+
+var isConfigurable = !Object.hasOwnProperty("isExtensible");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-61.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-61.js
index a07c7e4dd..59ece6097 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-61.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-61.js
@@ -12,9 +12,13 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", { value: undefined });
+Object.defineProperty(obj, "foo", {
+ value: undefined
+});
-Object.defineProperty(obj, "foo", { value: undefined });
+Object.defineProperty(obj, "foo", {
+ value: undefined
+});
verifyEqualTo(obj, "foo", undefined);
verifyNotWritable(obj, "foo");
@@ -22,4 +26,3 @@ verifyNotWritable(obj, "foo");
verifyNotEnumerable(obj, "foo");
verifyNotConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-610.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-610.js
index 07cc6c4d8..36a508a23 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-610.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-610.js
@@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-610
description: ES5 Attributes - all attributes in Object.keys are correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "keys");
+var desc = Object.getOwnPropertyDescriptor(Object, "keys");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Object.keys;
+var temp = Object.keys;
- Object.keys = "2010";
+Object.keys = "2010";
- var isWritable = (Object.keys === "2010");
+var isWritable = (Object.keys === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Object) {
- if (prop === "keys") {
- isEnumerable = true;
- }
- }
-
- delete Object.keys;
+for (var prop in Object) {
+ if (prop === "keys") {
+ isEnumerable = true;
+ }
+}
- var isConfigurable = !Object.hasOwnProperty("keys");
+delete Object.keys;
+
+var isConfigurable = !Object.hasOwnProperty("keys");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-611.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-611.js
index aa0a5b9ce..65d279313 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-611.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-611.js
@@ -8,27 +8,27 @@ description: >
correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Function.prototype, "bind");
+var desc = Object.getOwnPropertyDescriptor(Function.prototype, "bind");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Function.prototype.bind;
+var temp = Function.prototype.bind;
- Function.prototype.bind = "2010";
+Function.prototype.bind = "2010";
- var isWritable = (Function.prototype.bind === "2010");
+var isWritable = (Function.prototype.bind === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Function.prototype) {
- if (prop === "bind") {
- isEnumerable = true;
- }
- }
-
- delete Function.prototype.bind;
+for (var prop in Function.prototype) {
+ if (prop === "bind") {
+ isEnumerable = true;
+ }
+}
- var isConfigurable = !Function.prototype.hasOwnProperty("bind");
+delete Function.prototype.bind;
+
+var isConfigurable = !Function.prototype.hasOwnProperty("bind");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-612.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-612.js
index 74ff9cba3..d643c1b20 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-612.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-612.js
@@ -8,27 +8,27 @@ description: >
correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "indexOf");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "indexOf");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Array.prototype.indexOf;
+var temp = Array.prototype.indexOf;
- Array.prototype.indexOf = "2010";
+Array.prototype.indexOf = "2010";
- var isWritable = (Array.prototype.indexOf === "2010");
+var isWritable = (Array.prototype.indexOf === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Array.prototype) {
- if (prop === "indexOf") {
- isEnumerable = true;
- }
- }
+for (var prop in Array.prototype) {
+ if (prop === "indexOf") {
+ isEnumerable = true;
+ }
+}
- delete Array.prototype.indexOf;
+delete Array.prototype.indexOf;
- var isConfigurable = !Array.prototype.hasOwnProperty("indexOf");
+var isConfigurable = !Array.prototype.hasOwnProperty("indexOf");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-613.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-613.js
index 58bf1afa6..b775e09e9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-613.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-613.js
@@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-613
description: ES5 Attributes - all attributes in Object.lastIndexOf are correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "lastIndexOf");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "lastIndexOf");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Array.prototype.lastIndexOf;
+var temp = Array.prototype.lastIndexOf;
- Array.prototype.lastIndexOf = "2010";
+Array.prototype.lastIndexOf = "2010";
- var isWritable = (Array.prototype.lastIndexOf === "2010");
+var isWritable = (Array.prototype.lastIndexOf === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Array.prototype) {
- if (prop === "lastIndexOf") {
- isEnumerable = true;
- }
- }
+for (var prop in Array.prototype) {
+ if (prop === "lastIndexOf") {
+ isEnumerable = true;
+ }
+}
- delete Array.prototype.lastIndexOf;
+delete Array.prototype.lastIndexOf;
- var isConfigurable = !Array.prototype.hasOwnProperty("lastIndexOf");
+var isConfigurable = !Array.prototype.hasOwnProperty("lastIndexOf");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-614.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-614.js
index cd393df4c..1a4b20786 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-614.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-614.js
@@ -8,27 +8,27 @@ description: >
correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "every");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "every");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Array.prototype.every;
+var temp = Array.prototype.every;
- Array.prototype.every = "2010";
+Array.prototype.every = "2010";
- var isWritable = (Array.prototype.every === "2010");
+var isWritable = (Array.prototype.every === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Array.prototype) {
- if (prop === "every") {
- isEnumerable = true;
- }
- }
+for (var prop in Array.prototype) {
+ if (prop === "every") {
+ isEnumerable = true;
+ }
+}
- delete Array.prototype.every;
+delete Array.prototype.every;
- var isConfigurable = !Array.prototype.hasOwnProperty("every");
+var isConfigurable = !Array.prototype.hasOwnProperty("every");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-615.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-615.js
index 172758c2c..837e8922f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-615.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-615.js
@@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-615
description: ES5 Attributes - all attributes in Array.prototype.some are correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "some");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "some");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Array.prototype.some;
+var temp = Array.prototype.some;
- Array.prototype.some = "2010";
+Array.prototype.some = "2010";
- var isWritable = (Array.prototype.some === "2010");
+var isWritable = (Array.prototype.some === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Array.prototype) {
- if (prop === "some") {
- isEnumerable = true;
- }
- }
+for (var prop in Array.prototype) {
+ if (prop === "some") {
+ isEnumerable = true;
+ }
+}
- delete Array.prototype.some;
+delete Array.prototype.some;
- var isConfigurable = !Array.prototype.hasOwnProperty("some");
+var isConfigurable = !Array.prototype.hasOwnProperty("some");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-616.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-616.js
index 4a53ab993..73a58e8dd 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-616.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-616.js
@@ -8,27 +8,27 @@ description: >
correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "forEach");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "forEach");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Array.prototype.forEach;
+var temp = Array.prototype.forEach;
- Array.prototype.forEach = "2010";
+Array.prototype.forEach = "2010";
- var isWritable = (Array.prototype.forEach === "2010");
+var isWritable = (Array.prototype.forEach === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Array.prototype) {
- if (prop === "forEach") {
- isEnumerable = true;
- }
- }
+for (var prop in Array.prototype) {
+ if (prop === "forEach") {
+ isEnumerable = true;
+ }
+}
- delete Array.prototype.forEach;
+delete Array.prototype.forEach;
- var isConfigurable = !Array.prototype.hasOwnProperty("forEach");
+var isConfigurable = !Array.prototype.hasOwnProperty("forEach");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-617.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-617.js
index 7e41f46c4..64509a0a0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-617.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-617.js
@@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-617
description: ES5 Attributes - all attributes in Array.prototype.map are correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "map");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "map");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Array.prototype.map;
+var temp = Array.prototype.map;
- Array.prototype.map = "2010";
+Array.prototype.map = "2010";
- var isWritable = (Array.prototype.map === "2010");
+var isWritable = (Array.prototype.map === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Array.prototype) {
- if (prop === "map") {
- isEnumerable = true;
- }
- }
+for (var prop in Array.prototype) {
+ if (prop === "map") {
+ isEnumerable = true;
+ }
+}
- delete Array.prototype.map;
+delete Array.prototype.map;
- var isConfigurable = !Array.prototype.hasOwnProperty("map");
+var isConfigurable = !Array.prototype.hasOwnProperty("map");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-618.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-618.js
index 27492e2e3..1bac706cd 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-618.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-618.js
@@ -8,27 +8,27 @@ description: >
correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "filter");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "filter");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Array.prototype.filter;
+var temp = Array.prototype.filter;
- Array.prototype.filter = "2010";
+Array.prototype.filter = "2010";
- var isWritable = (Array.prototype.filter === "2010");
+var isWritable = (Array.prototype.filter === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Array.prototype) {
- if (prop === "filter") {
- isEnumerable = true;
- }
- }
+for (var prop in Array.prototype) {
+ if (prop === "filter") {
+ isEnumerable = true;
+ }
+}
- delete Array.prototype.filter;
+delete Array.prototype.filter;
- var isConfigurable = !Array.prototype.hasOwnProperty("filter");
+var isConfigurable = !Array.prototype.hasOwnProperty("filter");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-619.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-619.js
index 408f1417d..7a16d04bd 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-619.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-619.js
@@ -8,27 +8,27 @@ description: >
correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduce");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduce");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Array.prototype.reduce;
+var temp = Array.prototype.reduce;
- Array.prototype.reduce = "2010";
+Array.prototype.reduce = "2010";
- var isWritable = (Array.prototype.reduce === "2010");
+var isWritable = (Array.prototype.reduce === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Array.prototype) {
- if (prop === "reduce") {
- isEnumerable = true;
- }
- }
+for (var prop in Array.prototype) {
+ if (prop === "reduce") {
+ isEnumerable = true;
+ }
+}
- delete Array.prototype.reduce;
+delete Array.prototype.reduce;
- var isConfigurable = !Array.prototype.hasOwnProperty("reduce");
+var isConfigurable = !Array.prototype.hasOwnProperty("reduce");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-62.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-62.js
index 6e1344b5b..34ae7d592 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-62.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-62.js
@@ -12,9 +12,13 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", { value: null });
+Object.defineProperty(obj, "foo", {
+ value: null
+});
-Object.defineProperty(obj, "foo", { value: null });
+Object.defineProperty(obj, "foo", {
+ value: null
+});
verifyEqualTo(obj, "foo", null);
verifyNotWritable(obj, "foo");
@@ -22,4 +26,3 @@ verifyNotWritable(obj, "foo");
verifyNotEnumerable(obj, "foo");
verifyNotConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-620.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-620.js
index e2a9f56f5..dc134044b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-620.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-620.js
@@ -8,27 +8,27 @@ description: >
correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduceRight");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduceRight");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Array.prototype.reduceRight;
+var temp = Array.prototype.reduceRight;
- Array.prototype.reduceRight = "2010";
+Array.prototype.reduceRight = "2010";
- var isWritable = (Array.prototype.reduceRight === "2010");
+var isWritable = (Array.prototype.reduceRight === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Array.prototype) {
- if (prop === "reduceRight") {
- isEnumerable = true;
- }
- }
+for (var prop in Array.prototype) {
+ if (prop === "reduceRight") {
+ isEnumerable = true;
+ }
+}
- delete Array.prototype.reduceRight;
+delete Array.prototype.reduceRight;
- var isConfigurable = !Array.prototype.hasOwnProperty("reduceRight");
+var isConfigurable = !Array.prototype.hasOwnProperty("reduceRight");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-621.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-621.js
index b7e2ebf5c..547d0f7f2 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-621.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-621.js
@@ -8,27 +8,27 @@ description: >
correct
---*/
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "trim");
+var desc = Object.getOwnPropertyDescriptor(String.prototype, "trim");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = String.prototype.trim;
+var temp = String.prototype.trim;
- String.prototype.trim = "2010";
+String.prototype.trim = "2010";
- var isWritable = (String.prototype.trim === "2010");
+var isWritable = (String.prototype.trim === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in String.prototype) {
- if (prop === "trim") {
- isEnumerable = true;
- }
- }
+for (var prop in String.prototype) {
+ if (prop === "trim") {
+ isEnumerable = true;
+ }
+}
- delete String.prototype.trim;
+delete String.prototype.trim;
- var isConfigurable = !String.prototype.hasOwnProperty("trim");
+var isConfigurable = !String.prototype.hasOwnProperty("trim");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-622.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-622.js
index c587d33d4..6a537f6b9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-622.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-622.js
@@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-622
description: ES5 Attributes - all attributes in Date.now are correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Date, "now");
+var desc = Object.getOwnPropertyDescriptor(Date, "now");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Date.now;
+var temp = Date.now;
- Date.now = "2010";
+Date.now = "2010";
- var isWritable = (Date.now === "2010");
+var isWritable = (Date.now === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Date) {
- if (prop === "now") {
- isEnumerable = true;
- }
- }
+for (var prop in Date) {
+ if (prop === "now") {
+ isEnumerable = true;
+ }
+}
- delete Date.now;
+delete Date.now;
- var isConfigurable = !Date.hasOwnProperty("now");
+var isConfigurable = !Date.hasOwnProperty("now");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-623.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-623.js
index f96eb0c02..d36c2cb57 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-623.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-623.js
@@ -8,27 +8,27 @@ description: >
correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toISOString");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toISOString");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Date.prototype.toISOString;
+var temp = Date.prototype.toISOString;
- Date.prototype.toISOString = "2010";
+Date.prototype.toISOString = "2010";
- var isWritable = (Date.prototype.toISOString === "2010");
+var isWritable = (Date.prototype.toISOString === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Date.prototype) {
- if (prop === "toISOString") {
- isEnumerable = true;
- }
- }
+for (var prop in Date.prototype) {
+ if (prop === "toISOString") {
+ isEnumerable = true;
+ }
+}
- delete Date.prototype.toISOString;
+delete Date.prototype.toISOString;
- var isConfigurable = !Date.prototype.hasOwnProperty("toISOString");
+var isConfigurable = !Date.prototype.hasOwnProperty("toISOString");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-624.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-624.js
index 5b6abba13..e95f78499 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-624.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-624.js
@@ -8,27 +8,27 @@ description: >
correct
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toJSON");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toJSON");
- var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
+var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true);
- var temp = Date.prototype.toJSON;
+var temp = Date.prototype.toJSON;
- Date.prototype.toJSON = "2010";
+Date.prototype.toJSON = "2010";
- var isWritable = (Date.prototype.toJSON === "2010");
+var isWritable = (Date.prototype.toJSON === "2010");
- var isEnumerable = false;
+var isEnumerable = false;
- for (var prop in Date.prototype) {
- if (prop === "toJSON") {
- isEnumerable = true;
- }
- }
+for (var prop in Date.prototype) {
+ if (prop === "toJSON") {
+ isEnumerable = true;
+ }
+}
- delete Date.prototype.toJSON;
+delete Date.prototype.toJSON;
- var isConfigurable = !Date.prototype.hasOwnProperty("toJSON");
+var isConfigurable = !Date.prototype.hasOwnProperty("toJSON");
assert(propertyAreCorrect, 'propertyAreCorrect !== true');
assert(isWritable, 'isWritable !== true');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-625gs.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-625gs.js
index e5285a4b9..bef1e27b4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-625gs.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-625gs.js
@@ -8,12 +8,17 @@ description: >
Object.prototype property of the same name
---*/
-Object.defineProperty(Object.prototype,
- "prop",
- { value: 1001, writable: false, enumerable: false, configurable: false}
- );
+Object.defineProperty(Object.prototype,
+ "prop",
+ {
+ value: 1001,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ }
+);
var prop = 1002;
-if (! (this.hasOwnProperty("prop") && prop === 1002)) {
- throw "this.prop should take precedence over Object.prototype.prop";
+if (!(this.hasOwnProperty("prop") && prop === 1002)) {
+ throw "this.prop should take precedence over Object.prototype.prop";
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-63.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-63.js
index 0c89597d3..a336364bb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-63.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-63.js
@@ -11,9 +11,13 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", { value: NaN });
+Object.defineProperty(obj, "foo", {
+ value: NaN
+});
-Object.defineProperty(obj, "foo", { value: NaN });
+Object.defineProperty(obj, "foo", {
+ value: NaN
+});
assert.sameValue(obj.foo, NaN);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-64.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-64.js
index 05cf0f67d..b079432a3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-64.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-64.js
@@ -12,23 +12,27 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", { value: -0 });
+Object.defineProperty(obj, "foo", {
+ value: -0
+});
try {
- Object.defineProperty(obj, "foo", { value: +0 });
- $ERROR("Expected an exception.");
+ Object.defineProperty(obj, "foo", {
+ value: +0
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", -0);
+ verifyEqualTo(obj, "foo", -0);
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-65.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-65.js
index 329a9293a..d420ffa4e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-65.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-65.js
@@ -12,22 +12,26 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", { value: +0 });
+Object.defineProperty(obj, "foo", {
+ value: +0
+});
try {
- Object.defineProperty(obj, "foo", { value: -0 });
- $ERROR("Expected an exception.");
+ Object.defineProperty(obj, "foo", {
+ value: -0
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", +0);
+ verifyEqualTo(obj, "foo", +0);
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-66.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-66.js
index 128e8a607..457c20314 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-66.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-66.js
@@ -14,7 +14,9 @@ var obj = {};
obj.foo = 101; // default value of attributes: writable: true, configurable: true, enumerable: true
-Object.defineProperty(obj, "foo", { value: 102 });
+Object.defineProperty(obj, "foo", {
+ value: 102
+});
verifyEqualTo(obj, "foo", 102);
verifyWritable(obj, "foo");
@@ -22,4 +24,3 @@ verifyWritable(obj, "foo");
verifyEnumerable(obj, "foo");
verifyConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-67.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-67.js
index b681149f4..5331d82f4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-67.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-67.js
@@ -13,9 +13,13 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", { value: "abcd" });
+Object.defineProperty(obj, "foo", {
+ value: "abcd"
+});
-Object.defineProperty(obj, "foo", { value: "abcd" });
+Object.defineProperty(obj, "foo", {
+ value: "abcd"
+});
verifyEqualTo(obj, "foo", "abcd");
verifyNotWritable(obj, "foo");
@@ -23,4 +27,3 @@ verifyNotWritable(obj, "foo");
verifyNotEnumerable(obj, "foo");
verifyNotConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-68.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-68.js
index b2892e41b..8f3f2a3ac 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-68.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-68.js
@@ -14,7 +14,9 @@ var obj = {};
obj.foo = "abcd"; // default value of attributes: writable: true, configurable: true, enumerable: true
-Object.defineProperty(obj, "foo", { value: "fghj" });
+Object.defineProperty(obj, "foo", {
+ value: "fghj"
+});
verifyEqualTo(obj, "foo", "fghj");
verifyWritable(obj, "foo");
@@ -22,4 +24,3 @@ verifyWritable(obj, "foo");
verifyEnumerable(obj, "foo");
verifyConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-69.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-69.js
index ca1faa868..a7b26daf9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-69.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-69.js
@@ -12,9 +12,13 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", { value: true });
+Object.defineProperty(obj, "foo", {
+ value: true
+});
-Object.defineProperty(obj, "foo", { value: true });
+Object.defineProperty(obj, "foo", {
+ value: true
+});
verifyEqualTo(obj, "foo", true);
verifyNotWritable(obj, "foo");
@@ -22,4 +26,3 @@ verifyNotWritable(obj, "foo");
verifyNotEnumerable(obj, "foo");
verifyNotConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-7.js
index 036161d3a..1c0cf64e9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-7.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-7.js
@@ -12,17 +12,23 @@ description: >
[[Configurable]] from false to true
---*/
- var o = {};
+var o = {};
- // create a data valued property; all other attributes default to false.
- var d1 = { value: 101, configurable: false };
- Object.defineProperty(o, "foo", d1);
+// create a data valued property; all other attributes default to false.
+var d1 = {
+ value: 101,
+ configurable: false
+};
+Object.defineProperty(o, "foo", d1);
- var desc = { value: 101, configurable: true };
+var desc = {
+ value: 101,
+ configurable: true
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
- // the property should remain unchanged.
- var d2 = Object.getOwnPropertyDescriptor(o, "foo");
+// the property should remain unchanged.
+var d2 = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(d2.value, 101, 'd2.value');
assert.sameValue(d2.configurable, false, 'd2.configurable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-70.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-70.js
index cc5354fdb..716f34d96 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-70.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-70.js
@@ -14,7 +14,9 @@ var obj = {};
obj.foo = true; // default value of attributes: writable: true, configurable: true, enumerable: true
-Object.defineProperty(obj, "foo", { value: false });
+Object.defineProperty(obj, "foo", {
+ value: false
+});
verifyEqualTo(obj, "foo", false);
verifyWritable(obj, "foo");
@@ -22,4 +24,3 @@ verifyWritable(obj, "foo");
verifyEnumerable(obj, "foo");
verifyConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-71.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-71.js
index e2d5ae2e3..ec1d4d9b9 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-71.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-71.js
@@ -12,11 +12,17 @@ includes: [propertyHelper.js]
var obj = {};
-var obj1 = { length: 10 };
+var obj1 = {
+ length: 10
+};
-Object.defineProperty(obj, "foo", { value: obj1 });
+Object.defineProperty(obj, "foo", {
+ value: obj1
+});
-Object.defineProperty(obj, "foo", { value: obj1 });
+Object.defineProperty(obj, "foo", {
+ value: obj1
+});
verifyEqualTo(obj, "foo", obj1);
verifyNotWritable(obj, "foo");
@@ -24,4 +30,3 @@ verifyNotWritable(obj, "foo");
verifyNotEnumerable(obj, "foo");
verifyNotConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-72.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-72.js
index 1ee4fd7e5..c0acc806f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-72.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-72.js
@@ -12,12 +12,18 @@ includes: [propertyHelper.js]
var obj = {};
-var obj1 = { length: 10 };
+var obj1 = {
+ length: 10
+};
obj.foo = obj1; // default value of attributes: writable: true, configurable: true, enumerable: true
-var obj2 = { length: 20 };
+var obj2 = {
+ length: 20
+};
-Object.defineProperty(obj, "foo", { value: obj2 });
+Object.defineProperty(obj, "foo", {
+ value: obj2
+});
verifyEqualTo(obj, "foo", obj2);
verifyWritable(obj, "foo");
@@ -25,4 +31,3 @@ verifyWritable(obj, "foo");
verifyEnumerable(obj, "foo");
verifyConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-73.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-73.js
index 0a478b234..eb436b8ff 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-73.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-73.js
@@ -12,9 +12,13 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", { writable: false});
+Object.defineProperty(obj, "foo", {
+ writable: false
+});
-Object.defineProperty(obj, "foo", { writable: false });
+Object.defineProperty(obj, "foo", {
+ writable: false
+});
verifyEqualTo(obj, "foo", undefined);
verifyNotWritable(obj, "foo");
@@ -22,4 +26,3 @@ verifyNotWritable(obj, "foo");
verifyNotEnumerable(obj, "foo");
verifyNotConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-74.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-74.js
index 4f20edeee..6a413f5ab 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-74.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-74.js
@@ -12,9 +12,14 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", { writable: false, configurable: true });
-
-Object.defineProperty(obj, "foo", { writable: true });
+Object.defineProperty(obj, "foo", {
+ writable: false,
+ configurable: true
+});
+
+Object.defineProperty(obj, "foo", {
+ writable: true
+});
verifyEqualTo(obj, "foo", undefined);
verifyWritable(obj, "foo");
@@ -22,4 +27,3 @@ verifyWritable(obj, "foo");
verifyNotEnumerable(obj, "foo");
verifyConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-75.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-75.js
index ab6aa88b3..833298e2a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-75.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-75.js
@@ -13,18 +13,21 @@ includes: [propertyHelper.js]
var obj = {};
function getFunc() {
- return 10;
+ return 10;
}
+
function setFunc(value) {
- obj.helpVerifySet = value;
+ obj.helpVerifySet = value;
}
Object.defineProperty(obj, "foo", {
- get: getFunc,
- set: setFunc
+ get: getFunc,
+ set: setFunc
});
-Object.defineProperty(obj, "foo", { get: getFunc });
+Object.defineProperty(obj, "foo", {
+ get: getFunc
+});
verifyEqualTo(obj, "foo", getFunc());
verifyWritable(obj, "foo", "helpVerifySet");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-76.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-76.js
index 7be62f266..7473dbac8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-76.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-76.js
@@ -13,23 +13,26 @@ includes: [propertyHelper.js]
var obj = {};
function getFunc1() {
- return 10;
+ return 10;
}
+
function setFunc1(value) {
- obj.helpVerifySet = value;
+ obj.helpVerifySet = value;
}
Object.defineProperty(obj, "foo", {
- get: getFunc1,
- set: setFunc1,
- configurable: true
+ get: getFunc1,
+ set: setFunc1,
+ configurable: true
});
function getFunc2() {
- return 20;
+ return 20;
}
-Object.defineProperty(obj, "foo", { get: getFunc2 });
+Object.defineProperty(obj, "foo", {
+ get: getFunc2
+});
verifyEqualTo(obj, "foo", getFunc2());
verifyWritable(obj, "foo", "helpVerifySet");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-77.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-77.js
index 2573a5b58..4dbddfefa 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-77.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-77.js
@@ -13,12 +13,16 @@ includes: [propertyHelper.js]
var obj = {};
function setFunc(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
-Object.defineProperty(obj, "foo", { set: setFunc });
+Object.defineProperty(obj, "foo", {
+ set: setFunc
+});
-Object.defineProperty(obj, "foo", { set: setFunc });
+Object.defineProperty(obj, "foo", {
+ set: setFunc
+});
verifyWritable(obj, "foo", "setVerifyHelpProp");
verifyNotEnumerable(obj, "foo");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-78.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-78.js
index 773592d73..e49b9787d 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-78.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-78.js
@@ -12,18 +12,20 @@ includes: [propertyHelper.js]
var obj = {};
-function setFunc1() { }
+function setFunc1() {}
Object.defineProperty(obj, "foo", {
- set: setFunc1,
- configurable: true
+ set: setFunc1,
+ configurable: true
});
function setFunc2(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
-Object.defineProperty(obj, "foo", { set: setFunc2 });
+Object.defineProperty(obj, "foo", {
+ set: setFunc2
+});
verifyWritable(obj, "foo", "setVerifyHelpProp");
verifyNotEnumerable(obj, "foo");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-79.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-79.js
index b88d4b839..62476d0bc 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-79.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-79.js
@@ -12,9 +12,13 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", { enumerable: false });
+Object.defineProperty(obj, "foo", {
+ enumerable: false
+});
-Object.defineProperty(obj, "foo", { enumerable: false });
+Object.defineProperty(obj, "foo", {
+ enumerable: false
+});
verifyEqualTo(obj, "foo", undefined);
verifyNotWritable(obj, "foo");
@@ -22,4 +26,3 @@ verifyNotWritable(obj, "foo");
verifyNotEnumerable(obj, "foo");
verifyNotConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-8.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-8.js
index f9467c096..90115f997 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-8.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-8.js
@@ -14,20 +14,27 @@ description: >
properties
---*/
- var o = {};
+var o = {};
- // create a data valued property; all other attributes default to false.
- var d1 = { value: 101, enumerable: false, configurable: false };
- Object.defineProperty(o, "foo", d1);
+// create a data valued property; all other attributes default to false.
+var d1 = {
+ value: 101,
+ enumerable: false,
+ configurable: false
+};
+Object.defineProperty(o, "foo", d1);
- // now, setting enumerable to true should fail, since [[Configurable]]
- // on the original property will be false.
- var desc = { value: 101, enumerable: true };
+// now, setting enumerable to true should fail, since [[Configurable]]
+// on the original property will be false.
+var desc = {
+ value: 101,
+ enumerable: true
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
- // the property should remain unchanged.
- var d2 = Object.getOwnPropertyDescriptor(o, "foo");
+// the property should remain unchanged.
+var d2 = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(d2.value, 101, 'd2.value');
assert.sameValue(d2.enumerable, false, 'd2.enumerable');
assert.sameValue(d2.configurable, false, 'd2.configurable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-80.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-80.js
index 71050073a..c71b320e5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-80.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-80.js
@@ -12,9 +12,14 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", { enumerable: false, configurable: true });
-
-Object.defineProperty(obj, "foo", { enumerable: true });
+Object.defineProperty(obj, "foo", {
+ enumerable: false,
+ configurable: true
+});
+
+Object.defineProperty(obj, "foo", {
+ enumerable: true
+});
verifyEqualTo(obj, "foo", undefined);
verifyNotWritable(obj, "foo");
@@ -22,4 +27,3 @@ verifyNotWritable(obj, "foo");
verifyEnumerable(obj, "foo");
verifyConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-81.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-81.js
index 5a7c25ec9..26939a862 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-81.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-81.js
@@ -12,9 +12,13 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", { configurable: false });
+Object.defineProperty(obj, "foo", {
+ configurable: false
+});
-Object.defineProperty(obj, "foo", { configurable: false });
+Object.defineProperty(obj, "foo", {
+ configurable: false
+});
verifyEqualTo(obj, "foo", undefined);
verifyNotWritable(obj, "foo");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-1.js
index 7cafbaa6f..f7e965c62 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-1.js
@@ -17,14 +17,14 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "foo", {
- enumerable: false
+ enumerable: false
});
verifyEqualTo(obj, "foo", 1001);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-10.js
index ff1075e57..ee190b024 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-10.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-10.js
@@ -16,22 +16,22 @@ includes: [propertyHelper.js]
var obj = {};
obj.verifySetFunction = "data";
-var get_func = function () {
- return obj.verifySetFunction;
+var get_func = function() {
+ return obj.verifySetFunction;
};
-var set_func = function (value) {
- obj.verifySetFunction = value;
+var set_func = function(value) {
+ obj.verifySetFunction = value;
};
Object.defineProperty(obj, "foo", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "foo", {
- enumerable: true,
- configurable: false
+ enumerable: true,
+ configurable: false
});
verifyEqualTo(obj, "foo", get_func());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-11.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-11.js
index e4f8e8ce9..293711b61 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-11.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-11.js
@@ -16,22 +16,22 @@ includes: [propertyHelper.js]
var obj = {};
obj.verifySetFunction = "data";
-var get_func = function () {
- return obj.verifySetFunction;
+var get_func = function() {
+ return obj.verifySetFunction;
};
-var set_func = function (value) {
- obj.verifySetFunction = value;
+var set_func = function(value) {
+ obj.verifySetFunction = value;
};
Object.defineProperty(obj, "foo", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "foo", {
- enumerable: false,
- configurable: false
+ enumerable: false,
+ configurable: false
});
verifyEqualTo(obj, "foo", get_func());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-12.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-12.js
index 34294da07..7c20a6c1a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-12.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-12.js
@@ -16,21 +16,21 @@ includes: [propertyHelper.js]
var obj = {};
obj.verifySetFunction = "data";
-var get_func = function () {
- return obj.verifySetFunction;
+var get_func = function() {
+ return obj.verifySetFunction;
};
-var set_func = function (value) {
- obj.verifySetFunction = value;
+var set_func = function(value) {
+ obj.verifySetFunction = value;
};
Object.defineProperty(obj, "foo", {
- get: get_func,
- set: set_func,
- enumerable: false,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: false,
+ configurable: true
});
Object.defineProperty(obj, "foo", {
- enumerable: true
+ enumerable: true
});
verifyEqualTo(obj, "foo", get_func());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-13.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-13.js
index 120a65e49..d7905a3f1 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-13.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-13.js
@@ -17,14 +17,14 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "0", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "0", {
- enumerable: false
+ enumerable: false
});
verifyEqualTo(obj, "0", 1001);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-14.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-14.js
index c53a47d84..d3c9a5a46 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-14.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-14.js
@@ -17,15 +17,15 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "0", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "0", {
- enumerable: false,
- configurable: true
+ enumerable: false,
+ configurable: true
});
verifyEqualTo(obj, "0", 1001);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-15.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-15.js
index fb191540c..d03591c06 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-15.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-15.js
@@ -16,14 +16,14 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "0", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "0", {
- configurable: false
+ configurable: false
});
verifyEqualTo(obj, "0", 1001);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-16.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-16.js
index c3362692e..5f2f3bf39 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-16.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-16.js
@@ -17,15 +17,15 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "0", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "0", {
- enumerable: true,
- configurable: false
+ enumerable: true,
+ configurable: false
});
verifyEqualTo(obj, "0", 1001);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-17.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-17.js
index 608f07aee..c999cf1bb 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-17.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-17.js
@@ -17,15 +17,15 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "0", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "0", {
- enumerable: false,
- configurable: false
+ enumerable: false,
+ configurable: false
});
verifyEqualTo(obj, "0", 1001);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-18.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-18.js
index 80c1c7ce0..7aead07ee 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-18.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-18.js
@@ -17,14 +17,14 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "0", {
- value: 1001,
- writable: true,
- enumerable: false,
- configurable: true
+ value: 1001,
+ writable: true,
+ enumerable: false,
+ configurable: true
});
Object.defineProperty(obj, "0", {
- enumerable: true
+ enumerable: true
});
verifyEqualTo(obj, "0", 1001);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-19.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-19.js
index 6e704bbbd..54fcb81c5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-19.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-19.js
@@ -16,21 +16,21 @@ includes: [propertyHelper.js]
var obj = {};
obj.verifySetFunction = "data";
-var get_func = function () {
- return obj.verifySetFunction;
+var get_func = function() {
+ return obj.verifySetFunction;
};
-var set_func = function (value) {
- obj.verifySetFunction = value;
+var set_func = function(value) {
+ obj.verifySetFunction = value;
};
Object.defineProperty(obj, "0", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "0", {
- enumerable: false
+ enumerable: false
});
verifyEqualTo(obj, "0", get_func());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-2.js
index 9eead22a1..be5111135 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-2.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-2.js
@@ -17,15 +17,15 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "foo", {
- enumerable: false,
- configurable: true
+ enumerable: false,
+ configurable: true
});
verifyEqualTo(obj, "foo", 1001);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-20.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-20.js
index 89e42a486..7ab721798 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-20.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-20.js
@@ -16,22 +16,22 @@ includes: [propertyHelper.js]
var obj = {};
obj.verifySetFunction = "data";
-var get_func = function () {
- return obj.verifySetFunction;
+var get_func = function() {
+ return obj.verifySetFunction;
};
-var set_func = function (value) {
- obj.verifySetFunction = value;
+var set_func = function(value) {
+ obj.verifySetFunction = value;
};
Object.defineProperty(obj, "0", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "0", {
- enumerable: false,
- configurable: true
+ enumerable: false,
+ configurable: true
});
verifyEqualTo(obj, "0", get_func());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-21.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-21.js
index 0aa883113..629a5e9df 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-21.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-21.js
@@ -16,21 +16,21 @@ includes: [propertyHelper.js]
var obj = {};
obj.verifySetFunction = "data";
-var get_func = function () {
- return obj.verifySetFunction;
+var get_func = function() {
+ return obj.verifySetFunction;
};
-var set_func = function (value) {
- obj.verifySetFunction = value;
+var set_func = function(value) {
+ obj.verifySetFunction = value;
};
Object.defineProperty(obj, "0", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "0", {
- configurable: false
+ configurable: false
});
verifyEqualTo(obj, "0", get_func());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-22.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-22.js
index d0f960060..cd26dfba0 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-22.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-22.js
@@ -16,22 +16,22 @@ includes: [propertyHelper.js]
var obj = {};
obj.verifySetFunction = "data";
-var get_func = function () {
- return obj.verifySetFunction;
+var get_func = function() {
+ return obj.verifySetFunction;
};
-var set_func = function (value) {
- obj.verifySetFunction = value;
+var set_func = function(value) {
+ obj.verifySetFunction = value;
};
Object.defineProperty(obj, "0", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "0", {
- enumerable: true,
- configurable: false
+ enumerable: true,
+ configurable: false
});
verifyEqualTo(obj, "0", get_func());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-23.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-23.js
index 1fa1daa88..137b1ba4c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-23.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-23.js
@@ -16,22 +16,22 @@ includes: [propertyHelper.js]
var obj = {};
obj.verifySetFunction = "data";
-var get_func = function () {
- return obj.verifySetFunction;
+var get_func = function() {
+ return obj.verifySetFunction;
};
-var set_func = function (value) {
- obj.verifySetFunction = value;
+var set_func = function(value) {
+ obj.verifySetFunction = value;
};
Object.defineProperty(obj, "0", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "0", {
- enumerable: false,
- configurable: false
+ enumerable: false,
+ configurable: false
});
verifyEqualTo(obj, "0", get_func());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-24.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-24.js
index 676cd48a5..8bb814914 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-24.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-24.js
@@ -16,21 +16,21 @@ includes: [propertyHelper.js]
var obj = {};
obj.verifySetFunction = "data";
-var get_func = function () {
- return obj.verifySetFunction;
+var get_func = function() {
+ return obj.verifySetFunction;
};
-var set_func = function (value) {
- obj.verifySetFunction = value;
+var set_func = function(value) {
+ obj.verifySetFunction = value;
};
Object.defineProperty(obj, "0", {
- get: get_func,
- set: set_func,
- enumerable: false,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: false,
+ configurable: true
});
Object.defineProperty(obj, "0", {
- enumerable: true
+ enumerable: true
});
verifyEqualTo(obj, "0", get_func());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-3.js
index bf0880cb3..af0980148 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-3.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-3.js
@@ -16,14 +16,14 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "foo", {
- configurable: false
+ configurable: false
});
verifyEqualTo(obj, "foo", 1001);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-4.js
index 5a3da0fb0..0d11ba790 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-4.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-4.js
@@ -17,15 +17,15 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "foo", {
- enumerable: true,
- configurable: false
+ enumerable: true,
+ configurable: false
});
verifyEqualTo(obj, "foo", 1001);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-5.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-5.js
index 86cb8b09b..cc9bb95f2 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-5.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-5.js
@@ -17,15 +17,15 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: 1001,
- writable: true,
- enumerable: true,
- configurable: true
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "foo", {
- enumerable: false,
- configurable: false
+ enumerable: false,
+ configurable: false
});
verifyEqualTo(obj, "foo", 1001);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-6.js
index 818f0afeb..15ee855b7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-6.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-6.js
@@ -17,14 +17,14 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: 1001,
- writable: true,
- enumerable: false,
- configurable: true
+ value: 1001,
+ writable: true,
+ enumerable: false,
+ configurable: true
});
Object.defineProperty(obj, "foo", {
- enumerable: true
+ enumerable: true
});
verifyEqualTo(obj, "foo", 1001);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-7.js
index a18058bdf..9d6c0c23b 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-7.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-7.js
@@ -16,21 +16,21 @@ includes: [propertyHelper.js]
var obj = {};
obj.verifySetFunction = "data";
-var get_func = function () {
- return obj.verifySetFunction;
+var get_func = function() {
+ return obj.verifySetFunction;
};
-var set_func = function (value) {
- obj.verifySetFunction = value;
+var set_func = function(value) {
+ obj.verifySetFunction = value;
};
Object.defineProperty(obj, "foo", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "foo", {
- enumerable: false
+ enumerable: false
});
verifyEqualTo(obj, "foo", get_func());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-8.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-8.js
index 56794eab3..230531fd8 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-8.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-8.js
@@ -16,22 +16,22 @@ includes: [propertyHelper.js]
var obj = {};
obj.verifySetFunction = "data";
-var get_func = function () {
- return obj.verifySetFunction;
+var get_func = function() {
+ return obj.verifySetFunction;
};
-var set_func = function (value) {
- obj.verifySetFunction = value;
+var set_func = function(value) {
+ obj.verifySetFunction = value;
};
Object.defineProperty(obj, "foo", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "foo", {
- enumerable: false,
- configurable: true
+ enumerable: false,
+ configurable: true
});
verifyEqualTo(obj, "foo", get_func());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-9.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-9.js
index fd9beee2c..2d660c23c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-9.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-9.js
@@ -16,21 +16,21 @@ includes: [propertyHelper.js]
var obj = {};
obj.verifySetFunction = "data";
-var get_func = function () {
- return obj.verifySetFunction;
+var get_func = function() {
+ return obj.verifySetFunction;
};
-var set_func = function (value) {
- obj.verifySetFunction = value;
+var set_func = function(value) {
+ obj.verifySetFunction = value;
};
Object.defineProperty(obj, "foo", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
});
Object.defineProperty(obj, "foo", {
- configurable: false
+ configurable: false
});
verifyEqualTo(obj, "foo", get_func());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82.js
index ceb54f6c4..71081cb23 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82.js
@@ -12,9 +12,13 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", { configurable: true });
+Object.defineProperty(obj, "foo", {
+ configurable: true
+});
-Object.defineProperty(obj, "foo", { configurable: false });
+Object.defineProperty(obj, "foo", {
+ configurable: false
+});
verifyEqualTo(obj, "foo", undefined);
verifyNotWritable(obj, "foo");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-83.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-83.js
index dd76c7c36..6bcec607f 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-83.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-83.js
@@ -13,16 +13,16 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: undefined,
- writable: false,
- configurable: false
+Object.defineProperty(obj, "foo", {
+ value: undefined,
+ writable: false,
+ configurable: false
});
-Object.defineProperty(obj, "foo", {
- value: undefined,
- writable: false,
- configurable: false
+Object.defineProperty(obj, "foo", {
+ value: undefined,
+ writable: false,
+ configurable: false
});
verifyEqualTo(obj, "foo", undefined);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-84.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-84.js
index 1fc19e563..701d3ef46 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-84.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-84.js
@@ -13,16 +13,16 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: null,
- writable: false,
- configurable: false
+Object.defineProperty(obj, "foo", {
+ value: null,
+ writable: false,
+ configurable: false
});
-Object.defineProperty(obj, "foo", {
- value: null,
- writable: false,
- configurable: false
+Object.defineProperty(obj, "foo", {
+ value: null,
+ writable: false,
+ configurable: false
});
verifyEqualTo(obj, "foo", null);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-85.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-85.js
index 1c8a83810..7499fb8b5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-85.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-85.js
@@ -13,15 +13,15 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: NaN,
- writable: false,
- configurable: false
+ value: NaN,
+ writable: false,
+ configurable: false
});
Object.defineProperty(obj, "foo", {
- value: NaN,
- writable: false,
- configurable: false
+ value: NaN,
+ writable: false,
+ configurable: false
});
assert.sameValue(obj.foo, NaN);
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-86.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-86.js
index 5d58e5e4a..e302bff64 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-86.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-86.js
@@ -13,26 +13,28 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: -0,
- writable: false,
- configurable: false
+Object.defineProperty(obj, "foo", {
+ value: -0,
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperty(obj, "foo", { value: +0 });
- $ERROR("Expected an exception.");
+ Object.defineProperty(obj, "foo", {
+ value: +0
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", -0);
+ verifyEqualTo(obj, "foo", -0);
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-87.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-87.js
index 658c02738..a7edd420c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-87.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-87.js
@@ -13,26 +13,28 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: +0,
- writable: false,
- configurable: false
+Object.defineProperty(obj, "foo", {
+ value: +0,
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperty(obj, "foo", { value: -0 });
- $ERROR("Expected an exception.");
+ Object.defineProperty(obj, "foo", {
+ value: -0
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", +0);
+ verifyEqualTo(obj, "foo", +0);
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-88.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-88.js
index df0b9cce9..fb949aa34 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-88.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-88.js
@@ -14,13 +14,15 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: 100,
- writable: false,
- configurable: false
+Object.defineProperty(obj, "foo", {
+ value: 100,
+ writable: false,
+ configurable: false
});
-Object.defineProperty(obj, "foo", { value: 100 });
+Object.defineProperty(obj, "foo", {
+ value: 100
+});
verifyEqualTo(obj, "foo", 100);
verifyNotWritable(obj, "foo");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-89.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-89.js
index 84efee09b..dbbf9c619 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-89.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-89.js
@@ -13,26 +13,28 @@ includes: [propertyHelper.js]
var obj = {};
-Object.defineProperty(obj, "foo", {
- value: 10,
- writable: false,
- configurable: false
+Object.defineProperty(obj, "foo", {
+ value: 10,
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperty(obj, "foo", { value: 20 });
- $ERROR("Expected an exception.");
+ Object.defineProperty(obj, "foo", {
+ value: 20
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", 10);
+ verifyEqualTo(obj, "foo", 10);
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-9.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-9.js
index 4b1db5430..2c3b16687 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-9.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-9.js
@@ -14,21 +14,28 @@ description: >
properties
---*/
- var o = {};
+var o = {};
- // create a data valued property with [[Enumerable]] explicitly set to true;
- // all other attributes default to false.
- var d1 = { value: 101, enumerable: true, configurable: false };
- Object.defineProperty(o, "foo", d1);
+// create a data valued property with [[Enumerable]] explicitly set to true;
+// all other attributes default to false.
+var d1 = {
+ value: 101,
+ enumerable: true,
+ configurable: false
+};
+Object.defineProperty(o, "foo", d1);
- // now, setting enumerable to false should fail, since [[Configurable]]
- // on the original property will be false.
- var desc = { value: 101, enumerable: false };
+// now, setting enumerable to false should fail, since [[Configurable]]
+// on the original property will be false.
+var desc = {
+ value: 101,
+ enumerable: false
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
- // the property should remain unchanged.
- var d2 = Object.getOwnPropertyDescriptor(o, "foo");
+// the property should remain unchanged.
+var d2 = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(d2.value, 101, 'd2.value');
assert.sameValue(d2.enumerable, true, 'd2.enumerable');
assert.sameValue(d2.configurable, false, 'd2.configurable');
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-90.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-90.js
index 76fd36ba7..9466f4b07 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-90.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-90.js
@@ -15,12 +15,14 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: "abcd",
- writable: false,
- configurable: false
+ value: "abcd",
+ writable: false,
+ configurable: false
});
-Object.defineProperty(obj, "foo", { value: "abcd" });
+Object.defineProperty(obj, "foo", {
+ value: "abcd"
+});
verifyEqualTo(obj, "foo", "abcd");
verifyNotWritable(obj, "foo");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-91.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-91.js
index 22b598ddb..0f9ae100e 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-91.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-91.js
@@ -14,25 +14,27 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: "abcd",
- writable: false,
- configurable: false
+ value: "abcd",
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperty(obj, "foo", { value: "fghj" });
- $ERROR("Expected an exception.");
+ Object.defineProperty(obj, "foo", {
+ value: "fghj"
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", "abcd");
+ verifyEqualTo(obj, "foo", "abcd");
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-92.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-92.js
index 407a86365..925c95364 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-92.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-92.js
@@ -15,12 +15,14 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: false,
- writable: false,
- configurable: false
+ value: false,
+ writable: false,
+ configurable: false
});
-Object.defineProperty(obj, "foo", { value: false });
+Object.defineProperty(obj, "foo", {
+ value: false
+});
verifyEqualTo(obj, "foo", false);
verifyNotWritable(obj, "foo");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-93.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-93.js
index d9cbc7563..867b24e24 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-93.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-93.js
@@ -14,25 +14,27 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: false,
- writable: false,
- configurable: false
+ value: false,
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperty(obj, "foo", { value: true });
- $ERROR("Expected an exception.");
+ Object.defineProperty(obj, "foo", {
+ value: true
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", false);
+ verifyEqualTo(obj, "foo", false);
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-94.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-94.js
index d348eb05a..ab9e26598 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-94.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-94.js
@@ -14,15 +14,19 @@ includes: [propertyHelper.js]
var obj = {};
-var obj1 = { length: 10 };
+var obj1 = {
+ length: 10
+};
Object.defineProperty(obj, "foo", {
- value: obj1,
- writable: false,
- configurable: false
+ value: obj1,
+ writable: false,
+ configurable: false
});
-Object.defineProperty(obj, "foo", { value: obj1 });
+Object.defineProperty(obj, "foo", {
+ value: obj1
+});
verifyEqualTo(obj, "foo", obj1);
verifyNotWritable(obj, "foo");
@@ -30,4 +34,3 @@ verifyNotWritable(obj, "foo");
verifyNotEnumerable(obj, "foo");
verifyNotConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-95.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-95.js
index 593676afc..4157be577 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-95.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-95.js
@@ -14,30 +14,36 @@ includes: [propertyHelper.js]
var obj = {};
-var obj1 = { length: 10 };
+var obj1 = {
+ length: 10
+};
Object.defineProperty(obj, "foo", {
- value: obj1,
- writable: false,
- configurable: false
+ value: obj1,
+ writable: false,
+ configurable: false
});
-var obj2 = { length: 20 };
+var obj2 = {
+ length: 20
+};
try {
- Object.defineProperty(obj, "foo", { value: obj2 });
- $ERROR("Expected an exception.");
+ Object.defineProperty(obj, "foo", {
+ value: obj2
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", obj1);
+ verifyEqualTo(obj, "foo", obj1);
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-96.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-96.js
index db6e38287..0f8ebadfa 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-96.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-96.js
@@ -14,15 +14,17 @@ includes: [propertyHelper.js]
var obj = {};
function setFunc(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperty(obj, "foo", {
- set: setFunc,
- configurable: false
+ set: setFunc,
+ configurable: false
});
-Object.defineProperty(obj, "foo", { set: setFunc });
+Object.defineProperty(obj, "foo", {
+ set: setFunc
+});
verifyWritable(obj, "foo", "setVerifyHelpProp");
verifyNotEnumerable(obj, "foo");
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-97.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-97.js
index 4203a94f0..501e58cb3 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-97.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-97.js
@@ -14,31 +14,31 @@ includes: [propertyHelper.js]
var obj = {};
function getFunc() {
- return "property";
+ return "property";
}
Object.defineProperty(obj, "property", {
- get: getFunc,
- configurable: false
+ get: getFunc,
+ configurable: false
});
try {
- Object.defineProperty(obj, "property", {
- get: getFunc,
- set: function () { },
- configurable: false
- });
+ Object.defineProperty(obj, "property", {
+ get: getFunc,
+ set: function() {},
+ configurable: false
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "property", getFunc());
+ verifyEqualTo(obj, "property", getFunc());
- verifyNotEnumerable(obj, "property");
+ verifyNotEnumerable(obj, "property");
- verifyNotConfigurable(obj, "property");
+ verifyNotConfigurable(obj, "property");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-98.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-98.js
index b849e2970..eb0f2a07c 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-98.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-98.js
@@ -14,19 +14,22 @@ includes: [propertyHelper.js]
var obj = {};
function getFunc() {
- return 10;
+ return 10;
}
+
function setFunc(value) {
- obj.verifyGetHelpMethod = value;
+ obj.verifyGetHelpMethod = value;
}
Object.defineProperty(obj, "foo", {
- get: getFunc,
- set: setFunc,
- configurable: false
+ get: getFunc,
+ set: setFunc,
+ configurable: false
});
-Object.defineProperty(obj, "foo", { get: getFunc });
+Object.defineProperty(obj, "foo", {
+ get: getFunc
+});
verifyEqualTo(obj, "foo", getFunc());
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-99.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-99.js
index 5991d786c..ee0111080 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-99.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-99.js
@@ -14,33 +14,33 @@ includes: [propertyHelper.js]
var obj = {};
function setFunc(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperty(obj, "foo", {
- set: setFunc,
- configurable: false
+ set: setFunc,
+ configurable: false
});
function getFunc() {
- return 10;
+ return 10;
}
try {
- Object.defineProperty(obj, "foo", {
- get: getFunc,
- set: setFunc
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(obj, "foo", {
+ get: getFunc,
+ set: setFunc
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyWritable(obj, "foo", "setVerifyHelpProp");
+ verifyWritable(obj, "foo", "setVerifyHelpProp");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}
diff --git a/test/built-ins/Object/defineProperty/8.12.9-9-b-i_1.js b/test/built-ins/Object/defineProperty/8.12.9-9-b-i_1.js
index 17e8b1667..752352146 100644
--- a/test/built-ins/Object/defineProperty/8.12.9-9-b-i_1.js
+++ b/test/built-ins/Object/defineProperty/8.12.9-9-b-i_1.js
@@ -8,17 +8,23 @@ description: >
on a newly non-extensible object
---*/
- var o = {};
- Object.defineProperty(o, "foo",
- { value: "hello",
- configurable: true});
- Object.preventExtensions(o);
- Object.defineProperty(o, "foo", { get: function() { return 5;} });
+var o = {};
+Object.defineProperty(o, "foo",
+{
+ value: "hello",
+ configurable: true
+});
+Object.preventExtensions(o);
+Object.defineProperty(o, "foo", {
+ get: function() {
+ return 5;
+ }
+});
- var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo");
+var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(o.foo, 5, 'o.foo');
-assert(fooDescrip.get!==undefined, 'fooDescrip.get!==undefined !== true');
+assert(fooDescrip.get !== undefined, 'fooDescrip.get!==undefined !== true');
assert.sameValue(fooDescrip.set, undefined, 'fooDescrip.set');
assert.sameValue(fooDescrip.value, undefined, 'fooDescrip.value');
assert.sameValue(fooDescrip.configurable, true, 'fooDescrip.configurable');
diff --git a/test/built-ins/Object/defineProperty/8.12.9-9-b-i_2.js b/test/built-ins/Object/defineProperty/8.12.9-9-b-i_2.js
index 00ab01527..57e529247 100644
--- a/test/built-ins/Object/defineProperty/8.12.9-9-b-i_2.js
+++ b/test/built-ins/Object/defineProperty/8.12.9-9-b-i_2.js
@@ -8,19 +8,25 @@ description: >
on a newly non-extensible object
---*/
- var o = {};
- Object.defineProperty(o, "foo",
- { value: "hello",
- configurable: true,
- enumerable: true,
- writable: true});
- Object.preventExtensions(o);
- Object.defineProperty(o, "foo", { get: function() { return 5;} });
+var o = {};
+Object.defineProperty(o, "foo",
+{
+ value: "hello",
+ configurable: true,
+ enumerable: true,
+ writable: true
+});
+Object.preventExtensions(o);
+Object.defineProperty(o, "foo", {
+ get: function() {
+ return 5;
+ }
+});
- var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo");
+var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(o.foo, 5, 'o.foo');
-assert(fooDescrip.get!==undefined, 'fooDescrip.get!==undefined !== true');
+assert(fooDescrip.get !== undefined, 'fooDescrip.get!==undefined !== true');
assert.sameValue(fooDescrip.set, undefined, 'fooDescrip.set');
assert.sameValue(fooDescrip.value, undefined, 'fooDescrip.value');
assert.sameValue(fooDescrip.configurable, true, 'fooDescrip.configurable');
diff --git a/test/built-ins/Object/defineProperty/8.12.9-9-c-i_1.js b/test/built-ins/Object/defineProperty/8.12.9-9-c-i_1.js
index f64da3594..b74d2533d 100644
--- a/test/built-ins/Object/defineProperty/8.12.9-9-c-i_1.js
+++ b/test/built-ins/Object/defineProperty/8.12.9-9-c-i_1.js
@@ -8,14 +8,20 @@ description: >
a non-extensible object
---*/
- var o = {};
- Object.defineProperty(o, "foo",
- { get: function() { return 5;},
- configurable: true});
- Object.preventExtensions(o);
- Object.defineProperty(o, "foo", { value: "hello"});
+var o = {};
+Object.defineProperty(o, "foo",
+{
+ get: function() {
+ return 5;
+ },
+ configurable: true
+});
+Object.preventExtensions(o);
+Object.defineProperty(o, "foo", {
+ value: "hello"
+});
- var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo");
+var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(o.foo, "hello", 'o.foo');
assert.sameValue(fooDescrip.get, undefined, 'fooDescrip.get');
diff --git a/test/built-ins/Object/defineProperty/8.12.9-9-c-i_2.js b/test/built-ins/Object/defineProperty/8.12.9-9-c-i_2.js
index 118ff856f..e99ebffe5 100644
--- a/test/built-ins/Object/defineProperty/8.12.9-9-c-i_2.js
+++ b/test/built-ins/Object/defineProperty/8.12.9-9-c-i_2.js
@@ -8,16 +8,22 @@ description: >
a non-extensible object
---*/
- var o = {};
- Object.defineProperty(o, "foo",
- { get: function() { return 5;},
- configurable: true});
- Object.preventExtensions(o);
- Object.defineProperty(o, "foo",
- { value: "hello",
- writable: true});
+var o = {};
+Object.defineProperty(o, "foo",
+{
+ get: function() {
+ return 5;
+ },
+ configurable: true
+});
+Object.preventExtensions(o);
+Object.defineProperty(o, "foo",
+{
+ value: "hello",
+ writable: true
+});
- var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo");
+var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(o.foo, "hello", 'o.foo');
assert.sameValue(fooDescrip.get, undefined, 'fooDescrip.get');
diff --git a/test/built-ins/Object/defineProperty/S15.2.3.6_A1.js b/test/built-ins/Object/defineProperty/S15.2.3.6_A1.js
index 4042dd3da..151157c48 100644
--- a/test/built-ins/Object/defineProperty/S15.2.3.6_A1.js
+++ b/test/built-ins/Object/defineProperty/S15.2.3.6_A1.js
@@ -12,10 +12,12 @@ es5id: 15.2.3.6_A1
description: Do getters on HTMLFormElements disappear?
---*/
-function getter() { return 'gotten'; }
+function getter() {
+ return 'gotten';
+}
if (typeof document !== 'undefined' &&
- typeof document.createElement === 'function') {
+ typeof document.createElement === 'function') {
var f = document.createElement("form");
var refused = false;
try {
diff --git a/test/built-ins/Object/defineProperty/S15.2.3.6_A2.js b/test/built-ins/Object/defineProperty/S15.2.3.6_A2.js
index b672f9b85..05e6aa3c1 100644
--- a/test/built-ins/Object/defineProperty/S15.2.3.6_A2.js
+++ b/test/built-ins/Object/defineProperty/S15.2.3.6_A2.js
@@ -10,8 +10,13 @@ description: >
var base = {};
var derived = Object.create(base);
-function getter() { return 'gotten'; }
-Object.defineProperty(base, 'foo', {get: getter});
+
+function getter() {
+ return 'gotten';
+}
+Object.defineProperty(base, 'foo', {
+ get: getter
+});
if (derived.hasOwnProperty('foo')) {
$ERROR('Accessor properties inherit as own properties');
}
diff --git a/test/built-ins/Object/entries/exception-during-enumeration.js b/test/built-ins/Object/entries/exception-during-enumeration.js
index 0720a47f0..c4dba3f55 100644
--- a/test/built-ins/Object/entries/exception-during-enumeration.js
+++ b/test/built-ins/Object/entries/exception-during-enumeration.js
@@ -8,14 +8,14 @@ author: Jordan Harband
---*/
var trappedKey = {
- get a() {
- throw new RangeError('This error should be re-thrown');
- },
- get b() {
- $ERROR('Should not try to get the second element');
- }
+ get a() {
+ throw new RangeError('This error should be re-thrown');
+ },
+ get b() {
+ $ERROR('Should not try to get the second element');
+ }
};
-assert.throws(RangeError, function () {
- Object.entries(trappedKey);
+assert.throws(RangeError, function() {
+ Object.entries(trappedKey);
});
diff --git a/test/built-ins/Object/entries/exception-not-object-coercible.js b/test/built-ins/Object/entries/exception-not-object-coercible.js
index de90d9d6c..75e73145e 100644
--- a/test/built-ins/Object/entries/exception-not-object-coercible.js
+++ b/test/built-ins/Object/entries/exception-not-object-coercible.js
@@ -7,10 +7,10 @@ description: Object.entries should fail if given a null or undefined value
author: Jordan Harband
---*/
-assert.throws(TypeError, function () {
- Object.entries(null);
+assert.throws(TypeError, function() {
+ Object.entries(null);
});
-assert.throws(TypeError, function () {
- Object.entries(undefined);
+assert.throws(TypeError, function() {
+ Object.entries(undefined);
});
diff --git a/test/built-ins/Object/entries/function-name.js b/test/built-ins/Object/entries/function-name.js
index ec6db2ffc..7f336d253 100644
--- a/test/built-ins/Object/entries/function-name.js
+++ b/test/built-ins/Object/entries/function-name.js
@@ -9,9 +9,9 @@ includes: [propertyHelper.js]
---*/
assert.sameValue(
- Object.entries.name,
- 'entries',
- 'Expected Object.entries.name to be "entries"'
+ Object.entries.name,
+ 'entries',
+ 'Expected Object.entries.name to be "entries"'
);
verifyNotEnumerable(Object.entries, 'name');
diff --git a/test/built-ins/Object/entries/getter-adding-key.js b/test/built-ins/Object/entries/getter-adding-key.js
index 09eca7b16..f8843919a 100644
--- a/test/built-ins/Object/entries/getter-adding-key.js
+++ b/test/built-ins/Object/entries/getter-adding-key.js
@@ -8,11 +8,11 @@ author: Jordan Harband
---*/
var bAddsC = {
- a: 'A',
- get b() {
- this.c = 'C';
- return 'B';
- }
+ a: 'A',
+ get b() {
+ this.c = 'C';
+ return 'B';
+ }
};
var result = Object.entries(bAddsC);
diff --git a/test/built-ins/Object/entries/getter-making-future-key-nonenumerable.js b/test/built-ins/Object/entries/getter-making-future-key-nonenumerable.js
index c3e3cc721..3007fe051 100644
--- a/test/built-ins/Object/entries/getter-making-future-key-nonenumerable.js
+++ b/test/built-ins/Object/entries/getter-making-future-key-nonenumerable.js
@@ -8,14 +8,14 @@ author: Jordan Harband
---*/
var bDeletesC = {
- a: 'A',
- get b() {
- Object.defineProperty(this, 'c', {
- enumerable: false
- });
- return 'B';
- },
- c: 'C'
+ a: 'A',
+ get b() {
+ Object.defineProperty(this, 'c', {
+ enumerable: false
+ });
+ return 'B';
+ },
+ c: 'C'
};
var result = Object.entries(bDeletesC);
diff --git a/test/built-ins/Object/entries/getter-removing-future-key.js b/test/built-ins/Object/entries/getter-removing-future-key.js
index 05ef0d512..7953236d1 100644
--- a/test/built-ins/Object/entries/getter-removing-future-key.js
+++ b/test/built-ins/Object/entries/getter-removing-future-key.js
@@ -8,12 +8,12 @@ author: Jordan Harband
---*/
var bDeletesC = {
- a: 'A',
- get b() {
- delete this.c;
- return 'B';
- },
- c: 'C'
+ a: 'A',
+ get b() {
+ delete this.c;
+ return 'B';
+ },
+ c: 'C'
};
var result = Object.entries(bDeletesC);
diff --git a/test/built-ins/Object/entries/observable-operations.js b/test/built-ins/Object/entries/observable-operations.js
index d80b50651..d43cc5530 100644
--- a/test/built-ins/Object/entries/observable-operations.js
+++ b/test/built-ins/Object/entries/observable-operations.js
@@ -10,27 +10,31 @@ includes: [proxyTrapsHelper.js]
---*/
var log = "";
-var object = { a: 0, b: 0, c: 0 };
+var object = {
+ a: 0,
+ b: 0,
+ c: 0
+};
var handler = allowProxyTraps({
- get: function (target, propertyKey, receiver) {
+ get: function(target, propertyKey, receiver) {
assert.sameValue(target, object, "get target");
assert.sameValue(receiver, proxy, "get receiver");
log += "|get:" + propertyKey;
return target[propertyKey];
},
- getOwnPropertyDescriptor: function (target, propertyKey) {
+ getOwnPropertyDescriptor: function(target, propertyKey) {
assert.sameValue(target, object, "getOwnPropertyDescriptor");
log += "|getOwnPropertyDescriptor:" + propertyKey;
return Object.getOwnPropertyDescriptor(target, propertyKey);
},
- ownKeys: function (target) {
+ ownKeys: function(target) {
assert.sameValue(target, object, "ownKeys");
log += "|ownKeys";
return Object.getOwnPropertyNames(target);
}
});
var check = allowProxyTraps({
- get: function (target, propertyKey, receiver) {
+ get: function(target, propertyKey, receiver) {
assert(propertyKey in target, "handler check: " + propertyKey);
return target[propertyKey];
}
diff --git a/test/built-ins/Object/entries/symbols-omitted.js b/test/built-ins/Object/entries/symbols-omitted.js
index 076c16777..d753ee64e 100644
--- a/test/built-ins/Object/entries/symbols-omitted.js
+++ b/test/built-ins/Object/entries/symbols-omitted.js
@@ -13,9 +13,14 @@ var enumSym = Symbol('enum');
var nonEnumSym = Symbol('nonenum');
var symValue = Symbol('value');
-var obj = { key: symValue };
+var obj = {
+ key: symValue
+};
obj[enumSym] = value;
-Object.defineProperty(obj, nonEnumSym, { enumerable: false, value: value });
+Object.defineProperty(obj, nonEnumSym, {
+ enumerable: false,
+ value: value
+});
var result = Object.entries(obj);
diff --git a/test/built-ins/Object/entries/tamper-with-global-object.js b/test/built-ins/Object/entries/tamper-with-global-object.js
index 1ad4e18a2..cea8a87bb 100644
--- a/test/built-ins/Object/entries/tamper-with-global-object.js
+++ b/test/built-ins/Object/entries/tamper-with-global-object.js
@@ -9,7 +9,7 @@ author: Jordan Harband
---*/
function fakeObject() {
- $ERROR('The overriden version of Object was called!');
+ $ERROR('The overriden version of Object was called!');
}
fakeObject.entries = Object.entries;
diff --git a/test/built-ins/Object/entries/tamper-with-object-keys.js b/test/built-ins/Object/entries/tamper-with-object-keys.js
index 10e8a6d5f..7217292f0 100644
--- a/test/built-ins/Object/entries/tamper-with-object-keys.js
+++ b/test/built-ins/Object/entries/tamper-with-object-keys.js
@@ -9,10 +9,12 @@ author: Jordan Harband
---*/
function fakeObjectKeys() {
- $ERROR('The overriden version of Object.keys was called!');
+ $ERROR('The overriden version of Object.keys was called!');
}
Object.keys = fakeObjectKeys;
assert.sameValue(Object.keys, fakeObjectKeys, 'Sanity check failed: could not modify the global Object.keys');
-assert.sameValue(Object.entries({ a: 1 }).length, 1, 'Expected object with 1 key to have 1 entry');
+assert.sameValue(Object.entries({
+ a: 1
+}).length, 1, 'Expected object with 1 key to have 1 entry');
diff --git a/test/built-ins/Object/freeze/15.2.3.9-0-1.js b/test/built-ins/Object/freeze/15.2.3.9-0-1.js
index 45b5cd824..261f61d80 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-0-1.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-0-1.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.9-0-1
description: Object.freeze must exist as a function
---*/
- var f = Object.freeze;
+var f = Object.freeze;
assert.sameValue(typeof(f), "function", 'typeof(f)');
diff --git a/test/built-ins/Object/freeze/15.2.3.9-1-1.js b/test/built-ins/Object/freeze/15.2.3.9-1-1.js
index 76978ce78..0d8e14854 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-1-1.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-1-1.js
@@ -8,4 +8,4 @@ description: >
undefined
---*/
- Object.freeze(undefined);
+Object.freeze(undefined);
diff --git a/test/built-ins/Object/freeze/15.2.3.9-1-2.js b/test/built-ins/Object/freeze/15.2.3.9-1-2.js
index 9249c022a..91a2e93a1 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-1-2.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-1-2.js
@@ -8,4 +8,4 @@ description: >
null
---*/
- Object.freeze(null);
+Object.freeze(null);
diff --git a/test/built-ins/Object/freeze/15.2.3.9-1-3.js b/test/built-ins/Object/freeze/15.2.3.9-1-3.js
index 81c279ee8..6a97759d8 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-1-3.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-1-3.js
@@ -8,5 +8,5 @@ description: >
boolean primitive
---*/
- Object.freeze(false);
- Object.freeze(true);
+Object.freeze(false);
+Object.freeze(true);
diff --git a/test/built-ins/Object/freeze/15.2.3.9-1-4.js b/test/built-ins/Object/freeze/15.2.3.9-1-4.js
index 067469bcc..cd3b22403 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-1-4.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-1-4.js
@@ -8,4 +8,4 @@ description: >
string primitive
---*/
- Object.freeze("abc");
+Object.freeze("abc");
diff --git a/test/built-ins/Object/freeze/15.2.3.9-1.js b/test/built-ins/Object/freeze/15.2.3.9-1.js
index a60b13e98..d606706a2 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-1.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-1.js
@@ -8,4 +8,4 @@ description: >
not Object
---*/
- Object.freeze(0);
+Object.freeze(0);
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-1.js b/test/built-ins/Object/freeze/15.2.3.9-2-1.js
index 18d4ea221..8dc4b4658 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-1.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-1.js
@@ -8,8 +8,8 @@ description: >
no own property
---*/
- var obj = {};
+var obj = {};
- Object.freeze(obj);
+Object.freeze(obj);
assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)');
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-2.js b/test/built-ins/Object/freeze/15.2.3.9-2-2.js
index 61ebe20c1..ba48691d6 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-2.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-2.js
@@ -6,22 +6,22 @@ es5id: 15.2.3.9-2-2
description: Object.freeze - inherited data properties are not frozen
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "Father", {
- value: 10,
- configurable: true
- });
+Object.defineProperty(proto, "Father", {
+ value: 10,
+ configurable: true
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var child = new Con();
- Object.freeze(child);
+var child = new Con();
+Object.freeze(child);
- var beforeDeleted = proto.hasOwnProperty("Father");
- delete proto.Father;
- var afterDeleted = proto.hasOwnProperty("Father");
+var beforeDeleted = proto.hasOwnProperty("Father");
+delete proto.Father;
+var afterDeleted = proto.hasOwnProperty("Father");
assert(beforeDeleted, 'beforeDeleted !== true');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-3.js b/test/built-ins/Object/freeze/15.2.3.9-2-3.js
index 19114667e..5c171f1ac 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-3.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-3.js
@@ -6,24 +6,24 @@ es5id: 15.2.3.9-2-3
description: Object.freeze - inherited accessor properties are not frozen
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "Father", {
- get: function () {
- return 10;
- },
- configurable: true
- });
+Object.defineProperty(proto, "Father", {
+ get: function() {
+ return 10;
+ },
+ configurable: true
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var child = new Con();
- Object.freeze(child);
+var child = new Con();
+Object.freeze(child);
- var beforeDeleted = proto.hasOwnProperty("Father");
- delete proto.Father;
- var afterDeleted = proto.hasOwnProperty("Father");
+var beforeDeleted = proto.hasOwnProperty("Father");
+delete proto.Father;
+var afterDeleted = proto.hasOwnProperty("Father");
assert(beforeDeleted, 'beforeDeleted !== true');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-4.js b/test/built-ins/Object/freeze/15.2.3.9-2-4.js
index 2de41643a..ba3d34bae 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-4.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-4.js
@@ -10,9 +10,9 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: 10,
- enumerable: false,
- configurable: true
+ value: 10,
+ enumerable: false,
+ configurable: true
});
Object.freeze(obj);
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-11.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-11.js
index 91f1c1a01..914894864 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-a-11.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-11.js
@@ -11,7 +11,9 @@ includes: [propertyHelper.js]
// default [[Configurable]] attribute value of "0": true
-var argObj = (function () { return arguments; }(1, 2, 3));
+var argObj = (function() {
+ return arguments;
+}(1, 2, 3));
Object.freeze(argObj);
@@ -20,4 +22,3 @@ var desc = Object.getOwnPropertyDescriptor(argObj, "0");
verifyNotWritable(argObj, "0");
verifyNotConfigurable(argObj, "0");
assert.sameValue(argObj[0], 1);
-
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-13.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-13.js
index 1abca86d8..ed8efa0fd 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-a-13.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-13.js
@@ -9,7 +9,11 @@ includes: [propertyHelper.js]
// default [[Configurable]] attribute value of "0": true
-var obj = { 0: 0, 1: 1, length: 2};
+var obj = {
+ 0: 0,
+ 1: 1,
+ length: 2
+};
Object.freeze(obj);
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-2.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-2.js
index b5a0f7536..23e20c425 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-a-2.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-2.js
@@ -10,9 +10,11 @@ includes: [propertyHelper.js]
---*/
-var proto = { foo: 0 }; // default [[Configurable]] attribute value of foo: true
+var proto = {
+ foo: 0
+}; // default [[Configurable]] attribute value of foo: true
-var Con = function () { };
+var Con = function() {};
Con.prototype = proto;
var child = new Con();
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-3.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-3.js
index f623c5e93..f84894b00 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-a-3.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-3.js
@@ -12,19 +12,19 @@ includes: [propertyHelper.js]
var proto = {};
Object.defineProperty(proto, "foo", {
- get: function () {
- return 0;
- },
- configurable: true
+ get: function() {
+ return 0;
+ },
+ configurable: true
});
-var Con = function () { };
+var Con = function() {};
Con.prototype = proto;
var child = new Con();
Object.defineProperty(child, "foo", {
- value: 10,
- configurable: true
+ value: 10,
+ configurable: true
});
Object.freeze(child);
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-4.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-4.js
index 6a5212d02..e8d22fca0 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-a-4.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-4.js
@@ -10,10 +10,10 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- get: function () {
- return 10;
- },
- configurable: true
+ get: function() {
+ return 10;
+ },
+ configurable: true
});
Object.freeze(obj);
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-5.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-5.js
index 1ffa486a1..598187ff9 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-a-5.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-5.js
@@ -14,16 +14,16 @@ var proto = {};
proto.foo = 0; // default [[Configurable]] attribute value of foo: true
-var Con = function () { };
+var Con = function() {};
Con.prototype = proto;
var child = new Con();
Object.defineProperty(child, "foo", {
- get: function () {
- return 10;
- },
- configurable: true
+ get: function() {
+ return 10;
+ },
+ configurable: true
});
Object.freeze(child);
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-6.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-6.js
index 3f5bb5c03..6295b1f08 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-a-6.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-6.js
@@ -12,22 +12,22 @@ includes: [propertyHelper.js]
var proto = {};
Object.defineProperty(proto, "foo", {
- get: function () {
- return 0;
- },
- configurable: true
+ get: function() {
+ return 0;
+ },
+ configurable: true
});
-var Con = function () { };
+var Con = function() {};
Con.prototype = proto;
var child = new Con();
Object.defineProperty(child, "foo", {
- get: function () {
- return 10;
- },
- configurable: true
+ get: function() {
+ return 10;
+ },
+ configurable: true
});
Object.freeze(child);
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-7.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-7.js
index 4f24b0f63..75024a84b 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-a-7.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-7.js
@@ -9,7 +9,9 @@ description: >
includes: [propertyHelper.js]
---*/
-var argObj = (function () { return arguments; }());
+var argObj = (function() {
+ return arguments;
+}());
argObj.foo = 10; // default [[Configurable]] attribute value of foo: true
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-9.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-9.js
index c7dcdf73c..e4b21256b 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-a-9.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-9.js
@@ -9,7 +9,7 @@ description: >
includes: [propertyHelper.js]
---*/
-var funObj = function () { };
+var funObj = function() {};
funObj.foo = 10; // default [[Configurable]] attribute value of foo: true
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-b-i-1.js b/test/built-ins/Object/freeze/15.2.3.9-2-b-i-1.js
index 46362bcd3..96de0e1f7 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-b-i-1.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-b-i-1.js
@@ -12,10 +12,10 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: 10,
- writable: true,
- enumerable: true,
- configurable: false
+ value: 10,
+ writable: true,
+ enumerable: true,
+ configurable: false
});
Object.freeze(obj);
@@ -30,10 +30,9 @@ verifyEnumerable(obj, "foo");
verifyNotConfigurable(obj, "foo");
if (desc.writable !== false) {
- $ERROR('Expected desc.writable === false, actually ' + desc.writable);
+ $ERROR('Expected desc.writable === false, actually ' + desc.writable);
}
if (desc.configurable !== false) {
- $ERROR('Expected desc.configurable === false, actually ' + desc.configurable);
+ $ERROR('Expected desc.configurable === false, actually ' + desc.configurable);
}
-
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-b-i-2.js b/test/built-ins/Object/freeze/15.2.3.9-2-b-i-2.js
index 5c6f4c28a..150f18635 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-b-i-2.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-b-i-2.js
@@ -13,17 +13,17 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo1", {
- value: 10,
- writable: false,
- enumerable: true,
- configurable: false
+ value: 10,
+ writable: false,
+ enumerable: true,
+ configurable: false
});
Object.defineProperty(obj, "foo2", {
- value: 20,
- writable: true,
- enumerable: false,
- configurable: false
+ value: 20,
+ writable: true,
+ enumerable: false,
+ configurable: false
});
Object.freeze(obj);
@@ -48,18 +48,17 @@ verifyNotEnumerable(obj, "foo2");
verifyNotConfigurable(obj, "foo2");
if (desc1.configurable !== false) {
- $ERROR('Expected desc1.configurable === false, actually ' + desc1.configurable);
+ $ERROR('Expected desc1.configurable === false, actually ' + desc1.configurable);
}
if (desc1.writable !== false) {
- $ERROR('Expected desc1.writable === false, actually ' + desc1.writable);
+ $ERROR('Expected desc1.writable === false, actually ' + desc1.writable);
}
if (desc2.configurable !== false) {
- $ERROR('Expected desc2.configurable === false, actually ' + desc2.configurable);
+ $ERROR('Expected desc2.configurable === false, actually ' + desc2.configurable);
}
if (desc2.writable !== false) {
- $ERROR('Expected desc2.writable === false, actually ' + desc2.writable);
+ $ERROR('Expected desc2.writable === false, actually ' + desc2.writable);
}
-
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-c-1.js b/test/built-ins/Object/freeze/15.2.3.9-2-c-1.js
index 12bd46769..ea4ad70ea 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-c-1.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-c-1.js
@@ -13,10 +13,10 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: 10,
- writable: false,
- enumerable: true,
- configurable: true
+ value: 10,
+ writable: false,
+ enumerable: true,
+ configurable: true
});
Object.freeze(obj);
@@ -24,10 +24,10 @@ Object.freeze(obj);
var desc = Object.getOwnPropertyDescriptor(obj, "foo");
if (desc.configurable !== false) {
- $ERROR("Expected desc.configurable to be false, actually " + desc.configurable);
+ $ERROR("Expected desc.configurable to be false, actually " + desc.configurable);
}
if (desc.writable !== false) {
- $ERROR("Expected desc.writable to be false, actually " + desc.writable);
+ $ERROR("Expected desc.writable to be false, actually " + desc.writable);
}
verifyEqualTo(obj, "foo", 10);
@@ -37,4 +37,3 @@ verifyNotWritable(obj, "foo");
verifyEnumerable(obj, "foo");
verifyNotConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-c-2.js b/test/built-ins/Object/freeze/15.2.3.9-2-c-2.js
index e40f69a8d..59bdbad51 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-c-2.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-c-2.js
@@ -13,19 +13,20 @@ includes: [propertyHelper.js]
var obj = {};
function get_func() {
- return 10;
+ return 10;
}
var set_funcCalled = false;
+
function set_func() {
- set_funcCalled = true;
+ set_funcCalled = true;
}
Object.defineProperty(obj, "foo", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
});
Object.freeze(obj);
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-c-3.js b/test/built-ins/Object/freeze/15.2.3.9-2-c-3.js
index 06f74d5b6..5f0d7c1d2 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-c-3.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-c-3.js
@@ -14,25 +14,25 @@ var obj = {};
var resultSetFun = false;
Object.defineProperty(obj, "foo1", {
- value: 10,
- writable: false,
- enumerable: true,
- configurable: true
+ value: 10,
+ writable: false,
+ enumerable: true,
+ configurable: true
});
function get_func() {
- return 10;
+ return 10;
}
function set_func() {
- resultSetFun = true;
+ resultSetFun = true;
}
Object.defineProperty(obj, "foo2", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
});
Object.freeze(obj);
@@ -42,21 +42,21 @@ verifyEqualTo(obj, "foo2", 10);
obj.foo2 = 12;
if (!resultSetFun) {
- $ERROR('Expected obj["foo2"] set() to be called, but was not.');
+ $ERROR('Expected obj["foo2"] set() to be called, but was not.');
}
if (!isEnumerable(obj, "foo2")) {
- $ERROR('Expected obj["foo2"] to be enumerable.');
+ $ERROR('Expected obj["foo2"] to be enumerable.');
}
var desc1 = Object.getOwnPropertyDescriptor(obj, "foo1");
if (desc1.configurable || desc1.writable) {
- $ERROR('Expected obj["foo1"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc1));
+ $ERROR('Expected obj["foo1"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc1));
}
var desc2 = Object.getOwnPropertyDescriptor(obj, "foo2");
if (desc2.configurable || desc2.writable) {
- $ERROR('Expected obj["foo2"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc2));
+ $ERROR('Expected obj["foo2"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc2));
}
verifyEqualTo(obj, "foo1", 10);
@@ -66,4 +66,3 @@ verifyNotWritable(obj, "foo1");
verifyEnumerable(obj, "foo1");
verifyNotConfigurable(obj, "foo1");
-
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-c-4.js b/test/built-ins/Object/freeze/15.2.3.9-2-c-4.js
index 53cfacb65..6723c16f0 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-c-4.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-c-4.js
@@ -13,25 +13,25 @@ var obj = {};
var resultSetFun = false;
Object.defineProperty(obj, "foo1", {
- value: 10,
- writable: false,
- enumerable: true,
- configurable: false
+ value: 10,
+ writable: false,
+ enumerable: true,
+ configurable: false
});
function get_func() {
- return 10;
+ return 10;
}
function set_func() {
- resultSetFun = true;
+ resultSetFun = true;
}
Object.defineProperty(obj, "foo2", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
});
Object.freeze(obj);
@@ -42,19 +42,19 @@ verifyNotConfigurable(obj, "foo2");
obj.foo2 = 12;
if (!resultSetFun) {
- $ERROR('Expected obj["foo2"] set() to be called, but was not.');
+ $ERROR('Expected obj["foo2"] set() to be called, but was not.');
}
verifyEnumerable(obj, "foo2");
var desc1 = Object.getOwnPropertyDescriptor(obj, "foo1");
if (desc1.configurable || desc1.writable) {
- $ERROR('Expected obj["foo1"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc1));
+ $ERROR('Expected obj["foo1"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc1));
}
var desc2 = Object.getOwnPropertyDescriptor(obj, "foo2");
if (desc2.configurable || desc2.writable) {
- $ERROR('Expected obj["foo2"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc2));
+ $ERROR('Expected obj["foo2"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc2));
}
verifyEqualTo(obj, "foo1", 10);
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-1.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-1.js
index 5a7b953d7..08e133137 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-d-1.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-1.js
@@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-1
description: Object.freeze - 'O' is a Function object
---*/
- var funObj = function () { };
+var funObj = function() {};
- Object.freeze(funObj);
+Object.freeze(funObj);
assert(Object.isFrozen(funObj), 'Object.isFrozen(funObj) !== true');
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-2.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-2.js
index 00b492ac8..4476444b0 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-d-2.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-2.js
@@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-2
description: Object.freeze - 'O' is an Array object
---*/
- var arrObj = [0, 1];
+var arrObj = [0, 1];
- Object.freeze(arrObj);
+Object.freeze(arrObj);
assert(Object.isFrozen(arrObj), 'Object.isFrozen(arrObj) !== true');
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-3.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-3.js
index 0abb0a7ee..e361b904f 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-d-3.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-3.js
@@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-3
description: Object.freeze - 'O' is a String object
---*/
- var strObj = new String("a");
+var strObj = new String("a");
- Object.freeze(strObj);
+Object.freeze(strObj);
assert(Object.isFrozen(strObj), 'Object.isFrozen(strObj) !== true');
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-4.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-4.js
index 02994757c..160f13969 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-d-4.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-4.js
@@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-4
description: Object.freeze - 'O' is a Boolean object
---*/
- var boolObj = new Boolean(false);
+var boolObj = new Boolean(false);
- Object.freeze(boolObj);
+Object.freeze(boolObj);
assert(Object.isFrozen(boolObj), 'Object.isFrozen(boolObj) !== true');
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-5.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-5.js
index 3b22cfa10..bd55c8c7e 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-d-5.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-5.js
@@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-5
description: Object.freeze - 'O' is a Number object
---*/
- var numObj = new Number(3);
+var numObj = new Number(3);
- Object.freeze(numObj);
+Object.freeze(numObj);
assert(Object.isFrozen(numObj), 'Object.isFrozen(numObj) !== true');
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-6.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-6.js
index f07460a8c..1b82d6561 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-d-6.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-6.js
@@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-6
description: Object.freeze - 'O' is a Date object
---*/
- var dateObj = new Date();
+var dateObj = new Date();
- Object.freeze(dateObj);
+Object.freeze(dateObj);
assert(Object.isFrozen(dateObj), 'Object.isFrozen(dateObj) !== true');
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-7.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-7.js
index b855a071c..d8245d903 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-d-7.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-7.js
@@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-7
description: Object.freeze - 'O' is a RegExp object
---*/
- var regObj = new RegExp();
+var regObj = new RegExp();
- Object.freeze(regObj);
+Object.freeze(regObj);
assert(Object.isFrozen(regObj), 'Object.isFrozen(regObj) !== true');
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-8.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-8.js
index 34e2648c4..7afbbd574 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-d-8.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-8.js
@@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-8
description: Object.freeze - 'O' is an Error object
---*/
- var errObj = new SyntaxError();
+var errObj = new SyntaxError();
- Object.freeze(errObj);
+Object.freeze(errObj);
assert(Object.isFrozen(errObj), 'Object.isFrozen(errObj) !== true');
diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-9.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-9.js
index 877a8ba88..2779fd7e8 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-2-d-9.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-9.js
@@ -6,8 +6,10 @@ es5id: 15.2.3.9-2-d-9
description: Object.freeze - 'O' is the Arguments object
---*/
- var argObj = (function () { return arguments; } ());
+var argObj = (function() {
+ return arguments;
+}());
- Object.freeze(argObj);
+Object.freeze(argObj);
assert(Object.isFrozen(argObj), 'Object.isFrozen(argObj) !== true');
diff --git a/test/built-ins/Object/freeze/15.2.3.9-3-1.js b/test/built-ins/Object/freeze/15.2.3.9-3-1.js
index be171a5d4..64a970518 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-3-1.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-3-1.js
@@ -6,7 +6,7 @@ es5id: 15.2.3.9-3-1
description: Object.freeze - returned object is not extensible
---*/
- var obj = {};
- Object.freeze(obj);
+var obj = {};
+Object.freeze(obj);
assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)');
diff --git a/test/built-ins/Object/freeze/15.2.3.9-4-1.js b/test/built-ins/Object/freeze/15.2.3.9-4-1.js
index 68169779a..dabf74a65 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-4-1.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-4-1.js
@@ -6,12 +6,12 @@ es5id: 15.2.3.9-4-1
description: Object.freeze - 'O' is sealed already
---*/
- var obj = {};
+var obj = {};
- obj.foo = 10; // default value of attributes: writable: true, enumerable: true
+obj.foo = 10; // default value of attributes: writable: true, enumerable: true
- Object.seal(obj);
+Object.seal(obj);
- Object.freeze(obj);
+Object.freeze(obj);
assert(Object.isFrozen(obj), 'Object.isFrozen(obj) !== true');
diff --git a/test/built-ins/Object/freeze/15.2.3.9-4-2.js b/test/built-ins/Object/freeze/15.2.3.9-4-2.js
index 1dd1d3350..3bf475a59 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-4-2.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-4-2.js
@@ -6,12 +6,12 @@ es5id: 15.2.3.9-4-2
description: Object.freeze - 'O' is frozen already
---*/
- var obj = {};
+var obj = {};
- obj.foo = 10; // default value of attributes: writable: true, enumerable: true
+obj.foo = 10; // default value of attributes: writable: true, enumerable: true
- Object.freeze(obj);
+Object.freeze(obj);
- Object.freeze(obj);
+Object.freeze(obj);
assert(Object.isFrozen(obj), 'Object.isFrozen(obj) !== true');
diff --git a/test/built-ins/Object/freeze/15.2.3.9-4-3.js b/test/built-ins/Object/freeze/15.2.3.9-4-3.js
index 4e3623cac..8c4098a1f 100644
--- a/test/built-ins/Object/freeze/15.2.3.9-4-3.js
+++ b/test/built-ins/Object/freeze/15.2.3.9-4-3.js
@@ -6,12 +6,12 @@ es5id: 15.2.3.9-4-3
description: Object.freeze - the extensions of 'O' is prevented already
---*/
- var obj = {};
+var obj = {};
- obj.foo = 10; // default value of attributes: writable: true, enumerable: true
+obj.foo = 10; // default value of attributes: writable: true, enumerable: true
- Object.preventExtensions(obj);
+Object.preventExtensions(obj);
- Object.freeze(obj);
+Object.freeze(obj);
assert(Object.isFrozen(obj), 'Object.isFrozen(obj) !== true');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-1.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-1.js
index bc63911fa..06bd2366a 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-1.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-1.js
@@ -10,5 +10,5 @@ description: >
assert.throws(TypeError, function() {
- Object.getOwnPropertyDescriptor(undefined, "foo");
+ Object.getOwnPropertyDescriptor(undefined, "foo");
});
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-2.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-2.js
index 09b858714..b342f2573 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-2.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-2.js
@@ -10,5 +10,5 @@ description: >
assert.throws(TypeError, function() {
- Object.getOwnPropertyDescriptor(null, "foo");
+ Object.getOwnPropertyDescriptor(null, "foo");
});
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-3.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-3.js
index 580a6811b..c964e63f8 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-3.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-3.js
@@ -8,4 +8,4 @@ description: >
first param is a boolean
---*/
- Object.getOwnPropertyDescriptor(true, "foo");
+Object.getOwnPropertyDescriptor(true, "foo");
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-4.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-4.js
index f11a5206e..fd890bfbb 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-4.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-4.js
@@ -8,4 +8,4 @@ description: >
first param is a number
---*/
- Object.getOwnPropertyDescriptor(-2, "foo");
+Object.getOwnPropertyDescriptor(-2, "foo");
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1.js
index b2713da64..ce7d31d50 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1.js
@@ -8,4 +8,4 @@ description: >
of first param is not Object
---*/
- Object.getOwnPropertyDescriptor(0, "foo");
+Object.getOwnPropertyDescriptor(0, "foo");
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-1.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-1.js
index 579f005bf..dc5742fb7 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-1.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-1.js
@@ -8,7 +8,7 @@ description: >
property name
---*/
- var o = {};
- var desc = Object.getOwnPropertyDescriptor(o, undefined);
+var o = {};
+var desc = Object.getOwnPropertyDescriptor(o, undefined);
assert.sameValue(desc, undefined, 'desc');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-10.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-10.js
index 51c962ec8..93cd1929d 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-10.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-10.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is -0)
---*/
- var obj = { "0": 1 };
+var obj = {
+ "0": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, -0);
+var desc = Object.getOwnPropertyDescriptor(obj, -0);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-11.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-11.js
index 6096a9edd..f21d393e1 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-11.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-11.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is positive number)
---*/
- var obj = { "30": 1 };
+var obj = {
+ "30": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, 30);
+var desc = Object.getOwnPropertyDescriptor(obj, 30);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-12.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-12.js
index dd07bbf9d..75f4f8c8b 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-12.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-12.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is negative number)
---*/
- var obj = { "-20": 1 };
+var obj = {
+ "-20": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, -20);
+var desc = Object.getOwnPropertyDescriptor(obj, -20);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-13.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-13.js
index aaf67dc7e..aa55b35d8 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-13.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-13.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is Infinity)
---*/
- var obj = { "Infinity": 1 };
+var obj = {
+ "Infinity": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, Infinity);
+var desc = Object.getOwnPropertyDescriptor(obj, Infinity);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-14.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-14.js
index 4ec76de3f..a41bb95af 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-14.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-14.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is +Infinity)
---*/
- var obj = { "Infinity": 1 };
+var obj = {
+ "Infinity": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, +Infinity);
+var desc = Object.getOwnPropertyDescriptor(obj, +Infinity);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-15.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-15.js
index 5550e02a1..dd9c09a85 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-15.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-15.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is -Infinity)
---*/
- var obj = { "-Infinity": 1 };
+var obj = {
+ "-Infinity": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, -Infinity);
+var desc = Object.getOwnPropertyDescriptor(obj, -Infinity);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-16.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-16.js
index 9806a60dc..785f6861a 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-16.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-16.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is 1(following 20 zeros))
---*/
- var obj = { "100000000000000000000": 1 };
+var obj = {
+ "100000000000000000000": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, 100000000000000000000);
+var desc = Object.getOwnPropertyDescriptor(obj, 100000000000000000000);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-17.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-17.js
index e665e5f7b..a3c9d6f18 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-17.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-17.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is 1(following 21 zeros))
---*/
- var obj = { "1e+21": 1 };
+var obj = {
+ "1e+21": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, 1000000000000000000000);
+var desc = Object.getOwnPropertyDescriptor(obj, 1000000000000000000000);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-18.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-18.js
index 52629a60e..2ef0990de 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-18.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-18.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is 1(following 22 zeros))
---*/
- var obj = { "1e+22": 1 };
+var obj = {
+ "1e+22": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, 10000000000000000000000);
+var desc = Object.getOwnPropertyDescriptor(obj, 10000000000000000000000);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-19.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-19.js
index 2efc16d3a..fb0f4d6db 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-19.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-19.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is 1e+20)
---*/
- var obj = { "100000000000000000000": 1 };
+var obj = {
+ "100000000000000000000": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, 1e+20);
+var desc = Object.getOwnPropertyDescriptor(obj, 1e+20);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-2.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-2.js
index ec8e54687..df6c5fdcb 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-2.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-2.js
@@ -8,7 +8,7 @@ description: >
property name
---*/
- var o = {};
- var desc = Object.getOwnPropertyDescriptor(o, null);
+var o = {};
+var desc = Object.getOwnPropertyDescriptor(o, null);
assert.sameValue(desc, undefined, 'desc');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-20.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-20.js
index b2cc6480b..649393d82 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-20.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-20.js
@@ -8,8 +8,10 @@ description: >
converts to string (value is 1e+21)
---*/
- var obj = { "1e+21": 1 };
+var obj = {
+ "1e+21": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, 1e+21);
+var desc = Object.getOwnPropertyDescriptor(obj, 1e+21);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-21.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-21.js
index a11547398..d56079fe2 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-21.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-21.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is 1e+22)
---*/
- var obj = { "1e+22": 1 };
+var obj = {
+ "1e+22": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, 1e+22);
+var desc = Object.getOwnPropertyDescriptor(obj, 1e+22);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-22.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-22.js
index 80cbf6f4e..b9dd09417 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-22.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-22.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is 0.000001)
---*/
- var obj = { "0.000001": 1 };
+var obj = {
+ "0.000001": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, 0.000001);
+var desc = Object.getOwnPropertyDescriptor(obj, 0.000001);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-23.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-23.js
index 2398ebc57..27f12e818 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-23.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-23.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is 0.0000001)
---*/
- var obj = { "1e-7": 1 };
+var obj = {
+ "1e-7": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, 0.0000001);
+var desc = Object.getOwnPropertyDescriptor(obj, 0.0000001);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-24.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-24.js
index b3cf0bb3c..4cef9d9ea 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-24.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-24.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is 0.00000001)
---*/
- var obj = { "1e-8": 1 };
+var obj = {
+ "1e-8": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, 0.00000001);
+var desc = Object.getOwnPropertyDescriptor(obj, 0.00000001);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-25.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-25.js
index cab2b57b4..e4aac303b 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-25.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-25.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is 1e-7)
---*/
- var obj = { "1e-7": 1 };
+var obj = {
+ "1e-7": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, 1e-7);
+var desc = Object.getOwnPropertyDescriptor(obj, 1e-7);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-26.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-26.js
index 2b096d817..b7fdd5710 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-26.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-26.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is 1e-6)
---*/
- var obj = { "0.000001": 1 };
+var obj = {
+ "0.000001": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, 1e-6);
+var desc = Object.getOwnPropertyDescriptor(obj, 1e-6);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-27.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-27.js
index 9cda3a078..4036580a7 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-27.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-27.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is 1e-5)
---*/
- var obj = { "0.00001": 1 };
+var obj = {
+ "0.00001": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, 1e-5);
+var desc = Object.getOwnPropertyDescriptor(obj, 1e-5);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-28.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-28.js
index 907ef5941..de8d35cbc 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-28.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-28.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is 123)
---*/
- var obj = { "123": 1 };
+var obj = {
+ "123": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, 123);
+var desc = Object.getOwnPropertyDescriptor(obj, 123);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-29.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-29.js
index 345059589..1ab3f7e78 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-29.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-29.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is 123.456)
---*/
- var obj = { "123.456": 1 };
+var obj = {
+ "123.456": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, 123.456);
+var desc = Object.getOwnPropertyDescriptor(obj, 123.456);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-3.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-3.js
index 0d6b39044..890f7e161 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-3.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-3.js
@@ -6,10 +6,12 @@ es5id: 15.2.3.3-2-3
description: Object.getOwnPropertyDescriptor - argument 'P' is undefined
---*/
- var obj = { "undefined": 1 };
+var obj = {
+ "undefined": 1
+};
- var desc1 = Object.getOwnPropertyDescriptor(obj, undefined);
- var desc2 = Object.getOwnPropertyDescriptor(obj, "undefined");
+var desc1 = Object.getOwnPropertyDescriptor(obj, undefined);
+var desc2 = Object.getOwnPropertyDescriptor(obj, "undefined");
assert.sameValue(desc1.value, 1, 'desc1.value');
assert.sameValue(desc2.value, 1, 'desc2.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-30.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-30.js
index 765ffb584..399b98b97 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-30.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-30.js
@@ -8,9 +8,11 @@ description: >
converts to a string (value is 100000000000000000000.123)
---*/
- var obj = { "100000000000000000000": 1 };
+var obj = {
+ "100000000000000000000": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, 100000000000000000000.123);
+var desc = Object.getOwnPropertyDescriptor(obj, 100000000000000000000.123);
assert(typeof desc !== "undefined", 'typeof desc !== "undefined" !== true');
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-31.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-31.js
index 6012c8bc1..038d7c37a 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-31.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-31.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is 123.1234567)
---*/
- var obj = { "123.1234567": 1 };
+var obj = {
+ "123.1234567": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, 123.1234567);
+var desc = Object.getOwnPropertyDescriptor(obj, 123.1234567);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-32.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-32.js
index e3769e7bd..dbda5e591 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-32.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-32.js
@@ -8,8 +8,10 @@ description: >
empty string
---*/
- var obj = { "": 1 };
+var obj = {
+ "": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "");
+var desc = Object.getOwnPropertyDescriptor(obj, "");
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-33.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-33.js
index 15f3eb2ae..70e270e0f 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-33.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-33.js
@@ -8,8 +8,10 @@ description: >
string 'AB \cd'
---*/
- var obj = { "AB\n\\cd": 1 };
+var obj = {
+ "AB\n\\cd": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "AB\n\\cd");
+var desc = Object.getOwnPropertyDescriptor(obj, "AB\n\\cd");
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-34.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-34.js
index e6eb6681e..ee9bab0ba 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-34.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-34.js
@@ -8,8 +8,10 @@ description: >
string 'undefined'
---*/
- var obj = { "undefined": 1 };
+var obj = {
+ "undefined": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "undefined");
+var desc = Object.getOwnPropertyDescriptor(obj, "undefined");
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-35.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-35.js
index d0de7e71e..dd19c246c 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-35.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-35.js
@@ -8,8 +8,10 @@ description: >
string 'null'
---*/
- var obj = { "null": 1 };
+var obj = {
+ "null": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "null");
+var desc = Object.getOwnPropertyDescriptor(obj, "null");
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-36.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-36.js
index e8fa1a164..73a1dec32 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-36.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-36.js
@@ -8,8 +8,10 @@ description: >
string '123���¦�cd'
---*/
- var obj = { "123���¦�cd": 1 };
+var obj = {
+ "123���¦�cd": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "123���¦�cd");
+var desc = Object.getOwnPropertyDescriptor(obj, "123���¦�cd");
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-37.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-37.js
index 8fe16690b..13294c6af 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-37.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-37.js
@@ -8,8 +8,10 @@ description: >
string '1'
---*/
- var obj = { "1": 1 };
+var obj = {
+ "1": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, 1);
+var desc = Object.getOwnPropertyDescriptor(obj, 1);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-38.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-38.js
index 6d3ae0135..2c6dabd18 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-38.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-38.js
@@ -8,8 +8,10 @@ description: >
converts to a string
---*/
- var obj = { "1": 1 };
+var obj = {
+ "1": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, [1]);
+var desc = Object.getOwnPropertyDescriptor(obj, [1]);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-39.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-39.js
index 92c9d4f62..f1ee178ea 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-39.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-39.js
@@ -8,8 +8,10 @@ description: >
that converts to a string
---*/
- var obj = { "Hello": 1 };
+var obj = {
+ "Hello": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, new String("Hello"));
+var desc = Object.getOwnPropertyDescriptor(obj, new String("Hello"));
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-4.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-4.js
index 9cdca680f..37174cc8b 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-4.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-4.js
@@ -8,8 +8,10 @@ description: >
converts to string 'null'
---*/
- var obj = { "null": 1 };
+var obj = {
+ "null": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, null);
+var desc = Object.getOwnPropertyDescriptor(obj, null);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-40.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-40.js
index d81050692..d83d4dd44 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-40.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-40.js
@@ -8,8 +8,10 @@ description: >
that converts to a string
---*/
- var obj = { "true": 1 };
+var obj = {
+ "true": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, new Boolean(true));
+var desc = Object.getOwnPropertyDescriptor(obj, new Boolean(true));
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-41.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-41.js
index 88ab0b4c4..fdf304e46 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-41.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-41.js
@@ -8,8 +8,10 @@ description: >
that converts to a string
---*/
- var obj = { "123": 1 };
+var obj = {
+ "123": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, new Number(123));
+var desc = Object.getOwnPropertyDescriptor(obj, new Number(123));
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-42.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-42.js
index ecc16066c..645b79668 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-42.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-42.js
@@ -8,14 +8,16 @@ description: >
has an own toString method
---*/
- var obj = { "abc": 1 };
+var obj = {
+ "abc": 1
+};
- var ownProp = {
- toString: function () {
- return "abc";
- }
- };
+var ownProp = {
+ toString: function() {
+ return "abc";
+ }
+};
- var desc = Object.getOwnPropertyDescriptor(obj, ownProp);
+var desc = Object.getOwnPropertyDescriptor(obj, ownProp);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-43.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-43.js
index fbfb42f51..782eff3ec 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-43.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-43.js
@@ -8,14 +8,17 @@ description: >
has an own valueOf method
---*/
- var obj = { "[object Object]": 1, "abc" : 2 };
+var obj = {
+ "[object Object]": 1,
+ "abc": 2
+};
- var ownProp = {
- valueOf: function () {
- return "abc";
- }
- };
+var ownProp = {
+ valueOf: function() {
+ return "abc";
+ }
+};
- var desc = Object.getOwnPropertyDescriptor(obj, ownProp);
+var desc = Object.getOwnPropertyDescriptor(obj, ownProp);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-44.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-44.js
index 115f34333..5ba605c21 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-44.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-44.js
@@ -9,22 +9,24 @@ description: >
method that returns a primitive value
---*/
- var obj = { "abc": 1 };
- var valueOfAccessed = false;
- var toStringAccessed = false;
+var obj = {
+ "abc": 1
+};
+var valueOfAccessed = false;
+var toStringAccessed = false;
- var ownProp = {
- toString: function () {
- toStringAccessed = true;
- return {};
- },
- valueOf: function () {
- valueOfAccessed = true;
- return "abc";
- }
- };
+var ownProp = {
+ toString: function() {
+ toStringAccessed = true;
+ return {};
+ },
+ valueOf: function() {
+ valueOfAccessed = true;
+ return "abc";
+ }
+};
- var desc = Object.getOwnPropertyDescriptor(obj, ownProp);
+var desc = Object.getOwnPropertyDescriptor(obj, ownProp);
assert.sameValue(desc.value, 1, 'desc.value');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-45.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-45.js
index aa318dc2f..1df1af980 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-45.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-45.js
@@ -8,20 +8,23 @@ description: >
has an own toString and valueOf method
---*/
- var obj = { "bbq": 1, "abc": 2 };
- var valueOfAccessed = false;
+var obj = {
+ "bbq": 1,
+ "abc": 2
+};
+var valueOfAccessed = false;
- var ownProp = {
- toString: function () {
- return "bbq";
- },
- valueOf: function () {
- valueOfAccessed = true;
- return "abc";
- }
- };
+var ownProp = {
+ toString: function() {
+ return "bbq";
+ },
+ valueOf: function() {
+ valueOfAccessed = true;
+ return "abc";
+ }
+};
- var desc = Object.getOwnPropertyDescriptor(obj, ownProp);
+var desc = Object.getOwnPropertyDescriptor(obj, ownProp);
assert.sameValue(desc.value, 1, 'desc.value');
assert.sameValue(valueOfAccessed, false, 'valueOfAccessed');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-46.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-46.js
index 4527a76d3..9c1e96bb6 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-46.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-46.js
@@ -9,22 +9,24 @@ description: >
return primitive value
---*/
- var obj = { "1": 1 };
- var toStringAccessed = false;
- var valueOfAccessed = false;
+var obj = {
+ "1": 1
+};
+var toStringAccessed = false;
+var valueOfAccessed = false;
- var ownProp = {
- toString: function () {
- toStringAccessed = true;
- return [1];
- },
- valueOf: function () {
- valueOfAccessed = true;
- return [1];
- }
- };
+var ownProp = {
+ toString: function() {
+ toStringAccessed = true;
+ return [1];
+ },
+ valueOf: function() {
+ valueOfAccessed = true;
+ return [1];
+ }
+};
assert.throws(TypeError, function() {
- Object.getOwnPropertyDescriptor(obj, ownProp);
+ Object.getOwnPropertyDescriptor(obj, ownProp);
});
assert(toStringAccessed, 'toStringAccessed !== true');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-47.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-47.js
index f07c6f385..cd99194fd 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-47.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-47.js
@@ -9,25 +9,28 @@ description: >
methods
---*/
- var proto = {};
- var valueOfAccessed = false;
- var toStringAccessed = false;
+var proto = {};
+var valueOfAccessed = false;
+var toStringAccessed = false;
- proto.toString = function () {
- toStringAccessed = true;
- return "test";
- };
+proto.toString = function() {
+ toStringAccessed = true;
+ return "test";
+};
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var child = new Con();
- child.valueOf = function () {
- valueOfAccessed = true;
- return "10";
- };
- var obj = { "10": "length1", "test": "length2" };
- var desc = Object.getOwnPropertyDescriptor(obj, child);
+var child = new Con();
+child.valueOf = function() {
+ valueOfAccessed = true;
+ return "10";
+};
+var obj = {
+ "10": "length1",
+ "test": "length2"
+};
+var desc = Object.getOwnPropertyDescriptor(obj, child);
assert.sameValue(desc.value, "length2", 'desc.value');
assert(toStringAccessed, 'toStringAccessed !== true');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-5.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-5.js
index 5a332dfaa..5ab62d5a6 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-5.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-5.js
@@ -8,8 +8,10 @@ description: >
value is false
---*/
- var obj = { "false": 1 };
+var obj = {
+ "false": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, false);
+var desc = Object.getOwnPropertyDescriptor(obj, false);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-6.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-6.js
index 66f9b1dd6..f1f764c8e 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-6.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-6.js
@@ -8,8 +8,10 @@ description: >
value is true
---*/
- var obj = { "true": 1 };
+var obj = {
+ "true": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, true);
+var desc = Object.getOwnPropertyDescriptor(obj, true);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-7.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-7.js
index 5077f4049..0eb07a4ae 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-7.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-7.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is NaN)
---*/
- var obj = { "NaN": 1 };
+var obj = {
+ "NaN": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, NaN);
+var desc = Object.getOwnPropertyDescriptor(obj, NaN);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-8.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-8.js
index 0b38934c2..675c6e197 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-8.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-8.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is 0)
---*/
- var obj = { "0": 1 };
+var obj = {
+ "0": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, 0);
+var desc = Object.getOwnPropertyDescriptor(obj, 0);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-9.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-9.js
index 88bd6bda1..ed5f3da40 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-9.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-9.js
@@ -8,8 +8,10 @@ description: >
converts to a string (value is +0)
---*/
- var obj = { "0": 1 };
+var obj = {
+ "0": 1
+};
- var desc = Object.getOwnPropertyDescriptor(obj, +0);
+var desc = Object.getOwnPropertyDescriptor(obj, +0);
assert.sameValue(desc.value, 1, 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-1.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-1.js
index cb66bc4f4..5c1f6f09e 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-1.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-1.js
@@ -6,10 +6,10 @@ es5id: 15.2.3.3-3-1
description: Object.getOwnPropertyDescriptor - 'P' is own data property
---*/
- var obj = {
- property: "ownDataProperty"
- };
+var obj = {
+ property: "ownDataProperty"
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
assert.sameValue(desc.value, "ownDataProperty", 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-10.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-10.js
index 724625909..06586605d 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-10.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-10.js
@@ -6,10 +6,10 @@ es5id: 15.2.3.3-3-10
description: Object.getOwnPropertyDescriptor - 'P' is not an existing property
---*/
- var obj = {
- property: "ownDataProperty"
- };
+var obj = {
+ property: "ownDataProperty"
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "propertyNonExist");
+var desc = Object.getOwnPropertyDescriptor(obj, "propertyNonExist");
assert.sameValue(typeof desc, "undefined", 'typeof desc');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-13.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-13.js
index 2640e9092..da3072f64 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-13.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-13.js
@@ -8,11 +8,11 @@ description: >
which implements its own property get method
---*/
- var arg = (function () {
- return arguments;
- }("ownProperty", true));
+var arg = (function() {
+ return arguments;
+}("ownProperty", true));
- var desc = Object.getOwnPropertyDescriptor(arg, "0");
+var desc = Object.getOwnPropertyDescriptor(arg, "0");
assert.sameValue(desc.value, "ownProperty", 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-14.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-14.js
index d6fce8e89..30e82b197 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-14.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-14.js
@@ -8,8 +8,8 @@ description: >
implements its own property get method
---*/
- var str = new String("123");
+var str = new String("123");
- var desc = Object.getOwnPropertyDescriptor(str, "2");
+var desc = Object.getOwnPropertyDescriptor(str, "2");
assert.sameValue(desc.value, "3", 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-15.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-15.js
index 3f12ff690..c502df6bd 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-15.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-15.js
@@ -8,11 +8,11 @@ description: >
implements its own property get method
---*/
- var obj = function (a, b) {
- return a + b;
- };
- obj[1] = "ownProperty";
+var obj = function(a, b) {
+ return a + b;
+};
+obj[1] = "ownProperty";
- var desc = Object.getOwnPropertyDescriptor(obj, "1");
+var desc = Object.getOwnPropertyDescriptor(obj, "1");
assert.sameValue(desc.value, "ownProperty", 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-2.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-2.js
index 09f56f6de..19d53b257 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-2.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-2.js
@@ -6,15 +6,15 @@ es5id: 15.2.3.3-3-2
description: Object.getOwnPropertyDescriptor - 'P' is inherited data property
---*/
- var proto = {
- property: "inheritedDataProperty"
- };
+var proto = {
+ property: "inheritedDataProperty"
+};
- var Con = function () { };
- Con.ptototype = proto;
+var Con = function() {};
+Con.ptototype = proto;
- var child = new Con();
+var child = new Con();
- var desc = Object.getOwnPropertyDescriptor(child, "property");
+var desc = Object.getOwnPropertyDescriptor(child, "property");
assert.sameValue(typeof desc, "undefined", 'typeof desc');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-3.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-3.js
index 930eccc68..2c9e90de3 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-3.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-3.js
@@ -8,16 +8,16 @@ description: >
overrides an inherited data property
---*/
- var proto = {
- property: "inheritedDataProperty"
- };
+var proto = {
+ property: "inheritedDataProperty"
+};
- var Con = function () { };
- Con.ptototype = proto;
+var Con = function() {};
+Con.ptototype = proto;
- var child = new Con();
- child.property = "ownDataProperty";
+var child = new Con();
+child.property = "ownDataProperty";
- var desc = Object.getOwnPropertyDescriptor(child, "property");
+var desc = Object.getOwnPropertyDescriptor(child, "property");
assert.sameValue(desc.value, "ownDataProperty", 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-4.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-4.js
index a01c60d49..851c54d28 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-4.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-4.js
@@ -8,23 +8,23 @@ description: >
overrides an inherited accessor property
---*/
- var proto = {};
- Object.defineProperty(proto, "property", {
- get: function () {
- return "inheritedDataProperty";
- },
- configurable: true
- });
+var proto = {};
+Object.defineProperty(proto, "property", {
+ get: function() {
+ return "inheritedDataProperty";
+ },
+ configurable: true
+});
- var Con = function () { };
- Con.ptototype = proto;
+var Con = function() {};
+Con.ptototype = proto;
- var child = new Con();
- Object.defineProperty(child, "property", {
- value: "ownDataProperty",
- configurable: true
- });
+var child = new Con();
+Object.defineProperty(child, "property", {
+ value: "ownDataProperty",
+ configurable: true
+});
- var desc = Object.getOwnPropertyDescriptor(child, "property");
+var desc = Object.getOwnPropertyDescriptor(child, "property");
assert.sameValue(desc.value, "ownDataProperty", 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-5.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-5.js
index 0baa73874..01ec7c316 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-5.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-5.js
@@ -6,15 +6,15 @@ es5id: 15.2.3.3-3-5
description: Object.getOwnPropertyDescriptor - 'P' is own accessor property
---*/
- var obj = {};
- var fun = function () {
- return "ownAccessorProperty";
- };
- Object.defineProperty(obj, "property", {
- get: fun,
- configurable: true
- });
+var obj = {};
+var fun = function() {
+ return "ownAccessorProperty";
+};
+Object.defineProperty(obj, "property", {
+ get: fun,
+ configurable: true
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
assert.sameValue(desc.get, fun, 'desc.get');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-6.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-6.js
index c2e77346d..ad3d38a42 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-6.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-6.js
@@ -8,20 +8,20 @@ description: >
property
---*/
- var proto = {};
- var fun = function () {
- return "ownAccessorProperty";
- };
- Object.defineProperty(proto, "property", {
- get: fun,
- configurable: true
- });
+var proto = {};
+var fun = function() {
+ return "ownAccessorProperty";
+};
+Object.defineProperty(proto, "property", {
+ get: fun,
+ configurable: true
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var child = new Con();
+var child = new Con();
- var desc = Object.getOwnPropertyDescriptor(child, "property");
+var desc = Object.getOwnPropertyDescriptor(child, "property");
assert.sameValue(typeof desc, "undefined", 'typeof desc');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-7.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-7.js
index b8caeb90d..564bc9312 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-7.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-7.js
@@ -8,22 +8,22 @@ description: >
that overrides an inherited data property
---*/
- var proto = {
- property: "inheritedDataProperty"
- };
+var proto = {
+ property: "inheritedDataProperty"
+};
- var Con = function () { };
- Con.ptototype = proto;
+var Con = function() {};
+Con.ptototype = proto;
- var child = new Con();
- var fun = function () {
- return "ownAccessorProperty";
- };
- Object.defineProperty(child, "property", {
- get: fun,
- configurable: true
- });
+var child = new Con();
+var fun = function() {
+ return "ownAccessorProperty";
+};
+Object.defineProperty(child, "property", {
+ get: fun,
+ configurable: true
+});
- var desc = Object.getOwnPropertyDescriptor(child, "property");
+var desc = Object.getOwnPropertyDescriptor(child, "property");
assert.sameValue(desc.get, fun, 'desc.get');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-8.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-8.js
index 05e0bcd20..82728fcea 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-8.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-8.js
@@ -8,26 +8,26 @@ description: >
that overrides an inherited accessor property
---*/
- var proto = {};
- Object.defineProperty(proto, "property", {
- get: function () {
- return "inheritedAccessorProperty";
- },
- configurable: true
- });
+var proto = {};
+Object.defineProperty(proto, "property", {
+ get: function() {
+ return "inheritedAccessorProperty";
+ },
+ configurable: true
+});
- var Con = function () { };
- Con.ptototype = proto;
+var Con = function() {};
+Con.ptototype = proto;
- var child = new Con();
- var fun = function () {
- return "ownAccessorProperty";
- };
- Object.defineProperty(child, "property", {
- get: fun,
- configurable: true
- });
+var child = new Con();
+var fun = function() {
+ return "ownAccessorProperty";
+};
+Object.defineProperty(child, "property", {
+ get: fun,
+ configurable: true
+});
- var desc = Object.getOwnPropertyDescriptor(child, "property");
+var desc = Object.getOwnPropertyDescriptor(child, "property");
assert.sameValue(desc.get, fun, 'desc.get');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-9.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-9.js
index c2f364066..e91378c74 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-9.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-9.js
@@ -8,13 +8,13 @@ description: >
without a get function
---*/
- var obj = {};
- var fun = function () { };
- Object.defineProperty(obj, "property", {
- set: fun,
- configurable: true
- });
+var obj = {};
+var fun = function() {};
+Object.defineProperty(obj, "property", {
+ set: fun,
+ configurable: true
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
assert.sameValue(desc.set, fun, 'desc.set');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-1.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-1.js
index 5a6ffb8f2..99b4f77ad 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-1.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-1.js
@@ -8,10 +8,10 @@ description: >
data desc for valid data valued properties
---*/
- var o = {};
- o["foo"] = 101;
+var o = {};
+o["foo"] = 101;
- var desc = Object.getOwnPropertyDescriptor(o, "foo");
+var desc = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(desc.value, 101, 'desc.value');
assert.sameValue(desc.enumerable, true, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-10.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-10.js
index d82974ad9..658afee5d 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-10.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-10.js
@@ -8,8 +8,8 @@ description: >
built-ins (Global.decodeURIComponent)
---*/
- var global = this;
- var desc = Object.getOwnPropertyDescriptor(global, "decodeURIComponent");
+var global = this;
+var desc = Object.getOwnPropertyDescriptor(global, "decodeURIComponent");
assert.sameValue(desc.value, global.decodeURIComponent, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-100.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-100.js
index 78551fec9..44ae3836f 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-100.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-100.js
@@ -8,7 +8,7 @@ description: >
built-ins (Math.atan2)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "atan2");
+var desc = Object.getOwnPropertyDescriptor(Math, "atan2");
assert.sameValue(desc.value, Math.atan2, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-101.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-101.js
index dfdb37d1b..ebbfc0431 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-101.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-101.js
@@ -8,7 +8,7 @@ description: >
built-ins (Math.ceil)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "ceil");
+var desc = Object.getOwnPropertyDescriptor(Math, "ceil");
assert.sameValue(desc.value, Math.ceil, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-102.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-102.js
index 302bc798e..863357238 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-102.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-102.js
@@ -8,7 +8,7 @@ description: >
built-ins (Math.cos)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "cos");
+var desc = Object.getOwnPropertyDescriptor(Math, "cos");
assert.sameValue(desc.value, Math.cos, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-103.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-103.js
index 57806ffe6..5c5bcb827 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-103.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-103.js
@@ -8,7 +8,7 @@ description: >
built-ins (Math.exp)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "exp");
+var desc = Object.getOwnPropertyDescriptor(Math, "exp");
assert.sameValue(desc.value, Math.exp, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-104.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-104.js
index 66f69b55e..c9871c201 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-104.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-104.js
@@ -8,7 +8,7 @@ description: >
built-ins (Math.floor)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "floor");
+var desc = Object.getOwnPropertyDescriptor(Math, "floor");
assert.sameValue(desc.value, Math.floor, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-105.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-105.js
index 5643e8feb..8332ba5c9 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-105.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-105.js
@@ -8,7 +8,7 @@ description: >
built-ins (Math.log)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "log");
+var desc = Object.getOwnPropertyDescriptor(Math, "log");
assert.sameValue(desc.value, Math.log, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-106.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-106.js
index 9db500843..3a66c0f5e 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-106.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-106.js
@@ -8,7 +8,7 @@ description: >
built-ins (Math.max)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "max");
+var desc = Object.getOwnPropertyDescriptor(Math, "max");
assert.sameValue(desc.value, Math.max, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-107.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-107.js
index 9df5a4812..467105fc7 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-107.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-107.js
@@ -8,7 +8,7 @@ description: >
built-ins (Math.min)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "min");
+var desc = Object.getOwnPropertyDescriptor(Math, "min");
assert.sameValue(desc.value, Math.min, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-108.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-108.js
index fe1004579..913855a31 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-108.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-108.js
@@ -8,7 +8,7 @@ description: >
built-ins (Math.pow)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "pow");
+var desc = Object.getOwnPropertyDescriptor(Math, "pow");
assert.sameValue(desc.value, Math.pow, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-109.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-109.js
index 8001e1dd6..a0313c2d4 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-109.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-109.js
@@ -8,7 +8,7 @@ description: >
built-ins (Math.random)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "random");
+var desc = Object.getOwnPropertyDescriptor(Math, "random");
assert.sameValue(desc.value, Math.random, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-11.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-11.js
index 18a41a127..347b69fa6 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-11.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-11.js
@@ -8,8 +8,8 @@ description: >
built-ins (Global.encodeURIComponent)
---*/
- var global = this;
- var desc = Object.getOwnPropertyDescriptor(global, "encodeURIComponent");
+var global = this;
+var desc = Object.getOwnPropertyDescriptor(global, "encodeURIComponent");
assert.sameValue(desc.value, global.encodeURIComponent, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-110.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-110.js
index 8410bc968..3a5449311 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-110.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-110.js
@@ -8,7 +8,7 @@ description: >
built-ins (Math.round)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "round");
+var desc = Object.getOwnPropertyDescriptor(Math, "round");
assert.sameValue(desc.value, Math.round, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-111.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-111.js
index 8d7a89f55..0b31471e4 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-111.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-111.js
@@ -8,7 +8,7 @@ description: >
built-ins (Math.sin)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "sin");
+var desc = Object.getOwnPropertyDescriptor(Math, "sin");
assert.sameValue(desc.value, Math.sin, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-112.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-112.js
index 445f7adb0..3fc765308 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-112.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-112.js
@@ -8,7 +8,7 @@ description: >
built-ins (Math.sqrt)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "sqrt");
+var desc = Object.getOwnPropertyDescriptor(Math, "sqrt");
assert.sameValue(desc.value, Math.sqrt, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-113.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-113.js
index c4d1aecc8..4e2bb6f10 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-113.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-113.js
@@ -8,7 +8,7 @@ description: >
built-ins (Math.tan)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "tan");
+var desc = Object.getOwnPropertyDescriptor(Math, "tan");
assert.sameValue(desc.value, Math.tan, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-114.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-114.js
index e111b361a..282a755b5 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-114.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-114.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.parse)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date, "parse");
+var desc = Object.getOwnPropertyDescriptor(Date, "parse");
assert.sameValue(desc.value, Date.parse, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-115.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-115.js
index 7cc8f4b45..2f4e0059e 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-115.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-115.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.UTC)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date, "UTC");
+var desc = Object.getOwnPropertyDescriptor(Date, "UTC");
assert.sameValue(desc.value, Date.UTC, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-116.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-116.js
index 023c9a9ef..b366d8e21 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-116.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-116.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.constructor)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "constructor");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "constructor");
assert.sameValue(desc.value, Date.prototype.constructor, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-117.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-117.js
index bc009fc36..a68cf618a 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-117.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-117.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.getTime)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getTime");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getTime");
assert.sameValue(desc.value, Date.prototype.getTime, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-118.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-118.js
index 157058626..699ddb6a4 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-118.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-118.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.getTimezoneOffset)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getTimezoneOffset");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getTimezoneOffset");
assert.sameValue(desc.value, Date.prototype.getTimezoneOffset, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-120.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-120.js
index 2915ede2a..b6edce9c3 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-120.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-120.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.getFullYear)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getFullYear");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getFullYear");
assert.sameValue(desc.value, Date.prototype.getFullYear, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-121.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-121.js
index 4bd159bf5..072a3824c 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-121.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-121.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.getMonth)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getMonth");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getMonth");
assert.sameValue(desc.value, Date.prototype.getMonth, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-122.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-122.js
index 6516d8917..ebeca9afc 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-122.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-122.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.getDate)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getDate");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getDate");
assert.sameValue(desc.value, Date.prototype.getDate, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-123.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-123.js
index 421ca744e..281de8f6c 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-123.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-123.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.getDay)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getDay");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getDay");
assert.sameValue(desc.value, Date.prototype.getDay, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-124.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-124.js
index 789e7ba06..5e1a8e725 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-124.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-124.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.getHours)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getHours");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getHours");
assert.sameValue(desc.value, Date.prototype.getHours, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-125.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-125.js
index b6dcb8c6b..69292234f 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-125.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-125.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.getMinutes)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getMinutes");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getMinutes");
assert.sameValue(desc.value, Date.prototype.getMinutes, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-126.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-126.js
index 4d315aca0..119bba91f 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-126.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-126.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.getSeconds)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getSeconds");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getSeconds");
assert.sameValue(desc.value, Date.prototype.getSeconds, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-127.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-127.js
index ec29ff460..32e9a2c36 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-127.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-127.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.getMilliseconds)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getMilliseconds");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getMilliseconds");
assert.sameValue(desc.value, Date.prototype.getMilliseconds, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-128.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-128.js
index 4df71b5a7..c33ec2bb5 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-128.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-128.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.getUTCFullYear)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCFullYear");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCFullYear");
assert.sameValue(desc.value, Date.prototype.getUTCFullYear, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-129.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-129.js
index 00c26597d..d90f9e4ee 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-129.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-129.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.getUTCMonth)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCMonth");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCMonth");
assert.sameValue(desc.value, Date.prototype.getUTCMonth, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-130.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-130.js
index b5ff8f449..487801924 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-130.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-130.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.getUTCDate)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCDate");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCDate");
assert.sameValue(desc.value, Date.prototype.getUTCDate, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-131.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-131.js
index ce2f09bf8..d2303ab38 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-131.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-131.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.getUTCDay)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCDay");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCDay");
assert.sameValue(desc.value, Date.prototype.getUTCDay, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-132.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-132.js
index 5f6d6e805..dec075638 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-132.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-132.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.getUTCHours)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCHours");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCHours");
assert.sameValue(desc.value, Date.prototype.getUTCHours, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-133.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-133.js
index 458a9962a..f2d24056d 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-133.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-133.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.getUTCMinutes)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCMinutes");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCMinutes");
assert.sameValue(desc.value, Date.prototype.getUTCMinutes, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-134.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-134.js
index 0b2198275..96254062b 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-134.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-134.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.getUTCSeconds)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCSeconds");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCSeconds");
assert.sameValue(desc.value, Date.prototype.getUTCSeconds, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-135.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-135.js
index 2859d423c..3f941517e 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-135.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-135.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.getUTCMilliseconds)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCMilliseconds");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCMilliseconds");
assert.sameValue(desc.value, Date.prototype.getUTCMilliseconds, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-136.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-136.js
index 3e8f04704..d2073d8aa 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-136.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-136.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.setTime)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setTime");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setTime");
assert.sameValue(desc.value, Date.prototype.setTime, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-138.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-138.js
index e0346638a..f16b291a8 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-138.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-138.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.setFullYear)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setFullYear");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setFullYear");
assert.sameValue(desc.value, Date.prototype.setFullYear, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-139.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-139.js
index feac0f29d..138ca19db 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-139.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-139.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.setMonth)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setMonth");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setMonth");
assert.sameValue(desc.value, Date.prototype.setMonth, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-14.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-14.js
index 5b2400161..35426608d 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-14.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-14.js
@@ -8,7 +8,7 @@ description: >
built-ins (Object.getPrototypeOf)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "getPrototypeOf");
+var desc = Object.getOwnPropertyDescriptor(Object, "getPrototypeOf");
assert.sameValue(desc.value, Object.getPrototypeOf, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-140.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-140.js
index 9b10d0800..97bf10aba 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-140.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-140.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.setDate)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setDate");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setDate");
assert.sameValue(desc.value, Date.prototype.setDate, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-141.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-141.js
index 0044448d2..0c4dd78ad 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-141.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-141.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.setHours)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setHours");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setHours");
assert.sameValue(desc.value, Date.prototype.setHours, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-142.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-142.js
index fd380809e..6e864a412 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-142.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-142.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.setMinutes)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setMinutes");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setMinutes");
assert.sameValue(desc.value, Date.prototype.setMinutes, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-143.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-143.js
index 81c76f8bd..6f76ec36c 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-143.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-143.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.setSeconds)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setSeconds");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setSeconds");
assert.sameValue(desc.value, Date.prototype.setSeconds, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-144.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-144.js
index 211b12fd7..2470827df 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-144.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-144.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.setMilliseconds)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setMilliseconds");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setMilliseconds");
assert.sameValue(desc.value, Date.prototype.setMilliseconds, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-145.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-145.js
index 72a228dc0..340b107b4 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-145.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-145.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.setUTCFullYear)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCFullYear");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCFullYear");
assert.sameValue(desc.value, Date.prototype.setUTCFullYear, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-146.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-146.js
index 6c0fd95aa..7169eb0f9 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-146.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-146.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.setUTCMonth)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCMonth");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCMonth");
assert.sameValue(desc.value, Date.prototype.setUTCMonth, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-147.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-147.js
index 91dd4ffa9..d81d4d854 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-147.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-147.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.setUTCDate)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCDate");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCDate");
assert.sameValue(desc.value, Date.prototype.setUTCDate, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-148.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-148.js
index 7ae252610..c05885e1b 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-148.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-148.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.setUTCHours)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCHours");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCHours");
assert.sameValue(desc.value, Date.prototype.setUTCHours, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-149.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-149.js
index 122df12b7..c5a00e480 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-149.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-149.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.setUTCMinutes)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCMinutes");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCMinutes");
assert.sameValue(desc.value, Date.prototype.setUTCMinutes, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-15.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-15.js
index 75f7919ce..216e06a4d 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-15.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-15.js
@@ -8,7 +8,7 @@ description: >
built-ins (Object.getOwnPropertyDescriptor)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyDescriptor");
+var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyDescriptor");
assert.sameValue(desc.value, Object.getOwnPropertyDescriptor, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-150.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-150.js
index 68f15d923..9896d210d 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-150.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-150.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.setUTCSeconds)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCSeconds");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCSeconds");
assert.sameValue(desc.value, Date.prototype.setUTCSeconds, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-151.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-151.js
index 3bf72cdb3..fd70e967a 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-151.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-151.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.setUTCMilliseconds)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCMilliseconds");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCMilliseconds");
assert.sameValue(desc.value, Date.prototype.setUTCMilliseconds, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-152.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-152.js
index ac79016a3..daaa37d00 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-152.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-152.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.toLocaleString)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toLocaleString");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toLocaleString");
assert.sameValue(desc.value, Date.prototype.toLocaleString, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-153.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-153.js
index 3676e7f49..78e5c6bce 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-153.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-153.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.toString)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toString");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toString");
assert.sameValue(desc.value, Date.prototype.toString, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-154.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-154.js
index b64b5f214..346a0756e 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-154.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-154.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.toUTCString)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toUTCString");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toUTCString");
assert.sameValue(desc.value, Date.prototype.toUTCString, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-156.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-156.js
index 273256a21..eb997ea64 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-156.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-156.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.toTimeString)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toTimeString");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toTimeString");
assert.sameValue(desc.value, Date.prototype.toTimeString, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-157.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-157.js
index fc30bbdd0..ce9e912a1 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-157.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-157.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.toDateString)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toDateString");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toDateString");
assert.sameValue(desc.value, Date.prototype.toDateString, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-158.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-158.js
index b76953686..4a88b8102 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-158.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-158.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.toLocaleDateString)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toLocaleDateString");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toLocaleDateString");
assert.sameValue(desc.value, Date.prototype.toLocaleDateString, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-159.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-159.js
index 06c70b3b4..ed3050321 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-159.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-159.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.toLocaleTimeString)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toLocaleTimeString");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toLocaleTimeString");
assert.sameValue(desc.value, Date.prototype.toLocaleTimeString, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-16.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-16.js
index 78e8b7f8a..ca3144601 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-16.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-16.js
@@ -8,7 +8,7 @@ description: >
built-ins (Object.getOwnPropertyNames)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyNames");
+var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyNames");
assert.sameValue(desc.value, Object.getOwnPropertyNames, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-160.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-160.js
index 18a6dc058..944934287 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-160.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-160.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.valueOf)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "valueOf");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "valueOf");
assert.sameValue(desc.value, Date.prototype.valueOf, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-161.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-161.js
index 1d3cf47cd..ff105c4e3 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-161.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-161.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.toISOString)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toISOString");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toISOString");
assert.sameValue(desc.value, Date.prototype.toISOString, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-162.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-162.js
index 1bd2da199..c3afb3bd2 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-162.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-162.js
@@ -8,7 +8,7 @@ description: >
built-ins (Date.prototype.toJSON)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toJSON");
+var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toJSON");
assert.sameValue(desc.value, Date.prototype.toJSON, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-163.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-163.js
index 717ba8b69..6d369d11a 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-163.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-163.js
@@ -8,7 +8,7 @@ description: >
built-ins (RegExp.prototype.constructor)
---*/
- var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "constructor");
+var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "constructor");
assert.sameValue(desc.value, RegExp.prototype.constructor, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-165.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-165.js
index 387f8b6b0..4771e8aca 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-165.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-165.js
@@ -8,7 +8,7 @@ description: >
built-ins (RegExp.prototype.exec)
---*/
- var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "exec");
+var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "exec");
assert.sameValue(desc.value, RegExp.prototype.exec, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-166.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-166.js
index adaffc79e..f27755cc6 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-166.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-166.js
@@ -8,7 +8,7 @@ description: >
built-ins (RegExp.prototype.test)
---*/
- var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "test");
+var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "test");
assert.sameValue(desc.value, RegExp.prototype.test, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-167.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-167.js
index 03a417465..a43ddbd1a 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-167.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-167.js
@@ -8,7 +8,7 @@ description: >
built-ins (RegExp.prototype.toString)
---*/
- var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "toString");
+var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "toString");
assert.sameValue(desc.value, RegExp.prototype.toString, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-168.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-168.js
index 90c3efd9a..63d99d5f5 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-168.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-168.js
@@ -8,7 +8,7 @@ description: >
built-ins (Error.prototype.constructor)
---*/
- var desc = Object.getOwnPropertyDescriptor(Error.prototype, "constructor");
+var desc = Object.getOwnPropertyDescriptor(Error.prototype, "constructor");
assert.sameValue(desc.value, Error.prototype.constructor, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-169.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-169.js
index 1e4890e17..63feefb43 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-169.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-169.js
@@ -8,7 +8,7 @@ description: >
built-ins (Error.prototype.toString)
---*/
- var desc = Object.getOwnPropertyDescriptor(Error.prototype, "toString");
+var desc = Object.getOwnPropertyDescriptor(Error.prototype, "toString");
assert.sameValue(desc.value, Error.prototype.toString, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-17.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-17.js
index 1b2e42315..342d1fdef 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-17.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-17.js
@@ -8,7 +8,7 @@ description: >
built-ins (Object.create)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "create");
+var desc = Object.getOwnPropertyDescriptor(Object, "create");
assert.sameValue(desc.value, Object.create, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-170.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-170.js
index 2deebcd6f..57fdc472b 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-170.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-170.js
@@ -8,7 +8,7 @@ description: >
built-ins (EvalError.prototype.constructor)
---*/
- var desc = Object.getOwnPropertyDescriptor(EvalError.prototype, "constructor");
+var desc = Object.getOwnPropertyDescriptor(EvalError.prototype, "constructor");
assert.sameValue(desc.value, EvalError.prototype.constructor, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-171.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-171.js
index f5de8176f..f7e3c19f8 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-171.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-171.js
@@ -8,7 +8,7 @@ description: >
built-ins (RangeError.prototype.constructor)
---*/
- var desc = Object.getOwnPropertyDescriptor(RangeError.prototype, "constructor");
+var desc = Object.getOwnPropertyDescriptor(RangeError.prototype, "constructor");
assert.sameValue(desc.value, RangeError.prototype.constructor, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-172.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-172.js
index e60eb6edc..0c46e234c 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-172.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-172.js
@@ -8,7 +8,7 @@ description: >
built-ins (ReferenceError.prototype.constructor)
---*/
- var desc = Object.getOwnPropertyDescriptor(ReferenceError.prototype, "constructor");
+var desc = Object.getOwnPropertyDescriptor(ReferenceError.prototype, "constructor");
assert.sameValue(desc.value, ReferenceError.prototype.constructor, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-173.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-173.js
index 38702336b..167229a64 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-173.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-173.js
@@ -8,7 +8,7 @@ description: >
built-ins (SyntaxError.prototype.constructor)
---*/
- var desc = Object.getOwnPropertyDescriptor(SyntaxError.prototype, "constructor");
+var desc = Object.getOwnPropertyDescriptor(SyntaxError.prototype, "constructor");
assert.sameValue(desc.value, SyntaxError.prototype.constructor, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-174.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-174.js
index 210e33fdf..d523d25c0 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-174.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-174.js
@@ -8,7 +8,7 @@ description: >
built-ins (TypeError.prototype.constructor)
---*/
- var desc = Object.getOwnPropertyDescriptor(TypeError.prototype, "constructor");
+var desc = Object.getOwnPropertyDescriptor(TypeError.prototype, "constructor");
assert.sameValue(desc.value, TypeError.prototype.constructor, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-175.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-175.js
index e7a59840e..63988f6cd 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-175.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-175.js
@@ -8,7 +8,7 @@ description: >
built-ins (URIError.prototype.constructor)
---*/
- var desc = Object.getOwnPropertyDescriptor(URIError.prototype, "constructor");
+var desc = Object.getOwnPropertyDescriptor(URIError.prototype, "constructor");
assert.sameValue(desc.value, URIError.prototype.constructor, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-176.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-176.js
index 3cac6f215..81a80b963 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-176.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-176.js
@@ -8,7 +8,7 @@ description: >
built-ins (JSON.stringify)
---*/
- var desc = Object.getOwnPropertyDescriptor(JSON, "stringify");
+var desc = Object.getOwnPropertyDescriptor(JSON, "stringify");
assert.sameValue(desc.value, JSON.stringify, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-177.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-177.js
index 52dfbd152..69d4fe2d8 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-177.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-177.js
@@ -8,7 +8,7 @@ description: >
built-ins (JSON.parse)
---*/
- var desc = Object.getOwnPropertyDescriptor(JSON, "parse");
+var desc = Object.getOwnPropertyDescriptor(JSON, "parse");
assert.sameValue(desc.value, JSON.parse, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-178.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-178.js
index 7f5b4903d..84a7f63a9 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-178.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-178.js
@@ -8,8 +8,8 @@ description: >
properties on built-ins (Global.NaN)
---*/
- // in non-strict mode, 'this' is bound to the global object.
- var desc = Object.getOwnPropertyDescriptor(this, "NaN");
+// in non-strict mode, 'this' is bound to the global object.
+var desc = Object.getOwnPropertyDescriptor(this, "NaN");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-179.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-179.js
index 6a38e5f06..77e69b8ce 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-179.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-179.js
@@ -8,8 +8,8 @@ description: >
properties on built-ins (Global.Infinity)
---*/
- // in non-strict mode, 'this' is bound to the global object.
- var desc = Object.getOwnPropertyDescriptor(this, "Infinity");
+// in non-strict mode, 'this' is bound to the global object.
+var desc = Object.getOwnPropertyDescriptor(this, "Infinity");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-18.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-18.js
index d7ced8dab..c97cc2a77 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-18.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-18.js
@@ -8,7 +8,7 @@ description: >
built-ins (Object.defineProperty)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "defineProperty");
+var desc = Object.getOwnPropertyDescriptor(Object, "defineProperty");
assert.sameValue(desc.value, Object.defineProperty, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-180.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-180.js
index 65412185c..757965b98 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-180.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-180.js
@@ -8,8 +8,8 @@ description: >
properties on built-ins (Global.undefined)
---*/
- // in non-strict mode, 'this' is bound to the global object.
- var desc = Object.getOwnPropertyDescriptor(this, "undefined");
+// in non-strict mode, 'this' is bound to the global object.
+var desc = Object.getOwnPropertyDescriptor(this, "undefined");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-182.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-182.js
index 33da0a40b..d82ef21fe 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-182.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-182.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (Object.prototype)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "prototype");
+var desc = Object.getOwnPropertyDescriptor(Object, "prototype");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-183.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-183.js
index 3501500ff..eb4ace4bc 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-183.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-183.js
@@ -8,6 +8,6 @@ description: >
property (arguments_1) on built-in object (Function)
---*/
- var desc = Object.getOwnPropertyDescriptor(Function, "arguments_1");
+var desc = Object.getOwnPropertyDescriptor(Function, "arguments_1");
assert.sameValue(desc, undefined, 'desc');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-184.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-184.js
index 465abc470..db8b5907b 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-184.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-184.js
@@ -8,6 +8,6 @@ description: >
property (caller) on built-in object (Math)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "caller");
+var desc = Object.getOwnPropertyDescriptor(Math, "caller");
assert.sameValue(desc, undefined, 'desc');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-185.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-185.js
index ce028abd7..a3edb4d6d 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-185.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-185.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (Function.prototype)
---*/
- var desc = Object.getOwnPropertyDescriptor(Function, "prototype");
+var desc = Object.getOwnPropertyDescriptor(Function, "prototype");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-186.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-186.js
index 157dc97c7..f03206192 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-186.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-186.js
@@ -8,7 +8,7 @@ description: >
on built-ins (Function.length)
---*/
- var desc = Object.getOwnPropertyDescriptor(Function, "length");
+var desc = Object.getOwnPropertyDescriptor(Function, "length");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-187.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-187.js
index 21c83658f..cb44f5afb 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-187.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-187.js
@@ -8,9 +8,9 @@ description: >
on built-ins (Function (instance).length)
---*/
- var f = Function('return 42;');
+var f = Function('return 42;');
- var desc = Object.getOwnPropertyDescriptor(f, "length");
+var desc = Object.getOwnPropertyDescriptor(f, "length");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-188.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-188.js
index 31a6e9cfb..6e0c6c586 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-188.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-188.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (Function (instance).name)
---*/
- var f = Function('return 42;');
- var desc = Object.getOwnPropertyDescriptor(f, "functionNameHopefullyDoesNotExist");
+var f = Function('return 42;');
+var desc = Object.getOwnPropertyDescriptor(f, "functionNameHopefullyDoesNotExist");
assert.sameValue(desc, undefined, 'desc');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-189.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-189.js
index b7111c0fa..87190a131 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-189.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-189.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (Array.prototype)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array, "prototype");
+var desc = Object.getOwnPropertyDescriptor(Array, "prototype");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-19.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-19.js
index 950f690be..09dc4911d 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-19.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-19.js
@@ -8,7 +8,7 @@ description: >
built-ins (Object.defineProperties)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "defineProperties");
+var desc = Object.getOwnPropertyDescriptor(Object, "defineProperties");
assert.sameValue(desc.value, Object.defineProperties, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-190.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-190.js
index f190508dc..c1ea61453 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-190.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-190.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (String.prototype)
---*/
- var desc = Object.getOwnPropertyDescriptor(String, "prototype");
+var desc = Object.getOwnPropertyDescriptor(String, "prototype");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-191.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-191.js
index 4f351bf89..5a38e0bd6 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-191.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-191.js
@@ -8,7 +8,7 @@ description: >
on built-ins (String.length)
---*/
- var desc = Object.getOwnPropertyDescriptor(String, "length");
+var desc = Object.getOwnPropertyDescriptor(String, "length");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-192.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-192.js
index e20fb56dc..6ab1950b2 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-192.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-192.js
@@ -8,8 +8,8 @@ description: >
properties on built-ins (String (instance).length)
---*/
- var s = new String("abc");
- var desc = Object.getOwnPropertyDescriptor(s, "length");
+var s = new String("abc");
+var desc = Object.getOwnPropertyDescriptor(s, "length");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-193.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-193.js
index b0e4b8e0b..e11dfa836 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-193.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-193.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (Boolean.prototype)
---*/
- var desc = Object.getOwnPropertyDescriptor(Boolean, "prototype");
+var desc = Object.getOwnPropertyDescriptor(Boolean, "prototype");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-194.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-194.js
index 41d92a8bf..6e606a500 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-194.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-194.js
@@ -8,7 +8,7 @@ description: >
on built-ins (Boolean.length)
---*/
- var desc = Object.getOwnPropertyDescriptor(Boolean, "length");
+var desc = Object.getOwnPropertyDescriptor(Boolean, "length");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-195.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-195.js
index 96cca8650..bb4b35d8c 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-195.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-195.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (Number.prototype)
---*/
- var desc = Object.getOwnPropertyDescriptor(Number, "prototype");
+var desc = Object.getOwnPropertyDescriptor(Number, "prototype");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-196.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-196.js
index c1b5a1fbb..15a70904d 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-196.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-196.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (Number.MAX_VALUE)
---*/
- var desc = Object.getOwnPropertyDescriptor(Number, "MAX_VALUE");
+var desc = Object.getOwnPropertyDescriptor(Number, "MAX_VALUE");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-197.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-197.js
index e09636d45..04dd89bdd 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-197.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-197.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (Number.MIN_VALUE)
---*/
- var desc = Object.getOwnPropertyDescriptor(Number, "MIN_VALUE");
+var desc = Object.getOwnPropertyDescriptor(Number, "MIN_VALUE");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-198.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-198.js
index 660e7d41b..f813e407f 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-198.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-198.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (Number.NaN)
---*/
- var desc = Object.getOwnPropertyDescriptor(Number, "NaN");
+var desc = Object.getOwnPropertyDescriptor(Number, "NaN");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-199.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-199.js
index 1f02fbb74..f93608eb6 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-199.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-199.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (Number.NEGATIVE_INFINITY)
---*/
- var desc = Object.getOwnPropertyDescriptor(Number, "NEGATIVE_INFINITY");
+var desc = Object.getOwnPropertyDescriptor(Number, "NEGATIVE_INFINITY");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-2.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-2.js
index 57fbdce5b..351b968d0 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-2.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-2.js
@@ -8,8 +8,8 @@ description: >
properties
---*/
- var o = {};
+var o = {};
- var desc = Object.getOwnPropertyDescriptor(o, "foo");
+var desc = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(desc, undefined, 'desc');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-20.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-20.js
index 1c444266c..c07126696 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-20.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-20.js
@@ -8,7 +8,7 @@ description: >
built-ins (Object.seal)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "seal");
+var desc = Object.getOwnPropertyDescriptor(Object, "seal");
assert.sameValue(desc.value, Object.seal, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-200.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-200.js
index 7cd42f388..38618857a 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-200.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-200.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (Number.POSITIVE_INFINITY)
---*/
- var desc = Object.getOwnPropertyDescriptor(Number, "POSITIVE_INFINITY");
+var desc = Object.getOwnPropertyDescriptor(Number, "POSITIVE_INFINITY");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-201.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-201.js
index 68bafbcb8..178947ac2 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-201.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-201.js
@@ -8,7 +8,7 @@ description: >
on built-ins (Number.length)
---*/
- var desc = Object.getOwnPropertyDescriptor(Number, "length");
+var desc = Object.getOwnPropertyDescriptor(Number, "length");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-202.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-202.js
index 5eb7df674..33fef6d03 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-202.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-202.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (Math.E)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "E");
+var desc = Object.getOwnPropertyDescriptor(Math, "E");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-203.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-203.js
index 2b203feb9..04f964d8e 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-203.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-203.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (Math.LN10)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "LN10");
+var desc = Object.getOwnPropertyDescriptor(Math, "LN10");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-204.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-204.js
index e91ce89ba..d9a515d09 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-204.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-204.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (Math.LN2)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "LN2");
+var desc = Object.getOwnPropertyDescriptor(Math, "LN2");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-205.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-205.js
index 703820573..17fe2a4fa 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-205.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-205.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (Math.LOG2E)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "LOG2E");
+var desc = Object.getOwnPropertyDescriptor(Math, "LOG2E");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-206.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-206.js
index 1025fa7ac..a2bdee661 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-206.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-206.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (Math.LOG10E)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "LOG10E");
+var desc = Object.getOwnPropertyDescriptor(Math, "LOG10E");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-207.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-207.js
index a311883b6..c0576988e 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-207.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-207.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (Math.PI)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "PI");
+var desc = Object.getOwnPropertyDescriptor(Math, "PI");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-208.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-208.js
index 6134a8182..8edc43d25 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-208.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-208.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (Math.SQRT1_2)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "SQRT1_2");
+var desc = Object.getOwnPropertyDescriptor(Math, "SQRT1_2");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-209.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-209.js
index df90c6489..80b7234bb 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-209.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-209.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (Math.SQRT2)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "SQRT2");
+var desc = Object.getOwnPropertyDescriptor(Math, "SQRT2");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-21.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-21.js
index 0c062b3a3..d5aa1bfb5 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-21.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-21.js
@@ -8,7 +8,7 @@ description: >
built-ins (Object.freeze)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "freeze");
+var desc = Object.getOwnPropertyDescriptor(Object, "freeze");
assert.sameValue(desc.value, Object.freeze, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-210.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-210.js
index 57b44134e..557e7ac86 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-210.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-210.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (Date.prototype)
---*/
- var desc = Object.getOwnPropertyDescriptor(Date, "prototype");
+var desc = Object.getOwnPropertyDescriptor(Date, "prototype");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-211.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-211.js
index be1a29328..eb28300aa 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-211.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-211.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (RegExp.prototype)
---*/
- var desc = Object.getOwnPropertyDescriptor(RegExp, "prototype");
+var desc = Object.getOwnPropertyDescriptor(RegExp, "prototype");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-212.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-212.js
index 38c6a0721..4f2745343 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-212.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-212.js
@@ -8,7 +8,7 @@ description: >
accessors on built-ins (RegExp.prototype.source)
---*/
- var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "source");
+var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "source");
assert.sameValue(desc.hasOwnProperty('writable'), false, 'desc.hasOwnProperty("writable")');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-213.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-213.js
index f76fd7801..7e0755d36 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-213.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-213.js
@@ -8,7 +8,7 @@ description: >
accessors on built-ins (RegExp.prototype.global)
---*/
- var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "global");
+var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "global");
assert.sameValue(desc.hasOwnProperty('writable'), false, 'desc.hasOwnProperty("writable")');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-214.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-214.js
index 53ee976e3..2155ea564 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-214.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-214.js
@@ -8,7 +8,7 @@ description: >
accessors on built-ins (RegExp.prototype.ignoreCase)
---*/
- var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "ignoreCase");
+var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "ignoreCase");
assert.sameValue(desc.hasOwnProperty('writable'), false, 'desc.hasOwnProperty("writable")');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-215.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-215.js
index 524d5a940..99ccb2e3c 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-215.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-215.js
@@ -8,7 +8,7 @@ description: >
accessors on built-ins (RegExp.prototype.multiline)
---*/
- var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "multiline");
+var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "multiline");
assert.sameValue(desc.hasOwnProperty('writable'), false, 'desc.hasOwnProperty("writable")');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-216.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-216.js
index d78a100e2..826b53abd 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-216.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-216.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (Error.prototype)
---*/
- var desc = Object.getOwnPropertyDescriptor(Error, "prototype");
+var desc = Object.getOwnPropertyDescriptor(Error, "prototype");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-217.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-217.js
index 96f15d285..09cacdbf2 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-217.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-217.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (EvalError.prototype)
---*/
- var desc = Object.getOwnPropertyDescriptor(EvalError, "prototype");
+var desc = Object.getOwnPropertyDescriptor(EvalError, "prototype");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-218.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-218.js
index 9ee73cee5..ea9d5b7c7 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-218.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-218.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (RangeError.prototype)
---*/
- var desc = Object.getOwnPropertyDescriptor(RangeError, "prototype");
+var desc = Object.getOwnPropertyDescriptor(RangeError, "prototype");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-219.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-219.js
index 3c480f1fe..b8ab7e2a3 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-219.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-219.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (ReferenceError.prototype)
---*/
- var desc = Object.getOwnPropertyDescriptor(ReferenceError, "prototype");
+var desc = Object.getOwnPropertyDescriptor(ReferenceError, "prototype");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-22.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-22.js
index 78ad6671d..00f08b513 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-22.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-22.js
@@ -8,7 +8,7 @@ description: >
built-ins (Object.preventExtensions)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "preventExtensions");
+var desc = Object.getOwnPropertyDescriptor(Object, "preventExtensions");
assert.sameValue(desc.value, Object.preventExtensions, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-220.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-220.js
index 9472c9a6c..ba924ab64 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-220.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-220.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (SyntaxError.prototype)
---*/
- var desc = Object.getOwnPropertyDescriptor(SyntaxError, "prototype");
+var desc = Object.getOwnPropertyDescriptor(SyntaxError, "prototype");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-221.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-221.js
index 77a19e11e..da32c84bb 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-221.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-221.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (TypeError.prototype)
---*/
- var desc = Object.getOwnPropertyDescriptor(TypeError, "prototype");
+var desc = Object.getOwnPropertyDescriptor(TypeError, "prototype");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-222.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-222.js
index 26be6babd..d4655ca9e 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-222.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-222.js
@@ -8,7 +8,7 @@ description: >
properties on built-ins (URIError.prototype)
---*/
- var desc = Object.getOwnPropertyDescriptor(URIError, "prototype");
+var desc = Object.getOwnPropertyDescriptor(URIError, "prototype");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-223.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-223.js
index 14882f661..9124cd3ad 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-223.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-223.js
@@ -8,8 +8,10 @@ description: >
returned object is data property with correct 'value' attribute
---*/
- var obj = { "property": "ownDataProperty" };
+var obj = {
+ "property": "ownDataProperty"
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
assert.sameValue(desc.value, "ownDataProperty", 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-224.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-224.js
index 1c84fe826..f02e8e9e8 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-224.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-224.js
@@ -8,10 +8,12 @@ description: >
returned object is data property with correct 'writable' attribute
---*/
- var obj = { "property": "ownDataProperty" };
+var obj = {
+ "property": "ownDataProperty"
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
- desc.value = "overwriteDataProperty";
+desc.value = "overwriteDataProperty";
assert.sameValue(desc.value, "overwriteDataProperty", 'desc.value');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-225.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-225.js
index a0efcad80..660f3fd56 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-225.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-225.js
@@ -9,15 +9,17 @@ description: >
attribute
---*/
- var obj = { "property": "ownDataProperty" };
+var obj = {
+ "property": "ownDataProperty"
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
- var accessed = false;
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var accessed = false;
- for (var prop in desc) {
- if (prop === "value") {
- accessed = true;
- }
- }
+for (var prop in desc) {
+ if (prop === "value") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-226.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-226.js
index 326e8d419..569f772b8 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-226.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-226.js
@@ -9,14 +9,16 @@ description: >
attribute
---*/
- var obj = { "property": "ownDataProperty" };
+var obj = {
+ "property": "ownDataProperty"
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
- var propDefined = "value" in desc;
+var propDefined = "value" in desc;
- delete desc.value;
- var propDeleted = "value" in desc;
+delete desc.value;
+var propDeleted = "value" in desc;
assert(propDefined, 'propDefined !== true');
assert.sameValue(propDeleted, false, 'propDeleted');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-227.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-227.js
index bb608b306..2f57a84ce 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-227.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-227.js
@@ -8,8 +8,10 @@ description: >
of returned object is data property with correct 'value' attribute
---*/
- var obj = { "property": "ownDataProperty" };
+var obj = {
+ "property": "ownDataProperty"
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-228.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-228.js
index 7bd355aae..385ae6dd3 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-228.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-228.js
@@ -9,10 +9,12 @@ description: >
attribute
---*/
- var obj = { "property": "ownDataProperty" };
+var obj = {
+ "property": "ownDataProperty"
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
- desc.writable = "overwriteDataProperty";
+desc.writable = "overwriteDataProperty";
assert.sameValue(desc.writable, "overwriteDataProperty", 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-229.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-229.js
index 667429b87..174442068 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-229.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-229.js
@@ -9,15 +9,17 @@ description: >
attribute
---*/
- var obj = { "property": "ownDataProperty" };
+var obj = {
+ "property": "ownDataProperty"
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
- var accessed = false;
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var accessed = false;
- for (var props in desc) {
- if (props === "writable") {
- accessed = true;
- }
- }
+for (var props in desc) {
+ if (props === "writable") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-23.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-23.js
index ffb6f0a00..74b35992f 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-23.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-23.js
@@ -8,7 +8,7 @@ description: >
built-ins (Object.isSealed)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "isSealed");
+var desc = Object.getOwnPropertyDescriptor(Object, "isSealed");
assert.sameValue(desc.value, Object.isSealed, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-230.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-230.js
index 0e8d7c920..afaa39146 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-230.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-230.js
@@ -9,14 +9,16 @@ description: >
attribute
---*/
- var obj = { "property": "ownDataProperty" };
+var obj = {
+ "property": "ownDataProperty"
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
- var propDefined = ("writable" in desc);
+var propDefined = ("writable" in desc);
- delete desc.writable;
- var propDeleted = "writable" in desc;
+delete desc.writable;
+var propDeleted = "writable" in desc;
assert(propDefined, 'propDefined !== true');
assert.sameValue(propDeleted, false, 'propDeleted');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-231.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-231.js
index a93538a55..4d336b129 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-231.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-231.js
@@ -9,8 +9,10 @@ description: >
attribute
---*/
- var obj = { "property": "ownDataProperty" };
+var obj = {
+ "property": "ownDataProperty"
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
assert.sameValue(desc.enumerable, true, 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-232.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-232.js
index 43203e281..02ccc8b18 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-232.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-232.js
@@ -9,10 +9,12 @@ description: >
'writable' attribute
---*/
- var obj = { "property": "ownDataProperty" };
+var obj = {
+ "property": "ownDataProperty"
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
- desc.enumerable = "overwriteDataProperty";
+desc.enumerable = "overwriteDataProperty";
assert.sameValue(desc.enumerable, "overwriteDataProperty", 'desc.enumerable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-233.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-233.js
index 8bffb2b62..693cf215b 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-233.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-233.js
@@ -9,15 +9,17 @@ description: >
'enumerable' attribute
---*/
- var obj = { "property": "ownDataProperty" };
+var obj = {
+ "property": "ownDataProperty"
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
- var accessed = false;
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var accessed = false;
- for (var props in desc) {
- if (props === "enumerable") {
- accessed = true;
- }
- }
+for (var props in desc) {
+ if (props === "enumerable") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-234.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-234.js
index d4c6ea9d8..b28a8f78c 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-234.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-234.js
@@ -9,14 +9,16 @@ description: >
'configurable' attribute
---*/
- var obj = { "property": "ownDataProperty" };
+var obj = {
+ "property": "ownDataProperty"
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
- var propDefined = "enumerable" in desc;
+var propDefined = "enumerable" in desc;
- delete desc.enumerable;
- var propDeleted = "enumerable" in desc;
+delete desc.enumerable;
+var propDeleted = "enumerable" in desc;
assert(propDefined, 'propDefined !== true');
assert.sameValue(propDeleted, false, 'propDeleted');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-235.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-235.js
index 37c5c80d2..5586e0d2d 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-235.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-235.js
@@ -9,8 +9,10 @@ description: >
attribute
---*/
- var obj = { "property": "ownDataProperty" };
+var obj = {
+ "property": "ownDataProperty"
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
assert.sameValue(desc.configurable, true, 'desc.configurable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-236.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-236.js
index 960fc5cf3..e0b8746f0 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-236.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-236.js
@@ -9,10 +9,12 @@ description: >
'writable' attribute
---*/
- var obj = { "property": "ownDataProperty" };
+var obj = {
+ "property": "ownDataProperty"
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
- desc.writable = "overwriteDataProperty";
+desc.writable = "overwriteDataProperty";
assert.sameValue(desc.writable, "overwriteDataProperty", 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-237.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-237.js
index 1117ab125..396557046 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-237.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-237.js
@@ -9,15 +9,17 @@ description: >
'enumerable' attribute
---*/
- var obj = { "property": "ownDataProperty" };
+var obj = {
+ "property": "ownDataProperty"
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
- var accessed = false;
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var accessed = false;
- for (var prop in desc) {
- if (prop === "configurable") {
- accessed = true;
- }
- }
+for (var prop in desc) {
+ if (prop === "configurable") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-238.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-238.js
index 5e877a51d..d86824cd2 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-238.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-238.js
@@ -9,14 +9,16 @@ description: >
'configurable' attribute
---*/
- var obj = { "property": "ownDataProperty" };
+var obj = {
+ "property": "ownDataProperty"
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
- var propDefined = "configurable" in desc;
+var propDefined = "configurable" in desc;
- delete desc.configurable;
- var propDeleted = "configurable" in desc;
+delete desc.configurable;
+var propDeleted = "configurable" in desc;
assert(propDefined, 'propDefined !== true');
assert.sameValue(propDeleted, false, 'propDeleted');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-239.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-239.js
index 121640167..b5fb69c81 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-239.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-239.js
@@ -8,15 +8,15 @@ description: >
returned object is data property with correct 'value' attribute
---*/
- var obj = {};
- var fun = function () {
- return "ownDataProperty";
- };
- Object.defineProperty(obj, "property", {
- get: fun,
- configurable: true
- });
+var obj = {};
+var fun = function() {
+ return "ownDataProperty";
+};
+Object.defineProperty(obj, "property", {
+ get: fun,
+ configurable: true
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
assert.sameValue(desc.get, fun, 'desc.get');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-24.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-24.js
index 6fec737dc..0660d0871 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-24.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-24.js
@@ -8,7 +8,7 @@ description: >
built-ins (Object.isFrozen)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "isFrozen");
+var desc = Object.getOwnPropertyDescriptor(Object, "isFrozen");
assert.sameValue(desc.value, Object.isFrozen, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-240.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-240.js
index 35f469594..d5f9a19d5 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-240.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-240.js
@@ -8,17 +8,17 @@ description: >
returned object is data property with correct 'writable' attribute
---*/
- var obj = {};
- var fun = function () {
- return "ownGetProperty";
- };
- Object.defineProperty(obj, "property", {
- get: fun,
- configurable: true
- });
+var obj = {};
+var fun = function() {
+ return "ownGetProperty";
+};
+Object.defineProperty(obj, "property", {
+ get: fun,
+ configurable: true
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
- desc.get = "overwriteGetProperty";
+desc.get = "overwriteGetProperty";
assert.sameValue(desc.get, "overwriteGetProperty", 'desc.get');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-241.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-241.js
index 0f0ce2813..d70e6b556 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-241.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-241.js
@@ -9,22 +9,22 @@ description: >
attribute
---*/
- var obj = {};
- var fun = function () {
- return "ownDataProperty";
- };
- Object.defineProperty(obj, "property", {
- get: fun,
- configurable: true
- });
+var obj = {};
+var fun = function() {
+ return "ownDataProperty";
+};
+Object.defineProperty(obj, "property", {
+ get: fun,
+ configurable: true
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
- var accessed = false;
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var accessed = false;
- for (var prop in desc) {
- if (prop === "get") {
- accessed = true;
- }
- }
+for (var prop in desc) {
+ if (prop === "get") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-242.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-242.js
index d7800ba62..36efa073e 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-242.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-242.js
@@ -9,21 +9,21 @@ description: >
attribute
---*/
- var obj = {};
- var fun = function () {
- return "ownDataProperty";
- };
- Object.defineProperty(obj, "property", {
- get: fun,
- configurable: true
- });
+var obj = {};
+var fun = function() {
+ return "ownDataProperty";
+};
+Object.defineProperty(obj, "property", {
+ get: fun,
+ configurable: true
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
- var propDefined = "get" in desc;
+var propDefined = "get" in desc;
- delete desc.get;
- var propDeleted = "get" in desc;
+delete desc.get;
+var propDeleted = "get" in desc;
assert(propDefined, 'propDefined !== true');
assert.sameValue(propDeleted, false, 'propDeleted');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-243.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-243.js
index 6fbe77530..81e50951b 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-243.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-243.js
@@ -8,15 +8,15 @@ description: >
returned object is data property with correct 'value' attribute
---*/
- var obj = {};
- var fun = function () {
- return "ownSetProperty";
- };
- Object.defineProperty(obj, "property", {
- set: fun,
- configurable: true
- });
+var obj = {};
+var fun = function() {
+ return "ownSetProperty";
+};
+Object.defineProperty(obj, "property", {
+ set: fun,
+ configurable: true
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
assert.sameValue(desc.set, fun, 'desc.set');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-244.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-244.js
index 143521597..4083a3b2d 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-244.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-244.js
@@ -8,17 +8,17 @@ description: >
returned object is data property with correct 'writable' attribute
---*/
- var obj = {};
- var fun = function () {
- return "ownSetProperty";
- };
- Object.defineProperty(obj, "property", {
- set: fun,
- configurable: true
- });
+var obj = {};
+var fun = function() {
+ return "ownSetProperty";
+};
+Object.defineProperty(obj, "property", {
+ set: fun,
+ configurable: true
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
- desc.set = "overwriteSetProperty";
+desc.set = "overwriteSetProperty";
assert.sameValue(desc.set, "overwriteSetProperty", 'desc.set');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-245.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-245.js
index 35d73454d..c89e5efdd 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-245.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-245.js
@@ -9,22 +9,22 @@ description: >
attribute
---*/
- var obj = {};
- var fun = function () {
- return "ownSetProperty";
- };
- Object.defineProperty(obj, "property", {
- set: fun,
- configurable: true
- });
+var obj = {};
+var fun = function() {
+ return "ownSetProperty";
+};
+Object.defineProperty(obj, "property", {
+ set: fun,
+ configurable: true
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
- var accessed = false;
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var accessed = false;
- for (var prop in desc) {
- if (prop === "set") {
- accessed = true;
- }
- }
+for (var prop in desc) {
+ if (prop === "set") {
+ accessed = true;
+ }
+}
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-246.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-246.js
index 210ace76f..e0ac8701f 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-246.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-246.js
@@ -9,21 +9,21 @@ description: >
attribute
---*/
- var obj = {};
- var fun = function () {
- return "ownSetProperty";
- };
- Object.defineProperty(obj, "property", {
- set: fun,
- configurable: true
- });
+var obj = {};
+var fun = function() {
+ return "ownSetProperty";
+};
+Object.defineProperty(obj, "property", {
+ set: fun,
+ configurable: true
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
- var propDefined = "set" in desc;
+var propDefined = "set" in desc;
- delete desc.set;
- var propDeleted = "set" in desc;
+delete desc.set;
+var propDeleted = "set" in desc;
assert(propDefined, 'propDefined !== true');
assert.sameValue(propDeleted, false, 'propDeleted');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-247.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-247.js
index 06bd87e7a..55639d950 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-247.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-247.js
@@ -8,8 +8,10 @@ description: >
object
---*/
- var obj = { "property": 100 };
+var obj = {
+ "property": 100
+};
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
assert(desc instanceof Object, 'desc instanceof Object !== true');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-248.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-248.js
index 210d9286c..1045ad7ad 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-248.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-248.js
@@ -9,12 +9,12 @@ description: >
explicitly specified when defined by Object.defineProperty
---*/
- var obj = {};
- Object.defineProperty(obj, "property", {
- writable: true,
- configurable: true
- });
+var obj = {};
+Object.defineProperty(obj, "property", {
+ writable: true,
+ configurable: true
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
assert("value" in desc, '"value" in desc !== true');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-249.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-249.js
index e19f7efce..7d3530a5e 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-249.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-249.js
@@ -9,12 +9,12 @@ description: >
specified when defined by Object.defineProperty.
---*/
- var obj = {};
- Object.defineProperty(obj, "property", {
- get: function () { },
- configurable: true
- });
+var obj = {};
+Object.defineProperty(obj, "property", {
+ get: function() {},
+ configurable: true
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
assert("set" in desc, '"set" in desc !== true');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-25.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-25.js
index 6eadcabf3..2fe24a597 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-25.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-25.js
@@ -8,7 +8,7 @@ description: >
built-ins (Object.isExtensible)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "isExtensible");
+var desc = Object.getOwnPropertyDescriptor(Object, "isExtensible");
assert.sameValue(desc.value, Object.isExtensible, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-250.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-250.js
index f2863cbe8..48ea22abd 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-250.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-250.js
@@ -9,12 +9,12 @@ description: >
specified when defined by Object.defineProperty.
---*/
- var obj = {};
- Object.defineProperty(obj, "property", {
- set: function () {},
- configurable: true
- });
+var obj = {};
+Object.defineProperty(obj, "property", {
+ set: function() {},
+ configurable: true
+});
- var desc = Object.getOwnPropertyDescriptor(obj, "property");
+var desc = Object.getOwnPropertyDescriptor(obj, "property");
assert("get" in desc, '"get" in desc !== true');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-26.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-26.js
index 5428c62a3..c5de0e95b 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-26.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-26.js
@@ -8,7 +8,7 @@ description: >
built-ins (Object.keys)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, "keys");
+var desc = Object.getOwnPropertyDescriptor(Object, "keys");
assert.sameValue(desc.value, Object.keys, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-27.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-27.js
index 7b223ebda..9d8bbda42 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-27.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-27.js
@@ -8,7 +8,7 @@ description: >
built-ins (Object.prototype.constructor)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object.prototype, "constructor");
+var desc = Object.getOwnPropertyDescriptor(Object.prototype, "constructor");
assert.sameValue(desc.value, Object.prototype.constructor, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-28.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-28.js
index 0c01763f6..2680da34c 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-28.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-28.js
@@ -8,7 +8,7 @@ description: >
built-ins (Object.prototype.toString)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object.prototype, "toString");
+var desc = Object.getOwnPropertyDescriptor(Object.prototype, "toString");
assert.sameValue(desc.value, Object.prototype.toString, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-29.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-29.js
index 05b1775bf..8c838d5dd 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-29.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-29.js
@@ -8,7 +8,7 @@ description: >
built-ins (Object.prototype.valueOf)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object.prototype, "valueOf");
+var desc = Object.getOwnPropertyDescriptor(Object.prototype, "valueOf");
assert.sameValue(desc.value, Object.prototype.valueOf, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-3.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-3.js
index 51507f70b..a21bed132 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-3.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-3.js
@@ -8,15 +8,19 @@ description: >
accessor desc for valid accessor properties
---*/
- var o = {};
+var o = {};
- // dummy getter
- var getter = function () { return 1; }
- var d = { get: getter };
+// dummy getter
+var getter = function() {
+ return 1;
+}
+var d = {
+ get: getter
+};
- Object.defineProperty(o, "foo", d);
+Object.defineProperty(o, "foo", d);
- var desc = Object.getOwnPropertyDescriptor(o, "foo");
+var desc = Object.getOwnPropertyDescriptor(o, "foo");
assert.sameValue(desc.get, getter, 'desc.get');
assert.sameValue(desc.set, undefined, 'desc.set');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-30.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-30.js
index 4b21dcaee..0d40c18b1 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-30.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-30.js
@@ -8,7 +8,7 @@ description: >
built-ins (Object.prototype.isPrototypeOf)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object.prototype, "isPrototypeOf");
+var desc = Object.getOwnPropertyDescriptor(Object.prototype, "isPrototypeOf");
assert.sameValue(desc.value, Object.prototype.isPrototypeOf, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-31.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-31.js
index 7d0c1791d..5b74a6048 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-31.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-31.js
@@ -8,7 +8,7 @@ description: >
built-ins (Object.prototype.hasOwnProperty)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object.prototype, "hasOwnProperty");
+var desc = Object.getOwnPropertyDescriptor(Object.prototype, "hasOwnProperty");
assert.sameValue(desc.value, Object.prototype.hasOwnProperty, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-32.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-32.js
index df0942fea..49f9d712a 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-32.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-32.js
@@ -8,7 +8,7 @@ description: >
built-ins (Object.prototype.propertyIsEnumerable)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object.prototype, "propertyIsEnumerable");
+var desc = Object.getOwnPropertyDescriptor(Object.prototype, "propertyIsEnumerable");
assert.sameValue(desc.value, Object.prototype.propertyIsEnumerable, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-33.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-33.js
index ce6709d7c..a2c1a65fe 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-33.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-33.js
@@ -8,7 +8,7 @@ description: >
built-ins (Object.prototype.toLocaleString)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object.prototype, "toLocaleString");
+var desc = Object.getOwnPropertyDescriptor(Object.prototype, "toLocaleString");
assert.sameValue(desc.value, Object.prototype.toLocaleString, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-34.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-34.js
index ee5c0a2f7..d03c4335c 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-34.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-34.js
@@ -8,7 +8,7 @@ description: >
built-ins (Function.prototype.constructor)
---*/
- var desc = Object.getOwnPropertyDescriptor(Function.prototype, "constructor");
+var desc = Object.getOwnPropertyDescriptor(Function.prototype, "constructor");
assert.sameValue(desc.value, Function.prototype.constructor, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-35.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-35.js
index f3032e900..d86d83684 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-35.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-35.js
@@ -8,7 +8,7 @@ description: >
built-ins (Function.prototype.toString)
---*/
- var desc = Object.getOwnPropertyDescriptor(Function.prototype, "toString");
+var desc = Object.getOwnPropertyDescriptor(Function.prototype, "toString");
assert.sameValue(desc.value, Function.prototype.toString, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-36.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-36.js
index eb0099b59..fb38e03fc 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-36.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-36.js
@@ -8,7 +8,7 @@ description: >
built-ins (Function.prototype.apply)
---*/
- var desc = Object.getOwnPropertyDescriptor(Function.prototype, "apply");
+var desc = Object.getOwnPropertyDescriptor(Function.prototype, "apply");
assert.sameValue(desc.value, Function.prototype.apply, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-37.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-37.js
index bd67212c3..b8ff48109 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-37.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-37.js
@@ -8,7 +8,7 @@ description: >
built-ins (Function.prototype.call)
---*/
- var desc = Object.getOwnPropertyDescriptor(Function.prototype, "call");
+var desc = Object.getOwnPropertyDescriptor(Function.prototype, "call");
assert.sameValue(desc.value, Function.prototype.call, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-38.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-38.js
index 4221bd930..6045ad5c5 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-38.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-38.js
@@ -8,7 +8,7 @@ description: >
built-ins (Function.prototype.bind)
---*/
- var desc = Object.getOwnPropertyDescriptor(Function.prototype, "bind");
+var desc = Object.getOwnPropertyDescriptor(Function.prototype, "bind");
assert.sameValue(desc.value, Function.prototype.bind, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-39.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-39.js
index 88845ce6c..af26127eb 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-39.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-39.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.constructor)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "constructor");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "constructor");
assert.sameValue(desc.value, Array.prototype.constructor, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-4.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-4.js
index a81aad268..4036f9c96 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-4.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-4.js
@@ -8,8 +8,8 @@ description: >
built-ins (Global.eval)
---*/
- var global = this;
- var desc = Object.getOwnPropertyDescriptor(global, "eval");
+var global = this;
+var desc = Object.getOwnPropertyDescriptor(global, "eval");
assert.sameValue(desc.value, global.eval, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-40.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-40.js
index 41ff7c2ed..9c478e84b 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-40.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-40.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.concat)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "concat");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "concat");
assert.sameValue(desc.value, Array.prototype.concat, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-41.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-41.js
index 837182940..2b875fbb3 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-41.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-41.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.join)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "join");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "join");
assert.sameValue(desc.value, Array.prototype.join, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-42.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-42.js
index cc6ebd337..f1ab2659c 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-42.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-42.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.reverse)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reverse");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reverse");
assert.sameValue(desc.value, Array.prototype.reverse, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-43.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-43.js
index aeee8d512..ab7385cc0 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-43.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-43.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.slice)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "slice");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "slice");
assert.sameValue(desc.value, Array.prototype.slice, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-44.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-44.js
index 9203bfce7..7c704c1de 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-44.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-44.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.sort)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "sort");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "sort");
assert.sameValue(desc.value, Array.prototype.sort, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-45.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-45.js
index 50148ed31..e7907fd9d 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-45.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-45.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.toString)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "toString");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "toString");
assert.sameValue(desc.value, Array.prototype.toString, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-46.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-46.js
index ff1b0d9ed..35444efa1 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-46.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-46.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.push)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "push");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "push");
assert.sameValue(desc.value, Array.prototype.push, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-47.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-47.js
index 932f02c60..fba28178c 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-47.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-47.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.pop)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "pop");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "pop");
assert.sameValue(desc.value, Array.prototype.pop, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-48.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-48.js
index eded49311..f489b2715 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-48.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-48.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.shift)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "shift");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "shift");
assert.sameValue(desc.value, Array.prototype.shift, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-49.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-49.js
index 969af5e53..26eb89557 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-49.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-49.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.unshift)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "unshift");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "unshift");
assert.sameValue(desc.value, Array.prototype.unshift, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-5.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-5.js
index d99651e90..042a2654d 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-5.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-5.js
@@ -8,8 +8,8 @@ description: >
built-ins (Global.parseInt)
---*/
- var global = this;
- var desc = Object.getOwnPropertyDescriptor(global, "parseInt");
+var global = this;
+var desc = Object.getOwnPropertyDescriptor(global, "parseInt");
assert.sameValue(desc.value, global.parseInt, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-50.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-50.js
index c8edbe16d..8863e635c 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-50.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-50.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.splice)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "splice");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "splice");
assert.sameValue(desc.value, Array.prototype.splice, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-51.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-51.js
index ea44b8ff6..79f11c572 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-51.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-51.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.toLocaleString)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "toLocaleString");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "toLocaleString");
assert.sameValue(desc.value, Array.prototype.toLocaleString, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-52.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-52.js
index 5081cc373..c6cf7ae47 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-52.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-52.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.indexOf)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "indexOf");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "indexOf");
assert.sameValue(desc.value, Array.prototype.indexOf, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-53.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-53.js
index 82c22d316..e7ccc2f29 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-53.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-53.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.lastIndexOf)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "lastIndexOf");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "lastIndexOf");
assert.sameValue(desc.value, Array.prototype.lastIndexOf, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-54.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-54.js
index 04a7d7a2b..f04a0a715 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-54.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-54.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.every)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "every");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "every");
assert.sameValue(desc.value, Array.prototype.every, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-55.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-55.js
index 993393559..449e316c6 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-55.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-55.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.some)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "some");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "some");
assert.sameValue(desc.value, Array.prototype.some, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-56.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-56.js
index 02d6dc70f..0bd51a9a1 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-56.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-56.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.forEach)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "forEach");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "forEach");
assert.sameValue(desc.value, Array.prototype.forEach, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-57.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-57.js
index 22bce1956..650421808 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-57.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-57.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.map)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "map");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "map");
assert.sameValue(desc.value, Array.prototype.map, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-58.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-58.js
index ccc1c60d1..084062b38 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-58.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-58.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.filter)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "filter");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "filter");
assert.sameValue(desc.value, Array.prototype.filter, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-59.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-59.js
index 0f2610129..7e32febd9 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-59.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-59.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.reduce)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduce");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduce");
assert.sameValue(desc.value, Array.prototype.reduce, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-6.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-6.js
index 1e4a06e23..d6fc407fa 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-6.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-6.js
@@ -8,8 +8,8 @@ description: >
built-ins (Global.parseFloat)
---*/
- var global = this;
- var desc = Object.getOwnPropertyDescriptor(global, "parseFloat");
+var global = this;
+var desc = Object.getOwnPropertyDescriptor(global, "parseFloat");
assert.sameValue(desc.value, global.parseFloat, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-60.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-60.js
index c1322e64c..a4a7c106c 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-60.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-60.js
@@ -8,7 +8,7 @@ description: >
built-ins (Array.prototype.reduceRight)
---*/
- var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduceRight");
+var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduceRight");
assert.sameValue(desc.value, Array.prototype.reduceRight, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-61.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-61.js
index d01a7fad8..e0d8154a6 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-61.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-61.js
@@ -8,7 +8,7 @@ description: >
built-ins (String.fromCharCode)
---*/
- var desc = Object.getOwnPropertyDescriptor(String, "fromCharCode");
+var desc = Object.getOwnPropertyDescriptor(String, "fromCharCode");
assert.sameValue(desc.value, String.fromCharCode, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-62.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-62.js
index 0bdc7d40e..faef9f6a3 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-62.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-62.js
@@ -8,7 +8,7 @@ description: >
built-ins (String.prototype.constructor)
---*/
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "constructor");
+var desc = Object.getOwnPropertyDescriptor(String.prototype, "constructor");
assert.sameValue(desc.value, String.prototype.constructor, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-63.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-63.js
index f1cc35138..999d0feb9 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-63.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-63.js
@@ -8,7 +8,7 @@ description: >
built-ins (String.prototype.charAt)
---*/
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "charAt");
+var desc = Object.getOwnPropertyDescriptor(String.prototype, "charAt");
assert.sameValue(desc.value, String.prototype.charAt, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-64.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-64.js
index 51b1254de..fe18d2639 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-64.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-64.js
@@ -8,7 +8,7 @@ description: >
built-ins (String.prototype.charCodeAt)
---*/
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "charCodeAt");
+var desc = Object.getOwnPropertyDescriptor(String.prototype, "charCodeAt");
assert.sameValue(desc.value, String.prototype.charCodeAt, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-65.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-65.js
index dae2b940f..18069fc8e 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-65.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-65.js
@@ -8,7 +8,7 @@ description: >
built-ins (String.prototype.concat)
---*/
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "concat");
+var desc = Object.getOwnPropertyDescriptor(String.prototype, "concat");
assert.sameValue(desc.value, String.prototype.concat, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-66.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-66.js
index ebc3efd6d..22e86425a 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-66.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-66.js
@@ -8,7 +8,7 @@ description: >
built-ins (String.prototype.indexOf)
---*/
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "indexOf");
+var desc = Object.getOwnPropertyDescriptor(String.prototype, "indexOf");
assert.sameValue(desc.value, String.prototype.indexOf, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-67.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-67.js
index 9d6819d2d..2fcfbb893 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-67.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-67.js
@@ -8,7 +8,7 @@ description: >
built-ins (String.prototype.lastIndexOf)
---*/
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "lastIndexOf");
+var desc = Object.getOwnPropertyDescriptor(String.prototype, "lastIndexOf");
assert.sameValue(desc.value, String.prototype.lastIndexOf, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-68.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-68.js
index cdd962662..5201eb059 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-68.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-68.js
@@ -8,7 +8,7 @@ description: >
built-ins (String.prototype.match)
---*/
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "match");
+var desc = Object.getOwnPropertyDescriptor(String.prototype, "match");
assert.sameValue(desc.value, String.prototype.match, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-69.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-69.js
index d1f0b5a91..067ea8590 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-69.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-69.js
@@ -8,7 +8,7 @@ description: >
built-ins (String.prototype.replace)
---*/
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "replace");
+var desc = Object.getOwnPropertyDescriptor(String.prototype, "replace");
assert.sameValue(desc.value, String.prototype.replace, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-7.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-7.js
index 1c410ce45..9a1a642ad 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-7.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-7.js
@@ -8,8 +8,8 @@ description: >
built-ins (Global.isNaN)
---*/
- var global = this;
- var desc = Object.getOwnPropertyDescriptor(global, "isNaN");
+var global = this;
+var desc = Object.getOwnPropertyDescriptor(global, "isNaN");
assert.sameValue(desc.value, global.isNaN, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-70.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-70.js
index 5a3348774..490a683ed 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-70.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-70.js
@@ -8,7 +8,7 @@ description: >
built-ins (String.prototype.search)
---*/
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "search");
+var desc = Object.getOwnPropertyDescriptor(String.prototype, "search");
assert.sameValue(desc.value, String.prototype.search, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-71.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-71.js
index 20b8f3cd4..0933b3769 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-71.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-71.js
@@ -8,7 +8,7 @@ description: >
built-ins (String.prototype.slice)
---*/
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "slice");
+var desc = Object.getOwnPropertyDescriptor(String.prototype, "slice");
assert.sameValue(desc.value, String.prototype.slice, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-72.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-72.js
index f3a6a9a48..37e0191e2 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-72.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-72.js
@@ -8,7 +8,7 @@ description: >
built-ins (String.prototype.split)
---*/
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "split");
+var desc = Object.getOwnPropertyDescriptor(String.prototype, "split");
assert.sameValue(desc.value, String.prototype.split, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-73.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-73.js
index a1b0a5073..01c265da1 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-73.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-73.js
@@ -8,7 +8,7 @@ description: >
built-ins (String.prototype.substring)
---*/
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "substring");
+var desc = Object.getOwnPropertyDescriptor(String.prototype, "substring");
assert.sameValue(desc.value, String.prototype.substring, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-75.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-75.js
index 6bfd04221..c722ac3d8 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-75.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-75.js
@@ -8,7 +8,7 @@ description: >
built-ins (String.prototype.toLowerCase)
---*/
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "toLowerCase");
+var desc = Object.getOwnPropertyDescriptor(String.prototype, "toLowerCase");
assert.sameValue(desc.value, String.prototype.toLowerCase, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-76.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-76.js
index 4044ddd37..90b7a5ff2 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-76.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-76.js
@@ -8,7 +8,7 @@ description: >
built-ins (String.prototype.toString)
---*/
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "toString");
+var desc = Object.getOwnPropertyDescriptor(String.prototype, "toString");
assert.sameValue(desc.value, String.prototype.toString, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-77.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-77.js
index 63118de08..56f378d61 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-77.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-77.js
@@ -8,7 +8,7 @@ description: >
built-ins (String.prototype.toUpperCase)
---*/
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "toUpperCase");
+var desc = Object.getOwnPropertyDescriptor(String.prototype, "toUpperCase");
assert.sameValue(desc.value, String.prototype.toUpperCase, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-78.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-78.js
index 26793f300..dfcac3a7e 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-78.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-78.js
@@ -8,7 +8,7 @@ description: >
built-ins (String.prototype.valueOf)
---*/
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "valueOf");
+var desc = Object.getOwnPropertyDescriptor(String.prototype, "valueOf");
assert.sameValue(desc.value, String.prototype.valueOf, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-79.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-79.js
index e81d1eb99..a25d88620 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-79.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-79.js
@@ -8,7 +8,7 @@ description: >
built-ins (String.prototype.toLocaleLowerCase)
---*/
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "toLocaleLowerCase");
+var desc = Object.getOwnPropertyDescriptor(String.prototype, "toLocaleLowerCase");
assert.sameValue(desc.value, String.prototype.toLocaleLowerCase, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-8.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-8.js
index 094fcbd88..78adbeba7 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-8.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-8.js
@@ -8,8 +8,8 @@ description: >
built-ins (Global.isFinite)
---*/
- var global = this;
- var desc = Object.getOwnPropertyDescriptor(global, "isFinite");
+var global = this;
+var desc = Object.getOwnPropertyDescriptor(global, "isFinite");
assert.sameValue(desc.value, global.isFinite, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-80.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-80.js
index 577756342..62c619c15 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-80.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-80.js
@@ -8,7 +8,7 @@ description: >
built-ins (String.prototype.toLocaleUpperCase)
---*/
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "toLocaleUpperCase");
+var desc = Object.getOwnPropertyDescriptor(String.prototype, "toLocaleUpperCase");
assert.sameValue(desc.value, String.prototype.toLocaleUpperCase, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-81.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-81.js
index d399238b1..e8c198478 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-81.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-81.js
@@ -8,7 +8,7 @@ description: >
built-ins (String.prototype.localeCompare)
---*/
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "localeCompare");
+var desc = Object.getOwnPropertyDescriptor(String.prototype, "localeCompare");
assert.sameValue(desc.value, String.prototype.localeCompare, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-82.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-82.js
index 3412ec421..0ffd73dd7 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-82.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-82.js
@@ -8,7 +8,7 @@ description: >
built-ins (String.prototype.trim)
---*/
- var desc = Object.getOwnPropertyDescriptor(String.prototype, "trim");
+var desc = Object.getOwnPropertyDescriptor(String.prototype, "trim");
assert.sameValue(desc.value, String.prototype.trim, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-84.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-84.js
index 25ab07de3..ecf34debd 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-84.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-84.js
@@ -8,7 +8,7 @@ description: >
built-ins (Boolean.prototype.constructor)
---*/
- var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, "constructor");
+var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, "constructor");
assert.sameValue(desc.value, Boolean.prototype.constructor, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-85.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-85.js
index 463d1e39d..fdc0b7dcd 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-85.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-85.js
@@ -8,7 +8,7 @@ description: >
built-ins (Boolean.prototype.toString)
---*/
- var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, "toString");
+var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, "toString");
assert.sameValue(desc.value, Boolean.prototype.toString, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-86.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-86.js
index 4b5880d4e..6b1dae720 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-86.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-86.js
@@ -8,7 +8,7 @@ description: >
built-ins (Boolean.prototype.valueOf)
---*/
- var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, "valueOf");
+var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, "valueOf");
assert.sameValue(desc.value, Boolean.prototype.valueOf, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-88.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-88.js
index 130d2d45a..28821a842 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-88.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-88.js
@@ -8,7 +8,7 @@ description: >
built-ins (Number.prototype.constructor)
---*/
- var desc = Object.getOwnPropertyDescriptor(Number.prototype, "constructor");
+var desc = Object.getOwnPropertyDescriptor(Number.prototype, "constructor");
assert.sameValue(desc.value, Number.prototype.constructor, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-89.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-89.js
index b392e5979..0f53f7bc6 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-89.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-89.js
@@ -8,7 +8,7 @@ description: >
built-ins (Number.prototype.toString)
---*/
- var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toString");
+var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toString");
assert.sameValue(desc.value, Number.prototype.toString, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-9.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-9.js
index ff648971c..a45bc6592 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-9.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-9.js
@@ -8,8 +8,8 @@ description: >
built-ins (Global.decodeURI)
---*/
- var global = this;
- var desc = Object.getOwnPropertyDescriptor(global, "decodeURI");
+var global = this;
+var desc = Object.getOwnPropertyDescriptor(global, "decodeURI");
assert.sameValue(desc.value, global.decodeURI, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-90.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-90.js
index 2f8c72527..332e44ec0 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-90.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-90.js
@@ -8,7 +8,7 @@ description: >
built-ins (Number.prototype.toLocaleString)
---*/
- var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toLocaleString");
+var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toLocaleString");
assert.sameValue(desc.value, Number.prototype.toLocaleString, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-91.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-91.js
index 674acf087..fcebf3673 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-91.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-91.js
@@ -8,7 +8,7 @@ description: >
built-ins (Number.prototype.toFixed)
---*/
- var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toFixed");
+var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toFixed");
assert.sameValue(desc.value, Number.prototype.toFixed, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-92.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-92.js
index 553bf70bc..edda1be2d 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-92.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-92.js
@@ -8,7 +8,7 @@ description: >
built-ins (Number.prototype.toExponential)
---*/
- var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toExponential");
+var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toExponential");
assert.sameValue(desc.value, Number.prototype.toExponential, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-93.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-93.js
index 76fcf8ae1..cf4a5027d 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-93.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-93.js
@@ -8,7 +8,7 @@ description: >
built-ins (Number.prototype.toPrecision)
---*/
- var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toPrecision");
+var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toPrecision");
assert.sameValue(desc.value, Number.prototype.toPrecision, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-94.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-94.js
index 13159813f..72aa5a495 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-94.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-94.js
@@ -8,7 +8,7 @@ description: >
built-ins (Number.prototype.valueOf)
---*/
- var desc = Object.getOwnPropertyDescriptor(Number.prototype, "valueOf");
+var desc = Object.getOwnPropertyDescriptor(Number.prototype, "valueOf");
assert.sameValue(desc.value, Number.prototype.valueOf, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-96.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-96.js
index 603e590b4..61d619258 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-96.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-96.js
@@ -8,7 +8,7 @@ description: >
built-ins (Math.abs)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "abs");
+var desc = Object.getOwnPropertyDescriptor(Math, "abs");
assert.sameValue(desc.value, Math.abs, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-97.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-97.js
index 2c3e9ca5b..822780fdd 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-97.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-97.js
@@ -8,7 +8,7 @@ description: >
built-ins (Math.acos)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "acos");
+var desc = Object.getOwnPropertyDescriptor(Math, "acos");
assert.sameValue(desc.value, Math.acos, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-98.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-98.js
index 3833480fd..c27ae870c 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-98.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-98.js
@@ -8,7 +8,7 @@ description: >
built-ins (Math.asin)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "asin");
+var desc = Object.getOwnPropertyDescriptor(Math, "asin");
assert.sameValue(desc.value, Math.asin, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-99.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-99.js
index 0fa81e545..29c3ed941 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-99.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-99.js
@@ -8,7 +8,7 @@ description: >
built-ins (Math.atan)
---*/
- var desc = Object.getOwnPropertyDescriptor(Math, "atan");
+var desc = Object.getOwnPropertyDescriptor(Math, "atan");
assert.sameValue(desc.value, Math.atan, 'desc.value');
assert.sameValue(desc.writable, true, 'desc.writable');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/exception-not-object-coercible.js b/test/built-ins/Object/getOwnPropertyDescriptors/exception-not-object-coercible.js
index c11aee65f..c7d152060 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptors/exception-not-object-coercible.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptors/exception-not-object-coercible.js
@@ -7,10 +7,10 @@ esid: sec-object.getownpropertydescriptors
author: Jordan Harband
---*/
-assert.throws(TypeError, function () {
- Object.getOwnPropertyDescriptors(null);
+assert.throws(TypeError, function() {
+ Object.getOwnPropertyDescriptors(null);
});
-assert.throws(TypeError, function () {
- Object.getOwnPropertyDescriptors(undefined);
+assert.throws(TypeError, function() {
+ Object.getOwnPropertyDescriptors(undefined);
});
diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/function-name.js b/test/built-ins/Object/getOwnPropertyDescriptors/function-name.js
index 1c1f3a6b7..c2e98cf19 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptors/function-name.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptors/function-name.js
@@ -9,9 +9,9 @@ includes: [propertyHelper.js]
---*/
assert.sameValue(
- Object.getOwnPropertyDescriptors.name,
- 'getOwnPropertyDescriptors',
- 'Expected Object.getOwnPropertyDescriptors.name to be "getOwnPropertyDescriptors"'
+ Object.getOwnPropertyDescriptors.name,
+ 'getOwnPropertyDescriptors',
+ 'Expected Object.getOwnPropertyDescriptors.name to be "getOwnPropertyDescriptors"'
);
verifyNotEnumerable(Object.getOwnPropertyDescriptors, 'name');
diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/inherited-properties-omitted.js b/test/built-ins/Object/getOwnPropertyDescriptors/inherited-properties-omitted.js
index 1522f5936..574dbb8ed 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptors/inherited-properties-omitted.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptors/inherited-properties-omitted.js
@@ -7,7 +7,7 @@ esid: sec-object.getownpropertydescriptors
author: Jordan Harband
---*/
-var F = function () {};
+var F = function() {};
F.prototype.a = {};
F.prototype.b = {};
diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/observable-operations.js b/test/built-ins/Object/getOwnPropertyDescriptors/observable-operations.js
index 90582f0e4..c7f70689c 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptors/observable-operations.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptors/observable-operations.js
@@ -10,21 +10,25 @@ includes: [proxyTrapsHelper.js]
---*/
var log = "";
-var object = { a: 0, b: 0, c: 0 };
+var object = {
+ a: 0,
+ b: 0,
+ c: 0
+};
var handler = allowProxyTraps({
- getOwnPropertyDescriptor: function (target, propertyKey) {
+ getOwnPropertyDescriptor: function(target, propertyKey) {
assert.sameValue(target, object, "getOwnPropertyDescriptor");
log += "|getOwnPropertyDescriptor:" + propertyKey;
return Object.getOwnPropertyDescriptor(target, propertyKey);
},
- ownKeys: function (target) {
+ ownKeys: function(target) {
assert.sameValue(target, object, "ownKeys");
log += "|ownKeys";
return Object.getOwnPropertyNames(target);
}
});
var check = allowProxyTraps({
- get: function (target, propertyKey, receiver) {
+ get: function(target, propertyKey, receiver) {
assert(propertyKey in target, "handler check: " + propertyKey);
return target[propertyKey];
}
diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/primitive-strings.js b/test/built-ins/Object/getOwnPropertyDescriptors/primitive-strings.js
index 4c7141411..3ce4b71a9 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptors/primitive-strings.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptors/primitive-strings.js
@@ -30,4 +30,3 @@ assert.sameValue(result[2].configurable, false, 'index 2 is not configurable');
assert.sameValue(result[2].enumerable, true, 'index 2 is enumerable');
assert.sameValue(result[2].writable, false, 'index 2 is not writable');
assert.sameValue(result[2].value, 'c', 'index 2 is "c"');
-
diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/proxy-undefined-descriptor.js b/test/built-ins/Object/getOwnPropertyDescriptors/proxy-undefined-descriptor.js
index b03df1304..f6bf1e078 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptors/proxy-undefined-descriptor.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptors/proxy-undefined-descriptor.js
@@ -12,9 +12,9 @@ includes: [proxyTrapsHelper.js]
var key = "a";
var ownKeys = [key];
var badProxyHandlers = allowProxyTraps({
- getOwnPropertyDescriptor: function () {},
- ownKeys: function () {
- return ownKeys;
+ getOwnPropertyDescriptor: function() {},
+ ownKeys: function() {
+ return ownKeys;
}
});
var proxy = new Proxy({}, badProxyHandlers);
diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/symbols-included.js b/test/built-ins/Object/getOwnPropertyDescriptors/symbols-included.js
index 2cf49a087..cbfa831d6 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptors/symbols-included.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptors/symbols-included.js
@@ -13,9 +13,16 @@ var enumSym = Symbol('enum');
var nonEnumSym = Symbol('nonenum');
var symValue = Symbol('value');
-var obj = { key: symValue };
+var obj = {
+ key: symValue
+};
obj[enumSym] = value;
-Object.defineProperty(obj, nonEnumSym, { writable: true, enumerable: false, configurable: true, value: value });
+Object.defineProperty(obj, nonEnumSym, {
+ writable: true,
+ enumerable: false,
+ configurable: true,
+ value: value
+});
var result = Object.getOwnPropertyDescriptors(obj);
diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-global-object.js b/test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-global-object.js
index 7239b18d8..4fc046ae6 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-global-object.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-global-object.js
@@ -9,7 +9,7 @@ author: Jordan Harband
---*/
function fakeObject() {
- $ERROR('The overriden version of Object was called!');
+ $ERROR('The overriden version of Object was called!');
}
fakeObject.getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors;
fakeObject.keys = Object.keys;
diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-object-keys.js b/test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-object-keys.js
index 6427b3d87..bfe13dd0d 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-object-keys.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-object-keys.js
@@ -9,7 +9,7 @@ author: Jordan Harband
---*/
function fakeObjectGetOwnPropertyDescriptor() {
- $ERROR('The overriden version of Object.getOwnPropertyDescriptor was called!');
+ $ERROR('The overriden version of Object.getOwnPropertyDescriptor was called!');
}
Object.getOwnPropertyDescriptor = fakeObjectGetOwnPropertyDescriptor;
@@ -19,4 +19,6 @@ assert.sameValue(
'Sanity check failed: could not modify the global Object.getOwnPropertyDescriptor'
);
-assert.sameValue(Object.keys(Object.getOwnPropertyDescriptors({ a: 1 })).length, 1, 'Expected object with 1 key to have 1 descriptor');
+assert.sameValue(Object.keys(Object.getOwnPropertyDescriptors({
+ a: 1
+})).length, 1, 'Expected object with 1 key to have 1 descriptor');
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-2.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-2.js
index 51ce6f35f..586f94fbc 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-2.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-2.js
@@ -8,5 +8,5 @@ description: Object.getOwnPropertyNames throws TypeError if 'O' is undefined
assert.throws(TypeError, function() {
- Object.getOwnPropertyNames(undefined);
+ Object.getOwnPropertyNames(undefined);
});
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-3.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-3.js
index 4a9ac3a33..441dc14ad 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-3.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-3.js
@@ -8,5 +8,5 @@ description: Object.getOwnPropertyNames throws TypeError if 'O' is null
assert.throws(TypeError, function() {
- Object.getOwnPropertyNames(null);
+ Object.getOwnPropertyNames(null);
});
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-4.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-4.js
index 09ead9782..d57800a19 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-4.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-4.js
@@ -8,4 +8,4 @@ description: >
boolean
---*/
- Object.getOwnPropertyNames(true);
+Object.getOwnPropertyNames(true);
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-5.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-5.js
index e2de141ea..a03c0e002 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-5.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-5.js
@@ -8,4 +8,4 @@ description: >
string
---*/
- Object.getOwnPropertyNames("abc");
+Object.getOwnPropertyNames("abc");
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1.js
index b34eac414..8b2f12312 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1.js
@@ -8,4 +8,4 @@ description: >
first param is not Object
---*/
- Object.getOwnPropertyNames(0);
+Object.getOwnPropertyNames(0);
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-1.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-1.js
index 8d9c373e2..da93b1a02 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-1.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-1.js
@@ -8,7 +8,7 @@ description: >
to Array.isArray
---*/
- var obj = {};
- var result = Object.getOwnPropertyNames(obj);
+var obj = {};
+var result = Object.getOwnPropertyNames(obj);
assert(Array.isArray(result), 'Array.isArray(result) !== true');
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-2.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-2.js
index 12a1f7418..28e403c0d 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-2.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-2.js
@@ -6,7 +6,7 @@ es5id: 15.2.3.4-2-2
description: Object.getOwnPropertyNames - returned array is an instance of Array
---*/
- var obj = {};
- var result = Object.getOwnPropertyNames(obj);
+var obj = {};
+var result = Object.getOwnPropertyNames(obj);
assert(result instanceof Array, 'result instanceof Array !== true');
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-3.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-3.js
index d34305209..b1419378e 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-3.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-3.js
@@ -8,7 +8,7 @@ description: >
initialized to 0
---*/
- var obj = {};
- var result = Object.getOwnPropertyNames(obj);
+var obj = {};
+var result = Object.getOwnPropertyNames(obj);
assert.sameValue(result.length, 0, 'result.length');
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-4.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-4.js
index fd42435c7..4eb034bec 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-4.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-4.js
@@ -8,13 +8,13 @@ description: >
built-in constructor
---*/
- var oldArray = Array;
- Array = function () {
- throw new Error("invoke customer defined Array!");
- };
+var oldArray = Array;
+Array = function() {
+ throw new Error("invoke customer defined Array!");
+};
- var obj = {};
+var obj = {};
- var result = Object.getOwnPropertyNames(obj);
+var result = Object.getOwnPropertyNames(obj);
assert.sameValue(Object.prototype.toString.call(result), "[object Array]", 'Object.prototype.toString.call(result)');
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-3-1.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-3-1.js
index c4a893ccd..d6c02ef65 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-3-1.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-3-1.js
@@ -8,9 +8,11 @@ description: >
from index 0
---*/
- var obj = { prop1: 1001 };
+var obj = {
+ prop1: 1001
+};
- var arr = Object.getOwnPropertyNames(obj);
+var arr = Object.getOwnPropertyNames(obj);
assert(arr.hasOwnProperty(0), 'arr.hasOwnProperty(0) !== true');
assert.sameValue(arr[0], "prop1", 'arr[0]');
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-1.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-1.js
index 558377801..865477923 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-1.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-1.js
@@ -6,14 +6,14 @@ es5id: 15.2.3.4-4-1
description: Object.getOwnPropertyNames returns array of property names (Global)
---*/
- var result = Object.getOwnPropertyNames(this);
- var expResult = ["NaN", "Infinity", "undefined", "eval", "parseInt", "parseFloat", "isNaN", "isFinite", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "Object", "Function", "Array", "String", "Boolean", "Number", "Date", "Date", "RegExp", "Error", "EvalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError", "Math", "JSON"];
+var result = Object.getOwnPropertyNames(this);
+var expResult = ["NaN", "Infinity", "undefined", "eval", "parseInt", "parseFloat", "isNaN", "isFinite", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "Object", "Function", "Array", "String", "Boolean", "Number", "Date", "Date", "RegExp", "Error", "EvalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError", "Math", "JSON"];
- var result1 = {};
- for (var p in result) {
- result1[result[p]] = true;
- }
+var result1 = {};
+for (var p in result) {
+ result1[result[p]] = true;
+}
- for (var p1 in expResult) {
- assert(result1[expResult[p1]], 'result1[expResult[p1]] !== true');
- }
+for (var p1 in expResult) {
+ assert(result1[expResult[p1]], 'result1[expResult[p1]] !== true');
+}
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-2.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-2.js
index 97b14fd89..45cdcecde 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-2.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-2.js
@@ -7,7 +7,7 @@ description: Object.getOwnPropertyNames returns array of property names (Object)
includes: [arrayContains.js]
---*/
- var result = Object.getOwnPropertyNames(Object);
- var expResult = ["getPrototypeOf", "getOwnPropertyDescriptor", "getOwnPropertyNames", "create", "defineProperty", "defineProperties", "seal", "freeze", "preventExtensions", "isSealed", "isFrozen", "isExtensible", "keys", "prototype", "length"];
+var result = Object.getOwnPropertyNames(Object);
+var expResult = ["getPrototypeOf", "getOwnPropertyDescriptor", "getOwnPropertyNames", "create", "defineProperty", "defineProperties", "seal", "freeze", "preventExtensions", "isSealed", "isFrozen", "isExtensible", "keys", "prototype", "length"];
assert(arrayContains(result, expResult), 'arrayContains(result, expResult) !== true');
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-36.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-36.js
index 8348c8209..4530e7016 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-36.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-36.js
@@ -8,15 +8,17 @@ description: >
pushed into the returned array
---*/
- var proto = { "parent": "parent" };
+var proto = {
+ "parent": "parent"
+};
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var child = new Con();
+var child = new Con();
- var result = Object.getOwnPropertyNames(child);
+var result = Object.getOwnPropertyNames(child);
- for (var p in result) {
- assert.notSameValue(result[p], "parent", 'result[p]');
- }
+for (var p in result) {
+ assert.notSameValue(result[p], "parent", 'result[p]');
+}
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-37.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-37.js
index 7ee68cada..54da883cc 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-37.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-37.js
@@ -8,21 +8,21 @@ description: >
pushed into the returned array
---*/
- var proto = {};
- Object.defineProperty(proto, "parent", {
- get: function () {
- return "parent";
- },
- configurable: true
- });
+var proto = {};
+Object.defineProperty(proto, "parent", {
+ get: function() {
+ return "parent";
+ },
+ configurable: true
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var child = new Con();
+var child = new Con();
- var result = Object.getOwnPropertyNames(child);
+var result = Object.getOwnPropertyNames(child);
- for (var p in result) {
- assert.notSameValue(result[p], "parent", 'result[p]');
- }
+for (var p in result) {
+ assert.notSameValue(result[p], "parent", 'result[p]');
+}
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-38.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-38.js
index 525a25320..ed30ce1e0 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-38.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-38.js
@@ -8,8 +8,10 @@ description: >
the returned array
---*/
- var obj = { "a": "a" };
+var obj = {
+ "a": "a"
+};
- var result = Object.getOwnPropertyNames(obj);
+var result = Object.getOwnPropertyNames(obj);
assert.sameValue(result[0], "a", 'result[0]');
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-39.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-39.js
index 1992e3168..2c4970de1 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-39.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-39.js
@@ -8,14 +8,14 @@ description: >
into the returned array
---*/
- var obj = {};
- Object.defineProperty(obj, "a", {
- get: function () {
- return "a";
- },
- configurable: true
- });
+var obj = {};
+Object.defineProperty(obj, "a", {
+ get: function() {
+ return "a";
+ },
+ configurable: true
+});
- var result = Object.getOwnPropertyNames(obj);
+var result = Object.getOwnPropertyNames(obj);
assert.sameValue(result[0], "a", 'result[0]');
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-40.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-40.js
index 1597725f1..5ecb545f8 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-40.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-40.js
@@ -8,12 +8,12 @@ description: >
object 'O' is not pushed into the returned array
---*/
- var str = new String("abc");
+var str = new String("abc");
- String.prototype.protoProperty = "protoString";
+String.prototype.protoProperty = "protoString";
- var result = Object.getOwnPropertyNames(str);
+var result = Object.getOwnPropertyNames(str);
- for (var p in result) {
- assert.notSameValue(result[p], "protoProperty", 'result[p]');
- }
+for (var p in result) {
+ assert.notSameValue(result[p], "protoProperty", 'result[p]');
+}
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-41.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-41.js
index 376e30846..61f889e95 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-41.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-41.js
@@ -8,17 +8,17 @@ description: >
object 'O' is not pushed into the returned array
---*/
- var str = new String("abc");
+var str = new String("abc");
- Object.defineProperty(String.prototype, "protoProperty", {
- get: function () {
- return "protoString";
- },
- configurable: true
- });
+Object.defineProperty(String.prototype, "protoProperty", {
+ get: function() {
+ return "protoString";
+ },
+ configurable: true
+});
- var result = Object.getOwnPropertyNames(str);
+var result = Object.getOwnPropertyNames(str);
- for (var p in result) {
- assert.notSameValue(result[p], "protoProperty", 'result[p]');
- }
+for (var p in result) {
+ assert.notSameValue(result[p], "protoProperty", 'result[p]');
+}
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-42.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-42.js
index 4f81f8454..dfa85c7f0 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-42.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-42.js
@@ -10,20 +10,20 @@ description: >
var propertyFound = false;
- var str = new String("abc");
+var str = new String("abc");
- Object.defineProperty(str, "ownProperty", {
- value: "ownString",
- configurable: true
- });
+Object.defineProperty(str, "ownProperty", {
+ value: "ownString",
+ configurable: true
+});
- var result = Object.getOwnPropertyNames(str);
+var result = Object.getOwnPropertyNames(str);
- for (var p in result) {
- if (result[p] === "ownProperty") {
- propertyFound = true;
- break;
- }
- }
+for (var p in result) {
+ if (result[p] === "ownProperty") {
+ propertyFound = true;
+ break;
+ }
+}
assert(propertyFound, 'Property not found');
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-43.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-43.js
index b3ae879d9..8f8bf48ab 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-43.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-43.js
@@ -10,22 +10,22 @@ description: >
var propertyFound = false;
- var str = new String("abc");
+var str = new String("abc");
- Object.defineProperty(str, "ownProperty", {
- get: function () {
- return "ownString";
- },
- configurable: true
- });
+Object.defineProperty(str, "ownProperty", {
+ get: function() {
+ return "ownString";
+ },
+ configurable: true
+});
- var result = Object.getOwnPropertyNames(str);
+var result = Object.getOwnPropertyNames(str);
- for (var p in result) {
- if (result[p] === "ownProperty") {
- propertyFound = true;
- break;
- }
- }
+for (var p in result) {
+ if (result[p] === "ownProperty") {
+ propertyFound = true;
+ break;
+ }
+}
assert(propertyFound, 'Property not found');
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-44.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-44.js
index c6f5c4432..ad7799a2a 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-44.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-44.js
@@ -9,10 +9,10 @@ description: >
includes: [compareArray.js]
---*/
- var str = new String("abc");
- str[5] = "de";
+var str = new String("abc");
+str[5] = "de";
- var expected = ["0", "1", "2", "5", "length"];
- var actual = Object.getOwnPropertyNames(str);
+var expected = ["0", "1", "2", "5", "length"];
+var actual = Object.getOwnPropertyNames(str);
assert(compareArray(actual, expected), 'compareArray(actual, expected) !== true');
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-45.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-45.js
index 5772ef4d0..cc155a5ee 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-45.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-45.js
@@ -8,12 +8,12 @@ description: >
object 'O' is not pushed into the returned array.
---*/
- var arr = [0, 1, 2];
+var arr = [0, 1, 2];
- Array.prototype.protoProperty = "protoArray";
+Array.prototype.protoProperty = "protoArray";
- var result = Object.getOwnPropertyNames(arr);
+var result = Object.getOwnPropertyNames(arr);
- for (var p in result) {
- assert.notSameValue(result[p], "protoProperty", 'result[p]');
- }
+for (var p in result) {
+ assert.notSameValue(result[p], "protoProperty", 'result[p]');
+}
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-46.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-46.js
index 85773d0cd..0e3d3586f 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-46.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-46.js
@@ -8,17 +8,17 @@ description: >
object 'O' is not pushed into the returned array.
---*/
- var arr = [0, 1, 2];
+var arr = [0, 1, 2];
- Object.defineProperty(Array.prototype, "protoProperty", {
- get: function () {
- return "protoArray";
- },
- configurable: true
- });
+Object.defineProperty(Array.prototype, "protoProperty", {
+ get: function() {
+ return "protoArray";
+ },
+ configurable: true
+});
- var result = Object.getOwnPropertyNames(arr);
+var result = Object.getOwnPropertyNames(arr);
- for (var p in result) {
- assert.notSameValue(result[p], "protoProperty", 'result[p]');
- }
+for (var p in result) {
+ assert.notSameValue(result[p], "protoProperty", 'result[p]');
+}
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-47.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-47.js
index ac4193f20..32c031b16 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-47.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-47.js
@@ -10,16 +10,16 @@ description: >
var propertyFound = false;
- var arr = [0, 1, 2];
- arr.ownProperty = "ownArray";
+var arr = [0, 1, 2];
+arr.ownProperty = "ownArray";
- var result = Object.getOwnPropertyNames(arr);
+var result = Object.getOwnPropertyNames(arr);
- for (var p in result) {
- if (result[p] === "ownProperty") {
- propertyFound = true;
- break;
- }
- }
+for (var p in result) {
+ if (result[p] === "ownProperty") {
+ propertyFound = true;
+ break;
+ }
+}
assert(propertyFound, 'Property not found');
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-48.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-48.js
index 61299ad64..bdb85cf3b 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-48.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-48.js
@@ -10,22 +10,22 @@ description: >
var propertyFound = false;
- var arr = [0, 1, 2];
+var arr = [0, 1, 2];
- Object.defineProperty(arr, "ownProperty", {
- get: function () {
- return "ownArray";
- },
- configurable: true
- });
+Object.defineProperty(arr, "ownProperty", {
+ get: function() {
+ return "ownArray";
+ },
+ configurable: true
+});
- var result = Object.getOwnPropertyNames(arr);
+var result = Object.getOwnPropertyNames(arr);
- for (var p in result) {
- if (result[p] === "ownProperty") {
- propertyFound = true;
- break;
- }
- }
+for (var p in result) {
+ if (result[p] === "ownProperty") {
+ propertyFound = true;
+ break;
+ }
+}
assert(propertyFound, 'Property not found');
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-49.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-49.js
index 442681b96..bb7f61ce9 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-49.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-49.js
@@ -9,8 +9,8 @@ description: >
includes: [compareArray.js]
---*/
- var arr = [0, 1, 2];
- var expected = ["0", "1", "2", "length"];
- var actual = Object.getOwnPropertyNames(arr);
+var arr = [0, 1, 2];
+var expected = ["0", "1", "2", "length"];
+var actual = Object.getOwnPropertyNames(arr);
assert(compareArray(actual, expected), 'compareArray(actual, expected) !== true');
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-50.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-50.js
index d83127151..d6cc46ff2 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-50.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-50.js
@@ -8,14 +8,14 @@ description: >
pushed into the returned Array
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "nonEnumerableProp", {
- value: 10,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "nonEnumerableProp", {
+ value: 10,
+ enumerable: false,
+ configurable: true
+});
- var result = Object.getOwnPropertyNames(obj);
+var result = Object.getOwnPropertyNames(obj);
assert.sameValue(result[0], "nonEnumerableProp", 'result[0]');
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-1.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-1.js
index 988774204..e7cdae41d 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-1.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-1.js
@@ -8,11 +8,11 @@ description: >
true
---*/
- var obj = new Object();
- obj.x = 1;
- obj.y = 2;
- var result = Object.getOwnPropertyNames(obj);
- var desc = Object.getOwnPropertyDescriptor(result,"0");
+var obj = new Object();
+obj.x = 1;
+obj.y = 2;
+var result = Object.getOwnPropertyNames(obj);
+var desc = Object.getOwnPropertyDescriptor(result, "0");
assert.sameValue(desc.enumerable, true, 'desc.enumerable');
assert.sameValue(desc.configurable, true, 'desc.configurable');
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-2.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-2.js
index 30a910696..ac9096e50 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-2.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-2.js
@@ -9,31 +9,33 @@ description: >
includes: [compareArray.js]
---*/
- var obj = { "a": "a" };
+var obj = {
+ "a": "a"
+};
- Object.defineProperty(obj, "b", {
- get: function () {
- return "b";
- },
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "b", {
+ get: function() {
+ return "b";
+ },
+ enumerable: false,
+ configurable: true
+});
- Object.defineProperty(obj, "c", {
- get: function () {
- return "c";
- },
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "c", {
+ get: function() {
+ return "c";
+ },
+ enumerable: true,
+ configurable: true
+});
- Object.defineProperty(obj, "d", {
- value: "d",
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "d", {
+ value: "d",
+ enumerable: false,
+ configurable: true
+});
- var actual = Object.getOwnPropertyNames(obj);
- var expected = ["a", "b", "c", "d"];
+var actual = Object.getOwnPropertyNames(obj);
+var expected = ["a", "b", "c", "d"];
assert(compareArray(actual, expected), 'compareArray(actual, expected) !== true');
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-3.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-3.js
index 27e4eaaf9..701f6c594 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-3.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-3.js
@@ -10,15 +10,17 @@ description: >
var propertyFound = false;
- var obj = { "": "empty" };
+var obj = {
+ "": "empty"
+};
- var result = Object.getOwnPropertyNames(obj);
+var result = Object.getOwnPropertyNames(obj);
- for (var p in result) {
- if (result[p] === "") {
- propertyFound = true;
- break;
- }
- }
+for (var p in result) {
+ if (result[p] === "") {
+ propertyFound = true;
+ break;
+ }
+}
assert(propertyFound, 'Property not found');
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-4.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-4.js
index fdcec3355..41b36b325 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-4.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-4.js
@@ -8,13 +8,15 @@ description: >
writable
---*/
- var obj = { "a": "a" };
+var obj = {
+ "a": "a"
+};
- var result = Object.getOwnPropertyNames(obj);
+var result = Object.getOwnPropertyNames(obj);
- var beforeOverride = (result[0] === "a");
- result[0] = "b";
- var afterOverride = (result[0] === "b");
+var beforeOverride = (result[0] === "a");
+result[0] = "b";
+var afterOverride = (result[0] === "b");
assert(beforeOverride, 'beforeOverride !== true');
assert(afterOverride, 'afterOverride !== true');
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-5.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-5.js
index d6c3a2528..f4dff9c43 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-5.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-5.js
@@ -10,15 +10,17 @@ description: >
var propertyFound = false;
- var obj = { "a": "a" };
+var obj = {
+ "a": "a"
+};
- var result = Object.getOwnPropertyNames(obj);
+var result = Object.getOwnPropertyNames(obj);
- for (var p in result) {
- if (result[p] === "a") {
- propertyFound = true;
- break;
- }
- }
+for (var p in result) {
+ if (result[p] === "a") {
+ propertyFound = true;
+ break;
+ }
+}
assert(propertyFound, 'Property not found');
diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-6.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-6.js
index c46672f7a..c25be8efc 100644
--- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-6.js
+++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-6.js
@@ -8,13 +8,15 @@ description: >
configurable
---*/
- var obj = { "a": "a" };
+var obj = {
+ "a": "a"
+};
- var result = Object.getOwnPropertyNames(obj);
+var result = Object.getOwnPropertyNames(obj);
- var beforeDeleted = (result.hasOwnProperty("0"));
- delete result[0];
- var afterDeleted = (result.hasOwnProperty("0"));
+var beforeDeleted = (result.hasOwnProperty("0"));
+delete result[0];
+var afterDeleted = (result.hasOwnProperty("0"));
assert(beforeDeleted, 'beforeDeleted !== true');
assert.sameValue(afterDeleted, false, 'afterDeleted');
diff --git a/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-with-description.js b/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-with-description.js
index 96102bf16..28bb663bc 100644
--- a/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-with-description.js
+++ b/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-with-description.js
@@ -16,5 +16,3 @@ var syms = Object.getOwnPropertySymbols(obj);
assert.sameValue(syms[0], sym, "Array of symbols returned by `Object.getOwnPropertySymbols(obj)` includes `sym`");
assert.sameValue(syms.length, 1, "The value of `syms.length` is `1`");
-
-
diff --git a/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-without-description.js b/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-without-description.js
index 26a288b03..e1ffb9420 100644
--- a/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-without-description.js
+++ b/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-without-description.js
@@ -16,5 +16,3 @@ var syms = Object.getOwnPropertySymbols(obj);
assert.sameValue(syms[0], sym, "Array of symbols returned by `Object.getOwnPropertySymbols(obj)` includes `sym`");
assert.sameValue(syms.length, 1, "The value of `syms.length` is `1`");
-
-
diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-0-3.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-0-3.js
index 9f8eb76e0..92fc6a78a 100644
--- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-0-3.js
+++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-0-3.js
@@ -8,5 +8,5 @@ description: Object.getPrototypeOf must take 1 parameter
assert.throws(TypeError, function() {
- Object.getPrototypeOf();
+ Object.getPrototypeOf();
});
diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-1-2.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-1-2.js
index 3f73a4c07..453fb2e6b 100644
--- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-1-2.js
+++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-1-2.js
@@ -8,5 +8,5 @@ description: Object.getPrototypeOf throws TypeError if 'O' is null
assert.throws(TypeError, function() {
- Object.getPrototypeOf(null);
+ Object.getPrototypeOf(null);
});
diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-19.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-19.js
index c0e3b2b89..158a99b77 100644
--- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-19.js
+++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-19.js
@@ -8,6 +8,6 @@ description: >
(Object object)
---*/
- var obj = {};
+var obj = {};
assert.sameValue(Object.getPrototypeOf(obj), Object.prototype, 'Object.getPrototypeOf(obj)');
diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-2.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-2.js
index 6802de900..bd53bc4fb 100644
--- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-2.js
+++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-2.js
@@ -11,12 +11,12 @@ description: >
(custom object)
---*/
- function base() {}
+function base() {}
- function derived() {}
- derived.prototype = new base();
+function derived() {}
+derived.prototype = new base();
- var d = new derived();
- var x = Object.getPrototypeOf(d);
+var d = new derived();
+var x = Object.getPrototypeOf(d);
assert.sameValue(x.isPrototypeOf(d), true, 'x.isPrototypeOf(d)');
diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-20.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-20.js
index 062f7af14..a57fb8099 100644
--- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-20.js
+++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-20.js
@@ -8,8 +8,8 @@ description: >
(Function Object)
---*/
- var obj = function (a, b) {
- return a + b;
- };
+var obj = function(a, b) {
+ return a + b;
+};
assert.sameValue(Object.getPrototypeOf(obj), Function.prototype, 'Object.getPrototypeOf(obj)');
diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-21.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-21.js
index 8652973e5..eaf9741a2 100644
--- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-21.js
+++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-21.js
@@ -8,6 +8,6 @@ description: >
(Array object)
---*/
- var arr = [1, 2, 3];
+var arr = [1, 2, 3];
assert.sameValue(Object.getPrototypeOf(arr), Array.prototype, 'Object.getPrototypeOf(arr)');
diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-22.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-22.js
index 13d845f54..c6a7cbdf5 100644
--- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-22.js
+++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-22.js
@@ -8,6 +8,6 @@ description: >
(String object)
---*/
- var obj = new String("abc");
+var obj = new String("abc");
assert.sameValue(Object.getPrototypeOf(obj), String.prototype, 'Object.getPrototypeOf(obj)');
diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-23.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-23.js
index 7b825d970..0ccd5b9ff 100644
--- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-23.js
+++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-23.js
@@ -8,6 +8,6 @@ description: >
(Boolean object)
---*/
- var obj = new Boolean(true);
+var obj = new Boolean(true);
assert.sameValue(Object.getPrototypeOf(obj), Boolean.prototype, 'Object.getPrototypeOf(obj)');
diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-24.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-24.js
index 8a0759e13..50cf883e6 100644
--- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-24.js
+++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-24.js
@@ -8,6 +8,6 @@ description: >
(Number object)
---*/
- var obj = new Number(-3);
+var obj = new Number(-3);
assert.sameValue(Object.getPrototypeOf(obj), Number.prototype, 'Object.getPrototypeOf(obj)');
diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-25.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-25.js
index 0c4707881..9cac45393 100644
--- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-25.js
+++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-25.js
@@ -8,6 +8,6 @@ description: >
(Date object)
---*/
- var obj = new Date();
+var obj = new Date();
assert.sameValue(Object.getPrototypeOf(obj), Date.prototype, 'Object.getPrototypeOf(obj)');
diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-26.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-26.js
index 7b033a2ca..52d9062f7 100644
--- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-26.js
+++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-26.js
@@ -8,6 +8,6 @@ description: >
(RegExp object)
---*/
- var obj = new RegExp();
+var obj = new RegExp();
assert.sameValue(Object.getPrototypeOf(obj), RegExp.prototype, 'Object.getPrototypeOf(obj)');
diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-27.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-27.js
index 9851559ac..bf88c87ff 100644
--- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-27.js
+++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-27.js
@@ -8,6 +8,6 @@ description: >
(Error object)
---*/
- var obj = new Error();
+var obj = new Error();
assert.sameValue(Object.getPrototypeOf(obj), Error.prototype, 'Object.getPrototypeOf(obj)');
diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-28.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-28.js
index a10b2bbaa..7d2fb9911 100644
--- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-28.js
+++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-28.js
@@ -8,9 +8,9 @@ description: >
(the Arguments object)
---*/
- function fun() {
- return arguments;
- }
- var obj = fun(1, true, 3);
+function fun() {
+ return arguments;
+}
+var obj = fun(1, true, 3);
assert.sameValue(Object.getPrototypeOf(obj), Object.prototype, 'Object.getPrototypeOf(obj)');
diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-30.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-30.js
index 9fcd1fac8..3ef083881 100644
--- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-30.js
+++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-30.js
@@ -8,6 +8,6 @@ description: >
(the global object)
---*/
- var proto = Object.getPrototypeOf(this);
+var proto = Object.getPrototypeOf(this);
assert.sameValue(proto.isPrototypeOf(this), true, 'proto.isPrototypeOf(this)');
diff --git a/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-arguments.js b/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-arguments.js
index 4970e7826..22eb267e3 100644
--- a/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-arguments.js
+++ b/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-arguments.js
@@ -19,13 +19,16 @@ info: |
---*/
function f() {
- return Reflect.getOwnPropertyDescriptor(f, 'arguments');
+ return Reflect.getOwnPropertyDescriptor(f, 'arguments');
}
-Reflect.defineProperty(f, 'arguments', { writable: false, configurable: false });
+Reflect.defineProperty(f, 'arguments', {
+ writable: false,
+ configurable: false
+});
var desc = Reflect.getOwnPropertyDescriptor(f, 'arguments');
if (desc && desc.configurable === false && desc.writable === false) {
- var desc2 = f();
- assert.sameValue(desc.value, desc2.value);
+ var desc2 = f();
+ assert.sameValue(desc.value, desc2.value);
}
diff --git a/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-caller.js b/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-caller.js
index 736ccf3ee..93e2fc7c8 100644
--- a/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-caller.js
+++ b/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-caller.js
@@ -19,17 +19,20 @@ info: |
---*/
function f() {
- return Reflect.getOwnPropertyDescriptor(f, 'caller');
+ return Reflect.getOwnPropertyDescriptor(f, 'caller');
}
function g() {
- return f();
+ return f();
}
-Reflect.defineProperty(f, 'caller', { writable: false, configurable: false });
+Reflect.defineProperty(f, 'caller', {
+ writable: false,
+ configurable: false
+});
var desc = Reflect.getOwnPropertyDescriptor(f, 'caller');
if (desc && desc.configurable === false && desc.writable === false) {
- var desc2 = g();
- assert.sameValue(desc.value, desc2.value);
+ var desc2 = g();
+ assert.sameValue(desc.value, desc2.value);
}
diff --git a/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-regexp-$1.js b/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-regexp-$1.js
index 4d80030e9..596c60c2c 100644
--- a/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-regexp-$1.js
+++ b/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-regexp-$1.js
@@ -18,11 +18,14 @@ info: |
one implementation as of January 2017.)
---*/
-Reflect.defineProperty(RegExp, '$1', { writable: false, configurable: false });
+Reflect.defineProperty(RegExp, '$1', {
+ writable: false,
+ configurable: false
+});
var desc = Reflect.getOwnPropertyDescriptor(RegExp, '$1');
if (desc && desc.configurable === false && desc.writable === false) {
- /(x)/.exec('x');
- var desc2 = Reflect.getOwnPropertyDescriptor(RegExp, '$1');
- assert.sameValue(desc.value, desc2.value);
+ /(x)/.exec('x');
+ var desc2 = Reflect.getOwnPropertyDescriptor(RegExp, '$1');
+ assert.sameValue(desc.value, desc2.value);
}
diff --git a/test/built-ins/Object/internals/DefineOwnProperty/consistent-writable-regexp-$1.js b/test/built-ins/Object/internals/DefineOwnProperty/consistent-writable-regexp-$1.js
index 38ab43d2d..38ccdcc64 100644
--- a/test/built-ins/Object/internals/DefineOwnProperty/consistent-writable-regexp-$1.js
+++ b/test/built-ins/Object/internals/DefineOwnProperty/consistent-writable-regexp-$1.js
@@ -16,7 +16,10 @@ info: |
one implementation as of January 2017.)
---*/
-if (Reflect.defineProperty(RegExp, '$1', { writable: false, configurable: false })) {
- var desc = Reflect.getOwnPropertyDescriptor(RegExp, '$1');
- assert.sameValue(desc.writable, false);
+if (Reflect.defineProperty(RegExp, '$1', {
+ writable: false,
+ configurable: false
+ })) {
+ var desc = Reflect.getOwnPropertyDescriptor(RegExp, '$1');
+ assert.sameValue(desc.writable, false);
}
diff --git a/test/built-ins/Object/is/name.js b/test/built-ins/Object/is/name.js
index da73e1a4b..1f20bd106 100644
--- a/test/built-ins/Object/is/name.js
+++ b/test/built-ins/Object/is/name.js
@@ -15,4 +15,3 @@ assert.sameValue(Object.is.name, 'is', "The value of `Object.is.name` is `'is'`"
verifyNotEnumerable(Object.is, "name");
verifyNotWritable(Object.is, "name");
verifyConfigurable(Object.is, "name");
-
diff --git a/test/built-ins/Object/is/not-same-value-x-y-null.js b/test/built-ins/Object/is/not-same-value-x-y-null.js
index c364bc11b..afeb1bf3d 100644
--- a/test/built-ins/Object/is/not-same-value-x-y-null.js
+++ b/test/built-ins/Object/is/not-same-value-x-y-null.js
@@ -17,4 +17,3 @@ description: >
assert.sameValue(Object.is(null), false, "`Object.is(null)` returns `false`");
assert.sameValue(Object.is(null, undefined), false, "`Object.is(null, undefined)` returns `false`");
-
diff --git a/test/built-ins/Object/is/not-same-value-x-y-object.js b/test/built-ins/Object/is/not-same-value-x-y-object.js
index 7ec854c37..b10ec42c2 100644
--- a/test/built-ins/Object/is/not-same-value-x-y-object.js
+++ b/test/built-ins/Object/is/not-same-value-x-y-object.js
@@ -11,22 +11,22 @@ description: >
assert.sameValue(Object.is({}, {}), false, "`Object.is({}, {})` returns `false`");
assert.sameValue(
- Object.is(Object(), Object()),
- false,
- "`Object.is(Object(), Object())` returns `false`"
+ Object.is(Object(), Object()),
+ false,
+ "`Object.is(Object(), Object())` returns `false`"
);
assert.sameValue(
- Object.is(new Object(), new Object()),
- false,
- "`Object.is(new Object(), new Object())` returns `false`"
+ Object.is(new Object(), new Object()),
+ false,
+ "`Object.is(new Object(), new Object())` returns `false`"
);
assert.sameValue(
- Object.is(Object(0), Object(0)),
- false,
- "`Object.is(Object(0), Object(0))` returns `false`"
+ Object.is(Object(0), Object(0)),
+ false,
+ "`Object.is(Object(0), Object(0))` returns `false`"
);
assert.sameValue(
- Object.is(new Object(''), new Object('')),
- false,
- "`Object.is(new Object(''), new Object(''))` returns `false`"
+ Object.is(new Object(''), new Object('')),
+ false,
+ "`Object.is(new Object(''), new Object(''))` returns `false`"
);
diff --git a/test/built-ins/Object/is/not-same-value-x-y-string.js b/test/built-ins/Object/is/not-same-value-x-y-string.js
index 6def9622d..f7c9f4b8a 100644
--- a/test/built-ins/Object/is/not-same-value-x-y-string.js
+++ b/test/built-ins/Object/is/not-same-value-x-y-string.js
@@ -19,9 +19,9 @@ assert.sameValue(Object.is('', true), false, "`Object.is('', true)` returns `fal
assert.sameValue(Object.is('', 0), false, "`Object.is('', 0)` returns `false`");
assert.sameValue(Object.is('', {}), false, "`Object.is('', {})` returns `false`");
assert.sameValue(
- Object.is('', undefined),
- false,
- "`Object.is('', undefined)` returns `false`"
+ Object.is('', undefined),
+ false,
+ "`Object.is('', undefined)` returns `false`"
);
assert.sameValue(Object.is('', null), false, "`Object.is('', null)` returns `false`");
assert.sameValue(Object.is('', NaN), false, "`Object.is('', NaN)` returns `false`");
diff --git a/test/built-ins/Object/is/not-same-value-x-y-symbol.js b/test/built-ins/Object/is/not-same-value-x-y-symbol.js
index 28ccc0a78..b564172ac 100644
--- a/test/built-ins/Object/is/not-same-value-x-y-symbol.js
+++ b/test/built-ins/Object/is/not-same-value-x-y-symbol.js
@@ -14,12 +14,12 @@ features: [Symbol]
---*/
assert.sameValue(
- Object.is(Symbol(), Symbol()),
- false,
- "`Object.is(Symbol(), Symbol())` returns `false`"
+ Object.is(Symbol(), Symbol()),
+ false,
+ "`Object.is(Symbol(), Symbol())` returns `false`"
);
assert.sameValue(
- Object.is(Symbol('description'), Symbol('description')),
- false,
- "`Object.is(Symbol('description'), Symbol('description'))` returns `false`"
+ Object.is(Symbol('description'), Symbol('description')),
+ false,
+ "`Object.is(Symbol('description'), Symbol('description'))` returns `false`"
);
diff --git a/test/built-ins/Object/is/not-same-value-x-y-type.js b/test/built-ins/Object/is/not-same-value-x-y-type.js
index 203f6d061..0f6ff22b4 100644
--- a/test/built-ins/Object/is/not-same-value-x-y-type.js
+++ b/test/built-ins/Object/is/not-same-value-x-y-type.js
@@ -19,27 +19,27 @@ assert.sameValue(Object.is(a, true), false, "`Object.is(a, true)` returns `false
assert.sameValue(Object.is(a, ''), false, "`Object.is(a, '')` returns `false`");
assert.sameValue(Object.is(a, 0), false, "`Object.is(a, 0)` returns `false`");
assert.sameValue(
- Object.is(a, undefined),
- false,
- "`Object.is(a, undefined)` returns `false`"
+ Object.is(a, undefined),
+ false,
+ "`Object.is(a, undefined)` returns `false`"
);
assert.sameValue(Object.is(NaN, true), false, "`Object.is(NaN, true)` returns `false`");
assert.sameValue(Object.is(NaN, ''), false, "`Object.is(NaN, '')` returns `false`");
assert.sameValue(Object.is(NaN, a), false, "`Object.is(NaN, a)` returns `false`");
assert.sameValue(
- Object.is(NaN, undefined),
- false,
- "`Object.is(NaN, undefined)` returns `false`"
+ Object.is(NaN, undefined),
+ false,
+ "`Object.is(NaN, undefined)` returns `false`"
);
assert.sameValue(Object.is(NaN, null), false, "`Object.is(NaN, null)` returns `false`");
assert.sameValue(Object.is(true, 0), false, "`Object.is(true, 0)` returns `false`");
assert.sameValue(Object.is(true, a), false, "`Object.is(true, a)` returns `false`");
assert.sameValue(
- Object.is(true, undefined),
- false,
- "`Object.is(true, undefined)` returns `false`"
+ Object.is(true, undefined),
+ false,
+ "`Object.is(true, undefined)` returns `false`"
);
assert.sameValue(Object.is(true, null), false, "`Object.is(true, null)` returns `false`");
assert.sameValue(Object.is(true, NaN), false, "`Object.is(true, NaN)` returns `false`");
@@ -48,9 +48,9 @@ assert.sameValue(Object.is(true, ''), false, "`Object.is(true, '')` returns `fal
assert.sameValue(Object.is(false, 0), false, "`Object.is(false, 0)` returns `false`");
assert.sameValue(Object.is(false, a), false, "`Object.is(false, a)` returns `false`");
assert.sameValue(
- Object.is(false, undefined),
- false,
- "`Object.is(false, undefined)` returns `false`"
+ Object.is(false, undefined),
+ false,
+ "`Object.is(false, undefined)` returns `false`"
);
assert.sameValue(Object.is(false, null), false, "`Object.is(false, null)` returns `false`");
assert.sameValue(Object.is(false, NaN), false, "`Object.is(false, NaN)` returns `false`");
@@ -59,11 +59,10 @@ assert.sameValue(Object.is(false, ''), false, "`Object.is(false, '')` returns `f
assert.sameValue(Object.is(0, true), false, "`Object.is(0, true)` returns `false`");
assert.sameValue(Object.is(0, a), false, "`Object.is(0, a)` returns `false`");
assert.sameValue(
- Object.is(0, undefined),
- false,
- "`Object.is(0, undefined)` returns `false`"
+ Object.is(0, undefined),
+ false,
+ "`Object.is(0, undefined)` returns `false`"
);
assert.sameValue(Object.is(0, null), false, "`Object.is(0, null)` returns `false`");
assert.sameValue(Object.is(0, NaN), false, "`Object.is(0, NaN)` returns `false`");
assert.sameValue(Object.is(0, ''), false, "`Object.is(0, '')` returns `false`");
-
diff --git a/test/built-ins/Object/is/same-value-x-y-null.js b/test/built-ins/Object/is/same-value-x-y-null.js
index cd770d098..f99164239 100644
--- a/test/built-ins/Object/is/same-value-x-y-null.js
+++ b/test/built-ins/Object/is/same-value-x-y-null.js
@@ -16,4 +16,3 @@ description: >
---*/
assert.sameValue(Object.is(null, null), true, "`Object.is(null, null)` returns `true`");
-
diff --git a/test/built-ins/Object/is/same-value-x-y-string.js b/test/built-ins/Object/is/same-value-x-y-string.js
index e7a7ec3f9..cc2ddf11e 100644
--- a/test/built-ins/Object/is/same-value-x-y-string.js
+++ b/test/built-ins/Object/is/same-value-x-y-string.js
@@ -17,12 +17,12 @@ description: >
assert.sameValue(Object.is('', ''), true, "`Object.is('', '')` returns `true`");
assert.sameValue(
- Object.is('foo', 'foo'),
- true,
- "`Object.is('foo', 'foo')` returns `true`"
+ Object.is('foo', 'foo'),
+ true,
+ "`Object.is('foo', 'foo')` returns `true`"
);
assert.sameValue(
- Object.is(String('foo'), String('foo')),
- true,
- "`Object.is(String('foo'), String('foo'))` returns `true`"
+ Object.is(String('foo'), String('foo')),
+ true,
+ "`Object.is(String('foo'), String('foo'))` returns `true`"
);
diff --git a/test/built-ins/Object/is/symbol-object-is-same-value.js b/test/built-ins/Object/is/symbol-object-is-same-value.js
index 4a58a0927..4e70febdb 100644
--- a/test/built-ins/Object/is/symbol-object-is-same-value.js
+++ b/test/built-ins/Object/is/symbol-object-is-same-value.js
@@ -13,5 +13,3 @@ var symB = Symbol('66');
assert.sameValue(Object.is(symA, symA), true, "`Object.is(symA, symA)` returns `true`");
assert.sameValue(Object.is(symB, symB), true, "`Object.is(symB, symB)` returns `true`");
assert.sameValue(Object.is(symA, symB), false, "`Object.is(symA, symB)` returns `false`");
-
-
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-0-1.js b/test/built-ins/Object/isExtensible/15.2.3.13-0-1.js
index 61dbcf81c..d3c3e04d1 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-0-1.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-0-1.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.13-0-1
description: Object.isExtensible must exist as a function
---*/
- var f = Object.isExtensible ;
+var f = Object.isExtensible;
assert.sameValue(typeof(f), "function", 'typeof(f)');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-0-3.js b/test/built-ins/Object/isExtensible/15.2.3.13-0-3.js
index 0a2533af1..7e0549a7c 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-0-3.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-0-3.js
@@ -11,6 +11,6 @@ description: >
constructor
---*/
- var o = new Object();
+var o = new Object();
assert.sameValue(Object.isExtensible(o), true, 'Object.isExtensible(o)');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-1-1.js b/test/built-ins/Object/isExtensible/15.2.3.13-1-1.js
index eda4c0622..a1dac5f7f 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-1-1.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-1-1.js
@@ -6,4 +6,4 @@ es5id: 15.2.3.13-1-1
description: Object.isExtensible does not throw TypeError if 'O' is undefined
---*/
- Object.isExtensible(undefined);
+Object.isExtensible(undefined);
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-1-2.js b/test/built-ins/Object/isExtensible/15.2.3.13-1-2.js
index e57ddd177..bbc81c9cf 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-1-2.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-1-2.js
@@ -6,4 +6,4 @@ es5id: 15.2.3.13-1-2
description: Object.isExtensible does not throw TypeError if 'O' is null
---*/
- Object.isExtensible(null);
+Object.isExtensible(null);
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-1-3.js b/test/built-ins/Object/isExtensible/15.2.3.13-1-3.js
index 731bc9ada..1703a565f 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-1-3.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-1-3.js
@@ -6,4 +6,4 @@ es5id: 15.2.3.13-1-3
description: Object.isExtensible does not throw TypeError if 'O' is a boolean
---*/
- Object.isExtensible(true);
+Object.isExtensible(true);
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-1-4.js b/test/built-ins/Object/isExtensible/15.2.3.13-1-4.js
index 1eda1dae2..9bada76d8 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-1-4.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-1-4.js
@@ -6,4 +6,4 @@ es5id: 15.2.3.13-1-4
description: Object.isExtensible does not throw TypeError if 'O' is a string
---*/
- Object.isExtensible("abc");
+Object.isExtensible("abc");
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-1.js b/test/built-ins/Object/isExtensible/15.2.3.13-1.js
index 1552eca76..336899779 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-1.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-1.js
@@ -8,4 +8,4 @@ description: >
param is not Object
---*/
- Object.isExtensible(0);
+Object.isExtensible(0);
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-1.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-1.js
index 663ccbbae..5acb42f30 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-1.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-1.js
@@ -9,4 +9,3 @@ description: Object.isExtensible returns true for all built-in objects (Global)
var global = this;
assert(Object.isExtensible(global));
-
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-10.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-10.js
index f55619ab6..297fcdb1d 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-10.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-10.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.13-2-10
description: Object.isExtensible returns true for all built-in objects (RegExp)
---*/
- var e = Object.isExtensible(RegExp);
+var e = Object.isExtensible(RegExp);
assert.sameValue(e, true, 'e');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-11.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-11.js
index 9478698b9..5da2f584a 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-11.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-11.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.13-2-11
description: Object.isExtensible returns true for all built-in objects (Error)
---*/
- var e = Object.isExtensible(Error);
+var e = Object.isExtensible(Error);
assert.sameValue(e, true, 'e');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-12.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-12.js
index 3e369b386..a00976821 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-12.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-12.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.13-2-12
description: Object.isExtensible returns true for all built-in objects (JSON)
---*/
- var e = Object.isExtensible(JSON);
+var e = Object.isExtensible(JSON);
assert.sameValue(e, true, 'e');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-13.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-13.js
index e15307478..b9d8a8afe 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-13.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-13.js
@@ -8,6 +8,6 @@ description: >
(Function.constructor)
---*/
- var e = Object.isExtensible(Function.constructor);
+var e = Object.isExtensible(Function.constructor);
assert.sameValue(e, true, 'e');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-14.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-14.js
index 7a630e282..f6ac3e9df 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-14.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-14.js
@@ -8,6 +8,6 @@ description: >
(Function.prototype)
---*/
- var e = Object.isExtensible(Function.prototype);
+var e = Object.isExtensible(Function.prototype);
assert.sameValue(e, true, 'e');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-15.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-15.js
index cbb2a4e12..0f0b67881 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-15.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-15.js
@@ -8,6 +8,6 @@ description: >
(Array.prototype)
---*/
- var e = Object.isExtensible(Array.prototype);
+var e = Object.isExtensible(Array.prototype);
assert.sameValue(e, true, 'e');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-16.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-16.js
index 040ecbd67..1e85cdba9 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-16.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-16.js
@@ -8,6 +8,6 @@ description: >
(String.prototype)
---*/
- var e = Object.isExtensible(String.prototype);
+var e = Object.isExtensible(String.prototype);
assert.sameValue(e, true, 'e');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-17.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-17.js
index d47a560da..fa7fa7ef5 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-17.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-17.js
@@ -8,6 +8,6 @@ description: >
(Boolean.prototype)
---*/
- var e = Object.isExtensible(Boolean.prototype);
+var e = Object.isExtensible(Boolean.prototype);
assert.sameValue(e, true, 'e');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-18.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-18.js
index d8a6a3af7..9ff4791f1 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-18.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-18.js
@@ -8,6 +8,6 @@ description: >
(Number.prototype)
---*/
- var e = Object.isExtensible(Number.prototype);
+var e = Object.isExtensible(Number.prototype);
assert.sameValue(e, true, 'e');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-19.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-19.js
index d61214cb3..f7de75356 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-19.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-19.js
@@ -8,6 +8,6 @@ description: >
(Date.prototype)
---*/
- var e = Object.isExtensible(Date.prototype);
+var e = Object.isExtensible(Date.prototype);
assert.sameValue(e, true, 'e');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-2.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-2.js
index 91f0c3293..2fbf18885 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-2.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-2.js
@@ -6,7 +6,7 @@ es5id: 15.2.3.13-2-2
description: Object.isExtensible returns true for all built-in objects (Object)
---*/
- var o = {};
- var e = Object.isExtensible(o);
+var o = {};
+var e = Object.isExtensible(o);
assert.sameValue(e, true, 'e');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-20.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-20.js
index cadbe6cf3..0da24ff0f 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-20.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-20.js
@@ -8,6 +8,6 @@ description: >
(RegExp.prototype)
---*/
- var e = Object.isExtensible(RegExp.prototype);
+var e = Object.isExtensible(RegExp.prototype);
assert.sameValue(e, true, 'e');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-21.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-21.js
index 53a4d7741..c82066c73 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-21.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-21.js
@@ -18,6 +18,6 @@ description: >
(Error.prototype)
---*/
- var e = Object.isExtensible(Error.prototype);
+var e = Object.isExtensible(Error.prototype);
assert.sameValue(e, true, 'e');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-22.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-22.js
index 6c6e1a4c1..8f497f341 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-22.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-22.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.13-2-22
description: Object.isExtensible returns true if 'O' is extensible
---*/
- var obj = {};
+var obj = {};
assert(Object.isExtensible(obj), 'Object.isExtensible(obj) !== true');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-23.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-23.js
index 617caf025..c0294879f 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-23.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-23.js
@@ -6,7 +6,7 @@ es5id: 15.2.3.13-2-23
description: Object.isExtensible returns false if 'O' is not extensible
---*/
- var obj = {};
- Object.preventExtensions(obj);
+var obj = {};
+Object.preventExtensions(obj);
assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-24.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-24.js
index ba0449c59..9910ac50d 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-24.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-24.js
@@ -8,11 +8,11 @@ description: >
prototype that is extensible
---*/
- var proto = {};
+var proto = {};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var obj = new ConstructFun();
+var obj = new ConstructFun();
assert(Object.isExtensible(obj), 'Object.isExtensible(obj) !== true');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-25.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-25.js
index 63b05a7c5..fdb218499 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-25.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-25.js
@@ -8,12 +8,12 @@ description: >
prototype that is not extensible
---*/
- var proto = {};
- Object.preventExtensions(proto);
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var proto = {};
+Object.preventExtensions(proto);
- var obj = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+
+var obj = new ConstructFun();
assert(Object.isExtensible(obj), 'Object.isExtensible(obj) !== true');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-26.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-26.js
index 58c811599..2bf9bb31e 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-26.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-26.js
@@ -8,12 +8,12 @@ description: >
prototype that is extensible
---*/
- var proto = {};
+var proto = {};
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var obj = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var obj = new ConstructFun();
- Object.preventExtensions(obj);
+Object.preventExtensions(obj);
assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-27.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-27.js
index b123e2518..cb9c229e3 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-27.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-27.js
@@ -8,13 +8,13 @@ description: >
prototype that is not extensible
---*/
- var proto = {};
- Object.preventExtensions(proto);
+var proto = {};
+Object.preventExtensions(proto);
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var obj = new ConstructFun();
- Object.preventExtensions(obj);
+var obj = new ConstructFun();
+Object.preventExtensions(obj);
assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-3.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-3.js
index 27fa4c54f..bee167cf6 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-3.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-3.js
@@ -8,8 +8,8 @@ description: >
(Function)
---*/
- function foo() {}
-
- var e = Object.isExtensible(foo);
+function foo() {}
+
+var e = Object.isExtensible(foo);
assert.sameValue(e, true, 'e');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-4.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-4.js
index ffa63fd8b..487138b54 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-4.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-4.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.13-2-4
description: Object.isExtensible returns true for all built-in objects (Array)
---*/
- var e = Object.isExtensible(Array);
+var e = Object.isExtensible(Array);
assert.sameValue(e, true, 'e');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-5.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-5.js
index aff9de634..69b1fae1f 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-5.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-5.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.13-2-5
description: Object.isExtensible returns true for all built-in objects (String)
---*/
- var e = Object.isExtensible(String);
+var e = Object.isExtensible(String);
assert.sameValue(e, true, 'e');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-6.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-6.js
index 73e132cf6..6141fc689 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-6.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-6.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.13-2-6
description: Object.isExtensible returns true for all built-in objects (Boolean)
---*/
- var e = Object.isExtensible(Boolean);
+var e = Object.isExtensible(Boolean);
assert.sameValue(e, true, 'e');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-7.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-7.js
index b7f4dbc18..16293acf6 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-7.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-7.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.13-2-7
description: Object.isExtensible returns true for all built-in objects (Number)
---*/
- var e = Object.isExtensible(Number);
+var e = Object.isExtensible(Number);
assert.sameValue(e, true, 'e');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-8.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-8.js
index 8fa92d614..3cafa5da5 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-8.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-8.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.13-2-8
description: Object.isExtensible returns true for all built-in objects (Math)
---*/
- var e = Object.isExtensible(Math);
+var e = Object.isExtensible(Math);
assert.sameValue(e, true, 'e');
diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-9.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-9.js
index 4da573d20..5a3d0b540 100644
--- a/test/built-ins/Object/isExtensible/15.2.3.13-2-9.js
+++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-9.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.13-2-9
description: Object.isExtensible returns true for all built-in objects (Date)
---*/
- var e = Object.isExtensible(Date);
+var e = Object.isExtensible(Date);
assert.sameValue(e, true, 'e');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-0-1.js b/test/built-ins/Object/isFrozen/15.2.3.12-0-1.js
index 04c9d7704..961068ca9 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-0-1.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-0-1.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.12-0-1
description: Object.isFrozen must exist as a function
---*/
- var f = Object.isFrozen;
+var f = Object.isFrozen;
assert.sameValue(typeof(f), "function", 'typeof(f)');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-1-1.js b/test/built-ins/Object/isFrozen/15.2.3.12-1-1.js
index c1b503894..4bcccdf03 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-1-1.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-1-1.js
@@ -8,4 +8,4 @@ description: >
is undefined
---*/
- Object.isFrozen(undefined);
+Object.isFrozen(undefined);
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-1-2.js b/test/built-ins/Object/isFrozen/15.2.3.12-1-2.js
index a956a69f4..06329b88a 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-1-2.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-1-2.js
@@ -8,4 +8,4 @@ description: >
is null
---*/
- Object.isFrozen(null);
+Object.isFrozen(null);
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-1-3.js b/test/built-ins/Object/isFrozen/15.2.3.12-1-3.js
index 74d543db3..6f11d3568 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-1-3.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-1-3.js
@@ -8,4 +8,4 @@ description: >
is a boolean
---*/
- Object.isFrozen(true);
+Object.isFrozen(true);
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-1-4.js b/test/built-ins/Object/isFrozen/15.2.3.12-1-4.js
index 45c4f61a7..109ed310e 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-1-4.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-1-4.js
@@ -8,4 +8,4 @@ description: >
is a string
---*/
- Object.isFrozen("abc");
+Object.isFrozen("abc");
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-1-5.js b/test/built-ins/Object/isFrozen/15.2.3.12-1-5.js
index 04a495bc1..91e68ede6 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-1-5.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-1-5.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.12-1-5
description: Object.isFrozen applies to dense array
---*/
- var obj = Object.freeze([0, 1, 2]);
+var obj = Object.freeze([0, 1, 2]);
assert(Object.isFrozen(obj), 'Object.isFrozen(obj) !== true');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-1-6.js b/test/built-ins/Object/isFrozen/15.2.3.12-1-6.js
index 1c8e88cd0..d3168dddc 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-1-6.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-1-6.js
@@ -6,9 +6,9 @@ es5id: 15.2.3.12-1-6
description: Object.isFrozen applies to sparse array
---*/
- var sparseArr = [0, 1];
- sparseArr[10000] = 10000;
+var sparseArr = [0, 1];
+sparseArr[10000] = 10000;
- sparseArr = Object.freeze(sparseArr);
+sparseArr = Object.freeze(sparseArr);
assert(Object.isFrozen(sparseArr), 'Object.isFrozen(sparseArr) !== true');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-1-7.js b/test/built-ins/Object/isFrozen/15.2.3.12-1-7.js
index 5d9df9679..4aedb181c 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-1-7.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-1-7.js
@@ -8,6 +8,10 @@ description: >
named properties
---*/
- var obj = Object.freeze({ 0: 0, 1: 1, 1000: 1000 });
+var obj = Object.freeze({
+ 0: 0,
+ 1: 1,
+ 1000: 1000
+});
assert(Object.isFrozen(obj), 'Object.isFrozen(obj) !== true');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-1.js b/test/built-ins/Object/isFrozen/15.2.3.12-1.js
index eeafda571..86e9f0608 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-1.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-1.js
@@ -8,4 +8,4 @@ description: >
not Object
---*/
- Object.isFrozen(0);
+Object.isFrozen(0);
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-1.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-1.js
index 29dbb7d46..3c7de20a1 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-2-1.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-1.js
@@ -8,18 +8,18 @@ description: >
the for each loop
---*/
- var proto = {};
- Object.defineProperty(proto, "Father", {
- value: 10,
- writable: false,
- configurable: true
- });
+var proto = {};
+Object.defineProperty(proto, "Father", {
+ value: 10,
+ writable: false,
+ configurable: true
+});
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var child = new Con();
+var child = new Con();
- Object.preventExtensions(child);
+Object.preventExtensions(child);
assert(Object.isFrozen(child), 'Object.isFrozen(child) !== true');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-2.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-2.js
index e7fa25860..b4c795992 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-2-2.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-2.js
@@ -8,24 +8,25 @@ description: >
into the for each loop
---*/
- var proto = {};
-
- function get_func() {
- return 10;
- }
- function set_func() { }
+var proto = {};
- Object.defineProperty(proto, "Father", {
- get: get_func,
- set: set_func,
- configurable: true
- });
+function get_func() {
+ return 10;
+}
- var Con = function () { };
- Con.prototype = proto;
+function set_func() {}
- var child = new Con();
+Object.defineProperty(proto, "Father", {
+ get: get_func,
+ set: set_func,
+ configurable: true
+});
- Object.preventExtensions(child);
+var Con = function() {};
+Con.prototype = proto;
+
+var child = new Con();
+
+Object.preventExtensions(child);
assert(Object.isFrozen(child), 'Object.isFrozen(child) !== true');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-1.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-1.js
index b254239ce..e736ff86e 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-1.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-1.js
@@ -6,14 +6,14 @@ es5id: 15.2.3.12-2-a-1
description: Object.isFrozen - 'P' is own data property
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "foo", {
- value: 12,
- writable: true,
- configurable: false
- });
+Object.defineProperty(obj, "foo", {
+ value: 12,
+ writable: true,
+ configurable: false
+});
- Object.preventExtensions(obj);
+Object.preventExtensions(obj);
assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-11.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-11.js
index b937a4f69..9f8ffba27 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-11.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-11.js
@@ -6,12 +6,12 @@ es5id: 15.2.3.12-2-a-11
description: Object.isFrozen - 'O' is the Arguments object
---*/
- var arg;
+var arg;
- (function fun() {
- arg = arguments;
- }(1, 2, 3));
+(function fun() {
+ arg = arguments;
+}(1, 2, 3));
- Object.preventExtensions(arg);
+Object.preventExtensions(arg);
assert.sameValue(Object.isFrozen(arg), false, 'Object.isFrozen(arg)');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-12.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-12.js
index 9c1031b95..6d3886377 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-12.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-12.js
@@ -6,10 +6,10 @@ es5id: 15.2.3.12-2-a-12
description: Object.isFrozen - 'O' is a String object
---*/
- var obj = new String("abc");
+var obj = new String("abc");
- obj.len = 100;
+obj.len = 100;
- Object.preventExtensions(obj);
+Object.preventExtensions(obj);
assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-13.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-13.js
index bdcdb212d..01ba00c36 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-13.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-13.js
@@ -6,14 +6,14 @@ es5id: 15.2.3.12-2-a-13
description: Object.isFrozen - 'O' is a Function object
---*/
- var obj = function () { };
-
- Object.defineProperty(obj, "property", {
- value: 12,
- writable: true,
- configurable: false
- });
+var obj = function() {};
- Object.preventExtensions(obj);
+Object.defineProperty(obj, "property", {
+ value: 12,
+ writable: true,
+ configurable: false
+});
+
+Object.preventExtensions(obj);
assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-14.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-14.js
index 66eb7cf7e..dc0b65f3f 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-14.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-14.js
@@ -6,9 +6,9 @@ es5id: 15.2.3.12-2-a-14
description: Object.isFrozen - 'O' is an Array object
---*/
- var obj = [2];
- obj.len = 200;
+var obj = [2];
+obj.len = 200;
- Object.preventExtensions(obj);
+Object.preventExtensions(obj);
assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-2.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-2.js
index b1714fd6a..d769a465a 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-2.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-2.js
@@ -8,24 +8,24 @@ description: >
inherited data property
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "foo", {
- value: 9,
- writable: false,
- configurable: false
- });
+Object.defineProperty(proto, "foo", {
+ value: 9,
+ writable: false,
+ configurable: false
+});
- var Con = function () { };
- Con.prototype = proto;
- var child = new Con();
+var Con = function() {};
+Con.prototype = proto;
+var child = new Con();
- Object.defineProperty(child, "foo", {
- value: 12,
- writable: true,
- configurable: false
- });
+Object.defineProperty(child, "foo", {
+ value: 12,
+ writable: true,
+ configurable: false
+});
- Object.preventExtensions(child);
+Object.preventExtensions(child);
assert.sameValue(Object.isFrozen(child), false, 'Object.isFrozen(child)');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-3.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-3.js
index 80b28f1ac..7fc07b2b6 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-3.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-3.js
@@ -8,25 +8,25 @@ description: >
inherited accessor property
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "foo", {
- get: function () {
- return 9;
- },
- configurable: false
- });
+Object.defineProperty(proto, "foo", {
+ get: function() {
+ return 9;
+ },
+ configurable: false
+});
- var Con = function () { };
- Con.prototype = proto;
- var child = new Con();
+var Con = function() {};
+Con.prototype = proto;
+var child = new Con();
- Object.defineProperty(child, "foo", {
- value: 12,
- configurable: true
- });
+Object.defineProperty(child, "foo", {
+ value: 12,
+ configurable: true
+});
- Object.preventExtensions(child);
+Object.preventExtensions(child);
assert.sameValue(Object.isFrozen(child), false, 'Object.isFrozen(child)');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-4.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-4.js
index 318d43be5..d9e2ce407 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-4.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-4.js
@@ -6,14 +6,14 @@ es5id: 15.2.3.12-2-a-4
description: Object.isFrozen - 'P' is own accessor property
---*/
- var obj = {};
- Object.defineProperty(obj, "foo", {
- get: function () {
- return 9;
- },
- configurable: true
- });
+var obj = {};
+Object.defineProperty(obj, "foo", {
+ get: function() {
+ return 9;
+ },
+ configurable: true
+});
- Object.preventExtensions(obj);
+Object.preventExtensions(obj);
assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-5.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-5.js
index 0164b8a7a..db4bf0df1 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-5.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-5.js
@@ -8,24 +8,24 @@ description: >
inherited data property
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "foo", {
- value: 12,
- configurable: false
- });
+Object.defineProperty(proto, "foo", {
+ value: 12,
+ configurable: false
+});
- var Con = function () { };
- Con.prototype = proto;
- var child = new Con();
+var Con = function() {};
+Con.prototype = proto;
+var child = new Con();
- Object.defineProperty(child, "foo", {
- get: function () {
- return 9;
- },
- configurable: true
- });
+Object.defineProperty(child, "foo", {
+ get: function() {
+ return 9;
+ },
+ configurable: true
+});
- Object.preventExtensions(child);
+Object.preventExtensions(child);
assert.sameValue(Object.isFrozen(child), false, 'Object.isFrozen(child)');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-6.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-6.js
index f010ceee0..47cbc5062 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-6.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-6.js
@@ -8,27 +8,27 @@ description: >
inherited accessor property
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "foo", {
- get: function () {
- return 12;
- },
- configurable: false
- });
+Object.defineProperty(proto, "foo", {
+ get: function() {
+ return 12;
+ },
+ configurable: false
+});
- var Con = function () { };
- Con.prototype = proto;
- var child = new Con();
+var Con = function() {};
+Con.prototype = proto;
+var child = new Con();
- Object.defineProperty(child, "foo", {
- get: function () {
- return 9;
- },
- configurable: true
- });
+Object.defineProperty(child, "foo", {
+ get: function() {
+ return 9;
+ },
+ configurable: true
+});
- Object.preventExtensions(child);
+Object.preventExtensions(child);
assert.sameValue(Object.isFrozen(child), false, 'Object.isFrozen(child)');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-7.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-7.js
index 054f21626..34310b0a9 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-7.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-7.js
@@ -8,12 +8,12 @@ description: >
function
---*/
- var obj = {};
- Object.defineProperty(obj, "foo", {
- set: function () { },
- configurable: true
- });
+var obj = {};
+Object.defineProperty(obj, "foo", {
+ set: function() {},
+ configurable: true
+});
- Object.preventExtensions(obj);
+Object.preventExtensions(obj);
assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-8.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-8.js
index 7ebdca6bc..251b7760c 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-8.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-8.js
@@ -8,24 +8,24 @@ description: >
function that overrides an inherited accessor property
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "foo", {
- get: function () {
- return 9;
- },
- configurable: false
- });
+Object.defineProperty(proto, "foo", {
+ get: function() {
+ return 9;
+ },
+ configurable: false
+});
- var Con = function () { };
- Con.prototype = proto;
- var child = new Con();
+var Con = function() {};
+Con.prototype = proto;
+var child = new Con();
- Object.defineProperty(child, "foo", {
- set: function () { },
- configurable: true
- });
+Object.defineProperty(child, "foo", {
+ set: function() {},
+ configurable: true
+});
- Object.preventExtensions(child);
+Object.preventExtensions(child);
assert.sameValue(Object.isFrozen(child), false, 'Object.isFrozen(child)');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-b-i-1.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-b-i-1.js
index 4a1edc14b..ca7903b33 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-2-b-i-1.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-b-i-1.js
@@ -8,12 +8,12 @@ description: >
property
---*/
- var obj = {};
- Object.defineProperty(obj, "foo", {
- value: 20,
- writable: true,
- configurable: false
- });
- Object.preventExtensions(obj);
+var obj = {};
+Object.defineProperty(obj, "foo", {
+ value: 20,
+ writable: true,
+ configurable: false
+});
+Object.preventExtensions(obj);
assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-c-1.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-c-1.js
index d56ce37ac..3d4603ee7 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-2-c-1.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-c-1.js
@@ -8,13 +8,13 @@ description: >
data property
---*/
- var obj = {};
- Object.defineProperty(obj, "foo", {
- value: 20,
- writable: false,
- configurable: true
- });
+var obj = {};
+Object.defineProperty(obj, "foo", {
+ value: 20,
+ writable: false,
+ configurable: true
+});
- Object.preventExtensions(obj);
+Object.preventExtensions(obj);
assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-c-2.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-c-2.js
index b1e4d1f19..ad7d4e076 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-2-c-2.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-c-2.js
@@ -8,19 +8,20 @@ description: >
accessor property
---*/
- var obj = {};
+var obj = {};
- function get_func() {
- return 10;
- }
- function set_func() { }
+function get_func() {
+ return 10;
+}
- Object.defineProperty(obj, "foo", {
- get: get_func,
- set: set_func,
- configurable: true
- });
+function set_func() {}
- Object.preventExtensions(obj);
+Object.defineProperty(obj, "foo", {
+ get: get_func,
+ set: set_func,
+ configurable: true
+});
+
+Object.preventExtensions(obj);
assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-10.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-10.js
index 10574131c..29e85f0b2 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-10.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-10.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-10
description: Object.isFrozen returns false for all built-in objects (Boolean)
---*/
- var b = Object.isFrozen(Boolean);
+var b = Object.isFrozen(Boolean);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-11.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-11.js
index 56d3cc613..76bec9198 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-11.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-11.js
@@ -8,6 +8,6 @@ description: >
(Boolean.prototype)
---*/
- var b = Object.isFrozen(Boolean.prototype);
+var b = Object.isFrozen(Boolean.prototype);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-12.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-12.js
index 1990a4753..d8c46943e 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-12.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-12.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-12
description: Object.isFrozen returns false for all built-in objects (Number)
---*/
- var b = Object.isFrozen(Number);
+var b = Object.isFrozen(Number);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-13.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-13.js
index a23a21495..7cd89226e 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-13.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-13.js
@@ -8,6 +8,6 @@ description: >
(Number.prototype)
---*/
- var b = Object.isFrozen(Number.prototype);
+var b = Object.isFrozen(Number.prototype);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-14.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-14.js
index 84878798d..63abccb27 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-14.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-14.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-14
description: Object.isFrozen returns false for all built-in objects (Math)
---*/
- var b = Object.isFrozen(Math);
+var b = Object.isFrozen(Math);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-15.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-15.js
index 8792cdae9..ca66a01a5 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-15.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-15.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-15
description: Object.isFrozen returns false for all built-in objects (Date)
---*/
- var b = Object.isFrozen(Date);
+var b = Object.isFrozen(Date);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-16.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-16.js
index 98ad1f1d7..1e873c82a 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-16.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-16.js
@@ -8,6 +8,6 @@ description: >
(Date.prototype)
---*/
- var b = Object.isFrozen(Date.prototype);
+var b = Object.isFrozen(Date.prototype);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-17.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-17.js
index 17fbf439d..cfecb1f86 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-17.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-17.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-17
description: Object.isFrozen returns false for all built-in objects (RegExp)
---*/
- var b = Object.isFrozen(RegExp);
+var b = Object.isFrozen(RegExp);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-18.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-18.js
index a2afec3b8..120f9f023 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-18.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-18.js
@@ -8,6 +8,6 @@ description: >
(RegExp.prototype)
---*/
- var b = Object.isFrozen(RegExp.prototype);
+var b = Object.isFrozen(RegExp.prototype);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-19.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-19.js
index 3ed4a1a02..27540052d 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-19.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-19.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-19
description: Object.isFrozen returns false for all built-in objects (Error)
---*/
- var b = Object.isFrozen(Error);
+var b = Object.isFrozen(Error);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-2.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-2.js
index 608346f73..d430fa061 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-2.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-2.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-2
description: Object.isFrozen returns false for all built-in objects (Object)
---*/
- var b = Object.isFrozen(Object);
+var b = Object.isFrozen(Object);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-20.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-20.js
index 598f3d746..2390d1b45 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-20.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-20.js
@@ -8,6 +8,6 @@ description: >
(Error.prototype)
---*/
- var b = Object.isFrozen(Error.prototype);
+var b = Object.isFrozen(Error.prototype);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-21.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-21.js
index 3c04257c3..23ce9738d 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-21.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-21.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-21
description: Object.isFrozen returns false for all built-in objects (EvalError)
---*/
- var b = Object.isFrozen(EvalError);
+var b = Object.isFrozen(EvalError);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-22.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-22.js
index b9ca47ad7..0872dd4ca 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-22.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-22.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-22
description: Object.isFrozen returns false for all built-in objects (RangeError)
---*/
- var b = Object.isFrozen(RangeError);
+var b = Object.isFrozen(RangeError);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-23.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-23.js
index e04d9582e..0f97a743c 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-23.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-23.js
@@ -8,6 +8,6 @@ description: >
(ReferenceError)
---*/
- var b = Object.isFrozen(ReferenceError);
+var b = Object.isFrozen(ReferenceError);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-24.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-24.js
index dd468ba64..11f725e2c 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-24.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-24.js
@@ -8,6 +8,6 @@ description: >
(SyntaxError)
---*/
- var b = Object.isFrozen(SyntaxError);
+var b = Object.isFrozen(SyntaxError);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-25.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-25.js
index 2d222a0a6..be3e3f3bd 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-25.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-25.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-25
description: Object.isFrozen returns false for all built-in objects (TypeError)
---*/
- var b = Object.isFrozen(TypeError);
+var b = Object.isFrozen(TypeError);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-26.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-26.js
index 657d66790..c93ac5547 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-26.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-26.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-26
description: Object.isFrozen returns false for all built-in objects (URIError)
---*/
- var b = Object.isFrozen(URIError);
+var b = Object.isFrozen(URIError);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-27.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-27.js
index 05c395fce..5a03f01ed 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-27.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-27.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-27
description: Object.isFrozen returns false for all built-in objects (JSON)
---*/
- var b = Object.isFrozen(JSON);
+var b = Object.isFrozen(JSON);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-28.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-28.js
index 8bebd4ece..9462b94cb 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-28.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-28.js
@@ -8,27 +8,28 @@ description: >
not writable and not configurable, and 'O' is not extensible
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "foo1", {
- value: 20,
- writable: false,
- enumerable: false,
- configurable: false
- });
+Object.defineProperty(obj, "foo1", {
+ value: 20,
+ writable: false,
+ enumerable: false,
+ configurable: false
+});
- function get_func() {
- return 10;
- }
- function set_func() { }
+function get_func() {
+ return 10;
+}
- Object.defineProperty(obj, "foo2", {
- get: get_func,
- set: set_func,
- configurable: false
- });
+function set_func() {}
- Object.preventExtensions(obj);
+Object.defineProperty(obj, "foo2", {
+ get: get_func,
+ set: set_func,
+ configurable: false
+});
+
+Object.preventExtensions(obj);
assert(Object.isFrozen(obj), 'Object.isFrozen(obj) !== true');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-3.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-3.js
index 8911f64dd..50901f10e 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-3.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-3.js
@@ -8,6 +8,6 @@ description: >
(Object.prototype)
---*/
- var b = Object.isFrozen(Object.prototype);
+var b = Object.isFrozen(Object.prototype);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-4.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-4.js
index 0c3cacdfe..2c677139e 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-4.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-4.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-4
description: Object.isFrozen returns false for all built-in objects (Function)
---*/
- var b = Object.isFrozen(Function);
+var b = Object.isFrozen(Function);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-5.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-5.js
index a4c70fff9..4a0ea7303 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-5.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-5.js
@@ -8,6 +8,6 @@ description: >
(Function.prototype)
---*/
- var b = Object.isFrozen(Function.prototype);
+var b = Object.isFrozen(Function.prototype);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-6.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-6.js
index d3e9faa56..5f2e0531a 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-6.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-6.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-6
description: Object.isFrozen returns false for all built-in objects (Array)
---*/
- var b = Object.isFrozen(Array);
+var b = Object.isFrozen(Array);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-7.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-7.js
index fce437065..de24a2caf 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-7.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-7.js
@@ -8,6 +8,6 @@ description: >
(Array.prototype)
---*/
- var b = Object.isFrozen(Array.prototype);
+var b = Object.isFrozen(Array.prototype);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-8.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-8.js
index caa6c4c38..2c79c441a 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-8.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-8.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-8
description: Object.isFrozen returns false for all built-in objects (String)
---*/
- var b = Object.isFrozen(String);
+var b = Object.isFrozen(String);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-9.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-9.js
index ad482d825..9d37dd788 100644
--- a/test/built-ins/Object/isFrozen/15.2.3.12-3-9.js
+++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-9.js
@@ -8,6 +8,6 @@ description: >
(String.prototype)
---*/
- var b = Object.isFrozen(String.prototype);
+var b = Object.isFrozen(String.prototype);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-0-1.js b/test/built-ins/Object/isSealed/15.2.3.11-0-1.js
index 53d2c5190..9e0a143b1 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-0-1.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-0-1.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.11-0-1
description: Object.isSealed must exist as a function
---*/
- var f = Object.isSealed;
+var f = Object.isSealed;
assert.sameValue(typeof(f), "function", 'typeof(f)');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-1.js b/test/built-ins/Object/isSealed/15.2.3.11-1.js
index ec43eb5c7..f0a14907d 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-1.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-1.js
@@ -8,4 +8,4 @@ description: >
not Object
---*/
- Object.isSealed(0);
+Object.isSealed(0);
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-10.js b/test/built-ins/Object/isSealed/15.2.3.11-4-10.js
index 726b81344..676ae785a 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-10.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-10.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-10
description: Object.isSealed returns false for all built-in objects (Boolean)
---*/
- var b = Object.isSealed(Boolean);
+var b = Object.isSealed(Boolean);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-11.js b/test/built-ins/Object/isSealed/15.2.3.11-4-11.js
index d9f961663..b3a9f75d2 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-11.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-11.js
@@ -8,6 +8,6 @@ description: >
(Boolean.prototype)
---*/
- var b = Object.isSealed(Boolean.prototype);
+var b = Object.isSealed(Boolean.prototype);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-12.js b/test/built-ins/Object/isSealed/15.2.3.11-4-12.js
index c14303965..dc6d09025 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-12.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-12.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-12
description: Object.isSealed returns false for all built-in objects (Number)
---*/
- var b = Object.isSealed(Number);
+var b = Object.isSealed(Number);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-13.js b/test/built-ins/Object/isSealed/15.2.3.11-4-13.js
index 0e6484ede..03464976a 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-13.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-13.js
@@ -8,6 +8,6 @@ description: >
(Number.prototype)
---*/
- var b = Object.isSealed(Number.prototype);
+var b = Object.isSealed(Number.prototype);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-14.js b/test/built-ins/Object/isSealed/15.2.3.11-4-14.js
index 663d6fae8..3d5ce6363 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-14.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-14.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-14
description: Object.isSealed returns false for all built-in objects (Math)
---*/
- var b = Object.isSealed(Math);
+var b = Object.isSealed(Math);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-15.js b/test/built-ins/Object/isSealed/15.2.3.11-4-15.js
index 20f8f82b5..8ae66ffa6 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-15.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-15.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-15
description: Object.isSealed returns false for all built-in objects (Date)
---*/
- var b = Object.isSealed(Date);
+var b = Object.isSealed(Date);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-16.js b/test/built-ins/Object/isSealed/15.2.3.11-4-16.js
index d5a720f9a..5655bbd12 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-16.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-16.js
@@ -8,6 +8,6 @@ description: >
(Date.prototype)
---*/
- var b = Object.isSealed(Date.prototype);
+var b = Object.isSealed(Date.prototype);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-17.js b/test/built-ins/Object/isSealed/15.2.3.11-4-17.js
index 7e019b180..14168a425 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-17.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-17.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-17
description: Object.isSealed returns false for all built-in objects (RegExp)
---*/
- var b = Object.isSealed(RegExp);
+var b = Object.isSealed(RegExp);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-18.js b/test/built-ins/Object/isSealed/15.2.3.11-4-18.js
index 5d009ad4e..c515e713e 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-18.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-18.js
@@ -8,6 +8,6 @@ description: >
(RegExp.prototype)
---*/
- var b = Object.isSealed(RegExp.prototype);
+var b = Object.isSealed(RegExp.prototype);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-19.js b/test/built-ins/Object/isSealed/15.2.3.11-4-19.js
index 76147bf79..9d536645a 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-19.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-19.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-19
description: Object.isSealed returns false for all built-in objects (Error)
---*/
- var b = Object.isSealed(Error);
+var b = Object.isSealed(Error);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-2.js b/test/built-ins/Object/isSealed/15.2.3.11-4-2.js
index f870603af..39a783dda 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-2.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-2.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-2
description: Object.isSealed returns false for all built-in objects (Object)
---*/
- var b = Object.isSealed(Object);
+var b = Object.isSealed(Object);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-20.js b/test/built-ins/Object/isSealed/15.2.3.11-4-20.js
index 6fcc308ea..7402f2ae4 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-20.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-20.js
@@ -8,6 +8,6 @@ description: >
(Error.prototype)
---*/
- var b = Object.isSealed(Error.prototype);
+var b = Object.isSealed(Error.prototype);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-21.js b/test/built-ins/Object/isSealed/15.2.3.11-4-21.js
index 3deb97a26..db352fe93 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-21.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-21.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-21
description: Object.isSealed returns false for all built-in objects (EvalError)
---*/
- var b = Object.isSealed(EvalError);
+var b = Object.isSealed(EvalError);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-22.js b/test/built-ins/Object/isSealed/15.2.3.11-4-22.js
index 5519b667e..c45c2e31d 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-22.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-22.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-22
description: Object.isSealed returns false for all built-in objects (RangeError)
---*/
- var b = Object.isSealed(RangeError);
+var b = Object.isSealed(RangeError);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-23.js b/test/built-ins/Object/isSealed/15.2.3.11-4-23.js
index 47c86f229..772fff43d 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-23.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-23.js
@@ -8,6 +8,6 @@ description: >
(ReferenceError)
---*/
- var b = Object.isSealed(ReferenceError);
+var b = Object.isSealed(ReferenceError);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-24.js b/test/built-ins/Object/isSealed/15.2.3.11-4-24.js
index e8e181fa0..63c9f3bad 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-24.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-24.js
@@ -8,6 +8,6 @@ description: >
(SyntaxError)
---*/
- var b = Object.isSealed(SyntaxError);
+var b = Object.isSealed(SyntaxError);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-25.js b/test/built-ins/Object/isSealed/15.2.3.11-4-25.js
index 701280588..7fd0e3d60 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-25.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-25.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-25
description: Object.isSealed returns false for all built-in objects (TypeError)
---*/
- var b = Object.isSealed(TypeError);
+var b = Object.isSealed(TypeError);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-26.js b/test/built-ins/Object/isSealed/15.2.3.11-4-26.js
index 16676f93f..dfad7091a 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-26.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-26.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-26
description: Object.isSealed returns false for all built-in objects (URIError)
---*/
- var b = Object.isSealed(URIError);
+var b = Object.isSealed(URIError);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-27.js b/test/built-ins/Object/isSealed/15.2.3.11-4-27.js
index cbcf00153..8804364c0 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-27.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-27.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-27
description: Object.isSealed returns false for all built-in objects (JSON)
---*/
- var b = Object.isSealed(JSON);
+var b = Object.isSealed(JSON);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-3.js b/test/built-ins/Object/isSealed/15.2.3.11-4-3.js
index 2d72b5092..8eb014422 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-3.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-3.js
@@ -8,6 +8,6 @@ description: >
(Object.prototype)
---*/
- var b = Object.isSealed(Object.prototype);
+var b = Object.isSealed(Object.prototype);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-4.js b/test/built-ins/Object/isSealed/15.2.3.11-4-4.js
index e3acd56f9..bfdbb73a3 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-4.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-4.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-4
description: Object.isSealed returns false for all built-in objects (Function)
---*/
- var b = Object.isSealed(Function);
+var b = Object.isSealed(Function);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-5.js b/test/built-ins/Object/isSealed/15.2.3.11-4-5.js
index 66f00fd51..e2cd6604a 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-5.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-5.js
@@ -8,6 +8,6 @@ description: >
(Function.prototype)
---*/
- var b = Object.isSealed(Function.prototype);
+var b = Object.isSealed(Function.prototype);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-6.js b/test/built-ins/Object/isSealed/15.2.3.11-4-6.js
index 1a5fd782f..bb6865144 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-6.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-6.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-6
description: Object.isSealed returns false for all built-in objects (Array)
---*/
- var b = Object.isSealed(Array);
+var b = Object.isSealed(Array);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-7.js b/test/built-ins/Object/isSealed/15.2.3.11-4-7.js
index 7d76da8ac..e10e502d9 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-7.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-7.js
@@ -8,6 +8,6 @@ description: >
(Array.prototype)
---*/
- var b = Object.isSealed(Array.prototype);
+var b = Object.isSealed(Array.prototype);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-8.js b/test/built-ins/Object/isSealed/15.2.3.11-4-8.js
index 2c0fd3e58..086d81815 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-8.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-8.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-8
description: Object.isSealed returns false for all built-in objects (String)
---*/
- var b = Object.isSealed(String);
+var b = Object.isSealed(String);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-9.js b/test/built-ins/Object/isSealed/15.2.3.11-4-9.js
index dbea6040b..38dfa9883 100644
--- a/test/built-ins/Object/isSealed/15.2.3.11-4-9.js
+++ b/test/built-ins/Object/isSealed/15.2.3.11-4-9.js
@@ -8,6 +8,6 @@ description: >
(String.prototype)
---*/
- var b = Object.isSealed(String.prototype);
+var b = Object.isSealed(String.prototype);
assert.sameValue(b, false, 'b');
diff --git a/test/built-ins/Object/keys/15.2.3.14-0-1.js b/test/built-ins/Object/keys/15.2.3.14-0-1.js
index 404294cfb..1697ade0f 100644
--- a/test/built-ins/Object/keys/15.2.3.14-0-1.js
+++ b/test/built-ins/Object/keys/15.2.3.14-0-1.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.14-0-1
description: Object.keys must exist as a function
---*/
- var f = Object.keys;
+var f = Object.keys;
assert.sameValue(typeof(f), "function", 'typeof(f)');
diff --git a/test/built-ins/Object/keys/15.2.3.14-1-1.js b/test/built-ins/Object/keys/15.2.3.14-1-1.js
index b876f99e3..280af951e 100644
--- a/test/built-ins/Object/keys/15.2.3.14-1-1.js
+++ b/test/built-ins/Object/keys/15.2.3.14-1-1.js
@@ -8,4 +8,4 @@ description: >
Object
---*/
- Object.keys(0);
+Object.keys(0);
diff --git a/test/built-ins/Object/keys/15.2.3.14-1-2.js b/test/built-ins/Object/keys/15.2.3.14-1-2.js
index e7ba5f33d..2bce7c0fd 100644
--- a/test/built-ins/Object/keys/15.2.3.14-1-2.js
+++ b/test/built-ins/Object/keys/15.2.3.14-1-2.js
@@ -8,4 +8,4 @@ description: >
Object (boolean)
---*/
- Object.keys(true);
+Object.keys(true);
diff --git a/test/built-ins/Object/keys/15.2.3.14-1-3.js b/test/built-ins/Object/keys/15.2.3.14-1-3.js
index 426324b88..57c584576 100644
--- a/test/built-ins/Object/keys/15.2.3.14-1-3.js
+++ b/test/built-ins/Object/keys/15.2.3.14-1-3.js
@@ -8,4 +8,4 @@ description: >
Object (string)
---*/
- Object.keys('abc');
+Object.keys('abc');
diff --git a/test/built-ins/Object/keys/15.2.3.14-1-4.js b/test/built-ins/Object/keys/15.2.3.14-1-4.js
index fdc5d31ee..3bbfc5872 100644
--- a/test/built-ins/Object/keys/15.2.3.14-1-4.js
+++ b/test/built-ins/Object/keys/15.2.3.14-1-4.js
@@ -10,5 +10,5 @@ description: >
assert.throws(TypeError, function() {
- Object.keys(null);
+ Object.keys(null);
});
diff --git a/test/built-ins/Object/keys/15.2.3.14-1-5.js b/test/built-ins/Object/keys/15.2.3.14-1-5.js
index fa00eb9e0..90e9d3a6d 100644
--- a/test/built-ins/Object/keys/15.2.3.14-1-5.js
+++ b/test/built-ins/Object/keys/15.2.3.14-1-5.js
@@ -10,5 +10,5 @@ description: >
assert.throws(TypeError, function() {
- Object.keys(undefined);
+ Object.keys(undefined);
});
diff --git a/test/built-ins/Object/keys/15.2.3.14-2-1.js b/test/built-ins/Object/keys/15.2.3.14-2-1.js
index 5f2d8f7cb..fbc22455a 100644
--- a/test/built-ins/Object/keys/15.2.3.14-2-1.js
+++ b/test/built-ins/Object/keys/15.2.3.14-2-1.js
@@ -6,8 +6,11 @@ es5id: 15.2.3.14-2-1
description: Object.keys returns the standard built-in Array
---*/
- var o = { x: 1, y: 2};
+var o = {
+ x: 1,
+ y: 2
+};
- var a = Object.keys(o);
+var a = Object.keys(o);
assert.sameValue(Array.isArray(a), true, 'Array.isArray(a)');
diff --git a/test/built-ins/Object/keys/15.2.3.14-2-2.js b/test/built-ins/Object/keys/15.2.3.14-2-2.js
index 2ebe4b0d6..9383f5baf 100644
--- a/test/built-ins/Object/keys/15.2.3.14-2-2.js
+++ b/test/built-ins/Object/keys/15.2.3.14-2-2.js
@@ -6,9 +6,12 @@ es5id: 15.2.3.14-2-2
description: Object.keys returns the standard built-in Array (check [[Class]]
---*/
- var o = { x: 1, y: 2};
+var o = {
+ x: 1,
+ y: 2
+};
- var a = Object.keys(o);
- var s = Object.prototype.toString.call(a);
+var a = Object.keys(o);
+var s = Object.prototype.toString.call(a);
assert.sameValue(s, '[object Array]', 's');
diff --git a/test/built-ins/Object/keys/15.2.3.14-2-3.js b/test/built-ins/Object/keys/15.2.3.14-2-3.js
index 0692d2ad9..f712fe05f 100644
--- a/test/built-ins/Object/keys/15.2.3.14-2-3.js
+++ b/test/built-ins/Object/keys/15.2.3.14-2-3.js
@@ -6,12 +6,15 @@ es5id: 15.2.3.14-2-3
description: Object.keys returns the standard built-in Array (Array overridden)
---*/
- function Array() { }
+function Array() {}
- var o = { x: 1, y: 2};
+var o = {
+ x: 1,
+ y: 2
+};
- var a = Object.keys(o);
+var a = Object.keys(o);
- var s = Object.prototype.toString.call(a);
+var s = Object.prototype.toString.call(a);
assert.sameValue(s, '[object Array]', 's');
diff --git a/test/built-ins/Object/keys/15.2.3.14-2-4.js b/test/built-ins/Object/keys/15.2.3.14-2-4.js
index 231c1e761..c4b3c134d 100644
--- a/test/built-ins/Object/keys/15.2.3.14-2-4.js
+++ b/test/built-ins/Object/keys/15.2.3.14-2-4.js
@@ -6,8 +6,11 @@ es5id: 15.2.3.14-2-4
description: Object.keys returns the standard built-in Array that is extensible
---*/
- var o = { x: 1, y: 2};
+var o = {
+ x: 1,
+ y: 2
+};
- var a = Object.keys(o);
+var a = Object.keys(o);
assert.sameValue(Object.isExtensible(a), true, 'Object.isExtensible(a)');
diff --git a/test/built-ins/Object/keys/15.2.3.14-2-5.js b/test/built-ins/Object/keys/15.2.3.14-2-5.js
index 53c37a839..ac6bd951f 100644
--- a/test/built-ins/Object/keys/15.2.3.14-2-5.js
+++ b/test/built-ins/Object/keys/15.2.3.14-2-5.js
@@ -6,8 +6,11 @@ es5id: 15.2.3.14-2-5
description: Object.keys returns the standard built-in Array that is not sealed
---*/
- var o = { x: 1, y: 2};
+var o = {
+ x: 1,
+ y: 2
+};
- var a = Object.keys(o);
+var a = Object.keys(o);
assert.sameValue(Object.isSealed(a), false, 'Object.isSealed(a)');
diff --git a/test/built-ins/Object/keys/15.2.3.14-2-6.js b/test/built-ins/Object/keys/15.2.3.14-2-6.js
index 9026527d6..77fb6260e 100644
--- a/test/built-ins/Object/keys/15.2.3.14-2-6.js
+++ b/test/built-ins/Object/keys/15.2.3.14-2-6.js
@@ -6,8 +6,11 @@ es5id: 15.2.3.14-2-6
description: Object.keys returns the standard built-in Array that is not frozen
---*/
- var o = { x: 1, y: 2};
+var o = {
+ x: 1,
+ y: 2
+};
- var a = Object.keys(o);
+var a = Object.keys(o);
assert.sameValue(Object.isFrozen(a), false, 'Object.isFrozen(a)');
diff --git a/test/built-ins/Object/keys/15.2.3.14-2-7.js b/test/built-ins/Object/keys/15.2.3.14-2-7.js
index 81506d56d..d2134fdd9 100644
--- a/test/built-ins/Object/keys/15.2.3.14-2-7.js
+++ b/test/built-ins/Object/keys/15.2.3.14-2-7.js
@@ -8,22 +8,22 @@ description: >
data or accessor properties
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop1", {
- value: 1001,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop1", {
+ value: 1001,
+ enumerable: false,
+ configurable: true
+});
- Object.defineProperty(obj, "prop2", {
- get: function () {
- return 1002;
- },
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop2", {
+ get: function() {
+ return 1002;
+ },
+ enumerable: false,
+ configurable: true
+});
- var arr = Object.keys(obj);
+var arr = Object.keys(obj);
assert.sameValue(arr.length, 0, 'arr.length');
diff --git a/test/built-ins/Object/keys/15.2.3.14-2-8.js b/test/built-ins/Object/keys/15.2.3.14-2-8.js
index 079e50eca..3b2141a30 100644
--- a/test/built-ins/Object/keys/15.2.3.14-2-8.js
+++ b/test/built-ins/Object/keys/15.2.3.14-2-8.js
@@ -8,28 +8,28 @@ description: >
exist in 'O'
---*/
- var obj = {
- prop1: 1001,
- prop2: function () {
- return 1002;
- }
- };
+var obj = {
+ prop1: 1001,
+ prop2: function() {
+ return 1002;
+ }
+};
- Object.defineProperty(obj, "prop3", {
- value: 1003,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop3", {
+ value: 1003,
+ enumerable: false,
+ configurable: true
+});
- Object.defineProperty(obj, "prop4", {
- get: function () {
- return 1004;
- },
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop4", {
+ get: function() {
+ return 1004;
+ },
+ enumerable: false,
+ configurable: true
+});
- var arr = Object.keys(obj);
+var arr = Object.keys(obj);
assert.sameValue(arr.length, 2, 'arr.length');
assert.sameValue(arr[0], "prop1", 'arr[0]');
diff --git a/test/built-ins/Object/keys/15.2.3.14-3-1.js b/test/built-ins/Object/keys/15.2.3.14-3-1.js
index c54f50d55..a958a69ed 100644
--- a/test/built-ins/Object/keys/15.2.3.14-3-1.js
+++ b/test/built-ins/Object/keys/15.2.3.14-3-1.js
@@ -8,9 +8,12 @@ description: >
enumerable properties
---*/
- var o = { x: 1, y: 2};
+var o = {
+ x: 1,
+ y: 2
+};
- var a = Object.keys(o);
+var a = Object.keys(o);
assert.sameValue(a.length, 2, 'a.length');
assert.sameValue(a[0], 'x', 'a[0]');
diff --git a/test/built-ins/Object/keys/15.2.3.14-3-2.js b/test/built-ins/Object/keys/15.2.3.14-3-2.js
index 2f40b3bfa..4e869eef7 100644
--- a/test/built-ins/Object/keys/15.2.3.14-3-2.js
+++ b/test/built-ins/Object/keys/15.2.3.14-3-2.js
@@ -8,10 +8,10 @@ description: >
enumerable properties (function)
---*/
- function foo() {}
- foo.x = 1;
-
- var a = Object.keys(foo);
+function foo() {}
+foo.x = 1;
+
+var a = Object.keys(foo);
assert.sameValue(a.length, 1, 'a.length');
assert.sameValue(a[0], 'x', 'a[0]');
diff --git a/test/built-ins/Object/keys/15.2.3.14-3-3.js b/test/built-ins/Object/keys/15.2.3.14-3-3.js
index 9d6d1276b..923809d3c 100644
--- a/test/built-ins/Object/keys/15.2.3.14-3-3.js
+++ b/test/built-ins/Object/keys/15.2.3.14-3-3.js
@@ -8,8 +8,8 @@ description: >
enumerable properties (array)
---*/
- var o = [1, 2];
- var a = Object.keys(o);
+var o = [1, 2];
+var a = Object.keys(o);
assert.sameValue(a.length, 2, 'a.length');
assert.sameValue(a[0], '0', 'a[0]');
diff --git a/test/built-ins/Object/keys/15.2.3.14-3-4.js b/test/built-ins/Object/keys/15.2.3.14-3-4.js
index 2d11275d4..8df65c15a 100644
--- a/test/built-ins/Object/keys/15.2.3.14-3-4.js
+++ b/test/built-ins/Object/keys/15.2.3.14-3-4.js
@@ -8,24 +8,26 @@ description: >
given arguments
---*/
- function testArgs2(x, y, z) {
- // Properties of the arguments object are enumerable.
- var a = Object.keys(arguments);
- if (a.length === 2 && a[0] in arguments && a[1] in arguments)
- return true;
- }
- function testArgs3(x, y, z) {
- // Properties of the arguments object are enumerable.
- var a = Object.keys(arguments);
- if (a.length === 3 && a[0] in arguments && a[1] in arguments && a[2] in arguments)
- return true;
- }
- function testArgs4(x, y, z) {
- // Properties of the arguments object are enumerable.
- var a = Object.keys(arguments);
- if (a.length === 4 && a[0] in arguments && a[1] in arguments && a[2] in arguments && a[3] in arguments)
- return true;
- }
+function testArgs2(x, y, z) {
+ // Properties of the arguments object are enumerable.
+ var a = Object.keys(arguments);
+ if (a.length === 2 && a[0] in arguments && a[1] in arguments)
+ return true;
+}
+
+function testArgs3(x, y, z) {
+ // Properties of the arguments object are enumerable.
+ var a = Object.keys(arguments);
+ if (a.length === 3 && a[0] in arguments && a[1] in arguments && a[2] in arguments)
+ return true;
+}
+
+function testArgs4(x, y, z) {
+ // Properties of the arguments object are enumerable.
+ var a = Object.keys(arguments);
+ if (a.length === 4 && a[0] in arguments && a[1] in arguments && a[2] in arguments && a[3] in arguments)
+ return true;
+}
assert(testArgs2(1, 2), 'testArgs2(1, 2) !== true');
assert(testArgs3(1, 2, 3), 'testArgs3(1, 2, 3) !== true');
diff --git a/test/built-ins/Object/keys/15.2.3.14-3-5.js b/test/built-ins/Object/keys/15.2.3.14-3-5.js
index ed4c7b7cb..b7e549ead 100644
--- a/test/built-ins/Object/keys/15.2.3.14-3-5.js
+++ b/test/built-ins/Object/keys/15.2.3.14-3-5.js
@@ -6,11 +6,13 @@ es5id: 15.2.3.14-3-5
description: Object.keys must return a fresh array on each invocation
---*/
- var literal = {a: 1};
- var keysBefore = Object.keys(literal);
- assert.sameValue(keysBefore[0], 'a', 'keysBefore[0]');
- keysBefore[0] = 'x';
- var keysAfter = Object.keys(literal);
+var literal = {
+ a: 1
+};
+var keysBefore = Object.keys(literal);
+assert.sameValue(keysBefore[0], 'a', 'keysBefore[0]');
+keysBefore[0] = 'x';
+var keysAfter = Object.keys(literal);
assert.sameValue(keysBefore[0], 'x', 'keysBefore[0]');
assert.sameValue(keysAfter[0], 'a', 'keysAfter[0]');
diff --git a/test/built-ins/Object/keys/15.2.3.14-3-6.js b/test/built-ins/Object/keys/15.2.3.14-3-6.js
index 582c493bb..783da2d8b 100644
--- a/test/built-ins/Object/keys/15.2.3.14-3-6.js
+++ b/test/built-ins/Object/keys/15.2.3.14-3-6.js
@@ -8,8 +8,8 @@ description: >
Array)
---*/
- var obj = {};
+var obj = {};
- var arr = Object.keys(obj);
+var arr = Object.keys(obj);
assert(arr instanceof Array, 'arr instanceof Array !== true');
diff --git a/test/built-ins/Object/keys/15.2.3.14-3-7.js b/test/built-ins/Object/keys/15.2.3.14-3-7.js
index cea8ccdca..040cdca51 100644
--- a/test/built-ins/Object/keys/15.2.3.14-3-7.js
+++ b/test/built-ins/Object/keys/15.2.3.14-3-7.js
@@ -8,22 +8,25 @@ description: >
own enumerable properties of 'O'
---*/
- var obj = { prop1: 1001, prop2: 1002 };
+var obj = {
+ prop1: 1001,
+ prop2: 1002
+};
- Object.defineProperty(obj, "prop3", {
- value: 1003,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop3", {
+ value: 1003,
+ enumerable: true,
+ configurable: true
+});
- Object.defineProperty(obj, "prop4", {
- get: function () {
- return 1003;
- },
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop4", {
+ get: function() {
+ return 1003;
+ },
+ enumerable: false,
+ configurable: true
+});
- var arr = Object.keys(obj);
+var arr = Object.keys(obj);
assert.sameValue(arr.length, 3, 'arr.length');
diff --git a/test/built-ins/Object/keys/15.2.3.14-4-1.js b/test/built-ins/Object/keys/15.2.3.14-4-1.js
index 57f7ab5a0..3ad642ebd 100644
--- a/test/built-ins/Object/keys/15.2.3.14-4-1.js
+++ b/test/built-ins/Object/keys/15.2.3.14-4-1.js
@@ -6,23 +6,26 @@ es5id: 15.2.3.14-4-1
description: Object.keys - elements of the returned array start from index 0
---*/
- var obj = { prop1: 1001, prop2: 1002 };
+var obj = {
+ prop1: 1001,
+ prop2: 1002
+};
- Object.defineProperty(obj, "prop3", {
- value: 1003,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop3", {
+ value: 1003,
+ enumerable: true,
+ configurable: true
+});
- Object.defineProperty(obj, "prop4", {
- get: function () {
- return 1003;
- },
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop4", {
+ get: function() {
+ return 1003;
+ },
+ enumerable: true,
+ configurable: true
+});
- var arr = Object.keys(obj);
+var arr = Object.keys(obj);
assert(arr.hasOwnProperty(0), 'arr.hasOwnProperty(0) !== true');
assert.sameValue(arr[0], "prop1", 'arr[0]');
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-1.js b/test/built-ins/Object/keys/15.2.3.14-5-1.js
index 8f576efd9..38b86bb5c 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-1.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-1.js
@@ -8,15 +8,15 @@ description: >
returned array
---*/
- var obj = { };
+var obj = {};
- Object.defineProperty(obj, "prop", {
- value: 1003,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ value: 1003,
+ enumerable: true,
+ configurable: true
+});
- var arr = Object.keys(obj);
+var arr = Object.keys(obj);
assert(arr.hasOwnProperty(0), 'arr.hasOwnProperty(0) !== true');
assert.sameValue(arr[0], "prop", 'arr[0]');
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-10.js b/test/built-ins/Object/keys/15.2.3.14-5-10.js
index 7c78da96c..9c6a93b14 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-10.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-10.js
@@ -9,24 +9,24 @@ description: >
in returned array
---*/
- var proto = {};
- Object.defineProperty(proto, "prop", {
- get: function () { },
- enumerable: true,
- configurable: true
- });
- var Con = function () { };
- Con.prototype = proto;
+var proto = {};
+Object.defineProperty(proto, "prop", {
+ get: function() {},
+ enumerable: true,
+ configurable: true
+});
+var Con = function() {};
+Con.prototype = proto;
- var obj = new Con();
- Object.defineProperty(obj, "prop", {
- get: function () { },
- enumerable: false,
- configurable: true
- });
+var obj = new Con();
+Object.defineProperty(obj, "prop", {
+ get: function() {},
+ enumerable: false,
+ configurable: true
+});
- var arr = Object.keys(obj);
+var arr = Object.keys(obj);
- for (var p in arr) {
- assert.notSameValue(arr[p], "prop", 'arr[p]');
- }
+for (var p in arr) {
+ assert.notSameValue(arr[p], "prop", 'arr[p]');
+}
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-11.js b/test/built-ins/Object/keys/15.2.3.14-5-11.js
index 3a6c31e0c..cacc8fdf2 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-11.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-11.js
@@ -8,14 +8,14 @@ description: >
'O' is defined in returned array
---*/
- var obj = [1, 2, 3, 4, 5];
+var obj = [1, 2, 3, 4, 5];
- var arr = Object.keys(obj);
+var arr = Object.keys(obj);
- var initValue = 0;
- for (var p in arr) {
- if (arr.hasOwnProperty(p)) {
- assert.sameValue(arr[p], initValue.toString(), 'arr[p]');
- initValue++;
- }
- }
+var initValue = 0;
+for (var p in arr) {
+ if (arr.hasOwnProperty(p)) {
+ assert.sameValue(arr[p], initValue.toString(), 'arr[p]');
+ initValue++;
+ }
+}
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-12.js b/test/built-ins/Object/keys/15.2.3.14-5-12.js
index 0e565cc0d..8418f0262 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-12.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-12.js
@@ -10,25 +10,25 @@ description: >
var propertyFound = false;
- var obj = [2, 3, 4, 5];
+var obj = [2, 3, 4, 5];
- Object.defineProperty(obj, "prop", {
- get: function () {
- return 6;
- },
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: function() {
+ return 6;
+ },
+ enumerable: true,
+ configurable: true
+});
- var arr = Object.keys(obj);
+var arr = Object.keys(obj);
- for (var p in arr) {
- if (arr.hasOwnProperty(p)) {
- if (arr[p] === "prop") {
- propertyFound = true;
- break;
- }
- }
- }
+for (var p in arr) {
+ if (arr.hasOwnProperty(p)) {
+ if (arr[p] === "prop") {
+ propertyFound = true;
+ break;
+ }
+ }
+}
assert(propertyFound, 'Property not found');
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-13.js b/test/built-ins/Object/keys/15.2.3.14-5-13.js
index 1dd461cab..4c87e4d47 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-13.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-13.js
@@ -8,28 +8,28 @@ description: >
'O' is defined in returned array
---*/
- var obj = [1, , 3, , 5];
+var obj = [1, , 3, , 5];
- Object.defineProperty(obj, 5, {
- value: 7,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, 5, {
+ value: 7,
+ enumerable: false,
+ configurable: true
+});
- Object.defineProperty(obj, 10000, {
- value: "ElementWithLargeIndex",
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, 10000, {
+ value: "ElementWithLargeIndex",
+ enumerable: true,
+ configurable: true
+});
- var arr = Object.keys(obj);
+var arr = Object.keys(obj);
- var index;
- var initValue = 0;
- for (index = 0; index < 3; index++) {
- assert.sameValue(arr[index], initValue.toString(), 'Unexpected property at index: ' + index);
- initValue += 2;
- }
+var index;
+var initValue = 0;
+for (index = 0; index < 3; index++) {
+ assert.sameValue(arr[index], initValue.toString(), 'Unexpected property at index: ' + index);
+ initValue += 2;
+}
assert.sameValue(arr.length, 4, 'arr.length');
assert.sameValue(arr[3], "10000", 'arr[3]');
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-14.js b/test/built-ins/Object/keys/15.2.3.14-5-14.js
index 6b9c3ae25..2f9bd9617 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-14.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-14.js
@@ -10,23 +10,23 @@ description: >
var propertyFound = false;
- var obj = [1, , 3, , 5];
+var obj = [1, , 3, , 5];
- Object.defineProperty(obj, "10000", {
- get: function () {
- return "ElementWithLargeIndex";
- },
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "10000", {
+ get: function() {
+ return "ElementWithLargeIndex";
+ },
+ enumerable: true,
+ configurable: true
+});
- var arr = Object.keys(obj);
+var arr = Object.keys(obj);
- for (var p in arr) {
- if (arr[p] === "10000") {
- propertyFound = true;
- break;
- }
- }
+for (var p in arr) {
+ if (arr[p] === "10000") {
+ propertyFound = true;
+ break;
+ }
+}
assert(propertyFound, 'Property not found');
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-15.js b/test/built-ins/Object/keys/15.2.3.14-5-15.js
index c7805c030..78c95371b 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-15.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-15.js
@@ -8,18 +8,18 @@ description: >
object 'O' is defined in returned array
---*/
- var obj = new String("xyz");
- obj[-20] = -20;
- obj[20] = 20;
+var obj = new String("xyz");
+obj[-20] = -20;
+obj[20] = 20;
- Object.defineProperty(obj, "prop", {
- value: 1003,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ value: 1003,
+ enumerable: false,
+ configurable: true
+});
- var arr = Object.keys(obj);
+var arr = Object.keys(obj);
- for (var i = 0; i < arr.length; i++) {
- assert(obj.hasOwnProperty(arr[i]), 'obj.hasOwnProperty(arr[i]) !== true');
- }
+for (var i = 0; i < arr.length; i++) {
+ assert(obj.hasOwnProperty(arr[i]), 'obj.hasOwnProperty(arr[i]) !== true');
+}
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-16.js b/test/built-ins/Object/keys/15.2.3.14-5-16.js
index 1031fd08c..327c196f4 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-16.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-16.js
@@ -8,23 +8,23 @@ description: >
object 'O' is defined in returned array
---*/
- var obj = new String("xyz");
- obj[-20] = -20;
- obj[20] = 20;
+var obj = new String("xyz");
+obj[-20] = -20;
+obj[20] = 20;
- Object.defineProperty(obj, "prop1", {
- get: function () { },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(obj, "prop2", {
- get: function () { },
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop1", {
+ get: function() {},
+ enumerable: true,
+ configurable: true
+});
+Object.defineProperty(obj, "prop2", {
+ get: function() {},
+ enumerable: false,
+ configurable: true
+});
- var arr = Object.keys(obj);
+var arr = Object.keys(obj);
- for (var i = 0; i < arr.length; i++) {
- assert(obj.hasOwnProperty(arr[i]), 'obj.hasOwnProperty(arr[i]) !== true');
- }
+for (var i = 0; i < arr.length; i++) {
+ assert(obj.hasOwnProperty(arr[i]), 'obj.hasOwnProperty(arr[i]) !== true');
+}
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-2.js b/test/built-ins/Object/keys/15.2.3.14-5-2.js
index 917ad1cf6..d88f54188 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-2.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-2.js
@@ -8,17 +8,17 @@ description: >
in returned array
---*/
- var obj = { };
+var obj = {};
- Object.defineProperty(obj, "prop", {
- get: function () {
- return 1003;
- },
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop", {
+ get: function() {
+ return 1003;
+ },
+ enumerable: true,
+ configurable: true
+});
- var arr = Object.keys(obj);
+var arr = Object.keys(obj);
assert(arr.hasOwnProperty(0), 'arr.hasOwnProperty(0) !== true');
assert.sameValue(arr[0], "prop", 'arr[0]');
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-3.js b/test/built-ins/Object/keys/15.2.3.14-5-3.js
index 45d321cfe..9bfa83434 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-3.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-3.js
@@ -8,24 +8,27 @@ description: >
defined in returned array
---*/
- var obj = { prop1: 1001, prop2: 1002 };
+var obj = {
+ prop1: 1001,
+ prop2: 1002
+};
- Object.defineProperty(obj, "prop3", {
- value: 1003,
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop3", {
+ value: 1003,
+ enumerable: true,
+ configurable: true
+});
- Object.defineProperty(obj, "prop4", {
- value: 1004,
- enumerable: false,
- configurable: true
- });
+Object.defineProperty(obj, "prop4", {
+ value: 1004,
+ enumerable: false,
+ configurable: true
+});
- var arr = Object.keys(obj);
+var arr = Object.keys(obj);
- for (var p in arr) {
- if (arr.hasOwnProperty(p)) {
- assert.notSameValue(arr[p], "prop4", 'arr[p]');
- }
- }
+for (var p in arr) {
+ if (arr.hasOwnProperty(p)) {
+ assert.notSameValue(arr[p], "prop4", 'arr[p]');
+ }
+}
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-4.js b/test/built-ins/Object/keys/15.2.3.14-5-4.js
index ed6346c08..92d237cdd 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-4.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-4.js
@@ -8,28 +8,28 @@ description: >
defined in returned array
---*/
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "prop1", {
- get: function () { },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(obj, "prop2", {
- get: function () { },
- enumerable: false,
- configurable: true
- });
- Object.defineProperty(obj, "prop3", {
- get: function () { },
- enumerable: true,
- configurable: true
- });
+Object.defineProperty(obj, "prop1", {
+ get: function() {},
+ enumerable: true,
+ configurable: true
+});
+Object.defineProperty(obj, "prop2", {
+ get: function() {},
+ enumerable: false,
+ configurable: true
+});
+Object.defineProperty(obj, "prop3", {
+ get: function() {},
+ enumerable: true,
+ configurable: true
+});
- var arr = Object.keys(obj);
+var arr = Object.keys(obj);
- for (var p in arr) {
- if (arr.hasOwnProperty(p)) {
- assert.notSameValue(arr[p], "prop2", 'arr[p]');
- }
- }
+for (var p in arr) {
+ if (arr.hasOwnProperty(p)) {
+ assert.notSameValue(arr[p], "prop2", 'arr[p]');
+ }
+}
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-5.js b/test/built-ins/Object/keys/15.2.3.14-5-5.js
index 996f595a1..3be1366f9 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-5.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-5.js
@@ -8,20 +8,20 @@ description: >
defined in returned array
---*/
- var proto = {};
- Object.defineProperty(proto, "inheritedProp", {
- value: 1003,
- enumerable: true,
- configurable: true
- });
- var Con = function () { };
- Con.prototype = proto;
+var proto = {};
+Object.defineProperty(proto, "inheritedProp", {
+ value: 1003,
+ enumerable: true,
+ configurable: true
+});
+var Con = function() {};
+Con.prototype = proto;
- var obj = new Con();
- obj.prop = 1004;
+var obj = new Con();
+obj.prop = 1004;
- var arr = Object.keys(obj);
+var arr = Object.keys(obj);
- for (var p in arr) {
- assert.notSameValue(arr[p], "inheritedProp", 'arr[p]');
- }
+for (var p in arr) {
+ assert.notSameValue(arr[p], "inheritedProp", 'arr[p]');
+}
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-6.js b/test/built-ins/Object/keys/15.2.3.14-5-6.js
index 104055137..e5ff23f98 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-6.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-6.js
@@ -8,28 +8,28 @@ description: >
defined in returned array
---*/
- var proto = {};
- Object.defineProperty(proto, "inheritedProp", {
- get: function () {
- return 1003;
- },
- enumerable: true,
- configurable: true
- });
- var Con = function () { };
- Con.prototype = proto;
+var proto = {};
+Object.defineProperty(proto, "inheritedProp", {
+ get: function() {
+ return 1003;
+ },
+ enumerable: true,
+ configurable: true
+});
+var Con = function() {};
+Con.prototype = proto;
- var obj = new Con();
- Object.defineProperty(obj, "prop", {
- get: function () {
- return 1004;
- },
- enumerable: true,
- configurable: true
- });
+var obj = new Con();
+Object.defineProperty(obj, "prop", {
+ get: function() {
+ return 1004;
+ },
+ enumerable: true,
+ configurable: true
+});
- var arr = Object.keys(obj);
+var arr = Object.keys(obj);
- for (var p in arr) {
- assert.notSameValue(arr[p], "inheritedProp", 'arr[p]');
- }
+for (var p in arr) {
+ assert.notSameValue(arr[p], "inheritedProp", 'arr[p]');
+}
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-7.js b/test/built-ins/Object/keys/15.2.3.14-5-7.js
index 8fb146cd2..c40e03400 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-7.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-7.js
@@ -9,24 +9,24 @@ description: >
returned array
---*/
- var proto = {};
- Object.defineProperty(proto, "prop", {
- value: 1003,
- enumerable: true,
- configurable: true
- });
- var Con = function () { };
- Con.prototype = proto;
+var proto = {};
+Object.defineProperty(proto, "prop", {
+ value: 1003,
+ enumerable: true,
+ configurable: true
+});
+var Con = function() {};
+Con.prototype = proto;
- var obj = new Con();
- Object.defineProperty(obj, "prop", {
- value: 1004,
- enumerable: false,
- configurable: true
- });
+var obj = new Con();
+Object.defineProperty(obj, "prop", {
+ value: 1004,
+ enumerable: false,
+ configurable: true
+});
- var arr = Object.keys(obj);
+var arr = Object.keys(obj);
- for (var p in arr) {
- assert.notSameValue(arr[p], "prop", 'arr[p]');
- }
+for (var p in arr) {
+ assert.notSameValue(arr[p], "prop", 'arr[p]');
+}
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-8.js b/test/built-ins/Object/keys/15.2.3.14-5-8.js
index 37acf9b4f..87fa6a75b 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-8.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-8.js
@@ -9,24 +9,24 @@ description: >
in returned array
---*/
- var proto = {};
- Object.defineProperty(proto, "prop", {
- value: 1003,
- enumerable: true,
- configurable: true
- });
- var Con = function () { };
- Con.prototype = proto;
+var proto = {};
+Object.defineProperty(proto, "prop", {
+ value: 1003,
+ enumerable: true,
+ configurable: true
+});
+var Con = function() {};
+Con.prototype = proto;
- var obj = new Con();
- Object.defineProperty(obj, "prop", {
- get: function () { },
- enumerable: false,
- configurable: true
- });
+var obj = new Con();
+Object.defineProperty(obj, "prop", {
+ get: function() {},
+ enumerable: false,
+ configurable: true
+});
- var arr = Object.keys(obj);
+var arr = Object.keys(obj);
- for (var p in arr) {
- assert.notSameValue(arr[p], "prop", 'arr[p]');
- }
+for (var p in arr) {
+ assert.notSameValue(arr[p], "prop", 'arr[p]');
+}
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-9.js b/test/built-ins/Object/keys/15.2.3.14-5-9.js
index f88c546c0..b3001fa90 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-9.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-9.js
@@ -9,24 +9,24 @@ description: >
returned array
---*/
- var proto = {};
- Object.defineProperty(proto, "prop", {
- get: function () { },
- enumerable: true,
- configurable: true
- });
- var Con = function () { };
- Con.prototype = proto;
+var proto = {};
+Object.defineProperty(proto, "prop", {
+ get: function() {},
+ enumerable: true,
+ configurable: true
+});
+var Con = function() {};
+Con.prototype = proto;
- var obj = new Con();
- Object.defineProperty(obj, "prop", {
- value: 1003,
- enumerable: false,
- configurable: true
- });
+var obj = new Con();
+Object.defineProperty(obj, "prop", {
+ value: 1003,
+ enumerable: false,
+ configurable: true
+});
- var arr = Object.keys(obj);
+var arr = Object.keys(obj);
- for (var p in arr) {
- assert.notSameValue(arr[p], "prop", 'arr[p]');
- }
+for (var p in arr) {
+ assert.notSameValue(arr[p], "prop", 'arr[p]');
+}
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-a-1.js b/test/built-ins/Object/keys/15.2.3.14-5-a-1.js
index 15cabe73b..b186f7c27 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-a-1.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-a-1.js
@@ -8,11 +8,13 @@ description: >
correct.
---*/
- var obj = { prop1: 1 };
+var obj = {
+ prop1: 1
+};
- var array = Object.keys(obj);
+var array = Object.keys(obj);
- var desc = Object.getOwnPropertyDescriptor(array, "0");
+var desc = Object.getOwnPropertyDescriptor(array, "0");
assert(desc.hasOwnProperty("value"), 'desc.hasOwnProperty("value") !== true');
assert.sameValue(desc.value, "prop1", 'desc.value');
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-a-2.js b/test/built-ins/Object/keys/15.2.3.14-5-a-2.js
index 10f811ac6..5d57f077a 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-a-2.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-a-2.js
@@ -8,13 +8,15 @@ description: >
correct
---*/
- var obj = { prop1: 100 };
+var obj = {
+ prop1: 100
+};
- var array = Object.keys(obj);
+var array = Object.keys(obj);
- array[0] = "isWritable";
+array[0] = "isWritable";
- var desc = Object.getOwnPropertyDescriptor(array, "0");
+var desc = Object.getOwnPropertyDescriptor(array, "0");
assert.sameValue(array[0], "isWritable", 'array[0]');
assert(desc.hasOwnProperty("writable"), 'desc.hasOwnProperty("writable") !== true');
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-a-3.js b/test/built-ins/Object/keys/15.2.3.14-5-a-3.js
index 25c069329..6c6a27f67 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-a-3.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-a-3.js
@@ -8,16 +8,18 @@ description: >
is correct
---*/
- var obj = { prop1: 100 };
+var obj = {
+ prop1: 100
+};
- var array = Object.keys(obj);
- var desc = Object.getOwnPropertyDescriptor(array, "0");
- var result = false;
- for (var index in array) {
- if (obj.hasOwnProperty(array[index]) && array[index] === "prop1") {
- result = true;
- }
- }
+var array = Object.keys(obj);
+var desc = Object.getOwnPropertyDescriptor(array, "0");
+var result = false;
+for (var index in array) {
+ if (obj.hasOwnProperty(array[index]) && array[index] === "prop1") {
+ result = true;
+ }
+}
assert(result, 'result !== true');
assert(desc.hasOwnProperty("enumerable"), 'desc.hasOwnProperty("enumerable") !== true');
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-a-4.js b/test/built-ins/Object/keys/15.2.3.14-5-a-4.js
index 78b67c338..5a5287821 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-a-4.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-a-4.js
@@ -8,12 +8,14 @@ description: >
returned array is correct
---*/
- var obj = { prop1: 100 };
+var obj = {
+ prop1: 100
+};
- var array = Object.keys(obj);
- var desc = Object.getOwnPropertyDescriptor(array, "0");
+var array = Object.keys(obj);
+var desc = Object.getOwnPropertyDescriptor(array, "0");
- delete array[0];
+delete array[0];
assert.sameValue(typeof array[0], "undefined", 'typeof array[0]');
assert(desc.hasOwnProperty("configurable"), 'desc.hasOwnProperty("configurable") !== true');
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-b-1.js b/test/built-ins/Object/keys/15.2.3.14-5-b-1.js
index 6c5766333..c6b18372b 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-b-1.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-b-1.js
@@ -6,14 +6,18 @@ es5id: 15.2.3.14-5-b-1
description: Object.keys - Verify that 'index' of returned array is ascend by 1
---*/
- var obj = { prop1: 100, prop2: 200, prop3: 300 };
+var obj = {
+ prop1: 100,
+ prop2: 200,
+ prop3: 300
+};
- var array = Object.keys(obj);
+var array = Object.keys(obj);
- var idx = 0;
- for (var index in array) {
- if (array.hasOwnProperty(index)) {
- assert.sameValue(index, idx.toString(), 'index');
- idx++;
- }
- }
+var idx = 0;
+for (var index in array) {
+ if (array.hasOwnProperty(index)) {
+ assert.sameValue(index, idx.toString(), 'index');
+ idx++;
+ }
+}
diff --git a/test/built-ins/Object/keys/15.2.3.14-6-1.js b/test/built-ins/Object/keys/15.2.3.14-6-1.js
index 884abd796..e6c869cfe 100644
--- a/test/built-ins/Object/keys/15.2.3.14-6-1.js
+++ b/test/built-ins/Object/keys/15.2.3.14-6-1.js
@@ -8,17 +8,17 @@ description: >
with the order of properties in 'O' (dense array)
---*/
- var denseArray = [1, 2, 3];
+var denseArray = [1, 2, 3];
- var tempArray = [];
- for (var p in denseArray) {
- if (denseArray.hasOwnProperty(p)) {
- tempArray.push(p);
- }
- }
+var tempArray = [];
+for (var p in denseArray) {
+ if (denseArray.hasOwnProperty(p)) {
+ tempArray.push(p);
+ }
+}
- var returnedArray = Object.keys(denseArray);
+var returnedArray = Object.keys(denseArray);
- for (var index in returnedArray) {
- assert.sameValue(tempArray[index], returnedArray[index], 'tempArray[index]');
- }
+for (var index in returnedArray) {
+ assert.sameValue(tempArray[index], returnedArray[index], 'tempArray[index]');
+}
diff --git a/test/built-ins/Object/keys/15.2.3.14-6-2.js b/test/built-ins/Object/keys/15.2.3.14-6-2.js
index c3a1537e0..bed89a28d 100644
--- a/test/built-ins/Object/keys/15.2.3.14-6-2.js
+++ b/test/built-ins/Object/keys/15.2.3.14-6-2.js
@@ -8,17 +8,17 @@ description: >
with the order of properties in 'O' (sparse array)
---*/
- var sparseArray = [1, 2, , 4, , 6];
+var sparseArray = [1, 2, , 4, , 6];
- var tempArray = [];
- for (var p in sparseArray) {
- if (sparseArray.hasOwnProperty(p)) {
- tempArray.push(p);
- }
- }
+var tempArray = [];
+for (var p in sparseArray) {
+ if (sparseArray.hasOwnProperty(p)) {
+ tempArray.push(p);
+ }
+}
- var returnedArray = Object.keys(sparseArray);
+var returnedArray = Object.keys(sparseArray);
- for (var index in returnedArray) {
- assert.sameValue(tempArray[index], returnedArray[index], 'tempArray[index]');
- }
+for (var index in returnedArray) {
+ assert.sameValue(tempArray[index], returnedArray[index], 'tempArray[index]');
+}
diff --git a/test/built-ins/Object/keys/15.2.3.14-6-3.js b/test/built-ins/Object/keys/15.2.3.14-6-3.js
index 108056b33..8607da50b 100644
--- a/test/built-ins/Object/keys/15.2.3.14-6-3.js
+++ b/test/built-ins/Object/keys/15.2.3.14-6-3.js
@@ -8,17 +8,17 @@ description: >
with the order of properties in 'O' (String object)
---*/
- var str = new String("abc");
+var str = new String("abc");
- var tempArray = [];
- for (var p in str) {
- if (str.hasOwnProperty(p)) {
- tempArray.push(p);
- }
- }
+var tempArray = [];
+for (var p in str) {
+ if (str.hasOwnProperty(p)) {
+ tempArray.push(p);
+ }
+}
- var returnedArray = Object.keys(str);
+var returnedArray = Object.keys(str);
- for (var index in returnedArray) {
- assert.sameValue(tempArray[index], returnedArray[index], 'tempArray[index]');
- }
+for (var index in returnedArray) {
+ assert.sameValue(tempArray[index], returnedArray[index], 'tempArray[index]');
+}
diff --git a/test/built-ins/Object/keys/15.2.3.14-6-4.js b/test/built-ins/Object/keys/15.2.3.14-6-4.js
index b10ea7615..cacc8f39c 100644
--- a/test/built-ins/Object/keys/15.2.3.14-6-4.js
+++ b/test/built-ins/Object/keys/15.2.3.14-6-4.js
@@ -8,21 +8,21 @@ description: >
with the order of properties in 'O' (Arguments object)
---*/
- var func = function (a, b, c) {
- return arguments;
- };
+var func = function(a, b, c) {
+ return arguments;
+};
- var args = func(1, "b", false);
+var args = func(1, "b", false);
- var tempArray = [];
- for (var p in args) {
- if (args.hasOwnProperty(p)) {
- tempArray.push(p);
- }
- }
+var tempArray = [];
+for (var p in args) {
+ if (args.hasOwnProperty(p)) {
+ tempArray.push(p);
+ }
+}
- var returnedArray = Object.keys(args);
+var returnedArray = Object.keys(args);
- for (var index in returnedArray) {
- assert.sameValue(tempArray[index], returnedArray[index], 'tempArray[index]');
- }
+for (var index in returnedArray) {
+ assert.sameValue(tempArray[index], returnedArray[index], 'tempArray[index]');
+}
diff --git a/test/built-ins/Object/keys/15.2.3.14-6-5.js b/test/built-ins/Object/keys/15.2.3.14-6-5.js
index 9e5984a78..4bd098a3e 100644
--- a/test/built-ins/Object/keys/15.2.3.14-6-5.js
+++ b/test/built-ins/Object/keys/15.2.3.14-6-5.js
@@ -8,19 +8,19 @@ description: >
with the order of properties in 'O' (any other built-in object)
---*/
- var obj = new Date();
- obj.prop1 = 100;
- obj.prop2 = "prop2";
+var obj = new Date();
+obj.prop1 = 100;
+obj.prop2 = "prop2";
- var tempArray = [];
- for (var p in obj) {
- if (obj.hasOwnProperty(p)) {
- tempArray.push(p);
- }
- }
+var tempArray = [];
+for (var p in obj) {
+ if (obj.hasOwnProperty(p)) {
+ tempArray.push(p);
+ }
+}
- var returnedArray = Object.keys(obj);
+var returnedArray = Object.keys(obj);
- for (var index in returnedArray) {
- assert.sameValue(tempArray[index], returnedArray[index], 'tempArray[index]');
- }
+for (var index in returnedArray) {
+ assert.sameValue(tempArray[index], returnedArray[index], 'tempArray[index]');
+}
diff --git a/test/built-ins/Object/keys/proxy-keys.js b/test/built-ins/Object/keys/proxy-keys.js
index ac349430f..f9b2a155a 100644
--- a/test/built-ins/Object/keys/proxy-keys.js
+++ b/test/built-ins/Object/keys/proxy-keys.js
@@ -32,22 +32,34 @@ let target = {
let ownKeys = {
get length() {
- log.push({ name: "get ownKeys['length']", receiver: this });
+ log.push({
+ name: "get ownKeys['length']",
+ receiver: this
+ });
return 3;
},
get 0() {
- log.push({ name: "get ownKeys[0]", receiver: this });
+ log.push({
+ name: "get ownKeys[0]",
+ receiver: this
+ });
return "a";
},
get 1() {
- log.push({ name: "get ownKeys[1]", receiver: this });
+ log.push({
+ name: "get ownKeys[1]",
+ receiver: this
+ });
return s;
},
get 2() {
- log.push({ name: "get ownKeys[2]", receiver: this });
+ log.push({
+ name: "get ownKeys[2]",
+ receiver: this
+ });
return "b";
}
};
@@ -74,15 +86,25 @@ let ownKeysDescriptors = {
let handler = {
get ownKeys() {
- log.push({ name: "get handler.ownKeys", receiver: this });
+ log.push({
+ name: "get handler.ownKeys",
+ receiver: this
+ });
return (...args) => {
- log.push({ name: "call handler.ownKeys", receiver: this, args });
+ log.push({
+ name: "call handler.ownKeys",
+ receiver: this,
+ args
+ });
return ownKeys;
};
},
get getOwnPropertyDescriptor() {
- log.push({ name: "get handler.getOwnPropertyDescriptor", receiver: this });
+ log.push({
+ name: "get handler.getOwnPropertyDescriptor",
+ receiver: this
+ });
return (...args) => {
log.push({
name: "call handler.getOwnPropertyDescriptor",
diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-0-1.js b/test/built-ins/Object/preventExtensions/15.2.3.10-0-1.js
index 8f3e64dc3..74af3456d 100644
--- a/test/built-ins/Object/preventExtensions/15.2.3.10-0-1.js
+++ b/test/built-ins/Object/preventExtensions/15.2.3.10-0-1.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.10-0-1
description: Object.preventExtensions must exist as a function
---*/
- var f = Object.preventExtensions;
+var f = Object.preventExtensions;
assert.sameValue(typeof(f), "function", 'typeof(f)');
diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-1-1.js b/test/built-ins/Object/preventExtensions/15.2.3.10-1-1.js
index 12e4a96cb..e52f9af71 100644
--- a/test/built-ins/Object/preventExtensions/15.2.3.10-1-1.js
+++ b/test/built-ins/Object/preventExtensions/15.2.3.10-1-1.js
@@ -8,4 +8,4 @@ description: >
undefined
---*/
- Object.preventExtensions(undefined);
+Object.preventExtensions(undefined);
diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-1-2.js b/test/built-ins/Object/preventExtensions/15.2.3.10-1-2.js
index 908256f0d..0032e685e 100644
--- a/test/built-ins/Object/preventExtensions/15.2.3.10-1-2.js
+++ b/test/built-ins/Object/preventExtensions/15.2.3.10-1-2.js
@@ -6,4 +6,4 @@ es5id: 15.2.3.10-1-2
description: Object.preventExtensions does not throw TypeError if 'O' is null
---*/
- Object.preventExtensions(null);
+Object.preventExtensions(null);
diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-1-3.js b/test/built-ins/Object/preventExtensions/15.2.3.10-1-3.js
index 19d939b75..f65649363 100644
--- a/test/built-ins/Object/preventExtensions/15.2.3.10-1-3.js
+++ b/test/built-ins/Object/preventExtensions/15.2.3.10-1-3.js
@@ -8,4 +8,4 @@ description: >
boolean primitive value
---*/
- Object.preventExtensions(true);
+Object.preventExtensions(true);
diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-1-4.js b/test/built-ins/Object/preventExtensions/15.2.3.10-1-4.js
index a2b491530..058bfb29d 100644
--- a/test/built-ins/Object/preventExtensions/15.2.3.10-1-4.js
+++ b/test/built-ins/Object/preventExtensions/15.2.3.10-1-4.js
@@ -8,4 +8,4 @@ description: >
string primitive value
---*/
- Object.preventExtensions("abc");
+Object.preventExtensions("abc");
diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-1.js b/test/built-ins/Object/preventExtensions/15.2.3.10-1.js
index 08a98ccae..2781b8fac 100644
--- a/test/built-ins/Object/preventExtensions/15.2.3.10-1.js
+++ b/test/built-ins/Object/preventExtensions/15.2.3.10-1.js
@@ -8,4 +8,4 @@ description: >
param is not Object
---*/
- Object.preventExtensions(0);
+Object.preventExtensions(0);
diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-2-1.js b/test/built-ins/Object/preventExtensions/15.2.3.10-2-1.js
index a8e4b2e41..765580072 100644
--- a/test/built-ins/Object/preventExtensions/15.2.3.10-2-1.js
+++ b/test/built-ins/Object/preventExtensions/15.2.3.10-2-1.js
@@ -8,16 +8,16 @@ description: >
have no side effects
---*/
- var obj = {};
- var testResult1 = true;
- var testResult2 = true;
+var obj = {};
+var testResult1 = true;
+var testResult2 = true;
- var preCheck = Object.isExtensible(obj);
+var preCheck = Object.isExtensible(obj);
- Object.preventExtensions(obj);
- testResult1 = Object.isExtensible(obj);
- Object.preventExtensions(obj);
- testResult2 = Object.isExtensible(obj);
+Object.preventExtensions(obj);
+testResult1 = Object.isExtensible(obj);
+Object.preventExtensions(obj);
+testResult2 = Object.isExtensible(obj);
assert(preCheck, 'preCheck !== true');
assert.sameValue(testResult1, false, 'testResult1');
diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-2.js b/test/built-ins/Object/preventExtensions/15.2.3.10-2.js
index f6507af2d..c3a60819f 100644
--- a/test/built-ins/Object/preventExtensions/15.2.3.10-2.js
+++ b/test/built-ins/Object/preventExtensions/15.2.3.10-2.js
@@ -9,10 +9,10 @@ description: >
extensible property to false
---*/
- var o = {};
- var o2 = undefined;
+var o = {};
+var o2 = undefined;
- o2 = Object.preventExtensions(o);
+o2 = Object.preventExtensions(o);
assert.sameValue(o2, o, 'o2');
assert.sameValue(Object.isExtensible(o2), false, 'Object.isExtensible(o2)');
diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-1.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-1.js
index c9ee327e0..b42f94651 100644
--- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-1.js
+++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-1.js
@@ -8,9 +8,9 @@ description: >
if arg is the returned object
---*/
- var obj = {};
- var preCheck = Object.isExtensible(obj);
- Object.preventExtensions(obj);
+var obj = {};
+var preCheck = Object.isExtensible(obj);
+Object.preventExtensions(obj);
assert(preCheck, 'preCheck !== true');
assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)');
diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-10.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-10.js
index 49ec6fbd1..f58147ef4 100644
--- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-10.js
+++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-10.js
@@ -18,4 +18,3 @@ assert(!Object.isExtensible(errObj));
verifyNotWritable(errObj, "0", "nocheck");
assert(!errObj.hasOwnProperty("0"));
-
diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-11.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-11.js
index cdaafc240..ba2145a1c 100644
--- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-11.js
+++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-11.js
@@ -10,8 +10,8 @@ includes: [propertyHelper.js]
---*/
var argObj;
-(function () {
- argObj = arguments;
+(function() {
+ argObj = arguments;
}());
assert(Object.isExtensible(argObj));
diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-12.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-12.js
index 071c01260..09778460e 100644
--- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-12.js
+++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-12.js
@@ -18,4 +18,3 @@ assert(!Object.isExtensible(obj));
verifyNotWritable(obj, "exName", "nocheck");
assert(!obj.hasOwnProperty("exName"));
-
diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-13.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-13.js
index 6bc3159ee..67c952a06 100644
--- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-13.js
+++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-13.js
@@ -9,7 +9,7 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = function () { };
+var obj = function() {};
assert(Object.isExtensible(obj));
Object.preventExtensions(obj);
diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-21.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-21.js
index 560bec496..26d198d1e 100644
--- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-21.js
+++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-21.js
@@ -10,8 +10,8 @@ includes: [propertyHelper.js]
---*/
var obj;
-(function () {
- obj = arguments;
+(function() {
+ obj = arguments;
}());
assert(Object.isExtensible(obj));
diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-22.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-22.js
index f9c4d8b48..02de9e3ba 100644
--- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-22.js
+++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-22.js
@@ -8,11 +8,13 @@ description: >
extensions have been prevented
---*/
- var obj = { prop: 12 };
- var preCheck = Object.isExtensible(obj);
- Object.preventExtensions(obj);
+var obj = {
+ prop: 12
+};
+var preCheck = Object.isExtensible(obj);
+Object.preventExtensions(obj);
- delete obj.prop;
+delete obj.prop;
assert(preCheck, 'preCheck !== true');
assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")');
diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-23.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-23.js
index f857d410b..b7c93c497 100644
--- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-23.js
+++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-23.js
@@ -8,11 +8,13 @@ description: >
after extensions have been prevented
---*/
- var obj = { prop: 12 };
- var preCheck = Object.isExtensible(obj);
- Object.preventExtensions(obj);
+var obj = {
+ prop: 12
+};
+var preCheck = Object.isExtensible(obj);
+Object.preventExtensions(obj);
- obj.prop = -1;
+obj.prop = -1;
assert(preCheck, 'preCheck !== true');
assert.sameValue(obj.prop, -1, 'obj.prop');
diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-24.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-24.js
index 7e8006326..b0f8796a5 100644
--- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-24.js
+++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-24.js
@@ -9,15 +9,15 @@ description: >
from that prototype
---*/
- var proto = {};
- var preCheck = Object.isExtensible(proto);
- Object.preventExtensions(proto);
+var proto = {};
+var preCheck = Object.isExtensible(proto);
+Object.preventExtensions(proto);
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var child = new ConstructFun();
- child.prop = 10;
+child.prop = 10;
assert(preCheck, 'preCheck !== true');
assert(child.hasOwnProperty("prop"), 'child.hasOwnProperty("prop") !== true');
diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-3.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-3.js
index f644100e6..443c2a61e 100644
--- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-3.js
+++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-3.js
@@ -9,7 +9,7 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = function () { };
+var obj = function() {};
assert(Object.isExtensible(obj));
Object.preventExtensions(obj);
diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-5.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-5.js
index def72f4f6..f70509eca 100644
--- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-5.js
+++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-5.js
@@ -8,11 +8,13 @@ description: >
a String object
---*/
- var strObj = new String();
- var preCheck = Object.isExtensible(strObj);
- Object.preventExtensions(strObj);
+var strObj = new String();
+var preCheck = Object.isExtensible(strObj);
+Object.preventExtensions(strObj);
assert.throws(TypeError, function() {
- Object.defineProperty(strObj, "0", { value: "c" });
+ Object.defineProperty(strObj, "0", {
+ value: "c"
+ });
});
assert(preCheck, 'preCheck !== true');
assert.sameValue(strObj.hasOwnProperty("0"), false, 'strObj.hasOwnProperty("0")');
diff --git a/test/built-ins/Object/preventExtensions/symbol-object-contains-symbol-properties-strict.js b/test/built-ins/Object/preventExtensions/symbol-object-contains-symbol-properties-strict.js
index 6bb4bdf18..9fb953b99 100644
--- a/test/built-ins/Object/preventExtensions/symbol-object-contains-symbol-properties-strict.js
+++ b/test/built-ins/Object/preventExtensions/symbol-object-contains-symbol-properties-strict.js
@@ -20,13 +20,12 @@ assert.throws(TypeError, function() {
});
assert.throws(TypeError, function() {
- Object.defineProperty(obj, symC, { value: 1 });
+ Object.defineProperty(obj, symC, {
+ value: 1
+ });
});
assert.sameValue(obj[symA], 2, "The value of `obj[symA]` is `2`");
assert.sameValue(delete obj[symA], true, "`delete obj[symA]` is `true`");
assert.sameValue(obj[symB], undefined, "The value of `obj[symB]` is `undefined`");
assert.sameValue(obj[symC], undefined, "The value of `obj[symC]` is `undefined`");
-
-
-
diff --git a/test/built-ins/Object/prototype/15.2.3.1.js b/test/built-ins/Object/prototype/15.2.3.1.js
index fb0ddee7f..636b72df5 100644
--- a/test/built-ins/Object/prototype/15.2.3.1.js
+++ b/test/built-ins/Object/prototype/15.2.3.1.js
@@ -8,7 +8,7 @@ description: >
(false)
---*/
- var desc = Object.getOwnPropertyDescriptor(Object, 'prototype');
+var desc = Object.getOwnPropertyDescriptor(Object, 'prototype');
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Object/prototype/S15.2.3.1_A1.js b/test/built-ins/Object/prototype/S15.2.3.1_A1.js
index 44b0ea6e6..a182b4f73 100644
--- a/test/built-ins/Object/prototype/S15.2.3.1_A1.js
+++ b/test/built-ins/Object/prototype/S15.2.3.1_A1.js
@@ -9,7 +9,9 @@ includes: [propertyHelper.js]
---*/
var obj = Object.prototype;
-verifyNotWritable(Object, "prototype", null, function(){return "shifted";});
+verifyNotWritable(Object, "prototype", null, function() {
+ return "shifted";
+});
//CHECK#1
if (Object.prototype !== obj) {
diff --git a/test/built-ins/Object/prototype/S15.2.3.1_A2.js b/test/built-ins/Object/prototype/S15.2.3.1_A2.js
index 996c86525..96ee379f6 100644
--- a/test/built-ins/Object/prototype/S15.2.3.1_A2.js
+++ b/test/built-ins/Object/prototype/S15.2.3.1_A2.js
@@ -13,10 +13,10 @@ if (Object.propertyIsEnumerable('prototype')) {
}
// CHECK#2
-var cout=0;
+var cout = 0;
-for (var p in Object){
- if (p==="prototype") cout++;
+for (var p in Object) {
+ if (p === "prototype") cout++;
}
if (cout !== 0) {
diff --git a/test/built-ins/Object/prototype/S15.2.3.1_A3.js b/test/built-ins/Object/prototype/S15.2.3.1_A3.js
index 5b7c6e5ea..d2ffa50ca 100644
--- a/test/built-ins/Object/prototype/S15.2.3.1_A3.js
+++ b/test/built-ins/Object/prototype/S15.2.3.1_A3.js
@@ -11,7 +11,7 @@ verifyNotConfigurable(Object, "prototype");
//CHECK#1
try {
- if((delete Object.prototype) !== false){
+ if ((delete Object.prototype) !== false) {
$ERROR('#1: Object.prototype has the attribute DontDelete');
}
} catch (e) {
diff --git a/test/built-ins/Object/prototype/S15.2.4_A1_T2.js b/test/built-ins/Object/prototype/S15.2.4_A1_T2.js
index 9fd0c15bb..f92c6b479 100644
--- a/test/built-ins/Object/prototype/S15.2.4_A1_T2.js
+++ b/test/built-ins/Object/prototype/S15.2.4_A1_T2.js
@@ -22,7 +22,7 @@ try {
$ERROR('#2: Object prototype object has not prototype');
} catch (e) {
if ((e instanceof TypeError) !== true) {
- $ERROR('#1.1: delete Object.prototype.toString; Object.prototype.toString() throw a TypeError. Actual: ' + (e));
+ $ERROR('#1.1: delete Object.prototype.toString; Object.prototype.toString() throw a TypeError. Actual: ' + (e));
}
}
//
diff --git a/test/built-ins/Object/prototype/constructor/S15.2.4.1_A1_T2.js b/test/built-ins/Object/prototype/constructor/S15.2.4.1_A1_T2.js
index 07679b274..a9fe41761 100644
--- a/test/built-ins/Object/prototype/constructor/S15.2.4.1_A1_T2.js
+++ b/test/built-ins/Object/prototype/constructor/S15.2.4.1_A1_T2.js
@@ -31,7 +31,7 @@ if (!(Object.prototype.isPrototypeOf(obj))) {
}
// CHECK#3
-var to_string_result = '[object '+ 'Object' +']';
+var to_string_result = '[object ' + 'Object' + ']';
if (obj.toString() !== to_string_result) {
$ERROR('#3: when new Object() calls the [[Class]] property of the newly constructed object is set to "Object".');
}
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_1.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_1.js
index 29e824587..a4330a78e 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_1.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_1.js
@@ -6,6 +6,6 @@ es5id: 8.12.1-1_1
description: Properties - [[HasOwnProperty]] (property does not exist)
---*/
- var o = {};
+var o = {};
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_10.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_10.js
index 0e5e905e3..ae6b1928a 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_10.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_10.js
@@ -8,7 +8,11 @@ description: >
non-enumerable own value property)
---*/
- var o = {};
- Object.defineProperty(o, "foo", {value: 42, writable:true, configurable:true});
+var o = {};
+Object.defineProperty(o, "foo", {
+ value: 42,
+ writable: true,
+ configurable: true
+});
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_11.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_11.js
index d4f3d3903..2b78847eb 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_11.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_11.js
@@ -8,7 +8,12 @@ description: >
enumerable own value property)
---*/
- var o = {};
- Object.defineProperty(o, "foo", {value: 42, writable:true, enumerable:true, configurable:true});
+var o = {};
+Object.defineProperty(o, "foo", {
+ value: 42,
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_12.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_12.js
index 99004855e..a462ab199 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_12.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_12.js
@@ -8,8 +8,10 @@ description: >
non-enumerable inherited value property)
---*/
- var base = {};
- Object.defineProperty(base, "foo", {value: 42});
- var o = Object.create(base);
+var base = {};
+Object.defineProperty(base, "foo", {
+ value: 42
+});
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_13.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_13.js
index c12d0c344..33cfbaac2 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_13.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_13.js
@@ -8,8 +8,11 @@ description: >
enumerable inherited value property)
---*/
- var base = {};
- Object.defineProperty(base, "foo", {value: 42, enumerable:true});
- var o = Object.create(base);
+var base = {};
+Object.defineProperty(base, "foo", {
+ value: 42,
+ enumerable: true
+});
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_14.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_14.js
index 0dcb8a61a..f021397a3 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_14.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_14.js
@@ -8,8 +8,11 @@ description: >
non-enumerable inherited value property)
---*/
- var base = {};
- Object.defineProperty(base, "foo", {value: 42, configurable:true});
- var o = Object.create(base);
+var base = {};
+Object.defineProperty(base, "foo", {
+ value: 42,
+ configurable: true
+});
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_15.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_15.js
index 54baa8f1a..5086fe3bd 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_15.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_15.js
@@ -8,8 +8,11 @@ description: >
non-enumerable inherited value property)
---*/
- var base = {};
- Object.defineProperty(base, "foo", {value: 42, writable:true});
- var o = Object.create(base);
+var base = {};
+Object.defineProperty(base, "foo", {
+ value: 42,
+ writable: true
+});
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_16.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_16.js
index 6474f7f80..397f69ab0 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_16.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_16.js
@@ -8,8 +8,12 @@ description: >
enumerable inherited value property)
---*/
- var base = {};
- Object.defineProperty(base, "foo", {value: 42, configurable:true, enumerable:true});
- var o = Object.create(base);
+var base = {};
+Object.defineProperty(base, "foo", {
+ value: 42,
+ configurable: true,
+ enumerable: true
+});
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_17.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_17.js
index ac6c14ab3..36c5ce1b6 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_17.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_17.js
@@ -8,8 +8,12 @@ description: >
enumerable inherited value property)
---*/
- var base = {};
- Object.defineProperty(base, "foo", {value: 42, writable:true, enumerable:true});
- var o = Object.create(base);
+var base = {};
+Object.defineProperty(base, "foo", {
+ value: 42,
+ writable: true,
+ enumerable: true
+});
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js
index 8b8120c5c..521513632 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js
@@ -8,8 +8,12 @@ description: >
non-enumerable inherited value property)
---*/
- var base = {};
- Object.defineProperty(base, "foo", {value: 42, writable:true, configurable:true});
- var o = Object.create(base);
+var base = {};
+Object.defineProperty(base, "foo", {
+ value: 42,
+ writable: true,
+ configurable: true
+});
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_19.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_19.js
index 6eec46644..bda83b039 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_19.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_19.js
@@ -8,8 +8,13 @@ description: >
enumerable inherited value property)
---*/
- var base = {};
- Object.defineProperty(base, "foo", {value: 42, writable:true, enumerable:true, configurable:true});
- var o = Object.create(base);
+var base = {};
+Object.defineProperty(base, "foo", {
+ value: 42,
+ writable: true,
+ enumerable: true,
+ configurable: true
+});
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_2.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_2.js
index 9e51b6eb9..a10bb3821 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_2.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_2.js
@@ -6,6 +6,8 @@ es5id: 8.12.1-1_2
description: Properties - [[HasOwnProperty]] (old style own property)
---*/
- var o = {foo: 42};
+var o = {
+ foo: 42
+};
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_20.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_20.js
index 4c6c466f3..60febfc14 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_20.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_20.js
@@ -6,6 +6,10 @@ es5id: 8.12.1-1_20
description: Properties - [[HasOwnProperty]] (literal own getter property)
---*/
- var o = { get foo() { return 42;} };
+var o = {
+ get foo() {
+ return 42;
+ }
+};
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_21.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_21.js
index aa8236e3b..f8795d0f5 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_21.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_21.js
@@ -6,6 +6,9 @@ es5id: 8.12.1-1_21
description: Properties - [[HasOwnProperty]] (literal own setter property)
---*/
- var o = { set foo(x) {;} };
+var o = {
+ set foo(x) {;
+ }
+};
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_22.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_22.js
index b23a22bfc..e18229b91 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_22.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_22.js
@@ -8,6 +8,12 @@ description: >
property)
---*/
- var o = { get foo() { return 42;}, set foo(x) {;} };
+var o = {
+ get foo() {
+ return 42;
+ },
+ set foo(x) {;
+ }
+};
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_23.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_23.js
index 4e2587b1c..7f025a822 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_23.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_23.js
@@ -6,7 +6,11 @@ es5id: 8.12.1-1_23
description: Properties - [[HasOwnProperty]] (literal inherited getter property)
---*/
- var base = { get foo() { return 42;} };
- var o = Object.create(base);
+var base = {
+ get foo() {
+ return 42;
+ }
+};
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_24.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_24.js
index cf1cac60b..641f96b32 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_24.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_24.js
@@ -6,7 +6,10 @@ es5id: 8.12.1-1_24
description: Properties - [[HasOwnProperty]] (literal inherited setter property)
---*/
- var base = { set foo(x) {;} };
- var o = Object.create(base);
+var base = {
+ set foo(x) {;
+ }
+};
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_25.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_25.js
index fdb1e6d3a..e2620ce47 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_25.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_25.js
@@ -8,7 +8,13 @@ description: >
property)
---*/
- var base = { get foo() { return 42;}, set foo(x) {;} };
- var o = Object.create(base);
+var base = {
+ get foo() {
+ return 42;
+ },
+ set foo(x) {;
+ }
+};
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_26.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_26.js
index fd15435b5..a80a34623 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_26.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_26.js
@@ -8,7 +8,11 @@ description: >
own getter property)
---*/
- var o = {};
- Object.defineProperty(o, "foo", {get: function() {return 42;}});
+var o = {};
+Object.defineProperty(o, "foo", {
+ get: function() {
+ return 42;
+ }
+});
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js
index 6d8b4634d..5940f377e 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js
@@ -8,7 +8,12 @@ description: >
getter property)
---*/
- var o = {};
- Object.defineProperty(o, "foo", {get: function() {return 42;}, enumerable:true});
+var o = {};
+Object.defineProperty(o, "foo", {
+ get: function() {
+ return 42;
+ },
+ enumerable: true
+});
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_28.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_28.js
index 19bcb8142..122313417 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_28.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_28.js
@@ -8,7 +8,12 @@ description: >
getter property)
---*/
- var o = {};
- Object.defineProperty(o, "foo", {get: function() {return 42;}, configurable:true});
+var o = {};
+Object.defineProperty(o, "foo", {
+ get: function() {
+ return 42;
+ },
+ configurable: true
+});
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_29.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_29.js
index 01587705d..d048b990f 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_29.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_29.js
@@ -8,7 +8,13 @@ description: >
getter property)
---*/
- var o = {};
- Object.defineProperty(o, "foo", {get: function() {return 42;}, enumerable:true, configurable:true});
+var o = {};
+Object.defineProperty(o, "foo", {
+ get: function() {
+ return 42;
+ },
+ enumerable: true,
+ configurable: true
+});
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_3.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_3.js
index 8c851da5a..5e3001064 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_3.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_3.js
@@ -6,7 +6,9 @@ es5id: 8.12.1-1_3
description: Properties - [[HasOwnProperty]] (old style inherited property)
---*/
- var base = {foo:42};
- var o = Object.create(base);
+var base = {
+ foo: 42
+};
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js
index 5d12f52ff..7cc54bf8c 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js
@@ -8,7 +8,10 @@ description: >
own setter property)
---*/
- var o = {};
- Object.defineProperty(o, "foo", {set: function() {;}});
+var o = {};
+Object.defineProperty(o, "foo", {
+ set: function() {;
+ }
+});
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_31.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_31.js
index 0e9e30575..915cf98a0 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_31.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_31.js
@@ -8,7 +8,11 @@ description: >
setter property)
---*/
- var o = {};
- Object.defineProperty(o, "foo", {set: function() {;}, enumerable:true});
+var o = {};
+Object.defineProperty(o, "foo", {
+ set: function() {;
+ },
+ enumerable: true
+});
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_32.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_32.js
index f0a345b0b..0723ab84b 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_32.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_32.js
@@ -8,7 +8,11 @@ description: >
setter property)
---*/
- var o = {};
- Object.defineProperty(o, "foo", {set: function() {;}, configurable:true});
+var o = {};
+Object.defineProperty(o, "foo", {
+ set: function() {;
+ },
+ configurable: true
+});
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_33.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_33.js
index 1b7e60c21..1cdaa72f6 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_33.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_33.js
@@ -8,7 +8,12 @@ description: >
setter property)
---*/
- var o = {};
- Object.defineProperty(o, "foo", {set: function() {;}, enumerable:true, configurable:true});
+var o = {};
+Object.defineProperty(o, "foo", {
+ set: function() {;
+ },
+ enumerable: true,
+ configurable: true
+});
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_34.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_34.js
index 2b34bf9b6..4fb47b26e 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_34.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_34.js
@@ -8,7 +8,13 @@ description: >
own getter/setter property)
---*/
- var o = {};
- Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}});
+var o = {};
+Object.defineProperty(o, "foo", {
+ get: function() {
+ return 42;
+ },
+ set: function() {;
+ }
+});
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_35.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_35.js
index 01ef0ead2..5479c80e4 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_35.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_35.js
@@ -8,7 +8,14 @@ description: >
getter/setter property)
---*/
- var o = {};
- Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true});
+var o = {};
+Object.defineProperty(o, "foo", {
+ get: function() {
+ return 42;
+ },
+ set: function() {;
+ },
+ enumerable: true
+});
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_36.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_36.js
index a07762869..43f18c8eb 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_36.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_36.js
@@ -8,7 +8,14 @@ description: >
getter/setter property)
---*/
- var o = {};
- Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, configurable:true});
+var o = {};
+Object.defineProperty(o, "foo", {
+ get: function() {
+ return 42;
+ },
+ set: function() {;
+ },
+ configurable: true
+});
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js
index 1938b5a2c..518209e48 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js
@@ -8,7 +8,15 @@ description: >
getter/setter property)
---*/
- var o = {};
- Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true, configurable:true});
+var o = {};
+Object.defineProperty(o, "foo", {
+ get: function() {
+ return 42;
+ },
+ set: function() {;
+ },
+ enumerable: true,
+ configurable: true
+});
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_38.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_38.js
index 801ecdaee..2c9bbbfbb 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_38.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_38.js
@@ -8,8 +8,12 @@ description: >
inherited getter property)
---*/
- var base = {};
- Object.defineProperty(base, "foo", {get: function() {return 42;}});
- var o = Object.create(base);
+var base = {};
+Object.defineProperty(base, "foo", {
+ get: function() {
+ return 42;
+ }
+});
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_39.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_39.js
index 5a0e15903..1fbdea763 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_39.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_39.js
@@ -8,8 +8,13 @@ description: >
inherited getter property)
---*/
- var base = {};
- Object.defineProperty(base, "foo", {get: function() {return 42;}, enumerable:true});
- var o = Object.create(base);
+var base = {};
+Object.defineProperty(base, "foo", {
+ get: function() {
+ return 42;
+ },
+ enumerable: true
+});
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_4.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_4.js
index dac63b029..ecb418e5b 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_4.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_4.js
@@ -8,7 +8,9 @@ description: >
non-enumerable own value property)
---*/
- var o = {};
- Object.defineProperty(o, "foo", {value: 42});
+var o = {};
+Object.defineProperty(o, "foo", {
+ value: 42
+});
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_40.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_40.js
index a04fd4369..b2f7e70bc 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_40.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_40.js
@@ -8,8 +8,13 @@ description: >
inherited getter property)
---*/
- var base = {};
- Object.defineProperty(base, "foo", {get: function() {return 42;}, configurable:true});
- var o = Object.create(base);
+var base = {};
+Object.defineProperty(base, "foo", {
+ get: function() {
+ return 42;
+ },
+ configurable: true
+});
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_41.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_41.js
index bf0dbd47d..9e94e6664 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_41.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_41.js
@@ -8,8 +8,14 @@ description: >
inherited getter property)
---*/
- var base = {};
- Object.defineProperty(base, "foo", {get: function() {return 42;}, enumerable:true, configurable:true});
- var o = Object.create(base);
+var base = {};
+Object.defineProperty(base, "foo", {
+ get: function() {
+ return 42;
+ },
+ enumerable: true,
+ configurable: true
+});
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_42.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_42.js
index 97bab311f..705516ffb 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_42.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_42.js
@@ -8,8 +8,11 @@ description: >
inherited setter property)
---*/
- var base = {};
- Object.defineProperty(base, "foo", {set: function() {;}});
- var o = Object.create(base);
+var base = {};
+Object.defineProperty(base, "foo", {
+ set: function() {;
+ }
+});
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_43.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_43.js
index baa392b1f..a66ec81a8 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_43.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_43.js
@@ -8,8 +8,12 @@ description: >
inherited setter property)
---*/
- var base = {};
- Object.defineProperty(base, "foo", {set: function() {;}, enumerable:true});
- var o = Object.create(base);
+var base = {};
+Object.defineProperty(base, "foo", {
+ set: function() {;
+ },
+ enumerable: true
+});
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_44.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_44.js
index 07b368234..111459fe2 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_44.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_44.js
@@ -8,8 +8,12 @@ description: >
inherited setter property)
---*/
- var base = {};
- Object.defineProperty(base, "foo", {set: function() {;}, configurable:true});
- var o = Object.create(base);
+var base = {};
+Object.defineProperty(base, "foo", {
+ set: function() {;
+ },
+ configurable: true
+});
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_45.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_45.js
index 68c0517cc..1e160d7bb 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_45.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_45.js
@@ -8,8 +8,13 @@ description: >
inherited setter property)
---*/
- var base = {};
- Object.defineProperty(base, "foo", {set: function() {;}, enumerable:true, configurable:true});
- var o = Object.create(base);
+var base = {};
+Object.defineProperty(base, "foo", {
+ set: function() {;
+ },
+ enumerable: true,
+ configurable: true
+});
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_46.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_46.js
index 1ff589a9b..aaecbc8cc 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_46.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_46.js
@@ -8,8 +8,14 @@ description: >
inherited getter/setter property)
---*/
- var base = {};
- Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}});
- var o = Object.create(base);
+var base = {};
+Object.defineProperty(base, "foo", {
+ get: function() {
+ return 42;
+ },
+ set: function() {;
+ }
+});
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_47.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_47.js
index 16bc5d71b..abbb759e0 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_47.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_47.js
@@ -8,8 +8,15 @@ description: >
inherited getter/setter property)
---*/
- var base = {};
- Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true});
- var o = Object.create(base);
+var base = {};
+Object.defineProperty(base, "foo", {
+ get: function() {
+ return 42;
+ },
+ set: function() {;
+ },
+ enumerable: true
+});
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_48.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_48.js
index 0a9c741ff..7f69fbd29 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_48.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_48.js
@@ -8,8 +8,15 @@ description: >
inherited getter/setter property)
---*/
- var base = {};
- Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}, configurable:true});
- var o = Object.create(base);
+var base = {};
+Object.defineProperty(base, "foo", {
+ get: function() {
+ return 42;
+ },
+ set: function() {;
+ },
+ configurable: true
+});
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_49.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_49.js
index d492e9ee8..b8a66b8d5 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_49.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_49.js
@@ -8,8 +8,16 @@ description: >
inherited getter/setter property)
---*/
- var base = {};
- Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true, configurable:true});
- var o = Object.create(base);
+var base = {};
+Object.defineProperty(base, "foo", {
+ get: function() {
+ return 42;
+ },
+ set: function() {;
+ },
+ enumerable: true,
+ configurable: true
+});
+var o = Object.create(base);
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_5.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_5.js
index 19d6229e9..4a11bd83f 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_5.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_5.js
@@ -8,7 +8,10 @@ description: >
enumerable own value property)
---*/
- var o = {};
- Object.defineProperty(o, "foo", {value: 42, enumerable:true});
+var o = {};
+Object.defineProperty(o, "foo", {
+ value: 42,
+ enumerable: true
+});
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_6.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_6.js
index 76bd5649c..09a91470d 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_6.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_6.js
@@ -8,7 +8,10 @@ description: >
non-enumerable own value property)
---*/
- var o = {};
- Object.defineProperty(o, "foo", {value: 42, configurable:true});
+var o = {};
+Object.defineProperty(o, "foo", {
+ value: 42,
+ configurable: true
+});
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_7.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_7.js
index 8c6ea6884..34350c2f1 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_7.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_7.js
@@ -8,7 +8,10 @@ description: >
non-enumerable own value property)
---*/
- var o = {};
- Object.defineProperty(o, "foo", {value: 42, writable:true});
+var o = {};
+Object.defineProperty(o, "foo", {
+ value: 42,
+ writable: true
+});
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_8.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_8.js
index 384f1c801..633ea1181 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_8.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_8.js
@@ -8,7 +8,11 @@ description: >
enumerable own value property)
---*/
- var o = {};
- Object.defineProperty(o, "foo", {value: 42, configurable:true, enumerable:true});
+var o = {};
+Object.defineProperty(o, "foo", {
+ value: 42,
+ configurable: true,
+ enumerable: true
+});
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_9.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_9.js
index e17903b7c..12dcc4500 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_9.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_9.js
@@ -8,7 +8,11 @@ description: >
enumerable own value property)
---*/
- var o = {};
- Object.defineProperty(o, "foo", {value: 42, writable:true, enumerable:true});
+var o = {};
+Object.defineProperty(o, "foo", {
+ value: 42,
+ writable: true,
+ enumerable: true
+});
assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A10.js b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A10.js
index fee99fa5b..67b8c7ae8 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A10.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A10.js
@@ -19,7 +19,9 @@ if (!(Object.prototype.hasOwnProperty.hasOwnProperty('length'))) {
var obj = Object.prototype.hasOwnProperty.length;
-verifyNotWritable(Object.prototype.hasOwnProperty, "length", null, function(){return "shifted";});
+verifyNotWritable(Object.prototype.hasOwnProperty, "length", null, function() {
+ return "shifted";
+});
//CHECK#2
if (Object.prototype.hasOwnProperty.length !== obj) {
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T2.js b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T2.js
index 27b0f780b..7fa88ceae 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T2.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T2.js
@@ -17,7 +17,9 @@ if (typeof Object.prototype.hasOwnProperty !== "function") {
$ERROR('#1: hasOwnProperty method is defined');
}
-var obj = {the_property:true};
+var obj = {
+ the_property: true
+};
//CHECK#2
if (typeof obj.hasOwnProperty !== "function") {
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T3.js b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T3.js
index dbe38a78d..9108ec962 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T3.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T3.js
@@ -14,8 +14,8 @@ description: >
function object
---*/
-var FACTORY = function(){
- this.aproperty = 1;
+var FACTORY = function() {
+ this.aproperty = 1;
};
var instance = new FACTORY;
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A6.js b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A6.js
index e49432003..9318f2321 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A6.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A6.js
@@ -11,6 +11,6 @@ description: >
//CHECK#1
if (Object.prototype.hasOwnProperty.prototype !== undefined) {
- $ERROR('#1: Object.prototype.hasOwnProperty has not prototype property'+Object.prototype.hasOwnProperty.prototype);
+ $ERROR('#1: Object.prototype.hasOwnProperty has not prototype property' + Object.prototype.hasOwnProperty.prototype);
}
//
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A8.js b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A8.js
index a4df74d40..78e728269 100644
--- a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A8.js
+++ b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A8.js
@@ -23,8 +23,8 @@ if (Object.prototype.hasOwnProperty.propertyIsEnumerable('length')) {
}
// CHECK#2
-for (var p in Object.prototype.hasOwnProperty){
- if (p==="length")
- $ERROR('#2: the Object.prototype.hasOwnProperty.length property has the attributes DontEnum');
+for (var p in Object.prototype.hasOwnProperty) {
+ if (p === "length")
+ $ERROR('#2: the Object.prototype.hasOwnProperty.length property has the attributes DontEnum');
}
//
diff --git a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A1.js b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A1.js
index 1b87a6c6e..5f27c33bf 100644
--- a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A1.js
+++ b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A1.js
@@ -9,16 +9,20 @@ es5id: 15.2.4.6_A1
description: Creating two objects with the same prototype
---*/
-function USER_FACTORY( name ) {
+function USER_FACTORY(name) {
this.name = name;
- this.getName=function(){return name;};
+ this.getName = function() {
+ return name;
+ };
}
-function FORCEDUSER_FACTORY( name, grade ) {
- this.name = name;
+function FORCEDUSER_FACTORY(name, grade) {
+ this.name = name;
this.grade = grade;
- this.getGrade=function(){return grade;};
+ this.getGrade = function() {
+ return grade;
+ };
}
var proto = new USER_FACTORY("noname");
@@ -48,7 +52,7 @@ assert.sameValue(
/////////
//////
// CHECK#3
-if(Number.isPrototypeOf(luke)){
+if (Number.isPrototypeOf(luke)) {
$ERROR('#2: Native ECMAScript objects have an internal property called [[Prototype]].');
}
//
diff --git a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A10.js b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A10.js
index 264eead2e..a1d728169 100644
--- a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A10.js
+++ b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A10.js
@@ -19,7 +19,9 @@ if (!(Object.prototype.isPrototypeOf.hasOwnProperty('length'))) {
var obj = Object.prototype.isPrototypeOf.length;
-verifyNotWritable(Object.prototype.isPrototypeOf, "length", null, function(){return "shifted";});
+verifyNotWritable(Object.prototype.isPrototypeOf, "length", null, function() {
+ return "shifted";
+});
//CHECK#2
if (Object.prototype.isPrototypeOf.length !== obj) {
diff --git a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A6.js b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A6.js
index dd63755a1..3ab10f971 100644
--- a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A6.js
+++ b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A6.js
@@ -11,6 +11,6 @@ description: >
//CHECK#1
if (Object.prototype.isPrototypeOf.prototype !== undefined) {
- $ERROR('#1: Object.prototype.isPrototypeOf has not prototype property'+Object.prototype.isPrototypeOf.prototype);
+ $ERROR('#1: Object.prototype.isPrototypeOf has not prototype property' + Object.prototype.isPrototypeOf.prototype);
}
//
diff --git a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A8.js b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A8.js
index c50e0a097..8c959469b 100644
--- a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A8.js
+++ b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A8.js
@@ -23,8 +23,8 @@ if (Object.prototype.isPrototypeOf.propertyIsEnumerable('length')) {
}
// CHECK#2
-for (var p in Object.prototype.isPrototypeOf){
- if (p==="length")
- $ERROR('#2: the Object.prototype.isPrototypeOf.length property has the attributes DontEnum');
+for (var p in Object.prototype.isPrototypeOf) {
+ if (p === "length")
+ $ERROR('#2: the Object.prototype.isPrototypeOf.length property has the attributes DontEnum');
}
//
diff --git a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A10.js b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A10.js
index 6450d5b30..8bef9171c 100644
--- a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A10.js
+++ b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A10.js
@@ -19,7 +19,9 @@ if (!(Object.prototype.propertyIsEnumerable.hasOwnProperty('length'))) {
var obj = Object.prototype.propertyIsEnumerable.length;
-verifyNotWritable(Object.prototype.propertyIsEnumerable, "length", null, function(){return "shifted";});
+verifyNotWritable(Object.prototype.propertyIsEnumerable, "length", null, function() {
+ return "shifted";
+});
//CHECK#2
if (Object.prototype.propertyIsEnumerable.length !== obj) {
diff --git a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A1_T1.js b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A1_T1.js
index a28b7c621..a571b5a29 100644
--- a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A1_T1.js
+++ b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A1_T1.js
@@ -16,13 +16,17 @@ if (typeof Object.prototype.propertyIsEnumerable !== "function") {
$ERROR('#1: propertyIsEnumerable method is defined');
}
-var proto={rootprop:"avis"};
+var proto = {
+ rootprop: "avis"
+};
-function AVISFACTORY(name){this.name=name};
+function AVISFACTORY(name) {
+ this.name = name
+};
AVISFACTORY.prototype = proto;
-var seagull= new AVISFACTORY("seagull");
+var seagull = new AVISFACTORY("seagull");
//CHECK#2
if (typeof seagull.propertyIsEnumerable !== "function") {
diff --git a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js
index 5df54cfcc..16aa7b4e2 100644
--- a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js
+++ b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js
@@ -20,7 +20,9 @@ if (typeof Object.prototype.propertyIsEnumerable !== "function") {
$ERROR('#1: propertyIsEnumerable method is defined');
}
-var obj = {the_property:true};
+var obj = {
+ the_property: true
+};
//CHECK#2
if (typeof obj.propertyIsEnumerable !== "function") {
@@ -33,11 +35,11 @@ if (!(obj.propertyIsEnumerable("the_property"))) {
}
//CHECK#4
-var accum="";
-for(var prop in obj) {
- accum+=prop;
+var accum = "";
+for (var prop in obj) {
+ accum += prop;
}
-if (accum.indexOf("the_property")!==0) {
+if (accum.indexOf("the_property") !== 0) {
$ERROR('#4: enumerating works properly');
}
//
diff --git a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A6.js b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A6.js
index 4e093cda9..001f70b48 100644
--- a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A6.js
+++ b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A6.js
@@ -11,6 +11,6 @@ description: >
//CHECK#1
if (Object.prototype.propertyIsEnumerable.prototype !== undefined) {
- $ERROR('#1: Object.prototype.propertyIsEnumerable has not prototype property'+Object.prototype.propertyIsEnumerable.prototype);
+ $ERROR('#1: Object.prototype.propertyIsEnumerable has not prototype property' + Object.prototype.propertyIsEnumerable.prototype);
}
//
diff --git a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A8.js b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A8.js
index a9a87c5da..70465fab8 100644
--- a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A8.js
+++ b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A8.js
@@ -23,8 +23,8 @@ if (Object.prototype.propertyIsEnumerable.propertyIsEnumerable('length')) {
}
// CHECK#2
-for (var p in Object.prototype.propertyIsEnumerable){
- if (p==="length")
- $ERROR('#2: the Object.prototype.propertyIsEnumerable.length property has the attributes DontEnum');
+for (var p in Object.prototype.propertyIsEnumerable) {
+ if (p === "length")
+ $ERROR('#2: the Object.prototype.propertyIsEnumerable.length property has the attributes DontEnum');
}
//
diff --git a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A1.js b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A1.js
index 9f81cd598..c1fad81ff 100644
--- a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A1.js
+++ b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A1.js
@@ -20,6 +20,6 @@ if (Object.prototype.toLocaleString() !== Object.prototype.toString()) {
}
//CHECK#2
-if ({}.toLocaleString()!=={}.toString()) {
+if ({}.toLocaleString() !== {}.toString()) {
$ERROR('#2: toLocaleString function returns the result of calling toString()');
}
diff --git a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A10.js b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A10.js
index e07bb39a1..874c1a86a 100644
--- a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A10.js
+++ b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A10.js
@@ -19,7 +19,9 @@ if (!(Object.prototype.toLocaleString.hasOwnProperty('length'))) {
var obj = Object.prototype.toLocaleString.length;
-verifyNotWritable(Object.prototype.toLocaleString, "length", null, function(){return "shifted";});
+verifyNotWritable(Object.prototype.toLocaleString, "length", null, function() {
+ return "shifted";
+});
//CHECK#2
if (Object.prototype.toLocaleString.length !== obj) {
diff --git a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A6.js b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A6.js
index 2ba063780..21474c3d6 100644
--- a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A6.js
+++ b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A6.js
@@ -11,6 +11,6 @@ description: >
//CHECK#1
if (Object.prototype.toLocaleString.prototype !== undefined) {
- $ERROR('#1: Object.prototype.toLocaleString has not prototype property'+Object.prototype.toLocaleString.prototype);
+ $ERROR('#1: Object.prototype.toLocaleString has not prototype property' + Object.prototype.toLocaleString.prototype);
}
//
diff --git a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A8.js b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A8.js
index adddc36be..4e6402e8c 100644
--- a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A8.js
+++ b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A8.js
@@ -23,8 +23,8 @@ if (Object.prototype.toLocaleString.propertyIsEnumerable('length')) {
}
// CHECK#2
-for (var p in Object.prototype.toLocaleString){
- if (p==="length")
- $ERROR('#2: the Object.prototype.toLocaleString.length property has the attributes DontEnum');
+for (var p in Object.prototype.toLocaleString) {
+ if (p === "length")
+ $ERROR('#2: the Object.prototype.toLocaleString.length property has the attributes DontEnum');
}
//
diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A1.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A1.js
index d9aea6b89..6aee4b330 100644
--- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A1.js
+++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A1.js
@@ -19,11 +19,11 @@ if (typeof Object.prototype.toString !== "function") {
}
//CHECK#2
-if (Object.prototype.toString() !=="[object "+"Object"+"]") {
+if (Object.prototype.toString() !== "[object " + "Object" + "]") {
$ERROR('#2: return a string value by concatenating the three strings "[object ", the [[Class]] property of this object, and "]"');
}
//CHECK#3
-if ({}.toString()!=="[object "+"Object"+"]") {
+if ({}.toString() !== "[object " + "Object" + "]") {
$ERROR('#3: return a string value by concatenating the three strings "[object ", the [[Class]] property of this object, and "]"');
}
diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A10.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A10.js
index 9478a50d7..39321f620 100644
--- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A10.js
+++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A10.js
@@ -17,7 +17,9 @@ if (!(Object.prototype.toString.hasOwnProperty('length'))) {
var obj = Object.prototype.toString.length;
-verifyNotWritable(Object.prototype.toString, "length", null, function(){return "shifted";});
+verifyNotWritable(Object.prototype.toString, "length", null, function() {
+ return "shifted";
+});
//CHECK#2
if (Object.prototype.toString.length !== obj) {
diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A14.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A14.js
index 86e338520..496eec11b 100644
--- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A14.js
+++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A14.js
@@ -10,5 +10,5 @@ description: >
if (Object.prototype.toString.call(33) !== "[object Number]") {
$ERROR('Let O be the result of calling ToObject passing the this ' +
- 'value as the argument.');
+ 'value as the argument.');
}
diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A15.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A15.js
index 37eedc92a..078962da3 100644
--- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A15.js
+++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A15.js
@@ -10,5 +10,5 @@ description: >
if (Object.prototype.toString.call(true) !== "[object Boolean]") {
$ERROR('Let O be the result of calling ToObject passing the this ' +
- 'value as the argument.');
+ 'value as the argument.');
}
diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A16.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A16.js
index c1081121c..616a35f09 100644
--- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A16.js
+++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A16.js
@@ -10,5 +10,5 @@ description: >
if (Object.prototype.toString.call('foo') !== "[object String]") {
$ERROR('Let O be the result of calling ToObject passing the this ' +
- 'value as the argument.');
+ 'value as the argument.');
}
diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A6.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A6.js
index 08a81d649..6c8e0d7ad 100644
--- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A6.js
+++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A6.js
@@ -11,6 +11,6 @@ description: >
//CHECK#1
if (Object.prototype.toString.prototype !== undefined) {
- $ERROR('#1: Object.prototype.toString has not prototype property'+Object.prototype.toString.prototype);
+ $ERROR('#1: Object.prototype.toString has not prototype property' + Object.prototype.toString.prototype);
}
//
diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A8.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A8.js
index 5432ecd3b..8a38eaa0e 100644
--- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A8.js
+++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A8.js
@@ -21,8 +21,8 @@ if (Object.prototype.toString.propertyIsEnumerable('length')) {
}
// CHECK#2
-for (var p in Object.prototype.toString){
- if (p==="length")
- $ERROR('#2: the Object.prototype.toString.length property has the attributes DontEnum');
+for (var p in Object.prototype.toString) {
+ if (p === "length")
+ $ERROR('#2: the Object.prototype.toString.length property has the attributes DontEnum');
}
//
diff --git a/test/built-ins/Object/prototype/toString/symbol-tag-non-str.js b/test/built-ins/Object/prototype/toString/symbol-tag-non-str.js
index 6297a4aeb..ae3d4adc9 100644
--- a/test/built-ins/Object/prototype/toString/symbol-tag-non-str.js
+++ b/test/built-ins/Object/prototype/toString/symbol-tag-non-str.js
@@ -34,5 +34,9 @@ assert.sameValue(Object.prototype.toString.call(custom), '[object Object]');
custom[Symbol.toStringTag] = {};
assert.sameValue(Object.prototype.toString.call(custom), '[object Object]');
-custom[Symbol.toStringTag] = { toString: function() { return 'str'; } };
+custom[Symbol.toStringTag] = {
+ toString: function() {
+ return 'str';
+ }
+};
assert.sameValue(Object.prototype.toString.call(custom), '[object Object]');
diff --git a/test/built-ins/Object/prototype/toString/symbol-tag-override-instances.js b/test/built-ins/Object/prototype/toString/symbol-tag-override-instances.js
index 48d20a419..26f9f4bbf 100644
--- a/test/built-ins/Object/prototype/toString/symbol-tag-override-instances.js
+++ b/test/built-ins/Object/prototype/toString/symbol-tag-override-instances.js
@@ -24,7 +24,9 @@ custom = new String();
custom[Symbol.toStringTag] = 'test262';
assert.sameValue(Object.prototype.toString.call(custom), '[object test262]');
-custom = (function() { return arguments; }());
+custom = (function() {
+ return arguments;
+}());
custom[Symbol.toStringTag] = 'test262';
assert.sameValue(Object.prototype.toString.call(custom), '[object test262]');
diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A10.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A10.js
index 83df8a3bd..c8d3c25a5 100644
--- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A10.js
+++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A10.js
@@ -17,7 +17,9 @@ if (!(Object.prototype.valueOf.hasOwnProperty('length'))) {
var obj = Object.prototype.valueOf.length;
-verifyNotWritable(Object.prototype.valueOf, "length", null, function(){return "shifted";});
+verifyNotWritable(Object.prototype.valueOf, "length", null, function() {
+ return "shifted";
+});
//CHECK#2
if (Object.prototype.valueOf.length !== obj) {
diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A12.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A12.js
index a041be8bf..b09d95dea 100644
--- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A12.js
+++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A12.js
@@ -10,5 +10,5 @@ description: Checking Object.prototype.valueOf invoked by the 'call' property.
---*/
assert.throws(TypeError, function() {
- Object.prototype.valueOf.call(undefined);
+ Object.prototype.valueOf.call(undefined);
});
diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A14.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A14.js
index f576d726f..bff652786 100644
--- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A14.js
+++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A14.js
@@ -10,5 +10,5 @@ description: Checking Object.prototype.valueOf invoked by the 'call' property.
---*/
assert.throws(TypeError, function() {
- (1,Object.prototype.valueOf)();
+ (1, Object.prototype.valueOf)();
});
diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A15.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A15.js
index 4b296a9c2..147a31aee 100644
--- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A15.js
+++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A15.js
@@ -12,5 +12,5 @@ description: Checking Object.prototype.valueOf when called as a global function.
var v = Object.prototype.valueOf;
assert.throws(TypeError, function() {
- v();
+ v();
});
diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T1.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T1.js
index b138c58dc..31e763a47 100644
--- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T1.js
+++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T1.js
@@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") {
$ERROR('#1: valueOf method defined');
}
-var obj=new Object(1.1);
+var obj = new Object(1.1);
//CHECK#2
if (typeof obj.valueOf !== "function") {
@@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") {
}
//CHECK#3
-if (obj.valueOf()!==1.1) {
+if (obj.valueOf() !== 1.1) {
$ERROR('#3: The valueOf method returns its this value');
}
diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T2.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T2.js
index 7cddd7100..116cfeec6 100644
--- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T2.js
+++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T2.js
@@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") {
$ERROR('#1: valueOf method defined');
}
-var obj=new Object(true);
+var obj = new Object(true);
//CHECK#2
if (typeof obj.valueOf !== "function") {
@@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") {
}
//CHECK#3
-if (obj.valueOf()!==true) {
+if (obj.valueOf() !== true) {
$ERROR('#3: The valueOf method returns its this value');
}
diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T3.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T3.js
index 0374674c8..7a62551a3 100644
--- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T3.js
+++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T3.js
@@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") {
$ERROR('#1: valueOf method defined');
}
-var obj=new Object("greenfield");
+var obj = new Object("greenfield");
//CHECK#2
if (typeof obj.valueOf !== "function") {
@@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") {
}
//CHECK#3
-if (obj.valueOf()!=="greenfield") {
+if (obj.valueOf() !== "greenfield") {
$ERROR('#3: The valueOf method returns its this value');
}
diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T4.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T4.js
index 0c1e63062..b5e10ce3f 100644
--- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T4.js
+++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T4.js
@@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") {
$ERROR('#1: valueOf method defined');
}
-var obj=new Object;
+var obj = new Object;
//CHECK#2
if (typeof obj.valueOf !== "function") {
@@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") {
}
//CHECK#3
-if (obj.valueOf()!==obj) {
+if (obj.valueOf() !== obj) {
$ERROR('#3: The valueOf method returns its this value');
}
diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T5.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T5.js
index 4ab7b5b4f..ad158cea2 100644
--- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T5.js
+++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T5.js
@@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") {
$ERROR('#1: valueOf method defined');
}
-var obj=new Object(null);
+var obj = new Object(null);
//CHECK#2
if (typeof obj.valueOf !== "function") {
@@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") {
}
//CHECK#3
-if (obj.valueOf()!==obj) {
+if (obj.valueOf() !== obj) {
$ERROR('#3: The valueOf method returns its this value');
}
diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T6.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T6.js
index bbf95febd..b371d63d0 100644
--- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T6.js
+++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T6.js
@@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") {
$ERROR('#1: valueOf method defined');
}
-var obj=new Object(undefined);
+var obj = new Object(undefined);
//CHECK#2
if (typeof obj.valueOf !== "function") {
@@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") {
}
//CHECK#3
-if (obj.valueOf()!==obj) {
+if (obj.valueOf() !== obj) {
$ERROR('#3: The valueOf method returns its this value');
}
diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T7.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T7.js
index e8a246064..61befa57c 100644
--- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T7.js
+++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T7.js
@@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") {
$ERROR('#1: valueOf method defined');
}
-var obj=new Object(void 0);
+var obj = new Object(void 0);
//CHECK#2
if (typeof obj.valueOf !== "function") {
@@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") {
}
//CHECK#3
-if (obj.valueOf()!==obj) {
+if (obj.valueOf() !== obj) {
$ERROR('#3: The valueOf method returns its this value');
}
diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A6.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A6.js
index b9cc6e21f..931f2d41f 100644
--- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A6.js
+++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A6.js
@@ -11,6 +11,6 @@ description: >
//CHECK#1
if (Object.prototype.valueOf.prototype !== undefined) {
- $ERROR('#1: Object.prototype.valueOf has not prototype property'+Object.prototype.valueOf.prototype);
+ $ERROR('#1: Object.prototype.valueOf has not prototype property' + Object.prototype.valueOf.prototype);
}
//
diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A8.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A8.js
index 384ef8319..424e64330 100644
--- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A8.js
+++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A8.js
@@ -21,8 +21,8 @@ if (Object.prototype.valueOf.propertyIsEnumerable('length')) {
}
// CHECK#2
-for (var p in Object.prototype.valueOf){
- if (p==="length")
- $ERROR('#2: the Object.prototype.valueOf.length property has the attributes DontEnum');
+for (var p in Object.prototype.valueOf) {
+ if (p === "length")
+ $ERROR('#2: the Object.prototype.valueOf.length property has the attributes DontEnum');
}
//
diff --git a/test/built-ins/Object/seal/15.2.3.8-0-1.js b/test/built-ins/Object/seal/15.2.3.8-0-1.js
index 4bfadadec..cac02cc1f 100644
--- a/test/built-ins/Object/seal/15.2.3.8-0-1.js
+++ b/test/built-ins/Object/seal/15.2.3.8-0-1.js
@@ -6,6 +6,6 @@ es5id: 15.2.3.8-0-1
description: Object.seal must exist as a function
---*/
- var f = Object.seal;
+var f = Object.seal;
assert.sameValue(typeof(f), "function", 'typeof(f)');
diff --git a/test/built-ins/Object/seal/15.2.3.8-1-1.js b/test/built-ins/Object/seal/15.2.3.8-1-1.js
index f07811dfd..58a6938a6 100644
--- a/test/built-ins/Object/seal/15.2.3.8-1-1.js
+++ b/test/built-ins/Object/seal/15.2.3.8-1-1.js
@@ -8,4 +8,4 @@ description: >
undefined
---*/
- Object.seal(undefined);
+Object.seal(undefined);
diff --git a/test/built-ins/Object/seal/15.2.3.8-1-2.js b/test/built-ins/Object/seal/15.2.3.8-1-2.js
index 25391eeff..d28014c5e 100644
--- a/test/built-ins/Object/seal/15.2.3.8-1-2.js
+++ b/test/built-ins/Object/seal/15.2.3.8-1-2.js
@@ -6,4 +6,4 @@ es5id: 15.2.3.8-1-2
description: Object.seal does not throw TypeError if type of first param is null
---*/
- Object.seal(null);
+Object.seal(null);
diff --git a/test/built-ins/Object/seal/15.2.3.8-1-3.js b/test/built-ins/Object/seal/15.2.3.8-1-3.js
index 66e063ba5..326915af3 100644
--- a/test/built-ins/Object/seal/15.2.3.8-1-3.js
+++ b/test/built-ins/Object/seal/15.2.3.8-1-3.js
@@ -8,4 +8,4 @@ description: >
boolean primitive
---*/
- Object.seal(false);
+Object.seal(false);
diff --git a/test/built-ins/Object/seal/15.2.3.8-1-4.js b/test/built-ins/Object/seal/15.2.3.8-1-4.js
index feaddddbc..072c6d88c 100644
--- a/test/built-ins/Object/seal/15.2.3.8-1-4.js
+++ b/test/built-ins/Object/seal/15.2.3.8-1-4.js
@@ -8,4 +8,4 @@ description: >
string primitive
---*/
- Object.seal("abc");
+Object.seal("abc");
diff --git a/test/built-ins/Object/seal/15.2.3.8-1.js b/test/built-ins/Object/seal/15.2.3.8-1.js
index 039762df6..3a31ff959 100644
--- a/test/built-ins/Object/seal/15.2.3.8-1.js
+++ b/test/built-ins/Object/seal/15.2.3.8-1.js
@@ -8,4 +8,4 @@ description: >
Object
---*/
- Object.seal(0);
+Object.seal(0);
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-1.js b/test/built-ins/Object/seal/15.2.3.8-2-1.js
index 3d5a840ec..200d09e93 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-1.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-1.js
@@ -8,11 +8,11 @@ description: >
own property
---*/
- var obj = {};
+var obj = {};
- var preCheck = Object.isExtensible(obj);
+var preCheck = Object.isExtensible(obj);
- Object.seal(obj);
+Object.seal(obj);
assert(preCheck, 'preCheck !== true');
assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)');
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-2.js b/test/built-ins/Object/seal/15.2.3.8-2-2.js
index 24397984a..0fe3efb0a 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-2.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-2.js
@@ -6,23 +6,23 @@ es5id: 15.2.3.8-2-2
description: Object.seal - inherited data properties are ignored
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "Father", {
- value: 10,
- configurable: true
- });
+Object.defineProperty(proto, "Father", {
+ value: 10,
+ configurable: true
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- var preCheck = Object.isExtensible(child);
- Object.seal(child);
+var child = new ConstructFun();
+var preCheck = Object.isExtensible(child);
+Object.seal(child);
- var beforeDeleted = proto.hasOwnProperty("Father");
- delete proto.Father;
- var afterDeleted = proto.hasOwnProperty("Father");
+var beforeDeleted = proto.hasOwnProperty("Father");
+delete proto.Father;
+var afterDeleted = proto.hasOwnProperty("Father");
assert(preCheck, 'preCheck !== true');
assert(beforeDeleted, 'beforeDeleted !== true');
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-3.js b/test/built-ins/Object/seal/15.2.3.8-2-3.js
index 3341b0c9a..5dff8563f 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-3.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-3.js
@@ -6,25 +6,25 @@ es5id: 15.2.3.8-2-3
description: Object.seal - inherited accessor properties are ignored
---*/
- var proto = {};
+var proto = {};
- Object.defineProperty(proto, "Father", {
- get: function () {
- return 10;
- },
- configurable: true
- });
+Object.defineProperty(proto, "Father", {
+ get: function() {
+ return 10;
+ },
+ configurable: true
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
- var child = new ConstructFun();
- var preCheck = Object.isExtensible(child);
- Object.seal(child);
+var child = new ConstructFun();
+var preCheck = Object.isExtensible(child);
+Object.seal(child);
- var beforeDeleted = proto.hasOwnProperty("Father");
- delete proto.Father;
- var afterDeleted = proto.hasOwnProperty("Father");
+var beforeDeleted = proto.hasOwnProperty("Father");
+delete proto.Father;
+var afterDeleted = proto.hasOwnProperty("Father");
assert(preCheck, 'preCheck !== true');
assert(beforeDeleted, 'beforeDeleted !== true');
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-4.js b/test/built-ins/Object/seal/15.2.3.8-2-4.js
index 06898cc03..27975e688 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-4.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-4.js
@@ -10,9 +10,9 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: 10,
- enumerable: false,
- configurable: true
+ value: 10,
+ enumerable: false,
+ configurable: true
});
assert(Object.isExtensible(obj));
@@ -20,4 +20,3 @@ Object.seal(obj);
assert(obj.hasOwnProperty("foo"));
verifyNotConfigurable(obj, "foo");
-
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-a-15.js b/test/built-ins/Object/seal/15.2.3.8-2-a-15.js
index 338af82d8..242a1c85c 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-a-15.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-a-15.js
@@ -9,7 +9,9 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = (function () { return arguments; })();
+var obj = (function() {
+ return arguments;
+})();
obj.foo = 10;
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-a-2.js b/test/built-ins/Object/seal/15.2.3.8-2-a-2.js
index fe49e0454..61e30804f 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-a-2.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-a-2.js
@@ -9,15 +9,17 @@ description: >
includes: [propertyHelper.js]
---*/
-var proto = { foo: 0 };
+var proto = {
+ foo: 0
+};
-var ConstructFun = function () { };
+var ConstructFun = function() {};
ConstructFun.prototype = proto;
var obj = new ConstructFun();
Object.defineProperty(obj, "foo", {
- value: 10,
- configurable: true
+ value: 10,
+ configurable: true
});
assert(Object.isExtensible(obj));
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-a-3.js b/test/built-ins/Object/seal/15.2.3.8-2-a-3.js
index d019f9403..ee199e32a 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-a-3.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-a-3.js
@@ -12,19 +12,19 @@ includes: [propertyHelper.js]
var proto = {};
Object.defineProperty(proto, "foo", {
- get: function () {
- return 0;
- },
- configurable: true
+ get: function() {
+ return 0;
+ },
+ configurable: true
});
-var ConstructFun = function () { };
+var ConstructFun = function() {};
ConstructFun.prototype = proto;
var obj = new ConstructFun();
Object.defineProperty(obj, "foo", {
- value: 10,
- configurable: true
+ value: 10,
+ configurable: true
});
assert(Object.isExtensible(obj));
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-a-4.js b/test/built-ins/Object/seal/15.2.3.8-2-a-4.js
index 971001347..8de827bd7 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-a-4.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-a-4.js
@@ -10,10 +10,10 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- get: function () {
- return 10;
- },
- configurable: true
+ get: function() {
+ return 10;
+ },
+ configurable: true
});
assert(Object.isExtensible(obj));
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-a-5.js b/test/built-ins/Object/seal/15.2.3.8-2-a-5.js
index 06c75c087..c1057e136 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-a-5.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-a-5.js
@@ -12,20 +12,20 @@ includes: [propertyHelper.js]
var proto = {};
Object.defineProperty(proto, "foo", {
- value: 0,
- configurable: true
+ value: 0,
+ configurable: true
});
-var ConstructFun = function () { };
+var ConstructFun = function() {};
ConstructFun.prototype = proto;
var obj = new ConstructFun();
-
+
Object.defineProperty(obj, "foo", {
- get: function () {
- return 10;
- },
- configurable: true
+ get: function() {
+ return 10;
+ },
+ configurable: true
});
assert(Object.isExtensible(obj));
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-a-6.js b/test/built-ins/Object/seal/15.2.3.8-2-a-6.js
index f3966899e..7318061ce 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-a-6.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-a-6.js
@@ -12,22 +12,22 @@ includes: [propertyHelper.js]
var proto = {};
Object.defineProperty(proto, "foo", {
- get: function () {
- return 0;
- },
- configurable: true
+ get: function() {
+ return 0;
+ },
+ configurable: true
});
-var ConstructFun = function () { };
+var ConstructFun = function() {};
ConstructFun.prototype = proto;
var obj = new ConstructFun();
Object.defineProperty(obj, "foo", {
- get: function () {
- return 10;
- },
- configurable: true
+ get: function() {
+ return 10;
+ },
+ configurable: true
});
assert(Object.isExtensible(obj));
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-a-7.js b/test/built-ins/Object/seal/15.2.3.8-2-a-7.js
index 24b01f1ed..808ffc80f 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-a-7.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-a-7.js
@@ -9,7 +9,7 @@ description: >
includes: [propertyHelper.js]
---*/
-var obj = function () { };
+var obj = function() {};
obj.foo = 10;
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-b-1.js b/test/built-ins/Object/seal/15.2.3.8-2-b-1.js
index 58e43d747..ab00a63d0 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-b-1.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-b-1.js
@@ -13,16 +13,16 @@ includes: [propertyHelper.js]
var obj = {};
Object.defineProperty(obj, "foo", {
- value: 10,
- writable: true,
- enumerable: true,
- configurable: true
+ value: 10,
+ writable: true,
+ enumerable: true,
+ configurable: true
});
var preCheck = Object.isExtensible(obj);
Object.seal(obj);
if (!preCheck) {
- $ERROR('Expected preCheck to be true, actually ' + preCheck);
+ $ERROR('Expected preCheck to be true, actually ' + preCheck);
}
verifyEqualTo(obj, "foo", 10);
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-b-2.js b/test/built-ins/Object/seal/15.2.3.8-2-b-2.js
index 1ca3c0fc3..b86a51857 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-b-2.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-b-2.js
@@ -14,22 +14,23 @@ var obj = {};
obj.variableForHelpVerify = "data";
function setFunc(value) {
- obj.variableForHelpVerify = value;
+ obj.variableForHelpVerify = value;
}
+
function getFunc() {
- return 10;
+ return 10;
}
Object.defineProperty(obj, "foo", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
+ get: getFunc,
+ set: setFunc,
+ enumerable: true,
+ configurable: true
});
var preCheck = Object.isExtensible(obj);
Object.seal(obj);
if (!preCheck) {
- $ERROR('Expected preCheck to be true, actually ' + preCheck);
+ $ERROR('Expected preCheck to be true, actually ' + preCheck);
}
verifyEqualTo(obj, "foo", getFunc());
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-b-3.js b/test/built-ins/Object/seal/15.2.3.8-2-b-3.js
index 963931fa4..2576f3eba 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-b-3.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-b-3.js
@@ -14,29 +14,30 @@ var obj = {};
obj.variableForHelpVerify = "data";
Object.defineProperty(obj, "foo1", {
- value: 10,
- writable: true,
- enumerable: true,
- configurable: true
+ value: 10,
+ writable: true,
+ enumerable: true,
+ configurable: true
});
function set_func(value) {
- obj.variableForHelpVerify = value;
+ obj.variableForHelpVerify = value;
}
+
function get_func() {
- return 10;
+ return 10;
}
Object.defineProperty(obj, "foo2", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: true
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: true
});
var preCheck = Object.isExtensible(obj);
Object.seal(obj);
if (!preCheck) {
- $ERROR('Expected preCheck to be true, actually ' + preCheck);
+ $ERROR('Expected preCheck to be true, actually ' + preCheck);
}
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-b-4.js b/test/built-ins/Object/seal/15.2.3.8-2-b-4.js
index 5d455e9eb..4de248b10 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-b-4.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-b-4.js
@@ -13,33 +13,34 @@ var obj = {};
obj.variableForHelpVerify = "data";
Object.defineProperty(obj, "foo1", {
- value: 10,
- writable: true,
- enumerable: true,
- configurable: false
+ value: 10,
+ writable: true,
+ enumerable: true,
+ configurable: false
});
function set_func(value) {
- obj.variableForHelpVerify = value;
+ obj.variableForHelpVerify = value;
}
+
function get_func() {
- return 10;
+ return 10;
}
Object.defineProperty(obj, "foo2", {
- get: get_func,
- set: set_func,
- enumerable: true,
- configurable: false
+ get: get_func,
+ set: set_func,
+ enumerable: true,
+ configurable: false
});
if (!Object.isExtensible(obj)) {
- $ERROR('Expected obj to be extensible, actually ' + Object.isExtensible(obj));
+ $ERROR('Expected obj to be extensible, actually ' + Object.isExtensible(obj));
}
Object.seal(obj);
if (Object.isExtensible(obj)) {
- $ERROR('Expected obj NOT to be extensible, actually ' + Object.isExtensible(obj));
+ $ERROR('Expected obj NOT to be extensible, actually ' + Object.isExtensible(obj));
}
verifyEqualTo(obj, "foo1", 10);
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-c-1.js b/test/built-ins/Object/seal/15.2.3.8-2-c-1.js
index fe0eb6cfa..514456a66 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-c-1.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-c-1.js
@@ -6,9 +6,9 @@ es5id: 15.2.3.8-2-c-1
description: Object.seal - 'O' is a Function object
---*/
- var fun = function () { };
- var preCheck = Object.isExtensible(fun);
- Object.seal(fun);
+var fun = function() {};
+var preCheck = Object.isExtensible(fun);
+Object.seal(fun);
assert(preCheck, 'preCheck !== true');
assert(Object.isSealed(fun), 'Object.isSealed(fun) !== true');
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-c-2.js b/test/built-ins/Object/seal/15.2.3.8-2-c-2.js
index 963717c00..49a8aef6d 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-c-2.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-c-2.js
@@ -6,9 +6,9 @@ es5id: 15.2.3.8-2-c-2
description: Object.seal - 'O' is an Array object
---*/
- var arr = [0, 1];
- var preCheck = Object.isExtensible(arr);
- Object.seal(arr);
+var arr = [0, 1];
+var preCheck = Object.isExtensible(arr);
+Object.seal(arr);
assert(preCheck, 'preCheck !== true');
assert(Object.isSealed(arr), 'Object.isSealed(arr) !== true');
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-c-3.js b/test/built-ins/Object/seal/15.2.3.8-2-c-3.js
index f967549d5..447a2d5fd 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-c-3.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-c-3.js
@@ -6,9 +6,9 @@ es5id: 15.2.3.8-2-c-3
description: Object.seal - 'O' is a String object
---*/
- var strObj = new String("a");
- var preCheck = Object.isExtensible(strObj);
- Object.seal(strObj);
+var strObj = new String("a");
+var preCheck = Object.isExtensible(strObj);
+Object.seal(strObj);
assert(preCheck, 'preCheck !== true');
assert(Object.isSealed(strObj), 'Object.isSealed(strObj) !== true');
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-c-4.js b/test/built-ins/Object/seal/15.2.3.8-2-c-4.js
index 5918c5c1f..a02152abd 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-c-4.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-c-4.js
@@ -6,9 +6,9 @@ es5id: 15.2.3.8-2-c-4
description: Object.seal - 'O' is a Boolean object
---*/
- var boolObj = new Boolean(false);
- var preCheck = Object.isExtensible(boolObj);
- Object.seal(boolObj);
+var boolObj = new Boolean(false);
+var preCheck = Object.isExtensible(boolObj);
+Object.seal(boolObj);
assert(preCheck, 'preCheck !== true');
assert(Object.isSealed(boolObj), 'Object.isSealed(boolObj) !== true');
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-c-5.js b/test/built-ins/Object/seal/15.2.3.8-2-c-5.js
index ece59ee7e..b602648cd 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-c-5.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-c-5.js
@@ -6,9 +6,9 @@ es5id: 15.2.3.8-2-c-5
description: Object.seal - 'O' is a Number object
---*/
- var numObj = new Number(3);
- var preCheck = Object.isExtensible(numObj);
- Object.seal(numObj);
+var numObj = new Number(3);
+var preCheck = Object.isExtensible(numObj);
+Object.seal(numObj);
assert(preCheck, 'preCheck !== true');
assert(Object.isSealed(numObj), 'Object.isSealed(numObj) !== true');
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-c-6.js b/test/built-ins/Object/seal/15.2.3.8-2-c-6.js
index 05a03fb4b..3976ae55f 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-c-6.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-c-6.js
@@ -6,9 +6,9 @@ es5id: 15.2.3.8-2-c-6
description: Object.seal - 'O' is a Date object
---*/
- var dateObj = new Date();
- var preCheck = Object.isExtensible(dateObj);
- Object.seal(dateObj);
+var dateObj = new Date();
+var preCheck = Object.isExtensible(dateObj);
+Object.seal(dateObj);
assert(preCheck, 'preCheck !== true');
assert(Object.isSealed(dateObj), 'Object.isSealed(dateObj) !== true');
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-c-7.js b/test/built-ins/Object/seal/15.2.3.8-2-c-7.js
index 40de20e29..1e50a1602 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-c-7.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-c-7.js
@@ -6,9 +6,9 @@ es5id: 15.2.3.8-2-c-7
description: Object.seal - 'O' is a RegExp object
---*/
- var regObj = new RegExp();
- var preCheck = Object.isExtensible(regObj);
- Object.seal(regObj);
+var regObj = new RegExp();
+var preCheck = Object.isExtensible(regObj);
+Object.seal(regObj);
assert(preCheck, 'preCheck !== true');
assert(Object.isSealed(regObj), 'Object.isSealed(regObj) !== true');
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-c-8.js b/test/built-ins/Object/seal/15.2.3.8-2-c-8.js
index 0535ffd7f..e72ff6259 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-c-8.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-c-8.js
@@ -6,9 +6,9 @@ es5id: 15.2.3.8-2-c-8
description: Object.seal - 'O' is an Error object
---*/
- var errObj = new Error();
- var preCheck = Object.isExtensible(errObj);
- Object.seal(errObj);
+var errObj = new Error();
+var preCheck = Object.isExtensible(errObj);
+Object.seal(errObj);
assert(preCheck, 'preCheck !== true');
assert(Object.isSealed(errObj), 'Object.isSealed(errObj) !== true');
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-c-9.js b/test/built-ins/Object/seal/15.2.3.8-2-c-9.js
index fb65b1fe2..0a93350b3 100644
--- a/test/built-ins/Object/seal/15.2.3.8-2-c-9.js
+++ b/test/built-ins/Object/seal/15.2.3.8-2-c-9.js
@@ -6,10 +6,12 @@ es5id: 15.2.3.8-2-c-9
description: Object.seal - 'O' is an Arguments object
---*/
- var argObj = (function () { return arguments; })();
+var argObj = (function() {
+ return arguments;
+})();
- var preCheck = Object.isExtensible(argObj);
- Object.seal(argObj);
+var preCheck = Object.isExtensible(argObj);
+Object.seal(argObj);
assert(preCheck, 'preCheck !== true');
assert(Object.isSealed(argObj), 'Object.isSealed(argObj) !== true');
diff --git a/test/built-ins/Object/seal/15.2.3.8-3-1.js b/test/built-ins/Object/seal/15.2.3.8-3-1.js
index c0e9bcc75..4beb1bd67 100644
--- a/test/built-ins/Object/seal/15.2.3.8-3-1.js
+++ b/test/built-ins/Object/seal/15.2.3.8-3-1.js
@@ -6,9 +6,9 @@ es5id: 15.2.3.8-3-1
description: Object.seal - returned object is not extensible
---*/
- var obj = {};
- var preCheck = Object.isExtensible(obj);
- Object.seal(obj);
+var obj = {};
+var preCheck = Object.isExtensible(obj);
+Object.seal(obj);
assert(preCheck, 'preCheck !== true');
assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)');
diff --git a/test/built-ins/Object/seal/15.2.3.8-4-1.js b/test/built-ins/Object/seal/15.2.3.8-4-1.js
index 65ad90f6e..56ea87c30 100644
--- a/test/built-ins/Object/seal/15.2.3.8-4-1.js
+++ b/test/built-ins/Object/seal/15.2.3.8-4-1.js
@@ -6,13 +6,13 @@ es5id: 15.2.3.8-4-1
description: Object.seal - 'O' is sealed already
---*/
- var obj = {};
+var obj = {};
- obj.foo = 10; // default value of attributes: writable: true, configurable: true, enumerable: true
- var preCheck = Object.isExtensible(obj);
- Object.seal(obj);
+obj.foo = 10; // default value of attributes: writable: true, configurable: true, enumerable: true
+var preCheck = Object.isExtensible(obj);
+Object.seal(obj);
- Object.seal(obj);
+Object.seal(obj);
assert(preCheck, 'preCheck !== true');
assert(Object.isSealed(obj), 'Object.isSealed(obj) !== true');
diff --git a/test/built-ins/Object/seal/15.2.3.8-4-2.js b/test/built-ins/Object/seal/15.2.3.8-4-2.js
index 26f0600eb..bd6edb2fc 100644
--- a/test/built-ins/Object/seal/15.2.3.8-4-2.js
+++ b/test/built-ins/Object/seal/15.2.3.8-4-2.js
@@ -6,13 +6,13 @@ es5id: 15.2.3.8-4-2
description: Object.seal - 'O' is frozen already
---*/
- var obj = {};
+var obj = {};
- obj.foo = 10; // default value of attributes: writable: true, configurable: true, enumerable: true
- var preCheck = Object.isExtensible(obj);
- Object.freeze(obj);
+obj.foo = 10; // default value of attributes: writable: true, configurable: true, enumerable: true
+var preCheck = Object.isExtensible(obj);
+Object.freeze(obj);
- Object.seal(obj);
+Object.seal(obj);
assert(preCheck, 'preCheck !== true');
assert(Object.isSealed(obj), 'Object.isSealed(obj) !== true');
diff --git a/test/built-ins/Object/seal/15.2.3.8-4-3.js b/test/built-ins/Object/seal/15.2.3.8-4-3.js
index bf09289f8..0b3329c80 100644
--- a/test/built-ins/Object/seal/15.2.3.8-4-3.js
+++ b/test/built-ins/Object/seal/15.2.3.8-4-3.js
@@ -6,12 +6,12 @@ es5id: 15.2.3.8-4-3
description: Object.seal - the extension of 'O' is prevented already
---*/
- var obj = {};
+var obj = {};
- obj.foo = 10; // default value of attributes: writable: true, configurable: true, enumerable: true
- var preCheck = Object.isExtensible(obj);
- Object.preventExtensions(obj);
- Object.seal(obj);
+obj.foo = 10; // default value of attributes: writable: true, configurable: true, enumerable: true
+var preCheck = Object.isExtensible(obj);
+Object.preventExtensions(obj);
+Object.seal(obj);
assert(preCheck, 'preCheck !== true');
assert(Object.isSealed(obj), 'Object.isSealed(obj) !== true');
diff --git a/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-non-strict.js b/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-non-strict.js
index 831deb3d5..f4e15aa86 100644
--- a/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-non-strict.js
+++ b/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-non-strict.js
@@ -18,4 +18,3 @@ obj[symB] = 1;
assert.sameValue(obj[symA], 2, "The value of `obj[symA]` is `2`");
assert.sameValue(delete obj[symA], false, "`delete obj[symA]` is `false`");
assert.sameValue(obj[symB], undefined, "The value of `obj[symB]` is `undefined`");
-
diff --git a/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-strict.js b/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-strict.js
index 0c04b4316..e8fd7d34f 100644
--- a/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-strict.js
+++ b/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-strict.js
@@ -23,4 +23,3 @@ assert.throws(TypeError, function() {
assert.throws(TypeError, function() {
obj[symB] = 1;
});
-
diff --git a/test/built-ins/Object/setPrototypeOf/bigint.js b/test/built-ins/Object/setPrototypeOf/bigint.js
index 63545034f..f10b06f16 100644
--- a/test/built-ins/Object/setPrototypeOf/bigint.js
+++ b/test/built-ins/Object/setPrototypeOf/bigint.js
@@ -8,9 +8,9 @@ features: [BigInt]
---*/
try {
- let {} = 0n;
+ let {} = 0n;
} catch (e) {
- $ERROR('Expected RequireObjectCoercible to succeed for BigInt values');
+ $ERROR('Expected RequireObjectCoercible to succeed for BigInt values');
}
-assert.sameValue(Object.setPrototypeOf(0n, null), 0n);
+assert.sameValue(Object.setPrototypeOf(0n, null), 0 n);
diff --git a/test/built-ins/Object/setPrototypeOf/name.js b/test/built-ins/Object/setPrototypeOf/name.js
index 73a1c691e..d9cffe8f4 100644
--- a/test/built-ins/Object/setPrototypeOf/name.js
+++ b/test/built-ins/Object/setPrototypeOf/name.js
@@ -28,4 +28,3 @@ assert.sameValue(
verifyNotEnumerable(Object.setPrototypeOf, 'name');
verifyNotWritable(Object.setPrototypeOf, 'name');
verifyConfigurable(Object.setPrototypeOf, 'name');
-
diff --git a/test/built-ins/Object/values/exception-during-enumeration.js b/test/built-ins/Object/values/exception-during-enumeration.js
index a11b20e69..0446a33c5 100644
--- a/test/built-ins/Object/values/exception-during-enumeration.js
+++ b/test/built-ins/Object/values/exception-during-enumeration.js
@@ -8,14 +8,14 @@ author: Jordan Harband
---*/
var trappedKey = {
- get a() {
- throw new RangeError('This error should be re-thrown');
- },
- get b() {
- $ERROR('Should not try to get the second element');
- }
+ get a() {
+ throw new RangeError('This error should be re-thrown');
+ },
+ get b() {
+ $ERROR('Should not try to get the second element');
+ }
};
-assert.throws(RangeError, function () {
- Object.values(trappedKey);
+assert.throws(RangeError, function() {
+ Object.values(trappedKey);
});
diff --git a/test/built-ins/Object/values/exception-not-object-coercible.js b/test/built-ins/Object/values/exception-not-object-coercible.js
index 35dce7a18..3248b6d6f 100644
--- a/test/built-ins/Object/values/exception-not-object-coercible.js
+++ b/test/built-ins/Object/values/exception-not-object-coercible.js
@@ -7,10 +7,10 @@ description: Object.values should fail if given a null or undefined value
author: Jordan Harband
---*/
-assert.throws(TypeError, function () {
- Object.values(null);
+assert.throws(TypeError, function() {
+ Object.values(null);
});
-assert.throws(TypeError, function () {
- Object.values(undefined);
+assert.throws(TypeError, function() {
+ Object.values(undefined);
});
diff --git a/test/built-ins/Object/values/function-name.js b/test/built-ins/Object/values/function-name.js
index 7f730f141..7a9c882a1 100644
--- a/test/built-ins/Object/values/function-name.js
+++ b/test/built-ins/Object/values/function-name.js
@@ -9,9 +9,9 @@ includes: [propertyHelper.js]
---*/
assert.sameValue(
- Object.values.name,
- 'values',
- 'Expected Object.values.name to be "values"'
+ Object.values.name,
+ 'values',
+ 'Expected Object.values.name to be "values"'
);
verifyNotEnumerable(Object.values, 'name');
diff --git a/test/built-ins/Object/values/getter-adding-key.js b/test/built-ins/Object/values/getter-adding-key.js
index a2fc70242..86b61eb9a 100644
--- a/test/built-ins/Object/values/getter-adding-key.js
+++ b/test/built-ins/Object/values/getter-adding-key.js
@@ -8,11 +8,11 @@ author: Jordan Harband
---*/
var bAddsC = {
- a: 'A',
- get b() {
- this.c = 'C';
- return 'B';
- }
+ a: 'A',
+ get b() {
+ this.c = 'C';
+ return 'B';
+ }
};
var result = Object.values(bAddsC);
diff --git a/test/built-ins/Object/values/getter-making-future-key-nonenumerable.js b/test/built-ins/Object/values/getter-making-future-key-nonenumerable.js
index d54ae3027..05bfdefc6 100644
--- a/test/built-ins/Object/values/getter-making-future-key-nonenumerable.js
+++ b/test/built-ins/Object/values/getter-making-future-key-nonenumerable.js
@@ -8,14 +8,14 @@ author: Jordan Harband
---*/
var bDeletesC = {
- a: 'A',
- get b() {
- Object.defineProperty(this, 'c', {
- enumerable: false
- });
- return 'B';
- },
- c: 'C'
+ a: 'A',
+ get b() {
+ Object.defineProperty(this, 'c', {
+ enumerable: false
+ });
+ return 'B';
+ },
+ c: 'C'
};
var result = Object.values(bDeletesC);
diff --git a/test/built-ins/Object/values/getter-removing-future-key.js b/test/built-ins/Object/values/getter-removing-future-key.js
index 6893bf858..a9276075c 100644
--- a/test/built-ins/Object/values/getter-removing-future-key.js
+++ b/test/built-ins/Object/values/getter-removing-future-key.js
@@ -8,12 +8,12 @@ author: Jordan Harband
---*/
var bDeletesC = {
- a: 'A',
- get b() {
- delete this.c;
- return 'B';
- },
- c: 'C'
+ a: 'A',
+ get b() {
+ delete this.c;
+ return 'B';
+ },
+ c: 'C'
};
var result = Object.values(bDeletesC);
diff --git a/test/built-ins/Object/values/observable-operations.js b/test/built-ins/Object/values/observable-operations.js
index d6068d714..096604baa 100644
--- a/test/built-ins/Object/values/observable-operations.js
+++ b/test/built-ins/Object/values/observable-operations.js
@@ -10,27 +10,31 @@ includes: [proxyTrapsHelper.js]
---*/
var log = "";
-var object = { a: 0, b: 0, c: 0 };
+var object = {
+ a: 0,
+ b: 0,
+ c: 0
+};
var handler = allowProxyTraps({
- get: function (target, propertyKey, receiver) {
+ get: function(target, propertyKey, receiver) {
assert.sameValue(target, object, "get target");
assert.sameValue(receiver, proxy, "get receiver");
log += "|get:" + propertyKey;
return target[propertyKey];
},
- getOwnPropertyDescriptor: function (target, propertyKey) {
+ getOwnPropertyDescriptor: function(target, propertyKey) {
assert.sameValue(target, object, "getOwnPropertyDescriptor");
log += "|getOwnPropertyDescriptor:" + propertyKey;
return Object.getOwnPropertyDescriptor(target, propertyKey);
},
- ownKeys: function (target) {
+ ownKeys: function(target) {
assert.sameValue(target, object, "ownKeys");
log += "|ownKeys";
return Object.getOwnPropertyNames(target);
}
});
var check = allowProxyTraps({
- get: function (target, propertyKey, receiver) {
+ get: function(target, propertyKey, receiver) {
assert(propertyKey in target, "handler check: " + propertyKey);
return target[propertyKey];
}
diff --git a/test/built-ins/Object/values/symbols-omitted.js b/test/built-ins/Object/values/symbols-omitted.js
index 080b183e9..29273f39b 100644
--- a/test/built-ins/Object/values/symbols-omitted.js
+++ b/test/built-ins/Object/values/symbols-omitted.js
@@ -13,9 +13,14 @@ var enumSym = Symbol('enum');
var nonEnumSym = Symbol('nonenum');
var symValue = Symbol('value');
-var obj = { key: symValue };
+var obj = {
+ key: symValue
+};
obj[enumSym] = value;
-Object.defineProperty(obj, nonEnumSym, { enumerable: false, value: value });
+Object.defineProperty(obj, nonEnumSym, {
+ enumerable: false,
+ value: value
+});
var result = Object.values(obj);
diff --git a/test/built-ins/Object/values/tamper-with-global-object.js b/test/built-ins/Object/values/tamper-with-global-object.js
index e0a038ff9..86d534046 100644
--- a/test/built-ins/Object/values/tamper-with-global-object.js
+++ b/test/built-ins/Object/values/tamper-with-global-object.js
@@ -9,7 +9,7 @@ author: Jordan Harband
---*/
function fakeObject() {
- $ERROR('The overriden version of Object was called!');
+ $ERROR('The overriden version of Object was called!');
}
fakeObject.values = Object.values;
diff --git a/test/built-ins/Object/values/tamper-with-object-keys.js b/test/built-ins/Object/values/tamper-with-object-keys.js
index bdc955011..51dfbf5c4 100644
--- a/test/built-ins/Object/values/tamper-with-object-keys.js
+++ b/test/built-ins/Object/values/tamper-with-object-keys.js
@@ -9,10 +9,12 @@ author: Jordan Harband
---*/
function fakeObjectKeys() {
- $ERROR('The overriden version of Object.keys was called!');
+ $ERROR('The overriden version of Object.keys was called!');
}
Object.keys = fakeObjectKeys;
assert.sameValue(Object.keys, fakeObjectKeys, 'Sanity check failed: could not modify the global Object.keys');
-assert.sameValue(Object.values({ a: 1 }).length, 1, 'Expected object with 1 key to have 1 value');
+assert.sameValue(Object.values({
+ a: 1
+}).length, 1, 'Expected object with 1 key to have 1 value');
diff --git a/test/built-ins/Promise/S25.4.3.1_A1.1_T1.js b/test/built-ins/Promise/S25.4.3.1_A1.1_T1.js
index 6292c438e..06f9f6fb6 100644
--- a/test/built-ins/Promise/S25.4.3.1_A1.1_T1.js
+++ b/test/built-ins/Promise/S25.4.3.1_A1.1_T1.js
@@ -12,5 +12,5 @@ description: Promise === global.Promise
var global = this;
if (Promise !== global.Promise) {
- $ERROR("Expected Promise === global.Promise.");
+ $ERROR("Expected Promise === global.Promise.");
}
diff --git a/test/built-ins/Promise/S25.4.3.1_A2.1_T1.js b/test/built-ins/Promise/S25.4.3.1_A2.1_T1.js
index 8da80d846..afbef52ee 100644
--- a/test/built-ins/Promise/S25.4.3.1_A2.1_T1.js
+++ b/test/built-ins/Promise/S25.4.3.1_A2.1_T1.js
@@ -10,5 +10,5 @@ description: Promise.call("non-object") throws TypeError
---*/
assert.throws(TypeError, function() {
- Promise.call("non-object", function () {});
+ Promise.call("non-object", function() {});
});
diff --git a/test/built-ins/Promise/S25.4.3.1_A2.2_T1.js b/test/built-ins/Promise/S25.4.3.1_A2.2_T1.js
index 0e969f652..855595e76 100644
--- a/test/built-ins/Promise/S25.4.3.1_A2.2_T1.js
+++ b/test/built-ins/Promise/S25.4.3.1_A2.2_T1.js
@@ -11,6 +11,6 @@ description: Promise.call(new Promise()) throws TypeError
var p = new Promise(function() {});
-assert.throws(TypeError, function () {
- Promise.call(p, function () {});
+assert.throws(TypeError, function() {
+ Promise.call(p, function() {});
});
diff --git a/test/built-ins/Promise/S25.4.3.1_A2.3_T1.js b/test/built-ins/Promise/S25.4.3.1_A2.3_T1.js
index 341dd6417..424b1a7f1 100644
--- a/test/built-ins/Promise/S25.4.3.1_A2.3_T1.js
+++ b/test/built-ins/Promise/S25.4.3.1_A2.3_T1.js
@@ -10,14 +10,16 @@ description: Promise.call(resolved Promise) throws TypeError
flags: [async]
---*/
-var p = new Promise(function(resolve) { resolve(1); });
+var p = new Promise(function(resolve) {
+ resolve(1);
+});
-p.then(function () {
- Promise.call(p, function () {});
-}).then(function () {
- $ERROR("Unexpected resolution - expected TypeError");
-}, function (err) {
- if (!(err instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + err);
- }
+p.then(function() {
+ Promise.call(p, function() {});
+}).then(function() {
+ $ERROR("Unexpected resolution - expected TypeError");
+}, function(err) {
+ if (!(err instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + err);
+ }
}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/S25.4.3.1_A2.4_T1.js b/test/built-ins/Promise/S25.4.3.1_A2.4_T1.js
index 4b3e452e2..e852b0274 100644
--- a/test/built-ins/Promise/S25.4.3.1_A2.4_T1.js
+++ b/test/built-ins/Promise/S25.4.3.1_A2.4_T1.js
@@ -10,14 +10,16 @@ description: Promise.call(rejected Promise) throws TypeError
flags: [async]
---*/
-var p = new Promise(function(resolve, reject) { reject(1) });
+var p = new Promise(function(resolve, reject) {
+ reject(1)
+});
-p.catch(function () {
- Promise.call(p, function () {});
-}).then(function () {
- $ERROR("Unexpected resolution - expected TypeError");
-}, function (err) {
- if (!(err instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + err);
- }
+p.catch(function() {
+ Promise.call(p, function() {});
+}).then(function() {
+ $ERROR("Unexpected resolution - expected TypeError");
+}, function(err) {
+ if (!(err instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + err);
+ }
}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/S25.4.3.1_A4.1_T1.js b/test/built-ins/Promise/S25.4.3.1_A4.1_T1.js
index d990b5448..26d1cb0ce 100644
--- a/test/built-ins/Promise/S25.4.3.1_A4.1_T1.js
+++ b/test/built-ins/Promise/S25.4.3.1_A4.1_T1.js
@@ -12,15 +12,14 @@ flags: [async]
---*/
var errorObject = {},
- p = new Promise(function () {
- throw errorObject;
- });
+ p = new Promise(function() {
+ throw errorObject;
+ });
p.then(function() {
- $ERROR("Unexpected fulfill -- promise should reject.");
-}, function (err) {
- if (err !== errorObject) {
- $ERROR("Expected promise rejection reason to be thrown errorObject, actually " + err);
- }
+ $ERROR("Unexpected fulfill -- promise should reject.");
+}, function(err) {
+ if (err !== errorObject) {
+ $ERROR("Expected promise rejection reason to be thrown errorObject, actually " + err);
+ }
}).then($DONE, $DONE);
-
diff --git a/test/built-ins/Promise/S25.4.3.1_A5.1_T1.js b/test/built-ins/Promise/S25.4.3.1_A5.1_T1.js
index 418f94069..da4221c47 100644
--- a/test/built-ins/Promise/S25.4.3.1_A5.1_T1.js
+++ b/test/built-ins/Promise/S25.4.3.1_A5.1_T1.js
@@ -14,10 +14,10 @@ flags: [async, noStrict]
var expectedThis = this;
-var p = new Promise(function (resolve) {
- if (this !== expectedThis) {
- $ERROR("'this' must be global object, got " + this);
- }
+var p = new Promise(function(resolve) {
+ if (this !== expectedThis) {
+ $ERROR("'this' must be global object, got " + this);
+ }
- resolve();
+ resolve();
}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/S25.4.3.1_A5.1_T2.js b/test/built-ins/Promise/S25.4.3.1_A5.1_T2.js
index 3c0548704..58cdb04d1 100644
--- a/test/built-ins/Promise/S25.4.3.1_A5.1_T2.js
+++ b/test/built-ins/Promise/S25.4.3.1_A5.1_T2.js
@@ -14,10 +14,10 @@ flags: [async, onlyStrict]
var expectedThis = undefined;
-var p = new Promise(function (resolve) {
- if (this !== expectedThis) {
- $ERROR("'this' must be undefined, got " + this);
- }
+var p = new Promise(function(resolve) {
+ if (this !== expectedThis) {
+ $ERROR("'this' must be undefined, got " + this);
+ }
- resolve();
+ resolve();
}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/all/S25.4.4.1_A1.1_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A1.1_T1.js
index 597b68aa9..02c7922d3 100644
--- a/test/built-ins/Promise/all/S25.4.4.1_A1.1_T1.js
+++ b/test/built-ins/Promise/all/S25.4.4.1_A1.1_T1.js
@@ -9,5 +9,5 @@ description: Promise.all is callable
---*/
if ((typeof Promise.all) !== "function") {
- $ERROR('Expected Promise.all to be a function');
+ $ERROR('Expected Promise.all to be a function');
}
diff --git a/test/built-ins/Promise/all/S25.4.4.1_A2.1_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A2.1_T1.js
index 92149f2aa..e542fadf4 100644
--- a/test/built-ins/Promise/all/S25.4.4.1_A2.1_T1.js
+++ b/test/built-ins/Promise/all/S25.4.4.1_A2.1_T1.js
@@ -10,5 +10,5 @@ description: Promise.all returns a Promise
var p = Promise.all([]);
if (!(p instanceof Promise)) {
- $ERROR('Expected p to be a Promise');
+ $ERROR('Expected p to be a Promise');
}
diff --git a/test/built-ins/Promise/all/S25.4.4.1_A2.2_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A2.2_T1.js
index ddeea876d..8ab599632 100644
--- a/test/built-ins/Promise/all/S25.4.4.1_A2.2_T1.js
+++ b/test/built-ins/Promise/all/S25.4.4.1_A2.2_T1.js
@@ -12,15 +12,15 @@ flags: [async]
var sequence = [];
-Promise.all([]).then(function () {
- sequence.push(2);
+Promise.all([]).then(function() {
+ sequence.push(2);
}).catch($DONE);
Promise.resolve().then(function() {
- sequence.push(3);
-}).then(function () {
- sequence.push(4);
- checkSequence(sequence, "Promises resolved in unexpected sequence");
+ sequence.push(3);
+}).then(function() {
+ sequence.push(4);
+ checkSequence(sequence, "Promises resolved in unexpected sequence");
}).then($DONE, $DONE);
sequence.push(1);
diff --git a/test/built-ins/Promise/all/S25.4.4.1_A2.3_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A2.3_T1.js
index 1b61ede66..6c893b331 100644
--- a/test/built-ins/Promise/all/S25.4.4.1_A2.3_T1.js
+++ b/test/built-ins/Promise/all/S25.4.4.1_A2.3_T1.js
@@ -11,8 +11,8 @@ flags: [async]
var arg = [];
-Promise.all(arg).then(function (result) {
- if(!(result instanceof Array)) {
- $ERROR("expected an array from Promise.all, got " + result);
- }
+Promise.all(arg).then(function(result) {
+ if (!(result instanceof Array)) {
+ $ERROR("expected an array from Promise.all, got " + result);
+ }
}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/all/S25.4.4.1_A2.3_T2.js b/test/built-ins/Promise/all/S25.4.4.1_A2.3_T2.js
index 77cd2628e..568aae475 100644
--- a/test/built-ins/Promise/all/S25.4.4.1_A2.3_T2.js
+++ b/test/built-ins/Promise/all/S25.4.4.1_A2.3_T2.js
@@ -11,8 +11,8 @@ flags: [async]
var arg = [];
-Promise.all(arg).then(function (result) {
- if(result.length !== 0) {
- $ERROR("expected an empty array from Promise.all([]), got " + result);
- }
+Promise.all(arg).then(function(result) {
+ if (result.length !== 0) {
+ $ERROR("expected an empty array from Promise.all([]), got " + result);
+ }
}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/all/S25.4.4.1_A2.3_T3.js b/test/built-ins/Promise/all/S25.4.4.1_A2.3_T3.js
index 5dc1568eb..1573e1cf2 100644
--- a/test/built-ins/Promise/all/S25.4.4.1_A2.3_T3.js
+++ b/test/built-ins/Promise/all/S25.4.4.1_A2.3_T3.js
@@ -11,8 +11,8 @@ flags: [async]
var arg = [];
-Promise.all(arg).then(function (result) {
- if(result === arg) {
- $ERROR("expected a new array from Promise.all but argument was re-used");
- }
+Promise.all(arg).then(function(result) {
+ if (result === arg) {
+ $ERROR("expected a new array from Promise.all but argument was re-used");
+ }
}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/all/S25.4.4.1_A3.1_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A3.1_T1.js
index 805a05525..9c5887f28 100644
--- a/test/built-ins/Promise/all/S25.4.4.1_A3.1_T1.js
+++ b/test/built-ins/Promise/all/S25.4.4.1_A3.1_T1.js
@@ -14,10 +14,10 @@ flags: [async]
var nonIterable = 3;
-Promise.all(nonIterable).then(function () {
- $ERROR('Promise unexpectedly resolved: Promise.all(nonIterable) should throw TypeError');
-},function (err) {
- if (!(err instanceof TypeError)) {
- $ERROR('Expected TypeError, got ' + err);
- }
+Promise.all(nonIterable).then(function() {
+ $ERROR('Promise unexpectedly resolved: Promise.all(nonIterable) should throw TypeError');
+}, function(err) {
+ if (!(err instanceof TypeError)) {
+ $ERROR('Expected TypeError, got ' + err);
+ }
}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/all/S25.4.4.1_A3.1_T2.js b/test/built-ins/Promise/all/S25.4.4.1_A3.1_T2.js
index 88e7acb72..e838c9898 100644
--- a/test/built-ins/Promise/all/S25.4.4.1_A3.1_T2.js
+++ b/test/built-ins/Promise/all/S25.4.4.1_A3.1_T2.js
@@ -13,10 +13,10 @@ description: Promise.all(new Error()) returns Promise rejected with TypeError
flags: [async]
---*/
-Promise.all(new Error("abrupt")).then(function () {
- $ERROR('Promise unexpectedly resolved: Promise.all(abruptCompletion) should throw TypeError');
-},function (err) {
- if (!(err instanceof TypeError)) {
- $ERROR('Expected TypeError, got ' + err);
- }
-}).then($DONE,$DONE);
+Promise.all(new Error("abrupt")).then(function() {
+ $ERROR('Promise unexpectedly resolved: Promise.all(abruptCompletion) should throw TypeError');
+}, function(err) {
+ if (!(err instanceof TypeError)) {
+ $ERROR('Expected TypeError, got ' + err);
+ }
+}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/all/S25.4.4.1_A3.1_T3.js b/test/built-ins/Promise/all/S25.4.4.1_A3.1_T3.js
index 9dcabfadd..0f92a96c0 100644
--- a/test/built-ins/Promise/all/S25.4.4.1_A3.1_T3.js
+++ b/test/built-ins/Promise/all/S25.4.4.1_A3.1_T3.js
@@ -14,15 +14,15 @@ flags: [async]
var iterThrows = {};
Object.defineProperty(iterThrows, Symbol.iterator, {
- get: function () {
- throw new Error("abrupt completion");
- }
+ get: function() {
+ throw new Error("abrupt completion");
+ }
});
-Promise.all(iterThrows).then(function () {
- $ERROR('Promise unexpectedly fulfilled: Promise.all(iterThrows) should throw TypeError');
-},function (err) {
- if (!(err instanceof Error)) {
- $ERROR('Expected promise to be rejected with error, got ' + err);
- }
-}).then($DONE,$DONE);
+Promise.all(iterThrows).then(function() {
+ $ERROR('Promise unexpectedly fulfilled: Promise.all(iterThrows) should throw TypeError');
+}, function(err) {
+ if (!(err instanceof Error)) {
+ $ERROR('Expected promise to be rejected with error, got ' + err);
+ }
+}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/all/S25.4.4.1_A4.1_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A4.1_T1.js
index e2ad6eee7..a594a579b 100644
--- a/test/built-ins/Promise/all/S25.4.4.1_A4.1_T1.js
+++ b/test/built-ins/Promise/all/S25.4.4.1_A4.1_T1.js
@@ -9,8 +9,7 @@ description: this must conform to Promise constructor in Promise.all
author: Sam Mikes
---*/
-function ZeroArgConstructor() {
-}
+function ZeroArgConstructor() {}
assert.throws(TypeError, function() {
Promise.all.call(ZeroArgConstructor, []);
diff --git a/test/built-ins/Promise/all/S25.4.4.1_A5.1_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A5.1_T1.js
index 2428711a6..18ef595bf 100644
--- a/test/built-ins/Promise/all/S25.4.4.1_A5.1_T1.js
+++ b/test/built-ins/Promise/all/S25.4.4.1_A5.1_T1.js
@@ -15,15 +15,15 @@ flags: [async]
var iterThrows = {};
var error = new Test262Error();
iterThrows[Symbol.iterator] = function() {
- return {
- next: function () {
- throw error;
- }
- };
+ return {
+ next: function() {
+ throw error;
+ }
+ };
};
-Promise.all(iterThrows).then(function () {
- $ERROR('Promise unexpectedly resolved: Promise.all(iterThrows) should throw TypeError');
-},function (reason) {
- assert.sameValue(reason, error);
-}).then($DONE,$DONE);
+Promise.all(iterThrows).then(function() {
+ $ERROR('Promise unexpectedly resolved: Promise.all(iterThrows) should throw TypeError');
+}, function(reason) {
+ assert.sameValue(reason, error);
+}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/all/S25.4.4.1_A6.1_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A6.1_T1.js
index a3ba1d7a8..5621dc927 100644
--- a/test/built-ins/Promise/all/S25.4.4.1_A6.1_T1.js
+++ b/test/built-ins/Promise/all/S25.4.4.1_A6.1_T1.js
@@ -12,5 +12,5 @@ description: Promise.all([]) produces a promise
var p = Promise.all([]);
if (!(p instanceof Promise)) {
- $ERROR('Expected Promise.all([]) to be instanceof Promise' + err);
+ $ERROR('Expected Promise.all([]) to be instanceof Promise' + err);
}
diff --git a/test/built-ins/Promise/all/S25.4.4.1_A6.1_T2.js b/test/built-ins/Promise/all/S25.4.4.1_A6.1_T2.js
index 73a47330b..baf2bba25 100644
--- a/test/built-ins/Promise/all/S25.4.4.1_A6.1_T2.js
+++ b/test/built-ins/Promise/all/S25.4.4.1_A6.1_T2.js
@@ -13,11 +13,11 @@ flags: [async]
var p = Promise.all([]);
-p.then(function (result) {
- if (!(result instanceof Array)) {
- $ERROR("Expected Promise.all([]) to be Array, actually " + result);
- }
- if (result.length !== 0) {
- $ERROR("Expected Promise.all([]) to be empty Array, actually " + result);
- }
+p.then(function(result) {
+ if (!(result instanceof Array)) {
+ $ERROR("Expected Promise.all([]) to be Array, actually " + result);
+ }
+ if (result.length !== 0) {
+ $ERROR("Expected Promise.all([]) to be empty Array, actually " + result);
+ }
}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/all/S25.4.4.1_A7.1_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A7.1_T1.js
index 7eb81e9ce..e8cc200f7 100644
--- a/test/built-ins/Promise/all/S25.4.4.1_A7.1_T1.js
+++ b/test/built-ins/Promise/all/S25.4.4.1_A7.1_T1.js
@@ -15,17 +15,17 @@ var p1 = Promise.resolve(3);
var pAll = Promise.all([p1]);
-pAll.then(function (result) {
- if (!(pAll instanceof Promise)) {
- $ERROR("Expected Promise.all() to be promise, actually " + pAll);
- }
- if (!(result instanceof Array)) {
- $ERROR("Expected Promise.all() to be promise for an Array, actually " + result);
- }
- if (result.length !== 1) {
- $ERROR("Expected Promise.all([p1]) to be a promise for one-element Array, actually " + result);
- }
- if (result[0] !== 3) {
- $ERROR("Expected result[0] to be 3, actually " + result[0]);
- }
+pAll.then(function(result) {
+ if (!(pAll instanceof Promise)) {
+ $ERROR("Expected Promise.all() to be promise, actually " + pAll);
+ }
+ if (!(result instanceof Array)) {
+ $ERROR("Expected Promise.all() to be promise for an Array, actually " + result);
+ }
+ if (result.length !== 1) {
+ $ERROR("Expected Promise.all([p1]) to be a promise for one-element Array, actually " + result);
+ }
+ if (result[0] !== 3) {
+ $ERROR("Expected result[0] to be 3, actually " + result[0]);
+ }
}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/all/S25.4.4.1_A7.2_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A7.2_T1.js
index 480147423..546c47254 100644
--- a/test/built-ins/Promise/all/S25.4.4.1_A7.2_T1.js
+++ b/test/built-ins/Promise/all/S25.4.4.1_A7.2_T1.js
@@ -14,21 +14,23 @@ flags: [async]
var sequence = [];
-var p1 = new Promise(function (resolve) { resolve({}); } );
+var p1 = new Promise(function(resolve) {
+ resolve({});
+});
sequence.push(1);
-Promise.all([p1]).then(function (resolved) {
- sequence.push(4);
- checkSequence(sequence, "Expected Promise.all().then to queue second");
+Promise.all([p1]).then(function(resolved) {
+ sequence.push(4);
+ checkSequence(sequence, "Expected Promise.all().then to queue second");
}).catch($DONE);
-p1.then(function () {
- sequence.push(3);
- checkSequence(sequence, "Expected p1.then to queue first");
-}).then(function () {
- sequence.push(5);
- checkSequence(sequence, "Expected final then to queue last");
+p1.then(function() {
+ sequence.push(3);
+ checkSequence(sequence, "Expected p1.then to queue first");
+}).then(function() {
+ sequence.push(5);
+ checkSequence(sequence, "Expected final then to queue last");
}).then($DONE, $DONE);
sequence.push(2);
diff --git a/test/built-ins/Promise/all/S25.4.4.1_A8.1_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A8.1_T1.js
index 7a6d917d0..4115767c5 100644
--- a/test/built-ins/Promise/all/S25.4.4.1_A8.1_T1.js
+++ b/test/built-ins/Promise/all/S25.4.4.1_A8.1_T1.js
@@ -11,24 +11,28 @@ flags: [async]
var sequence = [];
-var p1 = new Promise(function (resolve) { resolve(1); } );
-var p2 = new Promise(function (resolve) { resolve(2); } );
+var p1 = new Promise(function(resolve) {
+ resolve(1);
+});
+var p2 = new Promise(function(resolve) {
+ resolve(2);
+});
sequence.push(1);
-p1.then(function () {
- sequence.push(3);
- checkSequence(sequence, "Expected to be called first.");
+p1.then(function() {
+ sequence.push(3);
+ checkSequence(sequence, "Expected to be called first.");
}).catch($DONE);
-Promise.all([p1, p2]).then(function () {
- sequence.push(5);
- checkSequence(sequence, "Expected to be called third.");
+Promise.all([p1, p2]).then(function() {
+ sequence.push(5);
+ checkSequence(sequence, "Expected to be called third.");
}).then($DONE, $DONE);
-p2.then(function () {
- sequence.push(4);
- checkSequence(sequence, "Expected to be called second.");
+p2.then(function() {
+ sequence.push(4);
+ checkSequence(sequence, "Expected to be called second.");
}).catch($DONE);
sequence.push(2);
diff --git a/test/built-ins/Promise/all/S25.4.4.1_A8.2_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A8.2_T1.js
index 77d087034..b726f5879 100644
--- a/test/built-ins/Promise/all/S25.4.4.1_A8.2_T1.js
+++ b/test/built-ins/Promise/all/S25.4.4.1_A8.2_T1.js
@@ -11,17 +11,17 @@ flags: [async]
---*/
var rejectP1,
- p1 = new Promise(function (resolve, reject) {
- rejectP1 = reject;
- }),
- p2 = Promise.resolve(2);
+ p1 = new Promise(function(resolve, reject) {
+ rejectP1 = reject;
+ }),
+ p2 = Promise.resolve(2);
-Promise.all([p1, p2]).then(function (resolve) {
- $ERROR("Did not expect promise to be fulfilled.");
-}, function (rejected) {
- if (rejected !== 1) {
- $ERROR("Expected promise to be rejected with 1, actually " + rejected);
- }
+Promise.all([p1, p2]).then(function(resolve) {
+ $ERROR("Did not expect promise to be fulfilled.");
+}, function(rejected) {
+ if (rejected !== 1) {
+ $ERROR("Expected promise to be rejected with 1, actually " + rejected);
+ }
}).then($DONE, $DONE);
rejectP1(1);
diff --git a/test/built-ins/Promise/all/S25.4.4.1_A8.2_T2.js b/test/built-ins/Promise/all/S25.4.4.1_A8.2_T2.js
index bb700ae46..128375aae 100644
--- a/test/built-ins/Promise/all/S25.4.4.1_A8.2_T2.js
+++ b/test/built-ins/Promise/all/S25.4.4.1_A8.2_T2.js
@@ -11,17 +11,17 @@ flags: [async]
---*/
var rejectP2,
- p1 = Promise.resolve(1),
- p2 = new Promise(function (resolve, reject) {
- rejectP2 = reject;
- });
+ p1 = Promise.resolve(1),
+ p2 = new Promise(function(resolve, reject) {
+ rejectP2 = reject;
+ });
-Promise.all([p1, p2]).then(function () {
- $ERROR("Did not expect promise to be fulfilled.");
-}, function (rejected) {
- if (rejected !== 2) {
- $ERROR("Expected promise to be rejected with 2, actually " + rejected);
- }
+Promise.all([p1, p2]).then(function() {
+ $ERROR("Did not expect promise to be fulfilled.");
+}, function(rejected) {
+ if (rejected !== 2) {
+ $ERROR("Expected promise to be rejected with 2, actually " + rejected);
+ }
}).then($DONE, $DONE);
rejectP2(2);
diff --git a/test/built-ins/Promise/all/call-resolve-element-after-return.js b/test/built-ins/Promise/all/call-resolve-element-after-return.js
index 6b85ec15e..c644abeb8 100644
--- a/test/built-ins/Promise/all/call-resolve-element-after-return.js
+++ b/test/built-ins/Promise/all/call-resolve-element-after-return.js
@@ -27,7 +27,9 @@ function Constructor(executor) {
}
executor(resolve, $ERROR);
}
-Constructor.resolve = function(v) { return v; };
+Constructor.resolve = function(v) {
+ return v;
+};
var p1OnFulfilled;
diff --git a/test/built-ins/Promise/all/call-resolve-element-items.js b/test/built-ins/Promise/all/call-resolve-element-items.js
index 97e7541c3..3cf7629a4 100644
--- a/test/built-ins/Promise/all/call-resolve-element-items.js
+++ b/test/built-ins/Promise/all/call-resolve-element-items.js
@@ -26,7 +26,9 @@ function Constructor(executor) {
}
executor(resolve, $ERROR);
}
-Constructor.resolve = function(v) { return v; };
+Constructor.resolve = function(v) {
+ return v;
+};
var p1 = {
then: function(onFulfilled, onRejected) {
diff --git a/test/built-ins/Promise/all/call-resolve-element.js b/test/built-ins/Promise/all/call-resolve-element.js
index fc600d459..37be4b02d 100644
--- a/test/built-ins/Promise/all/call-resolve-element.js
+++ b/test/built-ins/Promise/all/call-resolve-element.js
@@ -25,7 +25,9 @@ function Constructor(executor) {
}
executor(resolve, $ERROR);
}
-Constructor.resolve = function(v) { return v; };
+Constructor.resolve = function(v) {
+ return v;
+};
var p1 = {
then: function(onFulfilled, onRejected) {
diff --git a/test/built-ins/Promise/all/capability-executor-called-twice.js b/test/built-ins/Promise/all/capability-executor-called-twice.js
index 580483b33..7f9427dbc 100644
--- a/test/built-ins/Promise/all/capability-executor-called-twice.js
+++ b/test/built-ins/Promise/all/capability-executor-called-twice.js
@@ -27,7 +27,7 @@ Promise.all.call(function(executor) {
checkPoint += "a";
executor();
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, []);
assert.sameValue(checkPoint, "abc", "executor initially called with no arguments");
@@ -37,7 +37,7 @@ Promise.all.call(function(executor) {
checkPoint += "a";
executor(undefined, undefined);
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, []);
assert.sameValue(checkPoint, "abc", "executor initially called with (undefined, undefined)");
@@ -46,9 +46,9 @@ var checkPoint = "";
assert.throws(TypeError, function() {
Promise.all.call(function(executor) {
checkPoint += "a";
- executor(undefined, function(){});
+ executor(undefined, function() {});
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, []);
}, "executor initially called with (undefined, function)");
@@ -58,9 +58,9 @@ var checkPoint = "";
assert.throws(TypeError, function() {
Promise.all.call(function(executor) {
checkPoint += "a";
- executor(function(){}, undefined);
+ executor(function() {}, undefined);
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, []);
}, "executor initially called with (function, undefined)");
@@ -72,7 +72,7 @@ assert.throws(TypeError, function() {
checkPoint += "a";
executor("invalid value", 123);
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, []);
}, "executor initially called with (String, Number)");
diff --git a/test/built-ins/Promise/all/capability-executor-not-callable.js b/test/built-ins/Promise/all/capability-executor-not-callable.js
index 91ed10864..db4092e66 100644
--- a/test/built-ins/Promise/all/capability-executor-not-callable.js
+++ b/test/built-ins/Promise/all/capability-executor-not-callable.js
@@ -56,7 +56,7 @@ var checkPoint = "";
assert.throws(TypeError, function() {
Promise.all.call(function(executor) {
checkPoint += "a";
- executor(undefined, function(){});
+ executor(undefined, function() {});
checkPoint += "b";
}, []);
}, "executor called with (undefined, function)");
@@ -66,7 +66,7 @@ var checkPoint = "";
assert.throws(TypeError, function() {
Promise.all.call(function(executor) {
checkPoint += "a";
- executor(function(){}, undefined);
+ executor(function() {}, undefined);
checkPoint += "b";
}, []);
}, "executor called with (function, undefined)");
diff --git a/test/built-ins/Promise/all/capability-resolve-throws-no-close.js b/test/built-ins/Promise/all/capability-resolve-throws-no-close.js
index 9124a3a56..390bf8d25 100644
--- a/test/built-ins/Promise/all/capability-resolve-throws-no-close.js
+++ b/test/built-ins/Promise/all/capability-resolve-throws-no-close.js
@@ -50,7 +50,9 @@ var iter = {};
iter[Symbol.iterator] = function() {
return {
next: function() {
- return { done: true };
+ return {
+ done: true
+ };
},
return: function() {
returnCount += 1;
@@ -60,7 +62,9 @@ iter[Symbol.iterator] = function() {
};
var P = function(executor) {
return new Promise(function(_, reject) {
- executor(function() { throw new Test262Error(); }, reject);
+ executor(function() {
+ throw new Test262Error();
+ }, reject);
});
};
diff --git a/test/built-ins/Promise/all/capability-resolve-throws-reject.js b/test/built-ins/Promise/all/capability-resolve-throws-reject.js
index 3ad3affde..57f3e2755 100644
--- a/test/built-ins/Promise/all/capability-resolve-throws-reject.js
+++ b/test/built-ins/Promise/all/capability-resolve-throws-reject.js
@@ -48,7 +48,9 @@ flags: [async]
var thrown = new Test262Error();
var P = function(executor) {
return new Promise(function(_, reject) {
- executor(function() { throw thrown; }, reject);
+ executor(function() {
+ throw thrown;
+ }, reject);
});
};
diff --git a/test/built-ins/Promise/all/does-not-invoke-array-setters.js b/test/built-ins/Promise/all/does-not-invoke-array-setters.js
index 19db5a8be..54c332a02 100644
--- a/test/built-ins/Promise/all/does-not-invoke-array-setters.js
+++ b/test/built-ins/Promise/all/does-not-invoke-array-setters.js
@@ -33,4 +33,6 @@ Object.defineProperty(Array.prototype, 0, {
}
});
-Promise.all([42]).then(function(){ $DONE(); }, $DONE);
+Promise.all([42]).then(function() {
+ $DONE();
+}, $DONE);
diff --git a/test/built-ins/Promise/all/invoke-resolve-error-close.js b/test/built-ins/Promise/all/invoke-resolve-error-close.js
index ac2ca2824..aead2b647 100644
--- a/test/built-ins/Promise/all/invoke-resolve-error-close.js
+++ b/test/built-ins/Promise/all/invoke-resolve-error-close.js
@@ -30,7 +30,10 @@ var callCount = 0;
iterDoneSpy[Symbol.iterator] = function() {
return {
next: function() {
- return { value: null, done: false };
+ return {
+ value: null,
+ done: false
+ };
},
return: function() {
callCount += 1;
diff --git a/test/built-ins/Promise/all/invoke-resolve-get-error-close.js b/test/built-ins/Promise/all/invoke-resolve-get-error-close.js
index ce43d8ab1..22e75e0df 100644
--- a/test/built-ins/Promise/all/invoke-resolve-get-error-close.js
+++ b/test/built-ins/Promise/all/invoke-resolve-get-error-close.js
@@ -30,7 +30,9 @@ var returnCount = 0;
iter[Symbol.iterator] = function() {
return {
next: function() {
- return { done: false };
+ return {
+ done: false
+ };
},
return: function() {
returnCount += 1;
diff --git a/test/built-ins/Promise/all/invoke-then-error-close.js b/test/built-ins/Promise/all/invoke-then-error-close.js
index 6786b3188..fe683d91e 100644
--- a/test/built-ins/Promise/all/invoke-then-error-close.js
+++ b/test/built-ins/Promise/all/invoke-then-error-close.js
@@ -31,7 +31,10 @@ var iter = {};
iter[Symbol.iterator] = function() {
return {
next: function() {
- return { done: false, value: promise };
+ return {
+ done: false,
+ value: promise
+ };
},
return: function() {
returnCount += 1;
diff --git a/test/built-ins/Promise/all/invoke-then-get-error-close.js b/test/built-ins/Promise/all/invoke-then-get-error-close.js
index a200b752a..5023c3d4f 100644
--- a/test/built-ins/Promise/all/invoke-then-get-error-close.js
+++ b/test/built-ins/Promise/all/invoke-then-get-error-close.js
@@ -31,7 +31,10 @@ var iter = {};
iter[Symbol.iterator] = function() {
return {
next: function() {
- return { done: false, value: promise };
+ return {
+ done: false,
+ value: promise
+ };
},
return: function() {
returnCount += 1;
diff --git a/test/built-ins/Promise/all/new-resolve-function.js b/test/built-ins/Promise/all/new-resolve-function.js
index 383148f44..b4778a914 100644
--- a/test/built-ins/Promise/all/new-resolve-function.js
+++ b/test/built-ins/Promise/all/new-resolve-function.js
@@ -15,14 +15,17 @@ info: |
...
---*/
-function resolveFunction() { }
+function resolveFunction() {}
function Constructor(executor) {
executor(resolveFunction, $ERROR);
}
-Constructor.resolve = function(v) { return v; };
+Constructor.resolve = function(v) {
+ return v;
+};
-var callCount1 = 0, callCount2 = 0;
+var callCount1 = 0,
+ callCount2 = 0;
var p1OnFulfilled;
var p1 = {
diff --git a/test/built-ins/Promise/all/reject-deferred.js b/test/built-ins/Promise/all/reject-deferred.js
index 40d282135..bd4280ec1 100644
--- a/test/built-ins/Promise/all/reject-deferred.js
+++ b/test/built-ins/Promise/all/reject-deferred.js
@@ -25,7 +25,9 @@ flags: [async]
var thenable = {
then: function(_, reject) {
- new Promise(function(resolve) { resolve(); })
+ new Promise(function(resolve) {
+ resolve();
+ })
.then(function() {
reject();
});
diff --git a/test/built-ins/Promise/all/reject-ignored-deferred.js b/test/built-ins/Promise/all/reject-ignored-deferred.js
index 2913ba760..6303836d5 100644
--- a/test/built-ins/Promise/all/reject-ignored-deferred.js
+++ b/test/built-ins/Promise/all/reject-ignored-deferred.js
@@ -30,7 +30,9 @@ flags: [async]
var fulfiller = {
then: function(resolve) {
- new Promise(function(resolve) { resolve(); })
+ new Promise(function(resolve) {
+ resolve();
+ })
.then(function() {
resolve();
});
@@ -38,7 +40,9 @@ var fulfiller = {
};
var rejector = {
then: function(resolve, reject) {
- new Promise(function(resolve) { resolve(); })
+ new Promise(function(resolve) {
+ resolve();
+ })
.then(function() {
resolve();
reject();
diff --git a/test/built-ins/Promise/all/resolve-before-loop-exit-from-same.js b/test/built-ins/Promise/all/resolve-before-loop-exit-from-same.js
index 3294503da..0c8d848f2 100644
--- a/test/built-ins/Promise/all/resolve-before-loop-exit-from-same.js
+++ b/test/built-ins/Promise/all/resolve-before-loop-exit-from-same.js
@@ -39,7 +39,9 @@ function Constructor(executor) {
}
executor(resolve, $ERROR);
}
-Constructor.resolve = function(v) { return v; };
+Constructor.resolve = function(v) {
+ return v;
+};
var p1OnFulfilled;
diff --git a/test/built-ins/Promise/all/resolve-before-loop-exit.js b/test/built-ins/Promise/all/resolve-before-loop-exit.js
index 0ecb2a179..3f09d3ceb 100644
--- a/test/built-ins/Promise/all/resolve-before-loop-exit.js
+++ b/test/built-ins/Promise/all/resolve-before-loop-exit.js
@@ -39,7 +39,9 @@ function Constructor(executor) {
}
executor(resolve, $ERROR);
}
-Constructor.resolve = function(v) { return v; };
+Constructor.resolve = function(v) {
+ return v;
+};
var p1OnFulfilled;
diff --git a/test/built-ins/Promise/all/resolve-element-function-extensible.js b/test/built-ins/Promise/all/resolve-element-function-extensible.js
index fff03cde8..570222b0f 100644
--- a/test/built-ins/Promise/all/resolve-element-function-extensible.js
+++ b/test/built-ins/Promise/all/resolve-element-function-extensible.js
@@ -16,10 +16,13 @@ var thenable = {
resolveElementFunction = fulfill;
}
};
+
function NotPromise(executor) {
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
}
-NotPromise.resolve = function(v) { return v; };
+NotPromise.resolve = function(v) {
+ return v;
+};
Promise.all.call(NotPromise, [thenable]);
assert(Object.isExtensible(resolveElementFunction));
diff --git a/test/built-ins/Promise/all/resolve-element-function-length.js b/test/built-ins/Promise/all/resolve-element-function-length.js
index 6b1570582..87938eb4d 100644
--- a/test/built-ins/Promise/all/resolve-element-function-length.js
+++ b/test/built-ins/Promise/all/resolve-element-function-length.js
@@ -20,10 +20,13 @@ var thenable = {
resolveElementFunction = fulfill;
}
};
+
function NotPromise(executor) {
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
}
-NotPromise.resolve = function(v) { return v; };
+NotPromise.resolve = function(v) {
+ return v;
+};
Promise.all.call(NotPromise, [thenable]);
assert.sameValue(resolveElementFunction.length, 1);
diff --git a/test/built-ins/Promise/all/resolve-element-function-name.js b/test/built-ins/Promise/all/resolve-element-function-name.js
index f975ef3ac..2af12b808 100644
--- a/test/built-ins/Promise/all/resolve-element-function-name.js
+++ b/test/built-ins/Promise/all/resolve-element-function-name.js
@@ -19,10 +19,13 @@ var thenable = {
resolveElementFunction = fulfill;
}
};
+
function NotPromise(executor) {
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
}
-NotPromise.resolve = function(v) { return v; };
+NotPromise.resolve = function(v) {
+ return v;
+};
Promise.all.call(NotPromise, [thenable]);
assert.sameValue(Object.prototype.hasOwnProperty.call(resolveElementFunction, "name"), false);
diff --git a/test/built-ins/Promise/all/resolve-element-function-nonconstructor.js b/test/built-ins/Promise/all/resolve-element-function-nonconstructor.js
index 4c329a4b0..7da037347 100644
--- a/test/built-ins/Promise/all/resolve-element-function-nonconstructor.js
+++ b/test/built-ins/Promise/all/resolve-element-function-nonconstructor.js
@@ -17,11 +17,16 @@ var thenable = {
resolveElementFunction = fulfill;
}
};
+
function NotPromise(executor) {
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
}
-NotPromise.resolve = function(v) { return v; };
+NotPromise.resolve = function(v) {
+ return v;
+};
Promise.all.call(NotPromise, [thenable]);
assert.sameValue(Object.prototype.hasOwnProperty.call(resolveElementFunction, "prototype"), false);
-assert.throws(TypeError, function() { new resolveElementFunction(); });
+assert.throws(TypeError, function() {
+ new resolveElementFunction();
+});
diff --git a/test/built-ins/Promise/all/resolve-element-function-prototype.js b/test/built-ins/Promise/all/resolve-element-function-prototype.js
index c809e78c6..f7c66f97c 100644
--- a/test/built-ins/Promise/all/resolve-element-function-prototype.js
+++ b/test/built-ins/Promise/all/resolve-element-function-prototype.js
@@ -18,10 +18,13 @@ var thenable = {
resolveElementFunction = fulfill;
}
};
+
function NotPromise(executor) {
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
}
-NotPromise.resolve = function(v) { return v; };
+NotPromise.resolve = function(v) {
+ return v;
+};
Promise.all.call(NotPromise, [thenable]);
assert.sameValue(Object.getPrototypeOf(resolveElementFunction), Function.prototype);
diff --git a/test/built-ins/Promise/all/resolve-from-same-thenable.js b/test/built-ins/Promise/all/resolve-from-same-thenable.js
index 02cc9b982..430026ff8 100644
--- a/test/built-ins/Promise/all/resolve-from-same-thenable.js
+++ b/test/built-ins/Promise/all/resolve-from-same-thenable.js
@@ -39,7 +39,9 @@ function Constructor(executor) {
}
executor(resolve, $ERROR);
}
-Constructor.resolve = function(v) { return v; };
+Constructor.resolve = function(v) {
+ return v;
+};
var p1OnFulfilled, p2OnFulfilled, p3OnFulfilled;
diff --git a/test/built-ins/Promise/all/resolve-poisoned-then.js b/test/built-ins/Promise/all/resolve-poisoned-then.js
index 53de258c7..191175a69 100644
--- a/test/built-ins/Promise/all/resolve-poisoned-then.js
+++ b/test/built-ins/Promise/all/resolve-poisoned-then.js
@@ -60,12 +60,12 @@ try {
}
promise.then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function(val) {
- if (val !== value) {
- $DONE('The promise should be rejected with the expected value.');
- return;
- }
+ $DONE('The promise should not be fulfilled.');
+}, function(val) {
+ if (val !== value) {
+ $DONE('The promise should be rejected with the expected value.');
+ return;
+ }
- $DONE();
- });
+ $DONE();
+});
diff --git a/test/built-ins/Promise/all/resolve-thenable.js b/test/built-ins/Promise/all/resolve-thenable.js
index c39de44bb..905eff387 100644
--- a/test/built-ins/Promise/all/resolve-thenable.js
+++ b/test/built-ins/Promise/all/resolve-thenable.js
@@ -62,12 +62,12 @@ try {
}
promise.then(function(val) {
- if (val !== value) {
- $DONE('The promise should be resolved with the expected value.');
- return;
- }
+ if (val !== value) {
+ $DONE('The promise should be resolved with the expected value.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
diff --git a/test/built-ins/Promise/all/same-reject-function.js b/test/built-ins/Promise/all/same-reject-function.js
index 0e0db97c4..9c8107532 100644
--- a/test/built-ins/Promise/all/same-reject-function.js
+++ b/test/built-ins/Promise/all/same-reject-function.js
@@ -13,14 +13,17 @@ info: |
...
---*/
-function rejectFunction() { }
+function rejectFunction() {}
function Constructor(executor) {
executor($ERROR, rejectFunction);
}
-Constructor.resolve = function(v) { return v; };
+Constructor.resolve = function(v) {
+ return v;
+};
-var callCount1 = 0, callCount2 = 0;
+var callCount1 = 0,
+ callCount2 = 0;
var p1 = {
then: function(onFulfilled, onRejected) {
diff --git a/test/built-ins/Promise/all/species-get-error.js b/test/built-ins/Promise/all/species-get-error.js
index 0311392b0..43ed463d6 100644
--- a/test/built-ins/Promise/all/species-get-error.js
+++ b/test/built-ins/Promise/all/species-get-error.js
@@ -14,7 +14,7 @@ features: [Symbol.species]
---*/
function C(executor) {
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
}
Object.defineProperty(C, Symbol.species, {
get: function() {
diff --git a/test/built-ins/Promise/executor-function-extensible.js b/test/built-ins/Promise/executor-function-extensible.js
index d15764391..67b539538 100644
--- a/test/built-ins/Promise/executor-function-extensible.js
+++ b/test/built-ins/Promise/executor-function-extensible.js
@@ -11,9 +11,10 @@ info: |
---*/
var executorFunction;
+
function NotPromise(executor) {
executorFunction = executor;
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
}
Promise.resolve.call(NotPromise);
diff --git a/test/built-ins/Promise/executor-function-length.js b/test/built-ins/Promise/executor-function-length.js
index 01fdedcaa..0558e97b5 100644
--- a/test/built-ins/Promise/executor-function-length.js
+++ b/test/built-ins/Promise/executor-function-length.js
@@ -15,9 +15,10 @@ includes: [propertyHelper.js]
---*/
var executorFunction;
+
function NotPromise(executor) {
executorFunction = executor;
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
}
Promise.resolve.call(NotPromise);
diff --git a/test/built-ins/Promise/executor-function-name.js b/test/built-ins/Promise/executor-function-name.js
index ceb4aa98d..f571504fc 100644
--- a/test/built-ins/Promise/executor-function-name.js
+++ b/test/built-ins/Promise/executor-function-name.js
@@ -14,9 +14,10 @@ info: |
---*/
var executorFunction;
+
function NotPromise(executor) {
executorFunction = executor;
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
}
Promise.resolve.call(NotPromise);
diff --git a/test/built-ins/Promise/executor-function-nonconstructor.js b/test/built-ins/Promise/executor-function-nonconstructor.js
index 53c1c4595..e8686c60e 100644
--- a/test/built-ins/Promise/executor-function-nonconstructor.js
+++ b/test/built-ins/Promise/executor-function-nonconstructor.js
@@ -12,11 +12,14 @@ info: |
---*/
var executorFunction;
+
function NotPromise(executor) {
executorFunction = executor;
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
}
Promise.resolve.call(NotPromise);
assert.sameValue(Object.prototype.hasOwnProperty.call(executorFunction, "prototype"), false);
-assert.throws(TypeError, function() { new executorFunction(); });
+assert.throws(TypeError, function() {
+ new executorFunction();
+});
diff --git a/test/built-ins/Promise/executor-function-prototype.js b/test/built-ins/Promise/executor-function-prototype.js
index 83d84e46e..c334f4f5b 100644
--- a/test/built-ins/Promise/executor-function-prototype.js
+++ b/test/built-ins/Promise/executor-function-prototype.js
@@ -13,9 +13,10 @@ info: |
---*/
var executorFunction;
+
function NotPromise(executor) {
executorFunction = executor;
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
}
Promise.resolve.call(NotPromise);
diff --git a/test/built-ins/Promise/prototype/S25.4.4.2_A1.1_T1.js b/test/built-ins/Promise/prototype/S25.4.4.2_A1.1_T1.js
index 2ac312176..139ed3a1b 100644
--- a/test/built-ins/Promise/prototype/S25.4.4.2_A1.1_T1.js
+++ b/test/built-ins/Promise/prototype/S25.4.4.2_A1.1_T1.js
@@ -11,5 +11,5 @@ description: Promise prototype exists
---*/
if (Promise.prototype === undefined) {
- $ERROR("Expected Promise.prototype to be defined.");
+ $ERROR("Expected Promise.prototype to be defined.");
}
diff --git a/test/built-ins/Promise/prototype/S25.4.5_A3.1_T1.js b/test/built-ins/Promise/prototype/S25.4.5_A3.1_T1.js
index c8719d738..23e3452d8 100644
--- a/test/built-ins/Promise/prototype/S25.4.5_A3.1_T1.js
+++ b/test/built-ins/Promise/prototype/S25.4.5_A3.1_T1.js
@@ -10,6 +10,5 @@ description: Promise.prototype.constructor is the Promise constructor
---*/
if (Promise.prototype.constructor !== Promise) {
- $ERROR("Expected Promise.prototype.constructor to be Promise");
+ $ERROR("Expected Promise.prototype.constructor to be Promise");
}
-
diff --git a/test/built-ins/Promise/prototype/catch/S25.4.5.1_A1.1_T1.js b/test/built-ins/Promise/prototype/catch/S25.4.5.1_A1.1_T1.js
index abd62d615..958bb552e 100644
--- a/test/built-ins/Promise/prototype/catch/S25.4.5.1_A1.1_T1.js
+++ b/test/built-ins/Promise/prototype/catch/S25.4.5.1_A1.1_T1.js
@@ -10,5 +10,5 @@ description: Promise.prototype.catch is a function
---*/
if (!(Promise.prototype.catch instanceof Function)) {
- $ERROR("Expected Promise.prototype.catch to be a function");
+ $ERROR("Expected Promise.prototype.catch to be a function");
}
diff --git a/test/built-ins/Promise/prototype/catch/S25.4.5.1_A2.1_T1.js b/test/built-ins/Promise/prototype/catch/S25.4.5.1_A2.1_T1.js
index 1dfed96c3..20e81c5ac 100644
--- a/test/built-ins/Promise/prototype/catch/S25.4.5.1_A2.1_T1.js
+++ b/test/built-ins/Promise/prototype/catch/S25.4.5.1_A2.1_T1.js
@@ -12,5 +12,5 @@ description: catch is a method on a Promise
var p = Promise.resolve(3);
if (!(p.catch instanceof Function)) {
- $ERROR("Expected p.catch to be a function");
+ $ERROR("Expected p.catch to be a function");
}
diff --git a/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T1.js b/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T1.js
index a13171c31..6606fdcdc 100644
--- a/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T1.js
+++ b/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T1.js
@@ -14,11 +14,10 @@ var obj = {};
var p = Promise.resolve(obj);
-p.catch(function () {
- $ERROR("Should not be called - promise is fulfilled");
-}).then(function (arg) {
- if (arg !== obj) {
- $ERROR("Expected promise to be fulfilled with obj, got " + arg);
- }
+p.catch(function() {
+ $ERROR("Should not be called - promise is fulfilled");
+}).then(function(arg) {
+ if (arg !== obj) {
+ $ERROR("Expected promise to be fulfilled with obj, got " + arg);
+ }
}).then($DONE, $DONE);
-
diff --git a/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T2.js b/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T2.js
index b04fbf630..e0194fc4a 100644
--- a/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T2.js
+++ b/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T2.js
@@ -14,11 +14,10 @@ var obj = {};
var p = Promise.reject(obj);
-p.then(function () {
- $ERROR("Should not be called: did not expect promise to be fulfilled");
-}).catch(function (arg) {
- if (arg !== obj) {
- $ERROR("Should have been rejected with reason obj, got " + arg);
- }
+p.then(function() {
+ $ERROR("Should not be called: did not expect promise to be fulfilled");
+}).catch(function(arg) {
+ if (arg !== obj) {
+ $ERROR("Should have been rejected with reason obj, got " + arg);
+ }
}).then($DONE, $DONE);
-
diff --git a/test/built-ins/Promise/prototype/catch/this-value-obj-coercible.js b/test/built-ins/Promise/prototype/catch/this-value-obj-coercible.js
index 905dd966a..70f9f418a 100644
--- a/test/built-ins/Promise/prototype/catch/this-value-obj-coercible.js
+++ b/test/built-ins/Promise/prototype/catch/this-value-obj-coercible.js
@@ -24,21 +24,29 @@ features: [Symbol]
---*/
var booleanCount = 0;
-Boolean.prototype.then = function() { booleanCount += 1; };
+Boolean.prototype.then = function() {
+ booleanCount += 1;
+};
Promise.prototype.catch.call(true);
assert.sameValue(booleanCount, 1, 'boolean');
var numberCount = 0;
-Number.prototype.then = function() { numberCount += 1; };
+Number.prototype.then = function() {
+ numberCount += 1;
+};
Promise.prototype.catch.call(34);
assert.sameValue(numberCount, 1, 'number');
var stringCount = 0;
-String.prototype.then = function() { stringCount += 1; };
+String.prototype.then = function() {
+ stringCount += 1;
+};
Promise.prototype.catch.call('');
assert.sameValue(stringCount, 1, 'string');
var symbolCount = 0;
-Symbol.prototype.then = function() { symbolCount += 1; };
+Symbol.prototype.then = function() {
+ symbolCount += 1;
+};
Promise.prototype.catch.call(Symbol());
assert.sameValue(symbolCount, 1, 'symbol');
diff --git a/test/built-ins/Promise/prototype/catch/this-value-then-not-callable.js b/test/built-ins/Promise/prototype/catch/this-value-then-not-callable.js
index 1feffa35b..20c29cfe6 100644
--- a/test/built-ins/Promise/prototype/catch/this-value-then-not-callable.js
+++ b/test/built-ins/Promise/prototype/catch/this-value-then-not-callable.js
@@ -38,25 +38,37 @@ assert.throws(TypeError, function() {
}, 'undefined');
assert.throws(TypeError, function() {
- Promise.prototype.catch.call({ then: null });
+ Promise.prototype.catch.call({
+ then: null
+ });
}, 'null');
assert.throws(TypeError, function() {
- Promise.prototype.catch.call({ then: 1 });
+ Promise.prototype.catch.call({
+ then: 1
+ });
}, 'number');
assert.throws(TypeError, function() {
- Promise.prototype.catch.call({ then: '' });
+ Promise.prototype.catch.call({
+ then: ''
+ });
}, 'string');
assert.throws(TypeError, function() {
- Promise.prototype.catch.call({ then: true });
+ Promise.prototype.catch.call({
+ then: true
+ });
}, 'boolean');
assert.throws(TypeError, function() {
- Promise.prototype.catch.call({ then: symbol });
+ Promise.prototype.catch.call({
+ then: symbol
+ });
}, 'symbol');
assert.throws(TypeError, function() {
- Promise.prototype.catch.call({ then: {} });
+ Promise.prototype.catch.call({
+ then: {}
+ });
}, 'ordinary object');
diff --git a/test/built-ins/Promise/prototype/finally/invokes-then-with-function.js b/test/built-ins/Promise/prototype/finally/invokes-then-with-function.js
index 648b7dd6f..697bea0b3 100644
--- a/test/built-ins/Promise/prototype/finally/invokes-then-with-function.js
+++ b/test/built-ins/Promise/prototype/finally/invokes-then-with-function.js
@@ -7,7 +7,7 @@ esid: sec-promise.prototype.finally
features: [Promise.prototype.finally]
---*/
-var target = new Promise(function () {});
+var target = new Promise(function() {});
var returnValue = {};
var callCount = 0;
var thisValue = null;
@@ -26,8 +26,8 @@ target.then = function(a, b) {
return returnValue;
};
-var originalFinallyHandler = function () {};
-var anonName = Object(function () {}).name;
+var originalFinallyHandler = function() {};
+var anonName = Object(function() {}).name;
var result = Promise.prototype.finally.call(target, originalFinallyHandler, 2, 3);
diff --git a/test/built-ins/Promise/prototype/finally/invokes-then-with-non-function.js b/test/built-ins/Promise/prototype/finally/invokes-then-with-non-function.js
index 1193119fb..b8e57281c 100644
--- a/test/built-ins/Promise/prototype/finally/invokes-then-with-non-function.js
+++ b/test/built-ins/Promise/prototype/finally/invokes-then-with-non-function.js
@@ -7,7 +7,7 @@ esid: sec-promise.prototype.finally
features: [Promise.prototype.finally]
---*/
-var target = new Promise(function () {});
+var target = new Promise(function() {});
var returnValue = {};
var callCount = 0;
var thisValue = null;
diff --git a/test/built-ins/Promise/prototype/finally/rejected-observable-then-calls.js b/test/built-ins/Promise/prototype/finally/rejected-observable-then-calls.js
index 794677b57..ed75b1687 100644
--- a/test/built-ins/Promise/prototype/finally/rejected-observable-then-calls.js
+++ b/test/built-ins/Promise/prototype/finally/rejected-observable-then-calls.js
@@ -11,29 +11,29 @@ includes: [promiseHelper.js]
var sequence = [];
var noReason = {};
var no = Promise.reject(noReason);
-no.then = function () {
+no.then = function() {
sequence.push(1);
return Promise.prototype.then.apply(this, arguments);
};
var yesValue = {};
var yes = Promise.resolve(yesValue);
-yes.then = function () {
+yes.then = function() {
sequence.push(4);
return Promise.prototype.then.apply(this, arguments);
};
-no.catch(function (e) {
+no.catch(function(e) {
sequence.push(2);
assert.sameValue(e, noReason);
throw e;
-}).finally(function () {
+}).finally(function() {
sequence.push(3);
return yes;
-}).catch(function (e) {
+}).catch(function(e) {
sequence.push(5);
assert.sameValue(e, noReason);
-}).then(function () {
+}).then(function() {
checkSequence(sequence, "All expected callbacks called in correct order");
$DONE();
}).catch($ERROR);
diff --git a/test/built-ins/Promise/prototype/finally/rejection-reason-override-with-throw.js b/test/built-ins/Promise/prototype/finally/rejection-reason-override-with-throw.js
index eb82103da..1390a523f 100644
--- a/test/built-ins/Promise/prototype/finally/rejection-reason-override-with-throw.js
+++ b/test/built-ins/Promise/prototype/finally/rejection-reason-override-with-throw.js
@@ -14,13 +14,13 @@ var thrown = {};
var p = Promise.reject(original);
-p.finally(function () {
+p.finally(function() {
sequence.push(1);
assert.sameValue(arguments.length, 0, 'onFinally receives zero args');
throw thrown;
-}).then(function () {
+}).then(function() {
$ERROR('promise is rejected; onFulfill should not be called');
-}).catch(function (reason) {
+}).catch(function(reason) {
sequence.push(2);
assert.sameValue(reason, thrown, 'onFinally can override the rejection reason by throwing');
}).then(function() {
diff --git a/test/built-ins/Promise/prototype/finally/resolution-value-no-override.js b/test/built-ins/Promise/prototype/finally/resolution-value-no-override.js
index 262f1be84..02e539b6f 100644
--- a/test/built-ins/Promise/prototype/finally/resolution-value-no-override.js
+++ b/test/built-ins/Promise/prototype/finally/resolution-value-no-override.js
@@ -12,11 +12,11 @@ var sequence = [];
var obj = {};
var p = Promise.resolve(obj);
-p.finally(function () {
+p.finally(function() {
sequence.push(1);
assert.sameValue(arguments.length, 0, 'onFinally receives zero args');
return {};
-}).then(function (x) {
+}).then(function(x) {
sequence.push(2);
assert.sameValue(x, obj, 'onFinally can not override the resolution value');
}).then(function() {
diff --git a/test/built-ins/Promise/prototype/finally/resolved-observable-then-calls.js b/test/built-ins/Promise/prototype/finally/resolved-observable-then-calls.js
index 6e583527c..1fb248ac9 100644
--- a/test/built-ins/Promise/prototype/finally/resolved-observable-then-calls.js
+++ b/test/built-ins/Promise/prototype/finally/resolved-observable-then-calls.js
@@ -11,30 +11,29 @@ includes: [promiseHelper.js]
var sequence = [];
var yesValue = {};
var yes = Promise.resolve(yesValue);
-yes.then = function () {
+yes.then = function() {
sequence.push(1);
return Promise.prototype.then.apply(this, arguments);
};
var noReason = {};
var no = Promise.reject(noReason);
-no.then = function () {
+no.then = function() {
sequence.push(4);
return Promise.prototype.then.apply(this, arguments);
};
-yes.then(function (x) {
+yes.then(function(x) {
sequence.push(2);
assert.sameValue(x, yesValue);
return x;
-}).finally(function () {
+}).finally(function() {
sequence.push(3);
return no;
-}).catch(function (e) {
+}).catch(function(e) {
sequence.push(5);
assert.sameValue(e, noReason);
-}).then(function () {
+}).then(function() {
checkSequence(sequence, "All expected callbacks called in correct order");
$DONE();
}).catch($ERROR);
-
diff --git a/test/built-ins/Promise/prototype/finally/species-symbol.js b/test/built-ins/Promise/prototype/finally/species-symbol.js
index 15a8eac64..0a8de6365 100644
--- a/test/built-ins/Promise/prototype/finally/species-symbol.js
+++ b/test/built-ins/Promise/prototype/finally/species-symbol.js
@@ -9,12 +9,14 @@ features: [Promise.prototype.finally]
class MyPromise extends Promise {
- static get [Symbol.species]() { return Promise; }
+ static get[Symbol.species]() {
+ return Promise;
+ }
}
var p = Promise
- .resolve()
- .finally(() => MyPromise.resolve());
+ .resolve()
+ .finally(() => MyPromise.resolve());
assert.sameValue(p instanceof Promise, true);
assert.sameValue(p instanceof MyPromise, false);
diff --git a/test/built-ins/Promise/prototype/finally/subclass-species-constructor-reject-count.js b/test/built-ins/Promise/prototype/finally/subclass-species-constructor-reject-count.js
index 5db1a5f49..ca812c499 100644
--- a/test/built-ins/Promise/prototype/finally/subclass-species-constructor-reject-count.js
+++ b/test/built-ins/Promise/prototype/finally/subclass-species-constructor-reject-count.js
@@ -8,7 +8,9 @@ features: [Promise.prototype.finally]
---*/
class FooPromise extends Promise {
- static get [Symbol.species]() { return Promise; }
+ static get[Symbol.species]() {
+ return Promise;
+ }
}
var p = Promise.reject().finally(() => FooPromise.reject());
diff --git a/test/built-ins/Promise/prototype/finally/subclass-species-constructor-resolve-count.js b/test/built-ins/Promise/prototype/finally/subclass-species-constructor-resolve-count.js
index db1b151cd..8e80ab43d 100644
--- a/test/built-ins/Promise/prototype/finally/subclass-species-constructor-resolve-count.js
+++ b/test/built-ins/Promise/prototype/finally/subclass-species-constructor-resolve-count.js
@@ -8,7 +8,9 @@ features: [Promise.prototype.finally]
---*/
class FooPromise extends Promise {
- static get [Symbol.species]() { return Promise; }
+ static get[Symbol.species]() {
+ return Promise;
+ }
}
var p = Promise.resolve().finally(() => FooPromise.resolve());
diff --git a/test/built-ins/Promise/prototype/finally/this-value-non-promise.js b/test/built-ins/Promise/prototype/finally/this-value-non-promise.js
index 16d9f8d76..6bed146e0 100644
--- a/test/built-ins/Promise/prototype/finally/this-value-non-promise.js
+++ b/test/built-ins/Promise/prototype/finally/this-value-non-promise.js
@@ -11,7 +11,9 @@ features: [Promise.prototype.finally]
var called = false;
var p = new Proxy(Promise.resolve(), {});
var oldThen = Promise.prototype.then;
-Promise.prototype.then = () => { called = true; };
+Promise.prototype.then = () => {
+ called = true;
+};
Promise.prototype.finally.call(p);
assert.sameValue(called, true);
Promise.prototype.then = oldThen;
diff --git a/test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js b/test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js
index cdeccdadd..253e22fe3 100644
--- a/test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js
+++ b/test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js
@@ -11,9 +11,11 @@ features: [Symbol, Promise.prototype.finally]
var symbol = Symbol();
-var thrower = function () { throw new Test262Error('this should never happen'); };
+var thrower = function() {
+ throw new Test262Error('this should never happen');
+};
-var p = new Promise(function () {});
+var p = new Promise(function() {});
p.then = undefined;
assert.throws(TypeError, function() {
diff --git a/test/built-ins/Promise/prototype/finally/this-value-then-poisoned.js b/test/built-ins/Promise/prototype/finally/this-value-then-poisoned.js
index d8afd2612..99e124db0 100644
--- a/test/built-ins/Promise/prototype/finally/this-value-then-poisoned.js
+++ b/test/built-ins/Promise/prototype/finally/this-value-then-poisoned.js
@@ -9,7 +9,7 @@ esid: sec-promise.prototype.finally
features: [Promise.prototype.finally]
---*/
-var poisonedThen = Object.defineProperty(new Promise(function () {}), 'then', {
+var poisonedThen = Object.defineProperty(new Promise(function() {}), 'then', {
get: function() {
throw new Test262Error();
}
diff --git a/test/built-ins/Promise/prototype/finally/this-value-then-throws.js b/test/built-ins/Promise/prototype/finally/this-value-then-throws.js
index 7fff8d51a..e8603f88e 100644
--- a/test/built-ins/Promise/prototype/finally/this-value-then-throws.js
+++ b/test/built-ins/Promise/prototype/finally/this-value-then-throws.js
@@ -9,7 +9,7 @@ esid: sec-promise.prototype.finally
features: [Promise.prototype.finally]
---*/
-var thrower = new Promise(function () {});
+var thrower = new Promise(function() {});
thrower.then = function() {
throw new Test262Error();
};
diff --git a/test/built-ins/Promise/prototype/then/S25.4.4_A1.1_T1.js b/test/built-ins/Promise/prototype/then/S25.4.4_A1.1_T1.js
index fd1519766..78aa38e01 100644
--- a/test/built-ins/Promise/prototype/then/S25.4.4_A1.1_T1.js
+++ b/test/built-ins/Promise/prototype/then/S25.4.4_A1.1_T1.js
@@ -14,27 +14,27 @@ flags: [async]
var sequence = [];
-var p = new Promise(function(resolve, reject){
- sequence.push(1);
- resolve("");
+var p = new Promise(function(resolve, reject) {
+ sequence.push(1);
+ resolve("");
});
-p.then(function () {
- sequence.push(3);
-}).then(function () {
- sequence.push(5);
-}).then(function () {
- sequence.push(7);
+p.then(function() {
+ sequence.push(3);
+}).then(function() {
+ sequence.push(5);
+}).then(function() {
+ sequence.push(7);
});
-p.then(function () {
- sequence.push(4);
-}).then(function () {
- sequence.push(6);
-}).then(function () {
- sequence.push(8);
-}).then(function () {
- checkSequence(sequence, "Sequence should be as expected");
+p.then(function() {
+ sequence.push(4);
+}).then(function() {
+ sequence.push(6);
+}).then(function() {
+ sequence.push(8);
+}).then(function() {
+ checkSequence(sequence, "Sequence should be as expected");
}).then($DONE, $DONE);
sequence.push(2);
diff --git a/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T1.js b/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T1.js
index cb02aa58a..971c411f9 100644
--- a/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T1.js
+++ b/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T1.js
@@ -15,18 +15,18 @@ flags: [async]
var resolveP1, rejectP2, sequence = [];
-(new Promise(function (resolve, reject) {
- resolveP1 = resolve;
-})).then(function (msg) {
- sequence.push(msg);
-}).then(function () {
- checkSequence(sequence, "Expected 1,2,3");
+(new Promise(function(resolve, reject) {
+ resolveP1 = resolve;
+})).then(function(msg) {
+ sequence.push(msg);
+}).then(function() {
+ checkSequence(sequence, "Expected 1,2,3");
}).then($DONE, $DONE);
-(new Promise(function (resolve, reject) {
- rejectP2 = reject;
-})).catch(function (msg) {
- sequence.push(msg);
+(new Promise(function(resolve, reject) {
+ rejectP2 = reject;
+})).catch(function(msg) {
+ sequence.push(msg);
});
rejectP2(2);
diff --git a/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T2.js b/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T2.js
index 5c099d775..4f02681ab 100644
--- a/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T2.js
+++ b/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T2.js
@@ -14,26 +14,26 @@ flags: [async]
---*/
var resolveP1, rejectP2, p1, p2,
- sequence = [];
+ sequence = [];
-p1 = new Promise(function (resolve, reject) {
- resolveP1 = resolve;
+p1 = new Promise(function(resolve, reject) {
+ resolveP1 = resolve;
});
-p2 = new Promise(function (resolve, reject) {
- rejectP2 = reject;
+p2 = new Promise(function(resolve, reject) {
+ rejectP2 = reject;
});
rejectP2(3);
resolveP1(2);
-p1.then(function (msg) {
- sequence.push(msg);
+p1.then(function(msg) {
+ sequence.push(msg);
});
-p2.catch(function (msg) {
- sequence.push(msg);
-}).then(function () {
- checkSequence(sequence, "Expected 1,2,3");
+p2.catch(function(msg) {
+ sequence.push(msg);
+}).then(function() {
+ checkSequence(sequence, "Expected 1,2,3");
}).then($DONE, $DONE);
sequence.push(1);
diff --git a/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T3.js b/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T3.js
index 1b430f281..1208cdb89 100644
--- a/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T3.js
+++ b/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T3.js
@@ -14,30 +14,28 @@ flags: [async]
---*/
var resolveP1, rejectP2, p1, p2,
- sequence = [];
+ sequence = [];
-p1 = new Promise(function (resolve, reject) {
- resolveP1 = resolve;
+p1 = new Promise(function(resolve, reject) {
+ resolveP1 = resolve;
});
-p2 = new Promise(function (resolve, reject) {
- rejectP2 = reject;
+p2 = new Promise(function(resolve, reject) {
+ rejectP2 = reject;
});
rejectP2(3);
resolveP1(2);
-Promise.resolve().then(function () {
- p1.then(function (msg) {
- sequence.push(msg);
- });
+Promise.resolve().then(function() {
+ p1.then(function(msg) {
+ sequence.push(msg);
+ });
- p2.catch(function (msg) {
- sequence.push(msg);
- }).then(function () {
- checkSequence(sequence, "Expected 1,2,3");
- }).then($DONE, $DONE);
+ p2.catch(function(msg) {
+ sequence.push(msg);
+ }).then(function() {
+ checkSequence(sequence, "Expected 1,2,3");
+ }).then($DONE, $DONE);
});
sequence.push(1);
-
-
diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T1.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T1.js
index 79d7906b5..f7ce622d9 100644
--- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T1.js
+++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T1.js
@@ -10,5 +10,5 @@ description: Promise.prototype.then is a function of two arguments
---*/
if (!(Promise.prototype.then instanceof Function)) {
- $ERROR("Expected Promise.prototype.then to be a function");
+ $ERROR("Expected Promise.prototype.then to be a function");
}
diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T2.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T2.js
index b22c332d4..0d07a720b 100644
--- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T2.js
+++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T2.js
@@ -9,14 +9,12 @@ author: Sam Mikes
description: Promise.prototype.then is a function of two arguments
---*/
-var p = new Promise(function () {});
+var p = new Promise(function() {});
if (!(p.then instanceof Function)) {
- $ERROR("Expected p.then to be a function");
+ $ERROR("Expected p.then to be a function");
}
if (p.then.length !== 2) {
- $ERROR("Expected p.then to be a function of two arguments");
+ $ERROR("Expected p.then to be a function of two arguments");
}
-
-
diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T1.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T1.js
index b05925ef5..723ff6aac 100644
--- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T1.js
+++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T1.js
@@ -9,8 +9,8 @@ author: Sam Mikes
description: Promise.prototype.then throw if 'this' is non-Object
---*/
-var p = new Promise(function () {});
+var p = new Promise(function() {});
assert.throws(TypeError, function() {
- p.then.call(3, function () {}, function () {});
+ p.then.call(3, function() {}, function() {});
});
diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T2.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T2.js
index bcaa7e48d..13b4bf050 100644
--- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T2.js
+++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T2.js
@@ -9,11 +9,10 @@ author: Sam Mikes
description: Promise.prototype.then throw if 'this' is non-Promise Object
---*/
-function ZeroArgConstructor() {
-}
+function ZeroArgConstructor() {}
var z = new ZeroArgConstructor();
assert.throws(TypeError, function() {
- Promise.then.call(z, function () {}, function () {});
+ Promise.then.call(z, function() {}, function() {});
});
diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.1_T1.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.1_T1.js
index ee43a0a4a..244c9105b 100644
--- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.1_T1.js
+++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.1_T1.js
@@ -15,8 +15,8 @@ var obj = {};
var p = Promise.resolve(obj);
p.then(undefined, undefined)
- .then(function (arg) {
- if (arg !== obj) {
- $ERROR("Expected resolution object to be passed through, got " + arg);
- }
- }).then($DONE, $DONE);
+ .then(function(arg) {
+ if (arg !== obj) {
+ $ERROR("Expected resolution object to be passed through, got " + arg);
+ }
+ }).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.1_T2.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.1_T2.js
index 2032211c2..5a8bf136e 100644
--- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.1_T2.js
+++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.1_T2.js
@@ -14,10 +14,10 @@ flags: [async]
var obj = {};
var p = Promise.reject(obj);
-p.then(undefined, undefined).then(function () {
- $ERROR("Should not be called -- promise was rejected.");
-}, function (arg) {
- if (arg !== obj) {
- $ERROR("Expected resolution object to be passed through, got " + arg);
- }
- }).then($DONE, $DONE);
+p.then(undefined, undefined).then(function() {
+ $ERROR("Should not be called -- promise was rejected.");
+}, function(arg) {
+ if (arg !== obj) {
+ $ERROR("Expected resolution object to be passed through, got " + arg);
+ }
+}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.2_T1.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.2_T1.js
index eecbe9af8..a4198cde0 100644
--- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.2_T1.js
+++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.2_T1.js
@@ -15,8 +15,8 @@ var obj = {};
var p = Promise.resolve(obj);
p.then(3, 5)
- .then(function (arg) {
- if (arg !== obj) {
- $ERROR("Expected resolution object to be passed through, got " + arg);
- }
- }).then($DONE, $DONE);
+ .then(function(arg) {
+ if (arg !== obj) {
+ $ERROR("Expected resolution object to be passed through, got " + arg);
+ }
+ }).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.2_T2.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.2_T2.js
index e4b503df0..b802575c5 100644
--- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.2_T2.js
+++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.2_T2.js
@@ -14,10 +14,10 @@ flags: [async]
var obj = {};
var p = Promise.reject(obj);
-p.then(3, 5).then(function () {
- $ERROR("Should not be called -- promise was rejected.");
-}, function (arg) {
- if (arg !== obj) {
- $ERROR("Expected resolution object to be passed through, got " + arg);
- }
+p.then(3, 5).then(function() {
+ $ERROR("Should not be called -- promise was rejected.");
+}, function(arg) {
+ if (arg !== obj) {
+ $ERROR("Expected resolution object to be passed through, got " + arg);
+ }
}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.1_T1.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.1_T1.js
index 7a9f02a5e..51fd71dad 100644
--- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.1_T1.js
+++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.1_T1.js
@@ -13,27 +13,27 @@ flags: [async]
---*/
var sequence = [],
- pResolve,
- p = new Promise(function (resolve, reject) {
- pResolve = resolve;
- });
+ pResolve,
+ p = new Promise(function(resolve, reject) {
+ pResolve = resolve;
+ });
sequence.push(1);
-p.then(function () {
- sequence.push(3);
- checkSequence(sequence, "Should be second");
+p.then(function() {
+ sequence.push(3);
+ checkSequence(sequence, "Should be second");
}).catch($DONE);
-Promise.resolve().then(function () {
- // enqueue another then-handler
- p.then(function () {
- sequence.push(4);
- checkSequence(sequence, "Should be third");
- }).then($DONE, $DONE);
+Promise.resolve().then(function() {
+ // enqueue another then-handler
+ p.then(function() {
+ sequence.push(4);
+ checkSequence(sequence, "Should be third");
+ }).then($DONE, $DONE);
- sequence.push(2);
- checkSequence(sequence, "Should be first");
+ sequence.push(2);
+ checkSequence(sequence, "Should be first");
- pResolve();
+ pResolve();
}).catch($DONE);
diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.2_T1.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.2_T1.js
index fdf1105bc..4b4d801e0 100644
--- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.2_T1.js
+++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.2_T1.js
@@ -13,29 +13,29 @@ flags: [async]
---*/
var sequence = [],
- pResolve,
- p = new Promise(function (resolve, reject) {
- pResolve = resolve;
- });
+ pResolve,
+ p = new Promise(function(resolve, reject) {
+ pResolve = resolve;
+ });
sequence.push(1);
pResolve();
-p.then(function () {
- sequence.push(3);
- checkSequence(sequence, "Should be first");
+p.then(function() {
+ sequence.push(3);
+ checkSequence(sequence, "Should be first");
}).catch($DONE);
-Promise.resolve().then(function () {
- // enqueue another then-handler
- p.then(function () {
- sequence.push(5);
- checkSequence(sequence, "Should be third");
- }).then($DONE, $DONE);
+Promise.resolve().then(function() {
+ // enqueue another then-handler
+ p.then(function() {
+ sequence.push(5);
+ checkSequence(sequence, "Should be third");
+ }).then($DONE, $DONE);
- sequence.push(4);
- checkSequence(sequence, "Should be second");
+ sequence.push(4);
+ checkSequence(sequence, "Should be second");
}).catch($DONE);
sequence.push(2);
diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.3_T1.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.3_T1.js
index 7af732e0b..1455350ad 100644
--- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.3_T1.js
+++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.3_T1.js
@@ -13,33 +13,33 @@ flags: [async]
---*/
var sequence = [],
- pReject,
- p = new Promise(function (resolve, reject) {
- pReject = reject;
- });
+ pReject,
+ p = new Promise(function(resolve, reject) {
+ pReject = reject;
+ });
sequence.push(1);
pReject();
-p.then(function () {
- $ERROR("Should not be called -- Promise rejected.");
-}, function () {
- sequence.push(3);
- checkSequence(sequence, "Should be first");
+p.then(function() {
+ $ERROR("Should not be called -- Promise rejected.");
+}, function() {
+ sequence.push(3);
+ checkSequence(sequence, "Should be first");
}).catch($DONE);
-Promise.resolve().then(function () {
- // enqueue another then-handler
- p.then(function () {
- $ERROR("Should not be called (2) -- Promise rejected.");
- }, function () {
- sequence.push(5);
- checkSequence(sequence, "Should be third");
- }).then($DONE, $DONE);
-
- sequence.push(4);
- checkSequence(sequence, "Should be second");
+Promise.resolve().then(function() {
+ // enqueue another then-handler
+ p.then(function() {
+ $ERROR("Should not be called (2) -- Promise rejected.");
+ }, function() {
+ sequence.push(5);
+ checkSequence(sequence, "Should be third");
+ }).then($DONE, $DONE);
+
+ sequence.push(4);
+ checkSequence(sequence, "Should be second");
}).catch($DONE);
sequence.push(2);
diff --git a/test/built-ins/Promise/prototype/then/capability-executor-called-twice.js b/test/built-ins/Promise/prototype/then/capability-executor-called-twice.js
index 5006c282d..f72869ba3 100644
--- a/test/built-ins/Promise/prototype/then/capability-executor-called-twice.js
+++ b/test/built-ins/Promise/prototype/then/capability-executor-called-twice.js
@@ -33,14 +33,14 @@ var promise = new class extends Promise {
}
return super(executor);
}
-}(function(){});
+}(function() {});
var checkPoint = "";
constructorFunction = function(executor) {
checkPoint += "a";
executor();
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
};
promise.then();
@@ -51,7 +51,7 @@ constructorFunction = function(executor) {
checkPoint += "a";
executor(undefined, undefined);
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
};
promise.then();
@@ -61,9 +61,9 @@ var checkPoint = "";
assert.throws(TypeError, function() {
constructorFunction = function(executor) {
checkPoint += "a";
- executor(undefined, function(){});
+ executor(undefined, function() {});
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
};
promise.then();
@@ -74,9 +74,9 @@ var checkPoint = "";
assert.throws(TypeError, function() {
constructorFunction = function(executor) {
checkPoint += "a";
- executor(function(){}, undefined);
+ executor(function() {}, undefined);
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
};
promise.then();
@@ -89,7 +89,7 @@ assert.throws(TypeError, function() {
checkPoint += "a";
executor("invalid value", 123);
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
};
promise.then();
diff --git a/test/built-ins/Promise/prototype/then/capability-executor-not-callable.js b/test/built-ins/Promise/prototype/then/capability-executor-not-callable.js
index d230947d6..28f4b15b6 100644
--- a/test/built-ins/Promise/prototype/then/capability-executor-not-callable.js
+++ b/test/built-ins/Promise/prototype/then/capability-executor-not-callable.js
@@ -35,7 +35,7 @@ var promise = new class extends Promise {
}
return super(executor);
}
-}(function(){});
+}(function() {});
var checkPoint = "";
assert.throws(TypeError, function() {
@@ -72,7 +72,7 @@ var checkPoint = "";
assert.throws(TypeError, function() {
constructorFunction = function(executor) {
checkPoint += "a";
- executor(undefined, function(){});
+ executor(undefined, function() {});
checkPoint += "b";
};
promise.then();
@@ -83,7 +83,7 @@ var checkPoint = "";
assert.throws(TypeError, function() {
constructorFunction = function(executor) {
checkPoint += "a";
- executor(function(){}, undefined);
+ executor(function() {}, undefined);
checkPoint += "b";
};
promise.then();
diff --git a/test/built-ins/Promise/prototype/then/ctor-access-count.js b/test/built-ins/Promise/prototype/then/ctor-access-count.js
index 51e00ad78..585850ed9 100644
--- a/test/built-ins/Promise/prototype/then/ctor-access-count.js
+++ b/test/built-ins/Promise/prototype/then/ctor-access-count.js
@@ -29,7 +29,9 @@ flags: [async]
---*/
var callCount = 0;
-var prms = new Promise(function(resolve) { resolve(); });
+var prms = new Promise(function(resolve) {
+ resolve();
+});
Object.defineProperty(prms, 'constructor', {
get: function() {
callCount += 1;
@@ -38,12 +40,12 @@ Object.defineProperty(prms, 'constructor', {
});
prms.then(function() {
- if (callCount !== 1) {
- $DONE('Expected constructor access count: 1. Actual: ' + callCount);
- return;
- }
+ if (callCount !== 1) {
+ $DONE('Expected constructor access count: 1. Actual: ' + callCount);
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
diff --git a/test/built-ins/Promise/prototype/then/ctor-poisoned.js b/test/built-ins/Promise/prototype/then/ctor-poisoned.js
index 080d26a1c..d41a71a15 100644
--- a/test/built-ins/Promise/prototype/then/ctor-poisoned.js
+++ b/test/built-ins/Promise/prototype/then/ctor-poisoned.js
@@ -13,9 +13,9 @@ description: Promise.prototype.then throws if Get(promise, "constructor") throws
var p = Promise.resolve("foo");
Object.defineProperty(p, "constructor", {
- get: function () {
- throw new Test262Error();
- }
+ get: function() {
+ throw new Test262Error();
+ }
});
assert.throws(Test262Error, function() {
diff --git a/test/built-ins/Promise/prototype/then/ctor-throws.js b/test/built-ins/Promise/prototype/then/ctor-throws.js
index c6b52cb40..1532089f7 100644
--- a/test/built-ins/Promise/prototype/then/ctor-throws.js
+++ b/test/built-ins/Promise/prototype/then/ctor-throws.js
@@ -26,10 +26,14 @@ var BadCtor = function() {
};
var originalSpecies = Object.getOwnPropertyDescriptor(Promise, Symbol.species);
-Object.defineProperty(Promise, Symbol.species, { value: BadCtor });
+Object.defineProperty(Promise, Symbol.species, {
+ value: BadCtor
+});
try {
- var p = new Promise(function(resolve) { resolve(); });
+ var p = new Promise(function(resolve) {
+ resolve();
+ });
assert.throws(Test262Error, function() {
p.then();
diff --git a/test/built-ins/Promise/prototype/then/prfm-fulfilled.js b/test/built-ins/Promise/prototype/then/prfm-fulfilled.js
index 3db69300a..285e12f9c 100644
--- a/test/built-ins/Promise/prototype/then/prfm-fulfilled.js
+++ b/test/built-ins/Promise/prototype/then/prfm-fulfilled.js
@@ -20,14 +20,16 @@ flags: [async]
---*/
var value = {};
-var p = new Promise(function(resolve) { resolve(value); });
+var p = new Promise(function(resolve) {
+ resolve(value);
+});
p.then(function(x) {
- if (x !== value) {
- $DONE('The `onFulfilled` handler should be invoked with the promise result.');
- return;
- }
- $DONE();
- }, function() {
- $DONE('The `onRejected` handler should not be invoked.');
- });
+ if (x !== value) {
+ $DONE('The `onFulfilled` handler should be invoked with the promise result.');
+ return;
+ }
+ $DONE();
+}, function() {
+ $DONE('The `onRejected` handler should not be invoked.');
+});
diff --git a/test/built-ins/Promise/prototype/then/prfm-pending-fulfulled.js b/test/built-ins/Promise/prototype/then/prfm-pending-fulfulled.js
index 64c3542a4..b0251ddfe 100644
--- a/test/built-ins/Promise/prototype/then/prfm-pending-fulfulled.js
+++ b/test/built-ins/Promise/prototype/then/prfm-pending-fulfulled.js
@@ -21,16 +21,18 @@ flags: [async]
var value = {};
var resolve;
-var p = new Promise(function(_resolve) { resolve = _resolve; });
+var p = new Promise(function(_resolve) {
+ resolve = _resolve;
+});
p.then(function(x) {
- if (x !== value) {
- $DONE('The `onFulfilled` handler should be invoked with the promise result.');
- return;
- }
- $DONE();
- }, function() {
- $DONE('The `onRejected` handler should not be invoked.');
- });
+ if (x !== value) {
+ $DONE('The `onFulfilled` handler should be invoked with the promise result.');
+ return;
+ }
+ $DONE();
+}, function() {
+ $DONE('The `onRejected` handler should not be invoked.');
+});
resolve(value);
diff --git a/test/built-ins/Promise/prototype/then/prfm-pending-rejected.js b/test/built-ins/Promise/prototype/then/prfm-pending-rejected.js
index 062acafc2..998ecae2e 100644
--- a/test/built-ins/Promise/prototype/then/prfm-pending-rejected.js
+++ b/test/built-ins/Promise/prototype/then/prfm-pending-rejected.js
@@ -21,16 +21,18 @@ flags: [async]
var value = {};
var reject;
-var p = new Promise(function(_, _reject) { reject = _reject; });
+var p = new Promise(function(_, _reject) {
+ reject = _reject;
+});
p.then(function() {
- $DONE('The `onFulfilled` handler should not be invoked.');
- }, function(x) {
- if (x !== value) {
- $DONE('The `onRejected` handler should be invoked with the promise result.');
- return;
- }
- $DONE();
- });
+ $DONE('The `onFulfilled` handler should not be invoked.');
+}, function(x) {
+ if (x !== value) {
+ $DONE('The `onRejected` handler should be invoked with the promise result.');
+ return;
+ }
+ $DONE();
+});
reject(value);
diff --git a/test/built-ins/Promise/prototype/then/prfm-rejected.js b/test/built-ins/Promise/prototype/then/prfm-rejected.js
index 22e3b81b5..de59061bc 100644
--- a/test/built-ins/Promise/prototype/then/prfm-rejected.js
+++ b/test/built-ins/Promise/prototype/then/prfm-rejected.js
@@ -20,14 +20,16 @@ flags: [async]
---*/
var value = {};
-var p = new Promise(function(_, reject) { reject(value); });
+var p = new Promise(function(_, reject) {
+ reject(value);
+});
p.then(function() {
- $DONE('The `onFulfilled` handler should not be invoked.');
- }, function(x) {
- if (x !== value) {
- $DONE('The `onRejected` handler should be invoked with the promise result.');
- return;
- }
- $DONE();
- });
+ $DONE('The `onFulfilled` handler should not be invoked.');
+}, function(x) {
+ if (x !== value) {
+ $DONE('The `onRejected` handler should be invoked with the promise result.');
+ return;
+ }
+ $DONE();
+});
diff --git a/test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js b/test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js
index 985591977..5fce956c1 100644
--- a/test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js
+++ b/test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js
@@ -22,23 +22,27 @@ flags: [async]
---*/
var resolve;
-var thenable = new Promise(function(_resolve) { resolve = _resolve; });
-var p1 = new Promise(function(resolve) { resolve(); });
+var thenable = new Promise(function(_resolve) {
+ resolve = _resolve;
+});
+var p1 = new Promise(function(resolve) {
+ resolve();
+});
var p2;
p2 = p1.then(function() {
- throw thenable;
- });
+ throw thenable;
+});
p2.then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function(x) {
- if (x !== thenable) {
- $DONE('The promise should be rejected with the resolution value of the provided promise.');
- return;
- }
+ $DONE('The promise should not be fulfilled.');
+}, function(x) {
+ if (x !== thenable) {
+ $DONE('The promise should be rejected with the resolution value of the provided promise.');
+ return;
+ }
- $DONE();
- });
+ $DONE();
+});
resolve();
diff --git a/test/built-ins/Promise/prototype/then/reject-pending-rejected.js b/test/built-ins/Promise/prototype/then/reject-pending-rejected.js
index 7d881d19e..03ff2902b 100644
--- a/test/built-ins/Promise/prototype/then/reject-pending-rejected.js
+++ b/test/built-ins/Promise/prototype/then/reject-pending-rejected.js
@@ -23,23 +23,27 @@ flags: [async]
---*/
var reject;
-var thenable = new Promise(function(resolve) { resolve(); });
-var p1 = new Promise(function(_, _reject) { reject = _reject; });
+var thenable = new Promise(function(resolve) {
+ resolve();
+});
+var p1 = new Promise(function(_, _reject) {
+ reject = _reject;
+});
var p2;
p2 = p1.then(function() {}, function() {
- throw thenable;
- });
+ throw thenable;
+});
p2.then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function(x) {
- if (x !== thenable) {
- $DONE('The promise should be rejected with the resolution value of the provided promise.');
- return;
- }
+ $DONE('The promise should not be fulfilled.');
+}, function(x) {
+ if (x !== thenable) {
+ $DONE('The promise should be rejected with the resolution value of the provided promise.');
+ return;
+ }
- $DONE();
- });
+ $DONE();
+});
reject();
diff --git a/test/built-ins/Promise/prototype/then/reject-settled-fulfilled.js b/test/built-ins/Promise/prototype/then/reject-settled-fulfilled.js
index 8845061ad..97876bec0 100644
--- a/test/built-ins/Promise/prototype/then/reject-settled-fulfilled.js
+++ b/test/built-ins/Promise/prototype/then/reject-settled-fulfilled.js
@@ -29,21 +29,25 @@ info: |
flags: [async]
---*/
-var thenable = new Promise(function(resolve) { resolve(); });
-var p1 = new Promise(function(resolve) { resolve(); });
+var thenable = new Promise(function(resolve) {
+ resolve();
+});
+var p1 = new Promise(function(resolve) {
+ resolve();
+});
var p2;
p2 = p1.then(function() {
- throw thenable;
- });
+ throw thenable;
+});
p2.then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function(x) {
- if (x !== thenable) {
- $DONE('The promise should be rejected with the resolution value of the provided promise.');
- return;
- }
+ $DONE('The promise should not be fulfilled.');
+}, function(x) {
+ if (x !== thenable) {
+ $DONE('The promise should be rejected with the resolution value of the provided promise.');
+ return;
+ }
- $DONE();
- });
+ $DONE();
+});
diff --git a/test/built-ins/Promise/prototype/then/reject-settled-rejected.js b/test/built-ins/Promise/prototype/then/reject-settled-rejected.js
index 8cfa17fb3..3b0ae8f1c 100644
--- a/test/built-ins/Promise/prototype/then/reject-settled-rejected.js
+++ b/test/built-ins/Promise/prototype/then/reject-settled-rejected.js
@@ -29,21 +29,25 @@ info: |
flags: [async]
---*/
-var thenable = new Promise(function(resolve) { resolve(); });
-var p1 = new Promise(function(_, reject) { reject(); });
+var thenable = new Promise(function(resolve) {
+ resolve();
+});
+var p1 = new Promise(function(_, reject) {
+ reject();
+});
var p2;
p2 = p1.then(function() {}, function() {
- throw thenable;
- });
+ throw thenable;
+});
p2.then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function(x) {
- if (x !== thenable) {
- $DONE('The promise should be rejected with the resolution value of the provided promise.');
- return;
- }
+ $DONE('The promise should not be fulfilled.');
+}, function(x) {
+ if (x !== thenable) {
+ $DONE('The promise should be rejected with the resolution value of the provided promise.');
+ return;
+ }
- $DONE();
- });
+ $DONE();
+});
diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-obj.js b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-obj.js
index afd23f08a..1866a7c0e 100644
--- a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-obj.js
+++ b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-obj.js
@@ -22,22 +22,24 @@ flags: [async]
---*/
var resolve;
-var p1 = new Promise(function(_resolve) { resolve = _resolve; });
+var p1 = new Promise(function(_resolve) {
+ resolve = _resolve;
+});
var p2;
p2 = p1.then(function() {
- return 23;
- });
+ return 23;
+});
p2.then(function(value) {
- if (value !== 23) {
- $DONE('The promise should be fulfilled with the provided value.');
- return;
- }
+ if (value !== 23) {
+ $DONE('The promise should be fulfilled with the provided value.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
resolve();
diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-thenable.js b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-thenable.js
index 72daa6189..f67aae302 100644
--- a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-thenable.js
+++ b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-thenable.js
@@ -26,24 +26,28 @@ info: |
flags: [async]
---*/
-var nonThenable = { then: null };
+var nonThenable = {
+ then: null
+};
var resolve;
-var p1 = new Promise(function(_resolve) { resolve = _resolve; });
+var p1 = new Promise(function(_resolve) {
+ resolve = _resolve;
+});
var p2;
p2 = p1.then(function() {
- return nonThenable;
- });
+ return nonThenable;
+});
p2.then(function(value) {
- if (value !== nonThenable) {
- $DONE('The promise should be fulfilled with the provided value.');
- return;
- }
+ if (value !== nonThenable) {
+ $DONE('The promise should be fulfilled with the provided value.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
resolve();
diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-poisoned-then.js b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-poisoned-then.js
index 7b2147f4d..bf5912812 100644
--- a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-poisoned-then.js
+++ b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-poisoned-then.js
@@ -30,22 +30,24 @@ var poisonedThen = Object.defineProperty({}, 'then', {
throw value;
}
});
-var p1 = new Promise(function(_resolve) { resolve = _resolve; });
+var p1 = new Promise(function(_resolve) {
+ resolve = _resolve;
+});
var p2;
p2 = p1.then(function() {
- return poisonedThen;
- });
+ return poisonedThen;
+});
p2.then(function(x) {
- $DONE('The promise should not be fulfilled.');
- }, function(x) {
- if (x !== value) {
- $DONE('The promise should be rejected with the thrown exception.');
- return;
- }
+ $DONE('The promise should not be fulfilled.');
+}, function(x) {
+ if (x !== value) {
+ $DONE('The promise should be rejected with the thrown exception.');
+ return;
+ }
- $DONE();
- });
+ $DONE();
+});
resolve();
diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-prms-cstm-then.js b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-prms-cstm-then.js
index 299bd5467..0a1f979c4 100644
--- a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-prms-cstm-then.js
+++ b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-prms-cstm-then.js
@@ -30,8 +30,12 @@ flags: [async]
var value = {};
var resolve;
-var thenable = new Promise(function(resolve) { resolve(); });
-var p1 = new Promise(function(_resolve) { resolve = _resolve; });
+var thenable = new Promise(function(resolve) {
+ resolve();
+});
+var p1 = new Promise(function(_resolve) {
+ resolve = _resolve;
+});
var p2;
thenable.then = function(resolve) {
@@ -39,18 +43,18 @@ thenable.then = function(resolve) {
};
p2 = p1.then(function() {
- return thenable;
- });
+ return thenable;
+});
p2.then(function(x) {
- if (x !== value) {
- $DONE('The promise should be fulfilled with the resolution value of the provided promise.');
- return;
- }
-
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ if (x !== value) {
+ $DONE('The promise should be fulfilled with the resolution value of the provided promise.');
+ return;
+ }
+
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
resolve();
diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-self.js b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-self.js
index f27f9034d..16afaee98 100644
--- a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-self.js
+++ b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-self.js
@@ -24,27 +24,29 @@ flags: [async]
---*/
var resolve;
-var p1 = new Promise(function(_resolve) { resolve = _resolve; });
+var p1 = new Promise(function(_resolve) {
+ resolve = _resolve;
+});
var p2;
p2 = p1.then(function() {
- return p2;
- });
+ return p2;
+});
p2.then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function(reason) {
- if (!reason) {
- $DONE('The promise should be rejected with a value.');
- return;
- }
-
- if (reason.constructor !== TypeError) {
- $DONE('The promise should be rejected with a TypeError instance.');
- return;
- }
-
- $DONE();
- });
+ $DONE('The promise should not be fulfilled.');
+}, function(reason) {
+ if (!reason) {
+ $DONE('The promise should be rejected with a value.');
+ return;
+ }
+
+ if (reason.constructor !== TypeError) {
+ $DONE('The promise should be rejected with a TypeError instance.');
+ return;
+ }
+
+ $DONE();
+});
resolve();
diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-thenable.js b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-thenable.js
index 9df8932aa..1d32eca24 100644
--- a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-thenable.js
+++ b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-thenable.js
@@ -30,23 +30,27 @@ flags: [async]
var value = {};
var resolve;
-var thenable = new Promise(function(resolve) { resolve(value); });
-var p1 = new Promise(function(_resolve) { resolve = _resolve; });
+var thenable = new Promise(function(resolve) {
+ resolve(value);
+});
+var p1 = new Promise(function(_resolve) {
+ resolve = _resolve;
+});
var p2;
p2 = p1.then(function() {
- return thenable;
- });
+ return thenable;
+});
p2.then(function(x) {
- if (x !== value) {
- $DONE('The promise should be fulfilled with the resolution value of the provided promise.');
- return;
- }
+ if (x !== value) {
+ $DONE('The promise should be fulfilled with the resolution value of the provided promise.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
resolve();
diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-obj.js b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-obj.js
index 27ba9746f..01f09f241 100644
--- a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-obj.js
+++ b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-obj.js
@@ -23,22 +23,24 @@ flags: [async]
---*/
var reject;
-var p1 = new Promise(function(_, _reject) { reject = _reject; });
+var p1 = new Promise(function(_, _reject) {
+ reject = _reject;
+});
var p2;
p2 = p1.then(function() {}, function() {
- return 23;
- });
+ return 23;
+});
p2.then(function(value) {
- if (value !== 23) {
- $DONE('The promise should be fulfilled with the provided value.');
- return;
- }
+ if (value !== 23) {
+ $DONE('The promise should be fulfilled with the provided value.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
reject();
diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-thenable.js b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-thenable.js
index 85178a822..61bc8613c 100644
--- a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-thenable.js
+++ b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-thenable.js
@@ -27,24 +27,28 @@ info: |
flags: [async]
---*/
-var nonThenable = { then: null };
+var nonThenable = {
+ then: null
+};
var reject;
-var p1 = new Promise(function(_, _reject) { reject = _reject; });
+var p1 = new Promise(function(_, _reject) {
+ reject = _reject;
+});
var p2;
p2 = p1.then(function() {}, function() {
- return nonThenable;
- });
+ return nonThenable;
+});
p2.then(function(value) {
- if (value !== nonThenable) {
- $DONE('The promise should be fulfilled with the provided value.');
- return;
- }
+ if (value !== nonThenable) {
+ $DONE('The promise should be fulfilled with the provided value.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
reject();
diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-poisoned-then.js b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-poisoned-then.js
index 83e53f804..800d11004 100644
--- a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-poisoned-then.js
+++ b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-poisoned-then.js
@@ -31,22 +31,24 @@ var poisonedThen = Object.defineProperty({}, 'then', {
throw value;
}
});
-var p1 = new Promise(function(_, _reject) { reject = _reject; });
+var p1 = new Promise(function(_, _reject) {
+ reject = _reject;
+});
var p2;
p2 = p1.then(function() {}, function() {
- return poisonedThen;
- });
+ return poisonedThen;
+});
p2.then(function(x) {
- $DONE('The promise should not be fulfilled.');
- }, function(x) {
- if (x !== value) {
- $DONE('The promise should be rejected with the thrown exception.');
- return;
- }
+ $DONE('The promise should not be fulfilled.');
+}, function(x) {
+ if (x !== value) {
+ $DONE('The promise should be rejected with the thrown exception.');
+ return;
+ }
- $DONE();
- });
+ $DONE();
+});
reject();
diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-prms-cstm-then.js b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-prms-cstm-then.js
index 2d4e1c011..d1bbd6737 100644
--- a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-prms-cstm-then.js
+++ b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-prms-cstm-then.js
@@ -31,8 +31,12 @@ flags: [async]
var value = {};
var reject;
-var thenable = new Promise(function(resolve) { resolve(); });
-var p1 = new Promise(function(_, _reject) { reject = _reject; });
+var thenable = new Promise(function(resolve) {
+ resolve();
+});
+var p1 = new Promise(function(_, _reject) {
+ reject = _reject;
+});
var p2;
thenable.then = function(resolve) {
@@ -40,18 +44,18 @@ thenable.then = function(resolve) {
};
p2 = p1.then(function() {}, function() {
- return thenable;
- });
+ return thenable;
+});
p2.then(function(x) {
- if (x !== value) {
- $DONE('The promise should be fulfilled with the resolution value of the provided promise.');
- return;
- }
-
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ if (x !== value) {
+ $DONE('The promise should be fulfilled with the resolution value of the provided promise.');
+ return;
+ }
+
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
reject();
diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-self.js b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-self.js
index 7ae0c23e3..2a3b37978 100644
--- a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-self.js
+++ b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-self.js
@@ -25,27 +25,29 @@ flags: [async]
---*/
var reject;
-var p1 = new Promise(function(_, _reject) { reject = _reject; });
+var p1 = new Promise(function(_, _reject) {
+ reject = _reject;
+});
var p2;
p2 = p1.then(function() {}, function() {
- return p2;
- });
+ return p2;
+});
p2.then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function(reason) {
- if (!reason) {
- $DONE('The promise should be rejected with a value.');
- return;
- }
-
- if (reason.constructor !== TypeError) {
- $DONE('The promise should be rejected with a TypeError instance.');
- return;
- }
-
- $DONE();
- });
+ $DONE('The promise should not be fulfilled.');
+}, function(reason) {
+ if (!reason) {
+ $DONE('The promise should be rejected with a value.');
+ return;
+ }
+
+ if (reason.constructor !== TypeError) {
+ $DONE('The promise should be rejected with a TypeError instance.');
+ return;
+ }
+
+ $DONE();
+});
reject();
diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-thenable.js b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-thenable.js
index 933ce34ec..94cc16e86 100644
--- a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-thenable.js
+++ b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-thenable.js
@@ -31,23 +31,27 @@ flags: [async]
var value = {};
var reject;
-var thenable = new Promise(function(resolve) { resolve(value); });
-var p1 = new Promise(function(_, _reject) { reject = _reject; });
+var thenable = new Promise(function(resolve) {
+ resolve(value);
+});
+var p1 = new Promise(function(_, _reject) {
+ reject = _reject;
+});
var p2;
p2 = p1.then(function() {}, function() {
- return thenable;
- });
+ return thenable;
+});
p2.then(function(x) {
- if (x !== value) {
- $DONE('The promise should be fulfilled with the resolution value of the provided promise.');
- return;
- }
+ if (x !== value) {
+ $DONE('The promise should be fulfilled with the resolution value of the provided promise.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
reject();
diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-obj.js b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-obj.js
index 003d0ee61..f57576ee8 100644
--- a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-obj.js
+++ b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-obj.js
@@ -28,20 +28,22 @@ info: |
flags: [async]
---*/
-var p1 = new Promise(function(resolve) { resolve(); });
+var p1 = new Promise(function(resolve) {
+ resolve();
+});
var p2;
p2 = p1.then(function() {
- return 23;
- });
+ return 23;
+});
p2.then(function(value) {
- if (value !== 23) {
- $DONE('The promise should be fulfilled with the provided value.');
- return;
- }
+ if (value !== 23) {
+ $DONE('The promise should be fulfilled with the provided value.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-thenable.js b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-thenable.js
index 484c6f6aa..5065cd131 100644
--- a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-thenable.js
+++ b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-thenable.js
@@ -33,21 +33,25 @@ info: |
flags: [async]
---*/
-var nonThenable = { then: null };
-var p1 = new Promise(function(resolve) { resolve(); });
+var nonThenable = {
+ then: null
+};
+var p1 = new Promise(function(resolve) {
+ resolve();
+});
var p2;
p2 = p1.then(function() {
- return nonThenable;
- });
+ return nonThenable;
+});
p2.then(function(value) {
- if (value !== nonThenable) {
- $DONE('The promise should be fulfilled with the provided value.');
- return;
- }
+ if (value !== nonThenable) {
+ $DONE('The promise should be fulfilled with the provided value.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-poisoned-then.js b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-poisoned-then.js
index 303044a53..8ac375540 100644
--- a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-poisoned-then.js
+++ b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-poisoned-then.js
@@ -36,20 +36,22 @@ var poisonedThen = Object.defineProperty({}, 'then', {
throw value;
}
});
-var p1 = new Promise(function(resolve) { resolve(); });
+var p1 = new Promise(function(resolve) {
+ resolve();
+});
var p2;
p2 = p1.then(function() {
- return poisonedThen;
- });
+ return poisonedThen;
+});
p2.then(function(x) {
- $DONE('The promise should not be fulfilled.');
- }, function(x) {
- if (x !== value) {
- $DONE('The promise should be rejected with the thrown exception.');
- return;
- }
+ $DONE('The promise should not be fulfilled.');
+}, function(x) {
+ if (x !== value) {
+ $DONE('The promise should be rejected with the thrown exception.');
+ return;
+ }
- $DONE();
- });
+ $DONE();
+});
diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-prms-cstm-then.js b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-prms-cstm-then.js
index f3d108dfa..abcea8a24 100644
--- a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-prms-cstm-then.js
+++ b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-prms-cstm-then.js
@@ -36,8 +36,12 @@ flags: [async]
---*/
var value = {};
-var thenable = new Promise(function(resolve) { resolve(); });
-var p1 = new Promise(function(resolve) { resolve(); });
+var thenable = new Promise(function(resolve) {
+ resolve();
+});
+var p1 = new Promise(function(resolve) {
+ resolve();
+});
var p2;
thenable.then = function(resolve) {
@@ -45,16 +49,16 @@ thenable.then = function(resolve) {
};
p2 = p1.then(function() {
- return thenable;
- });
+ return thenable;
+});
p2.then(function(x) {
- if (x !== value) {
- $DONE('The promise should be fulfilled with the resolution value of the provided promise.');
- return;
- }
-
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ if (x !== value) {
+ $DONE('The promise should be fulfilled with the resolution value of the provided promise.');
+ return;
+ }
+
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-self.js b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-self.js
index 99f1d05a4..1091fe75d 100644
--- a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-self.js
+++ b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-self.js
@@ -30,25 +30,27 @@ info: |
flags: [async]
---*/
-var p1 = new Promise(function(resolve) { resolve(); });
+var p1 = new Promise(function(resolve) {
+ resolve();
+});
var p2;
p2 = p1.then(function() {
- return p2;
- });
+ return p2;
+});
p2.then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function(reason) {
- if (!reason) {
- $DONE('The promise should be rejected with a value.');
- return;
- }
-
- if (reason.constructor !== TypeError) {
- $DONE('The promise should be rejected with a TypeError instance.');
- return;
- }
-
- $DONE();
- });
+ $DONE('The promise should not be fulfilled.');
+}, function(reason) {
+ if (!reason) {
+ $DONE('The promise should be rejected with a value.');
+ return;
+ }
+
+ if (reason.constructor !== TypeError) {
+ $DONE('The promise should be rejected with a TypeError instance.');
+ return;
+ }
+
+ $DONE();
+});
diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-thenable.js b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-thenable.js
index 0baaa5c0d..98a718bf2 100644
--- a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-thenable.js
+++ b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-thenable.js
@@ -36,21 +36,25 @@ flags: [async]
---*/
var value = {};
-var thenable = new Promise(function(resolve) { resolve(value); });
-var p1 = new Promise(function(resolve) { resolve(); });
+var thenable = new Promise(function(resolve) {
+ resolve(value);
+});
+var p1 = new Promise(function(resolve) {
+ resolve();
+});
var p2;
p2 = p1.then(function() {
- return thenable;
- });
+ return thenable;
+});
p2.then(function(x) {
- if (x !== value) {
- $DONE('The promise should be fulfilled with the resolution value of the provided promise.');
- return;
- }
+ if (x !== value) {
+ $DONE('The promise should be fulfilled with the resolution value of the provided promise.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-obj.js b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-obj.js
index 3a8992d39..a4828310a 100644
--- a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-obj.js
+++ b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-obj.js
@@ -28,20 +28,22 @@ info: |
flags: [async]
---*/
-var p1 = new Promise(function(_, reject) { reject(); });
+var p1 = new Promise(function(_, reject) {
+ reject();
+});
var p2;
p2 = p1.then(function() {}, function() {
- return 23;
- });
+ return 23;
+});
p2.then(function(value) {
- if (value !== 23) {
- $DONE('The promise should be fulfilled with the provided value.');
- return;
- }
+ if (value !== 23) {
+ $DONE('The promise should be fulfilled with the provided value.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-thenable.js b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-thenable.js
index 8e4b424fd..13e72aba0 100644
--- a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-thenable.js
+++ b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-thenable.js
@@ -33,21 +33,25 @@ info: |
flags: [async]
---*/
-var nonThenable = { then: null };
-var p1 = new Promise(function(_, reject) { reject(); });
+var nonThenable = {
+ then: null
+};
+var p1 = new Promise(function(_, reject) {
+ reject();
+});
var p2;
p2 = p1.then(function() {}, function() {
- return nonThenable;
- });
+ return nonThenable;
+});
p2.then(function(value) {
- if (value !== nonThenable) {
- $DONE('The promise should be fulfilled with the provided value.');
- return;
- }
+ if (value !== nonThenable) {
+ $DONE('The promise should be fulfilled with the provided value.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-poisoned-then.js b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-poisoned-then.js
index 6087049a9..a60f1b10c 100644
--- a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-poisoned-then.js
+++ b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-poisoned-then.js
@@ -36,20 +36,22 @@ var poisonedThen = Object.defineProperty({}, 'then', {
throw value;
}
});
-var p1 = new Promise(function(_, reject) { reject(); });
+var p1 = new Promise(function(_, reject) {
+ reject();
+});
var p2;
p2 = p1.then(function() {}, function() {
- return poisonedThen;
- });
+ return poisonedThen;
+});
p2.then(function(x) {
- $DONE('The promise should not be fulfilled.');
- }, function(x) {
- if (x !== value) {
- $DONE('The promise should be rejected with the thrown exception.');
- return;
- }
+ $DONE('The promise should not be fulfilled.');
+}, function(x) {
+ if (x !== value) {
+ $DONE('The promise should be rejected with the thrown exception.');
+ return;
+ }
- $DONE();
- });
+ $DONE();
+});
diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-prms-cstm-then.js b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-prms-cstm-then.js
index 68f661a11..babecd9e1 100644
--- a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-prms-cstm-then.js
+++ b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-prms-cstm-then.js
@@ -36,8 +36,12 @@ flags: [async]
---*/
var value = {};
-var thenable = new Promise(function(resolve) { resolve(); });
-var p1 = new Promise(function(_, reject) { reject(); });
+var thenable = new Promise(function(resolve) {
+ resolve();
+});
+var p1 = new Promise(function(_, reject) {
+ reject();
+});
var p2;
thenable.then = function(resolve) {
@@ -45,16 +49,16 @@ thenable.then = function(resolve) {
};
p2 = p1.then(function() {}, function() {
- return thenable;
- });
+ return thenable;
+});
p2.then(function(x) {
- if (x !== value) {
- $DONE('The promise should be fulfilled with the resolution value of the provided promise.');
- return;
- }
-
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ if (x !== value) {
+ $DONE('The promise should be fulfilled with the resolution value of the provided promise.');
+ return;
+ }
+
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-self.js b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-self.js
index 877edfc7d..9d7f13693 100644
--- a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-self.js
+++ b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-self.js
@@ -30,25 +30,27 @@ info: |
flags: [async]
---*/
-var p1 = new Promise(function(_, reject) { reject(); });
+var p1 = new Promise(function(_, reject) {
+ reject();
+});
var p2;
p2 = p1.then(function() {}, function() {
- return p2;
- });
+ return p2;
+});
p2.then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function(reason) {
- if (!reason) {
- $DONE('The promise should be rejected with a value.');
- return;
- }
-
- if (reason.constructor !== TypeError) {
- $DONE('The promise should be rejected with a TypeError instance.');
- return;
- }
-
- $DONE();
- });
+ $DONE('The promise should not be fulfilled.');
+}, function(reason) {
+ if (!reason) {
+ $DONE('The promise should be rejected with a value.');
+ return;
+ }
+
+ if (reason.constructor !== TypeError) {
+ $DONE('The promise should be rejected with a TypeError instance.');
+ return;
+ }
+
+ $DONE();
+});
diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-thenable.js b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-thenable.js
index 1a3855254..333bbeb14 100644
--- a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-thenable.js
+++ b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-thenable.js
@@ -36,21 +36,25 @@ flags: [async]
---*/
var value = {};
-var thenable = new Promise(function(resolve) { resolve(value); });
-var p1 = new Promise(function(_, reject) { reject(); });
+var thenable = new Promise(function(resolve) {
+ resolve(value);
+});
+var p1 = new Promise(function(_, reject) {
+ reject();
+});
var p2;
p2 = p1.then(function() {}, function() {
- return thenable;
- });
+ return thenable;
+});
p2.then(function(x) {
- if (x !== value) {
- $DONE('The promise should be fulfilled with the resolution value of the provided promise.');
- return;
- }
+ if (x !== value) {
+ $DONE('The promise should be fulfilled with the resolution value of the provided promise.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-invoke-nonstrict.js b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-invoke-nonstrict.js
index a956ab8a3..4a9918517 100644
--- a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-invoke-nonstrict.js
+++ b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-invoke-nonstrict.js
@@ -13,25 +13,25 @@ flags: [async, noStrict]
---*/
var expectedThis = this,
- obj = {};
+ obj = {};
var p = Promise.resolve(obj).then(function(arg) {
- if (this !== expectedThis) {
- $DONE("'this' must be global object, got " + this);
- return;
- }
+ if (this !== expectedThis) {
+ $DONE("'this' must be global object, got " + this);
+ return;
+ }
- if (arg !== obj) {
- $DONE("Expected promise to be fulfilled by obj, actually " + arg);
- return;
- }
+ if (arg !== obj) {
+ $DONE("Expected promise to be fulfilled by obj, actually " + arg);
+ return;
+ }
- if (arguments.length !== 1) {
- $DONE('Expected handler function to be called with exactly 1 argument.');
- return;
- }
+ if (arguments.length !== 1) {
+ $DONE('Expected handler function to be called with exactly 1 argument.');
+ return;
+ }
- $DONE();
+ $DONE();
}, function() {
$DONE('The promise should not be rejected.');
});
diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-invoke-strict.js b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-invoke-strict.js
index e431a2793..c8b9966ed 100644
--- a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-invoke-strict.js
+++ b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-invoke-strict.js
@@ -13,25 +13,25 @@ flags: [async, onlyStrict]
---*/
var expectedThis = undefined,
- obj = {};
+ obj = {};
var p = Promise.resolve(obj).then(function(arg) {
- if (this !== expectedThis) {
- $DONE("'this' must be undefined, got " + this);
- return;
- }
+ if (this !== expectedThis) {
+ $DONE("'this' must be undefined, got " + this);
+ return;
+ }
- if (arg !== obj) {
- $DONE("Expected promise to be fulfilled by obj, actually " + arg);
- return;
- }
+ if (arg !== obj) {
+ $DONE("Expected promise to be fulfilled by obj, actually " + arg);
+ return;
+ }
- if (arguments.length !== 1) {
- $DONE('Expected handler function to be called with exactly 1 argument.');
- return;
- }
+ if (arguments.length !== 1) {
+ $DONE('Expected handler function to be called with exactly 1 argument.');
+ return;
+ }
- $DONE();
+ $DONE();
}, function() {
$DONE('The promise should not be rejected.');
});
diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-next-abrupt.js b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-next-abrupt.js
index 9024a896d..992051775 100644
--- a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-next-abrupt.js
+++ b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-next-abrupt.js
@@ -22,24 +22,24 @@ var fulfilledCallCount = 0;
var rejectedCallCount = 0;
promise.then(function() {
- fulfilledCallCount += 1;
- throw new Error();
- }, function() {
- rejectedCallCount += 1;
- });
+ fulfilledCallCount += 1;
+ throw new Error();
+}, function() {
+ rejectedCallCount += 1;
+});
promise.then(function() {
- if (fulfilledCallCount !== 1) {
- $DONE('Expected "onFulfilled" handler to be invoked exactly once.');
- return;
- }
+ if (fulfilledCallCount !== 1) {
+ $DONE('Expected "onFulfilled" handler to be invoked exactly once.');
+ return;
+ }
- if (rejectedCallCount !== 0) {
- $DONE('Expected "onRejected" handler to not be invoked.');
- return;
- }
+ if (rejectedCallCount !== 0) {
+ $DONE('Expected "onRejected" handler to not be invoked.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('This promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('This promise should not be rejected.');
+});
diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-next.js b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-next.js
index a2f763a51..460ee909c 100644
--- a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-next.js
+++ b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-next.js
@@ -21,33 +21,33 @@ var promise = new Promise(function(resolve) {
var log = '';
promise.then(function() {
- log += 'a';
- }, function() {
- log += 'A';
- });
+ log += 'a';
+}, function() {
+ log += 'A';
+});
promise.then(function() {
- log += 'b';
- }, function() {
- log += 'B';
- });
+ log += 'b';
+}, function() {
+ log += 'B';
+});
promise.then(function() {
- log += 'c';
- }, function() {
- log += 'C';
- });
+ log += 'c';
+}, function() {
+ log += 'C';
+});
promise.then(function() {
- if (log !== 'abc') {
- $DONE(
- 'Expected each "onFulfilled" handler to be invoked exactly once in series. ' +
- 'Expected: abc. Actual: ' + log
- );
- return;
- }
+ if (log !== 'abc') {
+ $DONE(
+ 'Expected each "onFulfilled" handler to be invoked exactly once in series. ' +
+ 'Expected: abc. Actual: ' + log
+ );
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('This promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('This promise should not be rejected.');
+});
diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-abrupt.js b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-abrupt.js
index e0cb6215d..4accef172 100644
--- a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-abrupt.js
+++ b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-abrupt.js
@@ -35,16 +35,16 @@ var p1 = new Promise(function(resolve) {
var p2;
p2 = p1.then(function() {
- throw value;
- }, function() {});
+ throw value;
+}, function() {});
p2.then(function() {
- $DONE('The `onFulfilled` handler should not be invoked.');
- }, function(x) {
- if (x !== value) {
- $DONE('The `onRejected` handler should be invoked with the promise result.');
- return;
- }
+ $DONE('The `onFulfilled` handler should not be invoked.');
+}, function(x) {
+ if (x !== value) {
+ $DONE('The `onRejected` handler should be invoked with the promise result.');
+ return;
+ }
- $DONE();
- });
+ $DONE();
+});
diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-normal.js b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-normal.js
index f75ee39ed..2241de9c7 100644
--- a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-normal.js
+++ b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-normal.js
@@ -35,16 +35,16 @@ var p1 = new Promise(function(resolve) {
var p2;
p2 = p1.then(function() {
- return value;
- }, function() {});
+ return value;
+}, function() {});
p2.then(function(x) {
- if (x !== value) {
- $DONE('The `onFulfilled` handler should be invoked with the promise result.');
- return;
- }
+ if (x !== value) {
+ $DONE('The `onFulfilled` handler should be invoked with the promise result.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The `onRejected` handler should not be invoked.');
- });
+ $DONE();
+}, function() {
+ $DONE('The `onRejected` handler should not be invoked.');
+});
diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-identity.js b/test/built-ins/Promise/prototype/then/rxn-handler-identity.js
index de2005b03..24b30c088 100644
--- a/test/built-ins/Promise/prototype/then/rxn-handler-identity.js
+++ b/test/built-ins/Promise/prototype/then/rxn-handler-identity.js
@@ -12,13 +12,13 @@ flags: [async]
var obj = {};
-var p = Promise.resolve(obj).then(/*Identity, Thrower*/)
- .then(function (arg) {
- if (arg !== obj) {
- $DONE("Expected promise to be fulfilled with obj, actually " + arg);
- return;
- }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+var p = Promise.resolve(obj).then( /*Identity, Thrower*/ )
+ .then(function(arg) {
+ if (arg !== obj) {
+ $DONE("Expected promise to be fulfilled with obj, actually " + arg);
+ return;
+ }
+ $DONE();
+ }, function() {
+ $DONE('The promise should not be rejected.');
+ });
diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-invoke-nonstrict.js b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-invoke-nonstrict.js
index f848a8a2e..e95e55d49 100644
--- a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-invoke-nonstrict.js
+++ b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-invoke-nonstrict.js
@@ -13,25 +13,25 @@ flags: [async, noStrict]
---*/
var expectedThis = this,
- obj = {};
+ obj = {};
-var p = Promise.reject(obj).then(function () {
- $DONE("Unexpected fulfillment; expected rejection.");
+var p = Promise.reject(obj).then(function() {
+ $DONE("Unexpected fulfillment; expected rejection.");
}, function(arg) {
- if (this !== expectedThis) {
- $DONE("'this' must be global object, got " + this);
- return;
- }
+ if (this !== expectedThis) {
+ $DONE("'this' must be global object, got " + this);
+ return;
+ }
- if (arg !== obj) {
- $DONE("Expected promise to be rejected with obj, actually " + arg);
- return;
- }
+ if (arg !== obj) {
+ $DONE("Expected promise to be rejected with obj, actually " + arg);
+ return;
+ }
- if (arguments.length !== 1) {
- $DONE('Expected handler function to be called with exactly 1 argument.');
- return;
- }
+ if (arguments.length !== 1) {
+ $DONE('Expected handler function to be called with exactly 1 argument.');
+ return;
+ }
- $DONE();
+ $DONE();
});
diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-invoke-strict.js b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-invoke-strict.js
index 19cbbc9ec..9842201f5 100644
--- a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-invoke-strict.js
+++ b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-invoke-strict.js
@@ -13,25 +13,25 @@ flags: [async, onlyStrict]
---*/
var expectedThis = undefined,
- obj = {};
+ obj = {};
-var p = Promise.reject(obj).then(function () {
- $DONE("Unexpected fulfillment; expected rejection.");
+var p = Promise.reject(obj).then(function() {
+ $DONE("Unexpected fulfillment; expected rejection.");
}, function(arg) {
- if (this !== expectedThis) {
- $DONE("'this' must be undefined, got " + this);
- return;
- }
+ if (this !== expectedThis) {
+ $DONE("'this' must be undefined, got " + this);
+ return;
+ }
- if (arg !== obj) {
- $DONE("Expected promise to be rejected with obj, actually " + arg);
- return;
- }
+ if (arg !== obj) {
+ $DONE("Expected promise to be rejected with obj, actually " + arg);
+ return;
+ }
- if (arguments.length !== 1) {
- $DONE('Expected handler function to be called with exactly 1 argument.');
- return;
- }
+ if (arguments.length !== 1) {
+ $DONE('Expected handler function to be called with exactly 1 argument.');
+ return;
+ }
- $DONE();
+ $DONE();
});
diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-next-abrupt.js b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-next-abrupt.js
index 2363577e8..848a88538 100644
--- a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-next-abrupt.js
+++ b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-next-abrupt.js
@@ -22,24 +22,24 @@ var fulfilledCallCount = 0;
var rejectedCallCount = 0;
promise.then(function() {
- fulfilledCallCount += 1;
- }, function() {
- rejectedCallCount += 1;
- throw new Error();
- });
+ fulfilledCallCount += 1;
+}, function() {
+ rejectedCallCount += 1;
+ throw new Error();
+});
promise.then(function() {
- $DONE('This promise should not be fulfilled.');
- }, function() {
- if (fulfilledCallCount !== 0) {
- $DONE('Expected "onFulfilled" handler to not be invoked.');
- return;
- }
+ $DONE('This promise should not be fulfilled.');
+}, function() {
+ if (fulfilledCallCount !== 0) {
+ $DONE('Expected "onFulfilled" handler to not be invoked.');
+ return;
+ }
- if (rejectedCallCount !== 1) {
- $DONE('Expected "onRejected" handler to be invoked exactly once.');
- return;
- }
+ if (rejectedCallCount !== 1) {
+ $DONE('Expected "onRejected" handler to be invoked exactly once.');
+ return;
+ }
- $DONE();
- });
+ $DONE();
+});
diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-next.js b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-next.js
index 40ef4bfd6..b1497b0a0 100644
--- a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-next.js
+++ b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-next.js
@@ -21,33 +21,33 @@ var promise = new Promise(function(_, reject) {
var log = '';
promise.then(function() {
- log += 'A';
- }, function() {
- log += 'a';
- });
+ log += 'A';
+}, function() {
+ log += 'a';
+});
promise.then(function() {
- log += 'B';
- }, function() {
- log += 'b';
- });
+ log += 'B';
+}, function() {
+ log += 'b';
+});
promise.then(function() {
- log += 'C';
- }, function() {
- log += 'c';
- });
+ log += 'C';
+}, function() {
+ log += 'c';
+});
promise.then(function() {
- $DONE('This promise should not be fulfilled.');
- }, function() {
- if (log !== 'abc') {
- $DONE(
- 'Expected each "onFulfilled" handler to be invoked exactly once in series. ' +
- 'Expected: abc. Actual: ' + log
- );
- return;
- }
+ $DONE('This promise should not be fulfilled.');
+}, function() {
+ if (log !== 'abc') {
+ $DONE(
+ 'Expected each "onFulfilled" handler to be invoked exactly once in series. ' +
+ 'Expected: abc. Actual: ' + log
+ );
+ return;
+ }
- $DONE();
- });
+ $DONE();
+});
diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-return-abrupt.js b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-return-abrupt.js
index 3588f64dd..fe8054f9a 100644
--- a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-return-abrupt.js
+++ b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-return-abrupt.js
@@ -35,16 +35,16 @@ var p1 = new Promise(function(_, reject) {
var p2;
p2 = p1.then(function() {}, function() {
- throw value;
- });
+ throw value;
+});
p2.then(function() {
- $DONE('The `onFulfilled` handler should not be invoked.');
- }, function(x) {
- if (x !== value) {
- $DONE('The `onRejected` handler should be invoked with the promise result.');
- return;
- }
+ $DONE('The `onFulfilled` handler should not be invoked.');
+}, function(x) {
+ if (x !== value) {
+ $DONE('The `onRejected` handler should be invoked with the promise result.');
+ return;
+ }
- $DONE();
- });
+ $DONE();
+});
diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-return-normal.js b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-return-normal.js
index 3fe4b09c6..eb70b6e6c 100644
--- a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-return-normal.js
+++ b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-return-normal.js
@@ -35,16 +35,16 @@ var p1 = new Promise(function(_, reject) {
var p2;
p2 = p1.then(function() {}, function() {
- return value;
- });
+ return value;
+});
p2.then(function(x) {
- if (x !== value) {
- $DONE('The `onFulfilled` handler should be invoked with the promise result.');
- return;
- }
+ if (x !== value) {
+ $DONE('The `onFulfilled` handler should be invoked with the promise result.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The `onRejected` handler should not be invoked.');
- });
+ $DONE();
+}, function() {
+ $DONE('The `onRejected` handler should not be invoked.');
+});
diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-thrower.js b/test/built-ins/Promise/prototype/then/rxn-handler-thrower.js
index 217e10e4d..58b185a91 100644
--- a/test/built-ins/Promise/prototype/then/rxn-handler-thrower.js
+++ b/test/built-ins/Promise/prototype/then/rxn-handler-thrower.js
@@ -12,13 +12,13 @@ flags: [async]
var obj = {};
-var p = Promise.reject(obj).then(/*Identity, Thrower*/)
- .then(function () {
- $DONE("Unexpected fulfillment - promise should reject.");
- }, function (arg) {
- if (arg !== obj) {
- $DONE("Expected reject reason to be obj, actually " + arg);
- return;
- }
- $DONE();
- });
+var p = Promise.reject(obj).then( /*Identity, Thrower*/ )
+ .then(function() {
+ $DONE("Unexpected fulfillment - promise should reject.");
+ }, function(arg) {
+ if (arg !== obj) {
+ $DONE("Expected reject reason to be obj, actually " + arg);
+ return;
+ }
+ $DONE();
+ });
diff --git a/test/built-ins/Promise/race/S25.4.4.3_A1.1_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A1.1_T1.js
index b92440669..69102cfbd 100644
--- a/test/built-ins/Promise/race/S25.4.4.3_A1.1_T1.js
+++ b/test/built-ins/Promise/race/S25.4.4.3_A1.1_T1.js
@@ -9,5 +9,5 @@ description: Promise.race is callable
---*/
if (typeof Promise.race !== "function") {
- $ERROR("Expected Promise.race to be a function, actually " + typeof Promise.race);
+ $ERROR("Expected Promise.race to be a function, actually " + typeof Promise.race);
}
diff --git a/test/built-ins/Promise/race/S25.4.4.3_A2.1_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A2.1_T1.js
index a3b3fd963..2e14c7ead 100644
--- a/test/built-ins/Promise/race/S25.4.4.3_A2.1_T1.js
+++ b/test/built-ins/Promise/race/S25.4.4.3_A2.1_T1.js
@@ -11,5 +11,5 @@ description: Promise.race returns a new promise
var p = Promise.race([]);
if (!(p instanceof Promise)) {
- $ERROR("Expected Promise.race([]) to return a promise.");
+ $ERROR("Expected Promise.race([]) to return a promise.");
}
diff --git a/test/built-ins/Promise/race/S25.4.4.3_A2.2_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A2.2_T1.js
index 87a7c610a..d53b5da14 100644
--- a/test/built-ins/Promise/race/S25.4.4.3_A2.2_T1.js
+++ b/test/built-ins/Promise/race/S25.4.4.3_A2.2_T1.js
@@ -11,11 +11,10 @@ flags: [async]
var nonIterable = 3;
-Promise.race(nonIterable).then(function () {
- $ERROR('Promise unexpectedly fulfilled: Promise.race(nonIterable) should throw TypeError');
-}, function (err) {
- if (!(err instanceof TypeError)) {
- $ERROR('Expected TypeError, got ' + err);
- }
+Promise.race(nonIterable).then(function() {
+ $ERROR('Promise unexpectedly fulfilled: Promise.race(nonIterable) should throw TypeError');
+}, function(err) {
+ if (!(err instanceof TypeError)) {
+ $ERROR('Expected TypeError, got ' + err);
+ }
}).then($DONE, $DONE);
-
diff --git a/test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js b/test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js
index cca930722..18da6d071 100644
--- a/test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js
+++ b/test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js
@@ -9,11 +9,10 @@ description: Promise.race rejects if argument is not object or is non-iterable
flags: [async]
---*/
-Promise.race(new Error("abrupt")).then(function () {
- $ERROR('Promise unexpectedly resolved: Promise.race(abruptCompletion) should throw TypeError');
-}, function (err) {
- if (!(err instanceof TypeError)) {
- $ERROR('Expected TypeError, got ' + err);
- }
+Promise.race(new Error("abrupt")).then(function() {
+ $ERROR('Promise unexpectedly resolved: Promise.race(abruptCompletion) should throw TypeError');
+}, function(err) {
+ if (!(err instanceof TypeError)) {
+ $ERROR('Expected TypeError, got ' + err);
+ }
}).then($DONE, $DONE);
-
diff --git a/test/built-ins/Promise/race/S25.4.4.3_A2.2_T3.js b/test/built-ins/Promise/race/S25.4.4.3_A2.2_T3.js
index d8aa443f9..790c51a75 100644
--- a/test/built-ins/Promise/race/S25.4.4.3_A2.2_T3.js
+++ b/test/built-ins/Promise/race/S25.4.4.3_A2.2_T3.js
@@ -15,16 +15,15 @@ flags: [async]
var iterThrows = {};
Object.defineProperty(iterThrows, Symbol.iterator, {
- get: function () {
- throw new Error("abrupt completion");
- }
+ get: function() {
+ throw new Error("abrupt completion");
+ }
});
-Promise.race(iterThrows).then(function () {
- $ERROR('Promise unexpectedly fulfilled: Promise.race(iterThrows) should throw');
-}, function (err) {
- if (!(err instanceof Error)) {
- $ERROR('Expected Promise to be rejected with an error, got ' + err);
- }
+Promise.race(iterThrows).then(function() {
+ $ERROR('Promise unexpectedly fulfilled: Promise.race(iterThrows) should throw');
+}, function(err) {
+ if (!(err instanceof Error)) {
+ $ERROR('Expected Promise to be rejected with an error, got ' + err);
+ }
}).then($DONE, $DONE);
-
diff --git a/test/built-ins/Promise/race/S25.4.4.3_A3.1_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A3.1_T1.js
index 21b3a098d..b3d90e6fc 100644
--- a/test/built-ins/Promise/race/S25.4.4.3_A3.1_T1.js
+++ b/test/built-ins/Promise/race/S25.4.4.3_A3.1_T1.js
@@ -11,8 +11,7 @@ author: Sam Mikes
description: Promise.race throws if 'this' does not conform to Promise constructor
---*/
-function ZeroArgConstructor() {
-}
+function ZeroArgConstructor() {}
assert.throws(TypeError, function() {
Promise.race.call(ZeroArgConstructor, [3]);
diff --git a/test/built-ins/Promise/race/S25.4.4.3_A3.1_T2.js b/test/built-ins/Promise/race/S25.4.4.3_A3.1_T2.js
index e16e02a03..07c20f570 100644
--- a/test/built-ins/Promise/race/S25.4.4.3_A3.1_T2.js
+++ b/test/built-ins/Promise/race/S25.4.4.3_A3.1_T2.js
@@ -11,7 +11,9 @@ author: Sam Mikes
description: Promise.race throws TypeError, even on empty array, when 'this' does not conform to Promise constructor
---*/
-function BadPromiseConstructor(f) { f(undefined, undefined); }
+function BadPromiseConstructor(f) {
+ f(undefined, undefined);
+}
assert.throws(TypeError, function() {
Promise.race.call(BadPromiseConstructor, []);
diff --git a/test/built-ins/Promise/race/S25.4.4.3_A4.1_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A4.1_T1.js
index a325a995b..95dde51bd 100644
--- a/test/built-ins/Promise/race/S25.4.4.3_A4.1_T1.js
+++ b/test/built-ins/Promise/race/S25.4.4.3_A4.1_T1.js
@@ -11,17 +11,16 @@ flags: [async]
var iterThrows = {};
var error = new Test262Error();
-iterThrows[Symbol.iterator] = function () {
- return {
- next: function () {
- throw error;
- }
- };
+iterThrows[Symbol.iterator] = function() {
+ return {
+ next: function() {
+ throw error;
+ }
+ };
};
-Promise.race(iterThrows).then(function () {
- $ERROR('Promise unexpectedly fulfilled: Promise.race(iterThrows) should throw TypeError');
-}, function (reason) {
- assert.sameValue(reason, error);
-}).then($DONE,$DONE);
-
+Promise.race(iterThrows).then(function() {
+ $ERROR('Promise unexpectedly fulfilled: Promise.race(iterThrows) should throw TypeError');
+}, function(reason) {
+ assert.sameValue(reason, error);
+}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/race/S25.4.4.3_A4.1_T2.js b/test/built-ins/Promise/race/S25.4.4.3_A4.1_T2.js
index 00ac77d1b..cb8912b97 100644
--- a/test/built-ins/Promise/race/S25.4.4.3_A4.1_T2.js
+++ b/test/built-ins/Promise/race/S25.4.4.3_A4.1_T2.js
@@ -11,26 +11,25 @@ flags: [async]
var iterThrows = {};
Object.defineProperty(iterThrows, Symbol.iterator, {
- get: function () {
- return {
- next: function () {
- var v = {};
- Object.defineProperty(v, 'value', {
- get: function () {
- throw new Error("abrupt completion");
- }
- });
- return v;
- }
- };
- }
+ get: function() {
+ return {
+ next: function() {
+ var v = {};
+ Object.defineProperty(v, 'value', {
+ get: function() {
+ throw new Error("abrupt completion");
+ }
+ });
+ return v;
+ }
+ };
+ }
});
-Promise.race(iterThrows).then(function () {
- $ERROR('Promise unexpectedly fulfilled: Promise.race(iterThrows) should throw TypeError');
-},function (err) {
- if (!(err instanceof TypeError)) {
- $ERROR('Expected TypeError, got ' + err);
- }
-}).then($DONE,$DONE);
-
+Promise.race(iterThrows).then(function() {
+ $ERROR('Promise unexpectedly fulfilled: Promise.race(iterThrows) should throw TypeError');
+}, function(err) {
+ if (!(err instanceof TypeError)) {
+ $ERROR('Expected TypeError, got ' + err);
+ }
+}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/race/S25.4.4.3_A5.1_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A5.1_T1.js
index e5b7526fd..2093f8bee 100644
--- a/test/built-ins/Promise/race/S25.4.4.3_A5.1_T1.js
+++ b/test/built-ins/Promise/race/S25.4.4.3_A5.1_T1.js
@@ -10,10 +10,10 @@ flags: [async]
var p = Promise.race([]);
-p.then(function () {
- $ERROR("Never settles.");
-}, function () {
- $ERROR("Never settles.");
+p.then(function() {
+ $ERROR("Never settles.");
+}, function() {
+ $ERROR("Never settles.");
}).then($DONE, $DONE);
// use three 'then's to allow above to settle
diff --git a/test/built-ins/Promise/race/S25.4.4.3_A6.1_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A6.1_T1.js
index 90c46e37e..81d6152a4 100644
--- a/test/built-ins/Promise/race/S25.4.4.3_A6.1_T1.js
+++ b/test/built-ins/Promise/race/S25.4.4.3_A6.1_T1.js
@@ -15,17 +15,17 @@ var p = Promise.race([1]);
sequence.push(1);
-p.then(function () {
- sequence.push(4);
- checkSequence(sequence, "This happens second");
+p.then(function() {
+ sequence.push(4);
+ checkSequence(sequence, "This happens second");
}).catch($DONE);
-Promise.resolve().then(function () {
- sequence.push(3);
- checkSequence(sequence, "This happens first");
-}).then(function () {
- sequence.push(5);
- checkSequence(sequence, "This happens third");
+Promise.resolve().then(function() {
+ sequence.push(3);
+ checkSequence(sequence, "This happens first");
+}).then(function() {
+ sequence.push(5);
+ checkSequence(sequence, "This happens third");
}).then($DONE, $DONE);
sequence.push(2);
diff --git a/test/built-ins/Promise/race/S25.4.4.3_A6.2_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A6.2_T1.js
index b28ccdb51..c3e0364b3 100644
--- a/test/built-ins/Promise/race/S25.4.4.3_A6.2_T1.js
+++ b/test/built-ins/Promise/race/S25.4.4.3_A6.2_T1.js
@@ -12,23 +12,23 @@ flags: [async]
var sequence = [];
var p1 = Promise.reject(1),
- p = Promise.race([p1]);
+ p = Promise.race([p1]);
sequence.push(1);
-p.then(function () {
- $ERROR("Should not fulfill.");
-}, function () {
- sequence.push(4);
- checkSequence(sequence, "This happens second");
+p.then(function() {
+ $ERROR("Should not fulfill.");
+}, function() {
+ sequence.push(4);
+ checkSequence(sequence, "This happens second");
}).catch($DONE);
-Promise.resolve().then(function () {
- sequence.push(3);
- checkSequence(sequence, "This happens first");
-}).then(function () {
- sequence.push(5);
- checkSequence(sequence, "This happens third");
+Promise.resolve().then(function() {
+ sequence.push(3);
+ checkSequence(sequence, "This happens first");
+}).then(function() {
+ sequence.push(5);
+ checkSequence(sequence, "This happens third");
}).then($DONE, $DONE);
sequence.push(2);
diff --git a/test/built-ins/Promise/race/S25.4.4.3_A7.1_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A7.1_T1.js
index 517df57b3..ada1fba26 100644
--- a/test/built-ins/Promise/race/S25.4.4.3_A7.1_T1.js
+++ b/test/built-ins/Promise/race/S25.4.4.3_A7.1_T1.js
@@ -12,26 +12,26 @@ flags: [async]
var sequence = [];
var p1 = Promise.resolve(1),
- p2 = Promise.resolve(2),
- p = Promise.race([p1, p2]);
+ p2 = Promise.resolve(2),
+ p = Promise.race([p1, p2]);
sequence.push(1);
-p.then(function (arg) {
- if (arg !== 1) {
- $ERROR("Expected promise to be fulfilled with 1, got " + arg);
- }
+p.then(function(arg) {
+ if (arg !== 1) {
+ $ERROR("Expected promise to be fulfilled with 1, got " + arg);
+ }
- sequence.push(4);
- checkSequence(sequence, "This happens second");
+ sequence.push(4);
+ checkSequence(sequence, "This happens second");
}).catch($DONE);
-Promise.resolve().then(function () {
- sequence.push(3);
- checkSequence(sequence, "This happens first");
-}).then(function () {
- sequence.push(5);
- checkSequence(sequence, "This happens third");
+Promise.resolve().then(function() {
+ sequence.push(3);
+ checkSequence(sequence, "This happens first");
+}).then(function() {
+ sequence.push(5);
+ checkSequence(sequence, "This happens third");
}).then($DONE, $DONE);
sequence.push(2);
diff --git a/test/built-ins/Promise/race/S25.4.4.3_A7.1_T2.js b/test/built-ins/Promise/race/S25.4.4.3_A7.1_T2.js
index f0f12a4e5..2b2dbc962 100644
--- a/test/built-ins/Promise/race/S25.4.4.3_A7.1_T2.js
+++ b/test/built-ins/Promise/race/S25.4.4.3_A7.1_T2.js
@@ -12,26 +12,26 @@ flags: [async]
var sequence = [];
var p1 = Promise.resolve(1),
- p2 = new Promise(function () {}),
- p = Promise.race([p1, p2]);
+ p2 = new Promise(function() {}),
+ p = Promise.race([p1, p2]);
sequence.push(1);
-p.then(function (arg) {
- if (arg !== 1) {
- $ERROR("Expected promise to be fulfilled with 1, got " + arg);
- }
+p.then(function(arg) {
+ if (arg !== 1) {
+ $ERROR("Expected promise to be fulfilled with 1, got " + arg);
+ }
- sequence.push(4);
- checkSequence(sequence, "This happens second");
+ sequence.push(4);
+ checkSequence(sequence, "This happens second");
}).catch($DONE);
-Promise.resolve().then(function () {
- sequence.push(3);
- checkSequence(sequence, "This happens first");
-}).then(function () {
- sequence.push(5);
- checkSequence(sequence, "This happens third");
+Promise.resolve().then(function() {
+ sequence.push(3);
+ checkSequence(sequence, "This happens first");
+}).then(function() {
+ sequence.push(5);
+ checkSequence(sequence, "This happens third");
}).then($DONE, $DONE);
sequence.push(2);
diff --git a/test/built-ins/Promise/race/S25.4.4.3_A7.1_T3.js b/test/built-ins/Promise/race/S25.4.4.3_A7.1_T3.js
index 7e0f286c8..4e03609a1 100644
--- a/test/built-ins/Promise/race/S25.4.4.3_A7.1_T3.js
+++ b/test/built-ins/Promise/race/S25.4.4.3_A7.1_T3.js
@@ -11,27 +11,27 @@ flags: [async]
var sequence = [];
-var p1 = new Promise(function () {}),
- p2 = Promise.resolve(2),
- p = Promise.race([p1, p2]);
+var p1 = new Promise(function() {}),
+ p2 = Promise.resolve(2),
+ p = Promise.race([p1, p2]);
sequence.push(1);
-p.then(function (arg) {
- if (arg !== 2) {
- $ERROR("Expected promise to be fulfilled with 2, got " + arg);
- }
+p.then(function(arg) {
+ if (arg !== 2) {
+ $ERROR("Expected promise to be fulfilled with 2, got " + arg);
+ }
- sequence.push(4);
- checkSequence(sequence, "This happens second");
+ sequence.push(4);
+ checkSequence(sequence, "This happens second");
}).catch($DONE);
-Promise.resolve().then(function () {
- sequence.push(3);
- checkSequence(sequence, "This happens first");
-}).then(function () {
- sequence.push(5);
- checkSequence(sequence, "This happens third");
+Promise.resolve().then(function() {
+ sequence.push(3);
+ checkSequence(sequence, "This happens first");
+}).then(function() {
+ sequence.push(5);
+ checkSequence(sequence, "This happens third");
}).then($DONE, $DONE);
sequence.push(2);
diff --git a/test/built-ins/Promise/race/S25.4.4.3_A7.2_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A7.2_T1.js
index 3f24b602d..2f9d3cb67 100644
--- a/test/built-ins/Promise/race/S25.4.4.3_A7.2_T1.js
+++ b/test/built-ins/Promise/race/S25.4.4.3_A7.2_T1.js
@@ -12,28 +12,28 @@ flags: [async]
var sequence = [];
var p1 = Promise.reject(1),
- p2 = Promise.resolve(2),
- p = Promise.race([p1, p2]);
+ p2 = Promise.resolve(2),
+ p = Promise.race([p1, p2]);
sequence.push(1);
-p.then(function () {
- $ERROR("Should not be fulfilled - expected rejection.");
-}, function (arg) {
- if (arg !== 1) {
- $ERROR("Expected rejection reason to be 1, got " + arg);
- }
+p.then(function() {
+ $ERROR("Should not be fulfilled - expected rejection.");
+}, function(arg) {
+ if (arg !== 1) {
+ $ERROR("Expected rejection reason to be 1, got " + arg);
+ }
- sequence.push(4);
- checkSequence(sequence, "This happens second");
+ sequence.push(4);
+ checkSequence(sequence, "This happens second");
}).catch($DONE);
-Promise.resolve().then(function () {
- sequence.push(3);
- checkSequence(sequence, "This happens first");
-}).then(function () {
- sequence.push(5);
- checkSequence(sequence, "This happens third");
+Promise.resolve().then(function() {
+ sequence.push(3);
+ checkSequence(sequence, "This happens first");
+}).then(function() {
+ sequence.push(5);
+ checkSequence(sequence, "This happens third");
}).then($DONE, $DONE);
sequence.push(2);
diff --git a/test/built-ins/Promise/race/S25.4.4.3_A7.3_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A7.3_T1.js
index 02dad7f9d..7628a4664 100644
--- a/test/built-ins/Promise/race/S25.4.4.3_A7.3_T1.js
+++ b/test/built-ins/Promise/race/S25.4.4.3_A7.3_T1.js
@@ -9,14 +9,18 @@ flags: [async]
---*/
var resolveP1, rejectP2,
- p1 = new Promise(function (resolve) { resolveP1 = resolve; }),
- p2 = new Promise(function (resolve, reject) { rejectP2 = reject; });
+ p1 = new Promise(function(resolve) {
+ resolveP1 = resolve;
+ }),
+ p2 = new Promise(function(resolve, reject) {
+ rejectP2 = reject;
+ });
rejectP2(new Error("Promise.race should not see this if P1 already resolved"));
resolveP1(1);
-Promise.race([p1, p2]).then(function (arg) {
- if (arg !== 1) {
- $ERROR("Expected fulfillment with 1, got " + arg);
- }
+Promise.race([p1, p2]).then(function(arg) {
+ if (arg !== 1) {
+ $ERROR("Expected fulfillment with 1, got " + arg);
+ }
}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/race/S25.4.4.3_A7.3_T2.js b/test/built-ins/Promise/race/S25.4.4.3_A7.3_T2.js
index 535116ea1..91803cce5 100644
--- a/test/built-ins/Promise/race/S25.4.4.3_A7.3_T2.js
+++ b/test/built-ins/Promise/race/S25.4.4.3_A7.3_T2.js
@@ -9,17 +9,20 @@ flags: [async]
---*/
var resolveP1, rejectP2,
- p1 = new Promise(function (resolve) { resolveP1 = resolve; }),
- p2 = new Promise(function (resolve, reject) { rejectP2 = reject; });
+ p1 = new Promise(function(resolve) {
+ resolveP1 = resolve;
+ }),
+ p2 = new Promise(function(resolve, reject) {
+ rejectP2 = reject;
+ });
-Promise.race([p1, p2]).then(function () {
- $ERROR("Should not be fulfilled: expected rejection.");
-}, function (arg) {
- if (arg !== 2) {
- $ERROR("Expected rejection reason to be 2, got " + arg);
- }
+Promise.race([p1, p2]).then(function() {
+ $ERROR("Should not be fulfilled: expected rejection.");
+}, function(arg) {
+ if (arg !== 2) {
+ $ERROR("Expected rejection reason to be 2, got " + arg);
+ }
}).then($DONE, $DONE);
rejectP2(2);
resolveP1(1);
-
diff --git a/test/built-ins/Promise/race/capability-executor-called-twice.js b/test/built-ins/Promise/race/capability-executor-called-twice.js
index 7e21ce01e..652f3201c 100644
--- a/test/built-ins/Promise/race/capability-executor-called-twice.js
+++ b/test/built-ins/Promise/race/capability-executor-called-twice.js
@@ -27,7 +27,7 @@ Promise.race.call(function(executor) {
checkPoint += "a";
executor();
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, []);
assert.sameValue(checkPoint, "abc", "executor initially called with no arguments");
@@ -37,7 +37,7 @@ Promise.race.call(function(executor) {
checkPoint += "a";
executor(undefined, undefined);
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, []);
assert.sameValue(checkPoint, "abc", "executor initially called with (undefined, undefined)");
@@ -46,9 +46,9 @@ var checkPoint = "";
assert.throws(TypeError, function() {
Promise.race.call(function(executor) {
checkPoint += "a";
- executor(undefined, function(){});
+ executor(undefined, function() {});
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, []);
}, "executor initially called with (undefined, function)");
@@ -58,9 +58,9 @@ var checkPoint = "";
assert.throws(TypeError, function() {
Promise.race.call(function(executor) {
checkPoint += "a";
- executor(function(){}, undefined);
+ executor(function() {}, undefined);
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, []);
}, "executor initially called with (function, undefined)");
@@ -72,7 +72,7 @@ assert.throws(TypeError, function() {
checkPoint += "a";
executor("invalid value", 123);
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, []);
}, "executor initially called with (String, Number)");
diff --git a/test/built-ins/Promise/race/capability-executor-not-callable.js b/test/built-ins/Promise/race/capability-executor-not-callable.js
index be31cf297..ae52d9c10 100644
--- a/test/built-ins/Promise/race/capability-executor-not-callable.js
+++ b/test/built-ins/Promise/race/capability-executor-not-callable.js
@@ -56,7 +56,7 @@ var checkPoint = "";
assert.throws(TypeError, function() {
Promise.race.call(function(executor) {
checkPoint += "a";
- executor(undefined, function(){});
+ executor(undefined, function() {});
checkPoint += "b";
}, []);
}, "executor called with (undefined, function)");
@@ -66,7 +66,7 @@ var checkPoint = "";
assert.throws(TypeError, function() {
Promise.race.call(function(executor) {
checkPoint += "a";
- executor(function(){}, undefined);
+ executor(function() {}, undefined);
checkPoint += "b";
}, []);
}, "executor called with (function, undefined)");
diff --git a/test/built-ins/Promise/race/invoke-resolve-error-close.js b/test/built-ins/Promise/race/invoke-resolve-error-close.js
index 36651be4e..df90989cb 100644
--- a/test/built-ins/Promise/race/invoke-resolve-error-close.js
+++ b/test/built-ins/Promise/race/invoke-resolve-error-close.js
@@ -29,7 +29,10 @@ var returnCount = 0;
iterDoneSpy[Symbol.iterator] = function() {
return {
next: function() {
- return { value: null, done: false };
+ return {
+ value: null,
+ done: false
+ };
},
return: function() {
returnCount += 1;
diff --git a/test/built-ins/Promise/race/invoke-resolve-get-error-close.js b/test/built-ins/Promise/race/invoke-resolve-get-error-close.js
index d2958b5b3..cc874421c 100644
--- a/test/built-ins/Promise/race/invoke-resolve-get-error-close.js
+++ b/test/built-ins/Promise/race/invoke-resolve-get-error-close.js
@@ -29,7 +29,9 @@ var returnCount = 0;
iter[Symbol.iterator] = function() {
return {
next: function() {
- return { done: false };
+ return {
+ done: false
+ };
},
return: function() {
returnCount += 1;
diff --git a/test/built-ins/Promise/race/invoke-then-error-close.js b/test/built-ins/Promise/race/invoke-then-error-close.js
index a9df84f49..07d80abab 100644
--- a/test/built-ins/Promise/race/invoke-then-error-close.js
+++ b/test/built-ins/Promise/race/invoke-then-error-close.js
@@ -31,7 +31,10 @@ var returnCount = 0;
iter[Symbol.iterator] = function() {
return {
next: function() {
- return { done: false, value: promise };
+ return {
+ done: false,
+ value: promise
+ };
},
return: function() {
returnCount += 1;
diff --git a/test/built-ins/Promise/race/invoke-then-get-error-close.js b/test/built-ins/Promise/race/invoke-then-get-error-close.js
index 93f095ee2..9dbb52017 100644
--- a/test/built-ins/Promise/race/invoke-then-get-error-close.js
+++ b/test/built-ins/Promise/race/invoke-then-get-error-close.js
@@ -30,7 +30,10 @@ var returnCount = 0;
iter[Symbol.iterator] = function() {
return {
next: function() {
- return { done: false, value: promise };
+ return {
+ done: false,
+ value: promise
+ };
},
return: function() {
returnCount += 1;
diff --git a/test/built-ins/Promise/race/reject-deferred.js b/test/built-ins/Promise/race/reject-deferred.js
index 59f891510..c7e321a36 100644
--- a/test/built-ins/Promise/race/reject-deferred.js
+++ b/test/built-ins/Promise/race/reject-deferred.js
@@ -24,7 +24,9 @@ flags: [async]
var thenable = {
then: function(_, reject) {
- new Promise(function(resolve) { resolve(); })
+ new Promise(function(resolve) {
+ resolve();
+ })
.then(function() {
reject();
});
diff --git a/test/built-ins/Promise/race/reject-ignored-deferred.js b/test/built-ins/Promise/race/reject-ignored-deferred.js
index c64b70da4..43df80e3f 100644
--- a/test/built-ins/Promise/race/reject-ignored-deferred.js
+++ b/test/built-ins/Promise/race/reject-ignored-deferred.js
@@ -29,7 +29,9 @@ flags: [async]
var fulfiller = {
then: function(resolve) {
- new Promise(function(resolve) { resolve(); })
+ new Promise(function(resolve) {
+ resolve();
+ })
.then(function() {
resolve();
});
@@ -37,7 +39,9 @@ var fulfiller = {
};
var rejector = {
then: function(_, reject) {
- new Promise(function(resolve) { resolve(); })
+ new Promise(function(resolve) {
+ resolve();
+ })
.then(function() {
reject();
});
diff --git a/test/built-ins/Promise/race/resolve-prms-cstm-then.js b/test/built-ins/Promise/race/resolve-prms-cstm-then.js
index 238785a50..07c6317a2 100644
--- a/test/built-ins/Promise/race/resolve-prms-cstm-then.js
+++ b/test/built-ins/Promise/race/resolve-prms-cstm-then.js
@@ -35,7 +35,9 @@ var thenableValue = {
resolve(value);
}
};
-var thenable = new Promise(function(resolve) { resolve(); });
+var thenable = new Promise(function(resolve) {
+ resolve();
+});
thenable.then = function(resolve) {
resolve(thenableValue);
diff --git a/test/built-ins/Promise/race/resolve-self.js b/test/built-ins/Promise/race/resolve-self.js
index 6fc2a3820..565bc94e5 100644
--- a/test/built-ins/Promise/race/resolve-self.js
+++ b/test/built-ins/Promise/race/resolve-self.js
@@ -33,7 +33,9 @@ var thenable = {
};
try {
- Promise.resolve = function(v) { return v; };
+ Promise.resolve = function(v) {
+ return v;
+ };
self = Promise.race([thenable]);
} finally {
Promise.resolve = builtinResolve;
@@ -42,15 +44,15 @@ try {
resolve(self);
self.then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function(value) {
- if (!value) {
- $DONE('The promise should be rejected with a value.');
- return;
- }
- if (value.constructor !== TypeError) {
- $DONE('The promise should be rejected with a TypeError instance.');
- return;
- }
- $DONE();
- });
+ $DONE('The promise should not be fulfilled.');
+}, function(value) {
+ if (!value) {
+ $DONE('The promise should be rejected with a value.');
+ return;
+ }
+ if (value.constructor !== TypeError) {
+ $DONE('The promise should be rejected with a TypeError instance.');
+ return;
+ }
+ $DONE();
+});
diff --git a/test/built-ins/Promise/race/same-reject-function.js b/test/built-ins/Promise/race/same-reject-function.js
index dbcdf7c5b..b67e4ff41 100644
--- a/test/built-ins/Promise/race/same-reject-function.js
+++ b/test/built-ins/Promise/race/same-reject-function.js
@@ -13,14 +13,17 @@ info: |
...
---*/
-function rejectFunction() { }
+function rejectFunction() {}
function Constructor(executor) {
executor($ERROR, rejectFunction);
}
-Constructor.resolve = function(v) { return v; };
+Constructor.resolve = function(v) {
+ return v;
+};
-var callCount1 = 0, callCount2 = 0;
+var callCount1 = 0,
+ callCount2 = 0;
var p1 = {
then: function(onFulfilled, onRejected) {
diff --git a/test/built-ins/Promise/race/same-resolve-function.js b/test/built-ins/Promise/race/same-resolve-function.js
index b20ee7242..10b6bfec6 100644
--- a/test/built-ins/Promise/race/same-resolve-function.js
+++ b/test/built-ins/Promise/race/same-resolve-function.js
@@ -13,14 +13,17 @@ info: |
...
---*/
-function resolveFunction() { }
+function resolveFunction() {}
function Constructor(executor) {
executor(resolveFunction, $ERROR);
}
-Constructor.resolve = function(v) { return v; };
+Constructor.resolve = function(v) {
+ return v;
+};
-var callCount1 = 0, callCount2 = 0;
+var callCount1 = 0,
+ callCount2 = 0;
var p1 = {
then: function(onFulfilled, onRejected) {
diff --git a/test/built-ins/Promise/race/species-get-error.js b/test/built-ins/Promise/race/species-get-error.js
index 26e2fd039..b32fd7ef4 100644
--- a/test/built-ins/Promise/race/species-get-error.js
+++ b/test/built-ins/Promise/race/species-get-error.js
@@ -14,7 +14,7 @@ features: [Symbol.species]
---*/
function C(executor) {
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
}
Object.defineProperty(C, Symbol.species, {
get: function() {
diff --git a/test/built-ins/Promise/reject-function-nonconstructor.js b/test/built-ins/Promise/reject-function-nonconstructor.js
index 752a7c9e1..cf77ab828 100644
--- a/test/built-ins/Promise/reject-function-nonconstructor.js
+++ b/test/built-ins/Promise/reject-function-nonconstructor.js
@@ -17,4 +17,6 @@ new Promise(function(resolve, reject) {
});
assert.sameValue(Object.prototype.hasOwnProperty.call(rejectFunction, "prototype"), false);
-assert.throws(TypeError, function() { new rejectFunction(); });
+assert.throws(TypeError, function() {
+ new rejectFunction();
+});
diff --git a/test/built-ins/Promise/reject-ignored-via-abrupt.js b/test/built-ins/Promise/reject-ignored-via-abrupt.js
index 3e0855acf..9e5a978b4 100644
--- a/test/built-ins/Promise/reject-ignored-via-abrupt.js
+++ b/test/built-ins/Promise/reject-ignored-via-abrupt.js
@@ -28,7 +28,7 @@ var p = new Promise(function(resolve) {
});
p.then(function() {
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
diff --git a/test/built-ins/Promise/reject-ignored-via-fn-deferred.js b/test/built-ins/Promise/reject-ignored-via-fn-deferred.js
index 90cdaaa5c..b272e50f0 100644
--- a/test/built-ins/Promise/reject-ignored-via-fn-deferred.js
+++ b/test/built-ins/Promise/reject-ignored-via-fn-deferred.js
@@ -30,10 +30,10 @@ var p = new Promise(function(_resolve, _reject) {
});
p.then(function() {
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
resolve();
returnValue = reject(thenable);
diff --git a/test/built-ins/Promise/reject-ignored-via-fn-immed.js b/test/built-ins/Promise/reject-ignored-via-fn-immed.js
index 118c0b448..d9a5018af 100644
--- a/test/built-ins/Promise/reject-ignored-via-fn-immed.js
+++ b/test/built-ins/Promise/reject-ignored-via-fn-immed.js
@@ -31,7 +31,7 @@ var p = new Promise(function(resolve, reject) {
assert.sameValue(returnValue, undefined, '"reject" function return value');
p.then(function() {
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
diff --git a/test/built-ins/Promise/reject-via-abrupt-queue.js b/test/built-ins/Promise/reject-via-abrupt-queue.js
index b4a6e556a..c4194c4a8 100644
--- a/test/built-ins/Promise/reject-via-abrupt-queue.js
+++ b/test/built-ins/Promise/reject-via-abrupt-queue.js
@@ -42,13 +42,13 @@ var p = new Promise(function() {
});
p.then(function() {
- $DONE('The promise should not be fulfilled.');
- }).then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function(x) {
- if (x !== thenable) {
- $DONE('The promise should be rejected with the resolution value.');
- return;
- }
- $DONE();
- });
+ $DONE('The promise should not be fulfilled.');
+}).then(function() {
+ $DONE('The promise should not be fulfilled.');
+}, function(x) {
+ if (x !== thenable) {
+ $DONE('The promise should be rejected with the resolution value.');
+ return;
+ }
+ $DONE();
+});
diff --git a/test/built-ins/Promise/reject-via-abrupt.js b/test/built-ins/Promise/reject-via-abrupt.js
index 71be43108..c51a6f177 100644
--- a/test/built-ins/Promise/reject-via-abrupt.js
+++ b/test/built-ins/Promise/reject-via-abrupt.js
@@ -25,12 +25,12 @@ var p = new Promise(function() {
});
p.then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function(x) {
- if (x !== thenable) {
- $DONE('The promise should be rejected with the resolution value.');
- return;
- }
+ $DONE('The promise should not be fulfilled.');
+}, function(x) {
+ if (x !== thenable) {
+ $DONE('The promise should be rejected with the resolution value.');
+ return;
+ }
- $DONE();
- });
+ $DONE();
+});
diff --git a/test/built-ins/Promise/reject-via-fn-deferred-queue.js b/test/built-ins/Promise/reject-via-fn-deferred-queue.js
index 9bd28ff33..12bdde783 100644
--- a/test/built-ins/Promise/reject-via-fn-deferred-queue.js
+++ b/test/built-ins/Promise/reject-via-fn-deferred-queue.js
@@ -45,17 +45,17 @@ var p = new Promise(function(_, _reject) {
});
p.then(function() {
- $DONE('The promise should not be fulfilled.');
- }).then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function(x) {
- if (x !== thenable) {
- $DONE('The promise should be rejected with the resolution value.');
- return;
- }
-
- $DONE();
- });
+ $DONE('The promise should not be fulfilled.');
+}).then(function() {
+ $DONE('The promise should not be fulfilled.');
+}, function(x) {
+ if (x !== thenable) {
+ $DONE('The promise should be rejected with the resolution value.');
+ return;
+ }
+
+ $DONE();
+});
returnValue = reject(thenable);
diff --git a/test/built-ins/Promise/reject-via-fn-deferred.js b/test/built-ins/Promise/reject-via-fn-deferred.js
index 24333fb0f..1d1576a1c 100644
--- a/test/built-ins/Promise/reject-via-fn-deferred.js
+++ b/test/built-ins/Promise/reject-via-fn-deferred.js
@@ -25,15 +25,15 @@ var p = new Promise(function(_, _reject) {
});
p.then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function(x) {
- if (x !== thenable) {
- $DONE('The promise should be rejected with the resolution value.');
- return;
- }
+ $DONE('The promise should not be fulfilled.');
+}, function(x) {
+ if (x !== thenable) {
+ $DONE('The promise should be rejected with the resolution value.');
+ return;
+ }
- $DONE();
- });
+ $DONE();
+});
returnValue = reject(thenable);
diff --git a/test/built-ins/Promise/reject-via-fn-immed-queue.js b/test/built-ins/Promise/reject-via-fn-immed-queue.js
index 3c83ea5ca..e48cbe002 100644
--- a/test/built-ins/Promise/reject-via-fn-immed-queue.js
+++ b/test/built-ins/Promise/reject-via-fn-immed-queue.js
@@ -46,14 +46,14 @@ var p = new Promise(function(_, reject) {
assert.sameValue(returnValue, undefined, '"reject" function return value');
p.then(function() {
- $DONE('The promise should not be fulfilled.');
- }).then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function(x) {
- if (x !== thenable) {
- $DONE('The promise should be rejected with the resolution value.');
- return;
- }
-
- $DONE();
- });
+ $DONE('The promise should not be fulfilled.');
+}).then(function() {
+ $DONE('The promise should not be fulfilled.');
+}, function(x) {
+ if (x !== thenable) {
+ $DONE('The promise should be rejected with the resolution value.');
+ return;
+ }
+
+ $DONE();
+});
diff --git a/test/built-ins/Promise/reject-via-fn-immed.js b/test/built-ins/Promise/reject-via-fn-immed.js
index eec1b98df..90573149a 100644
--- a/test/built-ins/Promise/reject-via-fn-immed.js
+++ b/test/built-ins/Promise/reject-via-fn-immed.js
@@ -26,12 +26,12 @@ var p = new Promise(function(_, reject) {
assert.sameValue(returnValue, undefined, '"reject" function return value');
p.then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function(x) {
- if (x !== thenable) {
- $DONE('The promise should be rejected with the resolution value.');
- return;
- }
+ $DONE('The promise should not be fulfilled.');
+}, function(x) {
+ if (x !== thenable) {
+ $DONE('The promise should be rejected with the resolution value.');
+ return;
+ }
- $DONE();
- });
+ $DONE();
+});
diff --git a/test/built-ins/Promise/reject/S25.4.4.4_A1.1_T1.js b/test/built-ins/Promise/reject/S25.4.4.4_A1.1_T1.js
index 95decca57..469656417 100644
--- a/test/built-ins/Promise/reject/S25.4.4.4_A1.1_T1.js
+++ b/test/built-ins/Promise/reject/S25.4.4.4_A1.1_T1.js
@@ -10,5 +10,5 @@ description: Promise.reject is a function
---*/
if ((typeof Promise.reject) !== "function") {
- $ERROR("Expected Promise.reject to be a function");
+ $ERROR("Expected Promise.reject to be a function");
}
diff --git a/test/built-ins/Promise/reject/S25.4.4.4_A2.1_T1.js b/test/built-ins/Promise/reject/S25.4.4.4_A2.1_T1.js
index 6bd6b5f9f..cf83e8bcf 100644
--- a/test/built-ins/Promise/reject/S25.4.4.4_A2.1_T1.js
+++ b/test/built-ins/Promise/reject/S25.4.4.4_A2.1_T1.js
@@ -19,13 +19,13 @@ flags: [async]
var p = Promise.reject(3);
if (!(p instanceof Promise)) {
- $ERROR("Expected Promise.reject to return a promise.");
+ $ERROR("Expected Promise.reject to return a promise.");
}
-p.then(function () {
- $ERROR("Promise should not be fulfilled.");
-}, function (arg) {
- if (arg !== 3) {
- $ERROR("Expected promise to be rejected with supplied arg, got " + arg);
- }
+p.then(function() {
+ $ERROR("Promise should not be fulfilled.");
+}, function(arg) {
+ if (arg !== 3) {
+ $ERROR("Expected promise to be rejected with supplied arg, got " + arg);
+ }
}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/reject/S25.4.4.4_A3.1_T1.js b/test/built-ins/Promise/reject/S25.4.4.4_A3.1_T1.js
index 47fb6d93a..0f9fdc394 100644
--- a/test/built-ins/Promise/reject/S25.4.4.4_A3.1_T1.js
+++ b/test/built-ins/Promise/reject/S25.4.4.4_A3.1_T1.js
@@ -9,8 +9,7 @@ author: Sam Mikes
description: Promise.reject throws TypeError for bad 'this'
---*/
-function ZeroArgConstructor() {
-}
+function ZeroArgConstructor() {}
assert.throws(TypeError, function() {
Promise.reject.call(ZeroArgConstructor, 4);
diff --git a/test/built-ins/Promise/reject/capability-executor-called-twice.js b/test/built-ins/Promise/reject/capability-executor-called-twice.js
index 0fc52baa2..f1632f40f 100644
--- a/test/built-ins/Promise/reject/capability-executor-called-twice.js
+++ b/test/built-ins/Promise/reject/capability-executor-called-twice.js
@@ -27,7 +27,7 @@ Promise.reject.call(function(executor) {
checkPoint += "a";
executor();
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, {});
assert.sameValue(checkPoint, "abc", "executor initially called with no arguments");
@@ -37,7 +37,7 @@ Promise.reject.call(function(executor) {
checkPoint += "a";
executor(undefined, undefined);
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, {});
assert.sameValue(checkPoint, "abc", "executor initially called with (undefined, undefined)");
@@ -46,9 +46,9 @@ var checkPoint = "";
assert.throws(TypeError, function() {
Promise.reject.call(function(executor) {
checkPoint += "a";
- executor(undefined, function(){});
+ executor(undefined, function() {});
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, {});
}, "executor initially called with (undefined, function)");
@@ -58,9 +58,9 @@ var checkPoint = "";
assert.throws(TypeError, function() {
Promise.reject.call(function(executor) {
checkPoint += "a";
- executor(function(){}, undefined);
+ executor(function() {}, undefined);
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, {});
}, "executor initially called with (function, undefined)");
@@ -72,7 +72,7 @@ assert.throws(TypeError, function() {
checkPoint += "a";
executor("invalid value", 123);
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, {});
}, "executor initially called with (String, Number)");
diff --git a/test/built-ins/Promise/reject/capability-executor-not-callable.js b/test/built-ins/Promise/reject/capability-executor-not-callable.js
index 8aa286ba8..42e0978e7 100644
--- a/test/built-ins/Promise/reject/capability-executor-not-callable.js
+++ b/test/built-ins/Promise/reject/capability-executor-not-callable.js
@@ -56,7 +56,7 @@ var checkPoint = "";
assert.throws(TypeError, function() {
Promise.reject.call(function(executor) {
checkPoint += "a";
- executor(undefined, function(){});
+ executor(undefined, function() {});
checkPoint += "b";
}, {});
}, "executor called with (undefined, function)");
@@ -66,7 +66,7 @@ var checkPoint = "";
assert.throws(TypeError, function() {
Promise.reject.call(function(executor) {
checkPoint += "a";
- executor(function(){}, undefined);
+ executor(function() {}, undefined);
checkPoint += "b";
}, {});
}, "executor called with (function, undefined)");
diff --git a/test/built-ins/Promise/reject/capability-invocation.js b/test/built-ins/Promise/reject/capability-invocation.js
index 3a9c6891a..9fc397676 100644
--- a/test/built-ins/Promise/reject/capability-invocation.js
+++ b/test/built-ins/Promise/reject/capability-invocation.js
@@ -17,7 +17,9 @@ info: |
7. ReturnIfAbrupt(promise).
---*/
-var expectedThis = (function() { return this; })();
+var expectedThis = (function() {
+ return this;
+})();
var resolveCount = 0;
var thisValue, args;
var P = function(executor) {
diff --git a/test/built-ins/Promise/resolve-function-nonconstructor.js b/test/built-ins/Promise/resolve-function-nonconstructor.js
index 32e89382a..5603b8010 100644
--- a/test/built-ins/Promise/resolve-function-nonconstructor.js
+++ b/test/built-ins/Promise/resolve-function-nonconstructor.js
@@ -17,4 +17,6 @@ new Promise(function(resolve, reject) {
});
assert.sameValue(Object.prototype.hasOwnProperty.call(resolveFunction, "prototype"), false);
-assert.throws(TypeError, function() { new resolveFunction(); });
+assert.throws(TypeError, function() {
+ new resolveFunction();
+});
diff --git a/test/built-ins/Promise/resolve-ignored-via-fn-deferred.js b/test/built-ins/Promise/resolve-ignored-via-fn-deferred.js
index 8bdd314e4..a78396daf 100644
--- a/test/built-ins/Promise/resolve-ignored-via-fn-deferred.js
+++ b/test/built-ins/Promise/resolve-ignored-via-fn-deferred.js
@@ -31,10 +31,10 @@ var p = new Promise(function(_resolve, _reject) {
});
p.then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function() {
- $DONE();
- });
+ $DONE('The promise should not be fulfilled.');
+}, function() {
+ $DONE();
+});
reject(thenable);
returnValue = resolve();
diff --git a/test/built-ins/Promise/resolve-ignored-via-fn-immed.js b/test/built-ins/Promise/resolve-ignored-via-fn-immed.js
index 2b5cafbf8..7c5eefb26 100644
--- a/test/built-ins/Promise/resolve-ignored-via-fn-immed.js
+++ b/test/built-ins/Promise/resolve-ignored-via-fn-immed.js
@@ -32,7 +32,7 @@ var p = new Promise(function(resolve, reject) {
assert.sameValue(returnValue, undefined, '"reject" function return value');
p.then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function() {
- $DONE();
- });
+ $DONE('The promise should not be fulfilled.');
+}, function() {
+ $DONE();
+});
diff --git a/test/built-ins/Promise/resolve-non-obj-deferred.js b/test/built-ins/Promise/resolve-non-obj-deferred.js
index 4cd93b663..36a380b0e 100644
--- a/test/built-ins/Promise/resolve-non-obj-deferred.js
+++ b/test/built-ins/Promise/resolve-non-obj-deferred.js
@@ -23,15 +23,15 @@ var promise = new Promise(function(_resolve) {
});
promise.then(function(value) {
- if (value !== 45) {
- $DONE('The promise should be fulfilled with the provided value.');
- return;
- }
+ if (value !== 45) {
+ $DONE('The promise should be fulfilled with the provided value.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
returnValue = resolve(45);
diff --git a/test/built-ins/Promise/resolve-non-obj-immed.js b/test/built-ins/Promise/resolve-non-obj-immed.js
index b9400d266..3bb74c10b 100644
--- a/test/built-ins/Promise/resolve-non-obj-immed.js
+++ b/test/built-ins/Promise/resolve-non-obj-immed.js
@@ -23,12 +23,12 @@ var promise = new Promise(function(resolve) {
assert.sameValue(returnValue, undefined, '"resolve" return value');
promise.then(function(value) {
- if (value !== 45) {
- $DONE('The promise should be fulfilled with the provided value.');
- return;
- }
+ if (value !== 45) {
+ $DONE('The promise should be fulfilled with the provided value.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
diff --git a/test/built-ins/Promise/resolve-non-thenable-deferred.js b/test/built-ins/Promise/resolve-non-thenable-deferred.js
index d39c04bbe..e760edb11 100644
--- a/test/built-ins/Promise/resolve-non-thenable-deferred.js
+++ b/test/built-ins/Promise/resolve-non-thenable-deferred.js
@@ -22,22 +22,24 @@ flags: [async]
---*/
var returnValue = null;
-var nonThenable = { then: null };
+var nonThenable = {
+ then: null
+};
var resolve;
var promise = new Promise(function(_resolve) {
resolve = _resolve;
});
promise.then(function(value) {
- if (value !== nonThenable) {
- $DONE('The promise should be fulfilled with the provided value.');
- return;
- }
+ if (value !== nonThenable) {
+ $DONE('The promise should be fulfilled with the provided value.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
returnValue = resolve(nonThenable);
diff --git a/test/built-ins/Promise/resolve-non-thenable-immed.js b/test/built-ins/Promise/resolve-non-thenable-immed.js
index 5f7b13b67..1c2463a8b 100644
--- a/test/built-ins/Promise/resolve-non-thenable-immed.js
+++ b/test/built-ins/Promise/resolve-non-thenable-immed.js
@@ -22,7 +22,9 @@ flags: [async]
---*/
var returnValue = null;
-var nonThenable = { then: null };
+var nonThenable = {
+ then: null
+};
var promise = new Promise(function(resolve) {
returnValue = resolve(nonThenable);
});
@@ -30,12 +32,12 @@ var promise = new Promise(function(resolve) {
assert.sameValue(returnValue, undefined, '"resolve" return value');
promise.then(function(value) {
- if (value !== nonThenable) {
- $DONE('The promise should be fulfilled with the provided value.');
- return;
- }
+ if (value !== nonThenable) {
+ $DONE('The promise should be fulfilled with the provided value.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
diff --git a/test/built-ins/Promise/resolve-poisoned-then-deferred.js b/test/built-ins/Promise/resolve-poisoned-then-deferred.js
index ad3239355..2b2a3419b 100644
--- a/test/built-ins/Promise/resolve-poisoned-then-deferred.js
+++ b/test/built-ins/Promise/resolve-poisoned-then-deferred.js
@@ -30,15 +30,15 @@ var promise = new Promise(function(_resolve) {
});
promise.then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function(val) {
- if (val !== value) {
- $DONE('The promise should be fulfilled with the provided value.');
- return;
- }
+ $DONE('The promise should not be fulfilled.');
+}, function(val) {
+ if (val !== value) {
+ $DONE('The promise should be fulfilled with the provided value.');
+ return;
+ }
- $DONE();
- });
+ $DONE();
+});
returnValue = resolve(poisonedThen);
diff --git a/test/built-ins/Promise/resolve-poisoned-then-immed.js b/test/built-ins/Promise/resolve-poisoned-then-immed.js
index 22658f20a..cb7d4c29c 100644
--- a/test/built-ins/Promise/resolve-poisoned-then-immed.js
+++ b/test/built-ins/Promise/resolve-poisoned-then-immed.js
@@ -31,12 +31,12 @@ var promise = new Promise(function(resolve) {
assert.sameValue(returnValue, undefined, '"resolve" return value');
promise.then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function(val) {
- if (val !== value) {
- $DONE('The promise should be fulfilled with the provided value.');
- return;
- }
+ $DONE('The promise should not be fulfilled.');
+}, function(val) {
+ if (val !== value) {
+ $DONE('The promise should be fulfilled with the provided value.');
+ return;
+ }
- $DONE();
- });
+ $DONE();
+});
diff --git a/test/built-ins/Promise/resolve-prms-cstm-then-deferred.js b/test/built-ins/Promise/resolve-prms-cstm-then-deferred.js
index d167f2a8e..542df5b65 100644
--- a/test/built-ins/Promise/resolve-prms-cstm-then-deferred.js
+++ b/test/built-ins/Promise/resolve-prms-cstm-then-deferred.js
@@ -27,7 +27,9 @@ flags: [async]
var returnValue = null;
var value = {};
var resolve;
-var thenable = new Promise(function(resolve) { resolve(); });
+var thenable = new Promise(function(resolve) {
+ resolve();
+});
var promise = new Promise(function(_resolve) {
resolve = _resolve;
});
@@ -37,15 +39,15 @@ thenable.then = function(resolve) {
};
promise.then(function(val) {
- if (val !== value) {
- $DONE('The promise should be fulfilled with the provided value.');
- return;
- }
+ if (val !== value) {
+ $DONE('The promise should be fulfilled with the provided value.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
returnValue = resolve(thenable);
diff --git a/test/built-ins/Promise/resolve-prms-cstm-then-immed.js b/test/built-ins/Promise/resolve-prms-cstm-then-immed.js
index bc292a8c4..3936c9700 100644
--- a/test/built-ins/Promise/resolve-prms-cstm-then-immed.js
+++ b/test/built-ins/Promise/resolve-prms-cstm-then-immed.js
@@ -27,7 +27,9 @@ flags: [async]
var returnValue = null;
var value = {};
var lateCallCount = 0;
-var thenable = new Promise(function(resolve) { resolve(); });
+var thenable = new Promise(function(resolve) {
+ resolve();
+});
thenable.then = function(resolve) {
resolve(value);
@@ -44,16 +46,16 @@ thenable.then = function() {
};
promise.then(function(val) {
- if (val !== value) {
- $DONE('The promise should be fulfilled with the provided value.');
- return;
- }
-
- if (lateCallCount > 0) {
- $DONE('The `then` method should be executed synchronously.');
- }
-
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ if (val !== value) {
+ $DONE('The promise should be fulfilled with the provided value.');
+ return;
+ }
+
+ if (lateCallCount > 0) {
+ $DONE('The `then` method should be executed synchronously.');
+ }
+
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
diff --git a/test/built-ins/Promise/resolve-self.js b/test/built-ins/Promise/resolve-self.js
index 02a75bd27..ed519fa82 100644
--- a/test/built-ins/Promise/resolve-self.js
+++ b/test/built-ins/Promise/resolve-self.js
@@ -24,20 +24,20 @@ var promise = new Promise(function(_resolve) {
});
promise.then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function(reason) {
- if (!reason) {
- $DONE('The promise should be rejected with a value.');
- return;
- }
+ $DONE('The promise should not be fulfilled.');
+}, function(reason) {
+ if (!reason) {
+ $DONE('The promise should be rejected with a value.');
+ return;
+ }
- if (reason.constructor !== TypeError) {
- $DONE('The promise should be rejected with a TypeError instance.');
- return;
- }
+ if (reason.constructor !== TypeError) {
+ $DONE('The promise should be rejected with a TypeError instance.');
+ return;
+ }
- $DONE();
- });
+ $DONE();
+});
returnValue = resolve(promise);
diff --git a/test/built-ins/Promise/resolve-thenable-deferred.js b/test/built-ins/Promise/resolve-thenable-deferred.js
index 2c0602aea..ea7ce79b0 100644
--- a/test/built-ins/Promise/resolve-thenable-deferred.js
+++ b/test/built-ins/Promise/resolve-thenable-deferred.js
@@ -27,21 +27,23 @@ flags: [async]
var returnValue = null;
var value = {};
var resolve;
-var thenable = new Promise(function(resolve) { resolve(value); });
+var thenable = new Promise(function(resolve) {
+ resolve(value);
+});
var promise = new Promise(function(_resolve) {
resolve = _resolve;
});
promise.then(function(val) {
- if (val !== value) {
- $DONE('The promise should be fulfilled with the provided value.');
- return;
- }
+ if (val !== value) {
+ $DONE('The promise should be fulfilled with the provided value.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
returnValue = resolve(thenable);
diff --git a/test/built-ins/Promise/resolve-thenable-immed.js b/test/built-ins/Promise/resolve-thenable-immed.js
index 7d90a5e1c..4be0fc547 100644
--- a/test/built-ins/Promise/resolve-thenable-immed.js
+++ b/test/built-ins/Promise/resolve-thenable-immed.js
@@ -25,7 +25,9 @@ flags: [async]
var returnValue = null;
var value = {};
-var thenable = new Promise(function(resolve) { resolve(value); });
+var thenable = new Promise(function(resolve) {
+ resolve(value);
+});
var promise = new Promise(function(resolve) {
returnValue = resolve(thenable);
});
@@ -33,12 +35,12 @@ var promise = new Promise(function(resolve) {
assert.sameValue(returnValue, undefined, '"resolve" return value');
promise.then(function(val) {
- if (val !== value) {
- $DONE('The promise should be fulfilled with the provided value.');
- return;
- }
+ if (val !== value) {
+ $DONE('The promise should be fulfilled with the provided value.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
diff --git a/test/built-ins/Promise/resolve/S25.4.4.5_A1.1_T1.js b/test/built-ins/Promise/resolve/S25.4.4.5_A1.1_T1.js
index 07c4e02f0..b4d5943c7 100644
--- a/test/built-ins/Promise/resolve/S25.4.4.5_A1.1_T1.js
+++ b/test/built-ins/Promise/resolve/S25.4.4.5_A1.1_T1.js
@@ -10,5 +10,5 @@ description: Promise.resolve is a function
---*/
if ((typeof Promise.resolve) !== "function") {
- $ERROR("Expected Promise.resolve to be a function");
+ $ERROR("Expected Promise.resolve to be a function");
}
diff --git a/test/built-ins/Promise/resolve/S25.4.4.5_A2.1_T1.js b/test/built-ins/Promise/resolve/S25.4.4.5_A2.1_T1.js
index 15718a0a6..6b79535d6 100644
--- a/test/built-ins/Promise/resolve/S25.4.4.5_A2.1_T1.js
+++ b/test/built-ins/Promise/resolve/S25.4.4.5_A2.1_T1.js
@@ -8,8 +8,8 @@ description: Promise.resolve passes through a promise w/ same Constructor
---*/
var p1 = Promise.resolve(1),
- p2 = Promise.resolve(p1);
+ p2 = Promise.resolve(p1);
if (p1 !== p2) {
- $ERROR("Expected p1 === Promise.resolve(p1) because they have same constructor");
+ $ERROR("Expected p1 === Promise.resolve(p1) because they have same constructor");
}
diff --git a/test/built-ins/Promise/resolve/S25.4.4.5_A2.2_T1.js b/test/built-ins/Promise/resolve/S25.4.4.5_A2.2_T1.js
index 2b471179f..294bf71fc 100644
--- a/test/built-ins/Promise/resolve/S25.4.4.5_A2.2_T1.js
+++ b/test/built-ins/Promise/resolve/S25.4.4.5_A2.2_T1.js
@@ -9,18 +9,20 @@ flags: [async]
---*/
var resolveP1,
- p1 = new Promise(function (resolve) { resolveP1 = resolve; }),
- p2 = Promise.resolve(p1),
- obj = {};
+ p1 = new Promise(function(resolve) {
+ resolveP1 = resolve;
+ }),
+ p2 = Promise.resolve(p1),
+ obj = {};
if (p1 !== p2) {
- $ERROR("Expected p1 === Promise.resolve(p1) because they have same constructor");
+ $ERROR("Expected p1 === Promise.resolve(p1) because they have same constructor");
}
-p2.then(function (arg) {
- if (arg !== obj) {
- $ERROR("Expected promise to be resolved with obj, actually " + arg);
- }
+p2.then(function(arg) {
+ if (arg !== obj) {
+ $ERROR("Expected promise to be resolved with obj, actually " + arg);
+ }
}).then($DONE, $DONE);
resolveP1(obj);
diff --git a/test/built-ins/Promise/resolve/S25.4.4.5_A2.3_T1.js b/test/built-ins/Promise/resolve/S25.4.4.5_A2.3_T1.js
index 3ea901fc8..a17137231 100644
--- a/test/built-ins/Promise/resolve/S25.4.4.5_A2.3_T1.js
+++ b/test/built-ins/Promise/resolve/S25.4.4.5_A2.3_T1.js
@@ -9,20 +9,22 @@ flags: [async]
---*/
var rejectP1,
- p1 = new Promise(function (resolve, reject) { rejectP1 = reject; }),
- p2 = Promise.resolve(p1),
- obj = {};
+ p1 = new Promise(function(resolve, reject) {
+ rejectP1 = reject;
+ }),
+ p2 = Promise.resolve(p1),
+ obj = {};
if (p1 !== p2) {
- $ERROR("Expected p1 === Promise.resolve(p1) because they have same constructor");
+ $ERROR("Expected p1 === Promise.resolve(p1) because they have same constructor");
}
-p2.then(function () {
- $ERROR("Expected p2 to be rejected, not fulfilled.");
-}, function (arg) {
- if (arg !== obj) {
- $ERROR("Expected promise to be rejected with reason obj, actually " + arg);
- }
+p2.then(function() {
+ $ERROR("Expected p2 to be rejected, not fulfilled.");
+}, function(arg) {
+ if (arg !== obj) {
+ $ERROR("Expected promise to be rejected with reason obj, actually " + arg);
+ }
}).then($DONE, $DONE);
rejectP1(obj);
diff --git a/test/built-ins/Promise/resolve/S25.4.4.5_A3.1_T1.js b/test/built-ins/Promise/resolve/S25.4.4.5_A3.1_T1.js
index 1da71f6c7..568d089b4 100644
--- a/test/built-ins/Promise/resolve/S25.4.4.5_A3.1_T1.js
+++ b/test/built-ins/Promise/resolve/S25.4.4.5_A3.1_T1.js
@@ -14,22 +14,22 @@ flags: [async]
var sequence = [];
var thenable = {
- then: function(onResolve, onReject) {
- sequence.push(3);
- checkSequence(sequence, "thenable.then called");
+ then: function(onResolve, onReject) {
+ sequence.push(3);
+ checkSequence(sequence, "thenable.then called");
- assert.sameValue(this, thenable);
+ assert.sameValue(this, thenable);
- onResolve('resolved');
+ onResolve('resolved');
- sequence.push(4);
- checkSequence(sequence, "after resolved");
+ sequence.push(4);
+ checkSequence(sequence, "after resolved");
- throw new Error('interrupt flow');
+ throw new Error('interrupt flow');
- sequence.push(4);
- checkSequence(sequence, "duplicate sequence point not pushed");
- }
+ sequence.push(4);
+ checkSequence(sequence, "duplicate sequence point not pushed");
+ }
};
sequence.push(1);
@@ -40,10 +40,10 @@ var p1 = Promise.resolve(thenable);
sequence.push(2);
checkSequence(sequence, "thenable.then queued but not yet called");
-p1.then(function (q) {
- sequence.push(5);
- checkSequence(sequence, "all done");
+p1.then(function(q) {
+ sequence.push(5);
+ checkSequence(sequence, "all done");
- assert.sameValue(q, 'resolved');
+ assert.sameValue(q, 'resolved');
}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/resolve/S25.4.4.5_A4.1_T1.js b/test/built-ins/Promise/resolve/S25.4.4.5_A4.1_T1.js
index 3eb8f83f9..2ae973406 100644
--- a/test/built-ins/Promise/resolve/S25.4.4.5_A4.1_T1.js
+++ b/test/built-ins/Promise/resolve/S25.4.4.5_A4.1_T1.js
@@ -11,14 +11,16 @@ flags: [async]
---*/
var resolveP,
- p = new Promise(function (resolve) { resolveP = resolve; });
+ p = new Promise(function(resolve) {
+ resolveP = resolve;
+ });
resolveP(p);
-p.then(function () {
- $ERROR("Should not fulfill: should reject with TypeError.");
-}, function (err) {
- if (!(err instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + err);
- }
+p.then(function() {
+ $ERROR("Should not fulfill: should reject with TypeError.");
+}, function(err) {
+ if (!(err instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + err);
+ }
}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/resolve/S25.Promise_resolve_foreign_thenable_1.js b/test/built-ins/Promise/resolve/S25.Promise_resolve_foreign_thenable_1.js
index 61f5e7eae..f67bff242 100644
--- a/test/built-ins/Promise/resolve/S25.Promise_resolve_foreign_thenable_1.js
+++ b/test/built-ins/Promise/resolve/S25.Promise_resolve_foreign_thenable_1.js
@@ -11,13 +11,13 @@ flags: [async]
---*/
var thenable = {
- then: function(onResolve, onReject) {
- return onResolve('resolved');
- }
+ then: function(onResolve, onReject) {
+ return onResolve('resolved');
+ }
};
var p = Promise.resolve(thenable);
-p.then(function (r) {
- assert.sameValue(r, 'resolved');
+p.then(function(r) {
+ assert.sameValue(r, 'resolved');
}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/resolve/S25.Promise_resolve_foreign_thenable_2.js b/test/built-ins/Promise/resolve/S25.Promise_resolve_foreign_thenable_2.js
index 1cb07bbe9..c243d9c3a 100644
--- a/test/built-ins/Promise/resolve/S25.Promise_resolve_foreign_thenable_2.js
+++ b/test/built-ins/Promise/resolve/S25.Promise_resolve_foreign_thenable_2.js
@@ -14,15 +14,15 @@ flags: [async]
var sequence = [];
var thenable = {
- then: function(onResolve, onReject) {
+ then: function(onResolve, onReject) {
- sequence.push(3);
- checkSequence(sequence, "thenable.then called");
+ sequence.push(3);
+ checkSequence(sequence, "thenable.then called");
- assert.sameValue(this, thenable, "thenable.then called with `thenable` as `this`");
+ assert.sameValue(this, thenable, "thenable.then called with `thenable` as `this`");
- return onResolve('resolved');
- }
+ return onResolve('resolved');
+ }
};
sequence.push(1);
@@ -33,9 +33,9 @@ var p = Promise.resolve(thenable);
sequence.push(2);
checkSequence(sequence, "thenable.then queued but not yet called");
-p.then(function (r) {
- sequence.push(4);
- checkSequence(sequence, "all done");
+p.then(function(r) {
+ sequence.push(4);
+ checkSequence(sequence, "all done");
- assert.sameValue(r, 'resolved');
+ assert.sameValue(r, 'resolved');
}).then($DONE, $DONE);
diff --git a/test/built-ins/Promise/resolve/capability-executor-called-twice.js b/test/built-ins/Promise/resolve/capability-executor-called-twice.js
index 1db7b9483..37074d240 100644
--- a/test/built-ins/Promise/resolve/capability-executor-called-twice.js
+++ b/test/built-ins/Promise/resolve/capability-executor-called-twice.js
@@ -27,7 +27,7 @@ Promise.resolve.call(function(executor) {
checkPoint += "a";
executor();
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, {});
assert.sameValue(checkPoint, "abc", "executor initially called with no arguments");
@@ -37,7 +37,7 @@ Promise.resolve.call(function(executor) {
checkPoint += "a";
executor(undefined, undefined);
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, {});
assert.sameValue(checkPoint, "abc", "executor initially called with (undefined, undefined)");
@@ -46,9 +46,9 @@ var checkPoint = "";
assert.throws(TypeError, function() {
Promise.resolve.call(function(executor) {
checkPoint += "a";
- executor(undefined, function(){});
+ executor(undefined, function() {});
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, {});
}, "executor initially called with (undefined, function)");
@@ -58,9 +58,9 @@ var checkPoint = "";
assert.throws(TypeError, function() {
Promise.resolve.call(function(executor) {
checkPoint += "a";
- executor(function(){}, undefined);
+ executor(function() {}, undefined);
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, {});
}, "executor initially called with (function, undefined)");
@@ -72,7 +72,7 @@ assert.throws(TypeError, function() {
checkPoint += "a";
executor("invalid value", 123);
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, {});
}, "executor initially called with (String, Number)");
diff --git a/test/built-ins/Promise/resolve/capability-executor-not-callable.js b/test/built-ins/Promise/resolve/capability-executor-not-callable.js
index cbc6b97ae..58dfe71d6 100644
--- a/test/built-ins/Promise/resolve/capability-executor-not-callable.js
+++ b/test/built-ins/Promise/resolve/capability-executor-not-callable.js
@@ -56,7 +56,7 @@ var checkPoint = "";
assert.throws(TypeError, function() {
Promise.resolve.call(function(executor) {
checkPoint += "a";
- executor(undefined, function(){});
+ executor(undefined, function() {});
checkPoint += "b";
}, {});
}, "executor called with (undefined, function)");
@@ -66,7 +66,7 @@ var checkPoint = "";
assert.throws(TypeError, function() {
Promise.resolve.call(function(executor) {
checkPoint += "a";
- executor(function(){}, undefined);
+ executor(function() {}, undefined);
checkPoint += "b";
}, {});
}, "executor called with (function, undefined)");
diff --git a/test/built-ins/Promise/resolve/context-non-object-with-promise.js b/test/built-ins/Promise/resolve/context-non-object-with-promise.js
index 7e20d493b..c59cabeb2 100644
--- a/test/built-ins/Promise/resolve/context-non-object-with-promise.js
+++ b/test/built-ins/Promise/resolve/context-non-object-with-promise.js
@@ -14,7 +14,7 @@ info: |
features: [Symbol]
---*/
-var promise = new Promise(function(){});
+var promise = new Promise(function() {});
promise.constructor = undefined;
assert.throws(TypeError, function() {
diff --git a/test/built-ins/Promise/resolve/resolve-from-promise-capability.js b/test/built-ins/Promise/resolve/resolve-from-promise-capability.js
index 40d1e1ece..76d6483a5 100644
--- a/test/built-ins/Promise/resolve/resolve-from-promise-capability.js
+++ b/test/built-ins/Promise/resolve/resolve-from-promise-capability.js
@@ -16,7 +16,9 @@ info: |
...
---*/
-var expectedThisValue = (function() { return this; }());
+var expectedThisValue = (function() {
+ return this;
+}());
var callCount = 0;
var object = {};
var thisValue, args;
diff --git a/test/built-ins/Promise/resolve/resolve-non-obj.js b/test/built-ins/Promise/resolve/resolve-non-obj.js
index c010cbf3e..ba8adcd9a 100644
--- a/test/built-ins/Promise/resolve/resolve-non-obj.js
+++ b/test/built-ins/Promise/resolve/resolve-non-obj.js
@@ -17,12 +17,12 @@ flags: [async]
---*/
Promise.resolve(23).then(function(value) {
- if (value !== 23) {
- $DONE('The promise should be fulfilled with the provided value.');
- return;
- }
+ if (value !== 23) {
+ $DONE('The promise should be fulfilled with the provided value.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
diff --git a/test/built-ins/Promise/resolve/resolve-non-thenable.js b/test/built-ins/Promise/resolve/resolve-non-thenable.js
index 4b764c799..032ad20f7 100644
--- a/test/built-ins/Promise/resolve/resolve-non-thenable.js
+++ b/test/built-ins/Promise/resolve/resolve-non-thenable.js
@@ -23,12 +23,12 @@ flags: [async]
var value = {};
Promise.resolve(value).then(function(value) {
- if (value !== value) {
- $DONE('The promise should be fulfilled with the provided value.');
- return;
- }
+ if (value !== value) {
+ $DONE('The promise should be fulfilled with the provided value.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
diff --git a/test/built-ins/Promise/resolve/resolve-poisoned-then.js b/test/built-ins/Promise/resolve/resolve-poisoned-then.js
index 0da129a2d..98d7f3d99 100644
--- a/test/built-ins/Promise/resolve/resolve-poisoned-then.js
+++ b/test/built-ins/Promise/resolve/resolve-poisoned-then.js
@@ -26,12 +26,12 @@ var poisonedThen = Object.defineProperty({}, 'then', {
});
Promise.resolve(poisonedThen).then(function() {
- $DONE('The promise should not be fulfilled.');
- }, function(val) {
- if (val !== value) {
- $DONE('The promise should be rejected with the provided value.');
- return;
- }
+ $DONE('The promise should not be fulfilled.');
+}, function(val) {
+ if (val !== value) {
+ $DONE('The promise should be rejected with the provided value.');
+ return;
+ }
- $DONE();
- });
+ $DONE();
+});
diff --git a/test/built-ins/Promise/resolve/resolve-prms-cstm-then.js b/test/built-ins/Promise/resolve/resolve-prms-cstm-then.js
index fd345394c..2b7bccc95 100644
--- a/test/built-ins/Promise/resolve/resolve-prms-cstm-then.js
+++ b/test/built-ins/Promise/resolve/resolve-prms-cstm-then.js
@@ -23,7 +23,9 @@ info: |
var value = {};
var rejectCallCount = 0;
-var thenable = new Promise(function(resolve) { resolve(); });
+var thenable = new Promise(function(resolve) {
+ resolve();
+});
var resolvedValue;
thenable.then = function(resolve) {
@@ -31,10 +33,10 @@ thenable.then = function(resolve) {
};
Promise.resolve(thenable).then(function(val) {
- resolvedValue = val;
- }, function() {
- rejectCallCount += 1;
- });
+ resolvedValue = val;
+}, function() {
+ rejectCallCount += 1;
+});
assert.sameValue(resolvedValue, value);
assert.sameValue(rejectCallCount, 0);
diff --git a/test/built-ins/Promise/resolve/resolve-thenable.js b/test/built-ins/Promise/resolve/resolve-thenable.js
index 3781e7fed..2ea723f3b 100644
--- a/test/built-ins/Promise/resolve/resolve-thenable.js
+++ b/test/built-ins/Promise/resolve/resolve-thenable.js
@@ -30,12 +30,12 @@ var thenable = {
};
Promise.resolve(thenable).then(function(val) {
- if (val !== value) {
- $DONE('The promise should be fulfilled with the provided value.');
- return;
- }
+ if (val !== value) {
+ $DONE('The promise should be fulfilled with the provided value.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The promise should not be rejected.');
- });
+ $DONE();
+}, function() {
+ $DONE('The promise should not be rejected.');
+});
diff --git a/test/built-ins/Proxy/apply/call-parameters.js b/test/built-ins/Proxy/apply/call-parameters.js
index db07eb6e3..347e4bb4e 100644
--- a/test/built-ins/Proxy/apply/call-parameters.js
+++ b/test/built-ins/Proxy/apply/call-parameters.js
@@ -12,14 +12,16 @@ info: |
---*/
var _target, _args, _handler, _context;
-var target = function(a, b) { return a + b; };
+var target = function(a, b) {
+ return a + b;
+};
var handler = {
- apply: function(t, c, args) {
- _handler = this;
- _target = t;
- _context = c;
- _args = args;
- }
+ apply: function(t, c, args) {
+ _handler = this;
+ _target = t;
+ _context = c;
+ _args = args;
+ }
};
var p = new Proxy(target, handler);
diff --git a/test/built-ins/Proxy/apply/call-result.js b/test/built-ins/Proxy/apply/call-result.js
index 0348f4f01..1f3bf53d2 100644
--- a/test/built-ins/Proxy/apply/call-result.js
+++ b/test/built-ins/Proxy/apply/call-result.js
@@ -10,12 +10,14 @@ info: |
9. Return Call(trap, handler, «target, thisArgument, argArray»).
---*/
-var target = function(a, b) { return a + b; };
+var target = function(a, b) {
+ return a + b;
+};
var result = {};
var handler = {
- apply: function(t, c, args) {
- return result;
- }
+ apply: function(t, c, args) {
+ return result;
+ }
};
var p = new Proxy(target, handler);
diff --git a/test/built-ins/Proxy/apply/null-handler.js b/test/built-ins/Proxy/apply/null-handler.js
index 5906aef04..cdc7461d1 100644
--- a/test/built-ins/Proxy/apply/null-handler.js
+++ b/test/built-ins/Proxy/apply/null-handler.js
@@ -14,5 +14,5 @@ var p = Proxy.revocable(function() {}, {});
p.revoke();
assert.throws(TypeError, function() {
- p.proxy();
+ p.proxy();
});
diff --git a/test/built-ins/Proxy/apply/return-abrupt.js b/test/built-ins/Proxy/apply/return-abrupt.js
index 8542e64f6..db3f6bfa5 100644
--- a/test/built-ins/Proxy/apply/return-abrupt.js
+++ b/test/built-ins/Proxy/apply/return-abrupt.js
@@ -6,13 +6,15 @@ description: >
Return is an abrupt completion
---*/
-var target = function(a, b) { return a + b; };
+var target = function(a, b) {
+ return a + b;
+};
var p = new Proxy(target, {
- apply: function(t, c, args) {
- throw new Test262Error();
- }
+ apply: function(t, c, args) {
+ throw new Test262Error();
+ }
});
assert.throws(Test262Error, function() {
- p.call();
+ p.call();
});
diff --git a/test/built-ins/Proxy/apply/trap-is-not-callable.js b/test/built-ins/Proxy/apply/trap-is-not-callable.js
index b033e8dd4..b6e74f1ef 100644
--- a/test/built-ins/Proxy/apply/trap-is-not-callable.js
+++ b/test/built-ins/Proxy/apply/trap-is-not-callable.js
@@ -7,9 +7,9 @@ description: >
---*/
var p = new Proxy(function() {}, {
- apply: {}
+ apply: {}
});
assert.throws(TypeError, function() {
- p();
+ p();
});
diff --git a/test/built-ins/Proxy/apply/trap-is-null.js b/test/built-ins/Proxy/apply/trap-is-null.js
index e19cf8445..8bb87786c 100644
--- a/test/built-ins/Proxy/apply/trap-is-null.js
+++ b/test/built-ins/Proxy/apply/trap-is-null.js
@@ -31,7 +31,9 @@ function target(a, b) {
}
var ctx = {};
-var p = new Proxy(target, {apply: null});
+var p = new Proxy(target, {
+ apply: null
+});
var res = p.call(ctx, 1, 2);
assert.sameValue(res, 3, "`apply` trap is `null`");
assert.sameValue(calls, 1, "target is called once");
diff --git a/test/built-ins/Proxy/apply/trap-is-undefined-no-property.js b/test/built-ins/Proxy/apply/trap-is-undefined-no-property.js
index 9cb26e365..898fad362 100644
--- a/test/built-ins/Proxy/apply/trap-is-undefined-no-property.js
+++ b/test/built-ins/Proxy/apply/trap-is-undefined-no-property.js
@@ -25,9 +25,9 @@ info: |
var calls = 0;
function target(a, b) {
- assert.sameValue(this, ctx);
- calls += 1;
- return a + b;
+ assert.sameValue(this, ctx);
+ calls += 1;
+ return a + b;
}
var ctx = {};
diff --git a/test/built-ins/Proxy/apply/trap-is-undefined.js b/test/built-ins/Proxy/apply/trap-is-undefined.js
index cc9c1ff41..a8df9f34b 100644
--- a/test/built-ins/Proxy/apply/trap-is-undefined.js
+++ b/test/built-ins/Proxy/apply/trap-is-undefined.js
@@ -31,7 +31,9 @@ function target(a, b) {
}
var ctx = {};
-var p = new Proxy(target, {apply: undefined});
+var p = new Proxy(target, {
+ apply: undefined
+});
var res = p.call(ctx, 1, 2);
assert.sameValue(res, 3, "`apply` trap is `null`");
assert.sameValue(calls, 1, "target is called once");
diff --git a/test/built-ins/Proxy/construct/call-parameters-new-target.js b/test/built-ins/Proxy/construct/call-parameters-new-target.js
index 714b1db4b..dab0f8512 100644
--- a/test/built-ins/Proxy/construct/call-parameters-new-target.js
+++ b/test/built-ins/Proxy/construct/call-parameters-new-target.js
@@ -15,22 +15,25 @@ features: [Reflect.construct]
---*/
function Target() {}
+
function NewTarget() {}
var handler = {
- construct: function(target, args, newTarget) {
- assert.sameValue(this, handler, "trap context is the handler object");
- assert.sameValue(target, Target, "first parameter is the target object");
- assert.sameValue(args.length, 2, "arguments list contains all construct arguments");
-
- var a = args[0];
- var b = args[1];
- assert.sameValue(a, 1, "arguments list has first construct argument");
- assert.sameValue(b, 2, "arguments list has second construct argument");
- assert.sameValue(newTarget, NewTarget, "newTarget is passed as the third parameter");
-
- return {sum: a + b};
- },
+ construct: function(target, args, newTarget) {
+ assert.sameValue(this, handler, "trap context is the handler object");
+ assert.sameValue(target, Target, "first parameter is the target object");
+ assert.sameValue(args.length, 2, "arguments list contains all construct arguments");
+
+ var a = args[0];
+ var b = args[1];
+ assert.sameValue(a, 1, "arguments list has first construct argument");
+ assert.sameValue(b, 2, "arguments list has second construct argument");
+ assert.sameValue(newTarget, NewTarget, "newTarget is passed as the third parameter");
+
+ return {
+ sum: a + b
+ };
+ },
};
var P = new Proxy(Target, handler);
diff --git a/test/built-ins/Proxy/construct/call-parameters.js b/test/built-ins/Proxy/construct/call-parameters.js
index f52f7b842..7d0e9cc1e 100644
--- a/test/built-ins/Proxy/construct/call-parameters.js
+++ b/test/built-ins/Proxy/construct/call-parameters.js
@@ -13,17 +13,18 @@ info: |
---*/
var _target, _handler, _args, _P;
+
function Target() {}
var handler = {
- construct: function(t, args, newTarget) {
- _handler = this;
- _target = t;
- _args = args;
- _P = newTarget;
+ construct: function(t, args, newTarget) {
+ _handler = this;
+ _target = t;
+ _args = args;
+ _P = newTarget;
- return new t(args[0], args[1]);
- }
+ return new t(args[0], args[1]);
+ }
};
var P = new Proxy(Target, handler);
diff --git a/test/built-ins/Proxy/construct/call-result.js b/test/built-ins/Proxy/construct/call-result.js
index f47ddb901..7740f1fe8 100644
--- a/test/built-ins/Proxy/construct/call-result.js
+++ b/test/built-ins/Proxy/construct/call-result.js
@@ -11,12 +11,14 @@ info: |
---*/
function Target(a, b) {
- this.sum = a + b;
+ this.sum = a + b;
};
var handler = {
- construct: function(t, c, args) {
- return { sum: 42 };
- }
+ construct: function(t, c, args) {
+ return {
+ sum: 42
+ };
+ }
};
var P = new Proxy(Target, handler);
diff --git a/test/built-ins/Proxy/construct/null-handler.js b/test/built-ins/Proxy/construct/null-handler.js
index 3c6032161..816d04d4f 100644
--- a/test/built-ins/Proxy/construct/null-handler.js
+++ b/test/built-ins/Proxy/construct/null-handler.js
@@ -14,5 +14,5 @@ var p = Proxy.revocable(function() {}, {});
p.revoke();
assert.throws(TypeError, function() {
- new p.proxy();
+ new p.proxy();
});
diff --git a/test/built-ins/Proxy/construct/return-is-abrupt.js b/test/built-ins/Proxy/construct/return-is-abrupt.js
index de42204fd..c0d41aa4e 100644
--- a/test/built-ins/Proxy/construct/return-is-abrupt.js
+++ b/test/built-ins/Proxy/construct/return-is-abrupt.js
@@ -13,11 +13,11 @@ info: |
function Target() {}
var P = new Proxy(Target, {
- construct: function() {
- throw new Test262Error();
- }
+ construct: function() {
+ throw new Test262Error();
+ }
});
assert.throws(Test262Error, function() {
- new P();
+ new P();
});
diff --git a/test/built-ins/Proxy/construct/return-not-object-throws-boolean.js b/test/built-ins/Proxy/construct/return-not-object-throws-boolean.js
index 0edd139a8..5c40d5c8c 100644
--- a/test/built-ins/Proxy/construct/return-not-object-throws-boolean.js
+++ b/test/built-ins/Proxy/construct/return-not-object-throws-boolean.js
@@ -11,14 +11,14 @@ info: |
---*/
function Target() {
- this.attr = "done";
+ this.attr = "done";
};
var P = new Proxy(Target, {
- construct: function() {
- return true;
- }
+ construct: function() {
+ return true;
+ }
});
assert.throws(TypeError, function() {
- new P();
+ new P();
});
diff --git a/test/built-ins/Proxy/construct/return-not-object-throws-number.js b/test/built-ins/Proxy/construct/return-not-object-throws-number.js
index a7e27c6a8..7e97a803b 100644
--- a/test/built-ins/Proxy/construct/return-not-object-throws-number.js
+++ b/test/built-ins/Proxy/construct/return-not-object-throws-number.js
@@ -11,14 +11,14 @@ info: |
---*/
function Target() {
- this.attr = "done";
+ this.attr = "done";
};
var P = new Proxy(Target, {
- construct: function() {
- return 0;
- }
+ construct: function() {
+ return 0;
+ }
});
assert.throws(TypeError, function() {
- new P();
+ new P();
});
diff --git a/test/built-ins/Proxy/construct/return-not-object-throws-string.js b/test/built-ins/Proxy/construct/return-not-object-throws-string.js
index 4de604814..ca2f5af05 100644
--- a/test/built-ins/Proxy/construct/return-not-object-throws-string.js
+++ b/test/built-ins/Proxy/construct/return-not-object-throws-string.js
@@ -11,14 +11,14 @@ info: |
---*/
function Target() {
- this.attr = "done";
+ this.attr = "done";
};
var P = new Proxy(Target, {
- construct: function() {
- return "";
- }
+ construct: function() {
+ return "";
+ }
});
assert.throws(TypeError, function() {
- new P();
+ new P();
});
diff --git a/test/built-ins/Proxy/construct/return-not-object-throws-symbol.js b/test/built-ins/Proxy/construct/return-not-object-throws-symbol.js
index ade72bfae..963812950 100644
--- a/test/built-ins/Proxy/construct/return-not-object-throws-symbol.js
+++ b/test/built-ins/Proxy/construct/return-not-object-throws-symbol.js
@@ -12,14 +12,14 @@ features: [Symbol]
---*/
function Target() {
- this.attr = "done";
+ this.attr = "done";
};
var P = new Proxy(Target, {
- construct: function() {
- return Symbol();
- }
+ construct: function() {
+ return Symbol();
+ }
});
assert.throws(TypeError, function() {
- new P();
+ new P();
});
diff --git a/test/built-ins/Proxy/construct/return-not-object-throws-undefined.js b/test/built-ins/Proxy/construct/return-not-object-throws-undefined.js
index 9547263b9..347dd3dd9 100644
--- a/test/built-ins/Proxy/construct/return-not-object-throws-undefined.js
+++ b/test/built-ins/Proxy/construct/return-not-object-throws-undefined.js
@@ -11,14 +11,14 @@ info: |
---*/
function Target() {
- this.attr = "done";
+ this.attr = "done";
};
var P = new Proxy(Target, {
- construct: function() {
- return undefined;
- }
+ construct: function() {
+ return undefined;
+ }
});
assert.throws(TypeError, function() {
- new P();
+ new P();
});
diff --git a/test/built-ins/Proxy/construct/trap-is-not-callable.js b/test/built-ins/Proxy/construct/trap-is-not-callable.js
index f0c66394a..41bc0c700 100644
--- a/test/built-ins/Proxy/construct/trap-is-not-callable.js
+++ b/test/built-ins/Proxy/construct/trap-is-not-callable.js
@@ -8,9 +8,9 @@ description: >
function Target() {}
var p = new Proxy(Target, {
- construct: {}
+ construct: {}
});
assert.throws(TypeError, function() {
- new p();
+ new p();
});
diff --git a/test/built-ins/Proxy/construct/trap-is-null.js b/test/built-ins/Proxy/construct/trap-is-null.js
index 0a895bc57..9bc1ab29f 100644
--- a/test/built-ins/Proxy/construct/trap-is-null.js
+++ b/test/built-ins/Proxy/construct/trap-is-null.js
@@ -27,13 +27,18 @@ features: [Reflect.construct]
var calls = 0;
function NewTarget() {}
+
function Target(a, b) {
- assert.sameValue(new.target, NewTarget);
- calls += 1;
- return {sum: a + b};
+ assert.sameValue(new.target, NewTarget);
+ calls += 1;
+ return {
+ sum: a + b
+ };
}
-var P = new Proxy(Target, {construct: null});
+var P = new Proxy(Target, {
+ construct: null
+});
var obj = Reflect.construct(P, [3, 4], NewTarget);
assert.sameValue(obj.sum, 7, "`construct` trap is `null`");
assert.sameValue(calls, 1, "target is called once");
diff --git a/test/built-ins/Proxy/construct/trap-is-undefined-no-property.js b/test/built-ins/Proxy/construct/trap-is-undefined-no-property.js
index a50384f59..4157f7b23 100644
--- a/test/built-ins/Proxy/construct/trap-is-undefined-no-property.js
+++ b/test/built-ins/Proxy/construct/trap-is-undefined-no-property.js
@@ -16,10 +16,13 @@ features: [Reflect.construct]
var calls = 0;
function NewTarget() {}
+
function Target(a, b) {
- assert.sameValue(new.target, NewTarget);
- calls += 1;
- return {sum: a + b};
+ assert.sameValue(new.target, NewTarget);
+ calls += 1;
+ return {
+ sum: a + b
+ };
}
var P = new Proxy(Target, {});
diff --git a/test/built-ins/Proxy/construct/trap-is-undefined.js b/test/built-ins/Proxy/construct/trap-is-undefined.js
index d1a6c7106..97580c6d6 100644
--- a/test/built-ins/Proxy/construct/trap-is-undefined.js
+++ b/test/built-ins/Proxy/construct/trap-is-undefined.js
@@ -27,13 +27,18 @@ features: [Reflect.construct]
var calls = 0;
function NewTarget() {}
+
function Target(a, b) {
- assert.sameValue(new.target, NewTarget);
- calls += 1;
- return {sum: a + b};
+ assert.sameValue(new.target, NewTarget);
+ calls += 1;
+ return {
+ sum: a + b
+ };
}
-var P = new Proxy(Target, {construct: undefined});
+var P = new Proxy(Target, {
+ construct: undefined
+});
var obj = Reflect.construct(P, [3, 4], NewTarget);
assert.sameValue(obj.sum, 7, "`construct` trap is `undefined`");
assert.sameValue(calls, 1, "target is called once");
diff --git a/test/built-ins/Proxy/create-handler-is-revoked-proxy.js b/test/built-ins/Proxy/create-handler-is-revoked-proxy.js
index 5126e4cb0..151ad36f4 100644
--- a/test/built-ins/Proxy/create-handler-is-revoked-proxy.js
+++ b/test/built-ins/Proxy/create-handler-is-revoked-proxy.js
@@ -16,5 +16,5 @@ var revocable = Proxy.revocable({}, {});
revocable.revoke();
assert.throws(TypeError, function() {
- new Proxy({}, revocable.proxy);
+ new Proxy({}, revocable.proxy);
});
diff --git a/test/built-ins/Proxy/create-handler-not-object-throw-boolean.js b/test/built-ins/Proxy/create-handler-not-object-throw-boolean.js
index 891c1826b..e1846af10 100644
--- a/test/built-ins/Proxy/create-handler-not-object-throw-boolean.js
+++ b/test/built-ins/Proxy/create-handler-not-object-throw-boolean.js
@@ -10,5 +10,5 @@ description: >
---*/
assert.throws(TypeError, function() {
- new Proxy({}, false);
+ new Proxy({}, false);
});
diff --git a/test/built-ins/Proxy/create-handler-not-object-throw-null.js b/test/built-ins/Proxy/create-handler-not-object-throw-null.js
index 7abcc0b2d..c22244d25 100644
--- a/test/built-ins/Proxy/create-handler-not-object-throw-null.js
+++ b/test/built-ins/Proxy/create-handler-not-object-throw-null.js
@@ -10,5 +10,5 @@ description: >
---*/
assert.throws(TypeError, function() {
- new Proxy({}, null);
+ new Proxy({}, null);
});
diff --git a/test/built-ins/Proxy/create-handler-not-object-throw-number.js b/test/built-ins/Proxy/create-handler-not-object-throw-number.js
index 7cb41f20b..262a99067 100644
--- a/test/built-ins/Proxy/create-handler-not-object-throw-number.js
+++ b/test/built-ins/Proxy/create-handler-not-object-throw-number.js
@@ -10,5 +10,5 @@ description: >
---*/
assert.throws(TypeError, function() {
- new Proxy({}, 0);
+ new Proxy({}, 0);
});
diff --git a/test/built-ins/Proxy/create-handler-not-object-throw-string.js b/test/built-ins/Proxy/create-handler-not-object-throw-string.js
index 25f1982ec..3882b313e 100644
--- a/test/built-ins/Proxy/create-handler-not-object-throw-string.js
+++ b/test/built-ins/Proxy/create-handler-not-object-throw-string.js
@@ -10,5 +10,5 @@ description: >
---*/
assert.throws(TypeError, function() {
- new Proxy({}, "");
+ new Proxy({}, "");
});
diff --git a/test/built-ins/Proxy/create-handler-not-object-throw-symbol.js b/test/built-ins/Proxy/create-handler-not-object-throw-symbol.js
index 380133423..78234d8e2 100644
--- a/test/built-ins/Proxy/create-handler-not-object-throw-symbol.js
+++ b/test/built-ins/Proxy/create-handler-not-object-throw-symbol.js
@@ -11,5 +11,5 @@ features: [Symbol]
---*/
assert.throws(TypeError, function() {
- new Proxy({}, Symbol());
+ new Proxy({}, Symbol());
});
diff --git a/test/built-ins/Proxy/create-handler-not-object-throw-undefined.js b/test/built-ins/Proxy/create-handler-not-object-throw-undefined.js
index 8dd8f172b..78a78ba64 100644
--- a/test/built-ins/Proxy/create-handler-not-object-throw-undefined.js
+++ b/test/built-ins/Proxy/create-handler-not-object-throw-undefined.js
@@ -10,5 +10,5 @@ description: >
---*/
assert.throws(TypeError, function() {
- new Proxy({}, undefined);
+ new Proxy({}, undefined);
});
diff --git a/test/built-ins/Proxy/create-target-is-not-callable.js b/test/built-ins/Proxy/create-target-is-not-callable.js
index 7bb2dae6c..b29ed9cd0 100644
--- a/test/built-ins/Proxy/create-target-is-not-callable.js
+++ b/test/built-ins/Proxy/create-target-is-not-callable.js
@@ -21,5 +21,5 @@ info: |
var p = new Proxy({}, {});
assert.throws(TypeError, function() {
- p.call();
+ p.call();
});
diff --git a/test/built-ins/Proxy/create-target-is-not-constructor.js b/test/built-ins/Proxy/create-target-is-not-constructor.js
index 7bce1979c..f369b5ef2 100644
--- a/test/built-ins/Proxy/create-target-is-not-constructor.js
+++ b/test/built-ins/Proxy/create-target-is-not-constructor.js
@@ -24,5 +24,5 @@ var p = new Proxy(eval, {});
p(); // the Proxy object is callable
assert.throws(TypeError, function() {
- new p();
+ new p();
});
diff --git a/test/built-ins/Proxy/create-target-is-revoked-proxy.js b/test/built-ins/Proxy/create-target-is-revoked-proxy.js
index f68607b36..fb8b118de 100644
--- a/test/built-ins/Proxy/create-target-is-revoked-proxy.js
+++ b/test/built-ins/Proxy/create-target-is-revoked-proxy.js
@@ -16,5 +16,5 @@ var revocable = Proxy.revocable({}, {});
revocable.revoke();
assert.throws(TypeError, function() {
- new Proxy(revocable.proxy, {});
+ new Proxy(revocable.proxy, {});
});
diff --git a/test/built-ins/Proxy/create-target-not-object-throw-boolean.js b/test/built-ins/Proxy/create-target-not-object-throw-boolean.js
index d43e653e9..d8b9f1856 100644
--- a/test/built-ins/Proxy/create-target-not-object-throw-boolean.js
+++ b/test/built-ins/Proxy/create-target-not-object-throw-boolean.js
@@ -10,5 +10,5 @@ description: >
---*/
assert.throws(TypeError, function() {
- new Proxy(false, {});
+ new Proxy(false, {});
});
diff --git a/test/built-ins/Proxy/create-target-not-object-throw-null.js b/test/built-ins/Proxy/create-target-not-object-throw-null.js
index 845cb6592..af64c1e46 100644
--- a/test/built-ins/Proxy/create-target-not-object-throw-null.js
+++ b/test/built-ins/Proxy/create-target-not-object-throw-null.js
@@ -10,5 +10,5 @@ description: >
---*/
assert.throws(TypeError, function() {
- new Proxy(null, {});
+ new Proxy(null, {});
});
diff --git a/test/built-ins/Proxy/create-target-not-object-throw-number.js b/test/built-ins/Proxy/create-target-not-object-throw-number.js
index 2dae22e79..ba7889344 100644
--- a/test/built-ins/Proxy/create-target-not-object-throw-number.js
+++ b/test/built-ins/Proxy/create-target-not-object-throw-number.js
@@ -10,5 +10,5 @@ description: >
---*/
assert.throws(TypeError, function() {
- new Proxy(0, {});
+ new Proxy(0, {});
});
diff --git a/test/built-ins/Proxy/create-target-not-object-throw-string.js b/test/built-ins/Proxy/create-target-not-object-throw-string.js
index d442b2e15..aa1fcd96f 100644
--- a/test/built-ins/Proxy/create-target-not-object-throw-string.js
+++ b/test/built-ins/Proxy/create-target-not-object-throw-string.js
@@ -10,5 +10,5 @@ description: >
---*/
assert.throws(TypeError, function() {
- new Proxy("", {});
+ new Proxy("", {});
});
diff --git a/test/built-ins/Proxy/create-target-not-object-throw-symbol.js b/test/built-ins/Proxy/create-target-not-object-throw-symbol.js
index a3569f23d..825e7145a 100644
--- a/test/built-ins/Proxy/create-target-not-object-throw-symbol.js
+++ b/test/built-ins/Proxy/create-target-not-object-throw-symbol.js
@@ -11,5 +11,5 @@ features: [Symbol]
---*/
assert.throws(TypeError, function() {
- new Proxy(Symbol(), {});
+ new Proxy(Symbol(), {});
});
diff --git a/test/built-ins/Proxy/create-target-not-object-throw-undefined.js b/test/built-ins/Proxy/create-target-not-object-throw-undefined.js
index 9cda79c82..42895cf62 100644
--- a/test/built-ins/Proxy/create-target-not-object-throw-undefined.js
+++ b/test/built-ins/Proxy/create-target-not-object-throw-undefined.js
@@ -10,5 +10,5 @@ description: >
---*/
assert.throws(TypeError, function() {
- new Proxy(undefined, {});
+ new Proxy(undefined, {});
});
diff --git a/test/built-ins/Proxy/defineProperty/call-parameters.js b/test/built-ins/Proxy/defineProperty/call-parameters.js
index ade8bb971..6afb6f5ba 100644
--- a/test/built-ins/Proxy/defineProperty/call-parameters.js
+++ b/test/built-ins/Proxy/defineProperty/call-parameters.js
@@ -18,20 +18,20 @@ info: |
var _handler, _target, _prop, _desc;
var target = {};
var descriptor = {
- configurable: true,
- enumerable: true,
- writable: true,
- value: 1
+ configurable: true,
+ enumerable: true,
+ writable: true,
+ value: 1
};
var handler = {
- defineProperty: function(t, prop, desc) {
- _handler = this;
- _target = t;
- _prop = prop;
- _desc = desc;
+ defineProperty: function(t, prop, desc) {
+ _handler = this;
+ _target = t;
+ _prop = prop;
+ _desc = desc;
- return true;
- }
+ return true;
+ }
};
var p = new Proxy(target, handler);
@@ -42,8 +42,8 @@ assert.sameValue(_target, target);
assert.sameValue(_prop, "attr");
assert.sameValue(
- Object.keys(_desc).length, 4,
- "descriptor arg has the same amount of keys as given descriptor"
+ Object.keys(_desc).length, 4,
+ "descriptor arg has the same amount of keys as given descriptor"
);
assert(_desc.configurable);
diff --git a/test/built-ins/Proxy/defineProperty/null-handler.js b/test/built-ins/Proxy/defineProperty/null-handler.js
index ffbf14733..aa83c1ff0 100644
--- a/test/built-ins/Proxy/defineProperty/null-handler.js
+++ b/test/built-ins/Proxy/defineProperty/null-handler.js
@@ -11,8 +11,8 @@ var p = Proxy.revocable({}, {});
p.revoke();
assert.throws(TypeError, function() {
- Object.defineProperty(p.proxy, "foo", {
- configurable: true,
- enumerable: true
- });
+ Object.defineProperty(p.proxy, "foo", {
+ configurable: true,
+ enumerable: true
+ });
});
diff --git a/test/built-ins/Proxy/defineProperty/return-boolean-and-define-target.js b/test/built-ins/Proxy/defineProperty/return-boolean-and-define-target.js
index 2e4699cbf..0f7594a14 100644
--- a/test/built-ins/Proxy/defineProperty/return-boolean-and-define-target.js
+++ b/test/built-ins/Proxy/defineProperty/return-boolean-and-define-target.js
@@ -12,16 +12,16 @@ includes: [propertyHelper.js]
var target = {};
var p = new Proxy(target, {
- defineProperty: function(t, prop, desc) {
- return Object.defineProperty(t, prop, desc);
- }
+ defineProperty: function(t, prop, desc) {
+ return Object.defineProperty(t, prop, desc);
+ }
});
var result = Reflect.defineProperty(p, "attr", {
- configurable: true,
- enumerable: true,
- writable: true,
- value: 1
+ configurable: true,
+ enumerable: true,
+ writable: true,
+ value: 1
});
assert.sameValue(result, true, "result === true");
@@ -32,10 +32,10 @@ verifyEnumerable(target, "attr");
verifyConfigurable(target, "attr");
result = Reflect.defineProperty(p, "attr", {
- configurable: false,
- enumerable: false,
- writable: false,
- value: 2
+ configurable: false,
+ enumerable: false,
+ writable: false,
+ value: 2
});
assert.sameValue(result, true, "result === true");
diff --git a/test/built-ins/Proxy/defineProperty/return-is-abrupt.js b/test/built-ins/Proxy/defineProperty/return-is-abrupt.js
index 574c72816..5914eacf6 100644
--- a/test/built-ins/Proxy/defineProperty/return-is-abrupt.js
+++ b/test/built-ins/Proxy/defineProperty/return-is-abrupt.js
@@ -15,11 +15,11 @@ info: |
---*/
var p = new Proxy({}, {
- defineProperty: function(t, prop, desc) {
- throw new Test262Error();
- }
+ defineProperty: function(t, prop, desc) {
+ throw new Test262Error();
+ }
});
assert.throws(Test262Error, function() {
- Object.defineProperty(p, "foo", {});
+ Object.defineProperty(p, "foo", {});
});
diff --git a/test/built-ins/Proxy/defineProperty/targetdesc-configurable-desc-not-configurable.js b/test/built-ins/Proxy/defineProperty/targetdesc-configurable-desc-not-configurable.js
index 620ffbd89..25bf88171 100644
--- a/test/built-ins/Proxy/defineProperty/targetdesc-configurable-desc-not-configurable.js
+++ b/test/built-ins/Proxy/defineProperty/targetdesc-configurable-desc-not-configurable.js
@@ -17,19 +17,19 @@ info: |
var target = {};
var p = new Proxy(target, {
- defineProperty: function(t, prop, desc) {
- return true;
- }
+ defineProperty: function(t, prop, desc) {
+ return true;
+ }
});
Object.defineProperty(target, "foo", {
- value: 1,
- configurable: true
+ value: 1,
+ configurable: true
});
assert.throws(TypeError, function() {
- Object.defineProperty(p, "foo", {
- value: 1,
- configurable: false
- });
+ Object.defineProperty(p, "foo", {
+ value: 1,
+ configurable: false
+ });
});
diff --git a/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-not-configurable-target.js b/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-not-configurable-target.js
index 229b373e2..14ce2cc24 100644
--- a/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-not-configurable-target.js
+++ b/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-not-configurable-target.js
@@ -17,19 +17,19 @@ info: |
var target = {};
var p = new Proxy(target, {
- defineProperty: function(t, prop, desc) {
- return true;
- }
+ defineProperty: function(t, prop, desc) {
+ return true;
+ }
});
Object.defineProperty(target, "foo", {
- value: 1,
- configurable: false
+ value: 1,
+ configurable: false
});
assert.throws(TypeError, function() {
- Object.defineProperty(p, "foo", {
- value: 1,
- configurable: true
- });
+ Object.defineProperty(p, "foo", {
+ value: 1,
+ configurable: true
+ });
});
diff --git a/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor.js b/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor.js
index 595766db9..1a671b3a0 100644
--- a/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor.js
+++ b/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor.js
@@ -17,17 +17,17 @@ info: |
var target = {};
var p = new Proxy(target, {
- defineProperty: function(t, prop, desc) {
- return true;
- }
+ defineProperty: function(t, prop, desc) {
+ return true;
+ }
});
Object.defineProperty(target, "foo", {
- value: 1
+ value: 1
});
assert.throws(TypeError, function() {
- Object.defineProperty(p, "foo", {
- value: 2
- });
+ Object.defineProperty(p, "foo", {
+ value: 2
+ });
});
diff --git a/test/built-ins/Proxy/defineProperty/targetdesc-undefined-not-configurable-descriptor.js b/test/built-ins/Proxy/defineProperty/targetdesc-undefined-not-configurable-descriptor.js
index 730e25e6f..ca6f80c86 100644
--- a/test/built-ins/Proxy/defineProperty/targetdesc-undefined-not-configurable-descriptor.js
+++ b/test/built-ins/Proxy/defineProperty/targetdesc-undefined-not-configurable-descriptor.js
@@ -17,13 +17,13 @@ info: |
var target = {};
var p = new Proxy(target, {
- defineProperty: function(t, prop, desc) {
- return true;
- }
+ defineProperty: function(t, prop, desc) {
+ return true;
+ }
});
assert.throws(TypeError, function() {
- Object.defineProperty(p, "foo", {
- configurable: false
- });
+ Object.defineProperty(p, "foo", {
+ configurable: false
+ });
});
diff --git a/test/built-ins/Proxy/defineProperty/targetdesc-undefined-target-is-not-extensible.js b/test/built-ins/Proxy/defineProperty/targetdesc-undefined-target-is-not-extensible.js
index 8596b704d..9f5a53c7d 100644
--- a/test/built-ins/Proxy/defineProperty/targetdesc-undefined-target-is-not-extensible.js
+++ b/test/built-ins/Proxy/defineProperty/targetdesc-undefined-target-is-not-extensible.js
@@ -16,13 +16,13 @@ info: |
var target = {};
var p = new Proxy(target, {
- defineProperty: function(t, prop, desc) {
- return true;
- }
+ defineProperty: function(t, prop, desc) {
+ return true;
+ }
});
Object.preventExtensions(target);
assert.throws(TypeError, function() {
- Object.defineProperty(p, "foo", {});
+ Object.defineProperty(p, "foo", {});
});
diff --git a/test/built-ins/Proxy/defineProperty/trap-is-not-callable.js b/test/built-ins/Proxy/defineProperty/trap-is-not-callable.js
index a0e9500ed..d75b21567 100644
--- a/test/built-ins/Proxy/defineProperty/trap-is-not-callable.js
+++ b/test/built-ins/Proxy/defineProperty/trap-is-not-callable.js
@@ -19,11 +19,11 @@ info: |
var target = {};
var p = new Proxy(target, {
- defineProperty: {}
+ defineProperty: {}
});
assert.throws(TypeError, function() {
- Object.defineProperty(p, "foo", {
- value: 1
- });
+ Object.defineProperty(p, "foo", {
+ value: 1
+ });
});
diff --git a/test/built-ins/Proxy/defineProperty/trap-is-undefined.js b/test/built-ins/Proxy/defineProperty/trap-is-undefined.js
index 58b63dbbb..3fe044b29 100644
--- a/test/built-ins/Proxy/defineProperty/trap-is-undefined.js
+++ b/test/built-ins/Proxy/defineProperty/trap-is-undefined.js
@@ -18,10 +18,10 @@ var target = {};
var p = new Proxy(target, {});
Object.defineProperty(p, "attr", {
- configurable: true,
- enumerable: true,
- writable: true,
- value: 1
+ configurable: true,
+ enumerable: true,
+ writable: true,
+ value: 1
});
verifyEqualTo(target, "attr", 1);
@@ -30,10 +30,10 @@ verifyEnumerable(target, "attr");
verifyConfigurable(target, "attr");
Object.defineProperty(p, "attr", {
- configurable: false,
- enumerable: false,
- writable: false,
- value: 2
+ configurable: false,
+ enumerable: false,
+ writable: false,
+ value: 2
});
verifyEqualTo(target, "attr", 2);
diff --git a/test/built-ins/Proxy/defineProperty/trap-return-is-false.js b/test/built-ins/Proxy/defineProperty/trap-return-is-false.js
index 969c52aae..a401653c5 100644
--- a/test/built-ins/Proxy/defineProperty/trap-return-is-false.js
+++ b/test/built-ins/Proxy/defineProperty/trap-return-is-false.js
@@ -15,13 +15,13 @@ features: [Reflect]
var target = {};
var p = new Proxy(target, {
- defineProperty: function(t, prop, desc) {
- return 0;
- }
+ defineProperty: function(t, prop, desc) {
+ return 0;
+ }
});
assert.sameValue(Reflect.defineProperty(p, "attr", {}), false);
assert.sameValue(
- Object.getOwnPropertyDescriptor(target, "attr"),
- undefined
+ Object.getOwnPropertyDescriptor(target, "attr"),
+ undefined
);
diff --git a/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-false.js b/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-false.js
index 148a7b81a..4419f0a19 100644
--- a/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-false.js
+++ b/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-false.js
@@ -11,20 +11,20 @@ features: [Reflect]
var target = {};
var p = new Proxy(target, {
- deleteProperty: function() {
- return 0;
- }
+ deleteProperty: function() {
+ return 0;
+ }
});
Object.defineProperties(target, {
- isConfigurable: {
- value: 1,
- configurable: true
- },
- notConfigurable: {
- value: 1,
- configurable: false
- }
+ isConfigurable: {
+ value: 1,
+ configurable: true
+ },
+ notConfigurable: {
+ value: 1,
+ configurable: false
+ }
});
assert.sameValue(Reflect.deleteProperty(p, "attr"), false);
diff --git a/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-true.js b/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-true.js
index fe506f109..93345e580 100644
--- a/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-true.js
+++ b/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-true.js
@@ -9,9 +9,9 @@ description: >
---*/
var p = new Proxy({}, {
- deleteProperty: function() {
- return 1;
- }
+ deleteProperty: function() {
+ return 1;
+ }
});
assert.sameValue(Reflect.deleteProperty(p, "attr"), true);
diff --git a/test/built-ins/Proxy/deleteProperty/call-parameters.js b/test/built-ins/Proxy/deleteProperty/call-parameters.js
index e84586345..bfd8e3b08 100644
--- a/test/built-ins/Proxy/deleteProperty/call-parameters.js
+++ b/test/built-ins/Proxy/deleteProperty/call-parameters.js
@@ -14,15 +14,15 @@ info: |
var _handler, _target, _prop;
var target = {
- attr: 1
+ attr: 1
};
var handler = {
- deleteProperty: function(t, prop) {
- _handler = this;
- _target = t;
- _prop = prop;
- return delete t[prop];
- }
+ deleteProperty: function(t, prop) {
+ _handler = this;
+ _target = t;
+ _prop = prop;
+ return delete t[prop];
+ }
};
var p = new Proxy(target, handler);
diff --git a/test/built-ins/Proxy/deleteProperty/null-handler.js b/test/built-ins/Proxy/deleteProperty/null-handler.js
index 1b280f79e..ddc6c8d8a 100644
--- a/test/built-ins/Proxy/deleteProperty/null-handler.js
+++ b/test/built-ins/Proxy/deleteProperty/null-handler.js
@@ -9,11 +9,11 @@ description: >
---*/
var p = Proxy.revocable({
- attr: 1
+ attr: 1
}, {});
p.revoke();
assert.throws(TypeError, function() {
- delete p.proxy.attr;
+ delete p.proxy.attr;
});
diff --git a/test/built-ins/Proxy/deleteProperty/return-false-not-strict.js b/test/built-ins/Proxy/deleteProperty/return-false-not-strict.js
index c0785c90b..6c485ec64 100644
--- a/test/built-ins/Proxy/deleteProperty/return-false-not-strict.js
+++ b/test/built-ins/Proxy/deleteProperty/return-false-not-strict.js
@@ -10,9 +10,9 @@ flags: [noStrict]
---*/
var p = new Proxy({}, {
- deleteProperty: function() {
- return false;
- }
+ deleteProperty: function() {
+ return false;
+ }
});
assert.sameValue(delete p.attr, false);
diff --git a/test/built-ins/Proxy/deleteProperty/return-false-strict.js b/test/built-ins/Proxy/deleteProperty/return-false-strict.js
index 94d33a91e..befa2c60a 100644
--- a/test/built-ins/Proxy/deleteProperty/return-false-strict.js
+++ b/test/built-ins/Proxy/deleteProperty/return-false-strict.js
@@ -11,9 +11,9 @@ features: [Reflect]
---*/
var p = new Proxy({}, {
- deleteProperty: function() {
- return false;
- }
+ deleteProperty: function() {
+ return false;
+ }
});
assert.sameValue(Reflect.deleteProperty(p, "attr"), false);
diff --git a/test/built-ins/Proxy/deleteProperty/return-is-abrupt.js b/test/built-ins/Proxy/deleteProperty/return-is-abrupt.js
index c22fd398f..7e9f76bf4 100644
--- a/test/built-ins/Proxy/deleteProperty/return-is-abrupt.js
+++ b/test/built-ins/Proxy/deleteProperty/return-is-abrupt.js
@@ -10,11 +10,11 @@ info: |
---*/
var p = new Proxy({}, {
- deleteProperty: function(t, prop) {
- throw new Test262Error();
- }
+ deleteProperty: function(t, prop) {
+ throw new Test262Error();
+ }
});
assert.throws(Test262Error, function() {
- delete p.attr;
+ delete p.attr;
});
diff --git a/test/built-ins/Proxy/deleteProperty/targetdesc-is-not-configurable.js b/test/built-ins/Proxy/deleteProperty/targetdesc-is-not-configurable.js
index d0299d5d9..7923974dc 100644
--- a/test/built-ins/Proxy/deleteProperty/targetdesc-is-not-configurable.js
+++ b/test/built-ins/Proxy/deleteProperty/targetdesc-is-not-configurable.js
@@ -13,16 +13,16 @@ info: |
var target = {};
var p = new Proxy(target, {
- deleteProperty: function() {
- return true;
- }
+ deleteProperty: function() {
+ return true;
+ }
});
Object.defineProperty(target, "attr", {
- configurable: false,
- value: 1
+ configurable: false,
+ value: 1
});
assert.throws(TypeError, function() {
- delete p.attr;
+ delete p.attr;
});
diff --git a/test/built-ins/Proxy/deleteProperty/targetdesc-is-undefined-return-true.js b/test/built-ins/Proxy/deleteProperty/targetdesc-is-undefined-return-true.js
index fc70773fa..d3d2d7739 100644
--- a/test/built-ins/Proxy/deleteProperty/targetdesc-is-undefined-return-true.js
+++ b/test/built-ins/Proxy/deleteProperty/targetdesc-is-undefined-return-true.js
@@ -9,9 +9,9 @@ description: >
---*/
var p = new Proxy({}, {
- deleteProperty: function() {
- return true;
- }
+ deleteProperty: function() {
+ return true;
+ }
});
assert.sameValue(delete p.attr, true);
diff --git a/test/built-ins/Proxy/deleteProperty/trap-is-not-callable.js b/test/built-ins/Proxy/deleteProperty/trap-is-not-callable.js
index 60c76025d..29ee6d64c 100644
--- a/test/built-ins/Proxy/deleteProperty/trap-is-not-callable.js
+++ b/test/built-ins/Proxy/deleteProperty/trap-is-not-callable.js
@@ -16,9 +16,9 @@ info: |
---*/
var p = new Proxy({}, {
- deleteProperty: {}
+ deleteProperty: {}
});
assert.throws(TypeError, function() {
- delete p.attr;
+ delete p.attr;
});
diff --git a/test/built-ins/Proxy/deleteProperty/trap-is-undefined-not-strict.js b/test/built-ins/Proxy/deleteProperty/trap-is-undefined-not-strict.js
index 3adf23123..0f174367f 100644
--- a/test/built-ins/Proxy/deleteProperty/trap-is-undefined-not-strict.js
+++ b/test/built-ins/Proxy/deleteProperty/trap-is-undefined-not-strict.js
@@ -10,21 +10,21 @@ flags: [noStrict]
---*/
var target = {
- attr: 1
+ attr: 1
};
var p = new Proxy(target, {});
assert.sameValue(delete p.attr, true);
assert.sameValue(delete p.notThere, true);
assert.sameValue(
- Object.getOwnPropertyDescriptor(target, "attr"),
- undefined
+ Object.getOwnPropertyDescriptor(target, "attr"),
+ undefined
);
Object.defineProperty(target, "attr", {
- configurable: false,
- enumerable: true,
- value: 1
+ configurable: false,
+ enumerable: true,
+ value: 1
});
assert.sameValue(delete p.attr, false);
diff --git a/test/built-ins/Proxy/deleteProperty/trap-is-undefined-strict.js b/test/built-ins/Proxy/deleteProperty/trap-is-undefined-strict.js
index 070fba7f5..d1c1df2bf 100644
--- a/test/built-ins/Proxy/deleteProperty/trap-is-undefined-strict.js
+++ b/test/built-ins/Proxy/deleteProperty/trap-is-undefined-strict.js
@@ -11,21 +11,21 @@ features: [Reflect]
---*/
var target = {
- attr: 1
+ attr: 1
};
var p = new Proxy(target, {});
assert.sameValue(delete p.attr, true);
assert.sameValue(delete p.notThere, true);
assert.sameValue(
- Object.getOwnPropertyDescriptor(target, "attr"),
- undefined
+ Object.getOwnPropertyDescriptor(target, "attr"),
+ undefined
);
Object.defineProperty(target, "attr", {
- configurable: false,
- enumerable: true,
- value: 1
+ configurable: false,
+ enumerable: true,
+ value: 1
});
assert.sameValue(Reflect.deleteProperty(p, "attr"), false);
diff --git a/test/built-ins/Proxy/function-prototype.js b/test/built-ins/Proxy/function-prototype.js
index e501f9160..b37f51b56 100644
--- a/test/built-ins/Proxy/function-prototype.js
+++ b/test/built-ins/Proxy/function-prototype.js
@@ -8,7 +8,7 @@ description: >
---*/
assert.sameValue(
- Object.getPrototypeOf(Proxy),
- Function.prototype,
- "`Object.getPrototypeOf(Proxy)` returns `Function.prototype`"
+ Object.getPrototypeOf(Proxy),
+ Function.prototype,
+ "`Object.getPrototypeOf(Proxy)` returns `Function.prototype`"
);
diff --git a/test/built-ins/Proxy/get-fn-realm.js b/test/built-ins/Proxy/get-fn-realm.js
index 08968ff92..922a6ffd0 100644
--- a/test/built-ins/Proxy/get-fn-realm.js
+++ b/test/built-ins/Proxy/get-fn-realm.js
@@ -22,6 +22,8 @@ features: [cross-realm]
var other = $262.createRealm().global;
var C = new other.Function();
// Ensure that the proxy does not report a `prototype` property
-var P = new Proxy(C, { get: function() {} });
+var P = new Proxy(C, {
+ get: function() {}
+});
assert.sameValue(Object.getPrototypeOf(new P()), other.Object.prototype);
diff --git a/test/built-ins/Proxy/get/accessor-get-is-undefined-throws.js b/test/built-ins/Proxy/get/accessor-get-is-undefined-throws.js
index e8735486e..4427d5b80 100644
--- a/test/built-ins/Proxy/get/accessor-get-is-undefined-throws.js
+++ b/test/built-ins/Proxy/get/accessor-get-is-undefined-throws.js
@@ -17,20 +17,20 @@ info: |
var target = {};
var p = new Proxy(target, {
- get: function() {
- return 2;
- }
+ get: function() {
+ return 2;
+ }
});
Object.defineProperty(target, 'attr', {
- configurable: false,
- get: undefined
+ configurable: false,
+ get: undefined
});
assert.throws(TypeError, function() {
- p.attr;
+ p.attr;
});
assert.throws(TypeError, function() {
- p['attr'];
+ p['attr'];
});
diff --git a/test/built-ins/Proxy/get/call-parameters.js b/test/built-ins/Proxy/get/call-parameters.js
index 648ddc9ad..b4f0e11d3 100644
--- a/test/built-ins/Proxy/get/call-parameters.js
+++ b/test/built-ins/Proxy/get/call-parameters.js
@@ -14,15 +14,15 @@ info: |
var _target, _handler, _prop, _receiver;
var target = {
- attr: 1
+ attr: 1
};
var handler = {
- get: function(t, prop, receiver) {
- _handler = this;
- _target = t;
- _prop = prop;
- _receiver = receiver;
- }
+ get: function(t, prop, receiver) {
+ _handler = this;
+ _target = t;
+ _prop = prop;
+ _receiver = receiver;
+ }
};
var p = new Proxy(target, handler);
@@ -36,6 +36,6 @@ assert.sameValue(_receiver, p, "receiver is the Proxy object");
_prop = null;
p["attr"];
assert.sameValue(
- _prop, "attr",
- "trap is triggered both by p.attr and p['attr']"
+ _prop, "attr",
+ "trap is triggered both by p.attr and p['attr']"
);
diff --git a/test/built-ins/Proxy/get/not-same-value-configurable-false-writable-false-throws.js b/test/built-ins/Proxy/get/not-same-value-configurable-false-writable-false-throws.js
index af8cb6739..ce6f0a1fc 100644
--- a/test/built-ins/Proxy/get/not-same-value-configurable-false-writable-false-throws.js
+++ b/test/built-ins/Proxy/get/not-same-value-configurable-false-writable-false-throws.js
@@ -17,21 +17,21 @@ info: |
var target = {};
var p = new Proxy(target, {
- get: function() {
- return 2;
- }
+ get: function() {
+ return 2;
+ }
});
Object.defineProperty(target, 'attr', {
- configurable: false,
- writable: false,
- value: 1
+ configurable: false,
+ writable: false,
+ value: 1
});
assert.throws(TypeError, function() {
- p.attr;
+ p.attr;
});
assert.throws(TypeError, function() {
- p['attr'];
+ p['attr'];
});
diff --git a/test/built-ins/Proxy/get/null-handler.js b/test/built-ins/Proxy/get/null-handler.js
index 82dc3a187..0be40457c 100644
--- a/test/built-ins/Proxy/get/null-handler.js
+++ b/test/built-ins/Proxy/get/null-handler.js
@@ -13,9 +13,9 @@ var p = Proxy.revocable({}, {});
p.revoke();
assert.throws(TypeError, function() {
- p.proxy.attr;
+ p.proxy.attr;
});
assert.throws(TypeError, function() {
- p.proxy['attr'];
+ p.proxy['attr'];
});
diff --git a/test/built-ins/Proxy/get/return-is-abrupt.js b/test/built-ins/Proxy/get/return-is-abrupt.js
index f0a8e7e42..c632d8e5f 100644
--- a/test/built-ins/Proxy/get/return-is-abrupt.js
+++ b/test/built-ins/Proxy/get/return-is-abrupt.js
@@ -12,15 +12,15 @@ info: |
---*/
var p = new Proxy({}, {
- get: function() {
- throw new Test262Error();
- }
+ get: function() {
+ throw new Test262Error();
+ }
});
assert.throws(Test262Error, function() {
- p.attr;
+ p.attr;
});
assert.throws(Test262Error, function() {
- p["attr"];
+ p["attr"];
});
diff --git a/test/built-ins/Proxy/get/return-trap-result-accessor-property.js b/test/built-ins/Proxy/get/return-trap-result-accessor-property.js
index 560bd5650..e50ae367e 100644
--- a/test/built-ins/Proxy/get/return-trap-result-accessor-property.js
+++ b/test/built-ins/Proxy/get/return-trap-result-accessor-property.js
@@ -10,15 +10,15 @@ description: >
var target = {};
var p = new Proxy(target, {
- get: function() {
- return 2;
- }
+ get: function() {
+ return 2;
+ }
});
Object.defineProperty(target, 'attr', {
- get: function() {
- return 1;
- }
+ get: function() {
+ return 1;
+ }
});
assert.sameValue(p.attr, 2);
diff --git a/test/built-ins/Proxy/get/return-trap-result-configurable-false-writable-true.js b/test/built-ins/Proxy/get/return-trap-result-configurable-false-writable-true.js
index 46ddaeff0..feadb297d 100644
--- a/test/built-ins/Proxy/get/return-trap-result-configurable-false-writable-true.js
+++ b/test/built-ins/Proxy/get/return-trap-result-configurable-false-writable-true.js
@@ -10,15 +10,15 @@ description: >
var target = {};
var p = new Proxy(target, {
- get: function() {
- return 2;
- }
+ get: function() {
+ return 2;
+ }
});
Object.defineProperty(target, 'attr', {
- configurable: false,
- writable: true,
- value: 1
+ configurable: false,
+ writable: true,
+ value: 1
});
assert.sameValue(p.attr, 2);
diff --git a/test/built-ins/Proxy/get/return-trap-result-configurable-true-assessor-get-undefined.js b/test/built-ins/Proxy/get/return-trap-result-configurable-true-assessor-get-undefined.js
index 930265b6e..5afb94229 100644
--- a/test/built-ins/Proxy/get/return-trap-result-configurable-true-assessor-get-undefined.js
+++ b/test/built-ins/Proxy/get/return-trap-result-configurable-true-assessor-get-undefined.js
@@ -10,14 +10,14 @@ description: >
var target = {};
var p = new Proxy(target, {
- get: function() {
- return 2;
- }
+ get: function() {
+ return 2;
+ }
});
Object.defineProperty(target, 'attr', {
- configurable: true,
- get: undefined
+ configurable: true,
+ get: undefined
});
assert.sameValue(p.attr, 2);
diff --git a/test/built-ins/Proxy/get/return-trap-result-configurable-true-writable-false.js b/test/built-ins/Proxy/get/return-trap-result-configurable-true-writable-false.js
index 1ad1eca0a..31d494104 100644
--- a/test/built-ins/Proxy/get/return-trap-result-configurable-true-writable-false.js
+++ b/test/built-ins/Proxy/get/return-trap-result-configurable-true-writable-false.js
@@ -10,15 +10,15 @@ description: >
var target = {};
var p = new Proxy(target, {
- get: function() {
- return 2;
- }
+ get: function() {
+ return 2;
+ }
});
Object.defineProperty(target, 'attr', {
- configurable: true,
- writable: false,
- value: 1
+ configurable: true,
+ writable: false,
+ value: 1
});
assert.sameValue(p.attr, 2);
diff --git a/test/built-ins/Proxy/get/return-trap-result-same-value-configurable-false-writable-false.js b/test/built-ins/Proxy/get/return-trap-result-same-value-configurable-false-writable-false.js
index a95e79201..f26b48638 100644
--- a/test/built-ins/Proxy/get/return-trap-result-same-value-configurable-false-writable-false.js
+++ b/test/built-ins/Proxy/get/return-trap-result-same-value-configurable-false-writable-false.js
@@ -19,15 +19,15 @@ info: |
var target = {};
var p = new Proxy(target, {
- get: function() {
- return 1;
- }
+ get: function() {
+ return 1;
+ }
});
Object.defineProperty(target, 'attr', {
- configurable: false,
- writable: false,
- value: 1
+ configurable: false,
+ writable: false,
+ value: 1
});
assert.sameValue(p.attr, 1);
diff --git a/test/built-ins/Proxy/get/return-trap-result.js b/test/built-ins/Proxy/get/return-trap-result.js
index d045e1492..7e1b945f7 100644
--- a/test/built-ins/Proxy/get/return-trap-result.js
+++ b/test/built-ins/Proxy/get/return-trap-result.js
@@ -9,12 +9,12 @@ description: >
---*/
var target = {
- attr: 1
+ attr: 1
};
var p = new Proxy(target, {
- get: function() {
- return 2;
- }
+ get: function() {
+ return 2;
+ }
});
assert.sameValue(p.attr, 2);
diff --git a/test/built-ins/Proxy/get/trap-is-not-callable.js b/test/built-ins/Proxy/get/trap-is-not-callable.js
index addd53529..50b129401 100644
--- a/test/built-ins/Proxy/get/trap-is-not-callable.js
+++ b/test/built-ins/Proxy/get/trap-is-not-callable.js
@@ -16,13 +16,13 @@ info: |
---*/
var p = new Proxy({}, {
- get: {}
+ get: {}
});
assert.throws(TypeError, function() {
- p.attr;
+ p.attr;
});
assert.throws(TypeError, function() {
- p["attr"];
+ p["attr"];
});
diff --git a/test/built-ins/Proxy/get/trap-is-undefined-no-property.js b/test/built-ins/Proxy/get/trap-is-undefined-no-property.js
index c9d107f59..c25ea6ca2 100644
--- a/test/built-ins/Proxy/get/trap-is-undefined-no-property.js
+++ b/test/built-ins/Proxy/get/trap-is-undefined-no-property.js
@@ -9,7 +9,7 @@ description: >
---*/
var target = {
- attr: 1
+ attr: 1
};
var p = new Proxy(target, {});
diff --git a/test/built-ins/Proxy/get/trap-is-undefined-receiver.js b/test/built-ins/Proxy/get/trap-is-undefined-receiver.js
index f900e251f..3cf99140b 100644
--- a/test/built-ins/Proxy/get/trap-is-undefined-receiver.js
+++ b/test/built-ins/Proxy/get/trap-is-undefined-receiver.js
@@ -13,12 +13,14 @@ info: |
---*/
var target = {
- get attr() {
- return this;
- }
+ get attr() {
+ return this;
+ }
};
-var p = new Proxy(target, { get: null });
+var p = new Proxy(target, {
+ get: null
+});
assert.sameValue(p.attr, p);
var pParent = Object.create(new Proxy(target, {}));
diff --git a/test/built-ins/Proxy/get/trap-is-undefined.js b/test/built-ins/Proxy/get/trap-is-undefined.js
index 4c2257aa6..b06d57330 100644
--- a/test/built-ins/Proxy/get/trap-is-undefined.js
+++ b/test/built-ins/Proxy/get/trap-is-undefined.js
@@ -10,10 +10,10 @@ description: >
---*/
var target = {
- attr: 1
+ attr: 1
};
var p = new Proxy(target, {
- get: undefined
+ get: undefined
});
assert.sameValue(p.attr, 1, 'return target.attr');
diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/call-parameters.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/call-parameters.js
index d0d6222d7..dada9a171 100644
--- a/test/built-ins/Proxy/getOwnPropertyDescriptor/call-parameters.js
+++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/call-parameters.js
@@ -13,15 +13,17 @@ info: |
---*/
var _target, _handler, _prop;
-var target = {attr: 1};
+var target = {
+ attr: 1
+};
var handler = {
- getOwnPropertyDescriptor: function(t, prop) {
- _target = t;
- _handler = this;
- _prop = prop;
+ getOwnPropertyDescriptor: function(t, prop) {
+ _target = t;
+ _handler = this;
+ _prop = prop;
- return Object.getOwnPropertyDescriptor(t);
- }
+ return Object.getOwnPropertyDescriptor(t);
+ }
};
var p = new Proxy(target, handler);
diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/null-handler.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/null-handler.js
index a908e072b..61a59ce02 100644
--- a/test/built-ins/Proxy/getOwnPropertyDescriptor/null-handler.js
+++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/null-handler.js
@@ -11,5 +11,5 @@ var p = Proxy.revocable({}, {});
p.revoke();
assert.throws(TypeError, function() {
- Object.getOwnPropertyDescriptor(p.proxy);
+ Object.getOwnPropertyDescriptor(p.proxy);
});
diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-target-is-not-extensible.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-target-is-not-extensible.js
index 0e35b7780..a19bfedbc 100644
--- a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-target-is-not-extensible.js
+++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-target-is-not-extensible.js
@@ -16,17 +16,17 @@ info: |
---*/
var target = {
- foo: 1
+ foo: 1
};
var p = new Proxy(target, {
- getOwnPropertyDescriptor: function(t, prop) {
- return;
- }
+ getOwnPropertyDescriptor: function(t, prop) {
+ return;
+ }
});
Object.preventExtensions(target);
assert.throws(TypeError, function() {
- Object.getOwnPropertyDescriptor(p, "foo");
+ Object.getOwnPropertyDescriptor(p, "foo");
});
diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-targetdesc-is-not-configurable.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-targetdesc-is-not-configurable.js
index 1bc732006..6d62c28bf 100644
--- a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-targetdesc-is-not-configurable.js
+++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-targetdesc-is-not-configurable.js
@@ -17,17 +17,17 @@ info: |
var target = {};
Object.defineProperty(target, "foo", {
- configurable: false,
- enumerable: false,
- value: 1
+ configurable: false,
+ enumerable: false,
+ value: 1
});
var p = new Proxy(target, {
- getOwnPropertyDescriptor: function(t, prop) {
- return;
- }
+ getOwnPropertyDescriptor: function(t, prop) {
+ return;
+ }
});
assert.throws(TypeError, function() {
- Object.getOwnPropertyDescriptor(p, "foo");
+ Object.getOwnPropertyDescriptor(p, "foo");
});
diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-targetdesc-is-undefined.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-targetdesc-is-undefined.js
index 1d092e2c7..651005509 100644
--- a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-targetdesc-is-undefined.js
+++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-targetdesc-is-undefined.js
@@ -17,15 +17,15 @@ info: |
var t = {};
var trapped;
var p = new Proxy(t, {
- getOwnPropertyDescriptor: function(target, prop) {
- trapped = true;
- return;
- }
+ getOwnPropertyDescriptor: function(target, prop) {
+ trapped = true;
+ return;
+ }
});
assert.sameValue(
- Object.getOwnPropertyDescriptor(p, "attr"),
- undefined
+ Object.getOwnPropertyDescriptor(p, "attr"),
+ undefined
);
assert(trapped);
diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined.js
index fb8d21829..fb881aeba 100644
--- a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined.js
+++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined.js
@@ -16,13 +16,13 @@ info: |
---*/
var target = {
- attr: 1
+ attr: 1
};
var p = new Proxy(target, {
- getOwnPropertyDescriptor: function(t, prop) {
- return;
- }
+ getOwnPropertyDescriptor: function(t, prop) {
+ return;
+ }
});
assert.sameValue(Object.getOwnPropertyDescriptor(p, "attr"), undefined);
diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined-realm.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined-realm.js
index d27054cf4..4b54cba83 100644
--- a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined-realm.js
+++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined-realm.js
@@ -16,7 +16,9 @@ features: [cross-realm]
var OProxy = $262.createRealm().global.Proxy;
var p = new OProxy({}, {
- getOwnPropertyDescriptor: function() { return null; }
+ getOwnPropertyDescriptor: function() {
+ return null;
+ }
});
assert.throws(TypeError, function() {
diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined.js
index 23fcd2bad..1e706893c 100644
--- a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined.js
+++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined.js
@@ -15,34 +15,34 @@ features: [Symbol]
---*/
var target = {
- number: 1,
- symbol: Symbol(),
- string: '',
- boolean: true,
- fn: function() {}
+ number: 1,
+ symbol: Symbol(),
+ string: '',
+ boolean: true,
+ fn: function() {}
};
var p = new Proxy(target, {
- getOwnPropertyDescriptor: function(t, prop) {
- return t[prop];
- }
+ getOwnPropertyDescriptor: function(t, prop) {
+ return t[prop];
+ }
});
assert.throws(TypeError, function() {
- Object.getOwnPropertyDescriptor(p, "number");
+ Object.getOwnPropertyDescriptor(p, "number");
});
assert.throws(TypeError, function() {
- Object.getOwnPropertyDescriptor(p, "string");
+ Object.getOwnPropertyDescriptor(p, "string");
});
assert.throws(TypeError, function() {
- Object.getOwnPropertyDescriptor(p, "symbol");
+ Object.getOwnPropertyDescriptor(p, "symbol");
});
assert.throws(TypeError, function() {
- Object.getOwnPropertyDescriptor(p, "boolean");
+ Object.getOwnPropertyDescriptor(p, "boolean");
});
assert.throws(TypeError, function() {
- Object.getOwnPropertyDescriptor(p, "fn");
+ Object.getOwnPropertyDescriptor(p, "fn");
});
diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-invalid-descriptor.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-invalid-descriptor.js
index 28fd426c6..b256f6907 100644
--- a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-invalid-descriptor.js
+++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-invalid-descriptor.js
@@ -17,15 +17,17 @@ info: |
var target = {};
var p = new Proxy(target, {
- getOwnPropertyDescriptor: function(t, prop) {
- var foo = { bar: 1 };
+ getOwnPropertyDescriptor: function(t, prop) {
+ var foo = {
+ bar: 1
+ };
- return Object.getOwnPropertyDescriptor(foo, "bar");
- }
+ return Object.getOwnPropertyDescriptor(foo, "bar");
+ }
});
Object.preventExtensions(target);
assert.throws(TypeError, function() {
- Object.getOwnPropertyDescriptor(p, "bar");
+ Object.getOwnPropertyDescriptor(p, "bar");
});
diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-configurable.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-configurable.js
index 4184e28ea..bc99d971b 100644
--- a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-configurable.js
+++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-configurable.js
@@ -17,23 +17,23 @@ info: |
---*/
var target = {
- bar: 1
+ bar: 1
};
var p = new Proxy(target, {
- getOwnPropertyDescriptor: function(t, prop) {
- var foo = {};
+ getOwnPropertyDescriptor: function(t, prop) {
+ var foo = {};
- Object.defineProperty(foo, "bar", {
- configurable: false,
- enumerable: true,
- value: 1
- });
+ Object.defineProperty(foo, "bar", {
+ configurable: false,
+ enumerable: true,
+ value: 1
+ });
- return Object.getOwnPropertyDescriptor(foo, prop);
- }
+ return Object.getOwnPropertyDescriptor(foo, prop);
+ }
});
assert.throws(TypeError, function() {
- Object.getOwnPropertyDescriptor(p, "bar");
+ Object.getOwnPropertyDescriptor(p, "bar");
});
diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-undefined.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-undefined.js
index 338883edb..4dba72b98 100644
--- a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-undefined.js
+++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-undefined.js
@@ -29,19 +29,19 @@ info: |
var target = {};
var p = new Proxy(target, {
- getOwnPropertyDescriptor: function(t, prop) {
- var foo = {};
+ getOwnPropertyDescriptor: function(t, prop) {
+ var foo = {};
- Object.defineProperty(foo, "bar", {
- configurable: false,
- enumerable: true,
- value: 1
- });
+ Object.defineProperty(foo, "bar", {
+ configurable: false,
+ enumerable: true,
+ value: 1
+ });
- return Object.getOwnPropertyDescriptor(foo, prop);
- }
+ return Object.getOwnPropertyDescriptor(foo, prop);
+ }
});
assert.throws(TypeError, function() {
- Object.getOwnPropertyDescriptor(p, "bar");
+ Object.getOwnPropertyDescriptor(p, "bar");
});
diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-return-configurable.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-return-configurable.js
index 13f46ca31..ed8dd3bcf 100644
--- a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-return-configurable.js
+++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-return-configurable.js
@@ -9,17 +9,17 @@ description: >
var target = {};
var descriptor = {
- configurable: true,
- enumerable: true,
- value: 1
+ configurable: true,
+ enumerable: true,
+ value: 1
};
Object.defineProperty(target, "bar", descriptor);
var p = new Proxy(target, {
- getOwnPropertyDescriptor: function(t, prop) {
- return Object.getOwnPropertyDescriptor(t, prop);
- }
+ getOwnPropertyDescriptor: function(t, prop) {
+ return Object.getOwnPropertyDescriptor(t, prop);
+ }
});
var proxyDesc = Object.getOwnPropertyDescriptor(p, "bar");
diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-return-not-configurable.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-return-not-configurable.js
index cc25cc694..928039e34 100644
--- a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-return-not-configurable.js
+++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-return-not-configurable.js
@@ -10,15 +10,15 @@ description: >
var target = {};
Object.defineProperty(target, "attr", {
- configurable: false,
- enumerable: true,
- value: 1
+ configurable: false,
+ enumerable: true,
+ value: 1
});
var p = new Proxy(target, {
- getOwnPropertyDescriptor: function(t, prop) {
- return Object.getOwnPropertyDescriptor(t, prop);
- }
+ getOwnPropertyDescriptor: function(t, prop) {
+ return Object.getOwnPropertyDescriptor(t, prop);
+ }
});
var proxyDesc = Object.getOwnPropertyDescriptor(p, "attr");
diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/return-is-abrupt.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/return-is-abrupt.js
index 26d7c69b6..805f068e6 100644
--- a/test/built-ins/Proxy/getOwnPropertyDescriptor/return-is-abrupt.js
+++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/return-is-abrupt.js
@@ -14,11 +14,11 @@ info: |
---*/
var p = new Proxy({}, {
- getOwnPropertyDescriptor: function(t, prop) {
- throw new Test262Error();
- }
+ getOwnPropertyDescriptor: function(t, prop) {
+ throw new Test262Error();
+ }
});
assert.throws(Test262Error, function() {
- Object.getOwnPropertyDescriptor(p, "attr");
+ Object.getOwnPropertyDescriptor(p, "attr");
});
diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-not-callable.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-not-callable.js
index a6bfeef4c..ce9fd5886 100644
--- a/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-not-callable.js
+++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-not-callable.js
@@ -22,9 +22,9 @@ info: |
var target = {};
var p = new Proxy(target, {
- getOwnPropertyDescriptor: {}
+ getOwnPropertyDescriptor: {}
});
assert.throws(TypeError, function() {
- Object.getOwnPropertyDescriptor(p, "foo");
+ Object.getOwnPropertyDescriptor(p, "foo");
});
diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-undefined.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-undefined.js
index 75d7099be..4471bc1ec 100644
--- a/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-undefined.js
+++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-undefined.js
@@ -14,7 +14,9 @@ info: |
includes: [propertyHelper.js]
---*/
-var target = {attr: 1};
+var target = {
+ attr: 1
+};
var p = new Proxy(target, {});
var proxyDesc = Object.getOwnPropertyDescriptor(p, "attr");
diff --git a/test/built-ins/Proxy/getPrototypeOf/extensible-target-return-handlerproto.js b/test/built-ins/Proxy/getPrototypeOf/extensible-target-return-handlerproto.js
index e9e16eb2a..a61199942 100644
--- a/test/built-ins/Proxy/getPrototypeOf/extensible-target-return-handlerproto.js
+++ b/test/built-ins/Proxy/getPrototypeOf/extensible-target-return-handlerproto.js
@@ -22,7 +22,9 @@ info: |
---*/
-var prot = { foo: 1 };
+var prot = {
+ foo: 1
+};
var p = new Proxy({}, {
getPrototypeOf: function() {
return prot;
diff --git a/test/built-ins/Proxy/getPrototypeOf/not-extensible-not-same-proto-throws.js b/test/built-ins/Proxy/getPrototypeOf/not-extensible-not-same-proto-throws.js
index a834aca9e..0569ed4ed 100644
--- a/test/built-ins/Proxy/getPrototypeOf/not-extensible-not-same-proto-throws.js
+++ b/test/built-ins/Proxy/getPrototypeOf/not-extensible-not-same-proto-throws.js
@@ -25,7 +25,9 @@ info: |
...
---*/
-var target = Object.create({ foo: 1 });
+var target = Object.create({
+ foo: 1
+});
var p = new Proxy(target, {
getPrototypeOf: function() {
@@ -36,5 +38,5 @@ var p = new Proxy(target, {
Object.preventExtensions(target);
assert.throws(TypeError, function() {
- Object.getPrototypeOf(p);
+ Object.getPrototypeOf(p);
});
diff --git a/test/built-ins/Proxy/getPrototypeOf/null-handler.js b/test/built-ins/Proxy/getPrototypeOf/null-handler.js
index 38c8e7e49..376841980 100644
--- a/test/built-ins/Proxy/getPrototypeOf/null-handler.js
+++ b/test/built-ins/Proxy/getPrototypeOf/null-handler.js
@@ -11,5 +11,5 @@ var p = Proxy.revocable({}, {});
p.revoke();
assert.throws(TypeError, function() {
- Object.getPrototypeOf(p.proxy);
+ Object.getPrototypeOf(p.proxy);
});
diff --git a/test/built-ins/Proxy/getPrototypeOf/return-is-abrupt.js b/test/built-ins/Proxy/getPrototypeOf/return-is-abrupt.js
index bf04b9e54..f81d3ffe3 100644
--- a/test/built-ins/Proxy/getPrototypeOf/return-is-abrupt.js
+++ b/test/built-ins/Proxy/getPrototypeOf/return-is-abrupt.js
@@ -16,5 +16,5 @@ var p = new Proxy({}, {
});
assert.throws(Test262Error, function() {
- Object.getPrototypeOf(p);
+ Object.getPrototypeOf(p);
});
diff --git a/test/built-ins/Proxy/getPrototypeOf/trap-is-not-callable.js b/test/built-ins/Proxy/getPrototypeOf/trap-is-not-callable.js
index e6335e46a..3920ee73d 100644
--- a/test/built-ins/Proxy/getPrototypeOf/trap-is-not-callable.js
+++ b/test/built-ins/Proxy/getPrototypeOf/trap-is-not-callable.js
@@ -7,9 +7,9 @@ description: >
---*/
var p = new Proxy({}, {
- getPrototypeOf: {}
+ getPrototypeOf: {}
});
assert.throws(TypeError, function() {
- Object.getPrototypeOf(p);
+ Object.getPrototypeOf(p);
});
diff --git a/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-boolean.js b/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-boolean.js
index c8c0543ba..7a534ddc9 100644
--- a/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-boolean.js
+++ b/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-boolean.js
@@ -13,5 +13,5 @@ var p = new Proxy({}, {
});
assert.throws(TypeError, function() {
- Object.getPrototypeOf(p);
+ Object.getPrototypeOf(p);
});
diff --git a/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-number.js b/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-number.js
index d0533f518..628e0868c 100644
--- a/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-number.js
+++ b/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-number.js
@@ -13,5 +13,5 @@ var p = new Proxy({}, {
});
assert.throws(TypeError, function() {
- Object.getPrototypeOf(p);
+ Object.getPrototypeOf(p);
});
diff --git a/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-string.js b/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-string.js
index 34bea0d5f..29033521e 100644
--- a/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-string.js
+++ b/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-string.js
@@ -13,5 +13,5 @@ var p = new Proxy({}, {
});
assert.throws(TypeError, function() {
- Object.getPrototypeOf(p);
+ Object.getPrototypeOf(p);
});
diff --git a/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-symbol.js b/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-symbol.js
index 9b47cf9a9..0c88056ee 100644
--- a/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-symbol.js
+++ b/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-symbol.js
@@ -14,5 +14,5 @@ var p = new Proxy({}, {
});
assert.throws(TypeError, function() {
- Object.getPrototypeOf(p);
+ Object.getPrototypeOf(p);
});
diff --git a/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-undefined.js b/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-undefined.js
index 8e5143d3d..ea4aeff85 100644
--- a/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-undefined.js
+++ b/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-undefined.js
@@ -13,5 +13,5 @@ var p = new Proxy({}, {
});
assert.throws(TypeError, function() {
- Object.getPrototypeOf(p);
+ Object.getPrototypeOf(p);
});
diff --git a/test/built-ins/Proxy/has/call-in.js b/test/built-ins/Proxy/has/call-in.js
index 1bdc92772..f51d824db 100644
--- a/test/built-ins/Proxy/has/call-in.js
+++ b/test/built-ins/Proxy/has/call-in.js
@@ -15,13 +15,13 @@ info: |
var _handler, _target, _prop;
var target = {};
var handler = {
- has: function(t, prop) {
- _handler = this;
- _target = t;
- _prop = prop;
+ has: function(t, prop) {
+ _handler = this;
+ _target = t;
+ _prop = prop;
- return prop in t;
- }
+ return prop in t;
+ }
};
var p = new Proxy(target, handler);
diff --git a/test/built-ins/Proxy/has/call-object-create.js b/test/built-ins/Proxy/has/call-object-create.js
index 9b80cad11..4bcbe2ca5 100644
--- a/test/built-ins/Proxy/has/call-object-create.js
+++ b/test/built-ins/Proxy/has/call-object-create.js
@@ -20,13 +20,13 @@ info: |
var _handler, _target, _prop;
var target = {};
var handler = {
- has: function(t, prop) {
- _handler = this;
- _target = t;
- _prop = prop;
+ has: function(t, prop) {
+ _handler = this;
+ _target = t;
+ _prop = prop;
- return false;
- }
+ return false;
+ }
};
var p = new Proxy(target, handler);
diff --git a/test/built-ins/Proxy/has/call-with.js b/test/built-ins/Proxy/has/call-with.js
index 59e567ffc..1efe91f2c 100644
--- a/test/built-ins/Proxy/has/call-with.js
+++ b/test/built-ins/Proxy/has/call-with.js
@@ -16,18 +16,18 @@ flags: [noStrict]
var _handler, _target, _prop;
var target = {};
var handler = {
- has: function(t, prop) {
- _handler = this;
- _target = t;
- _prop = prop;
+ has: function(t, prop) {
+ _handler = this;
+ _target = t;
+ _prop = prop;
- return true;
- }
+ return true;
+ }
};
var p = new Proxy(target, handler);
-with (p) {
- (attr);
+with(p) {
+ (attr);
}
assert.sameValue(_handler, handler);
diff --git a/test/built-ins/Proxy/has/null-handler-using-with.js b/test/built-ins/Proxy/has/null-handler-using-with.js
index 06bd4eaf0..68320160b 100644
--- a/test/built-ins/Proxy/has/null-handler-using-with.js
+++ b/test/built-ins/Proxy/has/null-handler-using-with.js
@@ -12,7 +12,7 @@ var p = Proxy.revocable({}, {});
p.revoke();
assert.throws(TypeError, function() {
- with (p.proxy) {
- (attr);
- }
+ with(p.proxy) {
+ (attr);
+ }
});
diff --git a/test/built-ins/Proxy/has/null-handler.js b/test/built-ins/Proxy/has/null-handler.js
index 90deca388..8cc5d8ea3 100644
--- a/test/built-ins/Proxy/has/null-handler.js
+++ b/test/built-ins/Proxy/has/null-handler.js
@@ -11,5 +11,5 @@ var p = Proxy.revocable({}, {});
p.revoke();
assert.throws(TypeError, function() {
- "attr" in p.proxy;
+ "attr" in p.proxy;
});
diff --git a/test/built-ins/Proxy/has/return-false-target-not-extensible-using-with.js b/test/built-ins/Proxy/has/return-false-target-not-extensible-using-with.js
index 5847413a2..fb3e6f463 100644
--- a/test/built-ins/Proxy/has/return-false-target-not-extensible-using-with.js
+++ b/test/built-ins/Proxy/has/return-false-target-not-extensible-using-with.js
@@ -23,21 +23,21 @@ flags: [noStrict]
var target = {};
var handler = {
- has: function(t, prop) {
- return 0;
- }
+ has: function(t, prop) {
+ return 0;
+ }
};
var p = new Proxy(target, handler);
Object.defineProperty(target, 'attr', {
- configurable: true,
- value: 1
+ configurable: true,
+ value: 1
});
Object.preventExtensions(target);
assert.throws(TypeError, function() {
- with (p) {
- (attr);
- }
+ with(p) {
+ (attr);
+ }
});
diff --git a/test/built-ins/Proxy/has/return-false-target-not-extensible.js b/test/built-ins/Proxy/has/return-false-target-not-extensible.js
index b1f9c5190..dc5e3a3b9 100644
--- a/test/built-ins/Proxy/has/return-false-target-not-extensible.js
+++ b/test/built-ins/Proxy/has/return-false-target-not-extensible.js
@@ -22,19 +22,19 @@ info: |
var target = {};
var handler = {
- has: function(t, prop) {
- return 0;
- }
+ has: function(t, prop) {
+ return 0;
+ }
};
var p = new Proxy(target, handler);
Object.defineProperty(target, "attr", {
- configurable: true,
- value: 1
+ configurable: true,
+ value: 1
});
Object.preventExtensions(target);
assert.throws(TypeError, function() {
- "attr" in p;
+ "attr" in p;
});
diff --git a/test/built-ins/Proxy/has/return-false-target-prop-exists-using-with.js b/test/built-ins/Proxy/has/return-false-target-prop-exists-using-with.js
index d008f1ad2..cb7ebd738 100644
--- a/test/built-ins/Proxy/has/return-false-target-prop-exists-using-with.js
+++ b/test/built-ins/Proxy/has/return-false-target-prop-exists-using-with.js
@@ -14,15 +14,15 @@ flags: [noStrict]
---*/
var target = {
- attr: 1
+ attr: 1
};
var p = new Proxy(target, {
- has: function(t, prop) {
- return false;
- }
+ has: function(t, prop) {
+ return false;
+ }
});
var attr = 0;
-with (p) {
- assert.sameValue(attr, 0);
+with(p) {
+ assert.sameValue(attr, 0);
}
diff --git a/test/built-ins/Proxy/has/return-false-target-prop-exists.js b/test/built-ins/Proxy/has/return-false-target-prop-exists.js
index 7a74041c4..52bc88f4f 100644
--- a/test/built-ins/Proxy/has/return-false-target-prop-exists.js
+++ b/test/built-ins/Proxy/has/return-false-target-prop-exists.js
@@ -13,12 +13,12 @@ info: |
---*/
var target = {
- attr: 1
+ attr: 1
};
var p = new Proxy(target, {
- has: function(t, prop) {
- return false;
- }
+ has: function(t, prop) {
+ return false;
+ }
});
assert.sameValue(("attr" in p), false);
diff --git a/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable-using-with.js b/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable-using-with.js
index 43c59aa01..a6a551709 100644
--- a/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable-using-with.js
+++ b/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable-using-with.js
@@ -20,19 +20,19 @@ flags: [noStrict]
var target = {};
var handler = {
- has: function(t, prop) {
- return 0;
- }
+ has: function(t, prop) {
+ return 0;
+ }
};
var p = new Proxy(target, handler);
Object.defineProperty(target, "attr", {
- configurable: false,
- value: 1
+ configurable: false,
+ value: 1
});
assert.throws(TypeError, function() {
- with (p) {
- (attr);
- }
+ with(p) {
+ (attr);
+ }
});
diff --git a/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable.js b/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable.js
index 581a4113f..71f882c22 100644
--- a/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable.js
+++ b/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable.js
@@ -19,17 +19,17 @@ info: |
var target = {};
var handler = {
- has: function(t, prop) {
- return 0;
- }
+ has: function(t, prop) {
+ return 0;
+ }
};
var p = new Proxy(target, handler);
Object.defineProperty(target, "attr", {
- configurable: false,
- value: 1
+ configurable: false,
+ value: 1
});
assert.throws(TypeError, function() {
- "attr" in p;
+ "attr" in p;
});
diff --git a/test/built-ins/Proxy/has/return-is-abrupt-in.js b/test/built-ins/Proxy/has/return-is-abrupt-in.js
index d7a7c5a4b..9e42c2d05 100644
--- a/test/built-ins/Proxy/has/return-is-abrupt-in.js
+++ b/test/built-ins/Proxy/has/return-is-abrupt-in.js
@@ -14,11 +14,11 @@ info: |
---*/
var p = new Proxy({}, {
- has: function() {
- throw new Test262Error();
- }
+ has: function() {
+ throw new Test262Error();
+ }
});
assert.throws(Test262Error, function() {
- "attr" in p;
+ "attr" in p;
});
diff --git a/test/built-ins/Proxy/has/return-is-abrupt-with.js b/test/built-ins/Proxy/has/return-is-abrupt-with.js
index 46824ac2d..e4ff88601 100644
--- a/test/built-ins/Proxy/has/return-is-abrupt-with.js
+++ b/test/built-ins/Proxy/has/return-is-abrupt-with.js
@@ -15,13 +15,13 @@ flags: [noStrict]
---*/
var p = new Proxy({}, {
- has: function() {
- throw new Test262Error();
- }
+ has: function() {
+ throw new Test262Error();
+ }
});
assert.throws(Test262Error, function() {
- with (p) {
- (attr);
- }
+ with(p) {
+ (attr);
+ }
});
diff --git a/test/built-ins/Proxy/has/return-true-target-prop-exists-using-with.js b/test/built-ins/Proxy/has/return-true-target-prop-exists-using-with.js
index 145073b72..1e58f30f7 100644
--- a/test/built-ins/Proxy/has/return-true-target-prop-exists-using-with.js
+++ b/test/built-ins/Proxy/has/return-true-target-prop-exists-using-with.js
@@ -9,17 +9,17 @@ flags: [noStrict]
---*/
var target = {
- attr: 1
+ attr: 1
};
var p = new Proxy(target, {
- has: function(t, prop) {
- if (prop !== "assert") {
- return 42;
- }
+ has: function(t, prop) {
+ if (prop !== "assert") {
+ return 42;
}
+ }
});
var attr = 0;
-with (p) {
- assert.sameValue(attr, 1);
+with(p) {
+ assert.sameValue(attr, 1);
}
diff --git a/test/built-ins/Proxy/has/return-true-target-prop-exists.js b/test/built-ins/Proxy/has/return-true-target-prop-exists.js
index 9c5a409da..187ef0030 100644
--- a/test/built-ins/Proxy/has/return-true-target-prop-exists.js
+++ b/test/built-ins/Proxy/has/return-true-target-prop-exists.js
@@ -8,12 +8,12 @@ description: >
---*/
var target = {
- attr: 1
+ attr: 1
};
var p = new Proxy(target, {
- has: function(t, prop) {
- return 1;
- }
+ has: function(t, prop) {
+ return 1;
+ }
});
assert.sameValue(("attr" in p), true);
diff --git a/test/built-ins/Proxy/has/return-true-without-same-target-prop.js b/test/built-ins/Proxy/has/return-true-without-same-target-prop.js
index 9186074a7..5ee560de8 100644
--- a/test/built-ins/Proxy/has/return-true-without-same-target-prop.js
+++ b/test/built-ins/Proxy/has/return-true-without-same-target-prop.js
@@ -8,9 +8,9 @@ description: >
---*/
var p = new Proxy({}, {
- has: function(t, prop) {
- return true;
- }
+ has: function(t, prop) {
+ return true;
+ }
});
assert.sameValue(("attr" in p), true);
diff --git a/test/built-ins/Proxy/has/trap-is-not-callable-using-with.js b/test/built-ins/Proxy/has/trap-is-not-callable-using-with.js
index 1153bd364..951ebcf43 100644
--- a/test/built-ins/Proxy/has/trap-is-not-callable-using-with.js
+++ b/test/built-ins/Proxy/has/trap-is-not-callable-using-with.js
@@ -20,11 +20,11 @@ flags: [noStrict]
var target = {};
var p = new Proxy(target, {
- has: {}
+ has: {}
});
assert.throws(TypeError, function() {
- with (p) {
- (attr);
- }
+ with(p) {
+ (attr);
+ }
});
diff --git a/test/built-ins/Proxy/has/trap-is-not-callable.js b/test/built-ins/Proxy/has/trap-is-not-callable.js
index 712419824..63f494357 100644
--- a/test/built-ins/Proxy/has/trap-is-not-callable.js
+++ b/test/built-ins/Proxy/has/trap-is-not-callable.js
@@ -19,9 +19,9 @@ info: |
var target = {};
var p = new Proxy(target, {
- has: {}
+ has: {}
});
assert.throws(TypeError, function() {
- "attr" in p;
+ "attr" in p;
});
diff --git a/test/built-ins/Proxy/has/trap-is-undefined-using-with.js b/test/built-ins/Proxy/has/trap-is-undefined-using-with.js
index 26a98bebb..4c3ec37c2 100644
--- a/test/built-ins/Proxy/has/trap-is-undefined-using-with.js
+++ b/test/built-ins/Proxy/has/trap-is-undefined-using-with.js
@@ -18,7 +18,7 @@ var target = Object.create(Array.prototype);
var p = new Proxy(target, {});
var foo = 3;
-with (target) {
- assert.sameValue(length, 0);
- assert.sameValue(foo, 3);
+with(target) {
+ assert.sameValue(length, 0);
+ assert.sameValue(foo, 3);
}
diff --git a/test/built-ins/Proxy/isExtensible/call-parameters.js b/test/built-ins/Proxy/isExtensible/call-parameters.js
index b43ea5619..3327adc8c 100644
--- a/test/built-ins/Proxy/isExtensible/call-parameters.js
+++ b/test/built-ins/Proxy/isExtensible/call-parameters.js
@@ -17,11 +17,11 @@ info: |
var _target, _handler;
var target = {};
var handler = {
- isExtensible: function(t) {
- _handler = this;
- _target = t;
- return Object.isExtensible(t);
- }
+ isExtensible: function(t) {
+ _handler = this;
+ _target = t;
+ return Object.isExtensible(t);
+ }
}
var p = new Proxy(target, handler);
diff --git a/test/built-ins/Proxy/isExtensible/null-handler.js b/test/built-ins/Proxy/isExtensible/null-handler.js
index d8d14bf7c..0ff2c1b37 100644
--- a/test/built-ins/Proxy/isExtensible/null-handler.js
+++ b/test/built-ins/Proxy/isExtensible/null-handler.js
@@ -11,5 +11,5 @@ var p = Proxy.revocable({}, {});
p.revoke();
assert.throws(TypeError, function() {
- Object.isExtensible(p.proxy);
+ Object.isExtensible(p.proxy);
});
diff --git a/test/built-ins/Proxy/isExtensible/return-is-abrupt.js b/test/built-ins/Proxy/isExtensible/return-is-abrupt.js
index aacd87bd0..ae7591d53 100644
--- a/test/built-ins/Proxy/isExtensible/return-is-abrupt.js
+++ b/test/built-ins/Proxy/isExtensible/return-is-abrupt.js
@@ -14,11 +14,11 @@ info: |
---*/
var p = new Proxy({}, {
- isExtensible: function(t) {
- throw new Test262Error();
- }
+ isExtensible: function(t) {
+ throw new Test262Error();
+ }
});
assert.throws(Test262Error, function() {
- Object.isExtensible(p);
+ Object.isExtensible(p);
});
diff --git a/test/built-ins/Proxy/isExtensible/return-is-boolean.js b/test/built-ins/Proxy/isExtensible/return-is-boolean.js
index 29d54369e..5c8bf4e3f 100644
--- a/test/built-ins/Proxy/isExtensible/return-is-boolean.js
+++ b/test/built-ins/Proxy/isExtensible/return-is-boolean.js
@@ -8,13 +8,13 @@ description: >
var target = {};
var p = new Proxy(target, {
- isExtensible: function(t) {
- if ( Object.isExtensible(t) ) {
- return 1;
- } else {
- return 0;
- }
+ isExtensible: function(t) {
+ if (Object.isExtensible(t)) {
+ return 1;
+ } else {
+ return 0;
}
+ }
});
assert.sameValue(Object.isExtensible(p), true);
diff --git a/test/built-ins/Proxy/isExtensible/return-is-different-from-target.js b/test/built-ins/Proxy/isExtensible/return-is-different-from-target.js
index d40f45293..50a76377d 100644
--- a/test/built-ins/Proxy/isExtensible/return-is-different-from-target.js
+++ b/test/built-ins/Proxy/isExtensible/return-is-different-from-target.js
@@ -15,11 +15,11 @@ info: |
---*/
var p = new Proxy({}, {
- isExtensible: function(t) {
- return false;
- }
+ isExtensible: function(t) {
+ return false;
+ }
});
assert.throws(TypeError, function() {
- Object.isExtensible(p);
+ Object.isExtensible(p);
});
diff --git a/test/built-ins/Proxy/isExtensible/return-same-result-from-target.js b/test/built-ins/Proxy/isExtensible/return-same-result-from-target.js
index 4858765c3..0c8406f46 100644
--- a/test/built-ins/Proxy/isExtensible/return-same-result-from-target.js
+++ b/test/built-ins/Proxy/isExtensible/return-same-result-from-target.js
@@ -8,9 +8,9 @@ description: >
var target = {};
var p = new Proxy(target, {
- isExtensible: function(t) {
- return Object.isExtensible(t);
- }
+ isExtensible: function(t) {
+ return Object.isExtensible(t);
+ }
});
assert.sameValue(Object.isExtensible(p), true);
diff --git a/test/built-ins/Proxy/isExtensible/trap-is-not-callable.js b/test/built-ins/Proxy/isExtensible/trap-is-not-callable.js
index 845cd0b57..7db8f4cf6 100644
--- a/test/built-ins/Proxy/isExtensible/trap-is-not-callable.js
+++ b/test/built-ins/Proxy/isExtensible/trap-is-not-callable.js
@@ -22,9 +22,9 @@ info: |
var target = {};
var p = new Proxy(target, {
- isExtensible: {}
+ isExtensible: {}
});
assert.throws(TypeError, function() {
- Object.isExtensible(p);
+ Object.isExtensible(p);
});
diff --git a/test/built-ins/Proxy/ownKeys/call-parameters-object-getownpropertynames.js b/test/built-ins/Proxy/ownKeys/call-parameters-object-getownpropertynames.js
index 9ddf4c865..112a31da8 100644
--- a/test/built-ins/Proxy/ownKeys/call-parameters-object-getownpropertynames.js
+++ b/test/built-ins/Proxy/ownKeys/call-parameters-object-getownpropertynames.js
@@ -10,16 +10,16 @@ description: >
var _target, _handler;
var target = {
- foo: 1,
- bar: 2
+ foo: 1,
+ bar: 2
};
var handler = {
- ownKeys: function(t) {
- _handler = this;
- _target = t;
- return Object.getOwnPropertyNames(t);
- }
+ ownKeys: function(t) {
+ _handler = this;
+ _target = t;
+ return Object.getOwnPropertyNames(t);
+ }
}
var p = new Proxy(target, handler);
diff --git a/test/built-ins/Proxy/ownKeys/call-parameters-object-getownpropertysymbols.js b/test/built-ins/Proxy/ownKeys/call-parameters-object-getownpropertysymbols.js
index ea802c424..f788aa291 100644
--- a/test/built-ins/Proxy/ownKeys/call-parameters-object-getownpropertysymbols.js
+++ b/test/built-ins/Proxy/ownKeys/call-parameters-object-getownpropertysymbols.js
@@ -19,11 +19,11 @@ target[a] = 1;
target[b] = 2;
var handler = {
- ownKeys: function(t) {
- _handler = this;
- _target = t;
- return Object.getOwnPropertySymbols(t);
- }
+ ownKeys: function(t) {
+ _handler = this;
+ _target = t;
+ return Object.getOwnPropertySymbols(t);
+ }
}
var p = new Proxy(target, handler);
diff --git a/test/built-ins/Proxy/ownKeys/call-parameters-object-keys.js b/test/built-ins/Proxy/ownKeys/call-parameters-object-keys.js
index 9ea0cdf6c..6723d9104 100644
--- a/test/built-ins/Proxy/ownKeys/call-parameters-object-keys.js
+++ b/test/built-ins/Proxy/ownKeys/call-parameters-object-keys.js
@@ -10,15 +10,15 @@ description: >
var _target, _handler;
var target = {
- foo: 1,
- bar: 2
+ foo: 1,
+ bar: 2
};
var handler = {
- ownKeys: function(t) {
- _handler = this;
- _target = t;
- return Object.keys(t);
- }
+ ownKeys: function(t) {
+ _handler = this;
+ _target = t;
+ return Object.keys(t);
+ }
};
var p = new Proxy(target, handler);
diff --git a/test/built-ins/Proxy/ownKeys/extensible-return-trap-result-absent-not-configurable-keys.js b/test/built-ins/Proxy/ownKeys/extensible-return-trap-result-absent-not-configurable-keys.js
index 3fc49524d..6c3cc745e 100644
--- a/test/built-ins/Proxy/ownKeys/extensible-return-trap-result-absent-not-configurable-keys.js
+++ b/test/built-ins/Proxy/ownKeys/extensible-return-trap-result-absent-not-configurable-keys.js
@@ -13,10 +13,12 @@ info: |
a. Return trapResult.
---*/
-var p = new Proxy({attr: 42}, {
- ownKeys: function() {
- return ["foo", "bar"];
- }
+var p = new Proxy({
+ attr: 42
+}, {
+ ownKeys: function() {
+ return ["foo", "bar"];
+ }
});
var keys = Object.getOwnPropertyNames(p);
diff --git a/test/built-ins/Proxy/ownKeys/extensible-return-trap-result.js b/test/built-ins/Proxy/ownKeys/extensible-return-trap-result.js
index ad4073ac0..63b06910a 100644
--- a/test/built-ins/Proxy/ownKeys/extensible-return-trap-result.js
+++ b/test/built-ins/Proxy/ownKeys/extensible-return-trap-result.js
@@ -15,15 +15,15 @@ info: |
var target = {};
Object.defineProperty(target, "foo", {
- configurable: false,
- enumerable: true,
- value: true
+ configurable: false,
+ enumerable: true,
+ value: true
});
var p = new Proxy(target, {
- ownKeys: function() {
- return ["foo", "bar"];
- }
+ ownKeys: function() {
+ return ["foo", "bar"];
+ }
});
var keys = Object.getOwnPropertyNames(p);
diff --git a/test/built-ins/Proxy/ownKeys/not-extensible-missing-keys-throws.js b/test/built-ins/Proxy/ownKeys/not-extensible-missing-keys-throws.js
index 88b7b88a1..cb256baca 100644
--- a/test/built-ins/Proxy/ownKeys/not-extensible-missing-keys-throws.js
+++ b/test/built-ins/Proxy/ownKeys/not-extensible-missing-keys-throws.js
@@ -15,18 +15,18 @@ info: |
---*/
var target = {
- foo: 1,
- bar: 2
+ foo: 1,
+ bar: 2
};
var p = new Proxy(target, {
- ownKeys: function() {
- return ["foo"];
- }
+ ownKeys: function() {
+ return ["foo"];
+ }
});
Object.preventExtensions(target);
assert.throws(TypeError, function() {
- Object.keys(p);
+ Object.keys(p);
});
diff --git a/test/built-ins/Proxy/ownKeys/not-extensible-new-keys-throws.js b/test/built-ins/Proxy/ownKeys/not-extensible-new-keys-throws.js
index 22cc02791..fb6eddf5f 100644
--- a/test/built-ins/Proxy/ownKeys/not-extensible-new-keys-throws.js
+++ b/test/built-ins/Proxy/ownKeys/not-extensible-new-keys-throws.js
@@ -13,17 +13,17 @@ info: |
---*/
var target = {
- foo: 1
+ foo: 1
};
var p = new Proxy(target, {
- ownKeys: function() {
- return ["foo", "bar"];
- }
+ ownKeys: function() {
+ return ["foo", "bar"];
+ }
});
Object.preventExtensions(target);
assert.throws(TypeError, function() {
- Object.keys(p);
+ Object.keys(p);
});
diff --git a/test/built-ins/Proxy/ownKeys/not-extensible-return-keys.js b/test/built-ins/Proxy/ownKeys/not-extensible-return-keys.js
index f7d6832df..a491ffb6d 100644
--- a/test/built-ins/Proxy/ownKeys/not-extensible-return-keys.js
+++ b/test/built-ins/Proxy/ownKeys/not-extensible-return-keys.js
@@ -13,14 +13,14 @@ info: |
---*/
var target = {
- foo: 1,
- bar: 2
+ foo: 1,
+ bar: 2
};
var p = new Proxy(target, {
- ownKeys: function() {
- return ["foo", "bar"];
- }
+ ownKeys: function() {
+ return ["foo", "bar"];
+ }
});
Object.preventExtensions(target);
diff --git a/test/built-ins/Proxy/ownKeys/null-handler.js b/test/built-ins/Proxy/ownKeys/null-handler.js
index e703ece13..653e1fc86 100644
--- a/test/built-ins/Proxy/ownKeys/null-handler.js
+++ b/test/built-ins/Proxy/ownKeys/null-handler.js
@@ -13,5 +13,5 @@ var p = Proxy.revocable({}, {});
p.revoke();
assert.throws(TypeError, function() {
- Object.keys(p.proxy);
+ Object.keys(p.proxy);
});
diff --git a/test/built-ins/Proxy/ownKeys/return-all-non-configurable-keys.js b/test/built-ins/Proxy/ownKeys/return-all-non-configurable-keys.js
index 70a898d5d..9cd1c90b4 100644
--- a/test/built-ins/Proxy/ownKeys/return-all-non-configurable-keys.js
+++ b/test/built-ins/Proxy/ownKeys/return-all-non-configurable-keys.js
@@ -16,21 +16,21 @@ info: |
---*/
var target = {
- foo: 1
+ foo: 1
};
Object.defineProperty(target, "attr", {
- configurable: false,
- enumerable: true,
- value: true
+ configurable: false,
+ enumerable: true,
+ value: true
});
var p = new Proxy(target, {
- ownKeys: function() {
- return ["foo"];
- }
+ ownKeys: function() {
+ return ["foo"];
+ }
});
assert.throws(TypeError, function() {
- Object.keys(p);
+ Object.keys(p);
});
diff --git a/test/built-ins/Proxy/ownKeys/return-is-abrupt.js b/test/built-ins/Proxy/ownKeys/return-is-abrupt.js
index fd48e0f9c..405fbbfba 100644
--- a/test/built-ins/Proxy/ownKeys/return-is-abrupt.js
+++ b/test/built-ins/Proxy/ownKeys/return-is-abrupt.js
@@ -14,11 +14,11 @@ info: |
---*/
var p = new Proxy({}, {
- ownKeys: function() {
- throw new Test262Error();
- }
+ ownKeys: function() {
+ throw new Test262Error();
+ }
});
assert.throws(Test262Error, function() {
- Object.keys(p);
+ Object.keys(p);
});
diff --git a/test/built-ins/Proxy/ownKeys/return-not-list-object-throws-realm.js b/test/built-ins/Proxy/ownKeys/return-not-list-object-throws-realm.js
index 58d211c2f..45e22b3a0 100644
--- a/test/built-ins/Proxy/ownKeys/return-not-list-object-throws-realm.js
+++ b/test/built-ins/Proxy/ownKeys/return-not-list-object-throws-realm.js
@@ -22,11 +22,11 @@ features: [cross-realm, Symbol]
var other = $262.createRealm().global;
var p = new other.Proxy({}, {
- ownKeys: function() {
- return undefined;
- }
+ ownKeys: function() {
+ return undefined;
+ }
});
assert.throws(TypeError, function() {
- Object.keys(p);
+ Object.keys(p);
});
diff --git a/test/built-ins/Proxy/ownKeys/return-not-list-object-throws.js b/test/built-ins/Proxy/ownKeys/return-not-list-object-throws.js
index 2f0896491..c3bd07242 100644
--- a/test/built-ins/Proxy/ownKeys/return-not-list-object-throws.js
+++ b/test/built-ins/Proxy/ownKeys/return-not-list-object-throws.js
@@ -22,11 +22,11 @@ features: [Symbol]
var target = {};
var p = new Proxy(target, {
- ownKeys: function() {
- return undefined;
- }
+ ownKeys: function() {
+ return undefined;
+ }
});
assert.throws(TypeError, function() {
- Object.keys(p);
+ Object.keys(p);
});
diff --git a/test/built-ins/Proxy/ownKeys/return-type-throws-array.js b/test/built-ins/Proxy/ownKeys/return-type-throws-array.js
index e6f3a3aa2..78cc7335f 100644
--- a/test/built-ins/Proxy/ownKeys/return-type-throws-array.js
+++ b/test/built-ins/Proxy/ownKeys/return-type-throws-array.js
@@ -25,7 +25,9 @@ info: |
var p = new Proxy({}, {
ownKeys() {
- return [[]];
+ return [
+ []
+ ];
}
});
diff --git a/test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js b/test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js
index 030d6b5e8..0eb431e7d 100644
--- a/test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js
+++ b/test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js
@@ -19,7 +19,9 @@ features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;
-var p = new OProxy({attr:1}, {
+var p = new OProxy({
+ attr: 1
+}, {
ownKeys: {}
});
diff --git a/test/built-ins/Proxy/ownKeys/trap-is-not-callable.js b/test/built-ins/Proxy/ownKeys/trap-is-not-callable.js
index 6b95478ae..20ed2a8fd 100644
--- a/test/built-ins/Proxy/ownKeys/trap-is-not-callable.js
+++ b/test/built-ins/Proxy/ownKeys/trap-is-not-callable.js
@@ -16,10 +16,12 @@ info: |
4. If IsCallable(func) is false, throw a TypeError exception.
---*/
-var p = new Proxy({attr:1}, {
- ownKeys: {}
+var p = new Proxy({
+ attr: 1
+}, {
+ ownKeys: {}
});
assert.throws(TypeError, function() {
- Object.keys(p);
+ Object.keys(p);
});
diff --git a/test/built-ins/Proxy/ownKeys/trap-is-undefined.js b/test/built-ins/Proxy/ownKeys/trap-is-undefined.js
index 2b9830262..3b42a49e1 100644
--- a/test/built-ins/Proxy/ownKeys/trap-is-undefined.js
+++ b/test/built-ins/Proxy/ownKeys/trap-is-undefined.js
@@ -9,8 +9,8 @@ description: >
---*/
var target = {
- foo: 1,
- bar: 2
+ foo: 1,
+ bar: 2
};
var p = new Proxy(target, {});
diff --git a/test/built-ins/Proxy/preventExtensions/call-parameters.js b/test/built-ins/Proxy/preventExtensions/call-parameters.js
index 2eb15a364..7774224b8 100644
--- a/test/built-ins/Proxy/preventExtensions/call-parameters.js
+++ b/test/built-ins/Proxy/preventExtensions/call-parameters.js
@@ -16,12 +16,12 @@ info: |
var _target, _handler;
var target = {};
var handler = {
- preventExtensions: function(t) {
- _handler = this;
- _target = t;
+ preventExtensions: function(t) {
+ _handler = this;
+ _target = t;
- return Object.preventExtensions(target);
- }
+ return Object.preventExtensions(target);
+ }
};
var p = new Proxy(target, handler);
diff --git a/test/built-ins/Proxy/preventExtensions/null-handler.js b/test/built-ins/Proxy/preventExtensions/null-handler.js
index 12b7ee865..e8067f063 100644
--- a/test/built-ins/Proxy/preventExtensions/null-handler.js
+++ b/test/built-ins/Proxy/preventExtensions/null-handler.js
@@ -11,5 +11,5 @@ var p = Proxy.revocable({}, {});
p.revoke();
assert.throws(TypeError, function() {
- Object.preventExtensions(p.proxy);
+ Object.preventExtensions(p.proxy);
});
diff --git a/test/built-ins/Proxy/preventExtensions/return-false.js b/test/built-ins/Proxy/preventExtensions/return-false.js
index c448d70e8..dbe0c5994 100644
--- a/test/built-ins/Proxy/preventExtensions/return-false.js
+++ b/test/built-ins/Proxy/preventExtensions/return-false.js
@@ -9,9 +9,9 @@ features: [Reflect]
var target = {};
var p = new Proxy({}, {
- preventExtensions: function(t) {
- return 0;
- }
+ preventExtensions: function(t) {
+ return 0;
+ }
});
assert.sameValue(Reflect.preventExtensions(p), false);
diff --git a/test/built-ins/Proxy/preventExtensions/return-is-abrupt.js b/test/built-ins/Proxy/preventExtensions/return-is-abrupt.js
index cfe31cb7e..cb3384df6 100644
--- a/test/built-ins/Proxy/preventExtensions/return-is-abrupt.js
+++ b/test/built-ins/Proxy/preventExtensions/return-is-abrupt.js
@@ -14,11 +14,11 @@ info: |
---*/
var p = new Proxy({}, {
- preventExtensions: function(t) {
- throw new Test262Error();
- }
+ preventExtensions: function(t) {
+ throw new Test262Error();
+ }
});
assert.throws(Test262Error, function() {
- Object.preventExtensions(p);
+ Object.preventExtensions(p);
});
diff --git a/test/built-ins/Proxy/preventExtensions/return-true-target-is-extensible.js b/test/built-ins/Proxy/preventExtensions/return-true-target-is-extensible.js
index 8f1707312..9f922da8e 100644
--- a/test/built-ins/Proxy/preventExtensions/return-true-target-is-extensible.js
+++ b/test/built-ins/Proxy/preventExtensions/return-true-target-is-extensible.js
@@ -17,11 +17,11 @@ info: |
---*/
var p = new Proxy({}, {
- preventExtensions: function(t) {
- return true;
- }
+ preventExtensions: function(t) {
+ return true;
+ }
});
assert.throws(TypeError, function() {
- Object.preventExtensions(p);
+ Object.preventExtensions(p);
});
diff --git a/test/built-ins/Proxy/preventExtensions/return-true-target-is-not-extensible.js b/test/built-ins/Proxy/preventExtensions/return-true-target-is-not-extensible.js
index 14143824f..db2287b49 100644
--- a/test/built-ins/Proxy/preventExtensions/return-true-target-is-not-extensible.js
+++ b/test/built-ins/Proxy/preventExtensions/return-true-target-is-not-extensible.js
@@ -9,9 +9,9 @@ features: [Reflect]
var target = {};
var p = new Proxy(target, {
- preventExtensions: function(t) {
- return 1;
- }
+ preventExtensions: function(t) {
+ return 1;
+ }
});
Object.preventExtensions(target);
diff --git a/test/built-ins/Proxy/preventExtensions/trap-is-not-callable.js b/test/built-ins/Proxy/preventExtensions/trap-is-not-callable.js
index b3826aa21..2a42bfdd9 100644
--- a/test/built-ins/Proxy/preventExtensions/trap-is-not-callable.js
+++ b/test/built-ins/Proxy/preventExtensions/trap-is-not-callable.js
@@ -21,9 +21,9 @@ info: |
var target = {};
var p = new Proxy(target, {
- preventExtensions: {}
+ preventExtensions: {}
});
assert.throws(TypeError, function() {
- Object.preventExtensions(p);
+ Object.preventExtensions(p);
});
diff --git a/test/built-ins/Proxy/proxy-newtarget.js b/test/built-ins/Proxy/proxy-newtarget.js
index 9613eb4b9..3884cd44d 100644
--- a/test/built-ins/Proxy/proxy-newtarget.js
+++ b/test/built-ins/Proxy/proxy-newtarget.js
@@ -22,7 +22,7 @@ description: >
var p1 = new Proxy({}, {});
assert.sameValue(
- typeof p1,
- 'object',
- 'Return a newly created Object'
+ typeof p1,
+ 'object',
+ 'Return a newly created Object'
);
diff --git a/test/built-ins/Proxy/proxy-undefined-newtarget.js b/test/built-ins/Proxy/proxy-undefined-newtarget.js
index b06a7a886..9b8566e92 100644
--- a/test/built-ins/Proxy/proxy-undefined-newtarget.js
+++ b/test/built-ins/Proxy/proxy-undefined-newtarget.js
@@ -16,4 +16,3 @@ description: >
assert.throws(TypeError, function() {
Proxy({}, {});
});
-
diff --git a/test/built-ins/Proxy/revocable/proxy.js b/test/built-ins/Proxy/revocable/proxy.js
index b08d73c2e..32d4c27cd 100644
--- a/test/built-ins/Proxy/revocable/proxy.js
+++ b/test/built-ins/Proxy/revocable/proxy.js
@@ -12,12 +12,12 @@ info: |
---*/
var target = {
- attr: "foo"
+ attr: "foo"
};
var r = Proxy.revocable(target, {
- get: function(t, prop) {
- return t[prop] + "!";
- }
+ get: function(t, prop) {
+ return t[prop] + "!";
+ }
});
assert.sameValue(r.proxy.attr, "foo!");
diff --git a/test/built-ins/Proxy/revocable/revocation-function-nonconstructor.js b/test/built-ins/Proxy/revocable/revocation-function-nonconstructor.js
index 02fc9aa5c..1dd225538 100644
--- a/test/built-ins/Proxy/revocable/revocation-function-nonconstructor.js
+++ b/test/built-ins/Proxy/revocable/revocation-function-nonconstructor.js
@@ -14,4 +14,6 @@ info: |
var revocationFunction = Proxy.revocable({}, {}).revoke;
assert.sameValue(Object.prototype.hasOwnProperty.call(revocationFunction, "prototype"), false);
-assert.throws(TypeError, function() { new revocationFunction(); });
+assert.throws(TypeError, function() {
+ new revocationFunction();
+});
diff --git a/test/built-ins/Proxy/set/boolean-trap-result-is-false-boolean-return-false.js b/test/built-ins/Proxy/set/boolean-trap-result-is-false-boolean-return-false.js
index 0e7100cfc..7f30f31c9 100644
--- a/test/built-ins/Proxy/set/boolean-trap-result-is-false-boolean-return-false.js
+++ b/test/built-ins/Proxy/set/boolean-trap-result-is-false-boolean-return-false.js
@@ -11,9 +11,9 @@ features: [Reflect]
var target = {};
var handler = {
- set: function(t, prop, value, receiver) {
- return false;
- }
+ set: function(t, prop, value, receiver) {
+ return false;
+ }
};
var p = new Proxy(target, handler);
diff --git a/test/built-ins/Proxy/set/boolean-trap-result-is-false-null-return-false.js b/test/built-ins/Proxy/set/boolean-trap-result-is-false-null-return-false.js
index c6ca59a13..20ae2d490 100644
--- a/test/built-ins/Proxy/set/boolean-trap-result-is-false-null-return-false.js
+++ b/test/built-ins/Proxy/set/boolean-trap-result-is-false-null-return-false.js
@@ -11,9 +11,9 @@ features: [Reflect]
var target = {};
var handler = {
- set: function(t, prop, value, receiver) {
- return null;
- }
+ set: function(t, prop, value, receiver) {
+ return null;
+ }
};
var p = new Proxy(target, handler);
diff --git a/test/built-ins/Proxy/set/boolean-trap-result-is-false-number-return-false.js b/test/built-ins/Proxy/set/boolean-trap-result-is-false-number-return-false.js
index 58380a602..a1c4f2259 100644
--- a/test/built-ins/Proxy/set/boolean-trap-result-is-false-number-return-false.js
+++ b/test/built-ins/Proxy/set/boolean-trap-result-is-false-number-return-false.js
@@ -11,9 +11,9 @@ features: [Reflect]
var target = {};
var handler = {
- set: function(t, prop, value, receiver) {
- return 0;
- }
+ set: function(t, prop, value, receiver) {
+ return 0;
+ }
};
var p = new Proxy(target, handler);
diff --git a/test/built-ins/Proxy/set/boolean-trap-result-is-false-string-return-false.js b/test/built-ins/Proxy/set/boolean-trap-result-is-false-string-return-false.js
index 9d3783668..78f8d8ec5 100644
--- a/test/built-ins/Proxy/set/boolean-trap-result-is-false-string-return-false.js
+++ b/test/built-ins/Proxy/set/boolean-trap-result-is-false-string-return-false.js
@@ -11,9 +11,9 @@ features: [Reflect]
var target = {};
var handler = {
- set: function(t, prop, value, receiver) {
- return "";
- }
+ set: function(t, prop, value, receiver) {
+ return "";
+ }
};
var p = new Proxy(target, handler);
diff --git a/test/built-ins/Proxy/set/boolean-trap-result-is-false-undefined-return-false.js b/test/built-ins/Proxy/set/boolean-trap-result-is-false-undefined-return-false.js
index 3d05404a9..a17dd5a3f 100644
--- a/test/built-ins/Proxy/set/boolean-trap-result-is-false-undefined-return-false.js
+++ b/test/built-ins/Proxy/set/boolean-trap-result-is-false-undefined-return-false.js
@@ -11,9 +11,9 @@ features: [Reflect]
var target = {};
var handler = {
- set: function(t, prop, value, receiver) {
- return undefined;
- }
+ set: function(t, prop, value, receiver) {
+ return undefined;
+ }
};
var p = new Proxy(target, handler);
diff --git a/test/built-ins/Proxy/set/call-parameters.js b/test/built-ins/Proxy/set/call-parameters.js
index 812333e92..3b2fa4234 100644
--- a/test/built-ins/Proxy/set/call-parameters.js
+++ b/test/built-ins/Proxy/set/call-parameters.js
@@ -13,14 +13,14 @@ description: >
var _target, _handler, _prop, _value, _receiver;
var target = {};
var handler = {
- set: function(t, prop, value, receiver) {
- _handler = this;
- _target = t;
- _prop = prop;
- _value = value;
- _receiver = receiver;
- return t[prop] = value;
- }
+ set: function(t, prop, value, receiver) {
+ _handler = this;
+ _target = t;
+ _prop = prop;
+ _value = value;
+ _receiver = receiver;
+ return t[prop] = value;
+ }
};
var p = new Proxy(target, handler);
diff --git a/test/built-ins/Proxy/set/null-handler.js b/test/built-ins/Proxy/set/null-handler.js
index 3b2035085..637c43a46 100644
--- a/test/built-ins/Proxy/set/null-handler.js
+++ b/test/built-ins/Proxy/set/null-handler.js
@@ -13,9 +13,9 @@ var p = Proxy.revocable({}, {});
p.revoke();
assert.throws(TypeError, function() {
- p.proxy.attr = 1;
+ p.proxy.attr = 1;
});
assert.throws(TypeError, function() {
- p.proxy['attr'] = 1;
+ p.proxy['attr'] = 1;
});
diff --git a/test/built-ins/Proxy/set/return-is-abrupt.js b/test/built-ins/Proxy/set/return-is-abrupt.js
index 1da66bbda..6f6ee2b25 100644
--- a/test/built-ins/Proxy/set/return-is-abrupt.js
+++ b/test/built-ins/Proxy/set/return-is-abrupt.js
@@ -14,15 +14,15 @@ info: |
---*/
var p = new Proxy({}, {
- set: function(t, prop, value, receiver) {
- throw new Test262Error();
- }
+ set: function(t, prop, value, receiver) {
+ throw new Test262Error();
+ }
});
assert.throws(Test262Error, function() {
- p.attr = "bar";
+ p.attr = "bar";
});
assert.throws(Test262Error, function() {
- p["attr"] = "bar";
+ p["attr"] = "bar";
});
diff --git a/test/built-ins/Proxy/set/return-true-target-property-accessor-is-configurable-set-is-undefined.js b/test/built-ins/Proxy/set/return-true-target-property-accessor-is-configurable-set-is-undefined.js
index 11f356387..20e5f2a95 100644
--- a/test/built-ins/Proxy/set/return-true-target-property-accessor-is-configurable-set-is-undefined.js
+++ b/test/built-ins/Proxy/set/return-true-target-property-accessor-is-configurable-set-is-undefined.js
@@ -12,15 +12,15 @@ features: [Reflect]
var target = {};
var handler = {
- set: function(t, prop, value, receiver) {
- return true;
- }
+ set: function(t, prop, value, receiver) {
+ return true;
+ }
};
var p = new Proxy(target, handler);
Object.defineProperty(target, "attr", {
- configurable: true,
- set: undefined
+ configurable: true,
+ set: undefined
});
assert(Reflect.set(p, "attr", "bar"));
diff --git a/test/built-ins/Proxy/set/return-true-target-property-accessor-is-not-configurable.js b/test/built-ins/Proxy/set/return-true-target-property-accessor-is-not-configurable.js
index 0277b54c1..89547216d 100644
--- a/test/built-ins/Proxy/set/return-true-target-property-accessor-is-not-configurable.js
+++ b/test/built-ins/Proxy/set/return-true-target-property-accessor-is-not-configurable.js
@@ -12,17 +12,17 @@ features: [Reflect]
var target = {};
var handler = {
- set: function(t, prop, value, receiver) {
- return true;
- }
+ set: function(t, prop, value, receiver) {
+ return true;
+ }
};
var p = new Proxy(target, handler);
Object.defineProperty(target, 'attr', {
- configurable: false,
- set: function( value ) {
- return value;
- }
+ configurable: false,
+ set: function(value) {
+ return value;
+ }
});
assert(Reflect.set(p, "attr", 1));
diff --git a/test/built-ins/Proxy/set/return-true-target-property-is-not-configurable.js b/test/built-ins/Proxy/set/return-true-target-property-is-not-configurable.js
index 0bd1f6328..730ecafe1 100644
--- a/test/built-ins/Proxy/set/return-true-target-property-is-not-configurable.js
+++ b/test/built-ins/Proxy/set/return-true-target-property-is-not-configurable.js
@@ -12,16 +12,16 @@ features: [Reflect]
var target = {};
var handler = {
- set: function(t, prop, value, receiver) {
- return true;
- }
+ set: function(t, prop, value, receiver) {
+ return true;
+ }
};
var p = new Proxy(target, handler);
Object.defineProperty(target, 'attr', {
- configurable: false,
- writable: true,
- value: 'foo'
+ configurable: false,
+ writable: true,
+ value: 'foo'
});
assert(Reflect.set(p, "attr", 1));
diff --git a/test/built-ins/Proxy/set/return-true-target-property-is-not-writable.js b/test/built-ins/Proxy/set/return-true-target-property-is-not-writable.js
index 314d164ef..3fd7a5a95 100644
--- a/test/built-ins/Proxy/set/return-true-target-property-is-not-writable.js
+++ b/test/built-ins/Proxy/set/return-true-target-property-is-not-writable.js
@@ -12,16 +12,16 @@ features: [Reflect]
var target = {};
var handler = {
- set: function(t, prop, value, receiver) {
- return true;
- }
+ set: function(t, prop, value, receiver) {
+ return true;
+ }
};
var p = new Proxy(target, handler);
Object.defineProperty(target, "attr", {
- configurable: true,
- writable: false,
- value: "foo"
+ configurable: true,
+ writable: false,
+ value: "foo"
});
assert(Reflect.set(p, "attr", "foo"));
diff --git a/test/built-ins/Proxy/set/target-property-is-accessor-not-configurable-set-is-undefined.js b/test/built-ins/Proxy/set/target-property-is-accessor-not-configurable-set-is-undefined.js
index 5cdb2926a..582336903 100644
--- a/test/built-ins/Proxy/set/target-property-is-accessor-not-configurable-set-is-undefined.js
+++ b/test/built-ins/Proxy/set/target-property-is-accessor-not-configurable-set-is-undefined.js
@@ -16,21 +16,21 @@ info: |
var target = {};
var handler = {
- set: function(t, prop, value, receiver) {
- return true;
- }
+ set: function(t, prop, value, receiver) {
+ return true;
+ }
};
var p = new Proxy(target, handler);
Object.defineProperty(target, 'attr', {
- configurable: false,
- set: undefined
+ configurable: false,
+ set: undefined
});
assert.throws(TypeError, function() {
- p.attr = 'bar';
+ p.attr = 'bar';
});
assert.throws(TypeError, function() {
- p['attr'] = 'bar';
+ p['attr'] = 'bar';
});
diff --git a/test/built-ins/Proxy/set/target-property-is-not-configurable-not-writable-not-equal-to-v.js b/test/built-ins/Proxy/set/target-property-is-not-configurable-not-writable-not-equal-to-v.js
index 3e46bc33d..9bfd14990 100644
--- a/test/built-ins/Proxy/set/target-property-is-not-configurable-not-writable-not-equal-to-v.js
+++ b/test/built-ins/Proxy/set/target-property-is-not-configurable-not-writable-not-equal-to-v.js
@@ -17,22 +17,22 @@ info: |
var target = {};
var handler = {
- set: function(t, prop, value, receiver) {
- return true;
- }
+ set: function(t, prop, value, receiver) {
+ return true;
+ }
};
var p = new Proxy(target, handler);
Object.defineProperty(target, 'attr', {
- configurable: false,
- writable: false,
- value: 'foo'
+ configurable: false,
+ writable: false,
+ value: 'foo'
});
assert.throws(TypeError, function() {
- p.attr = 'bar';
+ p.attr = 'bar';
});
assert.throws(TypeError, function() {
- p['attr'] = 'bar';
+ p['attr'] = 'bar';
});
diff --git a/test/built-ins/Proxy/set/trap-is-not-callable.js b/test/built-ins/Proxy/set/trap-is-not-callable.js
index 1aef3ff16..cd3622d7c 100644
--- a/test/built-ins/Proxy/set/trap-is-not-callable.js
+++ b/test/built-ins/Proxy/set/trap-is-not-callable.js
@@ -16,13 +16,13 @@ info: |
---*/
var p = new Proxy({}, {
- set: {}
+ set: {}
});
assert.throws(TypeError, function() {
- p.attr = 1;
+ p.attr = 1;
});
assert.throws(TypeError, function() {
- p["attr"] = 1;
+ p["attr"] = 1;
});
diff --git a/test/built-ins/Proxy/set/trap-is-undefined-no-property.js b/test/built-ins/Proxy/set/trap-is-undefined-no-property.js
index f0b29b0ff..512cb83e1 100644
--- a/test/built-ins/Proxy/set/trap-is-undefined-no-property.js
+++ b/test/built-ins/Proxy/set/trap-is-undefined-no-property.js
@@ -10,7 +10,7 @@ description: >
---*/
var target = {
- attr: 1
+ attr: 1
};
var p = new Proxy(target, {});
diff --git a/test/built-ins/Proxy/set/trap-is-undefined-receiver.js b/test/built-ins/Proxy/set/trap-is-undefined-receiver.js
index f0074b9f1..4c915c494 100644
--- a/test/built-ins/Proxy/set/trap-is-undefined-receiver.js
+++ b/test/built-ins/Proxy/set/trap-is-undefined-receiver.js
@@ -14,12 +14,14 @@ info: |
var context;
var target = {
- set attr(val) {
- context = this;
- }
+ set attr(val) {
+ context = this;
+ }
};
-var p = new Proxy(target, { set: null });
+var p = new Proxy(target, {
+ set: null
+});
p.attr = 1;
assert.sameValue(context, p);
diff --git a/test/built-ins/Proxy/set/trap-is-undefined.js b/test/built-ins/Proxy/set/trap-is-undefined.js
index 82399fa34..06cadd7a0 100644
--- a/test/built-ins/Proxy/set/trap-is-undefined.js
+++ b/test/built-ins/Proxy/set/trap-is-undefined.js
@@ -10,10 +10,10 @@ description: >
---*/
var target = {
- attr: 1
+ attr: 1
};
var p = new Proxy(target, {
- get: undefined
+ get: undefined
});
p.attr = 1;
diff --git a/test/built-ins/Proxy/setPrototypeOf/call-parameters.js b/test/built-ins/Proxy/setPrototypeOf/call-parameters.js
index d85199ec0..ff44703df 100644
--- a/test/built-ins/Proxy/setPrototypeOf/call-parameters.js
+++ b/test/built-ins/Proxy/setPrototypeOf/call-parameters.js
@@ -15,17 +15,19 @@ info: |
var _handler, _target, _value;
var target = {};
-var val = {foo: 1};
+var val = {
+ foo: 1
+};
var handler = {
- setPrototypeOf: function(t, v) {
- _handler = this;
- _target = t;
- _value = v;
+ setPrototypeOf: function(t, v) {
+ _handler = this;
+ _target = t;
+ _value = v;
- Object.setPrototypeOf(t, v);
+ Object.setPrototypeOf(t, v);
- return true;
- }
+ return true;
+ }
};
var p = new Proxy(target, handler);
diff --git a/test/built-ins/Proxy/setPrototypeOf/null-handler.js b/test/built-ins/Proxy/setPrototypeOf/null-handler.js
index 4d4a7a6b6..8a78bc965 100644
--- a/test/built-ins/Proxy/setPrototypeOf/null-handler.js
+++ b/test/built-ins/Proxy/setPrototypeOf/null-handler.js
@@ -6,10 +6,10 @@ description: >
Throws a TypeError exception if handler is null
---*/
-var p = Proxy.revocable({},{});
+var p = Proxy.revocable({}, {});
p.revoke();
assert.throws(TypeError, function() {
- Object.setPrototypeOf(p.proxy, {});
+ Object.setPrototypeOf(p.proxy, {});
});
diff --git a/test/built-ins/Proxy/setPrototypeOf/return-abrupt-from-trap.js b/test/built-ins/Proxy/setPrototypeOf/return-abrupt-from-trap.js
index cb2ffaff1..292515d93 100644
--- a/test/built-ins/Proxy/setPrototypeOf/return-abrupt-from-trap.js
+++ b/test/built-ins/Proxy/setPrototypeOf/return-abrupt-from-trap.js
@@ -12,11 +12,13 @@ info: |
---*/
var p = new Proxy({}, {
- setPrototypeOf: function() {
- throw new Test262Error();
- }
+ setPrototypeOf: function() {
+ throw new Test262Error();
+ }
});
assert.throws(Test262Error, function() {
- Object.setPrototypeOf(p, {value: 1});
+ Object.setPrototypeOf(p, {
+ value: 1
+ });
});
diff --git a/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-false.js b/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-false.js
index f20f03326..e87fdf93d 100644
--- a/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-false.js
+++ b/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-false.js
@@ -32,30 +32,44 @@ var p = new Proxy(target, {
var result;
-result = Reflect.setPrototypeOf(p, { attr: false });
+result = Reflect.setPrototypeOf(p, {
+ attr: false
+});
assert.sameValue(result, false, "false");
assert.sameValue(called, 0, "false - isExtensible is not called");
-result = Reflect.setPrototypeOf(p, { attr: "" });
+result = Reflect.setPrototypeOf(p, {
+ attr: ""
+});
assert.sameValue(result, false, "the empty string");
assert.sameValue(called, 0, "the empty string - isExtensible is not called");
-result = Reflect.setPrototypeOf(p, { attr: 0 });
+result = Reflect.setPrototypeOf(p, {
+ attr: 0
+});
assert.sameValue(result, false, "0");
assert.sameValue(called, 0, "0 - isExtensible is not called");
-result = Reflect.setPrototypeOf(p, { attr: -0 });
+result = Reflect.setPrototypeOf(p, {
+ attr: -0
+});
assert.sameValue(result, false, "-0");
assert.sameValue(called, 0, "-0 - isExtensible is not called");
-result = Reflect.setPrototypeOf(p, { attr: null });
+result = Reflect.setPrototypeOf(p, {
+ attr: null
+});
assert.sameValue(result, false, "null");
assert.sameValue(called, 0, "null - isExtensible is not called");
-result = Reflect.setPrototypeOf(p, { attr: undefined });
+result = Reflect.setPrototypeOf(p, {
+ attr: undefined
+});
assert.sameValue(result, false, "undefined");
assert.sameValue(called, 0, "undefined - isExtensible is not called");
-result = Reflect.setPrototypeOf(p, { attr: NaN });
+result = Reflect.setPrototypeOf(p, {
+ attr: NaN
+});
assert.sameValue(result, false, "NaN");
assert.sameValue(called, 0, "NaN - isExtensible is not called");
diff --git a/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-true-target-is-extensible.js b/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-true-target-is-extensible.js
index 189bc701a..5353aaf00 100644
--- a/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-true-target-is-extensible.js
+++ b/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-true-target-is-extensible.js
@@ -36,31 +36,43 @@ var p = new Proxy(target, {
var result;
called = 0;
-result = Reflect.setPrototypeOf(p, { attr: true });
+result = Reflect.setPrototypeOf(p, {
+ attr: true
+});
assert.sameValue(result, true, "true");
assert.sameValue(called, 1, "true - isExtensible is called");
called = 0;
-result = Reflect.setPrototypeOf(p, { attr: "false" });
+result = Reflect.setPrototypeOf(p, {
+ attr: "false"
+});
assert.sameValue(result, true, "string");
assert.sameValue(called, 1, "string - isExtensible is called");
called = 0;
-result = Reflect.setPrototypeOf(p, { attr: 42 });
+result = Reflect.setPrototypeOf(p, {
+ attr: 42
+});
assert.sameValue(result, true, "42");
assert.sameValue(called, 1, "number - isExtensible is called");
called = 0;
-result = Reflect.setPrototypeOf(p, { attr: p });
+result = Reflect.setPrototypeOf(p, {
+ attr: p
+});
assert.sameValue(result, true, "p");
assert.sameValue(called, 1, "object - isExtensible is called");
called = 0;
-result = Reflect.setPrototypeOf(p, { attr: [] });
+result = Reflect.setPrototypeOf(p, {
+ attr: []
+});
assert.sameValue(result, true, "[]");
assert.sameValue(called, 1, "[] - isExtensible is called");
called = 0;
-result = Reflect.setPrototypeOf(p, { attr: Symbol(1) });
+result = Reflect.setPrototypeOf(p, {
+ attr: Symbol(1)
+});
assert.sameValue(result, true, "symbol");
assert.sameValue(called, 1, "symbol - isExtensible is called");
diff --git a/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable-realm.js b/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable-realm.js
index bb0e9cf4b..7e7b7212d 100644
--- a/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable-realm.js
+++ b/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable-realm.js
@@ -29,7 +29,7 @@ var p = new OProxy({}, {
});
assert.throws(TypeError, function() {
- Object.setPrototypeOf(p, {
- value: 1
- });
+ Object.setPrototypeOf(p, {
+ value: 1
+ });
});
diff --git a/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable.js b/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable.js
index 6a4d3395e..c6977adb3 100644
--- a/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable.js
+++ b/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable.js
@@ -23,11 +23,11 @@ features: [Reflect.setPrototypeOf]
var target = {};
var p = new Proxy(target, {
- setPrototypeOf: {}
+ setPrototypeOf: {}
});
assert.throws(TypeError, function() {
- Reflect.setPrototypeOf(p, {
- value: 1
- });
+ Reflect.setPrototypeOf(p, {
+ value: 1
+ });
});
diff --git a/test/built-ins/Reflect/apply/call-target.js b/test/built-ins/Reflect/apply/call-target.js
index b5b3d97a2..bf07a0bfb 100644
--- a/test/built-ins/Reflect/apply/call-target.js
+++ b/test/built-ins/Reflect/apply/call-target.js
@@ -15,6 +15,7 @@ info: |
var o = {};
var count = 0;
var results, args;
+
function fn() {
count++;
results = {
diff --git a/test/built-ins/Reflect/apply/return-target-call-result.js b/test/built-ins/Reflect/apply/return-target-call-result.js
index 9780efdf8..b506a8091 100644
--- a/test/built-ins/Reflect/apply/return-target-call-result.js
+++ b/test/built-ins/Reflect/apply/return-target-call-result.js
@@ -13,6 +13,7 @@ info: |
---*/
var o = {};
+
function fn() {
return o;
}
diff --git a/test/built-ins/Reflect/construct/return-with-newtarget-argument.js b/test/built-ins/Reflect/construct/return-with-newtarget-argument.js
index 0f9294850..90f816297 100644
--- a/test/built-ins/Reflect/construct/return-with-newtarget-argument.js
+++ b/test/built-ins/Reflect/construct/return-with-newtarget-argument.js
@@ -15,6 +15,7 @@ info: |
var o = {};
var internPrototype;
+
function fn() {
this.o = o;
internPrototype = Object.getPrototypeOf(this);
diff --git a/test/built-ins/Reflect/construct/return-without-newtarget-argument.js b/test/built-ins/Reflect/construct/return-without-newtarget-argument.js
index ef5ef9a2b..db88a02a2 100644
--- a/test/built-ins/Reflect/construct/return-without-newtarget-argument.js
+++ b/test/built-ins/Reflect/construct/return-without-newtarget-argument.js
@@ -14,6 +14,7 @@ info: |
---*/
var o = {};
+
function fn() {
this.o = o;
}
diff --git a/test/built-ins/Reflect/defineProperty/return-boolean.js b/test/built-ins/Reflect/defineProperty/return-boolean.js
index da84e3fb7..78a069ae5 100644
--- a/test/built-ins/Reflect/defineProperty/return-boolean.js
+++ b/test/built-ins/Reflect/defineProperty/return-boolean.js
@@ -17,16 +17,22 @@ o.p1 = 'foo';
assert.sameValue(Reflect.defineProperty(o, 'p1', {}), true);
assert.sameValue(o.hasOwnProperty('p1'), true);
-assert.sameValue(Reflect.defineProperty(o, 'p2', {value: 42}), true);
+assert.sameValue(Reflect.defineProperty(o, 'p2', {
+ value: 42
+}), true);
assert.sameValue(o.hasOwnProperty('p2'), true);
Object.freeze(o);
-assert.sameValue(Reflect.defineProperty(o, 'p2', {value: 43}), false);
+assert.sameValue(Reflect.defineProperty(o, 'p2', {
+ value: 43
+}), false);
assert.sameValue(o.p2, 42);
assert.sameValue(Reflect.defineProperty(o, 'p3', {}), false);
assert.sameValue(o.hasOwnProperty('p4'), false);
-assert.sameValue(Reflect.defineProperty(o, 'p4', {value: 1}), false);
+assert.sameValue(Reflect.defineProperty(o, 'p4', {
+ value: 1
+}), false);
assert.sameValue(o.hasOwnProperty('p4'), false);
diff --git a/test/built-ins/Reflect/get/return-value.js b/test/built-ins/Reflect/get/return-value.js
index 605a0784f..c000d52c5 100644
--- a/test/built-ins/Reflect/get/return-value.js
+++ b/test/built-ins/Reflect/get/return-value.js
@@ -55,7 +55,9 @@ assert.sameValue(
'Return Call(getter, Receiver)'
);
-var o2 = Object.create({p: 42});
+var o2 = Object.create({
+ p: 42
+});
assert.sameValue(
Reflect.get(o2, 'p'), 42,
'Return value from prototype without own property.'
diff --git a/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-accessor-descriptor.js b/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-accessor-descriptor.js
index da87197bd..4168de3ec 100644
--- a/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-accessor-descriptor.js
+++ b/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-accessor-descriptor.js
@@ -46,8 +46,7 @@ var result = Reflect.getOwnPropertyDescriptor(o1, 'p');
assert(
compareArray(
- Object.keys(result),
- ['get', 'set', 'enumerable', 'configurable']
+ Object.keys(result), ['get', 'set', 'enumerable', 'configurable']
)
);
assert.sameValue(result.enumerable, false);
diff --git a/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-data-descriptor.js b/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-data-descriptor.js
index 41ea3103f..79694d89a 100644
--- a/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-data-descriptor.js
+++ b/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-data-descriptor.js
@@ -22,8 +22,7 @@ var result = Reflect.getOwnPropertyDescriptor(o1, 'p');
assert(
compareArray(
- Object.keys(result),
- ['value', 'writable', 'enumerable', 'configurable']
+ Object.keys(result), ['value', 'writable', 'enumerable', 'configurable']
)
);
assert.sameValue(result.value, 'foo');
diff --git a/test/built-ins/Reflect/getOwnPropertyDescriptor/symbol-property.js b/test/built-ins/Reflect/getOwnPropertyDescriptor/symbol-property.js
index 7332d0ba5..496773613 100644
--- a/test/built-ins/Reflect/getOwnPropertyDescriptor/symbol-property.js
+++ b/test/built-ins/Reflect/getOwnPropertyDescriptor/symbol-property.js
@@ -29,8 +29,7 @@ var result = Reflect.getOwnPropertyDescriptor(o, s);
assert(
compareArray(
- Object.keys(result),
- ['value', 'writable', 'enumerable', 'configurable']
+ Object.keys(result), ['value', 'writable', 'enumerable', 'configurable']
)
);
assert.sameValue(result.value, 42);
diff --git a/test/built-ins/Reflect/getOwnPropertyDescriptor/undefined-own-property.js b/test/built-ins/Reflect/getOwnPropertyDescriptor/undefined-own-property.js
index 6de0bd7e5..0f97d52c5 100644
--- a/test/built-ins/Reflect/getOwnPropertyDescriptor/undefined-own-property.js
+++ b/test/built-ins/Reflect/getOwnPropertyDescriptor/undefined-own-property.js
@@ -17,7 +17,9 @@ info: |
1. If Desc is undefined, return undefined.
---*/
-var o = Object.create({p: 1});
+var o = Object.create({
+ p: 1
+});
var result = Reflect.getOwnPropertyDescriptor(o, 'p');
assert.sameValue(result, undefined);
diff --git a/test/built-ins/Reflect/getPrototypeOf/skip-own-properties.js b/test/built-ins/Reflect/getPrototypeOf/skip-own-properties.js
index 7532b4ade..f035cb328 100644
--- a/test/built-ins/Reflect/getPrototypeOf/skip-own-properties.js
+++ b/test/built-ins/Reflect/getPrototypeOf/skip-own-properties.js
@@ -13,7 +13,10 @@ info: |
var valid = {};
var o = Object.create(valid, {
- prototype: {value: 'invalid', enumerable: true}
+ prototype: {
+ value: 'invalid',
+ enumerable: true
+ }
});
assert.sameValue(
diff --git a/test/built-ins/Reflect/has/return-boolean.js b/test/built-ins/Reflect/has/return-boolean.js
index 7d971705b..6b74da5f5 100644
--- a/test/built-ins/Reflect/has/return-boolean.js
+++ b/test/built-ins/Reflect/has/return-boolean.js
@@ -33,5 +33,7 @@ assert.sameValue(
'false when property is not present'
);
-var o2 = Object.create({p: 42});
+var o2 = Object.create({
+ p: 42
+});
assert.sameValue(Reflect.has(o2, 'p'), true, 'true from a prototype property');
diff --git a/test/built-ins/Reflect/ownKeys/return-empty-array.js b/test/built-ins/Reflect/ownKeys/return-empty-array.js
index e2ca63512..103875e68 100644
--- a/test/built-ins/Reflect/ownKeys/return-empty-array.js
+++ b/test/built-ins/Reflect/ownKeys/return-empty-array.js
@@ -16,6 +16,8 @@ includes: [compareArray.js]
assert(compareArray(Reflect.ownKeys({}), []));
-var o = {d: 42};
+var o = {
+ d: 42
+};
delete o.d;
assert(compareArray(Reflect.ownKeys(o), []));
diff --git a/test/built-ins/Reflect/ownKeys/return-non-enumerable-keys.js b/test/built-ins/Reflect/ownKeys/return-non-enumerable-keys.js
index f3eab256e..282b90baa 100644
--- a/test/built-ins/Reflect/ownKeys/return-non-enumerable-keys.js
+++ b/test/built-ins/Reflect/ownKeys/return-non-enumerable-keys.js
@@ -20,7 +20,7 @@ assert(
);
assert(
- compareArray(Reflect.ownKeys([,,2]), ['2', 'length']),
+ compareArray(Reflect.ownKeys([, , 2]), ['2', 'length']),
'return array keys'
);
diff --git a/test/built-ins/Reflect/set/creates-a-data-descriptor.js b/test/built-ins/Reflect/set/creates-a-data-descriptor.js
index bed865533..8b99a236b 100644
--- a/test/built-ins/Reflect/set/creates-a-data-descriptor.js
+++ b/test/built-ins/Reflect/set/creates-a-data-descriptor.js
@@ -75,4 +75,3 @@ assert.sameValue(
verifyWritable(receiver, 'p');
verifyEnumerable(receiver, 'p');
verifyConfigurable(receiver, 'p');
-
diff --git a/test/built-ins/Reflect/set/different-property-descriptors.js b/test/built-ins/Reflect/set/different-property-descriptors.js
index 191c1c21e..fab96a084 100644
--- a/test/built-ins/Reflect/set/different-property-descriptors.js
+++ b/test/built-ins/Reflect/set/different-property-descriptors.js
@@ -52,7 +52,9 @@ assert.sameValue(
);
assert.sameValue(o1.hasOwnProperty('p'), false, 'target.p is not set');
-var o2 = {p: 43};
+var o2 = {
+ p: 43
+};
result = Reflect.set(o2, 'p', 42, receiver);
assert.sameValue(
result, false,
diff --git a/test/built-ins/Reflect/set/receiver-is-not-object.js b/test/built-ins/Reflect/set/receiver-is-not-object.js
index b3f32bac6..bbabeddb3 100644
--- a/test/built-ins/Reflect/set/receiver-is-not-object.js
+++ b/test/built-ins/Reflect/set/receiver-is-not-object.js
@@ -29,7 +29,9 @@ info: |
...
---*/
-var o1 = {p: 42};
+var o1 = {
+ p: 42
+};
var receiver = 'receiver is a string';
var result = Reflect.set(o1, 'p', 43, receiver);
diff --git a/test/built-ins/Reflect/set/set-value-on-accessor-descriptor.js b/test/built-ins/Reflect/set/set-value-on-accessor-descriptor.js
index 4f820eb4a..9f484da63 100644
--- a/test/built-ins/Reflect/set/set-value-on-accessor-descriptor.js
+++ b/test/built-ins/Reflect/set/set-value-on-accessor-descriptor.js
@@ -42,4 +42,3 @@ assert.sameValue(
assert.sameValue(args.length, 1, 'target.p set is called with 1 argument');
assert.sameValue(args[0], 42, 'target.p set is called with V');
assert.sameValue(count, 1, 'target.p set is called once');
-
diff --git a/test/built-ins/Reflect/set/set-value-on-data-descriptor.js b/test/built-ins/Reflect/set/set-value-on-data-descriptor.js
index 3d8291cb2..6aeaaa2f4 100644
--- a/test/built-ins/Reflect/set/set-value-on-data-descriptor.js
+++ b/test/built-ins/Reflect/set/set-value-on-data-descriptor.js
@@ -30,7 +30,9 @@ info: |
...
---*/
-var o1 = {p: 43};
+var o1 = {
+ p: 43
+};
var result = Reflect.set(o1, 'p', 42);
assert.sameValue(result, true, 'returns true on a successful setting');
assert.sameValue(
@@ -38,8 +40,12 @@ assert.sameValue(
'sets the new value'
);
-var o2 = {p: 43};
-var receiver = {p: 44};
+var o2 = {
+ p: 43
+};
+var receiver = {
+ p: 44
+};
var result = Reflect.set(o2, 'p', 42, receiver);
assert.sameValue(result, true, 'returns true on a successful setting');
assert.sameValue(o2.p, 43, 'with a receiver, does not set a value on target');
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T1.js b/test/built-ins/RegExp/S15.10.1_A1_T1.js
index f9c79821d..6e905fc60 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T1.js
@@ -9,9 +9,9 @@ description: Tested RegExp is "a**"
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("a**") throw SyntaxError. Actual: ' + (new RegExp("a**")));
+ $ERROR('#1.1: new RegExp("a**") throw SyntaxError. Actual: ' + (new RegExp("a**")));
} catch (e) {
- if ((e instanceof SyntaxError !== true)) {
- $ERROR('#1.2: new RegExp("a**") throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError !== true)) {
+ $ERROR('#1.2: new RegExp("a**") throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T10.js b/test/built-ins/RegExp/S15.10.1_A1_T10.js
index 624547011..8245cb8dd 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T10.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T10.js
@@ -9,9 +9,9 @@ description: Tested RegExp is "++a"
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("++a") throw SyntaxError. Actual: ' + (new RegExp("++a")));
+ $ERROR('#1.1: new RegExp("++a") throw SyntaxError. Actual: ' + (new RegExp("++a")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("++a") throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("++a") throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T11.js b/test/built-ins/RegExp/S15.10.1_A1_T11.js
index fc9c25790..1aabb2cc0 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T11.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T11.js
@@ -9,9 +9,9 @@ description: Tested RegExp is "?a"
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("?a") throw SyntaxError. Actual: ' + (new RegExp("?a")));
+ $ERROR('#1.1: new RegExp("?a") throw SyntaxError. Actual: ' + (new RegExp("?a")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("?a") throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("?a") throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T12.js b/test/built-ins/RegExp/S15.10.1_A1_T12.js
index cfaa01bbf..ca7a56f73 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T12.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T12.js
@@ -9,9 +9,9 @@ description: Tested RegExp is "??a"
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("??a") throw SyntaxError. Actual: ' + (new RegExp("??a")));
+ $ERROR('#1.1: new RegExp("??a") throw SyntaxError. Actual: ' + (new RegExp("??a")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("??a") throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("??a") throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T13.js b/test/built-ins/RegExp/S15.10.1_A1_T13.js
index 44d78f511..676dda30e 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T13.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T13.js
@@ -9,9 +9,9 @@ description: Tested RegExp is "x{1}{1,}"
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("x{1}{1,}") throw SyntaxError. Actual: ' + (new RegExp("x{1}{1,}")));
+ $ERROR('#1.1: new RegExp("x{1}{1,}") throw SyntaxError. Actual: ' + (new RegExp("x{1}{1,}")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("x{1}{1,}") throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("x{1}{1,}") throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T14.js b/test/built-ins/RegExp/S15.10.1_A1_T14.js
index bd04b4980..034688f20 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T14.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T14.js
@@ -9,9 +9,9 @@ description: Tested RegExp is "x{1,2}{1}"
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("x{1,2}{1}") throw SyntaxError. Actual: ' + (new RegExp("x{1,2}{1}")));
+ $ERROR('#1.1: new RegExp("x{1,2}{1}") throw SyntaxError. Actual: ' + (new RegExp("x{1,2}{1}")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("x{1,2}{1}") throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("x{1,2}{1}") throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T15.js b/test/built-ins/RegExp/S15.10.1_A1_T15.js
index 246027320..f114cbe20 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T15.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T15.js
@@ -9,9 +9,9 @@ description: Tested RegExp is "x{1,}{1}"
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("x{1,}{1}") throw SyntaxError. Actual: ' + (new RegExp("x{1,}{1}")));
+ $ERROR('#1.1: new RegExp("x{1,}{1}") throw SyntaxError. Actual: ' + (new RegExp("x{1,}{1}")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("x{1,}{1}") throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("x{1,}{1}") throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T16.js b/test/built-ins/RegExp/S15.10.1_A1_T16.js
index 0b27a8845..386080551 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T16.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T16.js
@@ -9,9 +9,9 @@ description: Tested RegExp is "x{0,1}{1,}"
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("x{0,1}{1,}") throw SyntaxError. Actual: ' + (new RegExp("x{0,1}{1,}")));
+ $ERROR('#1.1: new RegExp("x{0,1}{1,}") throw SyntaxError. Actual: ' + (new RegExp("x{0,1}{1,}")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("x{0,1}{1,}") throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("x{0,1}{1,}") throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T2.js b/test/built-ins/RegExp/S15.10.1_A1_T2.js
index d461df5c2..da514d132 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T2.js
@@ -9,9 +9,9 @@ description: Tested RegExp is "a***"
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("a***") throw SyntaxError. Actual: ' + (new RegExp("a***")));
+ $ERROR('#1.1: new RegExp("a***") throw SyntaxError. Actual: ' + (new RegExp("a***")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("a***") throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("a***") throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T3.js b/test/built-ins/RegExp/S15.10.1_A1_T3.js
index 5d3eb8afa..3a10610e2 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T3.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T3.js
@@ -9,9 +9,9 @@ description: Tested RegExp is "a++"
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("a++") throw SyntaxError. Actual: ' + (new RegExp("a++")));
+ $ERROR('#1.1: new RegExp("a++") throw SyntaxError. Actual: ' + (new RegExp("a++")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("a++") throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("a++") throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T4.js b/test/built-ins/RegExp/S15.10.1_A1_T4.js
index 3be64a51c..d8050b763 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T4.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T4.js
@@ -9,9 +9,9 @@ description: Tested RegExp is "a+++"
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("a+++") throw SyntaxError. Actual: ' + (new RegExp("a+++")));
+ $ERROR('#1.1: new RegExp("a+++") throw SyntaxError. Actual: ' + (new RegExp("a+++")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("a+++") throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("a+++") throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T5.js b/test/built-ins/RegExp/S15.10.1_A1_T5.js
index 58130c947..fde444c9a 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T5.js
@@ -9,9 +9,9 @@ description: Tested RegExp is "a???"
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("a???") throw SyntaxError. Actual: ' + (new RegExp("a???")));
+ $ERROR('#1.1: new RegExp("a???") throw SyntaxError. Actual: ' + (new RegExp("a???")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("a???") throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("a???") throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T6.js b/test/built-ins/RegExp/S15.10.1_A1_T6.js
index 68be6d283..f926b910a 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T6.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T6.js
@@ -9,9 +9,9 @@ description: Tested RegExp is "a????"
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("a????") throw SyntaxError. Actual: ' + (new RegExp("a????")));
+ $ERROR('#1.1: new RegExp("a????") throw SyntaxError. Actual: ' + (new RegExp("a????")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("a????") throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("a????") throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T7.js b/test/built-ins/RegExp/S15.10.1_A1_T7.js
index adfd0967a..b3641bfbe 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T7.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T7.js
@@ -9,9 +9,9 @@ description: Tested RegExp is "*a"
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("*a") throw SyntaxError. Actual: ' + (new RegExp("*a")));
+ $ERROR('#1.1: new RegExp("*a") throw SyntaxError. Actual: ' + (new RegExp("*a")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("*a") throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("*a") throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T8.js b/test/built-ins/RegExp/S15.10.1_A1_T8.js
index 1d3e53b57..69ef89717 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T8.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T8.js
@@ -9,9 +9,9 @@ description: Tested RegExp is "**a"
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("**a") throw SyntaxError. Actual: ' + (new RegExp("**a")));
+ $ERROR('#1.1: new RegExp("**a") throw SyntaxError. Actual: ' + (new RegExp("**a")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("**a") throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("**a") throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.1_A1_T9.js b/test/built-ins/RegExp/S15.10.1_A1_T9.js
index 91cbdc7f9..d39c4b6b9 100644
--- a/test/built-ins/RegExp/S15.10.1_A1_T9.js
+++ b/test/built-ins/RegExp/S15.10.1_A1_T9.js
@@ -9,9 +9,9 @@ description: Tested RegExp is "+a"
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("+a") throw SyntaxError. Actual: ' + (new RegExp("+a")));
+ $ERROR('#1.1: new RegExp("+a") throw SyntaxError. Actual: ' + (new RegExp("+a")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("+a") throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("+a") throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.10_A2.1_T1.js b/test/built-ins/RegExp/S15.10.2.10_A2.1_T1.js
index a12c544b1..405e199a7 100644
--- a/test/built-ins/RegExp/S15.10.2.10_A2.1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.10_A2.1_T1.js
@@ -8,10 +8,10 @@ description: "ControlLetter :: A - Z"
---*/
//CHECK#0041-005A
-var result = true;
+var result = true;
for (var alpha = 0x0041; alpha <= 0x005A; alpha++) {
var str = String.fromCharCode(alpha % 32);
- var arr = (new RegExp("\\c" + String.fromCharCode(alpha))).exec(str);
+ var arr = (new RegExp("\\c" + String.fromCharCode(alpha))).exec(str);
if ((arr === null) || (arr[0] !== str)) {
result = false;
}
diff --git a/test/built-ins/RegExp/S15.10.2.10_A2.1_T2.js b/test/built-ins/RegExp/S15.10.2.10_A2.1_T2.js
index c2fb1bd6e..746fdf093 100644
--- a/test/built-ins/RegExp/S15.10.2.10_A2.1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.10_A2.1_T2.js
@@ -8,10 +8,10 @@ description: "ControlLetter :: a - z"
---*/
//CHECK#0061-007A
-var result = true;
+var result = true;
for (var alpha = 0x0061; alpha <= 0x007A; alpha++) {
var str = String.fromCharCode(alpha % 32);
- var arr = (new RegExp("\\c" + String.fromCharCode(alpha))).exec(str);
+ var arr = (new RegExp("\\c" + String.fromCharCode(alpha))).exec(str);
if ((arr === null) || (arr[0] !== str)) {
result = false;
}
diff --git a/test/built-ins/RegExp/S15.10.2.10_A3.1_T1.js b/test/built-ins/RegExp/S15.10.2.10_A3.1_T1.js
index 3a7049b72..0dae484f9 100644
--- a/test/built-ins/RegExp/S15.10.2.10_A3.1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.10_A3.1_T1.js
@@ -8,25 +8,25 @@ description: Tested string include equal unicode symbols
---*/
//CHECK#0
-var arr = /\x00/.exec("\u0000");
+var arr = /\x00/.exec("\u0000");
if ((arr === null) || (arr[0] !== "\u0000")) {
$ERROR('#0: var arr = /\\x00/.exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0]));
}
//CHECK#1
-var arr = /\x01/.exec("\u0001");
+var arr = /\x01/.exec("\u0001");
if ((arr === null) || (arr[0] !== "\u0001")) {
$ERROR('#1: var arr = /\\x01/.exec(\\u0001); arr[0] === "\\u0001". Actual. ' + (arr && arr[0]));
}
//CHECK#2
-var arr = /\x0A/.exec("\u000A");
+var arr = /\x0A/.exec("\u000A");
if ((arr === null) || (arr[0] !== "\u000A")) {
$ERROR('#2: var arr = /\\x0A/.exec(\\u000A); arr[0] === "\\u000A". Actual. ' + (arr && arr[0]));
}
//CHECK#3
-var arr = /\xFF/.exec("\u00FF");
+var arr = /\xFF/.exec("\u00FF");
if ((arr === null) || (arr[0] !== "\u00FF")) {
$ERROR('#3: var arr = /\\xFF/.exec(\\u00FF); arr[0] === "\\u00FF". Actual. ' + (arr && arr[0]));
}
diff --git a/test/built-ins/RegExp/S15.10.2.10_A3.1_T2.js b/test/built-ins/RegExp/S15.10.2.10_A3.1_T2.js
index 3f99f9eef..fdd2fa800 100644
--- a/test/built-ins/RegExp/S15.10.2.10_A3.1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.10_A3.1_T2.js
@@ -12,7 +12,7 @@ var hex = ["\\x41", "\\x42", "\\x43", "\\x44", "\\x45", "\\x46", "\\x47", "\\x48
var character = ["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 result = true;
for (var index = 0; index < hex.length; index++) {
- var arr = (new RegExp(hex[index])).exec(character[index]);
+ var arr = (new RegExp(hex[index])).exec(character[index]);
if ((arr === null) || (arr[0] !== character[index])) {
result = false;
}
@@ -20,14 +20,14 @@ for (var index = 0; index < hex.length; index++) {
if (result !== true) {
$ERROR('#1: ENGLISH CAPITAL ALPHABET');
-}
+}
//CHECK#61-7A
hex = ["\\x61", "\\x62", "\\x63", "\\x64", "\\x65", "\\x66", "\\x67", "\\x68", "\\x69", "\\x6A", "\\x6B", "\\x6C", "\\x6D", "\\x6E", "\\x6F", "\\x70", "\\x71", "\\x72", "\\x73", "\\x74", "\\x75", "\\x76", "\\x77", "\\x78", "\\x79", "\\x7A"];
character = ["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 result = true;
for (index = 0; index < hex.length; index++) {
- arr = (new RegExp(hex[index])).exec(character[index]);
+ arr = (new RegExp(hex[index])).exec(character[index]);
if ((arr === null) || (arr[0] !== character[index])) {
result = false;
}
diff --git a/test/built-ins/RegExp/S15.10.2.10_A4.1_T1.js b/test/built-ins/RegExp/S15.10.2.10_A4.1_T1.js
index 3d84b9216..6d1b5d627 100644
--- a/test/built-ins/RegExp/S15.10.2.10_A4.1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.10_A4.1_T1.js
@@ -10,37 +10,37 @@ description: RegExp and tested string include uncode symbols
---*/
//CHECK#0
-var arr = /\u0000/.exec("\u0000");
+var arr = /\u0000/.exec("\u0000");
if ((arr === null) || (arr[0] !== "\u0000")) {
$ERROR('#0: var arr = /\\u0000/.exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0]));
}
//CHECK#1
-var arr = /\u0001/.exec("\u0001");
+var arr = /\u0001/.exec("\u0001");
if ((arr === null) || (arr[0] !== "\u0001")) {
$ERROR('#1: var arr = /\\u0001/.exec(\\u0001); arr[0] === "\\u0001". Actual. ' + (arr && arr[0]));
}
//CHECK#2
-var arr = /\u000A/.exec("\u000A");
+var arr = /\u000A/.exec("\u000A");
if ((arr === null) || (arr[0] !== "\u000A")) {
$ERROR('#2: var arr = /\\u000A/.exec(\\u000A); arr[0] === "\\u000A". Actual. ' + (arr && arr[0]));
}
//CHECK#3
-var arr = /\u00FF/.exec("\u00FF");
+var arr = /\u00FF/.exec("\u00FF");
if ((arr === null) || (arr[0] !== "\u00FF")) {
$ERROR('#3: var arr = /\\u00FF/.exec(\\u00FF); arr[0] === "\\u00FF". Actual. ' + (arr && arr[0]));
}
//CHECK#4
-var arr = /\u0FFF/.exec("\u0FFF");
+var arr = /\u0FFF/.exec("\u0FFF");
if ((arr === null) || (arr[0] !== "\u0FFF")) {
$ERROR('#4: var arr = /\\u0FFF/.exec(\\u0FFF); arr[0] === "\\u0FFF". Actual. ' + (arr && arr[0]));
}
//CHECK#5
-var arr = /\uFFFF/.exec("\uFFFF");
+var arr = /\uFFFF/.exec("\uFFFF");
if ((arr === null) || (arr[0] !== "\uFFFF")) {
$ERROR('#5: var arr = /\\uFFFF/.exec(\\uFFFF); arr[0] === "\\uFFFF". Actual. ' + (arr && arr[0]));
}
diff --git a/test/built-ins/RegExp/S15.10.2.10_A4.1_T2.js b/test/built-ins/RegExp/S15.10.2.10_A4.1_T2.js
index 0e0ed3092..d7dfb0fd0 100644
--- a/test/built-ins/RegExp/S15.10.2.10_A4.1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.10_A4.1_T2.js
@@ -16,7 +16,7 @@ var hex = ["\\u0041", "\\u0042", "\\u0043", "\\u0044", "\\u0045", "\\u0046", "\\
var character = ["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 result = true;
for (var index = 0; index < hex.length; index++) {
- var arr = (new RegExp(hex[index])).exec(character[index]);
+ var arr = (new RegExp(hex[index])).exec(character[index]);
if ((arr === null) || (arr[0] !== character[index])) {
result = false;
}
@@ -24,14 +24,14 @@ for (var index = 0; index < hex.length; index++) {
if (result !== true) {
$ERROR('#1: ENGLISH CAPITAL ALPHABET');
-}
+}
//CHECK#61-7A
hex = ["\\u0061", "\\u0062", "\\u0063", "\\u0064", "\\u0065", "\\u0066", "\\u0067", "\\u0068", "\\u0069", "\\u006A", "\\u006B", "\\u006C", "\\u006D", "\\u006E", "\\u006F", "\\u0070", "\\u0071", "\\u0072", "\\u0073", "\\u0074", "\\u0075", "\\u0076", "\\u0077", "\\u0078", "\\u0079", "\\u007A"];
character = ["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 result = true;
for (index = 0; index < hex.length; index++) {
- arr = (new RegExp(hex[index])).exec(character[index]);
+ arr = (new RegExp(hex[index])).exec(character[index]);
if ((arr === null) || (arr[0] !== character[index])) {
result = false;
}
diff --git a/test/built-ins/RegExp/S15.10.2.10_A4.1_T3.js b/test/built-ins/RegExp/S15.10.2.10_A4.1_T3.js
index 0b2c0e38a..f6f418d72 100644
--- a/test/built-ins/RegExp/S15.10.2.10_A4.1_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.10_A4.1_T3.js
@@ -16,7 +16,7 @@ var hex = ["\\u0410", "\\u0411", "\\u0412", "\\u0413", "\\u0414", "\\u0415", "\\
var character = ["\u0410", "\u0411", "\u0412", "\u0413", "\u0414", "\u0415", "\u0416", "\u0417", "\u0418", "\u0419", "\u041A", "\u041B", "\u041C", "\u041D", "\u041E", "\u041F", "\u0420", "\u0421", "\u0422", "\u0423", "\u0424", "\u0425", "\u0426", "\u0427", "\u0428", "\u0429", "\u042A", "\u042B", "\u042C", "\u042D", "\u042E", "\u042F", "\u0401"];
var result = true;
for (var index = 0; index < hex.length; index++) {
- var arr = (new RegExp(hex[index])).exec(character[index]);
+ var arr = (new RegExp(hex[index])).exec(character[index]);
if ((arr === null) || (arr[0] !== character[index])) {
result = false;
}
@@ -24,14 +24,14 @@ for (var index = 0; index < hex.length; index++) {
if (result !== true) {
$ERROR('#1: RUSSIAN CAPITAL ALPHABET');
-}
+}
//CHECK#0430-044F, 0451
hex = ["\\u0430", "\\u0431", "\\u0432", "\\u0433", "\\u0434", "\\u0435", "\\u0436", "\\u0437", "\\u0438", "\\u0439", "\\u043A", "\\u043B", "\\u043C", "\\u043D", "\\u043E", "\\u043F", "\\u0440", "\\u0441", "\\u0442", "\\u0443", "\\u0444", "\\u0445", "\\u0446", "\\u0447", "\\u0448", "\\u0449", "\\u044A", "\\u044B", "\\u044C", "\\u044D", "\\u044E", "\\u044F", "\\u0451"];
character = ["\u0430", "\u0431", "\u0432", "\u0433", "\u0434", "\u0435", "\u0436", "\u0437", "\u0438", "\u0439", "\u043A", "\u043B", "\u043C", "\u043D", "\u043E", "\u043F", "\u0440", "\u0441", "\u0442", "\u0443", "\u0444", "\u0445", "\u0446", "\u0447", "\u0448", "\u0449", "\u044A", "\u044B", "\u044C", "\u044D", "\u044E", "\u044F", "\u0451"];
var result = true;
for (index = 0; index < hex.length; index++) {
- arr = (new RegExp(hex[index])).exec(character[index]);
+ arr = (new RegExp(hex[index])).exec(character[index]);
if ((arr === null) || (arr[0] !== character[index])) {
result = false;
}
diff --git a/test/built-ins/RegExp/S15.10.2.11_A1_T1.js b/test/built-ins/RegExp/S15.10.2.11_A1_T1.js
index d60ab2f73..935042ce2 100644
--- a/test/built-ins/RegExp/S15.10.2.11_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.11_A1_T1.js
@@ -10,13 +10,13 @@ description: >
---*/
//CHECK#1
-var arr = /\0/.exec("\u0000");
+var arr = /\0/.exec("\u0000");
if ((arr === null) || (arr[0] !== "\u0000")) {
$ERROR('#1: var arr = /\\0/.exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0]));
}
//CHECK#2
-var arr = (new RegExp("\\0")).exec("\u0000");
+var arr = (new RegExp("\\0")).exec("\u0000");
if ((arr === null) || (arr[0] !== "\u0000")) {
$ERROR('#2: var arr = (new RegExp("\\0")).exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0]));
}
diff --git a/test/built-ins/RegExp/S15.10.2.12_A1_T1.js b/test/built-ins/RegExp/S15.10.2.12_A1_T1.js
index e08eafa6a..90f8b136d 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A1_T1.js
@@ -523,7 +523,9 @@ if (i62.replace(/\s+/g, "") !== o62) {
var i63 = "";
for (var j = 64512; j < 65536; j++) {
- if (j === 0xFEFF) { continue; } //Ignore BOM
+ if (j === 0xFEFF) {
+ continue;
+ } //Ignore BOM
i63 += String.fromCharCode(j);
}
var o63 = i63;
diff --git a/test/built-ins/RegExp/S15.10.2.12_A1_T2.js b/test/built-ins/RegExp/S15.10.2.12_A1_T2.js
index 51f6443ad..144e903d4 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A1_T2.js
@@ -19,13 +19,13 @@ if ((arr === null) || (arr[0] !== "\u000A")) {
var arr = /\s/.exec("\u000D");
if ((arr === null) || (arr[0] !== "\u000D")) {
$ERROR('#2: var arr = /\\s/.exec("\\u000D"); arr[0] === "\\u000D". Actual. ' + (arr && arr[0]));
-}
+}
//CHECK#3
var arr = /\s/.exec("\u2028");
if ((arr === null) || (arr[0] !== "\u2028")) {
$ERROR('#3: var arr = /\\s/.exec("\\u2028"); arr[0] === "\\u2028". Actual. ' + (arr && arr[0]));
-}
+}
//CHECK#4
var arr = /\s/.exec("\u2029");
diff --git a/test/built-ins/RegExp/S15.10.2.12_A1_T3.js b/test/built-ins/RegExp/S15.10.2.12_A1_T3.js
index 3ca8bb9b2..7bb1112f9 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A1_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A1_T3.js
@@ -12,7 +12,7 @@ description: ENGLISH ALPHABET
var regexp_s = /\s/;
//CHECK#0041-005A
-var result = true;
+var result = true;
for (var alpha = 0x0041; alpha <= 0x005A; alpha++) {
if (regexp_s.exec(String.fromCharCode(alpha)) !== null) {
result = false;
@@ -21,10 +21,10 @@ for (var alpha = 0x0041; alpha <= 0x005A; alpha++) {
if (result !== true) {
$ERROR('#1: ENGLISH CAPITAL ALPHABET');
-}
+}
//CHECK#0061-007A
-var result = true;
+var result = true;
for (alpha = 0x0061; alpha <= 0x007A; alpha++) {
if (regexp_s.exec(String.fromCharCode(alpha)) !== null) {
result = false;
diff --git a/test/built-ins/RegExp/S15.10.2.12_A1_T4.js b/test/built-ins/RegExp/S15.10.2.12_A1_T4.js
index a0f1f8a3f..bbf68f870 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A1_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A1_T4.js
@@ -12,7 +12,7 @@ description: RUSSIAN ALPHABET
var regexp_s = /\s/;
//CHECK#0410-042F
-var result = true;
+var result = true;
for (var alpha = 0x0410; alpha <= 0x042F; alpha++) {
if (regexp_s.exec(String.fromCharCode(alpha)) !== null) {
result = false;
@@ -24,7 +24,7 @@ if (result !== true) {
}
//CHECK#0430-044F
-var result = true;
+var result = true;
for (alpha = 0x0430; alpha <= 0x044F; alpha++) {
if (regexp_s.exec(String.fromCharCode(alpha)) !== null) {
result = false;
diff --git a/test/built-ins/RegExp/S15.10.2.12_A1_T5.js b/test/built-ins/RegExp/S15.10.2.12_A1_T5.js
index b3c139993..dd3b18ba5 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A1_T5.js
@@ -15,7 +15,7 @@ description: >
//CHECK#1
var non_s = "0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ~`!@#$%^&*()-+={[}]|\\:;'<,>./?" + '"';
if (/\s/.exec(non_s) !== null) {
- $ERROR('#1: non-s');
+ $ERROR('#1: non-s');
}
//CHECK#2
@@ -23,9 +23,9 @@ var non_S = '\f\n\r\t\v ';
var regexp_s = /\s/g;
var k = 0;
while (regexp_s.exec(non_S) !== null) {
- k++;
+ k++;
}
if (non_S.length !== k) {
- $ERROR('#2: non-S');
+ $ERROR('#2: non-S');
}
diff --git a/test/built-ins/RegExp/S15.10.2.12_A2_T1.js b/test/built-ins/RegExp/S15.10.2.12_A2_T1.js
index d89d60310..0d2a442db 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A2_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A2_T1.js
@@ -516,7 +516,9 @@ if (i62.replace(/\S+/g, "") !== o62) {
var i63 = "";
for (var j = 0xFC00; j < 0x10000; j++) {
- if (j === 0xFEFF) { continue; } //Ignore BOM
+ if (j === 0xFEFF) {
+ continue;
+ } //Ignore BOM
i63 += String.fromCharCode(j);
}
var o63 = "";
diff --git a/test/built-ins/RegExp/S15.10.2.12_A2_T2.js b/test/built-ins/RegExp/S15.10.2.12_A2_T2.js
index 4779d6aa3..7c30b022b 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A2_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A2_T2.js
@@ -20,13 +20,13 @@ if (arr !== null) {
var arr = /\S/.exec("\u000D");
if (arr !== null) {
$ERROR('#2: var arr = /\\S/.exec("\\u000D"); arr[0] === "\\u000D". Actual. ' + (arr && arr[0]));
-}
+}
//CHECK#3
var arr = /\S/.exec("\u2028");
if (arr !== null) {
$ERROR('#3: var arr = /\\S/.exec("\\u2028"); arr[0] === "\\u2028". Actual. ' + (arr && arr[0]));
-}
+}
//CHECK#4
var arr = /\S/.exec("\u2029");
diff --git a/test/built-ins/RegExp/S15.10.2.12_A2_T3.js b/test/built-ins/RegExp/S15.10.2.12_A2_T3.js
index d86881a26..23b859f61 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A2_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A2_T3.js
@@ -16,7 +16,7 @@ var regexp_S = /\S/;
var result = true;
for (var alpha = 0x0041; alpha <= 0x005A; alpha++) {
var str = String.fromCharCode(alpha);
- var arr = regexp_S.exec(str);
+ var arr = regexp_S.exec(str);
if ((arr === null) || (arr[0] !== str)) {
result = false;
}
@@ -24,13 +24,13 @@ for (var alpha = 0x0041; alpha <= 0x005A; alpha++) {
if (result !== true) {
$ERROR('#1: ENGLISH CAPITAL ALPHABET');
-}
+}
//CHECK#0061-007A
-var result = true;
+var result = true;
for (alpha = 0x0061; alpha <= 0x007A; alpha++) {
str = String.fromCharCode(alpha);
- arr = regexp_S.exec(str);
+ arr = regexp_S.exec(str);
if ((arr === null) || (arr[0] !== str)) {
result = false;
}
diff --git a/test/built-ins/RegExp/S15.10.2.12_A2_T4.js b/test/built-ins/RegExp/S15.10.2.12_A2_T4.js
index be9a87442..f23510977 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A2_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A2_T4.js
@@ -13,10 +13,10 @@ description: RUSSIAN ALPHABET
var regexp_S = /\S/;
//CHECK#0410-042F
-var result = true;
+var result = true;
for (var alpha = 0x0410; alpha <= 0x042F; alpha++) {
var str = String.fromCharCode(alpha);
- var arr = regexp_S.exec(str);
+ var arr = regexp_S.exec(str);
if ((arr === null) || (arr[0] !== str)) {
result = false;
}
@@ -27,10 +27,10 @@ if (result !== true) {
}
//CHECK#0430-044F
-var result = true;
+var result = true;
for (alpha = 0x0430; alpha <= 0x044F; alpha++) {
str = String.fromCharCode(alpha);
- arr = regexp_S.exec(str);
+ arr = regexp_S.exec(str);
if ((arr === null) || (arr[0] !== str)) {
result = false;
}
diff --git a/test/built-ins/RegExp/S15.10.2.12_A2_T5.js b/test/built-ins/RegExp/S15.10.2.12_A2_T5.js
index ef1284ea0..864e99d48 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A2_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A2_T5.js
@@ -18,15 +18,15 @@ var non_s = "0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ~`!@
var regexp_S = /\S/g;
var k = 0;
while (regexp_S.exec(non_s) !== null) {
- k++;
+ k++;
}
if (non_s.length !== k) {
- $ERROR('#1: non-s');
-}
+ $ERROR('#1: non-s');
+}
//CHECK#2
var non_S = '\f\n\r\t\v ';
if (/\S/.exec(non_S) !== null) {
- $ERROR('#2: non-S');
+ $ERROR('#2: non-S');
}
diff --git a/test/built-ins/RegExp/S15.10.2.12_A3_T2.js b/test/built-ins/RegExp/S15.10.2.12_A3_T2.js
index 2a868ee15..d5450cdb4 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A3_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A3_T2.js
@@ -12,10 +12,10 @@ description: a - z
var regexp_w = /\w/;
//CHECK#0061-007A
-var result = true;
+var result = true;
for (var alpha = 0x0061; alpha <= 0x007A; alpha++) {
var str = String.fromCharCode(alpha);
- var arr = regexp_w.exec(str);
+ var arr = regexp_w.exec(str);
if ((arr === null) || (arr[0] !== str)) {
result = false;
}
diff --git a/test/built-ins/RegExp/S15.10.2.12_A3_T3.js b/test/built-ins/RegExp/S15.10.2.12_A3_T3.js
index b11e5b46f..e46e495ea 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A3_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A3_T3.js
@@ -12,10 +12,10 @@ description: 0 - 9, _
var regexp_w = /\w/;
//CHECK#0030-0039
-var result = true;
+var result = true;
for (var alpha = 0x0030; alpha <= 0x0039; alpha++) {
var str = String.fromCharCode(alpha);
- var arr = regexp_w.exec(str);
+ var arr = regexp_w.exec(str);
if ((arr === null) || (arr[0] !== str)) {
result = false;
}
@@ -26,7 +26,7 @@ if (result !== true) {
}
//CHECK#005F
-var arr = regexp_w.exec("_");
+var arr = regexp_w.exec("_");
if ((arr === null) || (arr[0] !== "\u005F")) {
$ERROR('#2: _');
}
diff --git a/test/built-ins/RegExp/S15.10.2.12_A3_T4.js b/test/built-ins/RegExp/S15.10.2.12_A3_T4.js
index 3e7157c58..aedc5aa2f 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A3_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A3_T4.js
@@ -12,7 +12,7 @@ description: RUSSIAN ALPHABET
var regexp_w = /\w/;
//CHECK#0410-042F
-var result = true;
+var result = true;
for (var alpha = 0x0410; alpha <= 0x042F; alpha++) {
if (regexp_w.exec(String.fromCharCode(alpha)) !== null) {
result = false;
@@ -24,7 +24,7 @@ if (result !== true) {
}
//CHECK#0430-044F
-var result = true;
+var result = true;
for (alpha = 0x0430; alpha <= 0x044F; alpha++) {
if (regexp_w.exec(String.fromCharCode(alpha)) !== null) {
result = false;
diff --git a/test/built-ins/RegExp/S15.10.2.12_A3_T5.js b/test/built-ins/RegExp/S15.10.2.12_A3_T5.js
index e0b1289c2..6f8eed6ed 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A3_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A3_T5.js
@@ -12,7 +12,7 @@ description: non-w
//CHECK#1
var non_w = "\f\n\r\t\v~`!@#$%^&*()-+={[}]|\\:;'<,>./? " + '"';
if (/\w/.exec(non_w) !== null) {
- $ERROR('#1: non-w');
+ $ERROR('#1: non-w');
}
//CHECK#2
@@ -20,9 +20,9 @@ var non_W = "_0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
var regexp_w = /\w/g;
var k = 0;
while (regexp_w.exec(non_W) !== null) {
- k++;
+ k++;
}
if (non_W.length !== k) {
- $ERROR('#2: non-W');
+ $ERROR('#2: non-W');
}
diff --git a/test/built-ins/RegExp/S15.10.2.12_A4_T2.js b/test/built-ins/RegExp/S15.10.2.12_A4_T2.js
index fea5d3b20..003de301d 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A4_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A4_T2.js
@@ -12,7 +12,7 @@ description: a - z
var regexp_W = /\W/;
//CHECK#0061-007A
-var result = true;
+var result = true;
for (var alpha = 0x0061; alpha <= 0x007A; alpha++) {
if (regexp_W.exec(String.fromCharCode(alpha)) !== null) {
result = false;
diff --git a/test/built-ins/RegExp/S15.10.2.12_A4_T3.js b/test/built-ins/RegExp/S15.10.2.12_A4_T3.js
index 7980c5a22..e8a2b2abf 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A4_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A4_T3.js
@@ -12,7 +12,7 @@ description: 0 - 9
var regexp_W = /\W/;
//CHECK#0030-0039
-var result = true;
+var result = true;
for (var alpha = 0x0030; alpha <= 0x0039; alpha++) {
if (regexp_W.exec(String.fromCharCode(alpha)) !== null) {
result = false;
@@ -29,7 +29,7 @@ if (regexp_W.exec("_") !== null) {
}
//CHECK#0020
-var arr = regexp_W.exec(" ");
+var arr = regexp_W.exec(" ");
if ((arr === null) || (arr[0] !== "\u0020")) {
$ERROR('#2: ');
}
diff --git a/test/built-ins/RegExp/S15.10.2.12_A4_T4.js b/test/built-ins/RegExp/S15.10.2.12_A4_T4.js
index 305ba64c7..12305f94d 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A4_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A4_T4.js
@@ -12,10 +12,10 @@ description: RUSSIAN ALPHABET
var regexp_W = /\W/;
//CHECK#0410-042F
-var result = true;
+var result = true;
for (var alpha = 0x0410; alpha <= 0x042F; alpha++) {
var str = String.fromCharCode(alpha);
- var arr = regexp_W.exec(str);
+ var arr = regexp_W.exec(str);
if ((arr === null) || (arr[0] !== str)) {
result = false;
}
@@ -26,10 +26,10 @@ if (result !== true) {
}
//CHECK#0430-044F
-var result = true;
+var result = true;
for (alpha = 0x0430; alpha <= 0x044F; alpha++) {
str = String.fromCharCode(alpha);
- arr = regexp_W.exec(str);
+ arr = regexp_W.exec(str);
if ((arr === null) || (arr[0] !== str)) {
result = false;
}
diff --git a/test/built-ins/RegExp/S15.10.2.12_A4_T5.js b/test/built-ins/RegExp/S15.10.2.12_A4_T5.js
index e1113ee2a..c99a80f5f 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A4_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A4_T5.js
@@ -14,15 +14,15 @@ var non_w = "\f\n\r\t\v~`!@#$%^&*()-+={[}]|\\:;'<,>./? " + '"';
var regexp_W = /\W/g;
var k = 0;
while (regexp_W.exec(non_w) !== null) {
- k++;
+ k++;
}
if (non_w.length !== k) {
- $ERROR('#1: non-w');
+ $ERROR('#1: non-w');
}
//CHECK#2
var non_W = "_0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
if (/\W/.exec(non_W) !== null) {
- $ERROR('#2: non-W');
+ $ERROR('#2: non-W');
}
diff --git a/test/built-ins/RegExp/S15.10.2.12_A5_T2.js b/test/built-ins/RegExp/S15.10.2.12_A5_T2.js
index f8497c56c..4ccf17afd 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A5_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A5_T2.js
@@ -13,7 +13,7 @@ description: ENGLISH ALPHABET
var regexp_d = /\d/;
//CHECK#0041-005A
-var result = true;
+var result = true;
for (var alpha = 0x0041; alpha <= 0x005A; alpha++) {
if (regexp_d.exec(String.fromCharCode(alpha)) !== null) {
result = false;
@@ -22,10 +22,10 @@ for (var alpha = 0x0041; alpha <= 0x005A; alpha++) {
if (result !== true) {
$ERROR('#1: ENGLISH CAPITAL ALPHABET');
-}
+}
//CHECK#0061-007A
-var result = true;
+var result = true;
for (alpha = 0x0061; alpha <= 0x007A; alpha++) {
if (regexp_d.exec(String.fromCharCode(alpha)) !== null) {
result = false;
diff --git a/test/built-ins/RegExp/S15.10.2.12_A5_T3.js b/test/built-ins/RegExp/S15.10.2.12_A5_T3.js
index bd91138b4..4a4f3f397 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A5_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A5_T3.js
@@ -13,7 +13,7 @@ description: RUSSIAN ALPHABET
var regexp_d = /\d/;
//CHECK#0410-042F
-var result = true;
+var result = true;
for (var alpha = 0x0410; alpha <= 0x042F; alpha++) {
if (regexp_d.exec(String.fromCharCode(alpha)) !== null) {
result = false;
@@ -25,7 +25,7 @@ if (result !== true) {
}
//CHECK#0430-044F
-var result = true;
+var result = true;
for (alpha = 0x0430; alpha <= 0x044F; alpha++) {
if (regexp_d.exec(String.fromCharCode(alpha)) !== null) {
result = false;
diff --git a/test/built-ins/RegExp/S15.10.2.12_A5_T4.js b/test/built-ins/RegExp/S15.10.2.12_A5_T4.js
index fa4186607..7322d0c00 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A5_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A5_T4.js
@@ -13,7 +13,7 @@ description: non-d
//CHECK#1
var non_d = "_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\f\n\r\t\v~`!@#$%^&*()-+={[}]|\\:;'<,>./? " + '"';
if (/\d/.exec(non_d) !== null) {
- $ERROR('#1: non-d');
+ $ERROR('#1: non-d');
}
//CHECK#2
@@ -21,9 +21,9 @@ var non_D = '0123456789';
var regexp_d = /\d/g;
var k = 0;
while (regexp_d.exec(non_D) !== null) {
- k++;
+ k++;
}
if (non_D.length !== k) {
- $ERROR('#2: non-D');
+ $ERROR('#2: non-D');
}
diff --git a/test/built-ins/RegExp/S15.10.2.12_A6_T2.js b/test/built-ins/RegExp/S15.10.2.12_A6_T2.js
index 3cc2a104d..4175862dd 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A6_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A6_T2.js
@@ -12,10 +12,10 @@ description: ENGLISH ALPHABET
var regexp_D = /\D/;
//CHECK#0041-005A
-var result = true;
+var result = true;
for (var alpha = 0x0041; alpha <= 0x005A; alpha++) {
var str = String.fromCharCode(alpha);
- var arr = regexp_D.exec(str);
+ var arr = regexp_D.exec(str);
if ((arr === null) || (arr[0] !== str)) {
result = false;
}
@@ -23,13 +23,13 @@ for (var alpha = 0x0041; alpha <= 0x005A; alpha++) {
if (result !== true) {
$ERROR('#1: ENGLISH CAPITAL ALPHABET');
-}
+}
//CHECK#0061-007A
-var result = true;
+var result = true;
for (alpha = 0x0061; alpha <= 0x007A; alpha++) {
str = String.fromCharCode(alpha);
- arr = regexp_D.exec(str);
+ arr = regexp_D.exec(str);
if ((arr === null) || (arr[0] !== str)) {
result = false;
}
diff --git a/test/built-ins/RegExp/S15.10.2.12_A6_T3.js b/test/built-ins/RegExp/S15.10.2.12_A6_T3.js
index c0bfe30ee..ba3b8babc 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A6_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A6_T3.js
@@ -12,10 +12,10 @@ description: RUSSIAN ALPHABET
var regexp_D = /\D/;
//CHECK#0410-042F
-var result = true;
+var result = true;
for (var alpha = 0x0410; alpha <= 0x042F; alpha++) {
var str = String.fromCharCode(alpha);
- var arr = regexp_D.exec(str);
+ var arr = regexp_D.exec(str);
if ((arr === null) || (arr[0] !== str)) {
result = false;
}
@@ -26,10 +26,10 @@ if (result !== true) {
}
//CHECK#0430-044F
-var result = true;
+var result = true;
for (alpha = 0x0430; alpha <= 0x044F; alpha++) {
str = String.fromCharCode(alpha);
- arr = regexp_D.exec(str);
+ arr = regexp_D.exec(str);
if ((arr === null) || (arr[0] !== str)) {
result = false;
}
diff --git a/test/built-ins/RegExp/S15.10.2.12_A6_T4.js b/test/built-ins/RegExp/S15.10.2.12_A6_T4.js
index d40bae9a9..f1a0f50f8 100644
--- a/test/built-ins/RegExp/S15.10.2.12_A6_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.12_A6_T4.js
@@ -14,15 +14,15 @@ var non_d = "_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\f\n\r\t\v~`!@
var regexp_D = /\D/g;
var k = 0;
while (regexp_D.exec(non_d) !== null) {
- k++;
+ k++;
}
if (non_d.length !== k) {
- $ERROR('#1: non-d');
+ $ERROR('#1: non-d');
}
//CHECK#2
var non_d = '0123456789';
if (/\D/.exec(non_d) !== null) {
- $ERROR('#2: non-d');
+ $ERROR('#2: non-d');
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T1.js b/test/built-ins/RegExp/S15.10.2.13_A1_T1.js
index ad99d4604..3696b1197 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T1.js
@@ -13,6 +13,6 @@ description: Execute /[]a/.test("\0a\0a") and check results
var __executed = /[]a/.test("\0a\0a");;
//CHECK#1
- if (__executed) {
- $ERROR('#1: /[]a/.test("\\0a\\0a") === false');
+if (__executed) {
+ $ERROR('#1: /[]a/.test("\\0a\\0a") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T10.js b/test/built-ins/RegExp/S15.10.2.13_A1_T10.js
index 808957c86..3b88334a5 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T10.js
@@ -18,22 +18,22 @@ __expected.input = "\n\n\abc324234\n";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T11.js b/test/built-ins/RegExp/S15.10.2.13_A1_T11.js
index bbc3eea3c..0b1119f3b 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T11.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T11.js
@@ -18,22 +18,22 @@ __expected.input = "abc";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /ab[.]?c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /ab[.]?c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /ab[.]?c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /ab[.]?c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /ab[.]?c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /ab[.]?c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /ab[.]?c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /ab[.]?c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T12.js b/test/built-ins/RegExp/S15.10.2.13_A1_T12.js
index 717f4e3a8..309b66274 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T12.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T12.js
@@ -18,22 +18,22 @@ __expected.input = "abc";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /a[b]c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /a[b]c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /a[b]c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /a[b]c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /a[b]c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /a[b]c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /a[b]c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /a[b]c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T13.js b/test/built-ins/RegExp/S15.10.2.13_A1_T13.js
index 118e97754..ae2a04746 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T13.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T13.js
@@ -20,22 +20,22 @@ __expected.input = "a1b b2c c3d def f4g";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T14.js b/test/built-ins/RegExp/S15.10.2.13_A1_T14.js
index b07244788..ed751e113 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T14.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T14.js
@@ -18,22 +18,22 @@ __expected.input = "123*&$abc";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T15.js b/test/built-ins/RegExp/S15.10.2.13_A1_T15.js
index b425136a7..c4c792707 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T15.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T15.js
@@ -18,22 +18,22 @@ __expected.input = "line1\nline2";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T17.js b/test/built-ins/RegExp/S15.10.2.13_A1_T17.js
index 8c56381a4..6bef4680b 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T17.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T17.js
@@ -14,5 +14,5 @@ var __executed = /[]/.exec("a[b\n[]\tc]d");
//CHECK#1
if (__executed !== null) {
- $ERROR('#1: /[]/.exec("a[b\\n[]\\tc]d") === false');
+ $ERROR('#1: /[]/.exec("a[b\\n[]\\tc]d") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T2.js b/test/built-ins/RegExp/S15.10.2.13_A1_T2.js
index 7f1b7a8f3..b71a8e2d0 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T2.js
@@ -14,5 +14,5 @@ var __executed = /a[]/.test("\0a\0a");;
//CHECK#1
if (__executed) {
- $ERROR('#1: /a[]/.test("\\0a\\0a") === false');
+ $ERROR('#1: /a[]/.test("\\0a\\0a") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T3.js b/test/built-ins/RegExp/S15.10.2.13_A1_T3.js
index 1b65af0b9..a746ec0fe 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T3.js
@@ -18,22 +18,22 @@ __expected.input = "qYqy ";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T4.js b/test/built-ins/RegExp/S15.10.2.13_A1_T4.js
index 5db2c8a2f..45b63c0ba 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T4.js
@@ -18,22 +18,22 @@ __expected.input = "tqaqy ";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T5.js b/test/built-ins/RegExp/S15.10.2.13_A1_T5.js
index 1e146ed67..cfe8a187c 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T5.js
@@ -18,22 +18,22 @@ __expected.input = "tqa\t qy ";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T6.js b/test/built-ins/RegExp/S15.10.2.13_A1_T6.js
index 41fa114e9..6f72faa34 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T6.js
@@ -18,22 +18,22 @@ __expected.input = "abcde";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /ab[ercst]de/.exec("abcde"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /ab[ercst]de/.exec("abcde"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /ab[ercst]de/.exec("abcde"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /ab[ercst]de/.exec("abcde"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /ab[ercst]de/.exec("abcde"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /ab[ercst]de/.exec("abcde"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /ab[ercst]de/.exec("abcde"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /ab[ercst]de/.exec("abcde"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T7.js b/test/built-ins/RegExp/S15.10.2.13_A1_T7.js
index 72b8f362b..edb1e7217 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T7.js
@@ -14,5 +14,5 @@ var __executed = /ab[erst]de/.test("abcde");
//CHECK#1
if (__executed) {
- $ERROR('#1: /ab[erst]de/.test("abcde") === false');
+ $ERROR('#1: /ab[erst]de/.test("abcde") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T8.js b/test/built-ins/RegExp/S15.10.2.13_A1_T8.js
index 2e9192931..19adb92ae 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T8.js
@@ -18,22 +18,22 @@ __expected.input = "abcdefghijkl";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T9.js b/test/built-ins/RegExp/S15.10.2.13_A1_T9.js
index 7ea19db23..7900c9667 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A1_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A1_T9.js
@@ -18,22 +18,22 @@ __expected.input = "abc6defghijkl";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T1.js b/test/built-ins/RegExp/S15.10.2.13_A2_T1.js
index b17d762c4..decc349ee 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A2_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A2_T1.js
@@ -18,22 +18,22 @@ __expected.input = "a\naba";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[^]a/m.exec("a\\naba"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[^]a/m.exec("a\\naba"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[^]a/m.exec("a\\naba"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[^]a/m.exec("a\\naba"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[^]a/m.exec("a\\naba"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[^]a/m.exec("a\\naba"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[^]a/m.exec("a\\naba"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[^]a/m.exec("a\\naba"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T2.js b/test/built-ins/RegExp/S15.10.2.13_A2_T2.js
index b5fa6aa78..2e43ffef1 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A2_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A2_T2.js
@@ -18,22 +18,22 @@ __expected.input = " a\t\n";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /a[^]/.exec(" a\\t\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /a[^]/.exec(" a\\t\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /a[^]/.exec(" a\\t\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /a[^]/.exec(" a\\t\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /a[^]/.exec(" a\\t\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /a[^]/.exec(" a\\t\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /a[^]/.exec(" a\\t\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /a[^]/.exec(" a\\t\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T3.js b/test/built-ins/RegExp/S15.10.2.13_A2_T3.js
index abe4f9e85..b14bf9a83 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A2_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A2_T3.js
@@ -18,22 +18,22 @@ __expected.input = "ab an az aY n";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T4.js b/test/built-ins/RegExp/S15.10.2.13_A2_T4.js
index a300eaf42..1ffeede38 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A2_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A2_T4.js
@@ -18,22 +18,22 @@ __expected.input = "easy\bto\u0008ride";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T5.js b/test/built-ins/RegExp/S15.10.2.13_A2_T5.js
index 5a52eefb4..cd90cf571 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A2_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A2_T5.js
@@ -18,22 +18,22 @@ __expected.input = "abc";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /a[^1-9]c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /a[^1-9]c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /a[^1-9]c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /a[^1-9]c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /a[^1-9]c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /a[^1-9]c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /a[^1-9]c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /a[^1-9]c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T6.js b/test/built-ins/RegExp/S15.10.2.13_A2_T6.js
index ba59484a0..88d00a8b8 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A2_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A2_T6.js
@@ -14,5 +14,5 @@ var __executed = /a[^b]c/.test("abc");
//CHECK#1
if (__executed) {
- $ERROR('#1: /a[^b]c/.test("abc") === false');
+ $ERROR('#1: /a[^b]c/.test("abc") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T7.js b/test/built-ins/RegExp/S15.10.2.13_A2_T7.js
index b1f4c7f73..4d362fd14 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A2_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A2_T7.js
@@ -18,22 +18,22 @@ __expected.input = "abc#$%def%&*@ghi";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T8.js b/test/built-ins/RegExp/S15.10.2.13_A2_T8.js
index ae7800435..9cc3d5788 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A2_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A2_T8.js
@@ -18,22 +18,22 @@ __expected.input = "abc#$%def%&*@ghi";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A3_T1.js b/test/built-ins/RegExp/S15.10.2.13_A3_T1.js
index 866a2190e..be8039a23 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A3_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A3_T1.js
@@ -15,22 +15,22 @@ __expected.input = "abc\bdef";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /.[\\b]./.exec("abc\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /.[\\b]./.exec("abc\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A3_T2.js b/test/built-ins/RegExp/S15.10.2.13_A3_T2.js
index 4eb9e7140..f2c87ad11 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A3_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A3_T2.js
@@ -15,22 +15,22 @@ __expected.input = "abc\b\b\bdef";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A3_T3.js b/test/built-ins/RegExp/S15.10.2.13_A3_T3.js
index 6880d52e0..6984efbb6 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A3_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A3_T3.js
@@ -15,22 +15,22 @@ __expected.input = "abc\bdef";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.13_A3_T4.js b/test/built-ins/RegExp/S15.10.2.13_A3_T4.js
index 9ddad9ee7..50803306b 100644
--- a/test/built-ins/RegExp/S15.10.2.13_A3_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.13_A3_T4.js
@@ -15,22 +15,22 @@ __expected.input = "abcdef";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T1.js b/test/built-ins/RegExp/S15.10.2.15_A1_T1.js
index 8bd881ecd..35db425f6 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T1.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[b-ac-e]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-ac-e]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[b-ac-e]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T10.js b/test/built-ins/RegExp/S15.10.2.15_A1_T10.js
index 7d0fb22e3..74334e4a0 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T10.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[\\10b-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\10b-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[\\10b-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T11.js b/test/built-ins/RegExp/S15.10.2.15_A1_T11.js
index 0072be941..b5bb8bb09 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T11.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T11.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[\\bd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\bd-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[\\bd-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T12.js b/test/built-ins/RegExp/S15.10.2.15_A1_T12.js
index 5a4e4c391..404cbff86 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T12.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T12.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[\\Bd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Bd-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[\\Bd-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T13.js b/test/built-ins/RegExp/S15.10.2.15_A1_T13.js
index db3165b87..40d2ce455 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T13.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T13.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[\\td-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\td-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[\\td-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T14.js b/test/built-ins/RegExp/S15.10.2.15_A1_T14.js
index 2b47b233c..0fe47bfb0 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T14.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T14.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[\\nd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\nd-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[\\nd-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T15.js b/test/built-ins/RegExp/S15.10.2.15_A1_T15.js
index 8a25edacd..62334ca9b 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T15.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T15.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[\\vd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\vd-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[\\vd-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T16.js b/test/built-ins/RegExp/S15.10.2.15_A1_T16.js
index a9ba20a5f..e75d7e8d1 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T16.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T16.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[\\fd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\fd-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[\\fd-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T17.js b/test/built-ins/RegExp/S15.10.2.15_A1_T17.js
index 212c5454b..55f1e86f7 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T17.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T17.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[\\rd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\rd-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[\\rd-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T18.js b/test/built-ins/RegExp/S15.10.2.15_A1_T18.js
index 1990ea775..dd1c9cb09 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T18.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T18.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[\\c0001d-G]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[\\c0001d-G]").exec("1")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[\\c0001d-G]/.exec("1") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T19.js b/test/built-ins/RegExp/S15.10.2.15_A1_T19.js
index 1d2407842..6dc726ae3 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T19.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T19.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[\\x0061d-G]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[\\x0061d-G]").exec("1")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[\\x0061d-G]/.exec("1") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T2.js b/test/built-ins/RegExp/S15.10.2.15_A1_T2.js
index 63ba14403..98a17d6a0 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T2.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[a-dc-b]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[a-dc-b]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[a-dc-b]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T20.js b/test/built-ins/RegExp/S15.10.2.15_A1_T20.js
index e6b87b488..8969d132f 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T20.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T20.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[\\u0061d-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\u0061d-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[\\u0061d-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T21.js b/test/built-ins/RegExp/S15.10.2.15_A1_T21.js
index 1045301ea..e772129dd 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T21.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T21.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[\\ad-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\ad-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[\\ad-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T22.js b/test/built-ins/RegExp/S15.10.2.15_A1_T22.js
index 9b91aeead..5899bb4d7 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T22.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T22.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[c-eb-a]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[c-eb-a]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[c-eb-a]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T23.js b/test/built-ins/RegExp/S15.10.2.15_A1_T23.js
index 71e84fc34..d1e402dcd 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T23.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T23.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[b-G\\d]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\d]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[b-G\\d]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T24.js b/test/built-ins/RegExp/S15.10.2.15_A1_T24.js
index 77f53e08c..41e90cd88 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T24.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T24.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[b-G\\D]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\D]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[b-G\\D]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T25.js b/test/built-ins/RegExp/S15.10.2.15_A1_T25.js
index 6bce82385..f65e924e2 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T25.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T25.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[b-G\\s]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\s]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[b-G\\s]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T26.js b/test/built-ins/RegExp/S15.10.2.15_A1_T26.js
index 760666986..32516d36f 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T26.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T26.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[b-G\\S]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\S]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[b-G\\S]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T27.js b/test/built-ins/RegExp/S15.10.2.15_A1_T27.js
index d976e5194..96a353500 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T27.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T27.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[b-G\\w]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\w]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[b-G\\w]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T28.js b/test/built-ins/RegExp/S15.10.2.15_A1_T28.js
index 6d0b45234..cc70764fa 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T28.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T28.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[b-G\\W]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\W]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[b-G\\W]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T29.js b/test/built-ins/RegExp/S15.10.2.15_A1_T29.js
index 62d81b080..6cce5af79 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T29.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T29.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[b-G\\0]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\0]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[b-G\\0]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T3.js b/test/built-ins/RegExp/S15.10.2.15_A1_T3.js
index beebc2349..bb30b7271 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T3.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[\\db-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\db-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[\\db-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T30.js b/test/built-ins/RegExp/S15.10.2.15_A1_T30.js
index bdd269b9b..76fe52219 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T30.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T30.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[b-G\\10]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\10]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[b-G\\10]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T31.js b/test/built-ins/RegExp/S15.10.2.15_A1_T31.js
index e7a2232f1..b9327953c 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T31.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T31.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[d-G\\b]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\b]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[d-G\\b]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T32.js b/test/built-ins/RegExp/S15.10.2.15_A1_T32.js
index 196b513db..708e7e429 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T32.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T32.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[d-G\\B]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\B]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[d-G\\B]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T33.js b/test/built-ins/RegExp/S15.10.2.15_A1_T33.js
index 31406ee33..f85caaae8 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T33.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T33.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[d-G\\t]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\t]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[d-G\\t]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T34.js b/test/built-ins/RegExp/S15.10.2.15_A1_T34.js
index 02e5ec81a..6e2db75b3 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T34.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T34.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[d-G\\n]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\n]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[d-G\\n]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T35.js b/test/built-ins/RegExp/S15.10.2.15_A1_T35.js
index 3ea1242f7..35bb9f9f0 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T35.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T35.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[d-G\\v]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\v]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[d-G\\v]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T36.js b/test/built-ins/RegExp/S15.10.2.15_A1_T36.js
index 43c91673a..778be632b 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T36.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T36.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[d-G\\f]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\f]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[d-G\\f]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T37.js b/test/built-ins/RegExp/S15.10.2.15_A1_T37.js
index d074680e4..a83a22768 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T37.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T37.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[d-G\\r]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\r]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[d-G\\r]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T38.js b/test/built-ins/RegExp/S15.10.2.15_A1_T38.js
index 71bfab090..49d44a838 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T38.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T38.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[d-G\\c0001]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\c0001]").exec("1")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[d-G\\c0001]/.exec("1") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T39.js b/test/built-ins/RegExp/S15.10.2.15_A1_T39.js
index 8ec1fa72f..5d6c74ca5 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T39.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T39.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[d-G\\x0061]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\x0061]").exec("1")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[d-G\\x0061]/.exec("1") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T4.js b/test/built-ins/RegExp/S15.10.2.15_A1_T4.js
index 78ed63552..515e80299 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T4.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[\\Db-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Db-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[\\Db-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T40.js b/test/built-ins/RegExp/S15.10.2.15_A1_T40.js
index 5cb7e7a32..3b366a5e2 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T40.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T40.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[d-G\\u0061]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\u0061]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[d-G\\u0061]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T41.js b/test/built-ins/RegExp/S15.10.2.15_A1_T41.js
index a0d365bb8..1e597f91a 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T41.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T41.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[d-G\\a]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\a]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[d-G\\a]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T5.js b/test/built-ins/RegExp/S15.10.2.15_A1_T5.js
index d2bf9c0d2..bc99d1437 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T5.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[\\sb-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\sb-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[\\sb-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T6.js b/test/built-ins/RegExp/S15.10.2.15_A1_T6.js
index 488bb63a0..213125985 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T6.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[\\Sb-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Sb-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[\\Sb-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T7.js b/test/built-ins/RegExp/S15.10.2.15_A1_T7.js
index 0ced85fe0..4d407f8e2 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T7.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[\\wb-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\wb-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[\\wb-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T8.js b/test/built-ins/RegExp/S15.10.2.15_A1_T8.js
index 2fb0c67eb..9869d3456 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T8.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[\\Wb-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Wb-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[\\Wb-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T9.js b/test/built-ins/RegExp/S15.10.2.15_A1_T9.js
index 03ca482e5..2eca25140 100644
--- a/test/built-ins/RegExp/S15.10.2.15_A1_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.15_A1_T9.js
@@ -20,7 +20,7 @@ description: >
try {
$ERROR('#1.1: /[\\0b-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\0b-G]").exec("a")));
} catch (e) {
- if((e instanceof SyntaxError) !== true){
+ if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: /[\\0b-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T1.js b/test/built-ins/RegExp/S15.10.2.3_A1_T1.js
index 5a63327d9..458c1d576 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T1.js
@@ -18,22 +18,22 @@ __expected.input = "abc";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /a|ab/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /a|ab/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /a|ab/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /a|ab/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /a|ab/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /a|ab/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /a|ab/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /a|ab/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T10.js b/test/built-ins/RegExp/S15.10.2.3_A1_T10.js
index 86d8dc778..2330fa26c 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T10.js
@@ -18,22 +18,22 @@ __expected.input = "AEKeFCDab";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T11.js b/test/built-ins/RegExp/S15.10.2.3_A1_T11.js
index d6a7f0914..38caf9afa 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T11.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T11.js
@@ -18,22 +18,22 @@ __expected.input = "1111111111111111";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /11111|111/.exec("1111111111111111"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /11111|111/.exec("1111111111111111"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /11111|111/.exec("1111111111111111"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /11111|111/.exec("1111111111111111"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /11111|111/.exec("1111111111111111"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /11111|111/.exec("1111111111111111"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /11111|111/.exec("1111111111111111"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /11111|111/.exec("1111111111111111"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T12.js b/test/built-ins/RegExp/S15.10.2.3_A1_T12.js
index 6b65ab266..f226a21ac 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T12.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T12.js
@@ -18,22 +18,22 @@ __expected.input = "abc";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /xyz|.../.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /xyz|.../.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /xyz|.../.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /xyz|.../.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /xyz|.../.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /xyz|.../.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /xyz|.../.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /xyz|.../.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T13.js b/test/built-ins/RegExp/S15.10.2.3_A1_T13.js
index ce657c9b5..36e4be4ca 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T13.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T13.js
@@ -12,28 +12,28 @@ description: Execute /(.)..|abc/.exec("abc") and check results
var __executed = /(.)..|abc/.exec("abc");
-var __expected = ["abc","a"];
+var __expected = ["abc", "a"];
__expected.index = 0;
__expected.input = "abc";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(.)..|abc/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(.)..|abc/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(.)..|abc/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(.)..|abc/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(.)..|abc/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(.)..|abc/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(.)..|abc/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(.)..|abc/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T14.js b/test/built-ins/RegExp/S15.10.2.3_A1_T14.js
index bbb173b11..1f5c46884 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T14.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T14.js
@@ -12,28 +12,28 @@ description: "Execute /.+: gr(a|e)y/.exec(\"color: grey\") and check results"
var __executed = /.+: gr(a|e)y/.exec("color: grey");
-var __expected = ["color: grey","e"];
+var __expected = ["color: grey", "e"];
__expected.index = 0;
__expected.input = "color: grey";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T15.js b/test/built-ins/RegExp/S15.10.2.3_A1_T15.js
index 29393f0ad..00df52987 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T15.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T15.js
@@ -14,28 +14,28 @@ description: >
var __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob");
-var __expected = ["Bob",undefined,"Bob", undefined, undefined];
+var __expected = ["Bob", undefined, "Bob", undefined, undefined];
__expected.index = 3;
__expected.input = "Hi Bob";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T16.js b/test/built-ins/RegExp/S15.10.2.3_A1_T16.js
index 9ea5be2b9..389006122 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T16.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T16.js
@@ -12,28 +12,28 @@ description: Execute /()|/.exec("") and check results
var __executed = /()|/.exec("");
-var __expected = ["",""];
+var __expected = ["", ""];
__expected.index = 0;
__expected.input = "";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /()|/.exec(""); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /()|/.exec(""); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /()|/.exec(""); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /()|/.exec(""); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /()|/.exec(""); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /()|/.exec(""); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /()|/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /()|/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T17.js b/test/built-ins/RegExp/S15.10.2.3_A1_T17.js
index 7e660850b..62d632164 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T17.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T17.js
@@ -12,28 +12,28 @@ description: Execute /|()/.exec("") and check results
var __executed = /|()/.exec("");
-var __expected = ["",undefined];
+var __expected = ["", undefined];
__expected.index = 0;
__expected.input = "";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /|()/.exec(""); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /|()/.exec(""); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /|()/.exec(""); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /|()/.exec(""); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /|()/.exec(""); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /|()/.exec(""); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /|()/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /|()/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T2.js b/test/built-ins/RegExp/S15.10.2.3_A1_T2.js
index ece297f65..9e3241c2a 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T2.js
@@ -18,22 +18,22 @@ __expected.input = "abc";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T3.js b/test/built-ins/RegExp/S15.10.2.3_A1_T3.js
index bcbb8b0c9..b4c9ef27e 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T3.js
@@ -20,22 +20,22 @@ __expected.input = "2, 12 and of course repeat 12";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T4.js b/test/built-ins/RegExp/S15.10.2.3_A1_T4.js
index 729ecc618..79326b76c 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T4.js
@@ -20,22 +20,22 @@ __expected.input = "2, 12 and 234 AND of course repeat 12";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T5.js b/test/built-ins/RegExp/S15.10.2.3_A1_T5.js
index 0a2906599..6c2505d6a 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T5.js
@@ -16,5 +16,5 @@ var __executed = /\d{3}|[a-z]{4}/.test("2, 12 and 23 AND 0.00.1");
//CHECK#1
if (__executed) {
- $ERROR('#1: /\\d{3}|[a-z]{4}/.test("2, 12 and 23 AND 0.00.1") === false');
+ $ERROR('#1: /\\d{3}|[a-z]{4}/.test("2, 12 and 23 AND 0.00.1") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T6.js b/test/built-ins/RegExp/S15.10.2.3_A1_T6.js
index 86709f1fa..ae0956e6f 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T6.js
@@ -18,22 +18,22 @@ __expected.input = "AEKFCD";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T7.js b/test/built-ins/RegExp/S15.10.2.3_A1_T7.js
index 7243bfabb..b464a8f07 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T7.js
@@ -14,5 +14,5 @@ var __executed = /ab|cd|ef/.test("AEKFCD");
//CHECK#1
if (__executed) {
- $ERROR('#1: /ab|cd|ef/.test("AEKFCD") === false');
+ $ERROR('#1: /ab|cd|ef/.test("AEKFCD") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T8.js b/test/built-ins/RegExp/S15.10.2.3_A1_T8.js
index b5e67b726..e85f7744a 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T8.js
@@ -18,22 +18,22 @@ __expected.input = "AEKFCD";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T9.js b/test/built-ins/RegExp/S15.10.2.3_A1_T9.js
index f50659e42..42b1f0241 100644
--- a/test/built-ins/RegExp/S15.10.2.3_A1_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.3_A1_T9.js
@@ -18,22 +18,22 @@ __expected.input = "AEKFCDab";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.5_A1_T1.js b/test/built-ins/RegExp/S15.10.2.5_A1_T1.js
index c13919e91..b220f3882 100644
--- a/test/built-ins/RegExp/S15.10.2.5_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.5_A1_T1.js
@@ -17,22 +17,22 @@ __expected.input = "abcdefghi";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.5_A1_T2.js b/test/built-ins/RegExp/S15.10.2.5_A1_T2.js
index 51523e43c..a2c34158d 100644
--- a/test/built-ins/RegExp/S15.10.2.5_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.5_A1_T2.js
@@ -17,22 +17,22 @@ __expected.input = "abcdefghi";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.5_A1_T3.js b/test/built-ins/RegExp/S15.10.2.5_A1_T3.js
index 060407424..0432503ce 100644
--- a/test/built-ins/RegExp/S15.10.2.5_A1_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.5_A1_T3.js
@@ -17,22 +17,22 @@ __expected.input = "aabaac";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.5_A1_T4.js b/test/built-ins/RegExp/S15.10.2.5_A1_T4.js
index a5ca2b115..c62dd1441 100644
--- a/test/built-ins/RegExp/S15.10.2.5_A1_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.5_A1_T4.js
@@ -17,22 +17,22 @@ __expected.input = "zaacbbbcac";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.5_A1_T5.js b/test/built-ins/RegExp/S15.10.2.5_A1_T5.js
index e67c8d9d1..397aa6383 100644
--- a/test/built-ins/RegExp/S15.10.2.5_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.5_A1_T5.js
@@ -17,22 +17,22 @@ __expected.input = "baaaac";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(a*)b\\1+/.exec("baaaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(a*)b\\1+/.exec("baaaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(a*)b\\1+/.exec("baaaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(a*)b\\1+/.exec("baaaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(a*)b\\1+/.exec("baaaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(a*)b\\1+/.exec("baaaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(a*)b\\1+/.exec("baaaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(a*)b\\1+/.exec("baaaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A1_T1.js b/test/built-ins/RegExp/S15.10.2.6_A1_T1.js
index b1fc175fe..e844416e7 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A1_T1.js
@@ -13,5 +13,5 @@ var __executed = /s$/.test("pairs\nmakes\tdouble");
//CHECK#1
if (__executed) {
- $ERROR('#1: /s$/.test("pairs\\nmakes\\tdouble") === false');
+ $ERROR('#1: /s$/.test("pairs\\nmakes\\tdouble") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A1_T2.js b/test/built-ins/RegExp/S15.10.2.6_A1_T2.js
index a019c6d1b..68f0b16e9 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A1_T2.js
@@ -17,22 +17,22 @@ __expected.input = "pairs\nmakes\tdouble";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A1_T3.js b/test/built-ins/RegExp/S15.10.2.6_A1_T3.js
index 77bdd6b53..0d59db23f 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A1_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A1_T3.js
@@ -17,22 +17,22 @@ __expected.input = "pairs\nmakes\tdouble";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A1_T4.js b/test/built-ins/RegExp/S15.10.2.6_A1_T4.js
index 7150d522c..eb88e50dc 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A1_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A1_T4.js
@@ -17,22 +17,22 @@ __expected.input = "pairs\nmakes\tdouble";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A1_T5.js b/test/built-ins/RegExp/S15.10.2.6_A1_T5.js
index 77880ddb2..220eaee83 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A1_T5.js
@@ -19,22 +19,22 @@ __expected.input = "pairs\nmakes\tdoubles";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T1.js b/test/built-ins/RegExp/S15.10.2.6_A2_T1.js
index c071d8009..f9699320c 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A2_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A2_T1.js
@@ -13,5 +13,5 @@ var __executed = /^m/.test("pairs\nmakes\tdouble");
//CHECK#1
if (__executed) {
- $ERROR('#1: /^m/.test("pairs\\nmakes\\tdouble") === false');
+ $ERROR('#1: /^m/.test("pairs\\nmakes\\tdouble") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T10.js b/test/built-ins/RegExp/S15.10.2.6_A2_T10.js
index c69aac7da..b974c27c6 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A2_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A2_T10.js
@@ -17,22 +17,22 @@ __expected.input = "abc\n123xyz";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T2.js b/test/built-ins/RegExp/S15.10.2.6_A2_T2.js
index b24492525..576902a41 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A2_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A2_T2.js
@@ -17,22 +17,22 @@ __expected.input = "pairs\nmakes\tdouble";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T3.js b/test/built-ins/RegExp/S15.10.2.6_A2_T3.js
index e0e0bb42f..6c17255d9 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A2_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A2_T3.js
@@ -19,22 +19,22 @@ __expected.input = "pairs\nmakes\tdouble\npesos";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T4.js b/test/built-ins/RegExp/S15.10.2.6_A2_T4.js
index f2aab4aa2..32e225481 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A2_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A2_T4.js
@@ -19,22 +19,22 @@ __expected.input = "pairs\nmakes\tdouble\npesos";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T5.js b/test/built-ins/RegExp/S15.10.2.6_A2_T5.js
index 4ae39e2c0..c0f80cfa1 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A2_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A2_T5.js
@@ -19,22 +19,22 @@ __expected.input = "pairs\nmakes\tdouble\npesos";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T6.js b/test/built-ins/RegExp/S15.10.2.6_A2_T6.js
index f041a8e8f..0b6223385 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A2_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A2_T6.js
@@ -17,22 +17,22 @@ __expected.input = "abcde";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /^ab/.exec("abcde"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /^ab/.exec("abcde"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /^ab/.exec("abcde"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /^ab/.exec("abcde"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /^ab/.exec("abcde"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /^ab/.exec("abcde"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /^ab/.exec("abcde"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /^ab/.exec("abcde"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T7.js b/test/built-ins/RegExp/S15.10.2.6_A2_T7.js
index 5550511be..82bae81ee 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A2_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A2_T7.js
@@ -13,5 +13,5 @@ var __executed = /^..^e/.test("ab\ncde");
//CHECK#1
if (__executed) {
- $ERROR('#1: /^..^e/.test("ab\\ncde") === false');
+ $ERROR('#1: /^..^e/.test("ab\\ncde") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T8.js b/test/built-ins/RegExp/S15.10.2.6_A2_T8.js
index bd7fefa60..f4e7e3a55 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A2_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A2_T8.js
@@ -13,5 +13,5 @@ var __executed = /^xxx/.test("yyyyy");
//CHECK#1
if (__executed) {
- $ERROR('#1: /^xxx/.test("yyyyy") === false');
+ $ERROR('#1: /^xxx/.test("yyyyy") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T9.js b/test/built-ins/RegExp/S15.10.2.6_A2_T9.js
index 315775278..49ed3934e 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A2_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A2_T9.js
@@ -17,22 +17,22 @@ __expected.input = "^^^x";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /^\\^+/.exec("^^^x"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /^\\^+/.exec("^^^x"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /^\\^+/.exec("^^^x"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /^\\^+/.exec("^^^x"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /^\\^+/.exec("^^^x"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /^\\^+/.exec("^^^x"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /^\\^+/.exec("^^^x"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /^\\^+/.exec("^^^x"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T1.js b/test/built-ins/RegExp/S15.10.2.6_A3_T1.js
index e0e29ca20..c279e3739 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T1.js
@@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T10.js b/test/built-ins/RegExp/S15.10.2.6_A3_T10.js
index e4d91c3ea..c19873c2a 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T10.js
@@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T11.js b/test/built-ins/RegExp/S15.10.2.6_A3_T11.js
index 93fb400bc..545beb17d 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T11.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T11.js
@@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T12.js b/test/built-ins/RegExp/S15.10.2.6_A3_T12.js
index fb1255f5d..19c0afa37 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T12.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T12.js
@@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T13.js b/test/built-ins/RegExp/S15.10.2.6_A3_T13.js
index 672a36920..35a6dac2c 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T13.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T13.js
@@ -15,5 +15,5 @@ var __executed = /op\b/.test("pilot\nsoviet robot\topenoffice");
//CHECK#1
if (__executed) {
- $ERROR('#1: /op\\b/.test("pilot\\nsoviet robot\\topenoffice") === false');
+ $ERROR('#1: /op\\b/.test("pilot\\nsoviet robot\\topenoffice") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T14.js b/test/built-ins/RegExp/S15.10.2.6_A3_T14.js
index 7eee46bf7..507ef10a5 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T14.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T14.js
@@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T15.js b/test/built-ins/RegExp/S15.10.2.6_A3_T15.js
index 3f9a62100..5f7986a08 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T15.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T15.js
@@ -15,5 +15,5 @@ var __executed = /\be/.test("pilot\nsoviet robot\topenoffic\u0065");
//CHECK#1
if (__executed) {
- $ERROR('#1: /\\be/.test("pilot\\nsoviet robot\\topenoffic\\u0065") === false');
+ $ERROR('#1: /\\be/.test("pilot\\nsoviet robot\\topenoffic\\u0065") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T2.js b/test/built-ins/RegExp/S15.10.2.6_A3_T2.js
index 22d8ee9f9..e7c91a375 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T2.js
@@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T3.js b/test/built-ins/RegExp/S15.10.2.6_A3_T3.js
index 8522ca9ce..6e8f3f3b3 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T3.js
@@ -15,5 +15,5 @@ var __executed = /\bot/.test("pilot\nsoviet robot\topenoffice");
//CHECK#1
if (__executed) {
- $ERROR('#1: /\\bot/.test("pilot\\nsoviet robot\\topenoffice") === false');
+ $ERROR('#1: /\\bot/.test("pilot\\nsoviet robot\\topenoffice") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T4.js b/test/built-ins/RegExp/S15.10.2.6_A3_T4.js
index a04d59e2f..1eca04493 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T4.js
@@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T5.js b/test/built-ins/RegExp/S15.10.2.6_A3_T5.js
index 3372ab113..e8fc33383 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T5.js
@@ -15,5 +15,5 @@ var __executed = /so\b/.test("pilot\nsoviet robot\topenoffice");
//CHECK#1
if (__executed) {
- $ERROR('#1: /so\\b/.test("pilot\\nsoviet robot\\topenoffice") === false');
+ $ERROR('#1: /so\\b/.test("pilot\\nsoviet robot\\topenoffice") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T6.js b/test/built-ins/RegExp/S15.10.2.6_A3_T6.js
index 376ac498a..daea40fcd 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T6.js
@@ -19,22 +19,22 @@ __expected.input = "pilOt\nsoviet robot\topenoffice";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T7.js b/test/built-ins/RegExp/S15.10.2.6_A3_T7.js
index f7df23257..58e6c17e2 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T7.js
@@ -19,22 +19,22 @@ __expected.input = "pilOt\nsoviet robot\topenoffice";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T8.js b/test/built-ins/RegExp/S15.10.2.6_A3_T8.js
index d3311f334..922a44d04 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T8.js
@@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T9.js b/test/built-ins/RegExp/S15.10.2.6_A3_T9.js
index f6f480113..593fbf016 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A3_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A3_T9.js
@@ -15,5 +15,5 @@ var __executed = /r\b/.test("pilot\nsoviet robot\topenoffice");
//CHECK#1
if (__executed) {
- $ERROR('#1: /r\\b/.test("pilot\\nsoviet robot\\topenoffice") === false');
+ $ERROR('#1: /r\\b/.test("pilot\\nsoviet robot\\topenoffice") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T1.js b/test/built-ins/RegExp/S15.10.2.6_A4_T1.js
index 4f042b900..ee6373848 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A4_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A4_T1.js
@@ -19,22 +19,22 @@ __expected.input = "devils arise\tfor\nevil";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T2.js b/test/built-ins/RegExp/S15.10.2.6_A4_T2.js
index 0bf29b8cd..66944df9a 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A4_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A4_T2.js
@@ -19,22 +19,22 @@ __expected.input = "devils arise\tfor\nrevil";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T3.js b/test/built-ins/RegExp/S15.10.2.6_A4_T3.js
index 09a5ec3a9..2b1118007 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A4_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A4_T3.js
@@ -17,22 +17,22 @@ __expected.input = "devils arise\tfOr\nrevil";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T4.js b/test/built-ins/RegExp/S15.10.2.6_A4_T4.js
index 51029b789..aa7a5745d 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A4_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A4_T4.js
@@ -17,22 +17,22 @@ __expected.input = "devils arise\tfor\nrevil";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T5.js b/test/built-ins/RegExp/S15.10.2.6_A4_T5.js
index 1c6705d59..0dc01ed29 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A4_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A4_T5.js
@@ -17,22 +17,22 @@ __expected.input = "devils arise\tfor\nrevil";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T6.js b/test/built-ins/RegExp/S15.10.2.6_A4_T6.js
index 26125791d..add5f297e 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A4_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A4_T6.js
@@ -17,22 +17,22 @@ __expected.input = "devils arise\tfor\nrevil";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T7.js b/test/built-ins/RegExp/S15.10.2.6_A4_T7.js
index d56cf6e2a..b8f86f3c5 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A4_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A4_T7.js
@@ -19,22 +19,22 @@ __expected.input = "devil arise\tforzzx\nevils";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T8.js b/test/built-ins/RegExp/S15.10.2.6_A4_T8.js
index 32e8dfcb3..d88e9dc88 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A4_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A4_T8.js
@@ -19,22 +19,22 @@ __expected.input = "devil arise\tforzzx\nevils";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A5_T1.js b/test/built-ins/RegExp/S15.10.2.6_A5_T1.js
index a01a6cfe4..11339ed56 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A5_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A5_T1.js
@@ -17,22 +17,22 @@ __expected.input = "robot";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A5_T2.js b/test/built-ins/RegExp/S15.10.2.6_A5_T2.js
index 81ea28c7a..a8c29e8c4 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A5_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A5_T2.js
@@ -19,22 +19,22 @@ __expected.input = "robot wall-e";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A6_T1.js b/test/built-ins/RegExp/S15.10.2.6_A6_T1.js
index 95c95bb79..59291226c 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A6_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A6_T1.js
@@ -17,22 +17,22 @@ __expected.input = "Hello World";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /^.*?$/.exec("Hello World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /^.*?$/.exec("Hello World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /^.*?$/.exec("Hello World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /^.*?$/.exec("Hello World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /^.*?$/.exec("Hello World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /^.*?$/.exec("Hello World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /^.*?$/.exec("Hello World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /^.*?$/.exec("Hello World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A6_T2.js b/test/built-ins/RegExp/S15.10.2.6_A6_T2.js
index fa7c83537..b3e5c57f8 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A6_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A6_T2.js
@@ -15,22 +15,22 @@ __expected.input = "Hello World";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /^.*?/.exec("Hello World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /^.*?/.exec("Hello World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /^.*?/.exec("Hello World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /^.*?/.exec("Hello World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /^.*?/.exec("Hello World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /^.*?/.exec("Hello World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /^.*?/.exec("Hello World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /^.*?/.exec("Hello World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A6_T3.js b/test/built-ins/RegExp/S15.10.2.6_A6_T3.js
index 1c0db1e9c..f973e84f6 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A6_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A6_T3.js
@@ -15,22 +15,22 @@ __expected.input = "Hello: World";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.6_A6_T4.js b/test/built-ins/RegExp/S15.10.2.6_A6_T4.js
index bab82b143..0384fd275 100644
--- a/test/built-ins/RegExp/S15.10.2.6_A6_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.6_A6_T4.js
@@ -15,22 +15,22 @@ __expected.input = "Hello: World";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /^.*(:|$)/.exec("Hello: World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /^.*(:|$)/.exec("Hello: World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /^.*(:|$)/.exec("Hello: World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /^.*(:|$)/.exec("Hello: World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /^.*(:|$)/.exec("Hello: World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /^.*(:|$)/.exec("Hello: World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /^.*(:|$)/.exec("Hello: World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /^.*(:|$)/.exec("Hello: World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T1.js b/test/built-ins/RegExp/S15.10.2.7_A1_T1.js
index 2a9de52ad..7364f69a3 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T1.js
@@ -17,22 +17,22 @@ __expected.input = "the answer is 42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T10.js b/test/built-ins/RegExp/S15.10.2.7_A1_T10.js
index f046fb1fc..1aa0743b6 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T10.js
@@ -17,22 +17,22 @@ __expected.input = "aaabbbbcccddeeeefffff";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T11.js b/test/built-ins/RegExp/S15.10.2.7_A1_T11.js
index 3dfcfb2d9..17f64fade 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T11.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T11.js
@@ -17,22 +17,22 @@ __expected.input = "aaabbbbcccddeeeefffff";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T12.js b/test/built-ins/RegExp/S15.10.2.7_A1_T12.js
index 5242db863..e3185632b 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T12.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T12.js
@@ -17,22 +17,22 @@ __expected.input = "weirwerdf";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /.{0,93}/.exec("weirwerdf"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /.{0,93}/.exec("weirwerdf"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /.{0,93}/.exec("weirwerdf"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /.{0,93}/.exec("weirwerdf"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /.{0,93}/.exec("weirwerdf"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /.{0,93}/.exec("weirwerdf"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /.{0,93}/.exec("weirwerdf"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /.{0,93}/.exec("weirwerdf"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T2.js b/test/built-ins/RegExp/S15.10.2.7_A1_T2.js
index 317fd309e..07a1e3386 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T2.js
@@ -13,5 +13,5 @@ var __executed = /\d{2,4}/.test("the 7 movie");
//CHECK#1
if (__executed) {
- $ERROR('#1: /\\d{2,4}/.test("the 7 movie") === false');
+ $ERROR('#1: /\\d{2,4}/.test("the 7 movie") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T3.js b/test/built-ins/RegExp/S15.10.2.7_A1_T3.js
index d5cb2be7b..7b873ac71 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T3.js
@@ -19,22 +19,22 @@ __expected.input = "the 20000 Leagues Under the Sea book";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T4.js b/test/built-ins/RegExp/S15.10.2.7_A1_T4.js
index 9ef923453..00f46a858 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T4.js
@@ -17,22 +17,22 @@ __expected.input = "the Fahrenheit 451 book";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T5.js b/test/built-ins/RegExp/S15.10.2.7_A1_T5.js
index b430c8859..1bfb6cf45 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T5.js
@@ -17,22 +17,22 @@ __expected.input = "the 1984 novel";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T6.js b/test/built-ins/RegExp/S15.10.2.7_A1_T6.js
index 9201d4c6b..f19b67bef 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T6.js
@@ -17,22 +17,22 @@ __expected.input = "0a011b";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T7.js b/test/built-ins/RegExp/S15.10.2.7_A1_T7.js
index e9af6cb75..d98ebd9fc 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T7.js
@@ -17,22 +17,22 @@ __expected.input = "0a01122b";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T8.js b/test/built-ins/RegExp/S15.10.2.7_A1_T8.js
index af586602f..e8907a4e0 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T8.js
@@ -17,22 +17,22 @@ __expected.input = "aaabbbbcccddeeeefffff";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T9.js b/test/built-ins/RegExp/S15.10.2.7_A1_T9.js
index 090adf085..a421d09e9 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A1_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A1_T9.js
@@ -13,5 +13,5 @@ var __executed = /b{42,93}c/.test("aaabbbbcccddeeeefffff");
//CHECK#1
if (__executed) {
- $ERROR('#1: /b{42,93}c/.test("aaabbbbcccddeeeefffff") === false');
+ $ERROR('#1: /b{42,93}c/.test("aaabbbbcccddeeeefffff") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A2_T1.js b/test/built-ins/RegExp/S15.10.2.7_A2_T1.js
index f251c5899..0139648df 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A2_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A2_T1.js
@@ -17,22 +17,22 @@ __expected.input = "CE\uFFFFL\uFFDDbox127";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A2_T2.js b/test/built-ins/RegExp/S15.10.2.7_A2_T2.js
index e29e4c24c..01fe1f97a 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A2_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A2_T2.js
@@ -17,22 +17,22 @@ __expected.input = "CELL\uFFDDbox127";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A2_T3.js b/test/built-ins/RegExp/S15.10.2.7_A2_T3.js
index 586726b2e..115df9dfa 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A2_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A2_T3.js
@@ -17,22 +17,22 @@ __expected.input = "aaabbbbcccddeeeefffff";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A2_T4.js b/test/built-ins/RegExp/S15.10.2.7_A2_T4.js
index f078746d2..3e4c7feeb 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A2_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A2_T4.js
@@ -13,5 +13,5 @@ var __executed = /b{8}/.test("aaabbbbcccddeeeefffff");
//CHECK#1
if (__executed) {
- $ERROR('#1: /b{8}/.test("aaabbbbcccddeeeefffff") === false');
+ $ERROR('#1: /b{8}/.test("aaabbbbcccddeeeefffff") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T1.js b/test/built-ins/RegExp/S15.10.2.7_A3_T1.js
index 645611799..6a333777c 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T1.js
@@ -17,22 +17,22 @@ __expected.input = "language java\n";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T10.js b/test/built-ins/RegExp/S15.10.2.7_A3_T10.js
index 2bf469f6e..cf5c85bc3 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T10.js
@@ -13,5 +13,5 @@ var __executed = /o+/.test("abcdefg");
//CHECK#1
if (__executed) {
- $ERROR('#1: /o+/.test("abcdefg") === false');
+ $ERROR('#1: /o+/.test("abcdefg") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T11.js b/test/built-ins/RegExp/S15.10.2.7_A3_T11.js
index b70b42af0..17108a29b 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T11.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T11.js
@@ -17,22 +17,22 @@ __expected.input = "abcdefg";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /d+/.exec("abcdefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /d+/.exec("abcdefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /d+/.exec("abcdefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /d+/.exec("abcdefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /d+/.exec("abcdefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /d+/.exec("abcdefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /d+/.exec("abcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /d+/.exec("abcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T12.js b/test/built-ins/RegExp/S15.10.2.7_A3_T12.js
index 6dca42d24..9bcbb9d24 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T12.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T12.js
@@ -11,28 +11,28 @@ description: Execute /(b+)(b+)(b+)/.exec("abbbbbbbc") and check results
var __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc");
-var __expected = ["bbbbbbb","bbbbb","b","b"];
+var __expected = ["bbbbbbb", "bbbbb", "b", "b"];
__expected.index = 1;
__expected.input = "abbbbbbbc";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T13.js b/test/built-ins/RegExp/S15.10.2.7_A3_T13.js
index c471fc2d2..2c9096b78 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T13.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T13.js
@@ -11,28 +11,28 @@ description: Execute /(b+)(b*)/.exec("abbbbbbbc") and check results
var __executed = /(b+)(b*)/.exec("abbbbbbbc");
-var __expected = ["bbbbbbb","bbbbbbb",""];
+var __expected = ["bbbbbbb", "bbbbbbb", ""];
__expected.index = 1;
__expected.input = "abbbbbbbc";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T14.js b/test/built-ins/RegExp/S15.10.2.7_A3_T14.js
index d076e2ef5..5a486c0f9 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T14.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T14.js
@@ -17,22 +17,22 @@ __expected.input = "abbbbbbbc";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /b*b+/.exec("abbbbbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /b*b+/.exec("abbbbbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /b*b+/.exec("abbbbbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /b*b+/.exec("abbbbbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /b*b+/.exec("abbbbbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /b*b+/.exec("abbbbbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /b*b+/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /b*b+/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T2.js b/test/built-ins/RegExp/S15.10.2.7_A3_T2.js
index 9db765459..c9be7d87c 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T2.js
@@ -17,22 +17,22 @@ __expected.input = "\t java object";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T3.js b/test/built-ins/RegExp/S15.10.2.7_A3_T3.js
index af32a18d4..9c7f4dc88 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T3.js
@@ -13,5 +13,5 @@ var __executed = /\s+java\s+/.test("\t javax package");
//CHECK#1
if (__executed) {
- $ERROR('#1: /\\s+java\\s+/.test("\\t javax package") === false');
+ $ERROR('#1: /\\s+java\\s+/.test("\\t javax package") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T4.js b/test/built-ins/RegExp/S15.10.2.7_A3_T4.js
index 70971cea6..1b4ae926c 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T4.js
@@ -13,5 +13,5 @@ var __executed = /\s+java\s+/.test("java\n\nobject");
//CHECK#1
if (__executed) {
- $ERROR('#1: /\\s+java\\s+/.test("java\\n\\nobject") === false');
+ $ERROR('#1: /\\s+java\\s+/.test("java\\n\\nobject") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T5.js b/test/built-ins/RegExp/S15.10.2.7_A3_T5.js
index 639bd4418..abf3b3b76 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T5.js
@@ -19,22 +19,22 @@ __expected.input = "x 2 ff 55 x2 as1 z12 abc12.0";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T6.js b/test/built-ins/RegExp/S15.10.2.7_A3_T6.js
index 148747555..6f8ec08b5 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T6.js
@@ -17,22 +17,22 @@ __expected.input = "__abc123.0";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T7.js b/test/built-ins/RegExp/S15.10.2.7_A3_T7.js
index 65a188212..e3355626f 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T7.js
@@ -13,28 +13,28 @@ description: >
var __executed = /[a-z]+(\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0");
-var __expected = ["x2","2"];
+var __expected = ["x2", "2"];
__expected.index = 10;
__expected.input = "x 2 ff 55 x2 as1 z12 abc12.0";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T8.js b/test/built-ins/RegExp/S15.10.2.7_A3_T8.js
index 0ff489005..2bd5c0c7e 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T8.js
@@ -11,28 +11,28 @@ description: Execute /[a-z]+(\d+)/.exec("__abc123.0") and check results
var __executed = /[a-z]+(\d+)/.exec("__abc123.0");
-var __expected = ["abc123","123"];
+var __expected = ["abc123", "123"];
__expected.index = 2;
__expected.input = "__abc123.0";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T9.js b/test/built-ins/RegExp/S15.10.2.7_A3_T9.js
index 26e67e6ed..70a90aaee 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A3_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A3_T9.js
@@ -17,22 +17,22 @@ __expected.input = "abcdddddefg";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /d+/.exec("abcdddddefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /d+/.exec("abcdddddefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /d+/.exec("abcdddddefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /d+/.exec("abcdddddefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /d+/.exec("abcdddddefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /d+/.exec("abcdddddefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /d+/.exec("abcdddddefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /d+/.exec("abcdddddefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T1.js b/test/built-ins/RegExp/S15.10.2.7_A4_T1.js
index c23c145b8..58d7dd0a6 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T1.js
@@ -17,22 +17,22 @@ __expected.input = '"beast"-nickname';
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T10.js b/test/built-ins/RegExp/S15.10.2.7_A4_T10.js
index acd87fdf8..6f16f0ec6 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T10.js
@@ -17,22 +17,22 @@ __expected.input = 'abcddddefg';
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /d*/.exec(\'abcddddefg\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /d*/.exec(\'abcddddefg\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /d*/.exec(\'abcddddefg\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /d*/.exec(\'abcddddefg\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /d*/.exec(\'abcddddefg\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /d*/.exec(\'abcddddefg\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /d*/.exec(\'abcddddefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /d*/.exec(\'abcddddefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T11.js b/test/built-ins/RegExp/S15.10.2.7_A4_T11.js
index a3e19636c..946f80632 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T11.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T11.js
@@ -17,22 +17,22 @@ __expected.input = 'abcddddefg';
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /cd*/.exec(\'abcddddefg\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /cd*/.exec(\'abcddddefg\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /cd*/.exec(\'abcddddefg\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /cd*/.exec(\'abcddddefg\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /cd*/.exec(\'abcddddefg\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /cd*/.exec(\'abcddddefg\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /cd*/.exec(\'abcddddefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /cd*/.exec(\'abcddddefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T12.js b/test/built-ins/RegExp/S15.10.2.7_A4_T12.js
index 521ccb574..fa3df8305 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T12.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T12.js
@@ -17,22 +17,22 @@ __expected.input = 'abcdefg';
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /cx*d/.exec(\'abcdefg\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /cx*d/.exec(\'abcdefg\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /cx*d/.exec(\'abcdefg\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /cx*d/.exec(\'abcdefg\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /cx*d/.exec(\'abcdefg\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /cx*d/.exec(\'abcdefg\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /cx*d/.exec(\'abcdefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /cx*d/.exec(\'abcdefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T13.js b/test/built-ins/RegExp/S15.10.2.7_A4_T13.js
index 0cdbb3ed5..17817c2a6 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T13.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T13.js
@@ -11,28 +11,28 @@ description: Execute /(x*)(x+)/.exec('xxxxxxx') and check results
var __executed = /(x*)(x+)/.exec('xxxxxxx');
-var __expected = ["xxxxxxx","xxxxxx","x"];
+var __expected = ["xxxxxxx", "xxxxxx", "x"];
__expected.index = 0;
__expected.input = 'xxxxxxx';
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T14.js b/test/built-ins/RegExp/S15.10.2.7_A4_T14.js
index 405d3a236..9fc2f139f 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T14.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T14.js
@@ -11,28 +11,28 @@ description: Execute /(\d*)(\d+)/.exec('1234567890') and check results
var __executed = /(\d*)(\d+)/.exec('1234567890');
-var __expected = ["1234567890","123456789","0"];
+var __expected = ["1234567890", "123456789", "0"];
__expected.index = 0;
__expected.input = '1234567890';
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T15.js b/test/built-ins/RegExp/S15.10.2.7_A4_T15.js
index 22e0ddcd3..ebf44966e 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T15.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T15.js
@@ -11,28 +11,28 @@ description: Execute /(\d*)\d(\d+)/.exec('1234567890') and check results
var __executed = /(\d*)\d(\d+)/.exec('1234567890');
-var __expected = ["1234567890","12345678","0"];
+var __expected = ["1234567890", "12345678", "0"];
__expected.index = 0;
__expected.input = '1234567890';
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T16.js b/test/built-ins/RegExp/S15.10.2.7_A4_T16.js
index a076f126c..46ebecde2 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T16.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T16.js
@@ -11,28 +11,28 @@ description: Execute /(x+)(x*)/.exec('xxxxxxx') and check results
var __executed = /(x+)(x*)/.exec('xxxxxxx');
-var __expected = ["xxxxxxx","xxxxxxx",""];
+var __expected = ["xxxxxxx", "xxxxxxx", ""];
__expected.index = 0;
__expected.input = 'xxxxxxx';
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T17.js b/test/built-ins/RegExp/S15.10.2.7_A4_T17.js
index 0dc0ffed8..202a6dd9d 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T17.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T17.js
@@ -17,22 +17,22 @@ __expected.input = 'xxxxxxyyyyyy';
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T18.js b/test/built-ins/RegExp/S15.10.2.7_A4_T18.js
index 884dcd9b6..371930389 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T18.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T18.js
@@ -17,22 +17,22 @@ __expected.input = 'abcdef';
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T19.js b/test/built-ins/RegExp/S15.10.2.7_A4_T19.js
index 17379e290..b6027f2b7 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T19.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T19.js
@@ -17,22 +17,22 @@ __expected.input = 'abcdef';
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T2.js b/test/built-ins/RegExp/S15.10.2.7_A4_T2.js
index 4c813338d..d46e2f427 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T2.js
@@ -17,22 +17,22 @@ __expected.input = 'alice said: "don\'t"';
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T20.js b/test/built-ins/RegExp/S15.10.2.7_A4_T20.js
index 9b9f8cd00..3688356ca 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T20.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T20.js
@@ -17,22 +17,22 @@ __expected.input = 'a1b2c3';
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /.*/.exec(\'a1b2c3\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /.*/.exec(\'a1b2c3\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /.*/.exec(\'a1b2c3\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /.*/.exec(\'a1b2c3\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /.*/.exec(\'a1b2c3\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /.*/.exec(\'a1b2c3\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /.*/.exec(\'a1b2c3\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /.*/.exec(\'a1b2c3\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T21.js b/test/built-ins/RegExp/S15.10.2.7_A4_T21.js
index 7f49b3fe7..b8ca45215 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T21.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T21.js
@@ -13,5 +13,5 @@ var __executed = /[xyz]*1/.test('a0.b2.c3');
//CHECK#1
if (__executed) {
- $ERROR('#1: /[xyz]*1/.test(\'a0.b2.c3\') === false');
+ $ERROR('#1: /[xyz]*1/.test(\'a0.b2.c3\') === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T3.js b/test/built-ins/RegExp/S15.10.2.7_A4_T3.js
index a74d0d2e4..d828cdf8e 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T3.js
@@ -17,22 +17,22 @@ __expected.input = "before\'i\'start";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[^"]*/.exec("before\'i\'start"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[^"]*/.exec("before\'i\'start"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[^"]*/.exec("before\'i\'start"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[^"]*/.exec("before\'i\'start"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[^"]*/.exec("before\'i\'start"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[^"]*/.exec("before\'i\'start"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[^"]*/.exec("before\'i\'start"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[^"]*/.exec("before\'i\'start"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T4.js b/test/built-ins/RegExp/S15.10.2.7_A4_T4.js
index bd78fde08..6c838e528 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T4.js
@@ -19,22 +19,22 @@ __expected.input = 'alice \"sweep\": "don\'t"';
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T5.js b/test/built-ins/RegExp/S15.10.2.7_A4_T5.js
index 41a46fa76..41e6f8853 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T5.js
@@ -19,22 +19,22 @@ __expected.input = 'alice "sweep": "don\'t"';
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T6.js b/test/built-ins/RegExp/S15.10.2.7_A4_T6.js
index 1c6d37559..09f836958 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T6.js
@@ -19,22 +19,22 @@ __expected.input = 'alice "sweep": "don\'t"';
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T7.js b/test/built-ins/RegExp/S15.10.2.7_A4_T7.js
index 0c13f607e..613f1fd6b 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T7.js
@@ -19,22 +19,22 @@ __expected.input = 'alice cries out: \'don\'t\'';
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T8.js b/test/built-ins/RegExp/S15.10.2.7_A4_T8.js
index 73cdaa3d6..1312a5dd4 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T8.js
@@ -15,5 +15,5 @@ var __executed = /["'][^"']*["']/.test('alice cries out: don\'t');
//CHECK#1
if (__executed) {
- $ERROR('#1: /["\'][^"\']*["\']/.test(\'alice cries out: don\'t\') === false');
+ $ERROR('#1: /["\'][^"\']*["\']/.test(\'alice cries out: don\'t\') === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T9.js b/test/built-ins/RegExp/S15.10.2.7_A4_T9.js
index 0ae792c8b..55ba72e10 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A4_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A4_T9.js
@@ -19,22 +19,22 @@ __expected.input = 'alice cries out:\"\"';
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T1.js b/test/built-ins/RegExp/S15.10.2.7_A5_T1.js
index 1914219cc..00f3ea1d8 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T1.js
@@ -19,22 +19,22 @@ __expected.input = "state: javascript is extension of ecma script";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T10.js b/test/built-ins/RegExp/S15.10.2.7_A5_T10.js
index 21ff449c5..cbcf26dd6 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T10.js
@@ -17,22 +17,22 @@ __expected.input = "123az789";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T11.js b/test/built-ins/RegExp/S15.10.2.7_A5_T11.js
index 4a6094382..aaf6db673 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T11.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T11.js
@@ -17,22 +17,22 @@ __expected.input = "?????";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T12.js b/test/built-ins/RegExp/S15.10.2.7_A5_T12.js
index 8c5777393..a4d6d73b8 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T12.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T12.js
@@ -17,22 +17,22 @@ __expected.input = "test";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T2.js b/test/built-ins/RegExp/S15.10.2.7_A5_T2.js
index 4cb889534..bb34799b4 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T2.js
@@ -19,22 +19,22 @@ __expected.input = "state: java and javascript are vastly different";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T3.js b/test/built-ins/RegExp/S15.10.2.7_A5_T3.js
index 419d7e4e1..0e6e139dc 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T3.js
@@ -15,5 +15,5 @@ var __executed = /java(script)?/.test("state: both Java and JavaScript used in w
//CHECK#1
if (__executed) {
- $ERROR('#1: /java(script)?/.test("state: both Java and JavaScript used in web development") === false');
+ $ERROR('#1: /java(script)?/.test("state: both Java and JavaScript used in web development") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T4.js b/test/built-ins/RegExp/S15.10.2.7_A5_T4.js
index ae949468d..b247a8fc4 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T4.js
@@ -17,22 +17,22 @@ __expected.input = "abcdef";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /cd?e/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /cd?e/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /cd?e/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /cd?e/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /cd?e/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /cd?e/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /cd?e/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /cd?e/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T5.js b/test/built-ins/RegExp/S15.10.2.7_A5_T5.js
index 3cf99843b..0c2143492 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T5.js
@@ -17,22 +17,22 @@ __expected.input = "abcdef";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /cdx?e/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /cdx?e/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /cdx?e/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /cdx?e/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /cdx?e/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /cdx?e/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /cdx?e/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /cdx?e/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T6.js b/test/built-ins/RegExp/S15.10.2.7_A5_T6.js
index 84bdd79bd..821027ec2 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T6.js
@@ -17,22 +17,22 @@ __expected.input = "pqrstuvw";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /o?pqrst/.exec("pqrstuvw"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /o?pqrst/.exec("pqrstuvw"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /o?pqrst/.exec("pqrstuvw"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /o?pqrst/.exec("pqrstuvw"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /o?pqrst/.exec("pqrstuvw"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /o?pqrst/.exec("pqrstuvw"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /o?pqrst/.exec("pqrstuvw"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /o?pqrst/.exec("pqrstuvw"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T7.js b/test/built-ins/RegExp/S15.10.2.7_A5_T7.js
index 3cf22e3ef..503ba1c1c 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T7.js
@@ -17,22 +17,22 @@ __expected.input = "abcd";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /x?y?z?/.exec("abcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /x?y?z?/.exec("abcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /x?y?z?/.exec("abcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /x?y?z?/.exec("abcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /x?y?z?/.exec("abcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /x?y?z?/.exec("abcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /x?y?z?/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /x?y?z?/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T8.js b/test/built-ins/RegExp/S15.10.2.7_A5_T8.js
index efebcaac4..d00bc6920 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T8.js
@@ -17,22 +17,22 @@ __expected.input = "abcd";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /x?ay?bz?c/.exec("abcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /x?ay?bz?c/.exec("abcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /x?ay?bz?c/.exec("abcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /x?ay?bz?c/.exec("abcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /x?ay?bz?c/.exec("abcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /x?ay?bz?c/.exec("abcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /x?ay?bz?c/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /x?ay?bz?c/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T9.js b/test/built-ins/RegExp/S15.10.2.7_A5_T9.js
index 008fe13a9..67cf77547 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A5_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A5_T9.js
@@ -17,22 +17,22 @@ __expected.input = "abbbbc";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /b?b?b?b/.exec("abbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /b?b?b?b/.exec("abbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /b?b?b?b/.exec("abbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /b?b?b?b/.exec("abbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /b?b?b?b/.exec("abbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /b?b?b?b/.exec("abbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /b?b?b?b/.exec("abbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /b?b?b?b/.exec("abbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T1.js b/test/built-ins/RegExp/S15.10.2.7_A6_T1.js
index c4209a18f..bc20cc946 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A6_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A6_T1.js
@@ -18,22 +18,22 @@ __expected.input = "aaabbbbcccddeeeefffff";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T2.js b/test/built-ins/RegExp/S15.10.2.7_A6_T2.js
index 774bd23cf..7a8378827 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A6_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A6_T2.js
@@ -14,5 +14,5 @@ var __executed = /b{8,}c/.test("aaabbbbcccddeeeefffff");
//CHECK#1
if (__executed) {
- $ERROR('#1: /b{8,}c/.test("aaabbbbcccddeeeefffff") === false');
+ $ERROR('#1: /b{8,}c/.test("aaabbbbcccddeeeefffff") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T3.js b/test/built-ins/RegExp/S15.10.2.7_A6_T3.js
index 2d77da10f..9acb16276 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A6_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A6_T3.js
@@ -18,22 +18,22 @@ __expected.input = "wqe456646dsff";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T4.js b/test/built-ins/RegExp/S15.10.2.7_A6_T4.js
index e5268e296..0d3563036 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A6_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A6_T4.js
@@ -12,28 +12,28 @@ description: Execute /(123){1,}/.exec("123123") and check results
var __executed = /(123){1,}/.exec("123123");
-var __expected = ["123123","123"];
+var __expected = ["123123", "123"];
__expected.index = 0;
__expected.input = "123123";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(123){1,}/.exec("123123"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(123){1,}/.exec("123123"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(123){1,}/.exec("123123"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(123){1,}/.exec("123123"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(123){1,}/.exec("123123"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(123){1,}/.exec("123123"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(123){1,}/.exec("123123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(123){1,}/.exec("123123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T5.js b/test/built-ins/RegExp/S15.10.2.7_A6_T5.js
index a8d8313a8..206bb8a25 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A6_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A6_T5.js
@@ -12,28 +12,28 @@ description: Execute /(123){1,}x\1/.exec("123123x123") and check results
var __executed = /(123){1,}x\1/.exec("123123x123");
-var __expected = ["123123x123","123"];
+var __expected = ["123123x123", "123"];
__expected.index = 0;
__expected.input = "123123x123";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(123){1,}x\\1\\/.exec("123123x123"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(123){1,}x\\1\\/.exec("123123x123"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T6.js b/test/built-ins/RegExp/S15.10.2.7_A6_T6.js
index 2040ef9c6..f1a8401ed 100644
--- a/test/built-ins/RegExp/S15.10.2.7_A6_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.7_A6_T6.js
@@ -18,22 +18,22 @@ __expected.input = "xxxxxxx";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A1_T1.js b/test/built-ins/RegExp/S15.10.2.8_A1_T1.js
index ccbc98197..f5c432035 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A1_T1.js
@@ -18,22 +18,22 @@ __expected.input = "baaabac";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(?=(a+))/.exec("baaabac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(?=(a+))/.exec("baaabac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(?=(a+))/.exec("baaabac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(?=(a+))/.exec("baaabac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(?=(a+))/.exec("baaabac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(?=(a+))/.exec("baaabac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(?=(a+))/.exec("baaabac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(?=(a+))/.exec("baaabac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A1_T2.js b/test/built-ins/RegExp/S15.10.2.8_A1_T2.js
index 197d3de34..6745b6034 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A1_T2.js
@@ -18,22 +18,22 @@ __expected.input = "baaabac";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A1_T3.js b/test/built-ins/RegExp/S15.10.2.8_A1_T3.js
index 4ee93307e..5c4e855b5 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A1_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A1_T3.js
@@ -20,22 +20,22 @@ __expected.input = "just Javascript: the way af jedi";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A1_T4.js b/test/built-ins/RegExp/S15.10.2.8_A1_T4.js
index 4d598bc68..2aacc7deb 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A1_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A1_T4.js
@@ -20,22 +20,22 @@ __expected.input = "taste of java: the cookbook ";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A1_T5.js b/test/built-ins/RegExp/S15.10.2.8_A1_T5.js
index 3088fd08c..053dc7378 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A1_T5.js
@@ -16,5 +16,5 @@ var __executed = /[Jj]ava([Ss]cript)?(?=\:)/.test("rhino is JavaScript engine");
//CHECK#1
if (__executed) {
- $ERROR('#1: /[Jj]ava([Ss]cript)?(?=\\:)/.test("rhino is JavaScript engine") === false');
+ $ERROR('#1: /[Jj]ava([Ss]cript)?(?=\\:)/.test("rhino is JavaScript engine") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T1.js b/test/built-ins/RegExp/S15.10.2.8_A2_T1.js
index f4647025b..4a29869d4 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T1.js
@@ -20,22 +20,22 @@ __expected.input = "baaabaac";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T10.js b/test/built-ins/RegExp/S15.10.2.8_A2_T10.js
index 99385202e..ff6eb1099 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T10.js
@@ -18,22 +18,22 @@ __expected.input = "bc";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(?!a|b)|c/.exec("bc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(?!a|b)|c/.exec("bc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(?!a|b)|c/.exec("bc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(?!a|b)|c/.exec("bc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(?!a|b)|c/.exec("bc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(?!a|b)|c/.exec("bc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(?!a|b)|c/.exec("bc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(?!a|b)|c/.exec("bc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T11.js b/test/built-ins/RegExp/S15.10.2.8_A2_T11.js
index 4d58e957a..f1b5d5983 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T11.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T11.js
@@ -18,22 +18,22 @@ __expected.input = "d";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(?!a|b)|c/.exec("d"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(?!a|b)|c/.exec("d"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(?!a|b)|c/.exec("d"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(?!a|b)|c/.exec("d"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(?!a|b)|c/.exec("d"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(?!a|b)|c/.exec("d"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(?!a|b)|c/.exec("d"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(?!a|b)|c/.exec("d"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T2.js b/test/built-ins/RegExp/S15.10.2.8_A2_T2.js
index 2e4389980..316ec4965 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T2.js
@@ -20,22 +20,22 @@ __expected.input = "using of JavaBeans technology";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T3.js b/test/built-ins/RegExp/S15.10.2.8_A2_T3.js
index 46511a6a5..e572f8370 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T3.js
@@ -16,5 +16,5 @@ var __executed = /Java(?!Script)([A-Z]\w*)/.test("using of Java language");
//CHECK#1
if (__executed) {
- $ERROR('#1: /Java(?!Script)([A-Z]\\w*)/.test("using of Java language") === false');
+ $ERROR('#1: /Java(?!Script)([A-Z]\\w*)/.test("using of Java language") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T4.js b/test/built-ins/RegExp/S15.10.2.8_A2_T4.js
index d165c04ff..95ed08438 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T4.js
@@ -16,5 +16,5 @@ var __executed = /Java(?!Script)([A-Z]\w*)/.test("i'm a JavaScripter ");
//CHECK#1
if (__executed) {
- $ERROR('#1: /Java(?!Script)([A-Z]\\w*)/.test("i\'m a JavaScripter ") === false');
+ $ERROR('#1: /Java(?!Script)([A-Z]\\w*)/.test("i\'m a JavaScripter ") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T5.js b/test/built-ins/RegExp/S15.10.2.8_A2_T5.js
index 7f6a2c61d..0a6f898b4 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T5.js
@@ -20,22 +20,22 @@ __expected.input = "JavaScr oops ipt ";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T6.js b/test/built-ins/RegExp/S15.10.2.8_A2_T6.js
index 222e740fd..b3bcc8a7f 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T6.js
@@ -18,22 +18,22 @@ __expected.input = "ah.info";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T7.js b/test/built-ins/RegExp/S15.10.2.8_A2_T7.js
index b51f7948a..d7212ee1d 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T7.js
@@ -18,22 +18,22 @@ __expected.input = "ah/info";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T8.js b/test/built-ins/RegExp/S15.10.2.8_A2_T8.js
index c636d32d6..b2dbc0fef 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T8.js
@@ -14,5 +14,5 @@ var __executed = /(\.(?!com|org)|\/)/.test("ah.com");
//CHECK#1
if (__executed) {
- $ERROR('#1: /(\\.(?!com|org)|\\/)/.test("ah.com") === false');
+ $ERROR('#1: /(\\.(?!com|org)|\\/)/.test("ah.com") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T9.js b/test/built-ins/RegExp/S15.10.2.8_A2_T9.js
index 79067208e..02e4e39c7 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A2_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A2_T9.js
@@ -18,22 +18,22 @@ __expected.input = "";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(?!a|b)|c/.exec(""); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(?!a|b)|c/.exec(""); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(?!a|b)|c/.exec(""); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(?!a|b)|c/.exec(""); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(?!a|b)|c/.exec(""); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(?!a|b)|c/.exec(""); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(?!a|b)|c/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(?!a|b)|c/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T1.js b/test/built-ins/RegExp/S15.10.2.8_A3_T1.js
index 2a2b46edc..b296c2a52 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T1.js
@@ -15,28 +15,28 @@ description: >
var __executed = /([Jj]ava([Ss]cript)?)\sis\s(fun\w*)/.exec("Learning javaScript is funny, really");
-var __expected = ["javaScript is funny","javaScript","Script","funny"];
+var __expected = ["javaScript is funny", "javaScript", "Script", "funny"];
__expected.index = 9;
__expected.input = "Learning javaScript is funny, really";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T10.js b/test/built-ins/RegExp/S15.10.2.8_A3_T10.js
index 5288ce7e4..3acb5a4d4 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T10.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T10.js
@@ -13,28 +13,28 @@ description: Execute /(\d{3})(\d{3})\1\2/.exec("123456123456") and check results
var __executed = /(\d{3})(\d{3})\1\2/.exec("123456123456");
-var __expected = ["123456123456","123","456"];
+var __expected = ["123456123456", "123", "456"];
__expected.index = 0;
__expected.input = "123456123456";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T11.js b/test/built-ins/RegExp/S15.10.2.8_A3_T11.js
index 1caea9d73..be49cb219 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T11.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T11.js
@@ -13,28 +13,28 @@ description: Execute /a(..(..)..)/.exec("abcdefgh") and check results
var __executed = /a(..(..)..)/.exec("abcdefgh");
-var __expected = ["abcdefg","bcdefg","de"];
+var __expected = ["abcdefg", "bcdefg", "de"];
__expected.index = 0;
__expected.input = "abcdefgh";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T12.js b/test/built-ins/RegExp/S15.10.2.8_A3_T12.js
index a23895599..a6612cfd3 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T12.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T12.js
@@ -13,28 +13,28 @@ description: Execute /(a(b(c)))(d(e(f)))/.exec("xabcdefg") and check results
var __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg");
-var __expected = ["abcdef","abc","bc","c","def","ef","f"];
+var __expected = ["abcdef", "abc", "bc", "c", "def", "ef", "f"];
__expected.index = 1;
__expected.input = "xabcdefg";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T13.js b/test/built-ins/RegExp/S15.10.2.8_A3_T13.js
index d84b98fe3..9569ff491 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T13.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T13.js
@@ -15,28 +15,28 @@ description: >
var __executed = /(a(b(c)))(d(e(f)))\2\5/.exec("xabcdefbcefg");
-var __expected = ["abcdefbcef","abc","bc","c","def","ef","f"];
+var __expected = ["abcdefbcef", "abc", "bc", "c", "def", "ef", "f"];
__expected.index = 1;
__expected.input = "xabcdefbcefg";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T14.js b/test/built-ins/RegExp/S15.10.2.8_A3_T14.js
index 345cc1112..1c44aaf4d 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T14.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T14.js
@@ -13,28 +13,28 @@ description: Execute /a(.?)b\1c\1d\1/.exec("abcd") and check results
var __executed = /a(.?)b\1c\1d\1/.exec("abcd");
-var __expected = ["abcd",""];
+var __expected = ["abcd", ""];
__expected.index = 0;
__expected.input = "abcd";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T15.js b/test/built-ins/RegExp/S15.10.2.8_A3_T15.js
index 972ed33fa..4131d002f 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T15.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T15.js
@@ -16,43 +16,43 @@ var __openParen = '(';
var __closeParen = ')';
var __pattern = '';
var numParens = 200;
-
-for (var i=0; i<numParens; i++)
- __pattern += __openParen;
-
+
+for (var i = 0; i < numParens; i++)
+ __pattern += __openParen;
+
__pattern += __strOriginal;
-for (i=0; i<numParens; i++)
- __pattern += __closeParen;
-
+for (i = 0; i < numParens; i++)
+ __pattern += __closeParen;
+
var __re = new RegExp(__pattern);
var __executed = __re.exec(__strOriginal);
var __expected = [];
-for (var i=0; i<=numParens; i++)
- __expected.push(__strOriginal);
+for (var i = 0; i <= numParens; i++)
+ __expected.push(__strOriginal);
__expected.index = 0;
__expected.input = __strOriginal;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T16.js b/test/built-ins/RegExp/S15.10.2.8_A3_T16.js
index 60e86bbc2..e0f528a9b 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T16.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T16.js
@@ -16,15 +16,15 @@ var __openParen = '(?:';
var __closeParen = ')';
var __pattern = '';
var numParens = 200;
-
-for (var i=0; i<numParens; i++)
- __pattern += __openParen;
-
+
+for (var i = 0; i < numParens; i++)
+ __pattern += __openParen;
+
__pattern += __strOriginal;
-for (i=0; i<numParens; i++)
- __pattern += __closeParen;
-
+for (i = 0; i < numParens; i++)
+ __pattern += __closeParen;
+
var __re = new RegExp(__pattern);
var __executed = __re.exec(__strOriginal);
@@ -35,22 +35,22 @@ __expected.input = __strOriginal;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T17.js b/test/built-ins/RegExp/S15.10.2.8_A3_T17.js
index 67079d3cd..ff69d930c 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T17.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T17.js
@@ -11,13 +11,13 @@ es5id: 15.10.2.8_A3_T17
description: "see bug http:bugzilla.mozilla.org/show_bug.cgi?id=169497"
---*/
-var __body="";
+var __body = "";
__body += '<body onXXX="alert(event.type);">\n';
__body += '<p>Kibology for all<\/p>\n';
__body += '<p>All for Kibology<\/p>\n';
__body += '<\/body>';
-var __html="";
+var __html = "";
__html += '<html>\n';
__html += __body;
__html += '\n<\/html>';
@@ -30,22 +30,22 @@ __expected.input = __html;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /<body.*>((.*\\n?)*?)<\\/body>/i.exec(__html); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /<body.*>((.*\\n?)*?)<\\/body>/i.exec(__html); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /<body.*>((.*\\n?)*?)<\\/body>/i.exec(__html); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /<body.*>((.*\\n?)*?)<\\/body>/i.exec(__html); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /<body.*>((.*\\n?)*?)<\\/body>/i.exec(__html); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /<body.*>((.*\\n?)*?)<\\/body>/i.exec(__html); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /<body.*>((.*\\n?)*?)<\\/body>/i.exec(__html); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /<body.*>((.*\\n?)*?)<\\/body>/i.exec(__html); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T18.js b/test/built-ins/RegExp/S15.10.2.8_A3_T18.js
index 16e866376..9228e64b3 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T18.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T18.js
@@ -17,5 +17,5 @@ var __expected = 'To sign up click <a href="https:www.xxxx.org/subscribe.htm">he
//CHECK#1
if (__replaced !== __expected) {
- $ERROR('#1: __replaced = "To sign up click |here|https:www.xxxx.org/subscribe.htm|".replace(/(\\|)([\\w\\x81-\\xff ]*)(\\|)([\\/a-z][\\w:\\/\\.]*\\.[a-z]{3,4})(\\|)/ig, \'<a href="$4">$2</a>\'); __replaced === ' + __expected + '. Actual: ' + __replaced);
+ $ERROR('#1: __replaced = "To sign up click |here|https:www.xxxx.org/subscribe.htm|".replace(/(\\|)([\\w\\x81-\\xff ]*)(\\|)([\\/a-z][\\w:\\/\\.]*\\.[a-z]{3,4})(\\|)/ig, \'<a href="$4">$2</a>\'); __replaced === ' + __expected + '. Actual: ' + __replaced);
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T19.js b/test/built-ins/RegExp/S15.10.2.8_A3_T19.js
index 4da3e6fe5..93c9090f2 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T19.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T19.js
@@ -15,28 +15,28 @@ description: >
var __executed = /([\S]+([ \t]+[\S]+)*)[ \t]*=[ \t]*[\S]+/.exec("Course_Creator = Test");
-var __expected = ["Course_Creator = Test","Course_Creator",undefined];
+var __expected = ["Course_Creator = Test", "Course_Creator", undefined];
__expected.index = 0;
__expected.input = "Course_Creator = Test";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T2.js b/test/built-ins/RegExp/S15.10.2.8_A3_T2.js
index d65ecc0e7..ebd0e8951 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T2.js
@@ -15,28 +15,28 @@ description: >
var __executed = /([Jj]ava([Ss]cript)?)\sis\s(fun\w*)/.exec("Developing with Java is fun, try it");
-var __expected = ["Java is fun","Java",undefined,"fun"];
+var __expected = ["Java is fun", "Java", undefined, "fun"];
__expected.index = 16;
__expected.input = "Developing with Java is fun, try it";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T20.js b/test/built-ins/RegExp/S15.10.2.8_A3_T20.js
index cd750fb9d..6f148d50f 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T20.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T20.js
@@ -13,28 +13,28 @@ description: Execute /^(A)?(A.*)$/.exec("AAA") and check results
var __executed = /^(A)?(A.*)$/.exec("AAA");
-var __expected = ["AAA","A","AA"];
+var __expected = ["AAA", "A", "AA"];
__expected.index = 0;
__expected.input = "AAA";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T21.js b/test/built-ins/RegExp/S15.10.2.8_A3_T21.js
index a47a45c97..8e6b2e7b4 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T21.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T21.js
@@ -13,28 +13,28 @@ description: Execute /^(A)?(A.*)$/.exec("AA") and check results
var __executed = /^(A)?(A.*)$/.exec("AA");
-var __expected = ["AA","A","A"];
+var __expected = ["AA", "A", "A"];
__expected.index = 0;
__expected.input = "AA";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /^(A)?(A.*)$/.exec("AA"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /^(A)?(A.*)$/.exec("AA"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /^(A)?(A.*)$/.exec("AA"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /^(A)?(A.*)$/.exec("AA"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /^(A)?(A.*)$/.exec("AA"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /^(A)?(A.*)$/.exec("AA"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /^(A)?(A.*)$/.exec("AA"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /^(A)?(A.*)$/.exec("AA"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T22.js b/test/built-ins/RegExp/S15.10.2.8_A3_T22.js
index 27752d9bb..f64a69eda 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T22.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T22.js
@@ -13,28 +13,28 @@ description: Execute /^(A)?(A.*)$/.exec("A") and check results
var __executed = /^(A)?(A.*)$/.exec("A");
-var __expected = ["A",undefined,"A"];
+var __expected = ["A", undefined, "A"];
__expected.index = 0;
__expected.input = "A";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /^(A)?(A.*)$/.exec("A"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /^(A)?(A.*)$/.exec("A"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /^(A)?(A.*)$/.exec("A"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /^(A)?(A.*)$/.exec("A"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /^(A)?(A.*)$/.exec("A"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /^(A)?(A.*)$/.exec("A"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /^(A)?(A.*)$/.exec("A"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /^(A)?(A.*)$/.exec("A"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T23.js b/test/built-ins/RegExp/S15.10.2.8_A3_T23.js
index 7e974f5f0..978937533 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T23.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T23.js
@@ -17,28 +17,28 @@ var __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs";
var __executed = /(A)?(A.*)/.exec(__string);
-var __expected = ["AAAaaAAaaaf;lrlrzs","A","AAaaAAaaaf;lrlrzs"];
+var __expected = ["AAAaaAAaaaf;lrlrzs", "A", "AAaaAAaaaf;lrlrzs"];
__expected.index = 13;
__expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T24.js b/test/built-ins/RegExp/S15.10.2.8_A3_T24.js
index f3c400e2b..6b01cade8 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T24.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T24.js
@@ -17,28 +17,28 @@ var __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs";
var __executed = /(A)?(A.*)/.exec(__string);
-var __expected = ["AAaaAAaaaf;lrlrzs","A","AaaAAaaaf;lrlrzs"];
+var __expected = ["AAaaAAaaaf;lrlrzs", "A", "AaaAAaaaf;lrlrzs"];
__expected.index = 13;
__expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T25.js b/test/built-ins/RegExp/S15.10.2.8_A3_T25.js
index 82f567ddd..a8108f0ca 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T25.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T25.js
@@ -17,28 +17,28 @@ var __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs";
var __executed = /(A)?(A.*)/.exec(__string);
-var __expected = ["AaaAAaaaf;lrlrzs",undefined,"AaaAAaaaf;lrlrzs"];
+var __expected = ["AaaAAaaaf;lrlrzs", undefined, "AaaAAaaaf;lrlrzs"];
__expected.index = 13;
__expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T26.js b/test/built-ins/RegExp/S15.10.2.8_A3_T26.js
index 4a122d15c..a27e53b1a 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T26.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T26.js
@@ -15,28 +15,28 @@ var __string = "a";
var __executed = /(a)?a/.exec(__string);
-var __expected = ["a",undefined];
+var __expected = ["a", undefined];
__expected.index = 0;
__expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "a"; __executed = /(a)?a/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "a"; __executed = /(a)?a/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "a"; __executed = /(a)?a/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "a"; __executed = /(a)?a/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "a"; __executed = /(a)?a/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "a"; __executed = /(a)?a/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "a"; __executed = /(a)?a/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "a"; __executed = /(a)?a/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T27.js b/test/built-ins/RegExp/S15.10.2.8_A3_T27.js
index 777aa82f8..1eb78a151 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T27.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T27.js
@@ -15,28 +15,28 @@ var __string = "a";
var __executed = /a|(b)/.exec(__string);
-var __expected = ["a",undefined];
+var __expected = ["a", undefined];
__expected.index = 0;
__expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "a"; __executed = /a|(b)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "a"; __executed = /a|(b)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "a"; __executed = /a|(b)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "a"; __executed = /a|(b)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "a"; __executed = /a|(b)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "a"; __executed = /a|(b)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "a"; __executed = /a|(b)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "a"; __executed = /a|(b)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T28.js b/test/built-ins/RegExp/S15.10.2.8_A3_T28.js
index 28d9b5384..e1cfc1f21 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T28.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T28.js
@@ -21,22 +21,22 @@ __expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T29.js b/test/built-ins/RegExp/S15.10.2.8_A3_T29.js
index 8e028ec86..e2bbc60f4 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T29.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T29.js
@@ -21,22 +21,22 @@ __expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T3.js b/test/built-ins/RegExp/S15.10.2.8_A3_T3.js
index f041a02b6..2d7ef9066 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T3.js
@@ -18,5 +18,5 @@ var __executed = /([Jj]ava([Ss]cript)?)\sis\s(fun\w*)/.test("Developing with Jav
//CHECK#1
if (__executed) {
- $ERROR('#1: /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.test("Developing with JavaScript is dangerous, do not try it without assistance") === false');
+ $ERROR('#1: /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.test("Developing with JavaScript is dangerous, do not try it without assistance") === false');
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T30.js b/test/built-ins/RegExp/S15.10.2.8_A3_T30.js
index 3cce8f11f..bf4d94b66 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T30.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T30.js
@@ -21,22 +21,22 @@ __expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T31.js b/test/built-ins/RegExp/S15.10.2.8_A3_T31.js
index b4614efea..b0821bf50 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T31.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T31.js
@@ -21,22 +21,22 @@ __expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T32.js b/test/built-ins/RegExp/S15.10.2.8_A3_T32.js
index 304d4e3d8..0e2704b77 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T32.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T32.js
@@ -21,22 +21,22 @@ __expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T33.js b/test/built-ins/RegExp/S15.10.2.8_A3_T33.js
index b59a54d64..cefeb9f33 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T33.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T33.js
@@ -21,22 +21,22 @@ __expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T4.js b/test/built-ins/RegExp/S15.10.2.8_A3_T4.js
index 24599175b..0f19d72ed 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T4.js
@@ -13,28 +13,28 @@ description: Execute /(abc)/.exec("abc") and check results
var __executed = /(abc)/.exec("abc");
-var __expected = ["abc","abc"];
+var __expected = ["abc", "abc"];
__expected.index = 0;
__expected.input = "abc";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(abc)/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(abc)/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(abc)/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(abc)/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(abc)/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(abc)/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(abc)/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(abc)/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T5.js b/test/built-ins/RegExp/S15.10.2.8_A3_T5.js
index 979691b2a..596dbff14 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T5.js
@@ -13,28 +13,28 @@ description: Execute /a(bc)d(ef)g/.exec("abcdefg") and check results
var __executed = /a(bc)d(ef)g/.exec("abcdefg");
-var __expected = ["abcdefg","bc","ef"];
+var __expected = ["abcdefg", "bc", "ef"];
__expected.index = 0;
__expected.input = "abcdefg";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T6.js b/test/built-ins/RegExp/S15.10.2.8_A3_T6.js
index 42fb18903..8197542d7 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T6.js
@@ -13,28 +13,28 @@ description: Execute /(.{3})(.{4})/.exec("abcdefgh") and check results
var __executed = /(.{3})(.{4})/.exec("abcdefgh");
-var __expected = ["abcdefg","abc","defg"];
+var __expected = ["abcdefg", "abc", "defg"];
__expected.index = 0;
__expected.input = "abcdefgh";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T7.js b/test/built-ins/RegExp/S15.10.2.8_A3_T7.js
index 6c30ce8c0..4b59585f3 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T7.js
@@ -13,28 +13,28 @@ description: Execute /(aa)bcd\1/.exec("aabcdaabcd") and check results
var __executed = /(aa)bcd\1/.exec("aabcdaabcd");
-var __expected = ["aabcdaa","aa"];
+var __expected = ["aabcdaa", "aa"];
__expected.index = 0;
__expected.input = "aabcdaabcd";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T8.js b/test/built-ins/RegExp/S15.10.2.8_A3_T8.js
index 2edd5268b..4d1f6b64f 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T8.js
@@ -13,28 +13,28 @@ description: Execute /(aa).+\1/.exec("aabcdaabcd") and check results
var __executed = /(aa).+\1/.exec("aabcdaabcd");
-var __expected = ["aabcdaa","aa"];
+var __expected = ["aabcdaa", "aa"];
__expected.index = 0;
__expected.input = "aabcdaabcd";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T9.js b/test/built-ins/RegExp/S15.10.2.8_A3_T9.js
index 706298b3c..0b2c48bc1 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A3_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A3_T9.js
@@ -13,28 +13,28 @@ description: Execute /(.{2}).+\1/.exec("aabcdaabcd") and check results
var __executed = /(.{2}).+\1/.exec("aabcdaabcd");
-var __expected = ["aabcdaa","aa"];
+var __expected = ["aabcdaa", "aa"];
__expected.index = 0;
__expected.input = "aabcdaabcd";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T1.js b/test/built-ins/RegExp/S15.10.2.8_A4_T1.js
index 77f1a0b4c..fedcd7750 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A4_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A4_T1.js
@@ -19,22 +19,22 @@ __expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T2.js b/test/built-ins/RegExp/S15.10.2.8_A4_T2.js
index 2d43f56b8..f4b2359af 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A4_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A4_T2.js
@@ -19,22 +19,22 @@ __expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T3.js b/test/built-ins/RegExp/S15.10.2.8_A4_T3.js
index 9f934ce59..90b4b631f 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A4_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A4_T3.js
@@ -19,22 +19,22 @@ __expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T4.js b/test/built-ins/RegExp/S15.10.2.8_A4_T4.js
index 105daa3b6..0ab6b7aec 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A4_T4.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A4_T4.js
@@ -19,22 +19,22 @@ __expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T5.js b/test/built-ins/RegExp/S15.10.2.8_A4_T5.js
index 6d69d1db3..67953918f 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A4_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A4_T5.js
@@ -19,22 +19,22 @@ __expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "...."; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "...."; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "...."; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "...."; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "...."; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "...."; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "...."; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "...."; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T6.js b/test/built-ins/RegExp/S15.10.2.8_A4_T6.js
index c311af54a..cb1401cc8 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A4_T6.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A4_T6.js
@@ -19,22 +19,22 @@ __expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T7.js b/test/built-ins/RegExp/S15.10.2.8_A4_T7.js
index 45b1bcd81..61f0fe911 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A4_T7.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A4_T7.js
@@ -19,22 +19,22 @@ __expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T8.js b/test/built-ins/RegExp/S15.10.2.8_A4_T8.js
index b76942c43..5589b330b 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A4_T8.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A4_T8.js
@@ -19,22 +19,22 @@ __expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T9.js b/test/built-ins/RegExp/S15.10.2.8_A4_T9.js
index a26ce200a..fe82987ad 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A4_T9.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A4_T9.js
@@ -19,22 +19,22 @@ __expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A5_T1.js b/test/built-ins/RegExp/S15.10.2.8_A5_T1.js
index 5afd7b265..1306d39a8 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A5_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A5_T1.js
@@ -18,22 +18,22 @@ __expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.8_A5_T2.js b/test/built-ins/RegExp/S15.10.2.8_A5_T2.js
index 2671822ad..f6f5711bf 100644
--- a/test/built-ins/RegExp/S15.10.2.8_A5_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.8_A5_T2.js
@@ -18,22 +18,22 @@ __expected.input = __string;
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.9_A1_T1.js b/test/built-ins/RegExp/S15.10.2.9_A1_T1.js
index b718e3f32..02c0cc609 100644
--- a/test/built-ins/RegExp/S15.10.2.9_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2.9_A1_T1.js
@@ -20,22 +20,22 @@ __expected.input = "do you listen the the band";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.9_A1_T2.js b/test/built-ins/RegExp/S15.10.2.9_A1_T2.js
index 0ef212562..c0b0fa020 100644
--- a/test/built-ins/RegExp/S15.10.2.9_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.2.9_A1_T2.js
@@ -21,22 +21,22 @@ __expected.input = "x09x12x01x01u00FFu00FFx04x04x23";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.9_A1_T3.js b/test/built-ins/RegExp/S15.10.2.9_A1_T3.js
index 6c3bfb0ac..0358e6ff4 100644
--- a/test/built-ins/RegExp/S15.10.2.9_A1_T3.js
+++ b/test/built-ins/RegExp/S15.10.2.9_A1_T3.js
@@ -21,22 +21,22 @@ __expected.input = "x09x12x01x05u00FFu00FFx04x04x23";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2.9_A1_T5.js b/test/built-ins/RegExp/S15.10.2.9_A1_T5.js
index b97e62d57..1dd2a19ad 100644
--- a/test/built-ins/RegExp/S15.10.2.9_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.2.9_A1_T5.js
@@ -18,22 +18,22 @@ __expected.input = "baaac";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __executed = /(a*)b\\1+/.exec("baaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __executed = /(a*)b\\1+/.exec("baaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __executed = /(a*)b\\1+/.exec("baaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __executed = /(a*)b\\1+/.exec("baaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __executed = /(a*)b\\1+/.exec("baaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __executed = /(a*)b\\1+/.exec("baaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __executed = /(a*)b\\1+/.exec("baaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __executed = /(a*)b\\1+/.exec("baaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.2_A1_T1.js b/test/built-ins/RegExp/S15.10.2_A1_T1.js
index 9ebce76ca..a3f9d4a5e 100644
--- a/test/built-ins/RegExp/S15.10.2_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2_A1_T1.js
@@ -46,41 +46,42 @@ var XML_SPE = TextSE + "|" + MarkupSPE;
////
/////
-var __patterns = [TextSE,UntilHyphen,Until2Hyphens,CommentCE,UntilRSBs,CDATA_CE,S,NameStrt, NameChar,
-Name, QuoteSE, DT_IdentSE, MarkupDeclCE, S1,UntilQMs, PI_Tail, DT_ItemSE, DocTypeCE, DeclCE,
-PI_CE, EndTagCE, AttValSE, ElemTagCE, MarkupSPE, XML_SPE];
+var __patterns = [TextSE, UntilHyphen, Until2Hyphens, CommentCE, UntilRSBs, CDATA_CE, S, NameStrt, NameChar,
+ Name, QuoteSE, DT_IdentSE, MarkupDeclCE, S1, UntilQMs, PI_Tail, DT_ItemSE, DocTypeCE, DeclCE,
+ PI_CE, EndTagCE, AttValSE, ElemTagCE, MarkupSPE, XML_SPE
+];
-var __html=""+
-'<html xmlns="http://www.w3.org/1999/xhtml"\n' +
-' xmlns:xlink="http://www.w3.org/XML/XLink/0.9">\n' +
-' <head><title>Three Namespaces</title></head>\n' +
-' <body>\n' +
-' <h1 align="center">An Ellipse and a Rectangle</h1>\n' +
-' <svg xmlns="http://www.w3.org/Graphics/SVG/SVG-19991203.dtd"\n' +
-' width="12cm" height="10cm">\n' +
-' <ellipse rx="110" ry="130" />\n' +
-' <rect x="4cm" y="1cm" width="3cm" height="6cm" />\n' +
-' </svg>\n' +
-' <p xlink:type="simple" xlink:href="ellipses.html">\n' +
-' More about ellipses\n' +
-' </p>\n' +
-' <p xlink:type="simple" xlink:href="rectangles.html">\n' +
-' More about rectangles\n' +
-' </p>\n' +
-' <hr/>\n' +
-' <p>Last Modified February 13, 2000</p>\n' +
-' </body>\n' +
-'</html>';
+var __html = "" +
+ '<html xmlns="http://www.w3.org/1999/xhtml"\n' +
+ ' xmlns:xlink="http://www.w3.org/XML/XLink/0.9">\n' +
+ ' <head><title>Three Namespaces</title></head>\n' +
+ ' <body>\n' +
+ ' <h1 align="center">An Ellipse and a Rectangle</h1>\n' +
+ ' <svg xmlns="http://www.w3.org/Graphics/SVG/SVG-19991203.dtd"\n' +
+ ' width="12cm" height="10cm">\n' +
+ ' <ellipse rx="110" ry="130" />\n' +
+ ' <rect x="4cm" y="1cm" width="3cm" height="6cm" />\n' +
+ ' </svg>\n' +
+ ' <p xlink:type="simple" xlink:href="ellipses.html">\n' +
+ ' More about ellipses\n' +
+ ' </p>\n' +
+ ' <p xlink:type="simple" xlink:href="rectangles.html">\n' +
+ ' More about rectangles\n' +
+ ' </p>\n' +
+ ' <hr/>\n' +
+ ' <p>Last Modified February 13, 2000</p>\n' +
+ ' </body>\n' +
+ '</html>';
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try {
- for(var index=0; index<__patterns.length; index++) {
- var __re = new RegExp(__patterns[index]);
- __re.test(__html);
- }
+ for (var index = 0; index < __patterns.length; index++) {
+ var __re = new RegExp(__patterns[index]);
+ __re.test(__html);
+ }
} catch (e) {
- $ERROR('#'+index+": XML Shallow Parsing with Regular Expression: "+__patterns[index]);
+ $ERROR('#' + index + ": XML Shallow Parsing with Regular Expression: " + __patterns[index]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/RegExp/S15.10.3.1_A1_T1.js b/test/built-ins/RegExp/S15.10.3.1_A1_T1.js
index 80e248317..653bb0a61 100644
--- a/test/built-ins/RegExp/S15.10.3.1_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.3.1_A1_T1.js
@@ -15,5 +15,5 @@ __re.indicator = 1;
//CHECK#1
if (__instance.indicator !== 1) {
- $ERROR('#1: __re = /x/i; __instance = RegExp(__re); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator));
+ $ERROR('#1: __re = /x/i; __instance = RegExp(__re); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator));
}
diff --git a/test/built-ins/RegExp/S15.10.3.1_A1_T2.js b/test/built-ins/RegExp/S15.10.3.1_A1_T2.js
index a40609dcb..2be111163 100644
--- a/test/built-ins/RegExp/S15.10.3.1_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.3.1_A1_T2.js
@@ -10,10 +10,10 @@ description: R is new RegExp and instance is RegExp(R, function(){}())
---*/
var __re = new RegExp;
-var __instance = RegExp(__re, function(){}());
+var __instance = RegExp(__re, function() {}());
__re.indicator = 1;
//CHECK#1
if (__instance.indicator !== 1) {
- $ERROR('#1: __re = new RegExp; __instance = RegExp(__re, function(){}()); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator));
+ $ERROR('#1: __re = new RegExp; __instance = RegExp(__re, function(){}()); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator));
}
diff --git a/test/built-ins/RegExp/S15.10.3.1_A1_T3.js b/test/built-ins/RegExp/S15.10.3.1_A1_T3.js
index 42fe6507e..a73fdc6e5 100644
--- a/test/built-ins/RegExp/S15.10.3.1_A1_T3.js
+++ b/test/built-ins/RegExp/S15.10.3.1_A1_T3.js
@@ -17,7 +17,7 @@ __re.indicator = 1;
//CHECK#1
if (__instance.indicator !== 1) {
- $ERROR('#1: __re = new RegExp(); __instance = RegExp(__re, x); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator));
+ $ERROR('#1: __re = new RegExp(); __instance = RegExp(__re, x); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator));
}
var x;
diff --git a/test/built-ins/RegExp/S15.10.3.1_A1_T4.js b/test/built-ins/RegExp/S15.10.3.1_A1_T4.js
index 9416e9ee7..72453d3e5 100644
--- a/test/built-ins/RegExp/S15.10.3.1_A1_T4.js
+++ b/test/built-ins/RegExp/S15.10.3.1_A1_T4.js
@@ -15,5 +15,5 @@ __re.indicator = 1;
//CHECK#1
if (__instance.indicator !== 1) {
- $ERROR('#1: __re = RegExp(); __instance = RegExp(__re, void 0); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator));
+ $ERROR('#1: __re = RegExp(); __instance = RegExp(__re, void 0); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator));
}
diff --git a/test/built-ins/RegExp/S15.10.3.1_A1_T5.js b/test/built-ins/RegExp/S15.10.3.1_A1_T5.js
index 9e826ff86..59658029c 100644
--- a/test/built-ins/RegExp/S15.10.3.1_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.3.1_A1_T5.js
@@ -15,5 +15,5 @@ __re.indicator = 1;
//CHECK#1
if (__instance.indicator !== 1) {
- $ERROR('#1: __re = /\\b/m; __instance = RegExp(__re, undefined); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator));
+ $ERROR('#1: __re = /\\b/m; __instance = RegExp(__re, undefined); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator));
}
diff --git a/test/built-ins/RegExp/S15.10.3.1_A2_T1.js b/test/built-ins/RegExp/S15.10.3.1_A2_T1.js
index 61e7e6874..b4af65a7d 100644
--- a/test/built-ins/RegExp/S15.10.3.1_A2_T1.js
+++ b/test/built-ins/RegExp/S15.10.3.1_A2_T1.js
@@ -13,9 +13,9 @@ description: >
//CHECK#1
try {
- $ERROR('#1.1: RegExp(new RegExp("\\d"), "1")) throw SyntaxError. Actual: ' + (RegExp(new RegExp("\d"), "1")));
+ $ERROR('#1.1: RegExp(new RegExp("\\d"), "1")) throw SyntaxError. Actual: ' + (RegExp(new RegExp("\d"), "1")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: RegExp(new RegExp("\\d"), "1")) throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: RegExp(new RegExp("\\d"), "1")) throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.3.1_A2_T2.js b/test/built-ins/RegExp/S15.10.3.1_A2_T2.js
index 51f01d47a..df67961a7 100644
--- a/test/built-ins/RegExp/S15.10.3.1_A2_T2.js
+++ b/test/built-ins/RegExp/S15.10.3.1_A2_T2.js
@@ -15,9 +15,9 @@ var x = 1;
//CHECK#1
try {
- $ERROR('#1.1: var x = 1; RegExp(/[a-b]?/, x) throw SyntaxError. Actual: ' + (RegExp(/[a-b]?/, x)));
+ $ERROR('#1.1: var x = 1; RegExp(/[a-b]?/, x) throw SyntaxError. Actual: ' + (RegExp(/[a-b]?/, x)));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: var x = 1; RegExp(/[a-b]?/, x) throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: var x = 1; RegExp(/[a-b]?/, x) throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.3.1_A3_T1.js b/test/built-ins/RegExp/S15.10.3.1_A3_T1.js
index 086b41c71..2eb733cd3 100644
--- a/test/built-ins/RegExp/S15.10.3.1_A3_T1.js
+++ b/test/built-ins/RegExp/S15.10.3.1_A3_T1.js
@@ -14,10 +14,10 @@ var __instance = RegExp(__re, "i");
//CHECK#1
if (__instance.constructor !== RegExp) {
- $ERROR('#1: __re = "d+"; __instance = RegExp(__re, "i"); __instance.constructor === RegExp. Actual: ' + (__instance.constructor));
+ $ERROR('#1: __re = "d+"; __instance = RegExp(__re, "i"); __instance.constructor === RegExp. Actual: ' + (__instance.constructor));
}
//CHECK#2
if (__instance.source !== __re) {
- $ERROR('#2: __re = "d+"; __instance = RegExp(__re, "i"); __instance.source === __re. Actual: '+ (__instance.source));
+ $ERROR('#2: __re = "d+"; __instance = RegExp(__re, "i"); __instance.source === __re. Actual: ' + (__instance.source));
}
diff --git a/test/built-ins/RegExp/S15.10.3.1_A3_T2.js b/test/built-ins/RegExp/S15.10.3.1_A3_T2.js
index a65663218..2737fa7ad 100644
--- a/test/built-ins/RegExp/S15.10.3.1_A3_T2.js
+++ b/test/built-ins/RegExp/S15.10.3.1_A3_T2.js
@@ -11,14 +11,18 @@ description: >
RegExp(R,"gm")
---*/
-var __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm");
+var __instance = RegExp({
+ toString: function() {
+ return "[a-c]*";
+ }
+}, "gm");
//CHECK#1
if (__instance.constructor !== RegExp) {
- $ERROR('#1: __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); __instance.constructor === RegExp. Actual: ' + (__instance.constructor));
+ $ERROR('#1: __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); __instance.constructor === RegExp. Actual: ' + (__instance.constructor));
}
//CHECK#2
if (__instance.source !== "[a-c]*") {
- $ERROR('#2: __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); __instance.source === "[a-c]*". Actual: '+ (__instance.source));
+ $ERROR('#2: __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); __instance.source === "[a-c]*". Actual: ' + (__instance.source));
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A1_T1.js b/test/built-ins/RegExp/S15.10.4.1_A1_T1.js
index d038262d1..5e6e04c04 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A1_T1.js
@@ -10,11 +10,11 @@ description: Pattern is /./i and RegExp is new RegExp(pattern)
---*/
var __pattern = /./i;
-var __re = new RegExp(__pattern);
+var __re = new RegExp(__pattern);
//CHECK#1
if (__re.source !== __pattern.source) {
- $ERROR('#1: __pattern = /./i; __re = new RegExp(__pattern); __re.source === __pattern.source. Actual: '+ (__re.source));
+ $ERROR('#1: __pattern = /./i; __re = new RegExp(__pattern); __re.source === __pattern.source. Actual: ' + (__re.source));
}
//CHECK#2
diff --git a/test/built-ins/RegExp/S15.10.4.1_A1_T2.js b/test/built-ins/RegExp/S15.10.4.1_A1_T2.js
index bbcfff4d9..ef0fce22e 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A1_T2.js
@@ -16,7 +16,7 @@ var __re = new RegExp(__pattern, x);
//CHECK#1
if (__re.source !== __pattern.source) {
- $ERROR('#1: __pattern = /\\t/m; _re = new RegExp(__pattern, x); var x; __re.source === __pattern.source. Actual: '+ (__re.source));
+ $ERROR('#1: __pattern = /\\t/m; _re = new RegExp(__pattern, x); var x; __re.source === __pattern.source. Actual: ' + (__re.source));
}
//CHECK#2
diff --git a/test/built-ins/RegExp/S15.10.4.1_A1_T3.js b/test/built-ins/RegExp/S15.10.4.1_A1_T3.js
index 21f523524..40eacdfa5 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A1_T3.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A1_T3.js
@@ -14,7 +14,7 @@ var __re = new RegExp(__pattern, void 0);
//CHECK#1
if (__re.source !== __pattern.source) {
- $ERROR('#1: __pattern = /[a-b]/g; __re = new RegExp(__pattern, void 0); __re.source === __pattern.source. Actual: '+ (__re.source));
+ $ERROR('#1: __pattern = /[a-b]/g; __re = new RegExp(__pattern, void 0); __re.source === __pattern.source. Actual: ' + (__re.source));
}
//CHECK#2
diff --git a/test/built-ins/RegExp/S15.10.4.1_A1_T4.js b/test/built-ins/RegExp/S15.10.4.1_A1_T4.js
index 9585f8479..f03b42870 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A1_T4.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A1_T4.js
@@ -14,7 +14,7 @@ var __re = new RegExp(__pattern, undefined);
//CHECK#1
if (__re.source !== __pattern.source) {
- $ERROR('#1: __pattern = new RegExp; __re = new RegExp(__pattern, undefined); __re.source === __pattern.source. Actual: '+ (__re.source));
+ $ERROR('#1: __pattern = new RegExp; __re = new RegExp(__pattern, undefined); __re.source === __pattern.source. Actual: ' + (__re.source));
}
//CHECK#2
diff --git a/test/built-ins/RegExp/S15.10.4.1_A1_T5.js b/test/built-ins/RegExp/S15.10.4.1_A1_T5.js
index e318c03fb..79f7c6cd6 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A1_T5.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A1_T5.js
@@ -11,12 +11,12 @@ description: >
RegExp(pattern,(function(){})())
---*/
-var __pattern = RegExp("1?","mig");
-var __re = new RegExp(__pattern, (function(){})());
+var __pattern = RegExp("1?", "mig");
+var __re = new RegExp(__pattern, (function() {})());
//CHECK#1
if (__re.source !== __pattern.source) {
- $ERROR('#1: __pattern = RegExp("1?","mig"); __re = new RegExp(__pattern, (function(){})()); __re.source === __pattern.source. Actual: '+ (__re.source));
+ $ERROR('#1: __pattern = RegExp("1?","mig"); __re = new RegExp(__pattern, (function(){})()); __re.source === __pattern.source. Actual: ' + (__re.source));
}
//CHECK#2
diff --git a/test/built-ins/RegExp/S15.10.4.1_A3_T5.js b/test/built-ins/RegExp/S15.10.4.1_A3_T5.js
index 1fb6251a8..c632d9537 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A3_T5.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A3_T5.js
@@ -7,7 +7,7 @@ es5id: 15.10.4.1_A3_T5
description: RegExp is new RegExp((function(){})())
---*/
-var __re = new RegExp((function(){})());
+var __re = new RegExp((function() {})());
//CHECK#2
if (__re.multiline !== false) {
diff --git a/test/built-ins/RegExp/S15.10.4.1_A4_T1.js b/test/built-ins/RegExp/S15.10.4.1_A4_T1.js
index f9db74f33..c3fee8b28 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A4_T1.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A4_T1.js
@@ -11,7 +11,7 @@ var __re = new RegExp(null, void 0);
//CHECK#1
if (__re.source !== "null") {
- $ERROR('#1: __re = new RegExp(null, void 0); __re.source === "null". Actual: '+ (__re.source));
+ $ERROR('#1: __re = new RegExp(null, void 0); __re.source === "null". Actual: ' + (__re.source));
}
//CHECK#2
diff --git a/test/built-ins/RegExp/S15.10.4.1_A4_T4.js b/test/built-ins/RegExp/S15.10.4.1_A4_T4.js
index ab2f6ebf4..be9b3e42b 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A4_T4.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A4_T4.js
@@ -11,7 +11,7 @@ var __re = new RegExp(null, void 0);
//CHECK#1
if (__re.source !== "null") {
- $ERROR('#1: __re = new RegExp(null, void 0); __re.source === "null". Actual: '+ (__re.source));
+ $ERROR('#1: __re = new RegExp(null, void 0); __re.source === "null". Actual: ' + (__re.source));
}
//CHECK#2
diff --git a/test/built-ins/RegExp/S15.10.4.1_A4_T5.js b/test/built-ins/RegExp/S15.10.4.1_A4_T5.js
index 7fbffaa1a..ca987b8ad 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A4_T5.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A4_T5.js
@@ -7,7 +7,7 @@ es5id: 15.10.4.1_A4_T5
description: RegExp is new RegExp("",(function(){})())
---*/
-var __re = new RegExp("", (function(){})());
+var __re = new RegExp("", (function() {})());
//CHECK#2
if (__re.multiline !== false) {
diff --git a/test/built-ins/RegExp/S15.10.4.1_A5_T1.js b/test/built-ins/RegExp/S15.10.4.1_A5_T1.js
index 8aebbec67..70882c2cb 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A5_T1.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A5_T1.js
@@ -11,9 +11,9 @@ description: Checking if using "ii" as F leads to throwing the correct exception
//CHECK#1
try {
- $ERROR('#1.1: new RegExp(undefined,"ii") throw SyntaxError. Actual: ' + (new RegExp(undefined,"ii")));
+ $ERROR('#1.1: new RegExp(undefined,"ii") throw SyntaxError. Actual: ' + (new RegExp(undefined, "ii")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp(undefined,"ii") throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp(undefined,"ii") throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A5_T3.js b/test/built-ins/RegExp/S15.10.4.1_A5_T3.js
index 6113d779e..2d005f34c 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A5_T3.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A5_T3.js
@@ -11,9 +11,9 @@ description: Checking by using eval, try to use eval("\"migr\"") as F
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("",eval("\\"migr\\"")) throw SyntaxError. Actual: ' + (new RegExp("",eval("\"migr\""))));
+ $ERROR('#1.1: new RegExp("",eval("\\"migr\\"")) throw SyntaxError. Actual: ' + (new RegExp("", eval("\"migr\""))));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("",eval("\\"migr\\"")) throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("",eval("\\"migr\\"")) throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A5_T4.js b/test/built-ins/RegExp/S15.10.4.1_A5_T4.js
index 4949563ed..5cb04e03a 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A5_T4.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A5_T4.js
@@ -11,9 +11,9 @@ description: Checking if using "z" as F leads to throwing the correct exception
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("a|b","z") throw SyntaxError. Actual: ' + (new RegExp("a|b","z")));
+ $ERROR('#1.1: new RegExp("a|b","z") throw SyntaxError. Actual: ' + (new RegExp("a|b", "z")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("a|b","z") throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("a|b","z") throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A5_T6.js b/test/built-ins/RegExp/S15.10.4.1_A5_T6.js
index 6cf250705..756e3b78d 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A5_T6.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A5_T6.js
@@ -13,9 +13,9 @@ description: >
//CHECK#1
try {
- $ERROR('#1.1: new RegExp(".",null) throw SyntaxError. Actual: ' + (new RegExp(".",null)));
+ $ERROR('#1.1: new RegExp(".",null) throw SyntaxError. Actual: ' + (new RegExp(".", null)));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp(".",null) throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp(".",null) throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A5_T7.js b/test/built-ins/RegExp/S15.10.4.1_A5_T7.js
index 683024052..159e00841 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A5_T7.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A5_T7.js
@@ -11,9 +11,9 @@ description: Checking if using 1.0 as F leads to throwing the correct exception
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("^",1.0) throw SyntaxError. Actual: ' + (new RegExp("^",1.0)));
+ $ERROR('#1.1: new RegExp("^",1.0) throw SyntaxError. Actual: ' + (new RegExp("^", 1.0)));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("^",1.0) throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("^",1.0) throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A5_T8.js b/test/built-ins/RegExp/S15.10.4.1_A5_T8.js
index a88675aae..f15d5131e 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A5_T8.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A5_T8.js
@@ -13,9 +13,9 @@ description: >
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("|",true) throw SyntaxError. Actual: ' + (new RegExp("|",true)));
+ $ERROR('#1.1: new RegExp("|",true) throw SyntaxError. Actual: ' + (new RegExp("|", true)));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("|",true) throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("|",true) throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A5_T9.js b/test/built-ins/RegExp/S15.10.4.1_A5_T9.js
index 432b4eddd..69e5cbb15 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A5_T9.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A5_T9.js
@@ -13,9 +13,11 @@ description: >
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("$sup",{toString:function(){}}) throw SyntaxError. Actual: ' + (new RegExp("$sup",{toString:function(){}})));
+ $ERROR('#1.1: new RegExp("$sup",{toString:function(){}}) throw SyntaxError. Actual: ' + (new RegExp("$sup", {
+ toString: function() {}
+ })));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("$sup",{toString:function(){}}) throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("$sup",{toString:function(){}}) throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A6_T1.js b/test/built-ins/RegExp/S15.10.4.1_A6_T1.js
index 0ab30d722..add5ef6b9 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A6_T1.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A6_T1.js
@@ -11,6 +11,6 @@ var __re = new RegExp;
__re.toString = Object.prototype.toString;
//CHECK#1
-if (__re.toString() !== "[object "+"RegExp"+"]") {
- $ERROR('#1: __re = new RegExp; __re.toString = Object.prototype.toString; __re.toString() === "[object "+"RegExp"+"]". Actual: ' + (__re.toString()));
+if (__re.toString() !== "[object " + "RegExp" + "]") {
+ $ERROR('#1: __re = new RegExp; __re.toString = Object.prototype.toString; __re.toString() === "[object "+"RegExp"+"]". Actual: ' + (__re.toString()));
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A7_T1.js b/test/built-ins/RegExp/S15.10.4.1_A7_T1.js
index e4d0d102e..f9f2b87cf 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A7_T1.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A7_T1.js
@@ -17,5 +17,5 @@ RegExp.prototype.indicator = 1;
//CHECK#1
if (__re.indicator !== 1) {
- $ERROR('#1: __re = new RegExp; RegExp.prototype.indicator = 1; __re.indicator === 1. Actual: ' + (__re.indicator));
+ $ERROR('#1: __re = new RegExp; RegExp.prototype.indicator = 1; __re.indicator === 1. Actual: ' + (__re.indicator));
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A7_T2.js b/test/built-ins/RegExp/S15.10.4.1_A7_T2.js
index f3edd64f6..18fb09072 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A7_T2.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A7_T2.js
@@ -14,5 +14,5 @@ var __re = new RegExp();
//CHECK#1
if (RegExp.prototype.isPrototypeOf(__re) !== true) {
- $ERROR('#1: __re = new RegExp(); RegExp.prototype.isPrototypeOf(__re) === true. Actual: ' + (RegExp.prototype.isPrototypeOf(__re)));
+ $ERROR('#1: __re = new RegExp(); RegExp.prototype.isPrototypeOf(__re) === true. Actual: ' + (RegExp.prototype.isPrototypeOf(__re)));
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T1.js b/test/built-ins/RegExp/S15.10.4.1_A8_T1.js
index c1a063c85..e5c086b6b 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A8_T1.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A8_T1.js
@@ -7,29 +7,29 @@ es5id: 15.10.4.1_A8_T1
description: Pattern is "a|b" and flags is "i"
---*/
-var __re = new RegExp("a|b","i");
+var __re = new RegExp("a|b", "i");
//CHECK#1
if (__re.ignoreCase !== true) {
- $ERROR('#1: __re = new RegExp("a|b","i"); __re.ignoreCase === true. Actual: ' + (__re.ignoreCase));
+ $ERROR('#1: __re = new RegExp("a|b","i"); __re.ignoreCase === true. Actual: ' + (__re.ignoreCase));
}
//CHECK#2
if (__re.multiline !== false) {
- $ERROR('#2: __re = new RegExp("a|b","i"); __re.multiline === false. Actual: ' + (__re.multiline));
+ $ERROR('#2: __re = new RegExp("a|b","i"); __re.multiline === false. Actual: ' + (__re.multiline));
}
//CHECK#3
if (__re.global !== false) {
- $ERROR('#3: __re = new RegExp("a|b","i"); __re.global === false. Actual: ' + (__re.global));
+ $ERROR('#3: __re = new RegExp("a|b","i"); __re.global === false. Actual: ' + (__re.global));
}
//CHECK#4
if (__re.lastIndex !== 0) {
- $ERROR('#4: __re = new RegExp("a|b","i"); __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
+ $ERROR('#4: __re = new RegExp("a|b","i"); __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
}
//CHECK#5
if (typeof __re.source === "undefined") {
- $ERROR('#5: __re = new RegExp("a|b","i"); typeof __re.source !== "undefined"');
+ $ERROR('#5: __re = new RegExp("a|b","i"); typeof __re.source !== "undefined"');
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T10.js b/test/built-ins/RegExp/S15.10.4.1_A8_T10.js
index 23dbb0d1a..189c20bbd 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A8_T10.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A8_T10.js
@@ -7,29 +7,29 @@ es5id: 15.10.4.1_A8_T10
description: Pattern is true and flags is "m"
---*/
-var __re = new RegExp(true,"m");
+var __re = new RegExp(true, "m");
//CHECK#1
if (__re.ignoreCase !== false) {
- $ERROR('#1: __re = new RegExp(true,"m"); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase));
+ $ERROR('#1: __re = new RegExp(true,"m"); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase));
}
//CHECK#2
if (__re.multiline !== true) {
- $ERROR('#2: __re = new RegExp(true,"m"); __re.multiline === true. Actual: ' + (__re.multiline));
+ $ERROR('#2: __re = new RegExp(true,"m"); __re.multiline === true. Actual: ' + (__re.multiline));
}
//CHECK#3
if (__re.global !== false) {
- $ERROR('#3: __re = new RegExp(true,"m"); __re.global === false. Actual: ' + (__re.global));
+ $ERROR('#3: __re = new RegExp(true,"m"); __re.global === false. Actual: ' + (__re.global));
}
//CHECK#4
if (__re.lastIndex !== 0) {
- $ERROR('#4: __re = new RegExp(true,"m"); __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
+ $ERROR('#4: __re = new RegExp(true,"m"); __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
}
//CHECK#5
if (typeof __re.source === "undefined") {
- $ERROR('#5: __re = new RegExp(true,"m"); typeof __re.source !== "undefined"');
+ $ERROR('#5: __re = new RegExp(true,"m"); typeof __re.source !== "undefined"');
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T11.js b/test/built-ins/RegExp/S15.10.4.1_A8_T11.js
index 1e38cc318..3aa637f80 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A8_T11.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A8_T11.js
@@ -7,29 +7,29 @@ es5id: 15.10.4.1_A8_T11
description: Checking by using eval, pattern is Math and flags is eval("\"g\"")
---*/
-var __re = new RegExp(Math,eval("\"g\""));
+var __re = new RegExp(Math, eval("\"g\""));
//CHECK#1
if (__re.ignoreCase !== false) {
- $ERROR('#1: __re = new RegExp(Math,eval("\\"g\\"")); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase));
+ $ERROR('#1: __re = new RegExp(Math,eval("\\"g\\"")); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase));
}
//CHECK#2
if (__re.multiline !== false) {
- $ERROR('#2: __re = new RegExp(Math,eval("\\"g\\"")); __re.multiline === false. Actual: ' + (__re.multiline));
+ $ERROR('#2: __re = new RegExp(Math,eval("\\"g\\"")); __re.multiline === false. Actual: ' + (__re.multiline));
}
//CHECK#3
if (__re.global !== true) {
- $ERROR('#3: __re = new RegExp(Math,eval("\\"g\\"")); __re.global === true. Actual: ' + (__re.global));
+ $ERROR('#3: __re = new RegExp(Math,eval("\\"g\\"")); __re.global === true. Actual: ' + (__re.global));
}
//CHECK#4
if (__re.lastIndex !== 0) {
- $ERROR('#4: __re = new RegExp(Math,eval("\\"g\\"")); __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
+ $ERROR('#4: __re = new RegExp(Math,eval("\\"g\\"")); __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
}
//CHECK#5
if (typeof __re.source === "undefined") {
- $ERROR('#5: __re = new RegExp(Math,eval("\\"g\\"")); typeof __re.source !== "undefined"');
+ $ERROR('#5: __re = new RegExp(Math,eval("\\"g\\"")); typeof __re.source !== "undefined"');
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T12.js b/test/built-ins/RegExp/S15.10.4.1_A8_T12.js
index 988bd7c40..a8d1c9f41 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A8_T12.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A8_T12.js
@@ -11,9 +11,14 @@ description: >
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("\\u0042", {toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (new RegExp("\u0042", {toString:void 0, valueOf:function(){throw "invalof";}})));
+ $ERROR('#1.1: new RegExp("\\u0042", {toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (new RegExp("\u0042", {
+ toString: void 0,
+ valueOf: function() {
+ throw "invalof";
+ }
+ })));
} catch (e) {
- if (e !== "invalof" ) {
- $ERROR('#1.2: new RegExp("\\u0042", {toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e));
- }
+ if (e !== "invalof") {
+ $ERROR('#1.2: new RegExp("\\u0042", {toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T13.js b/test/built-ins/RegExp/S15.10.4.1_A8_T13.js
index e69d236f2..11ba74a1c 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A8_T13.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A8_T13.js
@@ -11,9 +11,13 @@ description: >
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("1", {toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (new RegExp("1", {toString:function(){throw "intostr";}})));
+ $ERROR('#1.1: new RegExp("1", {toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (new RegExp("1", {
+ toString: function() {
+ throw "intostr";
+ }
+ })));
} catch (e) {
- if (e !== "intostr" ) {
- $ERROR('#1.2: new RegExp("1", {toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (e));
- }
+ if (e !== "intostr") {
+ $ERROR('#1.2: new RegExp("1", {toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T2.js b/test/built-ins/RegExp/S15.10.4.1_A8_T2.js
index ed7b3b7ce..f17f8819b 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A8_T2.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A8_T2.js
@@ -7,29 +7,31 @@ es5id: 15.10.4.1_A8_T2
description: Pattern is function(){return "a|b|[]";}() and flags is "ig"
---*/
-var __re = new RegExp(function(){return "a|b|[]";}(),"ig");
+var __re = new RegExp(function() {
+ return "a|b|[]";
+}(), "ig");
//CHECK#1
if (__re.ignoreCase !== true) {
- $ERROR('#1: __re = new RegExp(function(){return "a|b|[]"; __re.ignoreCase === true. Actual: ' + (__re.ignoreCase));
+ $ERROR('#1: __re = new RegExp(function(){return "a|b|[]"; __re.ignoreCase === true. Actual: ' + (__re.ignoreCase));
}
//CHECK#2
if (__re.multiline !== false) {
- $ERROR('#2: __re = new RegExp(function(){return "a|b|[]"; __re.multiline === false. Actual: ' + (__re.multiline));
+ $ERROR('#2: __re = new RegExp(function(){return "a|b|[]"; __re.multiline === false. Actual: ' + (__re.multiline));
}
//CHECK#3
if (__re.global !== true) {
- $ERROR('#3: __re = new RegExp(function(){return "a|b|[]"; __re.global === true. Actual: ' + (__re.global));
+ $ERROR('#3: __re = new RegExp(function(){return "a|b|[]"; __re.global === true. Actual: ' + (__re.global));
}
//CHECK#4
if (__re.lastIndex !== 0) {
- $ERROR('#4: __re = new RegExp(function(){return "a|b|[]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
+ $ERROR('#4: __re = new RegExp(function(){return "a|b|[]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
}
//CHECK#5
if (typeof __re.source === "undefined") {
- $ERROR('#5: __re = new RegExp(function(){return "a|b|[]"; typeof __re.source !== "undefined"');
+ $ERROR('#5: __re = new RegExp(function(){return "a|b|[]"; typeof __re.source !== "undefined"');
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T3.js b/test/built-ins/RegExp/S15.10.4.1_A8_T3.js
index 17855d660..8fd699f48 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A8_T3.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A8_T3.js
@@ -9,29 +9,35 @@ description: >
(function(){return "m";})()
---*/
-var __re = new RegExp({toString:function(){return "[0-9]";}}, (function(){return "m";})());
+var __re = new RegExp({
+ toString: function() {
+ return "[0-9]";
+ }
+}, (function() {
+ return "m";
+})());
//CHECK#1
if (__re.ignoreCase !== false) {
- $ERROR('#1: __re = new RegExp({toString:function(){return "[0-9]"; __re.ignoreCase === false. Actual: ' + (__re.ignoreCase));
+ $ERROR('#1: __re = new RegExp({toString:function(){return "[0-9]"; __re.ignoreCase === false. Actual: ' + (__re.ignoreCase));
}
//CHECK#2
if (__re.multiline !== true) {
- $ERROR('#2: __re = new RegExp({toString:function(){return "[0-9]"; __re.multiline === true. Actual: ' + (__re.multiline));
+ $ERROR('#2: __re = new RegExp({toString:function(){return "[0-9]"; __re.multiline === true. Actual: ' + (__re.multiline));
}
//CHECK#3
if (__re.global !== false) {
- $ERROR('#3: __re = new RegExp({toString:function(){return "[0-9]"; __re.global === false. Actual: ' + (__re.global));
+ $ERROR('#3: __re = new RegExp({toString:function(){return "[0-9]"; __re.global === false. Actual: ' + (__re.global));
}
//CHECK#4
if (__re.lastIndex !== 0) {
- $ERROR('#4: __re = new RegExp({toString:function(){return "[0-9]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
+ $ERROR('#4: __re = new RegExp({toString:function(){return "[0-9]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
}
//CHECK#5
if (typeof __re.source === "undefined") {
- $ERROR('#5: __re = new RegExp({toString:function(){return "[0-9]"; typeof __re.source !== "undefined"');
+ $ERROR('#5: __re = new RegExp({toString:function(){return "[0-9]"; typeof __re.source !== "undefined"');
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T4.js b/test/built-ins/RegExp/S15.10.4.1_A8_T4.js
index e2aeb3168..463482d2b 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A8_T4.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A8_T4.js
@@ -9,29 +9,39 @@ description: >
and flags is {toString:void 0,valueOf:function(){return "mig";}}
---*/
-var __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]";}}, {toString:void 0,valueOf:function(){return "mig";}});
+var __re = new RegExp({
+ toString: void 0,
+ valueOf: function() {
+ return "[z-z]";
+ }
+}, {
+ toString: void 0,
+ valueOf: function() {
+ return "mig";
+ }
+});
//CHECK#1
if (__re.ignoreCase !== true) {
- $ERROR('#1: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.ignoreCase === true. Actual: ' + (__re.ignoreCase));
+ $ERROR('#1: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.ignoreCase === true. Actual: ' + (__re.ignoreCase));
}
//CHECK#2
if (__re.multiline !== true) {
- $ERROR('#2: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.multiline === true. Actual: ' + (__re.multiline));
+ $ERROR('#2: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.multiline === true. Actual: ' + (__re.multiline));
}
//CHECK#3
if (__re.global !== true) {
- $ERROR('#3: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.global === true. Actual: ' + (__re.global));
+ $ERROR('#3: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.global === true. Actual: ' + (__re.global));
}
//CHECK#4
if (__re.lastIndex !== 0) {
- $ERROR('#4: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
+ $ERROR('#4: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
}
//CHECK#5
if (typeof __re.source === "undefined") {
- $ERROR('#5: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; typeof __re.source !== "undefined"');
+ $ERROR('#5: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; typeof __re.source !== "undefined"');
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T5.js b/test/built-ins/RegExp/S15.10.4.1_A8_T5.js
index c451a0df7..7c2b13d60 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A8_T5.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A8_T5.js
@@ -9,29 +9,33 @@ description: >
{toString:function(){return "";}}
---*/
-var __re = new RegExp(new Object("abc{1}"), {toString:function(){return "";}});
+var __re = new RegExp(new Object("abc{1}"), {
+ toString: function() {
+ return "";
+ }
+});
//CHECK#1
if (__re.ignoreCase !== false) {
- $ERROR('#1: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.ignoreCase === false. Actual: ' + (__re.ignoreCase));
+ $ERROR('#1: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.ignoreCase === false. Actual: ' + (__re.ignoreCase));
}
//CHECK#2
if (__re.multiline !== false) {
- $ERROR('#2: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.multiline === false. Actual: ' + (__re.multiline));
+ $ERROR('#2: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.multiline === false. Actual: ' + (__re.multiline));
}
//CHECK#3
if (__re.global !== false) {
- $ERROR('#3: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.global === false. Actual: ' + (__re.global));
+ $ERROR('#3: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.global === false. Actual: ' + (__re.global));
}
//CHECK#4
if (__re.lastIndex !== 0) {
- $ERROR('#4: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
+ $ERROR('#4: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
}
//CHECK#5
if (typeof __re.source === "undefined") {
- $ERROR('#5: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; typeof __re.source !== "undefined"');
+ $ERROR('#5: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; typeof __re.source !== "undefined"');
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T6.js b/test/built-ins/RegExp/S15.10.4.1_A8_T6.js
index 63d049009..8ef204406 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A8_T6.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A8_T6.js
@@ -11,9 +11,13 @@ description: >
//CHECK#1
try {
- $ERROR('#1.1: new RegExp({toString:function(){throw "intostr";}}, "i") throw "intostr". Actual: ' + (new RegExp({toString:function(){throw "intostr";}}, "i")));
+ $ERROR('#1.1: new RegExp({toString:function(){throw "intostr";}}, "i") throw "intostr". Actual: ' + (new RegExp({
+ toString: function() {
+ throw "intostr";
+ }
+ }, "i")));
} catch (e) {
- if (e !== "intostr" ) {
- $ERROR('#1.2: new RegExp({toString:function(){throw "intostr";}}, "i") throw "intostr". Actual: ' + (e));
- }
+ if (e !== "intostr") {
+ $ERROR('#1.2: new RegExp({toString:function(){throw "intostr";}}, "i") throw "intostr". Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T7.js b/test/built-ins/RegExp/S15.10.4.1_A8_T7.js
index a28ed37ae..ff5d38866 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A8_T7.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A8_T7.js
@@ -11,9 +11,14 @@ description: >
//CHECK#1
try {
- $ERROR('#1.1: new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (new RegExp({toString:void 0, valueOf:function(){throw "invalof";}})));
+ $ERROR('#1.1: new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (new RegExp({
+ toString: void 0,
+ valueOf: function() {
+ throw "invalof";
+ }
+ })));
} catch (e) {
- if (e !== "invalof" ) {
- $ERROR('#1.2: new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e));
- }
+ if (e !== "invalof") {
+ $ERROR('#1.2: new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T8.js b/test/built-ins/RegExp/S15.10.4.1_A8_T8.js
index 7e9cea428..32987b295 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A8_T8.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A8_T8.js
@@ -11,9 +11,13 @@ description: >
//CHECK#1
try {
- $ERROR('#1.1: new RegExp({toString:function(){throw "intostr";}}, "error") throw "intostr". Actual: ' + (new RegExp({toString:function(){throw "intostr";}}, "error")));
+ $ERROR('#1.1: new RegExp({toString:function(){throw "intostr";}}, "error") throw "intostr". Actual: ' + (new RegExp({
+ toString: function() {
+ throw "intostr";
+ }
+ }, "error")));
} catch (e) {
- if (e !== "intostr" ) {
- $ERROR('#1.2: new RegExp({toString:function(){throw "intostr";}}, "error") throw "intostr". Actual: ' + (e));
- }
+ if (e !== "intostr") {
+ $ERROR('#1.2: new RegExp({toString:function(){throw "intostr";}}, "error") throw "intostr". Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T9.js b/test/built-ins/RegExp/S15.10.4.1_A8_T9.js
index 48746e19a..c0061c11f 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A8_T9.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A8_T9.js
@@ -11,25 +11,25 @@ var __re = new RegExp(1, new Object("gi"));
//CHECK#1
if (__re.ignoreCase !== true) {
- $ERROR('#1: __re = new RegExp(1, new Object("gi")); __re.ignoreCase === true. Actual: ' + (__re.ignoreCase));
+ $ERROR('#1: __re = new RegExp(1, new Object("gi")); __re.ignoreCase === true. Actual: ' + (__re.ignoreCase));
}
//CHECK#2
if (__re.multiline !== false) {
- $ERROR('#2: __re = new RegExp(1, new Object("gi")); __re.multiline === false. Actual: ' + (__re.multiline));
+ $ERROR('#2: __re = new RegExp(1, new Object("gi")); __re.multiline === false. Actual: ' + (__re.multiline));
}
//CHECK#3
if (__re.global !== true) {
- $ERROR('#3: __re = new RegExp(1, new Object("gi")); __re.global === true. Actual: ' + (__re.global));
+ $ERROR('#3: __re = new RegExp(1, new Object("gi")); __re.global === true. Actual: ' + (__re.global));
}
//CHECK#4
if (__re.lastIndex !== 0) {
- $ERROR('#4: __re = new RegExp(1, new Object("gi")); __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
+ $ERROR('#4: __re = new RegExp(1, new Object("gi")); __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
}
//CHECK#5
if (typeof __re.source === "undefined") {
- $ERROR('#5: __re = new RegExp(1, new Object("gi")); typeof __re.source !== "undefined"');
+ $ERROR('#5: __re = new RegExp(1, new Object("gi")); typeof __re.source !== "undefined"');
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A9_T1.js b/test/built-ins/RegExp/S15.10.4.1_A9_T1.js
index 84f56e4ce..063b5d3f7 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A9_T1.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A9_T1.js
@@ -11,9 +11,9 @@ description: Pattern is "??"
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("??") throw SyntaxError. Actual: ' + (new RegExp("??")));
+ $ERROR('#1.1: new RegExp("??") throw SyntaxError. Actual: ' + (new RegExp("??")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("??") throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("??") throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A9_T2.js b/test/built-ins/RegExp/S15.10.4.1_A9_T2.js
index 49ea6f331..6ae0d4b3f 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A9_T2.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A9_T2.js
@@ -11,9 +11,9 @@ description: Pattern is "[{-z]"
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("[{-z]") throw SyntaxError. Actual: ' + (new RegExp("[{-z]")));
+ $ERROR('#1.1: new RegExp("[{-z]") throw SyntaxError. Actual: ' + (new RegExp("[{-z]")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("[{-z]") throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("[{-z]") throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.4.1_A9_T3.js b/test/built-ins/RegExp/S15.10.4.1_A9_T3.js
index 0e245efe9..689422dab 100644
--- a/test/built-ins/RegExp/S15.10.4.1_A9_T3.js
+++ b/test/built-ins/RegExp/S15.10.4.1_A9_T3.js
@@ -11,9 +11,9 @@ description: Pattern is "[a--z]"
//CHECK#1
try {
- $ERROR('#1.1: new RegExp("[a--z]") throw SyntaxError. Actual: ' + (new RegExp("[a--z]")));
+ $ERROR('#1.1: new RegExp("[a--z]") throw SyntaxError. Actual: ' + (new RegExp("[a--z]")));
} catch (e) {
- if ((e instanceof SyntaxError) !== true) {
- $ERROR('#1.2: new RegExp("[a--z]") throw SyntaxError. Actual: ' + (e));
- }
+ if ((e instanceof SyntaxError) !== true) {
+ $ERROR('#1.2: new RegExp("[a--z]") throw SyntaxError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.5_A1.js b/test/built-ins/RegExp/S15.10.5_A1.js
index d048f8985..c2e3cd0a0 100644
--- a/test/built-ins/RegExp/S15.10.5_A1.js
+++ b/test/built-ins/RegExp/S15.10.5_A1.js
@@ -9,5 +9,5 @@ description: Checking RegExp.length property
//CHECK#1
if (RegExp.length !== 2) {
- $ERROR('#1: RegExp.length === 2. Actual: ' + (RegExp.length));
+ $ERROR('#1: RegExp.length === 2. Actual: ' + (RegExp.length));
}
diff --git a/test/built-ins/RegExp/S15.10.5_A2_T1.js b/test/built-ins/RegExp/S15.10.5_A2_T1.js
index d32dfeb60..a0f41bf64 100644
--- a/test/built-ins/RegExp/S15.10.5_A2_T1.js
+++ b/test/built-ins/RegExp/S15.10.5_A2_T1.js
@@ -11,5 +11,5 @@ description: Checking Function.prototype.isPrototypeOf(RegExp)
//CHECK#1
if (Function.prototype.isPrototypeOf(RegExp) !== true) {
- $ERROR('#1: Function.prototype.isPrototypeOf(RegExp) === true');
+ $ERROR('#1: Function.prototype.isPrototypeOf(RegExp) === true');
}
diff --git a/test/built-ins/RegExp/S15.10.5_A2_T2.js b/test/built-ins/RegExp/S15.10.5_A2_T2.js
index 6dc911159..4978ec3a9 100644
--- a/test/built-ins/RegExp/S15.10.5_A2_T2.js
+++ b/test/built-ins/RegExp/S15.10.5_A2_T2.js
@@ -13,7 +13,7 @@ description: >
Function.prototype.indicator = 1;
- //CHECK#1
+//CHECK#1
if (RegExp.indicator !== 1) {
- $ERROR('#1: Function.prototype.indicator = 1; RegExp.indicator === 1. Actual: ' + (RegExp.indicator));
+ $ERROR('#1: Function.prototype.indicator = 1; RegExp.indicator === 1. Actual: ' + (RegExp.indicator));
}
diff --git a/test/built-ins/RegExp/S15.10.7_A1_T1.js b/test/built-ins/RegExp/S15.10.7_A1_T1.js
index 32a29be58..19fa62eec 100644
--- a/test/built-ins/RegExp/S15.10.7_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.7_A1_T1.js
@@ -9,9 +9,9 @@ description: Checking if call of RegExp instance fails
//CHECK#1
try {
- $ERROR('#1.1: /[^a]*/() throw TypeError. Actual: ' + (/[^a]*/()));
+ $ERROR('#1.1: /[^a]*/() throw TypeError. Actual: ' + (/[^a]*/ ()));
} catch (e) {
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: /[^a]*/() throw TypeError. Actual: ' + (e));
- }
+ if ((e instanceof TypeError) !== true) {
+ $ERROR('#1.2: /[^a]*/() throw TypeError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/S15.10.7_A1_T2.js b/test/built-ins/RegExp/S15.10.7_A1_T2.js
index 96dfbeb1d..411f9e721 100644
--- a/test/built-ins/RegExp/S15.10.7_A1_T2.js
+++ b/test/built-ins/RegExp/S15.10.7_A1_T2.js
@@ -9,7 +9,7 @@ description: Checking if call of RegExp("a|b","g")() fails
//CHECK#1
try {
- $ERROR('#1.1: RegExp("a|b","g")() throw TypeError. Actual: ' + (RegExp("a|b","g")()));
+ $ERROR('#1.1: RegExp("a|b","g")() throw TypeError. Actual: ' + (RegExp("a|b", "g")()));
} catch (e) {
if ((e instanceof TypeError) !== true) {
$ERROR('#1.2: RegExp("a|b","g")() throw TypeError. Actual: ' + (e));
diff --git a/test/built-ins/RegExp/S15.10.7_A2_T1.js b/test/built-ins/RegExp/S15.10.7_A2_T1.js
index 8d403ad85..67dc970fa 100644
--- a/test/built-ins/RegExp/S15.10.7_A2_T1.js
+++ b/test/built-ins/RegExp/S15.10.7_A2_T1.js
@@ -9,7 +9,7 @@ description: Checking if creating new RegExp instance fails
//CHECK#1
try {
- $ERROR('#1.1: new /z/() throw TypeError. Actual: ' + (new /z/()));
+ $ERROR('#1.1: new /z/() throw TypeError. Actual: ' + (new / z / ()));
} catch (e) {
if ((e instanceof TypeError) !== true) {
$ERROR('#1.2: new /z/() throw TypeError. Actual: ' + (e));
diff --git a/test/built-ins/RegExp/S15.10.7_A3_T1.js b/test/built-ins/RegExp/S15.10.7_A3_T1.js
index b93fa54cd..bc65ba08a 100644
--- a/test/built-ins/RegExp/S15.10.7_A3_T1.js
+++ b/test/built-ins/RegExp/S15.10.7_A3_T1.js
@@ -13,15 +13,15 @@ var __re = /[^a]*/;
//CHECK#1
if (typeof __re !== "object") {
- $ERROR('#1: __re = /[^a]*/; typeof __re === "object". Actual: ' + (typeof __re));
+ $ERROR('#1: __re = /[^a]*/; typeof __re === "object". Actual: ' + (typeof __re));
}
//CHECK#1
if (__re.constructor !== RegExp) {
- $ERROR('#2: __re = /[^a]*/; __re.constructor === RegExp. Actual: ' + (__re.constructor));
+ $ERROR('#2: __re = /[^a]*/; __re.constructor === RegExp. Actual: ' + (__re.constructor));
}
//CHECK#3
if ((__re instanceof RegExp) !== true) {
- $ERROR('#3: __re = /[^a]*/; (__re instanceof RegExp) === true');
+ $ERROR('#3: __re = /[^a]*/; (__re instanceof RegExp) === true');
}
diff --git a/test/built-ins/RegExp/S15.10.7_A3_T2.js b/test/built-ins/RegExp/S15.10.7_A3_T2.js
index 956d9e6fd..27a105a53 100644
--- a/test/built-ins/RegExp/S15.10.7_A3_T2.js
+++ b/test/built-ins/RegExp/S15.10.7_A3_T2.js
@@ -13,15 +13,15 @@ var __re = new RegExp;
//CHECK#1
if (typeof __re !== "object") {
- $ERROR('#1: __re = new RegExp; typeof __re === "object". Actual: ' + (typeof __re));
+ $ERROR('#1: __re = new RegExp; typeof __re === "object". Actual: ' + (typeof __re));
}
//CHECK#1
if (__re.constructor !== RegExp) {
- $ERROR('#2: __re = new RegExp; __re.constructor === RegExp. Actual: ' + (__re.constructor));
+ $ERROR('#2: __re = new RegExp; __re.constructor === RegExp. Actual: ' + (__re.constructor));
}
//CHECK#3
if ((__re instanceof RegExp) !== true) {
- $ERROR('#3: __re = new RegExp; (__re instanceof RegExp) === true');
+ $ERROR('#3: __re = new RegExp; (__re instanceof RegExp) === true');
}
diff --git a/test/built-ins/RegExp/from-regexp-like-get-source-err.js b/test/built-ins/RegExp/from-regexp-like-get-source-err.js
index 1c2a4e3e9..6972182a8 100644
--- a/test/built-ins/RegExp/from-regexp-like-get-source-err.js
+++ b/test/built-ins/RegExp/from-regexp-like-get-source-err.js
@@ -15,6 +15,7 @@ features: [Symbol, Symbol.match]
---*/
var obj = {};
+
function CustomError() {}
Object.defineProperty(obj, 'source', {
get: function() {
diff --git a/test/built-ins/RegExp/lookBehind/back-references.js b/test/built-ins/RegExp/lookBehind/back-references.js
index 062bff033..ae2186464 100644
--- a/test/built-ins/RegExp/lookBehind/back-references.js
+++ b/test/built-ins/RegExp/lookBehind/back-references.js
@@ -40,4 +40,3 @@ assert.sameValue("aabb".match(/(..)(?<=\1\1\1)/), null, "#15");
assert.sameValue("abab".match(/(..)(?<=\1\1\1)/), null, "#16");
assert.sameValue("fabxbab".match(/(..)(?<=\1\1\1)/), null, "#17");
assert.sameValue("faxabab".match(/(..)(?<=\1\1\1)/), null, "#18");
-
diff --git a/test/built-ins/RegExp/named-groups/functional-replace-global.js b/test/built-ins/RegExp/named-groups/functional-replace-global.js
index 819045ec1..83d32592c 100644
--- a/test/built-ins/RegExp/named-groups/functional-replace-global.js
+++ b/test/built-ins/RegExp/named-groups/functional-replace-global.js
@@ -22,35 +22,34 @@ for (let flags of ["g", "gu"]) {
let i = 0;
let re = new RegExp(source, flags);
let result = "abcd".replace(re,
- (match, fst, snd, offset, str, groups) => {
- if (i == 0) {
- assert.sameValue("ab", match);
- assert.sameValue("a", groups.fst);
- assert.sameValue("b", groups.snd);
- assert.sameValue("a", fst);
- assert.sameValue("b", snd);
- assert.sameValue(0, offset);
- assert.sameValue("abcd", str);
- } else if (i == 1) {
- assert.sameValue("cd", match);
- assert.sameValue("c", groups.fst);
- assert.sameValue("d", groups.snd);
- assert.sameValue("c", fst);
- assert.sameValue("d", snd);
- assert.sameValue(2, offset);
- assert.sameValue("abcd", str);
- } else {
- assertUnreachable();
- }
- i++;
- return `${groups.snd}${groups.fst}`;
- });
+ (match, fst, snd, offset, str, groups) => {
+ if (i == 0) {
+ assert.sameValue("ab", match);
+ assert.sameValue("a", groups.fst);
+ assert.sameValue("b", groups.snd);
+ assert.sameValue("a", fst);
+ assert.sameValue("b", snd);
+ assert.sameValue(0, offset);
+ assert.sameValue("abcd", str);
+ } else if (i == 1) {
+ assert.sameValue("cd", match);
+ assert.sameValue("c", groups.fst);
+ assert.sameValue("d", groups.snd);
+ assert.sameValue("c", fst);
+ assert.sameValue("d", snd);
+ assert.sameValue(2, offset);
+ assert.sameValue("abcd", str);
+ } else {
+ assertUnreachable();
+ }
+ i++;
+ return `${groups.snd}${groups.fst}`;
+ });
assert.sameValue("badc", result);
assert.sameValue(i, 2);
let re2 = new RegExp(alternateSource, flags);
assert.sameValue("undefinedundefinedundefinedundefined",
- "abcd".replace(re2,
- (match, fst, snd, offset, str, groups) => groups.snd));
+ "abcd".replace(re2,
+ (match, fst, snd, offset, str, groups) => groups.snd));
}
-
diff --git a/test/built-ins/RegExp/named-groups/functional-replace-non-global.js b/test/built-ins/RegExp/named-groups/functional-replace-non-global.js
index 0572a0545..54d2a0b7e 100644
--- a/test/built-ins/RegExp/named-groups/functional-replace-non-global.js
+++ b/test/built-ins/RegExp/named-groups/functional-replace-non-global.js
@@ -22,22 +22,22 @@ for (let flags of ["", "u"]) {
let i = 0;
let re = new RegExp(source, flags);
let result = "abcd".replace(re,
- (match, fst, snd, offset, str, groups) => {
- assert.sameValue(i++, 0);
- assert.sameValue("ab", match);
- assert.sameValue("a", groups.fst);
- assert.sameValue("b", groups.snd);
- assert.sameValue("a", fst);
- assert.sameValue("b", snd);
- assert.sameValue(0, offset);
- assert.sameValue("abcd", str);
- return `${groups.snd}${groups.fst}`;
- });
+ (match, fst, snd, offset, str, groups) => {
+ assert.sameValue(i++, 0);
+ assert.sameValue("ab", match);
+ assert.sameValue("a", groups.fst);
+ assert.sameValue("b", groups.snd);
+ assert.sameValue("a", fst);
+ assert.sameValue("b", snd);
+ assert.sameValue(0, offset);
+ assert.sameValue("abcd", str);
+ return `${groups.snd}${groups.fst}`;
+ });
assert.sameValue("bacd", result);
assert.sameValue(i, 1);
let re2 = new RegExp(alternateSource, flags);
assert.sameValue("undefinedbcd",
- "abcd".replace(re2,
- (match, fst, snd, offset, str, groups) => groups.snd));
+ "abcd".replace(re2,
+ (match, fst, snd, offset, str, groups) => groups.snd));
}
diff --git a/test/built-ins/RegExp/named-groups/groups-object-subclass-sans.js b/test/built-ins/RegExp/named-groups/groups-object-subclass-sans.js
index 4542868a8..1bbc2a9e5 100644
--- a/test/built-ins/RegExp/named-groups/groups-object-subclass-sans.js
+++ b/test/built-ins/RegExp/named-groups/groups-object-subclass-sans.js
@@ -29,7 +29,9 @@ const result = re.exec("ab");
assert.sameValue(Object.getPrototypeOf(result), Array.prototype);
assert.sameValue(false, result.hasOwnProperty("groups"));
-Array.prototype.groups = { a: "b" };
+Array.prototype.groups = {
+ a: "b"
+};
Object.getPrototypeOf(Array.prototype.groups).b = "c";
assert.sameValue("b", "ab".replace(re, "$<a>"));
assert.sameValue("c", "ab".replace(re, "$<b>"));
diff --git a/test/built-ins/RegExp/named-groups/groups-object-subclass.js b/test/built-ins/RegExp/named-groups/groups-object-subclass.js
index ab3da38e9..88cb12cb2 100644
--- a/test/built-ins/RegExp/named-groups/groups-object-subclass.js
+++ b/test/built-ins/RegExp/named-groups/groups-object-subclass.js
@@ -19,7 +19,9 @@ class FakeRegExp extends RegExp {
exec(subject) {
const fakeResult = ["ab", "a"];
fakeResult.index = 0;
- fakeResult.groups = { a: "b" };
+ fakeResult.groups = {
+ a: "b"
+ };
Object.getPrototypeOf(fakeResult.groups).b = "c";
return fakeResult;
}
diff --git a/test/built-ins/RegExp/named-groups/groups-object-undefined.js b/test/built-ins/RegExp/named-groups/groups-object-undefined.js
index fea8fd0bf..bf832a217 100644
--- a/test/built-ins/RegExp/named-groups/groups-object-undefined.js
+++ b/test/built-ins/RegExp/named-groups/groups-object-undefined.js
@@ -28,6 +28,8 @@ verifyProperty(result, "groups", {
configurable: true,
});
-Array.prototype.groups = { a: "b" };
+Array.prototype.groups = {
+ a: "b"
+};
assert.sameValue("$<a>", "a".replace(re, "$<a>"));
Array.prototype.groups = undefined;
diff --git a/test/built-ins/RegExp/named-groups/groups-object-unmatched.js b/test/built-ins/RegExp/named-groups/groups-object-unmatched.js
index fb0bdca8f..8b9df648c 100644
--- a/test/built-ins/RegExp/named-groups/groups-object-unmatched.js
+++ b/test/built-ins/RegExp/named-groups/groups-object-unmatched.js
@@ -28,7 +28,11 @@ assert.sameValue(undefined, result.groups.x);
// `a` is a matched named capture, `b` is an unmatched named capture, and `z`
// is not a named capture.
-Array.prototype.groups = { a: "b", x: "y", z: "z" };
+Array.prototype.groups = {
+ a: "b",
+ x: "y",
+ z: "z"
+};
assert.sameValue("a", "ab".replace(re, "$<a>"));
assert.sameValue("", "ab".replace(re, "$<x>"));
assert.sameValue("", "ab".replace(re, "$<z>"));
diff --git a/test/built-ins/RegExp/named-groups/groups-object.js b/test/built-ins/RegExp/named-groups/groups-object.js
index 32a85bf75..8b3f7da38 100644
--- a/test/built-ins/RegExp/named-groups/groups-object.js
+++ b/test/built-ins/RegExp/named-groups/groups-object.js
@@ -18,7 +18,9 @@ info: |
// `groups` is created with Define, not Set.
let counter = 0;
Object.defineProperty(Array.prototype, "groups", {
- set() { counter++; }
+ set() {
+ counter++;
+ }
});
let match = /(?<x>.)/.exec("a");
@@ -34,6 +36,8 @@ verifyProperty(match, "groups", {
// The `__proto__` property on the groups object is not special,
// and does not affect the [[Prototype]] of the resulting groups object.
-let {groups} = /(?<__proto__>.)/.exec("a");
+let {
+ groups
+} = /(?<__proto__>.)/.exec("a");
assert.sameValue("a", groups.__proto__);
assert.sameValue(null, Object.getPrototypeOf(groups));
diff --git a/test/built-ins/RegExp/named-groups/groups-properties.js b/test/built-ins/RegExp/named-groups/groups-properties.js
index 9d7aa66f2..a0c6ea377 100644
--- a/test/built-ins/RegExp/named-groups/groups-properties.js
+++ b/test/built-ins/RegExp/named-groups/groups-properties.js
@@ -16,12 +16,16 @@ info: |
// Properties created on result.groups in textual order.
assert(compareArray(["fst", "snd"],
- Object.getOwnPropertyNames(
- /(?<fst>.)|(?<snd>.)/u.exec("abcd").groups)));
+ Object.getOwnPropertyNames(
+ /(?<fst>.)|(?<snd>.)/u.exec("abcd").groups)));
// Properties are created with Define, not Set
let counter = 0;
-Object.defineProperty(Object.prototype, 'x', {set() { counter++; }});
+Object.defineProperty(Object.prototype, 'x', {
+ set() {
+ counter++;
+ }
+});
let match = /(?<x>.)/.exec('a');
let groups = match.groups;
assert.sameValue(counter, 0);
diff --git a/test/built-ins/RegExp/named-groups/lookbehind.js b/test/built-ins/RegExp/named-groups/lookbehind.js
index e3926bc97..1748732ef 100644
--- a/test/built-ins/RegExp/named-groups/lookbehind.js
+++ b/test/built-ins/RegExp/named-groups/lookbehind.js
@@ -42,5 +42,5 @@ assert(compareArray(["f", undefined], "abcdef".match(/(?<a>(?<!\D{3}))f|f/)));
// Even within a lookbehind, properties are created in left to right order
assert(compareArray(["fst", "snd"],
- Object.getOwnPropertyNames(
- /(?<=(?<fst>.)|(?<snd>.))/u.exec("abcd").groups)));
+ Object.getOwnPropertyNames(
+ /(?<=(?<fst>.)|(?<snd>.))/u.exec("abcd").groups)));
diff --git a/test/built-ins/RegExp/named-groups/non-unicode-match.js b/test/built-ins/RegExp/named-groups/non-unicode-match.js
index 7904c75e4..7255c4704 100644
--- a/test/built-ins/RegExp/named-groups/non-unicode-match.js
+++ b/test/built-ins/RegExp/named-groups/non-unicode-match.js
@@ -19,7 +19,11 @@ assert(compareArray(["bab", "ab"], "bab".match(/.(?<a>\w\w)/)));
assert(compareArray(["bab", "bab"], "bab".match(/(?<a>\w\w\w)/)));
assert(compareArray(["bab", "ba", "b"], "bab".match(/(?<a>\w\w)(?<b>\w)/)));
-let {a, b, c} = /(?<a>.)(?<b>.)(?<c>.)\k<c>\k<b>\k<a>/.exec("abccba").groups;
+let {
+ a,
+ b,
+ c
+} = /(?<a>.)(?<b>.)(?<c>.)\k<c>\k<b>\k<a>/.exec("abccba").groups;
assert.sameValue(a, "a");
assert.sameValue(b, "b");
assert.sameValue(c, "c");
@@ -38,6 +42,6 @@ assert(compareArray("bab".match(/(\w\w)(\w)/), "bab".match(/(?<a>\w\w)(?<b>\w)/)
assert(compareArray(["bab", "b"], "bab".match(/(?<b>b).\1/)));
assert(compareArray(["baba", "b", "a"], "baba".match(/(.)(?<a>a)\1\2/)));
assert(compareArray(["baba", "b", "a", "b", "a"],
- "baba".match(/(.)(?<a>a)(?<b>\1)(\2)/)));
+ "baba".match(/(.)(?<a>a)(?<b>\1)(\2)/)));
assert(compareArray(["<a", "<"], "<a".match(/(?<lt><)a/)));
assert(compareArray([">a", ">"], ">a".match(/(?<gt>>)a/)));
diff --git a/test/built-ins/RegExp/named-groups/non-unicode-property-names.js b/test/built-ins/RegExp/named-groups/non-unicode-property-names.js
index 9c02d0b51..390f628ca 100644
--- a/test/built-ins/RegExp/named-groups/non-unicode-property-names.js
+++ b/test/built-ins/RegExp/named-groups/non-unicode-property-names.js
@@ -14,8 +14,8 @@ assert.sameValue("a", /(?<π>a)/.exec("bab").groups.\u03C0);
assert.sameValue("a", /(?<$>a)/.exec("bab").groups.$);
assert.sameValue("a", /(?<_>a)/.exec("bab").groups._);
assert.throws(SyntaxError, () => eval('/(?<$𐒤>a)/'), "Individual surrogates not in ID_Continue");
-assert.sameValue("a", /(?<_\u200C>a)/.exec("bab").groups._\u200C);
-assert.sameValue("a", /(?<_\u200D>a)/.exec("bab").groups._\u200D);
+assert.sameValue("a", /(?<_\u200C>a)/.exec("bab").groups._\ u200C);
+assert.sameValue("a", /(?<_\u200D>a)/.exec("bab").groups._\ u200D);
assert.sameValue("a", /(?<ಠ_ಠ>a)/.exec("bab").groups.ಠ_ಠ);
assert.throws(SyntaxError, () => eval('/(?<❤>a)/'));
assert.throws(SyntaxError, () => eval('/(?<𐒤>a)/'), "Individual surrogate not in ID_Start.");
diff --git a/test/built-ins/RegExp/named-groups/non-unicode-references.js b/test/built-ins/RegExp/named-groups/non-unicode-references.js
index 33d62a3f0..4a283aa7f 100644
--- a/test/built-ins/RegExp/named-groups/non-unicode-references.js
+++ b/test/built-ins/RegExp/named-groups/non-unicode-references.js
@@ -20,7 +20,10 @@ assert.sameValue("b", "bab".match(/(?<a>\k<a>\w)../).groups.a);
assert(compareArray(["bab", "b"], "bab".match(/\k<a>(?<a>b)\w\k<a>/)));
assert.sameValue("b", "bab".match(/\k<a>(?<a>b)\w\k<a>/).groups.a);
assert(compareArray(["bab", "b", "a"], "bab".match(/(?<b>b)\k<a>(?<a>a)\k<b>/)));
-let {a, b} = "bab".match(/(?<b>b)\k<a>(?<a>a)\k<b>/).groups;
+let {
+ a,
+ b
+} = "bab".match(/(?<b>b)\k<a>(?<a>a)\k<b>/).groups;
assert.sameValue(a, "a");
assert.sameValue(b, "b");
diff --git a/test/built-ins/RegExp/named-groups/string-replace-nocaptures.js b/test/built-ins/RegExp/named-groups/string-replace-nocaptures.js
index 76f134cc8..4ae21e7f8 100644
--- a/test/built-ins/RegExp/named-groups/string-replace-nocaptures.js
+++ b/test/built-ins/RegExp/named-groups/string-replace-nocaptures.js
@@ -29,4 +29,3 @@ for (let flags of ["", "u"]) {
assert.sameValue("$<fth>cd", "abcd".replace(re, "$<fth>"));
assert.sameValue("$<a>cd", "abcd".replace(re, "$<$1>"));
}
-
diff --git a/test/built-ins/RegExp/named-groups/string-replace-numbered.js b/test/built-ins/RegExp/named-groups/string-replace-numbered.js
index c825df398..516624b30 100644
--- a/test/built-ins/RegExp/named-groups/string-replace-numbered.js
+++ b/test/built-ins/RegExp/named-groups/string-replace-numbered.js
@@ -26,4 +26,3 @@ for (let flags of ["", "u"]) {
let re = new RegExp(source, flags);
assert.sameValue("bacd", "abcd".replace(re, "$2$1"));
}
-
diff --git a/test/built-ins/RegExp/named-groups/unicode-malformed.js b/test/built-ins/RegExp/named-groups/unicode-malformed.js
index 5c9c131a4..87ae6134c 100644
--- a/test/built-ins/RegExp/named-groups/unicode-malformed.js
+++ b/test/built-ins/RegExp/named-groups/unicode-malformed.js
@@ -26,4 +26,3 @@ assert.throws(SyntaxError, () => eval("/(?<a>a)\\k<ab>/u"), "Invalid reference")
assert.throws(SyntaxError, () => eval("/(?<ab>a)\\k<a>/u"), "Invalid reference");
assert.throws(SyntaxError, () => eval("/\\k<a>(?<ab>a)/u"), "Invalid reference");
assert.throws(SyntaxError, () => eval("/(?<a>\\a)/u"), "Identity escape in capture");
-
diff --git a/test/built-ins/RegExp/named-groups/unicode-match.js b/test/built-ins/RegExp/named-groups/unicode-match.js
index a8e1059bd..c72a292c8 100644
--- a/test/built-ins/RegExp/named-groups/unicode-match.js
+++ b/test/built-ins/RegExp/named-groups/unicode-match.js
@@ -19,7 +19,11 @@ assert(compareArray(["bab", "ab"], "bab".match(/.(?<a>\w\w)/u)));
assert(compareArray(["bab", "bab"], "bab".match(/(?<a>\w\w\w)/u)));
assert(compareArray(["bab", "ba", "b"], "bab".match(/(?<a>\w\w)(?<b>\w)/u)));
-let {a, b, c} = /(?<a>.)(?<b>.)(?<c>.)\k<c>\k<b>\k<a>/u.exec("abccba").groups;
+let {
+ a,
+ b,
+ c
+} = /(?<a>.)(?<b>.)(?<c>.)\k<c>\k<b>\k<a>/u.exec("abccba").groups;
assert.sameValue(a, "a");
assert.sameValue(b, "b");
assert.sameValue(c, "c");
@@ -38,11 +42,15 @@ assert(compareArray("bab".match(/(\w\w)(\w)/u), "bab".match(/(?<a>\w\w)(?<b>\w)/
assert(compareArray(["bab", "b"], "bab".match(/(?<b>b).\1/u)));
assert(compareArray(["baba", "b", "a"], "baba".match(/(.)(?<a>a)\1\2/u)));
assert(compareArray(["baba", "b", "a", "b", "a"],
- "baba".match(/(.)(?<a>a)(?<b>\1)(\2)/u)));
+ "baba".match(/(.)(?<a>a)(?<b>\1)(\2)/u)));
assert(compareArray(["<a", "<"], "<a".match(/(?<lt><)a/u)));
assert(compareArray([">a", ">"], ">a".match(/(?<gt>>)a/u)));
// Nested groups.
assert(compareArray(["bab", "bab", "ab", "b"], "bab".match(/(?<a>.(?<b>.(?<c>.)))/u)));
-assert(compareArray({a: "bab", b: "ab", c: "b"},
- "bab".match(/(?<a>.(?<b>.(?<c>.)))/u).groups));
+assert(compareArray({
+ a: "bab",
+ b: "ab",
+ c: "b"
+ },
+ "bab".match(/(?<a>.(?<b>.(?<c>.)))/u).groups));
diff --git a/test/built-ins/RegExp/named-groups/unicode-property-names.js b/test/built-ins/RegExp/named-groups/unicode-property-names.js
index 24e4a6ade..a8007cce0 100644
--- a/test/built-ins/RegExp/named-groups/unicode-property-names.js
+++ b/test/built-ins/RegExp/named-groups/unicode-property-names.js
@@ -14,8 +14,8 @@ assert.sameValue("a", /(?<\u{03C0}>a)/u.exec("bab").groups.\u03C0);
assert.sameValue("a", /(?<$>a)/u.exec("bab").groups.$);
assert.sameValue("a", /(?<_>a)/u.exec("bab").groups._);
assert.sameValue("a", /(?<$𐒤>a)/u.exec("bab").groups.$𐒤);
-assert.sameValue("a", /(?<_\u200C>a)/u.exec("bab").groups._\u200C);
-assert.sameValue("a", /(?<_\u200D>a)/u.exec("bab").groups._\u200D);
+assert.sameValue("a", /(?<_\u200C>a)/u.exec("bab").groups._\ u200C);
+assert.sameValue("a", /(?<_\u200D>a)/u.exec("bab").groups._\ u200D);
assert.sameValue("a", /(?<ಠ_ಠ>a)/u.exec("bab").groups.ಠ_ಠ);
assert.throws(SyntaxError, () => eval('/(?<❤>a)/u'));
assert.throws(SyntaxError, () => eval('/(?<𐒤>a)/u'), "ID_Continue but not ID_Start.");
diff --git a/test/built-ins/RegExp/named-groups/unicode-references.js b/test/built-ins/RegExp/named-groups/unicode-references.js
index 1f95a2f40..9f8df10f5 100644
--- a/test/built-ins/RegExp/named-groups/unicode-references.js
+++ b/test/built-ins/RegExp/named-groups/unicode-references.js
@@ -33,7 +33,10 @@ assert.sameValue("b", "bab".match(/(?<a>\k<a>\w)../u).groups.a);
assert(compareArray(["bab", "b"], "bab".match(/\k<a>(?<a>b)\w\k<a>/u)));
assert.sameValue("b", "bab".match(/\k<a>(?<a>b)\w\k<a>/u).groups.a);
assert(compareArray(["bab", "b", "a"], "bab".match(/(?<b>b)\k<a>(?<a>a)\k<b>/u)));
-let {a, b} = "bab".match(/(?<b>b)\k<a>(?<a>a)\k<b>/u).groups;
+let {
+ a,
+ b
+} = "bab".match(/(?<b>b)\k<a>(?<a>a)\k<b>/u).groups;
assert.sameValue(a, "a");
assert.sameValue(b, "b");
diff --git a/test/built-ins/RegExp/property-escapes/generated/Any.js b/test/built-ins/RegExp/property-escapes/generated/Any.js
index f351d2b74..21f75822e 100644
--- a/test/built-ins/RegExp/property-escapes/generated/Any.js
+++ b/test/built-ins/RegExp/property-escapes/generated/Any.js
@@ -28,7 +28,6 @@ testPropertyEscapes(
"\\p{Any}"
);
-assert(
- !/\P{Any}/u.test(""),
+assert(!/\P{Any}/u.test(""),
"`\\P{Any}` should match nothing (not even the empty string)"
);
diff --git a/test/built-ins/RegExp/prototype/15.10.6.js b/test/built-ins/RegExp/prototype/15.10.6.js
index a1d12241f..05c035447 100644
--- a/test/built-ins/RegExp/prototype/15.10.6.js
+++ b/test/built-ins/RegExp/prototype/15.10.6.js
@@ -6,6 +6,6 @@ es5id: 15.10.6
description: RegExp.prototype is itself a not RegExp
---*/
- var s = Object.prototype.toString.call(RegExp.prototype);
+var s = Object.prototype.toString.call(RegExp.prototype);
assert.sameValue(s, '[object Object]', 's');
diff --git a/test/built-ins/RegExp/prototype/S15.10.5.1_A1.js b/test/built-ins/RegExp/prototype/S15.10.5.1_A1.js
index 3b3136cfb..e65d4797f 100644
--- a/test/built-ins/RegExp/prototype/S15.10.5.1_A1.js
+++ b/test/built-ins/RegExp/prototype/S15.10.5.1_A1.js
@@ -9,5 +9,5 @@ description: Checking RegExp.prototype property
//CHECK#1
if (RegExp.hasOwnProperty('prototype') !== true) {
- $ERROR('#1: RegExp.hasOwnProperty(\'prototype\') === true');
+ $ERROR('#1: RegExp.hasOwnProperty(\'prototype\') === true');
}
diff --git a/test/built-ins/RegExp/prototype/S15.10.5.1_A2.js b/test/built-ins/RegExp/prototype/S15.10.5.1_A2.js
index a34b24306..7941aca9a 100644
--- a/test/built-ins/RegExp/prototype/S15.10.5.1_A2.js
+++ b/test/built-ins/RegExp/prototype/S15.10.5.1_A2.js
@@ -9,20 +9,20 @@ description: Checking if enumerating the RegExp.prototype property fails
//CHECK#0
if (RegExp.hasOwnProperty('prototype') !== true) {
- $ERROR('#0: RegExp.hasOwnProperty(\'prototype\') === true');
+ $ERROR('#0: RegExp.hasOwnProperty(\'prototype\') === true');
}
- //CHECK#1
+//CHECK#1
if (RegExp.propertyIsEnumerable('prototype') !== false) {
- $ERROR('#1: RegExp.propertyIsEnumerable(\'prototype\') === false');
+ $ERROR('#1: RegExp.propertyIsEnumerable(\'prototype\') === false');
}
- //CHECK#2
-var count=0;
-for (var p in RegExp){
- if (p==="prototype") count++;
+//CHECK#2
+var count = 0;
+for (var p in RegExp) {
+ if (p === "prototype") count++;
}
if (count !== 0) {
- $ERROR('#2: count=0; for (p in RegExp){ if (p==="prototype") count++; } count === 0. Actual: ' + (count));
+ $ERROR('#2: count=0; for (p in RegExp){ if (p==="prototype") count++; } count === 0. Actual: ' + (count));
}
diff --git a/test/built-ins/RegExp/prototype/S15.10.5.1_A3.js b/test/built-ins/RegExp/prototype/S15.10.5.1_A3.js
index 1ad8fa95e..6f37f0678 100644
--- a/test/built-ins/RegExp/prototype/S15.10.5.1_A3.js
+++ b/test/built-ins/RegExp/prototype/S15.10.5.1_A3.js
@@ -10,7 +10,7 @@ includes: [propertyHelper.js]
//CHECK#0
if (RegExp.hasOwnProperty('prototype') !== true) {
- $ERROR('#0: RegExp.hasOwnProperty(\'prototype\') === true');
+ $ERROR('#0: RegExp.hasOwnProperty(\'prototype\') === true');
}
verifyNotConfigurable(RegExp, "prototype");
@@ -27,5 +27,5 @@ try {
//CHECK#2
if (RegExp.hasOwnProperty('prototype') !== true) {
- $ERROR('#2: delete RegExp.prototype; RegExp.hasOwnProperty(\'prototype\') === true');
+ $ERROR('#2: delete RegExp.prototype; RegExp.hasOwnProperty(\'prototype\') === true');
}
diff --git a/test/built-ins/RegExp/prototype/S15.10.5.1_A4.js b/test/built-ins/RegExp/prototype/S15.10.5.1_A4.js
index 48bf65f19..a39576d7d 100644
--- a/test/built-ins/RegExp/prototype/S15.10.5.1_A4.js
+++ b/test/built-ins/RegExp/prototype/S15.10.5.1_A4.js
@@ -10,14 +10,16 @@ includes: [propertyHelper.js]
//CHECK#1
if (RegExp.hasOwnProperty('prototype') !== true) {
- $ERROR('#1: RegExp.hasOwnProperty(\'prototype\') === true');
+ $ERROR('#1: RegExp.hasOwnProperty(\'prototype\') === true');
}
var __obj = RegExp.prototype;
-verifyNotWritable(RegExp, "prototype", null, function(){return "shifted";});
+verifyNotWritable(RegExp, "prototype", null, function() {
+ return "shifted";
+});
//CHECK#2
if (RegExp.prototype !== __obj) {
- $ERROR('#2: __obj = RegExp.prototype; RegExp.prototype = function(){return "shifted";}; RegExp.prototype === __obj. Actual: ' + (RegExp.prototype));
+ $ERROR('#2: __obj = RegExp.prototype; RegExp.prototype = function(){return "shifted";}; RegExp.prototype === __obj. Actual: ' + (RegExp.prototype));
}
diff --git a/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T1.js b/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T1.js
index 1330fa46e..b01c39d27 100644
--- a/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T1.js
+++ b/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T1.js
@@ -11,5 +11,5 @@ description: Compare RegExp.prototype.constructor with RegExp
//CHECK#1
if (RegExp.prototype.constructor !== RegExp) {
- $ERROR('#1: RegExp.prototype.constructor === RegExp. Actual: ' + (RegExp.prototype.constructor));
+ $ERROR('#1: RegExp.prototype.constructor === RegExp. Actual: ' + (RegExp.prototype.constructor));
}
diff --git a/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T2.js b/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T2.js
index be0d16957..6c0f0fe99 100644
--- a/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T2.js
+++ b/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T2.js
@@ -17,10 +17,10 @@ var __instance = new __FACTORY;
//CHECK#1
if ((__instance instanceof RegExp) !== true) {
- $ERROR('#1: __FACTORY = RegExp.prototype.constructor; __instance = new __FACTORY; (__instance instanceof RegExp) === true');
+ $ERROR('#1: __FACTORY = RegExp.prototype.constructor; __instance = new __FACTORY; (__instance instanceof RegExp) === true');
}
//CHECK#2
if (__instance.constructor !== RegExp) {
- $ERROR('#2: __FACTORY = RegExp.prototype.constructor; __instance = new __FACTORY; __instance.constructor === RegExp. Actual: ' + (__instance.constructor));
+ $ERROR('#2: __FACTORY = RegExp.prototype.constructor; __instance = new __FACTORY; __instance.constructor === RegExp. Actual: ' + (__instance.constructor));
}
diff --git a/test/built-ins/RegExp/prototype/S15.10.6_A1_T1.js b/test/built-ins/RegExp/prototype/S15.10.6_A1_T1.js
index 9cf925c6b..8b0b0de88 100644
--- a/test/built-ins/RegExp/prototype/S15.10.6_A1_T1.js
+++ b/test/built-ins/RegExp/prototype/S15.10.6_A1_T1.js
@@ -11,5 +11,5 @@ description: Checking Object.prototype.isPrototypeOf(RegExp.prototype)
//CHECK#1
if (Object.prototype.isPrototypeOf(RegExp.prototype) !== true) {
- $ERROR('#1: Object.prototype.isPrototypeOf(RegExp.prototype) === true');
+ $ERROR('#1: Object.prototype.isPrototypeOf(RegExp.prototype) === true');
}
diff --git a/test/built-ins/RegExp/prototype/S15.10.6_A1_T2.js b/test/built-ins/RegExp/prototype/S15.10.6_A1_T2.js
index 8b42fecce..a850481d6 100644
--- a/test/built-ins/RegExp/prototype/S15.10.6_A1_T2.js
+++ b/test/built-ins/RegExp/prototype/S15.10.6_A1_T2.js
@@ -15,5 +15,5 @@ Object.prototype.indicator = 1;
//CHECK#1
if (RegExp.prototype.indicator !== 1) {
- $ERROR('#1: Object.prototype.indicator = 1; RegExp.prototype.indicator === 1. Actual: ' + (RegExp.prototype.indicator));
+ $ERROR('#1: Object.prototype.indicator = 1; RegExp.prototype.indicator === 1. Actual: ' + (RegExp.prototype.indicator));
}
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-g-set-lastindex-err.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-g-set-lastindex-err.js
index 94688c022..57deb31e6 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-g-set-lastindex-err.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-g-set-lastindex-err.js
@@ -32,7 +32,9 @@ features: [Symbol.match]
---*/
var r = /a/g;
-Object.defineProperty(r, 'lastIndex', { writable: false });
+Object.defineProperty(r, 'lastIndex', {
+ writable: false
+});
assert.throws(TypeError, function() {
r[Symbol.match]('b');
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-return-val.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-return-val.js
index e6af1fc36..c5109072c 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-return-val.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-return-val.js
@@ -32,4 +32,4 @@ info: |
features: [Symbol.match]
---*/
-assert.sameValue(/a/y[Symbol.match]('ba'), null);
+assert.sameValue(/a/y [Symbol.match]('ba'), null);
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-set-lastindex-err.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-set-lastindex-err.js
index a6510b684..a75af7385 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-set-lastindex-err.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-set-lastindex-err.js
@@ -35,7 +35,9 @@ features: [Symbol.match]
var r = /a/y;
-Object.defineProperty(r, 'lastIndex', { writable: false });
+Object.defineProperty(r, 'lastIndex', {
+ writable: false
+});
assert.throws(TypeError, function() {
r[Symbol.match]('ba');
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-infer-unicode.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-infer-unicode.js
index b579d13fb..6d551469a 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-infer-unicode.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-infer-unicode.js
@@ -30,9 +30,13 @@ features: [Symbol.match]
var r;
r = /\udf06/;
-Object.defineProperty(r, 'unicode', { value: true });
+Object.defineProperty(r, 'unicode', {
+ value: true
+});
assert.notSameValue(r[Symbol.match]('\ud834\udf06'), null);
r = /\udf06/u;
-Object.defineProperty(r, 'unicode', { value: false });
+Object.defineProperty(r, 'unicode', {
+ value: false
+});
assert.sameValue(r[Symbol.match]('\ud834\udf06'), null);
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex-err.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex-err.js
index 14b24a188..7e5a605a2 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex-err.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex-err.js
@@ -43,7 +43,9 @@ var callCount = 0;
// completion originates from the second property modification.
Object.defineProperty(r, 'exec', {
get: function() {
- Object.defineProperty(r, 'lastIndex', { writable: false });
+ Object.defineProperty(r, 'lastIndex', {
+ writable: false
+ });
}
});
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex.js
index ef566fb25..b83b3f989 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex.js
@@ -32,7 +32,9 @@ features: [Symbol.match]
// The conflicting values for the "global" flag are necessary to observe the
// final modification of `lastIndex` in RegExpBuiltinExec
var r = /b/g;
-Object.defineProperty(r, 'global', { value: false });
+Object.defineProperty(r, 'global', {
+ value: false
+});
r[Symbol.match]('abc');
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-return-val-groups.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-return-val-groups.js
index c33934f66..fa34869db 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-return-val-groups.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-return-val-groups.js
@@ -38,7 +38,7 @@ info: |
features: [Symbol.match]
---*/
-var result = /b(.).(.)./[Symbol.match]('abcdefg');
+var result = /b(.).(.)./ [Symbol.match]('abcdefg');
assert(Array.isArray(result));
assert.sameValue(result.index, 1);
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-return-val.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-return-val.js
index 77c03e4be..a88a41ed7 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-return-val.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-return-val.js
@@ -31,7 +31,7 @@ info: |
features: [Symbol.match]
---*/
-var result = /b./[Symbol.match]('abcd');
+var result = /b./ [Symbol.match]('abcd');
assert(Array.isArray(result));
assert.sameValue(result.index, 1);
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-u-return-val-groups.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-u-return-val-groups.js
index 40e1af119..1ebc0461e 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-u-return-val-groups.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-u-return-val-groups.js
@@ -40,7 +40,7 @@ info: |
features: [Symbol.match]
---*/
-var result = /b(.).(.)./u[Symbol.match]('ab\ud834\udf06defg');
+var result = /b(.).(.)./u [Symbol.match]('ab\ud834\udf06defg');
assert(Array.isArray(result));
assert.sameValue(result.index, 1);
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-y-set-lastindex-err.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-y-set-lastindex-err.js
index ae4780bd1..c8f3e2c2c 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-y-set-lastindex-err.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-y-set-lastindex-err.js
@@ -29,7 +29,9 @@ features: [Symbol.match]
var r = /a/y;
-Object.defineProperty(r, 'lastIndex', { writable: false });
+Object.defineProperty(r, 'lastIndex', {
+ writable: false
+});
assert.throws(TypeError, function() {
r[Symbol.match]('a');
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg-err.js b/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg-err.js
index 399b91a97..5a9497f4d 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg-err.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg-err.js
@@ -21,5 +21,5 @@ var str = {
};
assert.throws(Test262Error, function() {
- /./[Symbol.match](str);
+ /./ [Symbol.match](str);
});
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg.js b/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg.js
index 9fea45f93..daf9b803d 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg.js
@@ -22,4 +22,4 @@ var obj = {
}
};
-assert.notSameValue(/toString value/[Symbol.match](obj), null);
+assert.notSameValue(/toString value/ [Symbol.match](obj), null);
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/coerce-global.js b/test/built-ins/RegExp/prototype/Symbol.match/coerce-global.js
index f90e75596..e1cc62d30 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/coerce-global.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/coerce-global.js
@@ -28,7 +28,9 @@ var r, result, execCount;
r = /a/g;
r.exec = exec;
-Object.defineProperty(r, 'global', { writable: true });
+Object.defineProperty(r, 'global', {
+ writable: true
+});
execCount = 0;
r.global = undefined;
@@ -62,7 +64,9 @@ assert.sameValue(execCount, 1, 'value: ""');
r = /a/;
r.exec = exec;
-Object.defineProperty(r, 'global', { writable: true });
+Object.defineProperty(r, 'global', {
+ writable: true
+});
r.global = true;
execCount = 0;
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/g-get-exec-err.js b/test/built-ins/RegExp/prototype/Symbol.match/g-get-exec-err.js
index 999a03a0a..63d840851 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/g-get-exec-err.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/g-get-exec-err.js
@@ -23,7 +23,9 @@ info: |
features: [Symbol.match]
---*/
-var r = { global: true };
+var r = {
+ global: true
+};
Object.defineProperty(r, 'exec', {
get: function() {
throw new Test262Error();
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/g-init-lastindex-err.js b/test/built-ins/RegExp/prototype/Symbol.match/g-init-lastindex-err.js
index 73d0f249a..1a6bd1030 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/g-init-lastindex-err.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/g-init-lastindex-err.js
@@ -15,7 +15,9 @@ features: [Symbol.match]
---*/
var r = /./g;
-Object.defineProperty(r, 'lastIndex', { writable: false });
+Object.defineProperty(r, 'lastIndex', {
+ writable: false
+});
assert.throws(TypeError, function() {
r[Symbol.match]('');
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-advance-lastindex.js b/test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-advance-lastindex.js
index a3fb320ad..81b2e70ce 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-advance-lastindex.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-advance-lastindex.js
@@ -26,7 +26,7 @@ info: |
features: [Symbol.match]
---*/
-var result = /(?:)/g[Symbol.match]('abc');
+var result = /(?:)/g [Symbol.match]('abc');
assert.notSameValue(result, null);
assert.sameValue(result.length, 4);
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-set-lastindex-err.js b/test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-set-lastindex-err.js
index 4341d85fe..fc6c81d1e 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-set-lastindex-err.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-set-lastindex-err.js
@@ -32,7 +32,9 @@ var exec = function() {
nextMatch = null;
return {
get 0() {
- Object.defineProperty(r, 'lastIndex', { writable: false });
+ Object.defineProperty(r, 'lastIndex', {
+ writable: false
+ });
return thisMatch;
}
};
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/g-match-no-set-lastindex.js b/test/built-ins/RegExp/prototype/Symbol.match/g-match-no-set-lastindex.js
index 3427d2f51..f98a9d07a 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/g-match-no-set-lastindex.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/g-match-no-set-lastindex.js
@@ -30,7 +30,9 @@ var exec = function() {
nextMatch = null;
return {
get 0() {
- Object.defineProperty(r, 'lastIndex', { writable: false });
+ Object.defineProperty(r, 'lastIndex', {
+ writable: false
+ });
return thisMatch;
}
};
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/g-success-return-val.js b/test/built-ins/RegExp/prototype/Symbol.match/g-success-return-val.js
index ca52115e7..f30e987bb 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/g-success-return-val.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/g-success-return-val.js
@@ -21,7 +21,7 @@ info: |
features: [Symbol.match]
---*/
-var result = /.(.)./g[Symbol.match]('abcdefghi');
+var result = /.(.)./g [Symbol.match]('abcdefghi');
assert(Array.isArray(result));
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/g-zero-matches.js b/test/built-ins/RegExp/prototype/Symbol.match/g-zero-matches.js
index 4cf5c10f0..7d7461abc 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/g-zero-matches.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/g-zero-matches.js
@@ -18,4 +18,4 @@ info: |
features: [Symbol.match]
---*/
-assert.sameValue(/a/g[Symbol.match]('b'), null);
+assert.sameValue(/a/g [Symbol.match]('b'), null);
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/u-advance-after-empty.js b/test/built-ins/RegExp/prototype/Symbol.match/u-advance-after-empty.js
index cd3815a71..5407bc371 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/u-advance-after-empty.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/u-advance-after-empty.js
@@ -23,7 +23,7 @@ info: |
features: [Symbol.match]
---*/
-var match = /^|\udf06/ug[Symbol.match]('\ud834\udf06');
+var match = /^|\udf06/ug [Symbol.match]('\ud834\udf06');
assert(match !== null);
assert.sameValue(match.length, 1);
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/y-fail-global-return.js b/test/built-ins/RegExp/prototype/Symbol.match/y-fail-global-return.js
index c7da00f59..f66c7be9b 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/y-fail-global-return.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/y-fail-global-return.js
@@ -39,7 +39,7 @@ info: |
features: [Symbol.match]
---*/
-var result = /a/yg[Symbol.match]('aaba');
+var result = /a/yg [Symbol.match]('aaba');
assert.notSameValue(result, null);
assert.sameValue(result.length, 2);
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/y-fail-return.js b/test/built-ins/RegExp/prototype/Symbol.match/y-fail-return.js
index 7c1330c07..a1b654b8e 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/y-fail-return.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/y-fail-return.js
@@ -30,4 +30,4 @@ info: |
features: [Symbol.match]
---*/
-assert.sameValue(/b/y[Symbol.match]('ab'), null);
+assert.sameValue(/b/y [Symbol.match]('ab'), null);
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce-err.js b/test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce-err.js
index b12647ba1..c0809c650 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce-err.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce-err.js
@@ -20,5 +20,5 @@ var arg = {
};
assert.throws(Test262Error, function() {
- /./[Symbol.replace](arg);
+ /./ [Symbol.replace](arg);
});
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce.js b/test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce.js
index dab31fc7d..991ab6587 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce.js
@@ -22,4 +22,4 @@ var arg = {
}
};
-assert.sameValue(/./[Symbol.replace](arg, 'x'), 'xoString value');
+assert.sameValue(/./ [Symbol.replace](arg, 'x'), 'xoString value');
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce-err.js b/test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce-err.js
index af11c4b92..5195e7124 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce-err.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce-err.js
@@ -22,5 +22,5 @@ var arg = {
};
assert.throws(Test262Error, function() {
- /./[Symbol.replace]('', arg);
+ /./ [Symbol.replace]('', arg);
});
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce.js b/test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce.js
index c98886c52..e4ed04613 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce.js
@@ -24,4 +24,4 @@ var arg = {
}
};
-assert.sameValue(/./[Symbol.replace]('string', arg), 'toString valuetring');
+assert.sameValue(/./ [Symbol.replace]('string', arg), 'toString valuetring');
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/coerce-global.js b/test/built-ins/RegExp/prototype/Symbol.replace/coerce-global.js
index 41547753a..c2d5a2464 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/coerce-global.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/coerce-global.js
@@ -15,7 +15,9 @@ features: [Symbol.replace]
Array.print = print;
var r = /a/g;
-Object.defineProperty(r, 'global', { writable: true });
+Object.defineProperty(r, 'global', {
+ writable: true
+});
r.lastIndex = 0;
r.global = undefined;
@@ -43,7 +45,9 @@ assert.sameValue(r[Symbol.replace]('aa', 'b'), 'ba', 'value: ""');
var execCount = 0;
r = /a/;
-Object.defineProperty(r, 'global', { writable: true });
+Object.defineProperty(r, 'global', {
+ writable: true
+});
r.exec = function() {
execCount += 1;
if (execCount === 1) {
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/coerce-unicode.js b/test/built-ins/RegExp/prototype/Symbol.replace/coerce-unicode.js
index 498ea8856..6ea18eda9 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/coerce-unicode.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/coerce-unicode.js
@@ -15,7 +15,9 @@ features: [Symbol.replace]
---*/
var r = /^|\udf06/g;
-Object.defineProperty(r, 'unicode', { writable: true });
+Object.defineProperty(r, 'unicode', {
+ writable: true
+});
r.unicode = undefined;
assert.sameValue(r[Symbol.replace]('\ud834\udf06', 'XXX'), 'XXX\ud834XXX');
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/fn-coerce-replacement-err.js b/test/built-ins/RegExp/prototype/Symbol.replace/fn-coerce-replacement-err.js
index ebfe89cea..cc25a77df 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/fn-coerce-replacement-err.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/fn-coerce-replacement-err.js
@@ -30,5 +30,5 @@ var replacer = function() {
};
assert.throws(Test262Error, function() {
- /x/[Symbol.replace]('[x]', replacer);
+ /x/ [Symbol.replace]('[x]', replacer);
});
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/fn-coerce-replacement.js b/test/built-ins/RegExp/prototype/Symbol.replace/fn-coerce-replacement.js
index 5ecc7b47b..978375317 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/fn-coerce-replacement.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/fn-coerce-replacement.js
@@ -26,4 +26,4 @@ var replacer = function() {
};
};
-assert.sameValue(/x/[Symbol.replace]('[x]', replacer), '[toString value]');
+assert.sameValue(/x/ [Symbol.replace]('[x]', replacer), '[toString value]');
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/fn-err.js b/test/built-ins/RegExp/prototype/Symbol.replace/fn-err.js
index b35ba4435..120866908 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/fn-err.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/fn-err.js
@@ -25,5 +25,5 @@ var replacer = function() {
};
assert.throws(Test262Error, function() {
- /./[Symbol.replace]('a', replacer);
+ /./ [Symbol.replace]('a', replacer);
});
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-args.js b/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-args.js
index 301a4673d..a1d32ab57 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-args.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-args.js
@@ -22,7 +22,7 @@ var replacer = function() {
args = arguments;
};
-/b(.).(.)/[Symbol.replace]('abcdef', replacer);
+/b(.).(.)/ [Symbol.replace]('abcdef', replacer);
assert.notSameValue(args, undefined);
assert.sameValue(args.length, 5);
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-this-no-strict.js b/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-this-no-strict.js
index 5f9a58aee..62aec4b30 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-this-no-strict.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-this-no-strict.js
@@ -24,6 +24,6 @@ var replacer = function() {
thisVal = this;
};
-/./[Symbol.replace]('x', replacer);
+/./ [Symbol.replace]('x', replacer);
assert.sameValue(thisVal, this);
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-this-strict.js b/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-this-strict.js
index 2b556a8b4..44c2a570b 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-this-strict.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-this-strict.js
@@ -24,6 +24,6 @@ var replacer = function() {
thisVal = this;
};
-/./[Symbol.replace]('x', replacer);
+/./ [Symbol.replace]('x', replacer);
assert.sameValue(thisVal, undefined);
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/g-init-lastindex-err.js b/test/built-ins/RegExp/prototype/Symbol.replace/g-init-lastindex-err.js
index a6a97f753..7b49452e5 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/g-init-lastindex-err.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/g-init-lastindex-err.js
@@ -22,7 +22,9 @@ var r = /./g;
// Avoid false positives from unrelated TypeErrors
r[Symbol.replace]('x', 'x');
-Object.defineProperty(r, 'lastIndex', { writable: false });
+Object.defineProperty(r, 'lastIndex', {
+ writable: false
+});
assert.throws(TypeError, function() {
r[Symbol.replace]('x', 'x');
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-decrement.js b/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-decrement.js
index 2a03846f9..7447ac6d8 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-decrement.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-decrement.js
@@ -29,9 +29,17 @@ r.exec = function() {
callCount += 1;
if (callCount === 1) {
- return { index: 3, length: 1, 0: 0 };
+ return {
+ index: 3,
+ length: 1,
+ 0: 0
+ };
} else if (callCount === 2) {
- return { index: 1, length: 1, 0: 0 };
+ return {
+ index: 1,
+ length: 1,
+ 0: 0
+ };
}
return null;
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-increment.js b/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-increment.js
index 000ba643b..2af11e676 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-increment.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-increment.js
@@ -29,9 +29,17 @@ r.exec = function() {
callCount += 1;
if (callCount === 1) {
- return { index: 1, length: 1, 0: 0 };
+ return {
+ index: 1,
+ length: 1,
+ 0: 0
+ };
} else if (callCount === 2) {
- return { index: 3, length: 1, 0: 0 };
+ return {
+ index: 3,
+ length: 1,
+ 0: 0
+ };
}
return null;
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/get-exec-err.js b/test/built-ins/RegExp/prototype/Symbol.replace/get-exec-err.js
index 902ae4423..8d5bf5b79 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/get-exec-err.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/get-exec-err.js
@@ -19,7 +19,9 @@ info: |
features: [Symbol.replace]
---*/
-var r = { global: true };
+var r = {
+ global: true
+};
Object.defineProperty(r, 'exec', {
get: function() {
throw new Test262Error();
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/match-failure.js b/test/built-ins/RegExp/prototype/Symbol.replace/match-failure.js
index 33df517c2..e1ff4fee2 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/match-failure.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/match-failure.js
@@ -24,4 +24,4 @@ info: |
features: [Symbol.replace]
---*/
-assert.sameValue(/x/[Symbol.replace]('abc', 'X'), 'abc');
+assert.sameValue(/x/ [Symbol.replace]('abc', 'X'), 'abc');
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/replace-with-trailing.js b/test/built-ins/RegExp/prototype/Symbol.replace/replace-with-trailing.js
index 62ecbb9bf..136ea6c23 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/replace-with-trailing.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/replace-with-trailing.js
@@ -14,11 +14,11 @@ info: |
features: [Symbol.replace]
---*/
-assert.sameValue(/abc/[Symbol.replace]('abcd', 'X'), 'Xd');
-assert.sameValue(/bc/[Symbol.replace]('abcd', 'X'), 'aXd');
-assert.sameValue(/c/[Symbol.replace]('abcd', 'X'), 'abXd');
+assert.sameValue(/abc/ [Symbol.replace]('abcd', 'X'), 'Xd');
+assert.sameValue(/bc/ [Symbol.replace]('abcd', 'X'), 'aXd');
+assert.sameValue(/c/ [Symbol.replace]('abcd', 'X'), 'abXd');
-assert.sameValue(/ab/[Symbol.replace]('abcd', 'X'), 'Xcd');
-assert.sameValue(/b/[Symbol.replace]('abcd', 'X'), 'aXcd');
+assert.sameValue(/ab/ [Symbol.replace]('abcd', 'X'), 'Xcd');
+assert.sameValue(/b/ [Symbol.replace]('abcd', 'X'), 'aXcd');
-assert.sameValue(/a/[Symbol.replace]('abcd', 'X'), 'Xbcd');
+assert.sameValue(/a/ [Symbol.replace]('abcd', 'X'), 'Xbcd');
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/replace-without-trailing.js b/test/built-ins/RegExp/prototype/Symbol.replace/replace-without-trailing.js
index 22a0e3dd1..c59779e41 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/replace-without-trailing.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/replace-without-trailing.js
@@ -10,7 +10,7 @@ info: |
features: [Symbol.replace]
---*/
-assert.sameValue(/abcd/[Symbol.replace]('abcd', 'X'), 'X');
-assert.sameValue(/bcd/[Symbol.replace]('abcd', 'X'), 'aX');
-assert.sameValue(/cd/[Symbol.replace]('abcd', 'X'), 'abX');
-assert.sameValue(/d/[Symbol.replace]('abcd', 'X'), 'abcX');
+assert.sameValue(/abcd/ [Symbol.replace]('abcd', 'X'), 'X');
+assert.sameValue(/bcd/ [Symbol.replace]('abcd', 'X'), 'aX');
+assert.sameValue(/cd/ [Symbol.replace]('abcd', 'X'), 'abX');
+assert.sameValue(/d/ [Symbol.replace]('abcd', 'X'), 'abcX');
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/subst-after.js b/test/built-ins/RegExp/prototype/Symbol.replace/subst-after.js
index a42a59168..5d9a60511 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/subst-after.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/subst-after.js
@@ -28,5 +28,5 @@ info: |
features: [Symbol.replace]
---*/
-assert.sameValue(/c/[Symbol.replace]('abc', '[$\']'), 'ab[]');
-assert.sameValue(/b/[Symbol.replace]('abc', '[$\']'), 'a[c]c');
+assert.sameValue(/c/ [Symbol.replace]('abc', '[$\']'), 'ab[]');
+assert.sameValue(/b/ [Symbol.replace]('abc', '[$\']'), 'a[c]c');
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/subst-before.js b/test/built-ins/RegExp/prototype/Symbol.replace/subst-before.js
index 828e247fe..0f7276a32 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/subst-before.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/subst-before.js
@@ -28,5 +28,5 @@ info: |
features: [Symbol.replace]
---*/
-assert.sameValue(/a/[Symbol.replace]('abc', '[$`]'), '[]bc');
-assert.sameValue(/b/[Symbol.replace]('abc', '[$`]'), 'a[a]c');
+assert.sameValue(/a/ [Symbol.replace]('abc', '[$`]'), '[]bc');
+assert.sameValue(/b/ [Symbol.replace]('abc', '[$`]'), 'a[a]c');
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-1.js b/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-1.js
index 17287cd44..52d19ea03 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-1.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-1.js
@@ -32,6 +32,6 @@ info: |
features: [Symbol.replace]
---*/
-assert.sameValue(/b(c)(z)?(.)/[Symbol.replace]('abcde', '[$1$2$3]'), 'a[cd]e');
+assert.sameValue(/b(c)(z)?(.)/ [Symbol.replace]('abcde', '[$1$2$3]'), 'a[cd]e');
-assert.sameValue(/b(c)(z)?(.)/[Symbol.replace]('abcde', '[$1$2$3$4$0]'), 'a[cd$4$0]e');
+assert.sameValue(/b(c)(z)?(.)/ [Symbol.replace]('abcde', '[$1$2$3$4$0]'), 'a[cd$4$0]e');
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-2.js b/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-2.js
index a84e790cc..6b255d458 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-2.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-2.js
@@ -33,9 +33,9 @@ features: [Symbol.replace]
---*/
assert.sameValue(
- /b(c)(z)?(.)/[Symbol.replace]('abcde', '[$01$02$03]'), 'a[cd]e'
+ /b(c)(z)?(.)/ [Symbol.replace]('abcde', '[$01$02$03]'), 'a[cd]e'
);
assert.sameValue(
- /b(c)(z)?(.)/[Symbol.replace]('abcde', '[$01$02$03$04$00]'), 'a[cd$04$00]e'
+ /b(c)(z)?(.)/ [Symbol.replace]('abcde', '[$01$02$03$04$00]'), 'a[cd$04$00]e'
);
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/subst-dollar.js b/test/built-ins/RegExp/prototype/Symbol.replace/subst-dollar.js
index 8cae30de4..95df622a4 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/subst-dollar.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/subst-dollar.js
@@ -29,15 +29,15 @@ info: |
features: [Symbol.replace]
---*/
-assert.sameValue(/./[Symbol.replace]('abc', '$$'), '$bc', '"escaped" version');
+assert.sameValue(/./ [Symbol.replace]('abc', '$$'), '$bc', '"escaped" version');
assert.sameValue(
- /./[Symbol.replace]('abc', '$'), '$bc', '"unescaped" version'
+ /./ [Symbol.replace]('abc', '$'), '$bc', '"unescaped" version'
);
assert.sameValue(
- /./[Symbol.replace]('abc', '\\$'), '\\$bc', 'backslash-prefixed'
+ /./ [Symbol.replace]('abc', '\\$'), '\\$bc', 'backslash-prefixed'
);
assert.sameValue(
- /./[Symbol.replace]('abc', '$$$'),
+ /./ [Symbol.replace]('abc', '$$$'),
'$$bc',
'"escaped" followed by "unuescaped"'
);
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/subst-matched.js b/test/built-ins/RegExp/prototype/Symbol.replace/subst-matched.js
index 20649e518..c13bf187c 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/subst-matched.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/subst-matched.js
@@ -23,4 +23,4 @@ info: |
features: [Symbol.replace]
---*/
-assert.sameValue(/.4?./[Symbol.replace]('abc', '[$&]'), '[ab]c');
+assert.sameValue(/.4?./ [Symbol.replace]('abc', '[$&]'), '[ab]c');
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/u-advance-after-empty.js b/test/built-ins/RegExp/prototype/Symbol.replace/u-advance-after-empty.js
index a9824f815..d571c7979 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/u-advance-after-empty.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/u-advance-after-empty.js
@@ -26,5 +26,5 @@ info: |
features: [Symbol.replace]
---*/
-var str = /^|\udf06/ug[Symbol.replace]('\ud834\udf06', 'XXX');
+var str = /^|\udf06/ug [Symbol.replace]('\ud834\udf06', 'XXX');
assert.sameValue(str, 'XXX\ud834\udf06');
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/y-fail-global-return.js b/test/built-ins/RegExp/prototype/Symbol.replace/y-fail-global-return.js
index 81fee39c5..10dd25140 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/y-fail-global-return.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/y-fail-global-return.js
@@ -36,4 +36,4 @@ info: |
features: [Symbol.replace]
---*/
-assert.sameValue(/a/yg[Symbol.replace]('aaba', 'x'), 'xxba');
+assert.sameValue(/a/yg [Symbol.replace]('aaba', 'x'), 'xxba');
diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/y-fail-return.js b/test/built-ins/RegExp/prototype/Symbol.replace/y-fail-return.js
index 5b2746f38..ee76f1a92 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/y-fail-return.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/y-fail-return.js
@@ -28,4 +28,4 @@ info: |
features: [Symbol.replace]
---*/
-assert.sameValue(/b/y[Symbol.replace]('ab', 'x'), 'ab');
+assert.sameValue(/b/y [Symbol.replace]('ab', 'x'), 'ab');
diff --git a/test/built-ins/RegExp/prototype/Symbol.search/coerce-string-err.js b/test/built-ins/RegExp/prototype/Symbol.search/coerce-string-err.js
index 889dbdac7..ce69827b0 100644
--- a/test/built-ins/RegExp/prototype/Symbol.search/coerce-string-err.js
+++ b/test/built-ins/RegExp/prototype/Symbol.search/coerce-string-err.js
@@ -18,9 +18,9 @@ var uncoercibleObj = {
};
assert.throws(Test262Error, function() {
- /./[Symbol.search](uncoercibleObj);
+ /./ [Symbol.search](uncoercibleObj);
});
assert.throws(TypeError, function() {
- /./[Symbol.search](Symbol.search);
+ /./ [Symbol.search](Symbol.search);
});
diff --git a/test/built-ins/RegExp/prototype/Symbol.search/coerce-string.js b/test/built-ins/RegExp/prototype/Symbol.search/coerce-string.js
index 9b59d5d83..01645c749 100644
--- a/test/built-ins/RegExp/prototype/Symbol.search/coerce-string.js
+++ b/test/built-ins/RegExp/prototype/Symbol.search/coerce-string.js
@@ -17,4 +17,4 @@ var obj = {
}
};
-assert.sameValue(/ring/[Symbol.search](obj), 4);
+assert.sameValue(/ring/ [Symbol.search](obj), 4);
diff --git a/test/built-ins/RegExp/prototype/Symbol.search/cstm-exec-return-index.js b/test/built-ins/RegExp/prototype/Symbol.search/cstm-exec-return-index.js
index 398209d38..ccd4e4889 100644
--- a/test/built-ins/RegExp/prototype/Symbol.search/cstm-exec-return-index.js
+++ b/test/built-ins/RegExp/prototype/Symbol.search/cstm-exec-return-index.js
@@ -25,7 +25,9 @@ features: [Symbol.search]
var fakeRe = {
exec: function() {
- return { index: 86 };
+ return {
+ index: 86
+ };
}
};
diff --git a/test/built-ins/RegExp/prototype/Symbol.search/failure-return-val.js b/test/built-ins/RegExp/prototype/Symbol.search/failure-return-val.js
index 458f57691..5b4c75ca0 100644
--- a/test/built-ins/RegExp/prototype/Symbol.search/failure-return-val.js
+++ b/test/built-ins/RegExp/prototype/Symbol.search/failure-return-val.js
@@ -10,4 +10,4 @@ info: |
features: [Symbol.search]
---*/
-assert.sameValue(/z/[Symbol.search]('a'), -1);
+assert.sameValue(/z/ [Symbol.search]('a'), -1);
diff --git a/test/built-ins/RegExp/prototype/Symbol.search/set-lastindex-restore-err.js b/test/built-ins/RegExp/prototype/Symbol.search/set-lastindex-restore-err.js
index 8f85a5e11..f3333c64c 100644
--- a/test/built-ins/RegExp/prototype/Symbol.search/set-lastindex-restore-err.js
+++ b/test/built-ins/RegExp/prototype/Symbol.search/set-lastindex-restore-err.js
@@ -15,7 +15,9 @@ features: [Symbol.search]
var callCount;
var poisonedLastIndex = {
- get lastIndex() { return this.lastIndex_; },
+ get lastIndex() {
+ return this.lastIndex_;
+ },
set lastIndex(_) {
if (callCount === 1) {
throw new Test262Error();
@@ -30,7 +32,9 @@ var poisonedLastIndex = {
var nonWritableLastIndex = {
exec: function() {
Object.defineProperty(
- nonWritableLastIndex, 'lastIndex', { writable: false }
+ nonWritableLastIndex, 'lastIndex', {
+ writable: false
+ }
);
callCount += 1;
return null;
diff --git a/test/built-ins/RegExp/prototype/Symbol.search/success-return-val.js b/test/built-ins/RegExp/prototype/Symbol.search/success-return-val.js
index e8bd0ee00..948673373 100644
--- a/test/built-ins/RegExp/prototype/Symbol.search/success-return-val.js
+++ b/test/built-ins/RegExp/prototype/Symbol.search/success-return-val.js
@@ -10,6 +10,6 @@ info: |
features: [Symbol.search]
---*/
-assert.sameValue(/a/[Symbol.search]('abc'), 0);
-assert.sameValue(/b/[Symbol.search]('abc'), 1);
-assert.sameValue(/c/[Symbol.search]('abc'), 2);
+assert.sameValue(/a/ [Symbol.search]('abc'), 0);
+assert.sameValue(/b/ [Symbol.search]('abc'), 1);
+assert.sameValue(/c/ [Symbol.search]('abc'), 2);
diff --git a/test/built-ins/RegExp/prototype/Symbol.search/u-lastindex-advance.js b/test/built-ins/RegExp/prototype/Symbol.search/u-lastindex-advance.js
index 913b64516..eae1d9a17 100644
--- a/test/built-ins/RegExp/prototype/Symbol.search/u-lastindex-advance.js
+++ b/test/built-ins/RegExp/prototype/Symbol.search/u-lastindex-advance.js
@@ -20,4 +20,4 @@ info: |
features: [Symbol.search]
---*/
-assert.sameValue(/\udf06/u[Symbol.search]('\ud834\udf06'), -1);
+assert.sameValue(/\udf06/u [Symbol.search]('\ud834\udf06'), -1);
diff --git a/test/built-ins/RegExp/prototype/Symbol.search/y-fail-return.js b/test/built-ins/RegExp/prototype/Symbol.search/y-fail-return.js
index 3edf19d28..e23fec9a1 100644
--- a/test/built-ins/RegExp/prototype/Symbol.search/y-fail-return.js
+++ b/test/built-ins/RegExp/prototype/Symbol.search/y-fail-return.js
@@ -27,4 +27,4 @@ info: |
features: [Symbol.search]
---*/
-assert.sameValue(/a/y[Symbol.search]('ba'), -1);
+assert.sameValue(/a/y [Symbol.search]('ba'), -1);
diff --git a/test/built-ins/RegExp/prototype/Symbol.split/coerce-limit-err.js b/test/built-ins/RegExp/prototype/Symbol.split/coerce-limit-err.js
index fc69ddb02..fc2b372a0 100644
--- a/test/built-ins/RegExp/prototype/Symbol.split/coerce-limit-err.js
+++ b/test/built-ins/RegExp/prototype/Symbol.split/coerce-limit-err.js
@@ -19,9 +19,9 @@ var uncoercibleObj = {
};
assert.throws(TypeError, function() {
- /./[Symbol.split]('', Symbol.split);
+ /./ [Symbol.split]('', Symbol.split);
});
assert.throws(Test262Error, function() {
- /./[Symbol.split]('', uncoercibleObj);
+ /./ [Symbol.split]('', uncoercibleObj);
});
diff --git a/test/built-ins/RegExp/prototype/Symbol.split/coerce-limit.js b/test/built-ins/RegExp/prototype/Symbol.split/coerce-limit.js
index 5d66443c4..093f3ec2f 100644
--- a/test/built-ins/RegExp/prototype/Symbol.split/coerce-limit.js
+++ b/test/built-ins/RegExp/prototype/Symbol.split/coerce-limit.js
@@ -14,15 +14,15 @@ features: [Symbol.split]
var result;
// ToUint32(-23) = 4294967273
-result = /./[Symbol.split]('abc', -23);
+result = /./ [Symbol.split]('abc', -23);
assert(Array.isArray(result));
assert.sameValue(result.length, 4);
-result = /./[Symbol.split]('abc', 1.9);
+result = /./ [Symbol.split]('abc', 1.9);
assert(Array.isArray(result));
assert.sameValue(result.length, 1);
assert.sameValue(result[0], '');
-result = /./[Symbol.split]('abc', NaN);
+result = /./ [Symbol.split]('abc', NaN);
assert(Array.isArray(result));
assert.sameValue(result.length, 0);
diff --git a/test/built-ins/RegExp/prototype/Symbol.split/coerce-string-err.js b/test/built-ins/RegExp/prototype/Symbol.split/coerce-string-err.js
index aae507223..32c3c0ee3 100644
--- a/test/built-ins/RegExp/prototype/Symbol.split/coerce-string-err.js
+++ b/test/built-ins/RegExp/prototype/Symbol.split/coerce-string-err.js
@@ -18,9 +18,9 @@ var uncoercibleObj = {
};
assert.throws(Test262Error, function() {
- /./[Symbol.split](uncoercibleObj);
+ /./ [Symbol.split](uncoercibleObj);
});
assert.throws(TypeError, function() {
- /./[Symbol.split](Symbol.split);
+ /./ [Symbol.split](Symbol.split);
});
diff --git a/test/built-ins/RegExp/prototype/Symbol.split/coerce-string.js b/test/built-ins/RegExp/prototype/Symbol.split/coerce-string.js
index 58ad484d6..88194a186 100644
--- a/test/built-ins/RegExp/prototype/Symbol.split/coerce-string.js
+++ b/test/built-ins/RegExp/prototype/Symbol.split/coerce-string.js
@@ -18,7 +18,7 @@ var obj = {
};
var result;
-result = / /[Symbol.split](obj);
+result = / / [Symbol.split](obj);
assert(Array.isArray(result));
assert.sameValue(result.length, 2);
diff --git a/test/built-ins/RegExp/prototype/Symbol.split/last-index-exceeds-str-size.js b/test/built-ins/RegExp/prototype/Symbol.split/last-index-exceeds-str-size.js
index f9b662f50..26fbbad46 100644
--- a/test/built-ins/RegExp/prototype/Symbol.split/last-index-exceeds-str-size.js
+++ b/test/built-ins/RegExp/prototype/Symbol.split/last-index-exceeds-str-size.js
@@ -22,7 +22,10 @@ var string = "foo";
RegExp.prototype.exec = function() {
this.lastIndex = 100;
- return {length: 0, index: 0};
+ return {
+ length: 0,
+ index: 0
+ };
};
var result = regExp[Symbol.split](string);
diff --git a/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-ctor-non-obj.js b/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-ctor-non-obj.js
index 3425f4623..2550e2e00 100644
--- a/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-ctor-non-obj.js
+++ b/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-ctor-non-obj.js
@@ -19,7 +19,9 @@ info: |
features: [Symbol.split]
---*/
-var obj = { flags: '' };
+var obj = {
+ flags: ''
+};
// Avoid false positives from unrelated TypeErrors
RegExp.prototype[Symbol.split].call(obj);
diff --git a/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-species-get-err.js b/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-species-get-err.js
index b83974bee..26faf1117 100644
--- a/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-species-get-err.js
+++ b/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-species-get-err.js
@@ -31,5 +31,7 @@ Object.defineProperty(poisonedSpecies, Symbol.species, {
});
assert.throws(Test262Error, function() {
- RegExp.prototype[Symbol.split].call({ constructor: poisonedSpecies });
+ RegExp.prototype[Symbol.split].call({
+ constructor: poisonedSpecies
+ });
});
diff --git a/test/built-ins/RegExp/prototype/Symbol.split/str-adv-thru-empty-match.js b/test/built-ins/RegExp/prototype/Symbol.split/str-adv-thru-empty-match.js
index 7d6dfdd82..d99763cf6 100644
--- a/test/built-ins/RegExp/prototype/Symbol.split/str-adv-thru-empty-match.js
+++ b/test/built-ins/RegExp/prototype/Symbol.split/str-adv-thru-empty-match.js
@@ -20,7 +20,7 @@ info: |
features: [Symbol.split]
---*/
-var result = /(?:)/[Symbol.split]('abc');
+var result = /(?:)/ [Symbol.split]('abc');
assert(Array.isArray(result));
assert.sameValue(result.length, 3);
diff --git a/test/built-ins/RegExp/prototype/Symbol.split/str-coerce-lastindex-err.js b/test/built-ins/RegExp/prototype/Symbol.split/str-coerce-lastindex-err.js
index 0292e0846..5e89b6c19 100644
--- a/test/built-ins/RegExp/prototype/Symbol.split/str-coerce-lastindex-err.js
+++ b/test/built-ins/RegExp/prototype/Symbol.split/str-coerce-lastindex-err.js
@@ -42,7 +42,9 @@ assert.throws(TypeError, function() {
});
badLastIndex = {
- valueOf: function() { throw new Test262Error(); }
+ valueOf: function() {
+ throw new Test262Error();
+ }
};
assert.throws(Test262Error, function() {
RegExp.prototype[Symbol.split].call(obj, 'abcd');
diff --git a/test/built-ins/RegExp/prototype/Symbol.split/str-empty-match.js b/test/built-ins/RegExp/prototype/Symbol.split/str-empty-match.js
index 6e987a56a..5f1bb6e79 100644
--- a/test/built-ins/RegExp/prototype/Symbol.split/str-empty-match.js
+++ b/test/built-ins/RegExp/prototype/Symbol.split/str-empty-match.js
@@ -13,7 +13,7 @@ info: |
features: [Symbol.split]
---*/
-var result = /(?:)/[Symbol.split]('');
+var result = /(?:)/ [Symbol.split]('');
assert(Array.isArray(result));
assert.sameValue(result.length, 0);
diff --git a/test/built-ins/RegExp/prototype/Symbol.split/str-empty-no-match.js b/test/built-ins/RegExp/prototype/Symbol.split/str-empty-no-match.js
index 9d3f5964e..c6bea6bd6 100644
--- a/test/built-ins/RegExp/prototype/Symbol.split/str-empty-no-match.js
+++ b/test/built-ins/RegExp/prototype/Symbol.split/str-empty-no-match.js
@@ -17,7 +17,7 @@ info: |
features: [Symbol.split]
---*/
-var result = /./[Symbol.split]('');
+var result = /./ [Symbol.split]('');
assert(Array.isArray(result));
assert.sameValue(result.length, 1);
diff --git a/test/built-ins/RegExp/prototype/Symbol.split/str-limit-capturing.js b/test/built-ins/RegExp/prototype/Symbol.split/str-limit-capturing.js
index c4fe2036a..8b0f5e497 100644
--- a/test/built-ins/RegExp/prototype/Symbol.split/str-limit-capturing.js
+++ b/test/built-ins/RegExp/prototype/Symbol.split/str-limit-capturing.js
@@ -21,7 +21,7 @@ info: |
features: [Symbol.split]
---*/
-var result = /c(d)(e)/[Symbol.split]('abcdefg', 2);
+var result = /c(d)(e)/ [Symbol.split]('abcdefg', 2);
assert(Array.isArray(result));
assert.sameValue(result.length, 2);
diff --git a/test/built-ins/RegExp/prototype/Symbol.split/str-limit.js b/test/built-ins/RegExp/prototype/Symbol.split/str-limit.js
index a10409309..67858db7c 100644
--- a/test/built-ins/RegExp/prototype/Symbol.split/str-limit.js
+++ b/test/built-ins/RegExp/prototype/Symbol.split/str-limit.js
@@ -21,7 +21,7 @@ info: |
features: [Symbol.split]
---*/
-var result = /x/[Symbol.split]('axbxcxdxe', 3);
+var result = /x/ [Symbol.split]('axbxcxdxe', 3);
assert(Array.isArray(result));
assert.sameValue(result.length, 3);
diff --git a/test/built-ins/RegExp/prototype/Symbol.split/str-trailing-chars.js b/test/built-ins/RegExp/prototype/Symbol.split/str-trailing-chars.js
index c781dde5e..c4b57d4a6 100644
--- a/test/built-ins/RegExp/prototype/Symbol.split/str-trailing-chars.js
+++ b/test/built-ins/RegExp/prototype/Symbol.split/str-trailing-chars.js
@@ -14,7 +14,7 @@ info: |
features: [Symbol.split]
---*/
-var result = /d/[Symbol.split]('abcdefg');
+var result = /d/ [Symbol.split]('abcdefg');
assert(Array.isArray(result));
assert.sameValue(result.length, 2);
diff --git a/test/built-ins/RegExp/prototype/Symbol.split/u-lastindex-adv-thru-failure.js b/test/built-ins/RegExp/prototype/Symbol.split/u-lastindex-adv-thru-failure.js
index 476dbf950..8cbc45e38 100644
--- a/test/built-ins/RegExp/prototype/Symbol.split/u-lastindex-adv-thru-failure.js
+++ b/test/built-ins/RegExp/prototype/Symbol.split/u-lastindex-adv-thru-failure.js
@@ -23,6 +23,6 @@ info: |
features: [Symbol.split]
---*/
-var result = /\udf06/u[Symbol.split]('\ud834\udf06');
+var result = /\udf06/u [Symbol.split]('\ud834\udf06');
assert.sameValue(result.length, 1);
diff --git a/test/built-ins/RegExp/prototype/Symbol.split/u-lastindex-adv-thru-match.js b/test/built-ins/RegExp/prototype/Symbol.split/u-lastindex-adv-thru-match.js
index 1e370c193..767c4d842 100644
--- a/test/built-ins/RegExp/prototype/Symbol.split/u-lastindex-adv-thru-match.js
+++ b/test/built-ins/RegExp/prototype/Symbol.split/u-lastindex-adv-thru-match.js
@@ -27,7 +27,7 @@ info: |
features: [Symbol.split]
---*/
-var result = /./u[Symbol.split]('\ud834\udf06');
+var result = /./u [Symbol.split]('\ud834\udf06');
assert.sameValue(result.length, 2);
assert.sameValue(result[0], '');
diff --git a/test/built-ins/RegExp/prototype/exec/15.10.6.2-9-e-1.js b/test/built-ins/RegExp/prototype/exec/15.10.6.2-9-e-1.js
index ab93d95a8..4ccfba20f 100644
--- a/test/built-ins/RegExp/prototype/exec/15.10.6.2-9-e-1.js
+++ b/test/built-ins/RegExp/prototype/exec/15.10.6.2-9-e-1.js
@@ -8,9 +8,9 @@ description: >
current algorithm
---*/
- var str = "Hello World!";
- var regObj = new RegExp("World");
- var result = false;
- result = regObj.exec(str).toString() === "World";
+var str = "Hello World!";
+var regObj = new RegExp("World");
+var result = false;
+result = regObj.exec(str).toString() === "World";
assert(result, 'result !== true');
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A10.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A10.js
index 5c69cca8e..3b8b33029 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A10.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A10.js
@@ -15,7 +15,9 @@ if (RegExp.prototype.exec.hasOwnProperty('length') !== true) {
var __obj = RegExp.prototype.exec.length;
-verifyNotWritable(RegExp.prototype.exec, "length", null, function(){return "shifted";});
+verifyNotWritable(RegExp.prototype.exec, "length", null, function() {
+ return "shifted";
+});
//CHECK#2
if (RegExp.prototype.exec.length !== __obj) {
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A12.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A12.js
index 1fd0f84ac..cbac6ac4c 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A12.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A12.js
@@ -8,7 +8,7 @@ description: Checking RegExp.prototype.exec
---*/
(/foo/).test('xfoox');
-var match = new RegExp('(.|\r|\n)*','').exec()[0];
+var match = new RegExp('(.|\r|\n)*', '').exec()[0];
if (match === 'xfoox') {
$ERROR('#1: regExp.exec() leaks match globally');
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T1.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T1.js
index f76ef50e6..0b7c3689c 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T1.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T1.js
@@ -12,12 +12,12 @@ description: String is "123" and RegExp is /1|12/
var __executed = /1|12/.exec("123");
var __expected = ["1"];
-__expected.index=0;
-__expected.input="123";
+__expected.index = 0;
+__expected.input = "123";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /1|12/.exec("123"); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /1|12/.exec("123"); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) {
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__executed[index] !== __expected[index]) {
$ERROR('#4: __executed = /1|12/.exec("123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T10.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T10.js
index 824d63114..dc640a28d 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T10.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T10.js
@@ -12,12 +12,12 @@ description: String is 1.01 and RegExp is /1|12/
var __executed = /1|12/.exec(1.01);
var __expected = ["1"];
-__expected.index=0;
-__expected.input="1.01";
+__expected.index = 0;
+__expected.input = "1.01";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /1|12/.exec(1.01); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /1|12/.exec(1.01); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) {
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__executed[index] !== __expected[index]) {
$ERROR('#4: __executed = /1|12/.exec(1.01); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T11.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T11.js
index e1cbaccf1..10dc7b5c5 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T11.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T11.js
@@ -12,12 +12,12 @@ description: String is new Number(1.012) and RegExp is /2|12/
var __executed = /2|12/.exec(new Number(1.012));
var __expected = ["12"];
-__expected.index=3;
-__expected.input="1.012";
+__expected.index = 3;
+__expected.input = "1.012";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /2|12/.exec(new Number(1.012)); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /2|12/.exec(new Number(1.012)); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) {
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__executed[index] !== __expected[index]) {
$ERROR('#4: __executed = /2|12/.exec(new Number(1.012)); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js
index f019f3ceb..1fef458d1 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js
@@ -11,15 +11,19 @@ description: >
/\.14/
---*/
-var __executed = /\.14/.exec({toString:function(){return Math.PI}});
+var __executed = /\.14/.exec({
+ toString: function() {
+ return Math.PI
+ }
+});
var __expected = [".14"];
-__expected.index=1;
-__expected.input=String(Math.PI);
+__expected.index = 1;
+__expected.input = String(Math.PI);
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -38,7 +42,7 @@ if (__executed.input !== __expected.input) {
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__executed[index] !== __expected[index]) {
$ERROR('#4: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T13.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T13.js
index 806522d57..ef9f1b47f 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T13.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T13.js
@@ -12,12 +12,12 @@ description: String is true and RegExp is /t[a-b|q-s]/
var __executed = /t[a-b|q-s]/.exec(true);
var __expected = ["tr"];
-__expected.index=0;
-__expected.input="true";
+__expected.index = 0;
+__expected.input = "true";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /t[a-b|q-s]/.exec(true); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /t[a-b|q-s]/.exec(true); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) {
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__executed[index] !== __expected[index]) {
$ERROR('#4: __executed = /t[a-b|q-s]/.exec(true); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T14.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T14.js
index f52b8ffb8..ab68f596c 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T14.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T14.js
@@ -12,12 +12,12 @@ description: String is new Boolean and RegExp is /AL|se/
var __executed = /AL|se/.exec(new Boolean);
var __expected = ["se"];
-__expected.index=3;
-__expected.input="false";
+__expected.index = 3;
+__expected.input = "false";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /AL|se/.exec(new Boolean); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /AL|se/.exec(new Boolean); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) {
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__executed[index] !== __expected[index]) {
$ERROR('#4: __executed = /AL|se/.exec(new Boolean); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T15.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T15.js
index 8a19ebf50..d9cd5c4af 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T15.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T15.js
@@ -9,15 +9,19 @@ es5id: 15.10.6.2_A1_T15
description: "String is {toString:function(){return false;}} and RegExp is /LS/i"
---*/
-var __executed = /LS/i.exec({toString:function(){return false}});
+var __executed = /LS/i.exec({
+ toString: function() {
+ return false
+ }
+});
var __expected = ["ls"];
-__expected.index=2;
-__expected.input="false";
+__expected.index = 2;
+__expected.input = "false";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /LS/i.exec({toString:function(){return false}}); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /LS/i.exec({toString:function(){return false}}); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +40,7 @@ if (__executed.input !== __expected.input) {
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__executed[index] !== __expected[index]) {
$ERROR('#4: __executed = /LS/i.exec({toString:function(){return false}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T16.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T16.js
index a0a229e5f..371f41238 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T16.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T16.js
@@ -11,5 +11,5 @@ description: RegExp is /undefined/ and call exec() without arguments
var __re = /undefined/.exec()[0];
if (__re !== "undefined") {
- $ERROR('#1: /undefined/.exec()[0] === "undefined". Actual: ' + (__re));
+ $ERROR('#1: /undefined/.exec()[0] === "undefined". Actual: ' + (__re));
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T17.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T17.js
index b8b290bc3..6b2c1501e 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T17.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T17.js
@@ -12,12 +12,12 @@ description: String is null and RegExp is /ll|l/
var __executed = /ll|l/.exec(null);
var __expected = ["ll"];
-__expected.index=2;
-__expected.input="null";
+__expected.index = 2;
+__expected.input = "null";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /ll|l/.exec(null); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /ll|l/.exec(null); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) {
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__executed[index] !== __expected[index]) {
$ERROR('#4: __executed = /ll|l/.exec(null); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T18.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T18.js
index 5095f634c..bcee432f1 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T18.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T18.js
@@ -12,12 +12,12 @@ description: String is undefined and RegExp is /nd|ne/
var __executed = /nd|ne/.exec(undefined);
var __expected = ["nd"];
-__expected.index=1;
-__expected.input="undefined";
+__expected.index = 1;
+__expected.input = "undefined";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /nd|ne/.exec(undefined); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /nd|ne/.exec(undefined); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) {
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__executed[index] !== __expected[index]) {
$ERROR('#4: __executed = /nd|ne/.exec(undefined); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T19.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T19.js
index e5d74add5..e56a3b0e9 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T19.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T19.js
@@ -12,12 +12,12 @@ description: String is void 0 and RegExp is /e{1}/
var __executed = /e{1}/.exec(void 0);
var __expected = ["e"];
-__expected.index=3;
-__expected.input="undefined";
+__expected.index = 3;
+__expected.input = "undefined";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /e{1}/.exec(void 0); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /e{1}/.exec(void 0); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) {
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__executed[index] !== __expected[index]) {
$ERROR('#4: __executed = /e{1}/.exec(void 0); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T2.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T2.js
index 38f3be48b..3823541a1 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T2.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T2.js
@@ -13,12 +13,12 @@ var __re = /((1)|(12))((3)|(23))/;
var __executed = __re.exec(new String("123"));
var __expected = ["123", "1", "1", undefined, "23", undefined, "23"];
-__expected.index=0;
-__expected.input="123";
+__expected.index = 0;
+__expected.input = "123";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __re = /((1)|(12))((3)|(23))/; __executed = __re.exec(new String("123"));} (__executed instanceof Array) === true');
+ $ERROR('#0: __re = /((1)|(12))((3)|(23))/; __executed = __re.exec(new String("123"));} (__executed instanceof Array) === true');
}
//CHECK#1
@@ -37,7 +37,7 @@ if (__executed.input !== __expected.input) {
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__executed[index] !== __expected[index]) {
$ERROR('#4: __re = /((1)|(12))((3)|(23))/; __executed = __re.exec(new String("123"));} __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T20.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T20.js
index b6bbf42f9..245fd746e 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T20.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T20.js
@@ -12,12 +12,12 @@ description: String is x and RegExp is /[a-f]d/, where x is undefined variable
var __executed = /[a-f]d/.exec(x);
var __expected = ["ed"];
-__expected.index=7;
-__expected.input="undefined";
+__expected.index = 7;
+__expected.input = "undefined";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /[a-f]d/.exec(x); var x; (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /[a-f]d/.exec(x); var x; (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) {
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__executed[index] !== __expected[index]) {
$ERROR('#4: __executed = /[a-f]d/.exec(x); var x; __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T21.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T21.js
index ad8205338..d6499080c 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T21.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T21.js
@@ -9,15 +9,15 @@ es5id: 15.10.6.2_A1_T21
description: String is function(){}() and RegExp is /[a-z]n/
---*/
-var __executed = /[a-z]n/.exec(function(){}());
+var __executed = /[a-z]n/.exec(function() {}());
var __expected = ["un"];
-__expected.index=0;
-__expected.input="undefined";
+__expected.index = 0;
+__expected.input = "undefined";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /[a-z]n/.exec(function(){}()); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /[a-z]n/.exec(function(){}()); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) {
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__executed[index] !== __expected[index]) {
$ERROR('#4: __executed = /[a-z]n/.exec(function(){}()); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T3.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T3.js
index f65da3263..d0de1daf6 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T3.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T3.js
@@ -12,12 +12,12 @@ description: String is new Object("abcdefghi") and RegExp is /a[a-z]{2,4}/
var __executed = /a[a-z]{2,4}/.exec(new Object("abcdefghi"));
var __expected = ["abcde"];
-__expected.index=0;
-__expected.input="abcdefghi";
+__expected.index = 0;
+__expected.input = "abcdefghi";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /a[a-z]{2,4}/.exec(new Object("abcdefghi")); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /a[a-z]{2,4}/.exec(new Object("abcdefghi")); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) {
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__executed[index] !== __expected[index]) {
$ERROR('#4: __executed = /a[a-z]{2,4}/.exec(new Object("abcdefghi")); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js
index e5ecd573a..580ced07a 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js
@@ -11,15 +11,19 @@ description: >
/a[a-z]{2,4}?/
---*/
-var __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}});
+var __executed = /a[a-z]{2,4}?/.exec({
+ toString: function() {
+ return "abcdefghi"
+ }
+});
var __expected = ["abc"];
-__expected.index=0;
-__expected.input="abcdefghi";
+__expected.index = 0;
+__expected.input = "abcdefghi";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -38,7 +42,7 @@ if (__executed.input !== __expected.input) {
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__executed[index] !== __expected[index]) {
$ERROR('#4: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js
index 2bb8b42d5..c0344cfa2 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js
@@ -12,15 +12,22 @@ description: >
/(aa|aabaac|ba|b|c)* /
---*/
-var __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}});
+var __executed = /(aa|aabaac|ba|b|c)*/.exec({
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ return "aabaac";
+ }
+});
var __expected = ["aaba", "ba"];
-__expected.index=0;
-__expected.input="aabaac";
+__expected.index = 0;
+__expected.input = "aabaac";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -39,7 +46,7 @@ if (__executed.input !== __expected.input) {
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__executed[index] !== __expected[index]) {
$ERROR('#4: __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js
index e80bc22ba..56ab7b92e 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js
@@ -11,15 +11,17 @@ description: >
/(z)((a+)?(b+)?(c))* /
---*/
-var __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})());
+var __executed = /(z)((a+)?(b+)?(c))*/.exec((function() {
+ return "zaacbbbcac"
+})());
var __expected = ["zaacbbbcac", "z", "ac", "a", undefined, "c"];
-__expected.index=0;
-__expected.input="zaacbbbcac";
+__expected.index = 0;
+__expected.input = "zaacbbbcac";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -38,7 +40,7 @@ if (__executed.input !== __expected.input) {
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__executed[index] !== __expected[index]) {
$ERROR('#4: __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js
index 27e416f17..ba3a84f04 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js
@@ -13,9 +13,13 @@ description: >
//CHECK#1
try {
- $ERROR('#1.1: /[a-z]/.exec({toString:function(){throw "intostr"}}) throw "intostr". Actual: ' + (/[a-z]/.exec({toString:function(){throw "intostr"}})));
+ $ERROR('#1.1: /[a-z]/.exec({toString:function(){throw "intostr"}}) throw "intostr". Actual: ' + (/[a-z]/.exec({
+ toString: function() {
+ throw "intostr"
+ }
+ })));
} catch (e) {
- if (e !== "intostr") {
- $ERROR('#1.2: /[a-z]/.exec({toString:function(){throw "intostr"}}) throw "intostr". Actual: ' + (e));
- }
+ if (e !== "intostr") {
+ $ERROR('#1.2: /[a-z]/.exec({toString:function(){throw "intostr"}}) throw "intostr". Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js
index ee0dad0cd..dbea95b38 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js
@@ -13,7 +13,12 @@ description: >
//CHECK#1
try {
- $ERROR('#1.1: /[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}) throw "invalof". Actual: ' + (/[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}})));
+ $ERROR('#1.1: /[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}) throw "invalof". Actual: ' + (/[a-z]/.exec({
+ toString: void 0,
+ valueOf: function() {
+ throw "invalof"
+ }
+ })));
} catch (e) {
if (e !== "invalof") {
$ERROR('#1.2: /[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}) throw "invalof". Actual: ' + (e));
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js
index 2fe4adc12..60704445a 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js
@@ -14,7 +14,7 @@ var __string;
//CHECK#1
var __re = /1|12/;
if (__re.exec(__string) !== null) {
- $ERROR('#1: var __string; /1|12/.exec(__string) === null; function __string(){}. Actual: ' + (__re));
+ $ERROR('#1: var __string; /1|12/.exec(__string) === null; function __string(){}. Actual: ' + (__re));
}
-function __string(){};
+function __string() {};
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T1.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T1.js
index da9044c91..0bea5bf1b 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T1.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T1.js
@@ -15,9 +15,9 @@ __instance.exec = RegExp.prototype.exec;
//CHECK#1
try {
- $ERROR('#1.1: __instance = new Object; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
+ $ERROR('#1.1: __instance = new Object; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
} catch (e) {
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: __instance = new Object; __instance.exec = RegExp.prototype.exec. Actual: ' + (e));
- }
+ if ((e instanceof TypeError) !== true) {
+ $ERROR('#1.2: __instance = new Object; __instance.exec = RegExp.prototype.exec. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T10.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T10.js
index d76e16ca9..61b203f0f 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T10.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T10.js
@@ -13,9 +13,9 @@ var exec = RegExp.prototype.exec;
//CHECK#1
try {
- $ERROR('#1.1: exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (exec("message to investigate")));
+ $ERROR('#1.1: exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (exec("message to investigate")));
} catch (e) {
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e));
- }
+ if ((e instanceof TypeError) !== true) {
+ $ERROR('#1.2: exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T2.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T2.js
index 461f4dafe..8a1d3bf5b 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T2.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T2.js
@@ -16,9 +16,9 @@ __instance.exec = RegExp.prototype.exec;
//CHECK#1
try {
__instance.exec("message to investigate");
- $ERROR('#1.1: __instance = Math; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate")');
+ $ERROR('#1.1: __instance = Math; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate")');
} catch (e) {
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: __instance = Math; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e));
- }
+ if ((e instanceof TypeError) !== true) {
+ $ERROR('#1.2: __instance = Math; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T3.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T3.js
index ae0fefba1..b7cbc10ff 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T3.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T3.js
@@ -14,11 +14,11 @@ __instance.exec = RegExp.prototype.exec;
//CHECK#1
try {
__instance.exec("message to investigate");
- $ERROR('#1.1: __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"); function __instance(){}');
+ $ERROR('#1.1: __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"); function __instance(){}');
} catch (e) {
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"); function __instance(){}. Actual: ' + (e));
- }
+ if ((e instanceof TypeError) !== true) {
+ $ERROR('#1.2: __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"); function __instance(){}. Actual: ' + (e));
+ }
}
-function __instance(){};
+function __instance() {};
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js
index 8cd33f8c3..c71ddfcd8 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js
@@ -14,10 +14,10 @@ var __instance = new String("[a-b]");
__instance.exec = RegExp.prototype.exec;
//CHECK#1
- try {
- $ERROR('#1.1: __instance = new String("[a-b]"); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
- } catch (e) {
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: __instance = new String("[a-b]"); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e));
- }
- }
+try {
+ $ERROR('#1.1: __instance = new String("[a-b]"); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
+} catch (e) {
+ if ((e instanceof TypeError) !== true) {
+ $ERROR('#1.2: __instance = new String("[a-b]"); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e));
+ }
+}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js
index 146eeacf4..1b75152ed 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js
@@ -14,10 +14,10 @@ var __instance = new Boolean(false);
__instance.exec = RegExp.prototype.exec;
//CHECK#1
- try {
- $ERROR('#1.1: __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
- } catch (e) {
- if ((e instanceof TypeError !== true)) {
- $ERROR('#1.2: __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e));
- }
+try {
+ $ERROR('#1.1: __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
+} catch (e) {
+ if ((e instanceof TypeError !== true)) {
+ $ERROR('#1.2: __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e));
}
+}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T6.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T6.js
index 5c2fa4f00..8238d3f8d 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T6.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T6.js
@@ -15,9 +15,9 @@ __instance.exec = RegExp.prototype.exec;
//CHECK#1
try {
- $ERROR('#1.1: __instance = new Number(1.0); __instance.exec = RegExp.prototype.exec; __instance["exec"]("message to investigate"). Actual: ' + (__instance["exec"]("message to investigate")));
+ $ERROR('#1.1: __instance = new Number(1.0); __instance.exec = RegExp.prototype.exec; __instance["exec"]("message to investigate"). Actual: ' + (__instance["exec"]("message to investigate")));
} catch (e) {
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: __instance = new Number(1.0); __instance.exec = RegExp.prototype.exec; __instance["exec"]("message to investigate"). Actual: ' + (e));
- }
+ if ((e instanceof TypeError) !== true) {
+ $ERROR('#1.2: __instance = new Number(1.0); __instance.exec = RegExp.prototype.exec; __instance["exec"]("message to investigate"). Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T7.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T7.js
index 7c0a55e09..6d19fc062 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T7.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T7.js
@@ -15,9 +15,9 @@ Object.prototype.exec = RegExp.prototype.exec;
//CHECK#1
try {
- $ERROR('#1.1: __instance = false; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
+ $ERROR('#1.1: __instance = false; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
} catch (e) {
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: __instance = false; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e));
- }
+ if ((e instanceof TypeError) !== true) {
+ $ERROR('#1.2: __instance = false; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T8.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T8.js
index 8c31afbbf..bc35c777a 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T8.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T8.js
@@ -15,9 +15,9 @@ Object.prototype.exec = RegExp.prototype.exec;
//CHECK#1
try {
- $ERROR('#1.1: __instance = "."; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
+ $ERROR('#1.1: __instance = "."; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
} catch (e) {
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: __instance = "."; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e));
- }
+ if ((e instanceof TypeError) !== true) {
+ $ERROR('#1.2: __instance = "."; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T9.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T9.js
index f71557bf6..5ee95865a 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T9.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T9.js
@@ -15,9 +15,9 @@ Object.prototype.exec = RegExp.prototype.exec;
//CHECK#1
try {
- $ERROR('#1.1: __instance = 1.0; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
+ $ERROR('#1.1: __instance = 1.0; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
} catch (e) {
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: __instance = 1.0; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e));
- }
+ if ((e instanceof TypeError) !== true) {
+ $ERROR('#1.2: __instance = 1.0; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T1.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T1.js
index 4052d931a..14ad64b90 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T1.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T1.js
@@ -16,23 +16,23 @@ var __matched = [];
var __expected = ["ab", "cd2", "ab3", "cd"];
-do{
- var __executed = __re.exec("ab cd2 ab34 cd");
- if (__executed !== null) {
- __matched.push(__executed[0]);
- } else {
- break;
- }
-}while(true);
+do {
+ var __executed = __re.exec("ab cd2 ab34 cd");
+ if (__executed !== null) {
+ __matched.push(__executed[0]);
+ } else {
+ break;
+ }
+} while (true);
//CHECK#1
if (__expected.length !== __matched.length) {
- $ERROR('#1: __executed = /(?:ab|cd)\\d?/g.exec("ab cd2 ab34 cd"); __matched.length === ' + (__expected.length) + '.Actual: ' + (__matched.length));
+ $ERROR('#1: __executed = /(?:ab|cd)\\d?/g.exec("ab cd2 ab34 cd"); __matched.length === ' + (__expected.length) + '.Actual: ' + (__matched.length));
}
//CHECK#2
-for(var index=0; index<__expected.length; index++) {
- if (__expected[index] !== __matched[index]) {
- $ERROR('#2: __executed = /(?:ab|cd)\\d?/g.exec("ab cd2 ab34 cd"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__expected[index] !== __matched[index]) {
+ $ERROR('#2: __executed = /(?:ab|cd)\\d?/g.exec("ab cd2 ab34 cd"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T2.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T2.js
index 34a0fe65a..756ec7a45 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T2.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T2.js
@@ -11,144 +11,144 @@ description: RegExp is /[Nn]evermore/g and tested string is very long string
---*/
var __the__raven = " Once upon a midnight dreary, while I pondered weak and weary," +
- "Over many a quaint and curious volume of forgotten lore," +
- "While I nodded, nearly napping, suddenly there came a tapping," +
- "As of some one gently rapping, rapping at my chamber door." +
- "`'Tis some visitor,' I muttered, `tapping at my chamber door -" +
- "Only this, and nothing more.'" +
- "Ah, distinctly I remember it was in the bleak December," +
- "And each separate dying ember wrought its ghost upon the floor." +
- "Eagerly I wished the morrow; - vainly I had sought to borrow" +
- "From my books surcease of sorrow - sorrow for the lost Lenore -" +
- "For the rare and radiant maiden whom the angels named Lenore -" +
- "Nameless here for evermore." +
- "\n" +
- "And the silken sad uncertain rustling of each purple curtain" +
- "Thrilled me - filled me with fantastic terrors never felt before;" +
- "So that now, to still the beating of my heart, I stood repeating" +
- "`'Tis some visitor entreating entrance at my chamber door -" +
- "Some late visitor entreating entrance at my chamber door; -" +
- "This it is, and nothing more,'" +
- "Presently my soul grew stronger; hesitating then no longer," +
- "`Sir,' said I, `or Madam, truly your forgiveness I implore;" +
- "But the fact is I was napping, and so gently you came rapping," +
- "And so faintly you came tapping, tapping at my chamber door," +
- "That I scarce was sure I heard you' - here I opened wide the door; -" +
- "Darkness there, and nothing more." +
- "\n" +
- "Deep into that darkness peering, long I stood there wondering, fearing," +
- "Doubting, dreaming dreams no mortal ever dared to dream before" +
- "But the silence was unbroken, and the darkness gave no token," +
- "And the only word there spoken was the whispered word, `Lenore!'" +
- "This I whispered, and an echo murmured back the word, `Lenore!'" +
- "Merely this and nothing more." +
- "\n" +
- "Back into the chamber turning, all my soul within me burning," +
- "Soon again I heard a tapping somewhat louder than before." +
- "`Surely,' said I, `surely that is something at my window lattice;" +
- "Let me see then, what thereat is, and this mystery explore -" +
- "Let my heart be still a moment and this mystery explore; -" +
- "'Tis the wind and nothing more!'" +
- "\n" +
- "Open here I flung the shutter, when, with many a flirt and flutter," +
- "In there stepped a stately raven of the saintly days of yore." +
- "Not the least obeisance made he; not a minute stopped or stayed he;" +
- "But, with mien of lord or lady, perched above my chamber door -" +
- "Perched upon a bust of Pallas just above my chamber door -" +
- "Perched, and sat, and nothing more." +
- "\n" +
- "Then this ebony bird beguiling my sad fancy into smiling," +
- "By the grave and stern decorum of the countenance it wore," +
- "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." +
- "Ghastly grim and ancient raven wandering from the nightly shore -" +
- "Tell me what thy lordly name is on the Night's Plutonian shore!'" +
- "Quoth the raven, `Nevermore.'" +
- "-n" +
- "Much I marvelled this ungainly fowl to hear discourse so plainly," +
- "Though its answer little meaning - little relevancy bore;" +
- "For we cannot help agreeing that no living human being" +
- "Ever yet was blessed with seeing bird above his chamber door -" +
- "Bird or beast above the sculptured bust above his chamber door," +
- "With such name as `Nevermore.'" +
- "\n" +
- "But the raven, sitting lonely on the placid bust, spoke only," +
- "That one word, as if his soul in that one word he did outpour." +
- "Nothing further then he uttered - not a feather then he fluttered -" +
- "Till I scarcely more than muttered `Other friends have flown before -" +
- "On the morrow he will leave me, as my hopes have flown before.'" +
- "Then the bird said, `Nevermore.'" +
- "\n" +
- "Startled at the stillness broken by reply so aptly spoken," +
- "`Doubtless,' said I, `what it utters is its only stock and store," +
- "Caught from some unhappy master whom unmerciful disaster" +
- "Followed fast and followed faster till his songs one burden bore -" +
- "Till the dirges of his hope that melancholy burden bore" +
- "Of \"Never-nevermore.\"'" +
- "\n" +
- "But the raven still beguiling all my sad soul into smiling," +
- "Straight I wheeled a cushioned seat in front of bird and bust and door;" +
- "Then, upon the velvet sinking, I betook myself to linking" +
- "Fancy unto fancy, thinking what this ominous bird of yore -" +
- "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" +
- "Meant in croaking `Nevermore.'" +
- "\n" +
- "This I sat engaged in guessing, but no syllable expressing" +
- "To the fowl whose fiery eyes now burned into my bosom's core;" +
- "This and more I sat divining, with my head at ease reclining" +
- "On the cushion's velvet lining that the lamp-light gloated o'er," +
- "But whose velvet violet lining with the lamp-light gloating o'er," +
- "She shall press, ah, nevermore!" +
- "\n" +
- "Then, methought, the air grew denser, perfumed from an unseen censer" +
- "Swung by Seraphim whose foot-falls tinkled on the tufted floor." +
- "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" +
- "Respite - respite and nepenthe from thy memories of Lenore!" +
- "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" +
- "Whether tempter sent, or whether tempest tossed thee here ashore," +
- "Desolate yet all undaunted, on this desert land enchanted -" +
- "On this home by horror haunted - tell me truly, I implore -" +
- "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" +
- "By that Heaven that bends above us - by that God we both adore -" +
- "Tell this soul with sorrow laden if, within the distant Aidenn," +
- "It shall clasp a sainted maiden whom the angels named Lenore -" +
- "Clasp a rare and radiant maiden, whom the angels named Lenore?'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" +
- "`Get thee back into the tempest and the Night's Plutonian shore!" +
- "Leave no black plume as a token of that lie thy soul hath spoken!" +
- "Leave my loneliness unbroken! - quit the bust above my door!" +
- "Take thy beak from out my heart, and take thy form from off my door!'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "And the raven, never flitting, still is sitting, still is sitting" +
- "On the pallid bust of Pallas just above my chamber door;" +
- "And his eyes have all the seeming of a demon's that is dreaming," +
- "And the lamp-light o'er him streaming throws his shadow on the floor;" +
- "And my soul from out that shadow that lies floating on the floor" +
- "Shall be lifted - nevermore!"
+ "Over many a quaint and curious volume of forgotten lore," +
+ "While I nodded, nearly napping, suddenly there came a tapping," +
+ "As of some one gently rapping, rapping at my chamber door." +
+ "`'Tis some visitor,' I muttered, `tapping at my chamber door -" +
+ "Only this, and nothing more.'" +
+ "Ah, distinctly I remember it was in the bleak December," +
+ "And each separate dying ember wrought its ghost upon the floor." +
+ "Eagerly I wished the morrow; - vainly I had sought to borrow" +
+ "From my books surcease of sorrow - sorrow for the lost Lenore -" +
+ "For the rare and radiant maiden whom the angels named Lenore -" +
+ "Nameless here for evermore." +
+ "\n" +
+ "And the silken sad uncertain rustling of each purple curtain" +
+ "Thrilled me - filled me with fantastic terrors never felt before;" +
+ "So that now, to still the beating of my heart, I stood repeating" +
+ "`'Tis some visitor entreating entrance at my chamber door -" +
+ "Some late visitor entreating entrance at my chamber door; -" +
+ "This it is, and nothing more,'" +
+ "Presently my soul grew stronger; hesitating then no longer," +
+ "`Sir,' said I, `or Madam, truly your forgiveness I implore;" +
+ "But the fact is I was napping, and so gently you came rapping," +
+ "And so faintly you came tapping, tapping at my chamber door," +
+ "That I scarce was sure I heard you' - here I opened wide the door; -" +
+ "Darkness there, and nothing more." +
+ "\n" +
+ "Deep into that darkness peering, long I stood there wondering, fearing," +
+ "Doubting, dreaming dreams no mortal ever dared to dream before" +
+ "But the silence was unbroken, and the darkness gave no token," +
+ "And the only word there spoken was the whispered word, `Lenore!'" +
+ "This I whispered, and an echo murmured back the word, `Lenore!'" +
+ "Merely this and nothing more." +
+ "\n" +
+ "Back into the chamber turning, all my soul within me burning," +
+ "Soon again I heard a tapping somewhat louder than before." +
+ "`Surely,' said I, `surely that is something at my window lattice;" +
+ "Let me see then, what thereat is, and this mystery explore -" +
+ "Let my heart be still a moment and this mystery explore; -" +
+ "'Tis the wind and nothing more!'" +
+ "\n" +
+ "Open here I flung the shutter, when, with many a flirt and flutter," +
+ "In there stepped a stately raven of the saintly days of yore." +
+ "Not the least obeisance made he; not a minute stopped or stayed he;" +
+ "But, with mien of lord or lady, perched above my chamber door -" +
+ "Perched upon a bust of Pallas just above my chamber door -" +
+ "Perched, and sat, and nothing more." +
+ "\n" +
+ "Then this ebony bird beguiling my sad fancy into smiling," +
+ "By the grave and stern decorum of the countenance it wore," +
+ "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." +
+ "Ghastly grim and ancient raven wandering from the nightly shore -" +
+ "Tell me what thy lordly name is on the Night's Plutonian shore!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "-n" +
+ "Much I marvelled this ungainly fowl to hear discourse so plainly," +
+ "Though its answer little meaning - little relevancy bore;" +
+ "For we cannot help agreeing that no living human being" +
+ "Ever yet was blessed with seeing bird above his chamber door -" +
+ "Bird or beast above the sculptured bust above his chamber door," +
+ "With such name as `Nevermore.'" +
+ "\n" +
+ "But the raven, sitting lonely on the placid bust, spoke only," +
+ "That one word, as if his soul in that one word he did outpour." +
+ "Nothing further then he uttered - not a feather then he fluttered -" +
+ "Till I scarcely more than muttered `Other friends have flown before -" +
+ "On the morrow he will leave me, as my hopes have flown before.'" +
+ "Then the bird said, `Nevermore.'" +
+ "\n" +
+ "Startled at the stillness broken by reply so aptly spoken," +
+ "`Doubtless,' said I, `what it utters is its only stock and store," +
+ "Caught from some unhappy master whom unmerciful disaster" +
+ "Followed fast and followed faster till his songs one burden bore -" +
+ "Till the dirges of his hope that melancholy burden bore" +
+ "Of \"Never-nevermore.\"'" +
+ "\n" +
+ "But the raven still beguiling all my sad soul into smiling," +
+ "Straight I wheeled a cushioned seat in front of bird and bust and door;" +
+ "Then, upon the velvet sinking, I betook myself to linking" +
+ "Fancy unto fancy, thinking what this ominous bird of yore -" +
+ "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" +
+ "Meant in croaking `Nevermore.'" +
+ "\n" +
+ "This I sat engaged in guessing, but no syllable expressing" +
+ "To the fowl whose fiery eyes now burned into my bosom's core;" +
+ "This and more I sat divining, with my head at ease reclining" +
+ "On the cushion's velvet lining that the lamp-light gloated o'er," +
+ "But whose velvet violet lining with the lamp-light gloating o'er," +
+ "She shall press, ah, nevermore!" +
+ "\n" +
+ "Then, methought, the air grew denser, perfumed from an unseen censer" +
+ "Swung by Seraphim whose foot-falls tinkled on the tufted floor." +
+ "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" +
+ "Respite - respite and nepenthe from thy memories of Lenore!" +
+ "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" +
+ "Whether tempter sent, or whether tempest tossed thee here ashore," +
+ "Desolate yet all undaunted, on this desert land enchanted -" +
+ "On this home by horror haunted - tell me truly, I implore -" +
+ "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" +
+ "By that Heaven that bends above us - by that God we both adore -" +
+ "Tell this soul with sorrow laden if, within the distant Aidenn," +
+ "It shall clasp a sainted maiden whom the angels named Lenore -" +
+ "Clasp a rare and radiant maiden, whom the angels named Lenore?'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" +
+ "`Get thee back into the tempest and the Night's Plutonian shore!" +
+ "Leave no black plume as a token of that lie thy soul hath spoken!" +
+ "Leave my loneliness unbroken! - quit the bust above my door!" +
+ "Take thy beak from out my heart, and take thy form from off my door!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "And the raven, never flitting, still is sitting, still is sitting" +
+ "On the pallid bust of Pallas just above my chamber door;" +
+ "And his eyes have all the seeming of a demon's that is dreaming," +
+ "And the lamp-light o'er him streaming throws his shadow on the floor;" +
+ "And my soul from out that shadow that lies floating on the floor" +
+ "Shall be lifted - nevermore!"
+
+var NEVERMORE = 11;
-var NEVERMORE=11;
-
var __re = /[Nn]evermore/g;
-var __matched=0;
+var __matched = 0;
-do{
- var __executed = __re.exec(__the__raven);
- if (__executed !== null) {
- __matched++;
- } else {
- break;
- }
-}while(1);
+do {
+ var __executed = __re.exec(__the__raven);
+ if (__executed !== null) {
+ __matched++;
+ } else {
+ break;
+ }
+} while (1);
//CHECK#1
if (__matched !== NEVERMORE) {
- $ERROR('#1: __re = /[Nn]evermore/g; __executed = __re.exec(__the__raven)'+__matched);
+ $ERROR('#1: __re = /[Nn]evermore/g; __executed = __re.exec(__the__raven)' + __matched);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js
index 8afc2f5a5..52f8f6ff8 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js
@@ -11,144 +11,144 @@ description: RegExp is /[Nn]?evermore/g and tested string is very long string
---*/
var __the__raven = " Once upon a midnight dreary, while I pondered weak and weary," +
- "Over many a quaint and curious volume of forgotten lore," +
- "While I nodded, nearly napping, suddenly there came a tapping," +
- "As of some one gently rapping, rapping at my chamber door." +
- "`'Tis some visitor,' I muttered, `tapping at my chamber door -" +
- "Only this, and nothing more.'" +
- "Ah, distinctly I remember it was in the bleak December," +
- "And each separate dying ember wrought its ghost upon the floor." +
- "Eagerly I wished the morrow; - vainly I had sought to borrow" +
- "From my books surcease of sorrow - sorrow for the lost Lenore -" +
- "For the rare and radiant maiden whom the angels named Lenore -" +
- "Nameless here for evermore." +
- "\n" +
- "And the silken sad uncertain rustling of each purple curtain" +
- "Thrilled me - filled me with fantastic terrors never felt before;" +
- "So that now, to still the beating of my heart, I stood repeating" +
- "`'Tis some visitor entreating entrance at my chamber door -" +
- "Some late visitor entreating entrance at my chamber door; -" +
- "This it is, and nothing more,'" +
- "Presently my soul grew stronger; hesitating then no longer," +
- "`Sir,' said I, `or Madam, truly your forgiveness I implore;" +
- "But the fact is I was napping, and so gently you came rapping," +
- "And so faintly you came tapping, tapping at my chamber door," +
- "That I scarce was sure I heard you' - here I opened wide the door; -" +
- "Darkness there, and nothing more." +
- "\n" +
- "Deep into that darkness peering, long I stood there wondering, fearing," +
- "Doubting, dreaming dreams no mortal ever dared to dream before" +
- "But the silence was unbroken, and the darkness gave no token," +
- "And the only word there spoken was the whispered word, `Lenore!'" +
- "This I whispered, and an echo murmured back the word, `Lenore!'" +
- "Merely this and nothing more." +
- "\n" +
- "Back into the chamber turning, all my soul within me burning," +
- "Soon again I heard a tapping somewhat louder than before." +
- "`Surely,' said I, `surely that is something at my window lattice;" +
- "Let me see then, what thereat is, and this mystery explore -" +
- "Let my heart be still a moment and this mystery explore; -" +
- "'Tis the wind and nothing more!'" +
- "\n" +
- "Open here I flung the shutter, when, with many a flirt and flutter," +
- "In there stepped a stately raven of the saintly days of yore." +
- "Not the least obeisance made he; not a minute stopped or stayed he;" +
- "But, with mien of lord or lady, perched above my chamber door -" +
- "Perched upon a bust of Pallas just above my chamber door -" +
- "Perched, and sat, and nothing more." +
- "\n" +
- "Then this ebony bird beguiling my sad fancy into smiling," +
- "By the grave and stern decorum of the countenance it wore," +
- "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." +
- "Ghastly grim and ancient raven wandering from the nightly shore -" +
- "Tell me what thy lordly name is on the Night's Plutonian shore!'" +
- "Quoth the raven, `Nevermore.'" +
- "-n" +
- "Much I marvelled this ungainly fowl to hear discourse so plainly," +
- "Though its answer little meaning - little relevancy bore;" +
- "For we cannot help agreeing that no living human being" +
- "Ever yet was blessed with seeing bird above his chamber door -" +
- "Bird or beast above the sculptured bust above his chamber door," +
- "With such name as `Nevermore.'" +
- "\n" +
- "But the raven, sitting lonely on the placid bust, spoke only," +
- "That one word, as if his soul in that one word he did outpour." +
- "Nothing further then he uttered - not a feather then he fluttered -" +
- "Till I scarcely more than muttered `Other friends have flown before -" +
- "On the morrow he will leave me, as my hopes have flown before.'" +
- "Then the bird said, `Nevermore.'" +
- "\n" +
- "Startled at the stillness broken by reply so aptly spoken," +
- "`Doubtless,' said I, `what it utters is its only stock and store," +
- "Caught from some unhappy master whom unmerciful disaster" +
- "Followed fast and followed faster till his songs one burden bore -" +
- "Till the dirges of his hope that melancholy burden bore" +
- "Of \"Never-nevermore.\"'" +
- "\n" +
- "But the raven still beguiling all my sad soul into smiling," +
- "Straight I wheeled a cushioned seat in front of bird and bust and door;" +
- "Then, upon the velvet sinking, I betook myself to linking" +
- "Fancy unto fancy, thinking what this ominous bird of yore -" +
- "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" +
- "Meant in croaking `Nevermore.'" +
- "\n" +
- "This I sat engaged in guessing, but no syllable expressing" +
- "To the fowl whose fiery eyes now burned into my bosom's core;" +
- "This and more I sat divining, with my head at ease reclining" +
- "On the cushion's velvet lining that the lamp-light gloated o'er," +
- "But whose velvet violet lining with the lamp-light gloating o'er," +
- "She shall press, ah, nevermore!" +
- "\n" +
- "Then, methought, the air grew denser, perfumed from an unseen censer" +
- "Swung by Seraphim whose foot-falls tinkled on the tufted floor." +
- "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" +
- "Respite - respite and nepenthe from thy memories of Lenore!" +
- "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" +
- "Whether tempter sent, or whether tempest tossed thee here ashore," +
- "Desolate yet all undaunted, on this desert land enchanted -" +
- "On this home by horror haunted - tell me truly, I implore -" +
- "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" +
- "By that Heaven that bends above us - by that God we both adore -" +
- "Tell this soul with sorrow laden if, within the distant Aidenn," +
- "It shall clasp a sainted maiden whom the angels named Lenore -" +
- "Clasp a rare and radiant maiden, whom the angels named Lenore?'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" +
- "`Get thee back into the tempest and the Night's Plutonian shore!" +
- "Leave no black plume as a token of that lie thy soul hath spoken!" +
- "Leave my loneliness unbroken! - quit the bust above my door!" +
- "Take thy beak from out my heart, and take thy form from off my door!'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "And the raven, never flitting, still is sitting, still is sitting" +
- "On the pallid bust of Pallas just above my chamber door;" +
- "And his eyes have all the seeming of a demon's that is dreaming," +
- "And the lamp-light o'er him streaming throws his shadow on the floor;" +
- "And my soul from out that shadow that lies floating on the floor" +
- "Shall be lifted - nevermore!"
+ "Over many a quaint and curious volume of forgotten lore," +
+ "While I nodded, nearly napping, suddenly there came a tapping," +
+ "As of some one gently rapping, rapping at my chamber door." +
+ "`'Tis some visitor,' I muttered, `tapping at my chamber door -" +
+ "Only this, and nothing more.'" +
+ "Ah, distinctly I remember it was in the bleak December," +
+ "And each separate dying ember wrought its ghost upon the floor." +
+ "Eagerly I wished the morrow; - vainly I had sought to borrow" +
+ "From my books surcease of sorrow - sorrow for the lost Lenore -" +
+ "For the rare and radiant maiden whom the angels named Lenore -" +
+ "Nameless here for evermore." +
+ "\n" +
+ "And the silken sad uncertain rustling of each purple curtain" +
+ "Thrilled me - filled me with fantastic terrors never felt before;" +
+ "So that now, to still the beating of my heart, I stood repeating" +
+ "`'Tis some visitor entreating entrance at my chamber door -" +
+ "Some late visitor entreating entrance at my chamber door; -" +
+ "This it is, and nothing more,'" +
+ "Presently my soul grew stronger; hesitating then no longer," +
+ "`Sir,' said I, `or Madam, truly your forgiveness I implore;" +
+ "But the fact is I was napping, and so gently you came rapping," +
+ "And so faintly you came tapping, tapping at my chamber door," +
+ "That I scarce was sure I heard you' - here I opened wide the door; -" +
+ "Darkness there, and nothing more." +
+ "\n" +
+ "Deep into that darkness peering, long I stood there wondering, fearing," +
+ "Doubting, dreaming dreams no mortal ever dared to dream before" +
+ "But the silence was unbroken, and the darkness gave no token," +
+ "And the only word there spoken was the whispered word, `Lenore!'" +
+ "This I whispered, and an echo murmured back the word, `Lenore!'" +
+ "Merely this and nothing more." +
+ "\n" +
+ "Back into the chamber turning, all my soul within me burning," +
+ "Soon again I heard a tapping somewhat louder than before." +
+ "`Surely,' said I, `surely that is something at my window lattice;" +
+ "Let me see then, what thereat is, and this mystery explore -" +
+ "Let my heart be still a moment and this mystery explore; -" +
+ "'Tis the wind and nothing more!'" +
+ "\n" +
+ "Open here I flung the shutter, when, with many a flirt and flutter," +
+ "In there stepped a stately raven of the saintly days of yore." +
+ "Not the least obeisance made he; not a minute stopped or stayed he;" +
+ "But, with mien of lord or lady, perched above my chamber door -" +
+ "Perched upon a bust of Pallas just above my chamber door -" +
+ "Perched, and sat, and nothing more." +
+ "\n" +
+ "Then this ebony bird beguiling my sad fancy into smiling," +
+ "By the grave and stern decorum of the countenance it wore," +
+ "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." +
+ "Ghastly grim and ancient raven wandering from the nightly shore -" +
+ "Tell me what thy lordly name is on the Night's Plutonian shore!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "-n" +
+ "Much I marvelled this ungainly fowl to hear discourse so plainly," +
+ "Though its answer little meaning - little relevancy bore;" +
+ "For we cannot help agreeing that no living human being" +
+ "Ever yet was blessed with seeing bird above his chamber door -" +
+ "Bird or beast above the sculptured bust above his chamber door," +
+ "With such name as `Nevermore.'" +
+ "\n" +
+ "But the raven, sitting lonely on the placid bust, spoke only," +
+ "That one word, as if his soul in that one word he did outpour." +
+ "Nothing further then he uttered - not a feather then he fluttered -" +
+ "Till I scarcely more than muttered `Other friends have flown before -" +
+ "On the morrow he will leave me, as my hopes have flown before.'" +
+ "Then the bird said, `Nevermore.'" +
+ "\n" +
+ "Startled at the stillness broken by reply so aptly spoken," +
+ "`Doubtless,' said I, `what it utters is its only stock and store," +
+ "Caught from some unhappy master whom unmerciful disaster" +
+ "Followed fast and followed faster till his songs one burden bore -" +
+ "Till the dirges of his hope that melancholy burden bore" +
+ "Of \"Never-nevermore.\"'" +
+ "\n" +
+ "But the raven still beguiling all my sad soul into smiling," +
+ "Straight I wheeled a cushioned seat in front of bird and bust and door;" +
+ "Then, upon the velvet sinking, I betook myself to linking" +
+ "Fancy unto fancy, thinking what this ominous bird of yore -" +
+ "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" +
+ "Meant in croaking `Nevermore.'" +
+ "\n" +
+ "This I sat engaged in guessing, but no syllable expressing" +
+ "To the fowl whose fiery eyes now burned into my bosom's core;" +
+ "This and more I sat divining, with my head at ease reclining" +
+ "On the cushion's velvet lining that the lamp-light gloated o'er," +
+ "But whose velvet violet lining with the lamp-light gloating o'er," +
+ "She shall press, ah, nevermore!" +
+ "\n" +
+ "Then, methought, the air grew denser, perfumed from an unseen censer" +
+ "Swung by Seraphim whose foot-falls tinkled on the tufted floor." +
+ "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" +
+ "Respite - respite and nepenthe from thy memories of Lenore!" +
+ "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" +
+ "Whether tempter sent, or whether tempest tossed thee here ashore," +
+ "Desolate yet all undaunted, on this desert land enchanted -" +
+ "On this home by horror haunted - tell me truly, I implore -" +
+ "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" +
+ "By that Heaven that bends above us - by that God we both adore -" +
+ "Tell this soul with sorrow laden if, within the distant Aidenn," +
+ "It shall clasp a sainted maiden whom the angels named Lenore -" +
+ "Clasp a rare and radiant maiden, whom the angels named Lenore?'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" +
+ "`Get thee back into the tempest and the Night's Plutonian shore!" +
+ "Leave no black plume as a token of that lie thy soul hath spoken!" +
+ "Leave my loneliness unbroken! - quit the bust above my door!" +
+ "Take thy beak from out my heart, and take thy form from off my door!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "And the raven, never flitting, still is sitting, still is sitting" +
+ "On the pallid bust of Pallas just above my chamber door;" +
+ "And his eyes have all the seeming of a demon's that is dreaming," +
+ "And the lamp-light o'er him streaming throws his shadow on the floor;" +
+ "And my soul from out that shadow that lies floating on the floor" +
+ "Shall be lifted - nevermore!"
+
+var NEVERMORE_AND_EVERMORE = 12;
-var NEVERMORE_AND_EVERMORE=12;
-
var __re = /[Nn]?evermore/g;
-var __matched=0;
+var __matched = 0;
-do{
- var __executed = __re.exec(__the__raven);
- if (__executed !== null) {
- __matched++;
- } else {
- break;
- }
-}while(1);
+do {
+ var __executed = __re.exec(__the__raven);
+ if (__executed !== null) {
+ __matched++;
+ } else {
+ break;
+ }
+} while (1);
//CHECK#1
if (__matched !== NEVERMORE_AND_EVERMORE) {
- $ERROR('#1: __re = /[Nn]?evermore/g; __executed = __re.exec(__the__raven)'+__matched);
+ $ERROR('#1: __re = /[Nn]?evermore/g; __executed = __re.exec(__the__raven)' + __matched);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js
index 278549a27..b652749b6 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js
@@ -13,144 +13,144 @@ description: >
---*/
var __the__raven = " Once upon a midnight dreary, while I pondered weak and weary," +
- "Over many a quaint and curious volume of forgotten lore," +
- "While I nodded, nearly napping, suddenly there came a tapping," +
- "As of some one gently rapping, rapping at my chamber door." +
- "`'Tis some visitor,' I muttered, `tapping at my chamber door -" +
- "Only this, and nothing more.'" +
- "Ah, distinctly I remember it was in the bleak December," +
- "And each separate dying ember wrought its ghost upon the floor." +
- "Eagerly I wished the morrow; - vainly I had sought to borrow" +
- "From my books surcease of sorrow - sorrow for the lost Lenore -" +
- "For the rare and radiant maiden whom the angels named Lenore -" +
- "Nameless here for evermore." +
- "\n" +
- "And the silken sad uncertain rustling of each purple curtain" +
- "Thrilled me - filled me with fantastic terrors never felt before;" +
- "So that now, to still the beating of my heart, I stood repeating" +
- "`'Tis some visitor entreating entrance at my chamber door -" +
- "Some late visitor entreating entrance at my chamber door; -" +
- "This it is, and nothing more,'" +
- "Presently my soul grew stronger; hesitating then no longer," +
- "`Sir,' said I, `or Madam, truly your forgiveness I implore;" +
- "But the fact is I was napping, and so gently you came rapping," +
- "And so faintly you came tapping, tapping at my chamber door," +
- "That I scarce was sure I heard you' - here I opened wide the door; -" +
- "Darkness there, and nothing more." +
- "\n" +
- "Deep into that darkness peering, long I stood there wondering, fearing," +
- "Doubting, dreaming dreams no mortal ever dared to dream before" +
- "But the silence was unbroken, and the darkness gave no token," +
- "And the only word there spoken was the whispered word, `Lenore!'" +
- "This I whispered, and an echo murmured back the word, `Lenore!'" +
- "Merely this and nothing more." +
- "\n" +
- "Back into the chamber turning, all my soul within me burning," +
- "Soon again I heard a tapping somewhat louder than before." +
- "`Surely,' said I, `surely that is something at my window lattice;" +
- "Let me see then, what thereat is, and this mystery explore -" +
- "Let my heart be still a moment and this mystery explore; -" +
- "'Tis the wind and nothing more!'" +
- "\n" +
- "Open here I flung the shutter, when, with many a flirt and flutter," +
- "In there stepped a stately raven of the saintly days of yore." +
- "Not the least obeisance made he; not a minute stopped or stayed he;" +
- "But, with mien of lord or lady, perched above my chamber door -" +
- "Perched upon a bust of Pallas just above my chamber door -" +
- "Perched, and sat, and nothing more." +
- "\n" +
- "Then this ebony bird beguiling my sad fancy into smiling," +
- "By the grave and stern decorum of the countenance it wore," +
- "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." +
- "Ghastly grim and ancient raven wandering from the nightly shore -" +
- "Tell me what thy lordly name is on the Night's Plutonian shore!'" +
- "Quoth the raven, `Nevermore.'" +
- "-n" +
- "Much I marvelled this ungainly fowl to hear discourse so plainly," +
- "Though its answer little meaning - little relevancy bore;" +
- "For we cannot help agreeing that no living human being" +
- "Ever yet was blessed with seeing bird above his chamber door -" +
- "Bird or beast above the sculptured bust above his chamber door," +
- "With such name as `Nevermore.'" +
- "\n" +
- "But the raven, sitting lonely on the placid bust, spoke only," +
- "That one word, as if his soul in that one word he did outpour." +
- "Nothing further then he uttered - not a feather then he fluttered -" +
- "Till I scarcely more than muttered `Other friends have flown before -" +
- "On the morrow he will leave me, as my hopes have flown before.'" +
- "Then the bird said, `Nevermore.'" +
- "\n" +
- "Startled at the stillness broken by reply so aptly spoken," +
- "`Doubtless,' said I, `what it utters is its only stock and store," +
- "Caught from some unhappy master whom unmerciful disaster" +
- "Followed fast and followed faster till his songs one burden bore -" +
- "Till the dirges of his hope that melancholy burden bore" +
- "Of \"Never-nevermore.\"'" +
- "\n" +
- "But the raven still beguiling all my sad soul into smiling," +
- "Straight I wheeled a cushioned seat in front of bird and bust and door;" +
- "Then, upon the velvet sinking, I betook myself to linking" +
- "Fancy unto fancy, thinking what this ominous bird of yore -" +
- "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" +
- "Meant in croaking `Nevermore.'" +
- "\n" +
- "This I sat engaged in guessing, but no syllable expressing" +
- "To the fowl whose fiery eyes now burned into my bosom's core;" +
- "This and more I sat divining, with my head at ease reclining" +
- "On the cushion's velvet lining that the lamp-light gloated o'er," +
- "But whose velvet violet lining with the lamp-light gloating o'er," +
- "She shall press, ah, nevermore!" +
- "\n" +
- "Then, methought, the air grew denser, perfumed from an unseen censer" +
- "Swung by Seraphim whose foot-falls tinkled on the tufted floor." +
- "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" +
- "Respite - respite and nepenthe from thy memories of Lenore!" +
- "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" +
- "Whether tempter sent, or whether tempest tossed thee here ashore," +
- "Desolate yet all undaunted, on this desert land enchanted -" +
- "On this home by horror haunted - tell me truly, I implore -" +
- "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" +
- "By that Heaven that bends above us - by that God we both adore -" +
- "Tell this soul with sorrow laden if, within the distant Aidenn," +
- "It shall clasp a sainted maiden whom the angels named Lenore -" +
- "Clasp a rare and radiant maiden, whom the angels named Lenore?'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" +
- "`Get thee back into the tempest and the Night's Plutonian shore!" +
- "Leave no black plume as a token of that lie thy soul hath spoken!" +
- "Leave my loneliness unbroken! - quit the bust above my door!" +
- "Take thy beak from out my heart, and take thy form from off my door!'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "And the raven, never flitting, still is sitting, still is sitting" +
- "On the pallid bust of Pallas just above my chamber door;" +
- "And his eyes have all the seeming of a demon's that is dreaming," +
- "And the lamp-light o'er him streaming throws his shadow on the floor;" +
- "And my soul from out that shadow that lies floating on the floor" +
- "Shall be lifted - nevermore!"
+ "Over many a quaint and curious volume of forgotten lore," +
+ "While I nodded, nearly napping, suddenly there came a tapping," +
+ "As of some one gently rapping, rapping at my chamber door." +
+ "`'Tis some visitor,' I muttered, `tapping at my chamber door -" +
+ "Only this, and nothing more.'" +
+ "Ah, distinctly I remember it was in the bleak December," +
+ "And each separate dying ember wrought its ghost upon the floor." +
+ "Eagerly I wished the morrow; - vainly I had sought to borrow" +
+ "From my books surcease of sorrow - sorrow for the lost Lenore -" +
+ "For the rare and radiant maiden whom the angels named Lenore -" +
+ "Nameless here for evermore." +
+ "\n" +
+ "And the silken sad uncertain rustling of each purple curtain" +
+ "Thrilled me - filled me with fantastic terrors never felt before;" +
+ "So that now, to still the beating of my heart, I stood repeating" +
+ "`'Tis some visitor entreating entrance at my chamber door -" +
+ "Some late visitor entreating entrance at my chamber door; -" +
+ "This it is, and nothing more,'" +
+ "Presently my soul grew stronger; hesitating then no longer," +
+ "`Sir,' said I, `or Madam, truly your forgiveness I implore;" +
+ "But the fact is I was napping, and so gently you came rapping," +
+ "And so faintly you came tapping, tapping at my chamber door," +
+ "That I scarce was sure I heard you' - here I opened wide the door; -" +
+ "Darkness there, and nothing more." +
+ "\n" +
+ "Deep into that darkness peering, long I stood there wondering, fearing," +
+ "Doubting, dreaming dreams no mortal ever dared to dream before" +
+ "But the silence was unbroken, and the darkness gave no token," +
+ "And the only word there spoken was the whispered word, `Lenore!'" +
+ "This I whispered, and an echo murmured back the word, `Lenore!'" +
+ "Merely this and nothing more." +
+ "\n" +
+ "Back into the chamber turning, all my soul within me burning," +
+ "Soon again I heard a tapping somewhat louder than before." +
+ "`Surely,' said I, `surely that is something at my window lattice;" +
+ "Let me see then, what thereat is, and this mystery explore -" +
+ "Let my heart be still a moment and this mystery explore; -" +
+ "'Tis the wind and nothing more!'" +
+ "\n" +
+ "Open here I flung the shutter, when, with many a flirt and flutter," +
+ "In there stepped a stately raven of the saintly days of yore." +
+ "Not the least obeisance made he; not a minute stopped or stayed he;" +
+ "But, with mien of lord or lady, perched above my chamber door -" +
+ "Perched upon a bust of Pallas just above my chamber door -" +
+ "Perched, and sat, and nothing more." +
+ "\n" +
+ "Then this ebony bird beguiling my sad fancy into smiling," +
+ "By the grave and stern decorum of the countenance it wore," +
+ "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." +
+ "Ghastly grim and ancient raven wandering from the nightly shore -" +
+ "Tell me what thy lordly name is on the Night's Plutonian shore!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "-n" +
+ "Much I marvelled this ungainly fowl to hear discourse so plainly," +
+ "Though its answer little meaning - little relevancy bore;" +
+ "For we cannot help agreeing that no living human being" +
+ "Ever yet was blessed with seeing bird above his chamber door -" +
+ "Bird or beast above the sculptured bust above his chamber door," +
+ "With such name as `Nevermore.'" +
+ "\n" +
+ "But the raven, sitting lonely on the placid bust, spoke only," +
+ "That one word, as if his soul in that one word he did outpour." +
+ "Nothing further then he uttered - not a feather then he fluttered -" +
+ "Till I scarcely more than muttered `Other friends have flown before -" +
+ "On the morrow he will leave me, as my hopes have flown before.'" +
+ "Then the bird said, `Nevermore.'" +
+ "\n" +
+ "Startled at the stillness broken by reply so aptly spoken," +
+ "`Doubtless,' said I, `what it utters is its only stock and store," +
+ "Caught from some unhappy master whom unmerciful disaster" +
+ "Followed fast and followed faster till his songs one burden bore -" +
+ "Till the dirges of his hope that melancholy burden bore" +
+ "Of \"Never-nevermore.\"'" +
+ "\n" +
+ "But the raven still beguiling all my sad soul into smiling," +
+ "Straight I wheeled a cushioned seat in front of bird and bust and door;" +
+ "Then, upon the velvet sinking, I betook myself to linking" +
+ "Fancy unto fancy, thinking what this ominous bird of yore -" +
+ "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" +
+ "Meant in croaking `Nevermore.'" +
+ "\n" +
+ "This I sat engaged in guessing, but no syllable expressing" +
+ "To the fowl whose fiery eyes now burned into my bosom's core;" +
+ "This and more I sat divining, with my head at ease reclining" +
+ "On the cushion's velvet lining that the lamp-light gloated o'er," +
+ "But whose velvet violet lining with the lamp-light gloating o'er," +
+ "She shall press, ah, nevermore!" +
+ "\n" +
+ "Then, methought, the air grew denser, perfumed from an unseen censer" +
+ "Swung by Seraphim whose foot-falls tinkled on the tufted floor." +
+ "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" +
+ "Respite - respite and nepenthe from thy memories of Lenore!" +
+ "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" +
+ "Whether tempter sent, or whether tempest tossed thee here ashore," +
+ "Desolate yet all undaunted, on this desert land enchanted -" +
+ "On this home by horror haunted - tell me truly, I implore -" +
+ "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" +
+ "By that Heaven that bends above us - by that God we both adore -" +
+ "Tell this soul with sorrow laden if, within the distant Aidenn," +
+ "It shall clasp a sainted maiden whom the angels named Lenore -" +
+ "Clasp a rare and radiant maiden, whom the angels named Lenore?'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" +
+ "`Get thee back into the tempest and the Night's Plutonian shore!" +
+ "Leave no black plume as a token of that lie thy soul hath spoken!" +
+ "Leave my loneliness unbroken! - quit the bust above my door!" +
+ "Take thy beak from out my heart, and take thy form from off my door!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "And the raven, never flitting, still is sitting, still is sitting" +
+ "On the pallid bust of Pallas just above my chamber door;" +
+ "And his eyes have all the seeming of a demon's that is dreaming," +
+ "And the lamp-light o'er him streaming throws his shadow on the floor;" +
+ "And my soul from out that shadow that lies floating on the floor" +
+ "Shall be lifted - nevermore!"
+
+var ALL_THE_HOPELESS_MORE = 18;
-var ALL_THE_HOPELESS_MORE=18;
-
var __re = /([Nn]?ever|([Nn]othing\s{1,}))more/g;
-var __matched=0;
+var __matched = 0;
-do{
- var __executed = __re.exec(__the__raven);
- if (__executed !== null) {
- __matched++;
- } else {
- break;
- }
-}while(1);
+do {
+ var __executed = __re.exec(__the__raven);
+ if (__executed !== null) {
+ __matched++;
+ } else {
+ break;
+ }
+} while (1);
//CHECK#1
if (__matched !== ALL_THE_HOPELESS_MORE) {
- $ERROR('#1: __re = /([Nn]?ever|([Nn]othing\\s{1,}))more/g; __executed = __re.exec(__the__raven)'+__matched);
+ $ERROR('#1: __re = /([Nn]?ever|([Nn]othing\\s{1,}))more/g; __executed = __re.exec(__the__raven)' + __matched);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T5.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T5.js
index bd8109d4e..2ed60a686 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T5.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T5.js
@@ -14,16 +14,16 @@ var __re = /\d+/g;
var __matched = [];
-var __expected = ["123","456","789"];
+var __expected = ["123", "456", "789"];
-do{
- var __executed = __re.exec("123 456 789");
- if (__executed !== null) {
- __matched.push(__executed[0]);
- } else {
- break;
- }
-}while(true);
+do {
+ var __executed = __re.exec("123 456 789");
+ if (__executed !== null) {
+ __matched.push(__executed[0]);
+ } else {
+ break;
+ }
+} while (true);
//CHECK#1
if (__expected.length !== __matched.length) {
@@ -31,7 +31,7 @@ if (__expected.length !== __matched.length) {
}
//CHECK#2
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__expected[index] !== __matched[index]) {
$ERROR('#2: __executed = /\\d+/g.exec("123 456 789"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js
index 8bef077da..fa53c3d24 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js
@@ -14,16 +14,16 @@ var __re = /(\d+)/g;
var __matched = [];
-var __expected = ["123","456","789"];
+var __expected = ["123", "456", "789"];
-do{
- var __executed = __re.exec("123 456 789");
- if (__executed !== null) {
- __matched.push(__executed[0]);
- } else {
- break;
- }
-}while(true);
+do {
+ var __executed = __re.exec("123 456 789");
+ if (__executed !== null) {
+ __matched.push(__executed[0]);
+ } else {
+ break;
+ }
+} while (true);
//CHECK#1
if (__expected.length !== __matched.length) {
@@ -31,7 +31,7 @@ if (__expected.length !== __matched.length) {
}
//CHECK#2
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__expected[index] !== __matched[index]) {
$ERROR('#2: __executed = /(\\d+)/g.exec("123 456 789"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T7.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T7.js
index 57d17d1f2..822ba2de7 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T7.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T7.js
@@ -14,16 +14,16 @@ var __re = /\d+/;
var __matched = [];
-var __expected = ["123","123","123","123","123","123","123","123","123","123"];
+var __expected = ["123", "123", "123", "123", "123", "123", "123", "123", "123", "123"];
-do{
- var __executed = __re.exec("123 456 789");
- if (__executed !== null) {
- __matched.push(__executed[0]);
- } else {
- break;
- }
-}while(__matched.length<10);
+do {
+ var __executed = __re.exec("123 456 789");
+ if (__executed !== null) {
+ __matched.push(__executed[0]);
+ } else {
+ break;
+ }
+} while (__matched.length < 10);
//CHECK#1
if (__expected.length !== __matched.length) {
@@ -31,7 +31,7 @@ if (__expected.length !== __matched.length) {
}
//CHECK#2
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__expected[index] !== __matched[index]) {
$ERROR('#2: __executed = /\\d+/.exec("123 456 789"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T1.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T1.js
index 2f080253f..0e837302f 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T1.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T1.js
@@ -19,24 +19,24 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
__re.lastIndex = 12;
@@ -49,22 +49,22 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T10.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T10.js
index 404c48956..48a01b27e 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T10.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T10.js
@@ -21,27 +21,31 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
-var __obj = {valueOf:function(){return 12;}};
+var __obj = {
+ valueOf: function() {
+ return 12;
+ }
+};
__re.lastIndex = __obj;
@@ -53,22 +57,22 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js
index b375c31d9..d9e466e2d 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js
@@ -21,27 +21,31 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
-var __obj = {valueOf:function(){throw "intoint";}};
+var __obj = {
+ valueOf: function() {
+ throw "intoint";
+ }
+};
__re.lastIndex = __obj;
@@ -49,7 +53,7 @@ __re.lastIndex = __obj;
try {
$ERROR('#5.1: __obj = {valueOf:function(){throw "intoint";}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42") throw "intoint". Actual: ' + (__re.exec("aacd2233ab12nm444ab42")));
} catch (e) {
- if (e !== "intoint") {
- $ERROR('#5.2: __obj = {valueOf:function(){throw "intoint";}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42") throw "intoint". Actual: ' + (e));
- }
+ if (e !== "intoint") {
+ $ERROR('#5.2: __obj = {valueOf:function(){throw "intoint";}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42") throw "intoint". Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js
index 34693e335..770b1cc40 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js
@@ -22,27 +22,34 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
-var __obj = {toString:function(){return 12;},valueOf:function(){return {};}};
+var __obj = {
+ toString: function() {
+ return 12;
+ },
+ valueOf: function() {
+ return {};
+ }
+};
__re.lastIndex = __obj;
@@ -54,22 +61,22 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T2.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T2.js
index ab07be7a4..1947c862e 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T2.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T2.js
@@ -21,24 +21,24 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
__re.lastIndex = undefined;
@@ -51,22 +51,22 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T3.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T3.js
index e770aec3e..a664bf88a 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T3.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T3.js
@@ -19,24 +19,24 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
__re.lastIndex = void 0;
@@ -49,22 +49,22 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T4.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T4.js
index 249609f65..f87975591 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T4.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T4.js
@@ -19,24 +19,24 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
__re.lastIndex = null;
@@ -49,22 +49,22 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T5.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T5.js
index 295aac596..3043cb53d 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T5.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T5.js
@@ -21,24 +21,24 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
__re.lastIndex = x;
@@ -51,24 +51,24 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
var x;
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T6.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T6.js
index 3c852b308..4a9f46912 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T6.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T6.js
@@ -19,24 +19,24 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
__re.lastIndex = false;
@@ -49,22 +49,22 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T7.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T7.js
index e3f478c52..5b555279a 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T7.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T7.js
@@ -21,24 +21,24 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
__re.lastIndex = Math.NaN;
@@ -51,22 +51,22 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g; re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g; re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T8.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T8.js
index b82c014f4..10315051d 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T8.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T8.js
@@ -19,24 +19,24 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
__re.lastIndex = "12";
@@ -49,22 +49,22 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T9.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T9.js
index 7dc9e0ffa..5f710578e 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T9.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T9.js
@@ -21,24 +21,24 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
__re.lastIndex = "eleven";
@@ -51,22 +51,22 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g;__re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g;__re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T1.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T1.js
index a7b9e0283..0ee3bf9c0 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T1.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T1.js
@@ -21,34 +21,34 @@ __expected.input = "aac1dz2233a1bz12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
__executed = __re.exec("aacd22");
//CHECK#5
if (__executed) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd22"); __executed === true');
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd22"); __executed === true');
}
//CHECK#6
if (__re.lastIndex !== 0) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd22"); __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd22"); __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T2.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T2.js
index 9bd529e02..c2a6c7a47 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T2.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T2.js
@@ -11,15 +11,15 @@ description: "Set lastIndex to 100 and call /(?:ab|cd)\\d?/g.exec(\"aacd22 \")"
---*/
var __re = /(?:ab|cd)\d?/g;
-__re.lastIndex=100;
+__re.lastIndex = 100;
var __executed = __re.exec("aacd22 ");
//CHECK#1
if (__executed) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=100; __executed = __re.exec("aacd22 "); __executed === true');
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=100; __executed = __re.exec("aacd22 "); __executed === true');
}
//CHECK#2
if (__re.lastIndex !== 0) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=100; __executed = __re.exec("aacd22 "); __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=100; __executed = __re.exec("aacd22 "); __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T3.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T3.js
index f65ed4937..8458728a6 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T3.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T3.js
@@ -11,28 +11,28 @@ description: "Set lastIndex to -1 and call /(?:ab|cd)\\d?/g.exec(\"aacd22 \")"
---*/
var __re = /(?:ab|cd)\d?/g;
-__re.lastIndex=-1;
+__re.lastIndex = -1;
var __executed = __re.exec("aacd22 ");
//CHECK#1
if (__executed[0] !== "cd2") {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __executed[0] === "cd2"');
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __executed[0] === "cd2"');
}
//CHECK#2
if (__re.lastIndex !== 5) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex));
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex));
}
-__re.lastIndex=-100;
+__re.lastIndex = -100;
__executed = __re.exec("aacd22 ");
//CHECK#3
if (__executed[0] !== "cd2") {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex=-100; __executed = __re.exec("aacd22 "); __executed[0] === "cd2"');
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex=-100; __executed = __re.exec("aacd22 "); __executed[0] === "cd2"');
}
//CHECK#4
if (__re.lastIndex !== 5) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex=-100; __executed = __re.exec("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex));
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex=-100; __executed = __re.exec("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex));
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A8.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A8.js
index c891da096..22b98fa19 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A8.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A8.js
@@ -14,16 +14,16 @@ if (RegExp.prototype.exec.hasOwnProperty('length') !== true) {
$ERROR('#0: RegExp.prototype.exec.hasOwnProperty(\'length\') === true');
}
- //CHECK#1
+//CHECK#1
if (RegExp.prototype.exec.propertyIsEnumerable('length') !== false) {
$ERROR('#1: RegExp.prototype.exec.propertyIsEnumerable(\'length\') === true');
}
- //CHECK#2
-var count=0;
+//CHECK#2
+var count = 0;
-for (var p in RegExp.prototype.exec){
- if (p==="length") count++;
+for (var p in RegExp.prototype.exec) {
+ if (p === "length") count++;
}
if (count !== 0) {
diff --git a/test/built-ins/RegExp/prototype/exec/failure-g-lastindex-reset.js b/test/built-ins/RegExp/prototype/exec/failure-g-lastindex-reset.js
index a6c26e1e5..5ba6e38de 100644
--- a/test/built-ins/RegExp/prototype/exec/failure-g-lastindex-reset.js
+++ b/test/built-ins/RegExp/prototype/exec/failure-g-lastindex-reset.js
@@ -39,13 +39,13 @@ function reset(value) {
lastIndexReads = 0;
}
-reset(42); // lastIndex beyond end of string.
+reset(42); // lastIndex beyond end of string.
result = r.exec('abc');
assert.sameValue(result, null);
assert.sameValue(r.lastIndex, 0);
assert.sameValue(lastIndexReads, 1);
-reset(-1); // No match.
+reset(-1); // No match.
result = r.exec('nbc');
assert.sameValue(result, null);
assert.sameValue(r.lastIndex, 0);
diff --git a/test/built-ins/RegExp/prototype/exec/success-g-lastindex-no-access.js b/test/built-ins/RegExp/prototype/exec/success-g-lastindex-no-access.js
index e1997fbbf..7a86bd138 100644
--- a/test/built-ins/RegExp/prototype/exec/success-g-lastindex-no-access.js
+++ b/test/built-ins/RegExp/prototype/exec/success-g-lastindex-no-access.js
@@ -30,4 +30,3 @@ assert.sameValue(result.length, 1);
assert.sameValue(result[0], 'a');
assert.sameValue(r.lastIndex, 1);
assert.sameValue(lastIndexReads, 1);
-
diff --git a/test/built-ins/RegExp/prototype/global/15.10.7.2-2.js b/test/built-ins/RegExp/prototype/global/15.10.7.2-2.js
index bc00e211f..a4f42010a 100644
--- a/test/built-ins/RegExp/prototype/global/15.10.7.2-2.js
+++ b/test/built-ins/RegExp/prototype/global/15.10.7.2-2.js
@@ -8,8 +8,8 @@ description: >
function is undefined
---*/
- var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, 'global');
-
+var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, 'global');
+
assert.sameValue(typeof desc.get, 'function', 'typeof desc.get');
assert.sameValue(desc.set, undefined, 'desc.set');
diff --git a/test/built-ins/RegExp/prototype/global/S15.10.7.2_A8.js b/test/built-ins/RegExp/prototype/global/S15.10.7.2_A8.js
index 482640969..a03c1881c 100644
--- a/test/built-ins/RegExp/prototype/global/S15.10.7.2_A8.js
+++ b/test/built-ins/RegExp/prototype/global/S15.10.7.2_A8.js
@@ -16,15 +16,15 @@ if (__re.hasOwnProperty('global') !== true) {
$ERROR('#0: __re = RegExp.prototype; __re.hasOwnProperty(\'global\') === true');
}
- //CHECK#1
+//CHECK#1
if (__re.propertyIsEnumerable('global') !== false) {
$ERROR('#1: __re = RegExp.prototype; __re.propertyIsEnumerable(\'global\') === false');
}
- //CHECK#2
+//CHECK#2
var count = 0
-for (var p in __re){
- if (p==="global") count++
+for (var p in __re) {
+ if (p === "global") count++
}
if (count !== 0) {
diff --git a/test/built-ins/RegExp/prototype/ignoreCase/15.10.7.3-2.js b/test/built-ins/RegExp/prototype/ignoreCase/15.10.7.3-2.js
index 60fecfef5..8fbc65542 100644
--- a/test/built-ins/RegExp/prototype/ignoreCase/15.10.7.3-2.js
+++ b/test/built-ins/RegExp/prototype/ignoreCase/15.10.7.3-2.js
@@ -8,8 +8,8 @@ description: >
accessor function is undefined
---*/
- var d = Object.getOwnPropertyDescriptor(RegExp.prototype, 'ignoreCase');
-
+var d = Object.getOwnPropertyDescriptor(RegExp.prototype, 'ignoreCase');
+
assert.sameValue(typeof d.get, 'function', 'typeof d.get');
assert.sameValue(d.set, undefined, 'd.set');
diff --git a/test/built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A8.js b/test/built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A8.js
index 7969581b1..fdfe258b1 100644
--- a/test/built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A8.js
+++ b/test/built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A8.js
@@ -16,15 +16,15 @@ if (__re.hasOwnProperty('ignoreCase') !== true) {
$ERROR('#0: __re = RegExp.prototype; __re.hasOwnProperty(\'ignoreCase\') === true');
}
- //CHECK#1
+//CHECK#1
if (__re.propertyIsEnumerable('ignoreCase') !== false) {
$ERROR('#1: __re = RegExp.prototype; __re.propertyIsEnumerable(\'ignoreCase\') === false');
}
- //CHECK#2
+//CHECK#2
var count = 0
-for (var p in __re){
- if (p==="ignoreCase") count++
+for (var p in __re) {
+ if (p === "ignoreCase") count++
}
if (count !== 0) {
diff --git a/test/built-ins/RegExp/prototype/multiline/15.10.7.4-2.js b/test/built-ins/RegExp/prototype/multiline/15.10.7.4-2.js
index 3b0ca4dde..62308d478 100644
--- a/test/built-ins/RegExp/prototype/multiline/15.10.7.4-2.js
+++ b/test/built-ins/RegExp/prototype/multiline/15.10.7.4-2.js
@@ -8,8 +8,8 @@ description: >
accessor function is undefined
---*/
- var d = Object.getOwnPropertyDescriptor(RegExp.prototype, 'multiline');
-
+var d = Object.getOwnPropertyDescriptor(RegExp.prototype, 'multiline');
+
assert.sameValue(typeof d.get, 'function', 'typeof d.get');
assert.sameValue(d.set, undefined, 'd.set');
diff --git a/test/built-ins/RegExp/prototype/multiline/S15.10.7.4_A8.js b/test/built-ins/RegExp/prototype/multiline/S15.10.7.4_A8.js
index 01344abce..d246cbf20 100644
--- a/test/built-ins/RegExp/prototype/multiline/S15.10.7.4_A8.js
+++ b/test/built-ins/RegExp/prototype/multiline/S15.10.7.4_A8.js
@@ -16,15 +16,15 @@ if (__re.hasOwnProperty('multiline') !== true) {
$ERROR('#0: __re = RegExp.prototype; __re.hasOwnProperty(\'multiline\') === true');
}
- //CHECK#1
+//CHECK#1
if (__re.propertyIsEnumerable('multiline') !== false) {
$ERROR('#1: __re = RegExp.prototype; __re.propertyIsEnumerable(\'multiline\') === false');
}
- //CHECK#2
+//CHECK#2
var count = 0
-for (var p in __re){
- if (p==="multiline") count++
+for (var p in __re) {
+ if (p === "multiline") count++
}
if (count !== 0) {
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A10.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A10.js
index 2cd4e7807..0cf733d86 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A10.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A10.js
@@ -15,7 +15,9 @@ if (RegExp.prototype.test.hasOwnProperty('length') !== true) {
var __obj = RegExp.prototype.test.length;
-verifyNotWritable(RegExp.prototype.test, "length", null, function(){return "shifted";});
+verifyNotWritable(RegExp.prototype.test, "length", null, function() {
+ return "shifted";
+});
//CHECK#2
if (RegExp.prototype.test.length !== __obj) {
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T1.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T1.js
index 5fcda8dca..8bdaa0b16 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T1.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T1.js
@@ -12,5 +12,5 @@ var __re = /1|12/;
//CHECK#0
if (__re.test(__string) !== (__re.exec(__string) !== null)) {
- $ERROR('#0: var __string = "123";__re = /1|12/; __re.test(__string) === (__re.exec(__string) !== null)');
+ $ERROR('#0: var __string = "123";__re = /1|12/; __re.test(__string) === (__re.exec(__string) !== null)');
}
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T10.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T10.js
index de045b10f..6257f4fac 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T10.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T10.js
@@ -12,5 +12,5 @@ var __re = /1|12/;
//CHECK#0
if (__re.test(__string) !== (__re.exec(__string) !== null)) {
- $ERROR('#0: var __string = 1.01;__re = /1|12/; __re.test(__string) === (__re.exec(__string) !== null)');
+ $ERROR('#0: var __string = 1.01;__re = /1|12/; __re.test(__string) === (__re.exec(__string) !== null)');
}
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T11.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T11.js
index 0663d82c9..2a31a4458 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T11.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T11.js
@@ -12,5 +12,5 @@ var __re = /2|12/;
//CHECK#0
if (__re.test(__string) !== (__re.exec(__string) !== null)) {
- $ERROR('#0: var __string = new Number(1.012); __re = /2|12/; __re.test(__string) === (__re.exec(__string) !== null)');
+ $ERROR('#0: var __string = new Number(1.012); __re = /2|12/; __re.test(__string) === (__re.exec(__string) !== null)');
}
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T12.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T12.js
index 40e81bc40..bfe91eaea 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T12.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T12.js
@@ -9,10 +9,14 @@ description: >
Math.PI;}}
---*/
-var __string = {toString:function(){return Math.PI;}};
+var __string = {
+ toString: function() {
+ return Math.PI;
+ }
+};
var __re = /\.14/;
//CHECK#0
if (__re.test(__string) !== (__re.exec(__string) !== null)) {
- $ERROR('#0: var __string = {toString:function(){return Math.PI;}}; __re = /\\.14/; __re.test(__string) === (__re.exec(__string) !== null)');
+ $ERROR('#0: var __string = {toString:function(){return Math.PI;}}; __re = /\\.14/; __re.test(__string) === (__re.exec(__string) !== null)');
}
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T13.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T13.js
index bf1374b1a..35cc9c8b4 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T13.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T13.js
@@ -12,5 +12,5 @@ var __re = /t[a-b|q-s]/;
//CHECK#0
if (__re.test(__string) !== (__re.exec(__string) !== null)) {
- $ERROR('#0: var __string = true;__re = /t[a-b|q-s]/; __re.test(__string) === (__re.exec(__string) !== null)');
+ $ERROR('#0: var __string = true;__re = /t[a-b|q-s]/; __re.test(__string) === (__re.exec(__string) !== null)');
}
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T14.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T14.js
index 813a98cdb..e81f96766 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T14.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T14.js
@@ -12,5 +12,5 @@ var __re = /AL|se/;
//CHECK#0
if (__re.test(__string) !== (__re.exec(__string) !== null)) {
- $ERROR('#0: var __string = new Boolean;__re = /AL|se/; __re.test(__string) === (__re.exec(__string) !== null)');
+ $ERROR('#0: var __string = new Boolean;__re = /AL|se/; __re.test(__string) === (__re.exec(__string) !== null)');
}
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T15.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T15.js
index ff62b3be7..aa38d1a65 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T15.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T15.js
@@ -9,10 +9,14 @@ description: >
false;}}
---*/
-var __string = {toString:function(){return false;}};
+var __string = {
+ toString: function() {
+ return false;
+ }
+};
var __re = /LS/i;
//CHECK#0
if (__re.test(__string) !== (__re.exec(__string) !== null)) {
- $ERROR('#0: var __string = {toString:function(){return false;}}; __re = /LS/i; __re.test(__string) === (__re.exec(__string) !== null)');
+ $ERROR('#0: var __string = {toString:function(){return false;}}; __re = /LS/i; __re.test(__string) === (__re.exec(__string) !== null)');
}
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T16.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T16.js
index 7aa80a6cb..730d5c0d6 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T16.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T16.js
@@ -11,5 +11,5 @@ var __re = /undefined/;
//CHECK#0
if (__re.test() !== (__re.exec() !== null)) {
- $ERROR('#0: __re = /undefined/; __re.test() === (__re.exec() !== null)');
+ $ERROR('#0: __re = /undefined/; __re.test() === (__re.exec() !== null)');
}
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T17.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T17.js
index 030933e71..829f24d84 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T17.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T17.js
@@ -11,5 +11,5 @@ var __re = /ll|l/;
//CHECK#0
if (__re.test(null) !== (__re.exec(null) !== null)) {
- $ERROR('#0: __re = /ll|l/; __re.test(null) === (__re.exec(null) !== null)');
+ $ERROR('#0: __re = /ll|l/; __re.test(null) === (__re.exec(null) !== null)');
}
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T18.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T18.js
index 7b05aba06..be53956ae 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T18.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T18.js
@@ -11,5 +11,5 @@ var __re = /nd|ne/;
//CHECK#0
if (__re.test(undefined) !== (__re.exec(undefined) !== null)) {
- $ERROR('#0: __re = /nd|ne/; __re.test(undefined) === (__re.exec(undefined) !== null)');
+ $ERROR('#0: __re = /nd|ne/; __re.test(undefined) === (__re.exec(undefined) !== null)');
}
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T19.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T19.js
index 7ac446dbc..c9fc6b7d6 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T19.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T19.js
@@ -11,5 +11,5 @@ var __re = /e{1}/;
//CHECK#0
if (__re.test(void 0) !== (__re.exec(void 0) !== null)) {
- $ERROR('#0: __re = /e{1}/; __re.test(void 0) === (__re.exec(void 0) !== null)');
+ $ERROR('#0: __re = /e{1}/; __re.test(void 0) === (__re.exec(void 0) !== null)');
}
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T2.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T2.js
index 1450311d4..ce4876517 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T2.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T2.js
@@ -14,5 +14,5 @@ var __re = /((1)|(12))((3)|(23))/;
//CHECK#0
if (__re.test(__string) !== (__re.exec(__string) !== null)) {
- $ERROR('#0: var __string = new String("123"); __re = /((1)|(12))((3)|(23))/; __re.test(__string) === (__re.exec(__string) !== null)');
+ $ERROR('#0: var __string = new String("123"); __re = /((1)|(12))((3)|(23))/; __re.test(__string) === (__re.exec(__string) !== null)');
}
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T20.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T20.js
index 15bf3b7bc..e739a9167 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T20.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T20.js
@@ -11,7 +11,7 @@ var __re = /[a-f]d/;
//CHECK#0
if (__re.test(x) !== (__re.exec(x) !== null)) {
- $ERROR('#0: __re = /[a-f]d/; __re.test(x) === (__re.exec(x) !== null); var x;');
+ $ERROR('#0: __re = /[a-f]d/; __re.test(x) === (__re.exec(x) !== null); var x;');
}
var x;
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T21.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T21.js
index aa7ca1595..880d6d231 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T21.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T21.js
@@ -12,6 +12,6 @@ description: >
var __re = /[a-z]n/;
//CHECK#0
-if (__re.test(function(){}()) !== (__re.exec(function(){}()) !== null)) {
- $ERROR('#0: __re = /[a-z]n/; __re.test(function(){}()) === (__re.exec(function(){}()) !== null)');
+if (__re.test(function() {}()) !== (__re.exec(function() {}()) !== null)) {
+ $ERROR('#0: __re = /[a-z]n/; __re.test(function(){}()) === (__re.exec(function(){}()) !== null)');
}
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T22.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T22.js
index 73af4f879..fc5f9d30b 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T22.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T22.js
@@ -11,28 +11,28 @@ description: "Set lastIndex to -1 and call /(?:ab|cd)\\d?/g.test(\"aacd22 \")"
---*/
var __re = /(?:ab|cd)\d?/g;
-__re.lastIndex=-1;
+__re.lastIndex = -1;
var __executed = __re.test("aacd22 ");
//CHECK#1
if (!__executed) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __executed === true');
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __executed === true');
}
//CHECK#2
if (__re.lastIndex !== 5) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex));
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex));
}
-__re.lastIndex=-100;
+__re.lastIndex = -100;
__executed = __re.test("aacd22 ");
//CHECK#3
if (!__executed) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __re.lastIndex=-100; __executed = __re.test("aacd22 "); __executed === true');
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __re.lastIndex=-100; __executed = __re.test("aacd22 "); __executed === true');
}
//CHECK#4
if (__re.lastIndex !== 5) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __re.lastIndex=-100; __executed = __re.test("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex));
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __re.lastIndex=-100; __executed = __re.test("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex));
}
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T3.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T3.js
index 6ce78d065..8851e7cfe 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T3.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T3.js
@@ -14,5 +14,5 @@ var __re = /a[a-z]{2,4}/;
//CHECK#0
if (__re.test(__string) !== (__re.exec(__string) !== null)) {
- $ERROR('#0: var __string = new Object("abcdefghi"); __re = /a[a-z]{2,4}/; __re.test(__string) === (__re.exec(__string) !== null)');
+ $ERROR('#0: var __string = new Object("abcdefghi"); __re = /a[a-z]{2,4}/; __re.test(__string) === (__re.exec(__string) !== null)');
}
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T4.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T4.js
index 444fbebb3..953ec5b0a 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T4.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T4.js
@@ -9,10 +9,14 @@ description: >
{toString:function(){return "abcdefghi";}}
---*/
-var __string = {toString:function(){return "abcdefghi";}};
+var __string = {
+ toString: function() {
+ return "abcdefghi";
+ }
+};
var __re = /a[a-z]{2,4}?/;
//CHECK#0
if (__re.test(__string) !== (__re.exec(__string) !== null)) {
- $ERROR('#0: var __string = {toString:function(){return "abcdefghi";}}; __re = /a[a-z]{2,4}?/; __re.test(__string) === (__re.exec(__string) !== null)');
+ $ERROR('#0: var __string = {toString:function(){return "abcdefghi";}}; __re = /a[a-z]{2,4}?/; __re.test(__string) === (__re.exec(__string) !== null)');
}
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T5.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T5.js
index fd79faab4..c8fb25eb2 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T5.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T5.js
@@ -10,10 +10,17 @@ description: >
"aabaac";}}
---*/
-var __string = {toString:function(){return {};}, valueOf:function(){return "aabaac";}};
+var __string = {
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ return "aabaac";
+ }
+};
var __re = /(aa|aabaac|ba|b|c)*/;
//CHECK#0
if (__re.test(__string) !== (__re.exec(__string) !== null)) {
- $ERROR('#0: var __string = {toString:function(){return {};}, valueOf:function(){return "aabaac";}}; __re = /(aa|aabaac|ba|b|c)*/; __re.test(__string) === (__re.exec(__string) !== null)');
+ $ERROR('#0: var __string = {toString:function(){return {};}, valueOf:function(){return "aabaac";}}; __re = /(aa|aabaac|ba|b|c)*/; __re.test(__string) === (__re.exec(__string) !== null)');
}
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T6.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T6.js
index 9391e3eca..2dcb863c3 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T6.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T6.js
@@ -12,6 +12,10 @@ description: >
var __re = /(z)((a+)?(b+)?(c))*/;
//CHECK#0
-if (__re.test((function(){return "zaacbbbcac"})()) !== (__re.exec((function(){return "zaacbbbcac"})()) !== null)) {
- $ERROR('#0: __re = /(z)((a+)?(b+)?(c))*/; __re.test((function(){return "zaacbbbcac"})()) === (__re.exec((function(){return "zaacbbbcac"})()) !== null)');
+if (__re.test((function() {
+ return "zaacbbbcac"
+ })()) !== (__re.exec((function() {
+ return "zaacbbbcac"
+ })()) !== null)) {
+ $ERROR('#0: __re = /(z)((a+)?(b+)?(c))*/; __re.test((function(){return "zaacbbbcac"})()) === (__re.exec((function(){return "zaacbbbcac"})()) !== null)');
}
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T7.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T7.js
index b51f07c96..87b085bcd 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T7.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T7.js
@@ -11,9 +11,13 @@ description: >
//CHECK#1
try {
- $ERROR('#1.1: /[a-z]/.test({toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (/[a-z]/.test({toString:function(){throw "intostr";}})));
+ $ERROR('#1.1: /[a-z]/.test({toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (/[a-z]/.test({
+ toString: function() {
+ throw "intostr";
+ }
+ })));
} catch (e) {
- if (e !== "intostr") {
- $ERROR('#1.2: /[a-z]/.test({toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (e));
- }
+ if (e !== "intostr") {
+ $ERROR('#1.2: /[a-z]/.test({toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T8.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T8.js
index 3380f6b60..7902bbd72 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T8.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T8.js
@@ -11,7 +11,12 @@ description: >
//CHECK#1
try {
- $ERROR('#1.1: /[a-z]/.test({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (/[a-z]/.test({toString:void 0, valueOf:function(){throw "invalof";}})));
+ $ERROR('#1.1: /[a-z]/.test({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (/[a-z]/.test({
+ toString: void 0,
+ valueOf: function() {
+ throw "invalof";
+ }
+ })));
} catch (e) {
if (e !== "invalof") {
$ERROR('#1.2: /[a-z]/.test({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e));
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T9.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T9.js
index 5ff8d3dec..45d0268d9 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T9.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T9.js
@@ -12,7 +12,7 @@ var __re = /1|12/;
//CHECK#0
if (__re.test(__string) !== (__re.exec(__string) !== null)) {
- $ERROR('#0: var __string;__re = /1|12/; __re.test(__string) === (__re.exec(__string) !== null); function __string(){};');
+ $ERROR('#0: var __string;__re = /1|12/; __re.test(__string) === (__re.exec(__string) !== null); function __string(){};');
}
-function __string(){};
+function __string() {};
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T2.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T2.js
index e3f540e24..ab12ae41c 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T2.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T2.js
@@ -14,7 +14,7 @@ var __instance = Math;
__instance.test = RegExp.prototype.test;
//CHECK#1
-try {
+try {
__instance.test("message to investigate");
$ERROR('#1.1: __instance = Math; __instance.test = RegExp.prototype.test; __instance.test("message to investigate")');
} catch (e) {
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T3.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T3.js
index 85f5cd90c..19ed78f64 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T3.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T3.js
@@ -21,4 +21,4 @@ try {
}
}
-function __instance(){};
+function __instance() {};
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T4.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T4.js
index 5040c3dde..dbf2ab6dc 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T4.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T4.js
@@ -14,10 +14,10 @@ var __instance = new String("[a-b]");
__instance.test = RegExp.prototype.test;
//CHECK#1
- try {
- $ERROR('#1.1: __instance = new String("[a-b]"); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (__instance.test("message to investigate")));
- } catch (e) {
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: __instance = new String("[a-b]"); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (e));
- }
- }
+try {
+ $ERROR('#1.1: __instance = new String("[a-b]"); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (__instance.test("message to investigate")));
+} catch (e) {
+ if ((e instanceof TypeError) !== true) {
+ $ERROR('#1.2: __instance = new String("[a-b]"); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (e));
+ }
+}
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T5.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T5.js
index f94a6fa0f..646cc8020 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T5.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T5.js
@@ -14,10 +14,10 @@ var __instance = new Boolean(false);
__instance.test = RegExp.prototype.test;
//CHECK#1
- try {
- $ERROR('#1.1: __instance = new Boolean(false); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (__instance.test("message to investigate")));
- } catch (e) {
- if ((e instanceof TypeError !== true)) {
- $ERROR('#1.2: __instance = new Boolean(false); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (e));
- }
+try {
+ $ERROR('#1.1: __instance = new Boolean(false); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (__instance.test("message to investigate")));
+} catch (e) {
+ if ((e instanceof TypeError !== true)) {
+ $ERROR('#1.2: __instance = new Boolean(false); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (e));
}
+}
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A8.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A8.js
index fdc0c6aff..4a1709205 100644
--- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A8.js
+++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A8.js
@@ -14,16 +14,16 @@ if (RegExp.prototype.test.hasOwnProperty('length') !== true) {
$ERROR('#0: RegExp.prototype.test.hasOwnProperty(\'length\') === true');
}
- //CHECK#1
+//CHECK#1
if (RegExp.prototype.test.propertyIsEnumerable('length') !== false) {
$ERROR('#1: RegExp.prototype.test.propertyIsEnumerable(\'length\') === true');
}
- //CHECK#2
-var count=0;
+//CHECK#2
+var count = 0;
-for (var p in RegExp.prototype.test){
- if (p==="length") count++;
+for (var p in RegExp.prototype.test) {
+ if (p === "length") count++;
}
if (count !== 0) {
diff --git a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A10.js b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A10.js
index ce3af8384..52de15e0c 100644
--- a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A10.js
+++ b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A10.js
@@ -12,14 +12,16 @@ includes: [propertyHelper.js]
//CHECK#1
if (RegExp.prototype.toString.hasOwnProperty('length') !== true) {
- $ERROR('#1: RegExp.prototype.toString.hasOwnProperty(\'length\') === true');
+ $ERROR('#1: RegExp.prototype.toString.hasOwnProperty(\'length\') === true');
}
var __obj = RegExp.prototype.toString.length;
-verifyNotWritable(RegExp.prototype.toString, "length", null, function(){return "shifted";});
+verifyNotWritable(RegExp.prototype.toString, "length", null, function() {
+ return "shifted";
+});
//CHECK#2
if (RegExp.prototype.toString.length !== __obj) {
- $ERROR('#2: __obj = RegExp.prototype.toString.length; RegExp.prototype.toString.length = function(){return "shifted";}; RegExp.prototype.toString.length === __obj. Actual: ' + (RegExp.prototype.toString.length));
+ $ERROR('#2: __obj = RegExp.prototype.toString.length; RegExp.prototype.toString.length = function(){return "shifted";}; RegExp.prototype.toString.length === __obj. Actual: ' + (RegExp.prototype.toString.length));
}
diff --git a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A11.js b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A11.js
index a54502d5c..1d57d4f64 100644
--- a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A11.js
+++ b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A11.js
@@ -9,10 +9,10 @@ description: Checking RegExp.prototype.toString.length
//CHECK#1
if (RegExp.prototype.toString.hasOwnProperty("length") !== true) {
- $ERROR('#1: RegExp.prototype.toString.hasOwnProperty(\'length\') === true');
+ $ERROR('#1: RegExp.prototype.toString.hasOwnProperty(\'length\') === true');
}
//CHECK#2
if (RegExp.prototype.toString.length !== 0) {
- $ERROR('#2: RegExp.prototype.toString.length === 0. Actual: ' + (RegExp.prototype.toString.length));
+ $ERROR('#2: RegExp.prototype.toString.length === 0. Actual: ' + (RegExp.prototype.toString.length));
}
diff --git a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A6.js b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A6.js
index 13cc68d81..ad495948e 100644
--- a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A6.js
+++ b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A6.js
@@ -9,5 +9,5 @@ description: Checking RegExp.prototype.toString.prototype
//CHECK#1
if (RegExp.prototype.toString.prototype !== undefined) {
- $ERROR('#1: RegExp.prototype.toString.prototype === undefined. Actual: ' + (RegExp.prototype.toString.prototype));
+ $ERROR('#1: RegExp.prototype.toString.prototype === undefined. Actual: ' + (RegExp.prototype.toString.prototype));
}
diff --git a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A7.js b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A7.js
index ea4099dba..0f619e93d 100644
--- a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A7.js
+++ b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A7.js
@@ -10,8 +10,8 @@ description: Checking if creating the RegExp.prototype.toString object fails
var __FACTORY = RegExp.prototype.toString;
try {
- var __instance = new __FACTORY;
- $ERROR('#1.1: __FACTORY = RegExp.prototype.toString throw TypeError. Actual: ' + (__instance));
+ var __instance = new __FACTORY;
+ $ERROR('#1.1: __FACTORY = RegExp.prototype.toString throw TypeError. Actual: ' + (__instance));
} catch (e) {
if ((e instanceof TypeError) !== true) {
$ERROR('#1.2: __FACTORY = RegExp.prototype.toString throw TypeError. Actual: ' + (e));
diff --git a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A8.js b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A8.js
index 8d8135160..8346de727 100644
--- a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A8.js
+++ b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A8.js
@@ -11,21 +11,21 @@ description: >
//CHECK#0
if (RegExp.prototype.toString.hasOwnProperty('length') !== true) {
- $ERROR('#0: RegExp.prototype.toString.hasOwnProperty(\'length\') === true');
+ $ERROR('#0: RegExp.prototype.toString.hasOwnProperty(\'length\') === true');
}
- //CHECK#1
+//CHECK#1
if (RegExp.prototype.toString.propertyIsEnumerable('length') !== false) {
- $ERROR('#1: RegExp.prototype.toString.propertyIsEnumerable(\'length\') === true');
+ $ERROR('#1: RegExp.prototype.toString.propertyIsEnumerable(\'length\') === true');
}
- //CHECK#2
-var count=0;
+//CHECK#2
+var count = 0;
-for (var p in RegExp.prototype.toString){
- if (p==="length") count++;
+for (var p in RegExp.prototype.toString) {
+ if (p === "length") count++;
}
if (count !== 0) {
- $ERROR('#2: count = 0; for (p in RegExp.prototype.toString){ if (p==="length") count++; } count === 0. Actual: ' + (count));
+ $ERROR('#2: count = 0; for (p in RegExp.prototype.toString){ if (p==="length") count++; } count === 0. Actual: ' + (count));
}
diff --git a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A9.js b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A9.js
index 5d8cf797a..61f2b4233 100644
--- a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A9.js
+++ b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A9.js
@@ -13,15 +13,15 @@ description: >
//CHECK#0
if ((RegExp.prototype.toString.hasOwnProperty('length') !== true)) {
- $ERROR('#0: RegExp.prototype.toString.hasOwnProperty(\'length\') === true');
+ $ERROR('#0: RegExp.prototype.toString.hasOwnProperty(\'length\') === true');
}
//CHECK#1
if (delete RegExp.prototype.toString.length !== true) {
- $ERROR('#1: delete RegExp.prototype.toString.length === true');
+ $ERROR('#1: delete RegExp.prototype.toString.length === true');
}
//CHECK#2
if (RegExp.prototype.toString.hasOwnProperty('length') !== false) {
- $ERROR('#2: delete RegExp.prototype.toString.length; RegExp.prototype.toString.hasOwnProperty(\'length\') === false');
+ $ERROR('#2: delete RegExp.prototype.toString.length; RegExp.prototype.toString.hasOwnProperty(\'length\') === false');
}
diff --git a/test/built-ins/RegExp/unicode_restricted_identity_escape_alpha.js b/test/built-ins/RegExp/unicode_restricted_identity_escape_alpha.js
index a7e86715b..b1c3907a4 100644
--- a/test/built-ins/RegExp/unicode_restricted_identity_escape_alpha.js
+++ b/test/built-ins/RegExp/unicode_restricted_identity_escape_alpha.js
@@ -18,15 +18,15 @@ function isValidAlphaEscapeInAtom(s) {
switch (s) {
// Assertion [U] :: \b
case "b":
- // Assertion [U] :: \B
+ // Assertion [U] :: \B
case "B":
- // ControlEscape :: one of f n r t v
+ // ControlEscape :: one of f n r t v
case "f":
case "n":
case "r":
case "t":
case "v":
- // CharacterClassEscape :: one of d D s S w W
+ // CharacterClassEscape :: one of d D s S w W
case "d":
case "D":
case "s":
@@ -43,13 +43,13 @@ function isValidAlphaEscapeInClass(s) {
switch (s) {
// ClassEscape[U] :: b
case "b":
- // ControlEscape :: one of f n r t v
+ // ControlEscape :: one of f n r t v
case "f":
case "n":
case "r":
case "t":
case "v":
- // CharacterClassEscape :: one of d D s S w W
+ // CharacterClassEscape :: one of d D s S w W
case "d":
case "D":
case "s":
@@ -63,7 +63,7 @@ function isValidAlphaEscapeInClass(s) {
}
// IdentityEscape in AtomEscape
-for (var cu = 0x41 /* A */; cu <= 0x5a /* Z */; ++cu) {
+for (var cu = 0x41 /* A */ ; cu <= 0x5a /* Z */ ; ++cu) {
var s = String.fromCharCode(cu);
if (!isValidAlphaEscapeInAtom(s)) {
assert.throws(SyntaxError, function() {
@@ -71,7 +71,7 @@ for (var cu = 0x41 /* A */; cu <= 0x5a /* Z */; ++cu) {
}, "IdentityEscape in AtomEscape: '" + s + "'");
}
}
-for (var cu = 0x61 /* a */; cu <= 0x7a /* z */; ++cu) {
+for (var cu = 0x61 /* a */ ; cu <= 0x7a /* z */ ; ++cu) {
var s = String.fromCharCode(cu);
if (!isValidAlphaEscapeInAtom(s)) {
assert.throws(SyntaxError, function() {
@@ -82,7 +82,7 @@ for (var cu = 0x61 /* a */; cu <= 0x7a /* z */; ++cu) {
// IdentityEscape in ClassEscape
-for (var cu = 0x41 /* A */; cu <= 0x5a /* Z */; ++cu) {
+for (var cu = 0x41 /* A */ ; cu <= 0x5a /* Z */ ; ++cu) {
var s = String.fromCharCode(cu);
if (!isValidAlphaEscapeInClass(s)) {
assert.throws(SyntaxError, function() {
@@ -90,7 +90,7 @@ for (var cu = 0x41 /* A */; cu <= 0x5a /* Z */; ++cu) {
}, "IdentityEscape in ClassEscape: '" + s + "'");
}
}
-for (var cu = 0x61 /* a */; cu <= 0x7a /* z */; ++cu) {
+for (var cu = 0x61 /* a */ ; cu <= 0x7a /* z */ ; ++cu) {
var s = String.fromCharCode(cu);
if (!isValidAlphaEscapeInClass(s)) {
assert.throws(SyntaxError, function() {
diff --git a/test/built-ins/RegExp/unicode_restricted_identity_escape_c.js b/test/built-ins/RegExp/unicode_restricted_identity_escape_c.js
index 336a36f08..b8a2669fb 100644
--- a/test/built-ins/RegExp/unicode_restricted_identity_escape_c.js
+++ b/test/built-ins/RegExp/unicode_restricted_identity_escape_c.js
@@ -19,7 +19,9 @@ function isAlpha(c) {
//
// AtomEscape[U] :: CharacterEscape[?U]
// CharacterEscape[U] :: c ControlLetter
-assert.throws(SyntaxError, function() { RegExp("\\c", "u"); });
+assert.throws(SyntaxError, function() {
+ RegExp("\\c", "u");
+});
for (var cu = 0x00; cu <= 0x7f; ++cu) {
var s = String.fromCharCode(cu);
if (!isAlpha(s)) {
@@ -34,7 +36,9 @@ for (var cu = 0x00; cu <= 0x7f; ++cu) {
//
// ClassEscape[U] :: CharacterEscape[?U]
// CharacterEscape[U] :: c ControlLetter
-assert.throws(SyntaxError, function() { RegExp("[\\c]", "u"); });
+assert.throws(SyntaxError, function() {
+ RegExp("[\\c]", "u");
+});
for (var cu = 0x00; cu <= 0x7f; ++cu) {
var s = String.fromCharCode(cu);
if (!isAlpha(s)) {
diff --git a/test/built-ins/Set/properties-of-the-set-prototype-object.js b/test/built-ins/Set/properties-of-the-set-prototype-object.js
index ad46ab816..f32c80758 100644
--- a/test/built-ins/Set/properties-of-the-set-prototype-object.js
+++ b/test/built-ins/Set/properties-of-the-set-prototype-object.js
@@ -11,7 +11,7 @@ description: >
---*/
assert.sameValue(
- Object.getPrototypeOf(Set.prototype),
- Object.prototype,
- "`Object.getPrototypeOf(Set.prototype)` returns `Object.prototype`"
+ Object.getPrototypeOf(Set.prototype),
+ Object.prototype,
+ "`Object.getPrototypeOf(Set.prototype)` returns `Object.prototype`"
);
diff --git a/test/built-ins/Set/prototype-of-set.js b/test/built-ins/Set/prototype-of-set.js
index fe5f45fb1..966ec80df 100644
--- a/test/built-ins/Set/prototype-of-set.js
+++ b/test/built-ins/Set/prototype-of-set.js
@@ -8,7 +8,7 @@ description: >
---*/
assert.sameValue(
- Object.getPrototypeOf(Set),
- Function.prototype,
- "`Object.getPrototypeOf(Set)` returns `Function.prototype`"
+ Object.getPrototypeOf(Set),
+ Function.prototype,
+ "`Object.getPrototypeOf(Set)` returns `Function.prototype`"
);
diff --git a/test/built-ins/Set/prototype/add/add.js b/test/built-ins/Set/prototype/add/add.js
index f902a2134..775cd37a8 100644
--- a/test/built-ins/Set/prototype/add/add.js
+++ b/test/built-ins/Set/prototype/add/add.js
@@ -11,9 +11,9 @@ includes: [propertyHelper.js]
---*/
assert.sameValue(
- typeof Set.prototype.add,
- "function",
- "`typeof Set.prototype.add` is `'function'`"
+ typeof Set.prototype.add,
+ "function",
+ "`typeof Set.prototype.add` is `'function'`"
);
verifyNotEnumerable(Set.prototype, "add");
diff --git a/test/built-ins/Set/prototype/add/returns-this-when-ignoring-duplicate.js b/test/built-ins/Set/prototype/add/returns-this-when-ignoring-duplicate.js
index ae21ec5e0..37519db7e 100644
--- a/test/built-ins/Set/prototype/add/returns-this-when-ignoring-duplicate.js
+++ b/test/built-ins/Set/prototype/add/returns-this-when-ignoring-duplicate.js
@@ -14,6 +14,6 @@ description: >
---*/
-var s = new Set([ 1 ]);
+var s = new Set([1]);
assert.sameValue(s.add(1), s, "`s.add(1)` returns `s`");
diff --git a/test/built-ins/Set/prototype/add/will-not-add-duplicate-entry-initial-iterable.js b/test/built-ins/Set/prototype/add/will-not-add-duplicate-entry-initial-iterable.js
index 0298ce808..670481946 100644
--- a/test/built-ins/Set/prototype/add/will-not-add-duplicate-entry-initial-iterable.js
+++ b/test/built-ins/Set/prototype/add/will-not-add-duplicate-entry-initial-iterable.js
@@ -16,7 +16,7 @@ description: >
---*/
-var s = new Set([ 1 ]);
+var s = new Set([1]);
assert.sameValue(s.size, 1, "The value of `s.size` is `1`");
diff --git a/test/built-ins/Set/prototype/add/will-not-add-duplicate-entry-normalizes-zero.js b/test/built-ins/Set/prototype/add/will-not-add-duplicate-entry-normalizes-zero.js
index b7749a9dc..7ea0c2f46 100644
--- a/test/built-ins/Set/prototype/add/will-not-add-duplicate-entry-normalizes-zero.js
+++ b/test/built-ins/Set/prototype/add/will-not-add-duplicate-entry-normalizes-zero.js
@@ -16,7 +16,7 @@ description: >
---*/
-var s = new Set([ -0 ]);
+var s = new Set([-0]);
assert.sameValue(s.size, 1, "The value of `s.size` is `1`");
diff --git a/test/built-ins/Set/prototype/clear/clear.js b/test/built-ins/Set/prototype/clear/clear.js
index 98a5dfd95..3d770e4c9 100644
--- a/test/built-ins/Set/prototype/clear/clear.js
+++ b/test/built-ins/Set/prototype/clear/clear.js
@@ -11,9 +11,9 @@ includes: [propertyHelper.js]
---*/
assert.sameValue(
- typeof Set.prototype.clear,
- "function",
- "`typeof Set.prototype.clear` is `'function'`"
+ typeof Set.prototype.clear,
+ "function",
+ "`typeof Set.prototype.clear` is `'function'`"
);
verifyNotEnumerable(Set.prototype, "clear");
diff --git a/test/built-ins/Set/prototype/constructor/set-prototype-constructor-intrinsic.js b/test/built-ins/Set/prototype/constructor/set-prototype-constructor-intrinsic.js
index 73930249c..b60455a02 100644
--- a/test/built-ins/Set/prototype/constructor/set-prototype-constructor-intrinsic.js
+++ b/test/built-ins/Set/prototype/constructor/set-prototype-constructor-intrinsic.js
@@ -10,7 +10,7 @@ description: >
---*/
assert.sameValue(
- Set.prototype.constructor,
- Set,
- "The value of `Set.prototype.constructor` is `Set`"
+ Set.prototype.constructor,
+ Set,
+ "The value of `Set.prototype.constructor` is `Set`"
);
diff --git a/test/built-ins/Set/prototype/delete/delete-entry-initial-iterable.js b/test/built-ins/Set/prototype/delete/delete-entry-initial-iterable.js
index 6dbdb631e..eac255331 100644
--- a/test/built-ins/Set/prototype/delete/delete-entry-initial-iterable.js
+++ b/test/built-ins/Set/prototype/delete/delete-entry-initial-iterable.js
@@ -16,7 +16,7 @@ description: >
---*/
-var s = new Set([ 1 ]);
+var s = new Set([1]);
assert.sameValue(s.size, 1, "The value of `s.size` is `1`");
diff --git a/test/built-ins/Set/prototype/delete/delete-entry-normalizes-zero.js b/test/built-ins/Set/prototype/delete/delete-entry-normalizes-zero.js
index 15ed3a2e1..1726e96cd 100644
--- a/test/built-ins/Set/prototype/delete/delete-entry-normalizes-zero.js
+++ b/test/built-ins/Set/prototype/delete/delete-entry-normalizes-zero.js
@@ -15,7 +15,7 @@ description: >
---*/
-var s = new Set([ -0 ]);
+var s = new Set([-0]);
assert.sameValue(s.size, 1, "The value of `s.size` is `1`");
diff --git a/test/built-ins/Set/prototype/delete/delete.js b/test/built-ins/Set/prototype/delete/delete.js
index f654ca200..772a742d0 100644
--- a/test/built-ins/Set/prototype/delete/delete.js
+++ b/test/built-ins/Set/prototype/delete/delete.js
@@ -11,9 +11,9 @@ includes: [propertyHelper.js]
---*/
assert.sameValue(
- typeof Set.prototype.delete,
- "function",
- "`typeof Set.prototype.delete` is `'function'`"
+ typeof Set.prototype.delete,
+ "function",
+ "`typeof Set.prototype.delete` is `'function'`"
);
verifyNotEnumerable(Set.prototype, "delete");
diff --git a/test/built-ins/Set/prototype/entries/entries.js b/test/built-ins/Set/prototype/entries/entries.js
index 05bd32934..8bed7599a 100644
--- a/test/built-ins/Set/prototype/entries/entries.js
+++ b/test/built-ins/Set/prototype/entries/entries.js
@@ -11,9 +11,9 @@ includes: [propertyHelper.js]
---*/
assert.sameValue(
- typeof Set.prototype.entries,
- "function",
- "`typeof Set.prototype.entries` is `'function'`"
+ typeof Set.prototype.entries,
+ "function",
+ "`typeof Set.prototype.entries` is `'function'`"
);
verifyNotEnumerable(Set.prototype, "entries");
diff --git a/test/built-ins/Set/prototype/forEach/forEach.js b/test/built-ins/Set/prototype/forEach/forEach.js
index 92d63cfd3..49ba06e75 100644
--- a/test/built-ins/Set/prototype/forEach/forEach.js
+++ b/test/built-ins/Set/prototype/forEach/forEach.js
@@ -11,9 +11,9 @@ includes: [propertyHelper.js]
---*/
assert.sameValue(
- typeof Set.prototype.forEach,
- "function",
- "`typeof Set.prototype.forEach` is `'function'`"
+ typeof Set.prototype.forEach,
+ "function",
+ "`typeof Set.prototype.forEach` is `'function'`"
);
verifyNotEnumerable(Set.prototype, "forEach");
diff --git a/test/built-ins/Set/prototype/forEach/returns-undefined.js b/test/built-ins/Set/prototype/forEach/returns-undefined.js
index b3e1b02c3..7b04f8461 100644
--- a/test/built-ins/Set/prototype/forEach/returns-undefined.js
+++ b/test/built-ins/Set/prototype/forEach/returns-undefined.js
@@ -13,7 +13,7 @@ description: >
var s = new Set([1]);
assert.sameValue(
- s.forEach(function() {}),
- undefined,
- "`s.forEach(function() {})` returns `undefined`"
+ s.forEach(function() {}),
+ undefined,
+ "`s.forEach(function() {})` returns `undefined`"
);
diff --git a/test/built-ins/Set/prototype/has/has.js b/test/built-ins/Set/prototype/has/has.js
index dae711e14..7a2604657 100644
--- a/test/built-ins/Set/prototype/has/has.js
+++ b/test/built-ins/Set/prototype/has/has.js
@@ -11,9 +11,9 @@ includes: [propertyHelper.js]
---*/
assert.sameValue(
- typeof Set.prototype.has,
- "function",
- "`typeof Set.prototype.has` is `'function'`"
+ typeof Set.prototype.has,
+ "function",
+ "`typeof Set.prototype.has` is `'function'`"
);
verifyNotEnumerable(Set.prototype, "has");
diff --git a/test/built-ins/Set/prototype/has/returns-false-when-undefined-added-deleted-not-present-undefined.js b/test/built-ins/Set/prototype/has/returns-false-when-undefined-added-deleted-not-present-undefined.js
index 78e71e499..b785272e1 100644
--- a/test/built-ins/Set/prototype/has/returns-false-when-undefined-added-deleted-not-present-undefined.js
+++ b/test/built-ins/Set/prototype/has/returns-false-when-undefined-added-deleted-not-present-undefined.js
@@ -19,4 +19,3 @@ var result = s.delete(undefined);
assert.sameValue(s.has(undefined), false, "`s.has(undefined)` returns `false`");
assert.sameValue(result, true, "The result of `s.delete(undefined)` is `true`");
-
diff --git a/test/built-ins/Set/prototype/keys/keys.js b/test/built-ins/Set/prototype/keys/keys.js
index 7b3f8a0b8..f5065081a 100644
--- a/test/built-ins/Set/prototype/keys/keys.js
+++ b/test/built-ins/Set/prototype/keys/keys.js
@@ -9,7 +9,7 @@
---*/
assert.sameValue(
- Set.prototype.keys,
- Set.prototype.values,
- "The value of `Set.prototype.keys` is `Set.prototype.values`"
+ Set.prototype.keys,
+ Set.prototype.values,
+ "The value of `Set.prototype.keys` is `Set.prototype.values`"
);
diff --git a/test/built-ins/Set/prototype/size/size.js b/test/built-ins/Set/prototype/size/size.js
index d3c6c401b..db02a7bbb 100644
--- a/test/built-ins/Set/prototype/size/size.js
+++ b/test/built-ins/Set/prototype/size/size.js
@@ -13,14 +13,14 @@ includes: [propertyHelper.js]
var descriptor = Object.getOwnPropertyDescriptor(Set.prototype, "size");
assert.sameValue(
- typeof descriptor.get,
- "function",
- "`typeof descriptor.get` is `'function'`"
+ typeof descriptor.get,
+ "function",
+ "`typeof descriptor.get` is `'function'`"
);
assert.sameValue(
- typeof descriptor.set,
- "undefined",
- "`typeof descriptor.set` is `\"undefined\"`"
+ typeof descriptor.set,
+ "undefined",
+ "`typeof descriptor.set` is `\"undefined\"`"
);
verifyNotEnumerable(Set.prototype, "size");
diff --git a/test/built-ins/Set/prototype/values/values.js b/test/built-ins/Set/prototype/values/values.js
index e58e93263..4f9121c9f 100644
--- a/test/built-ins/Set/prototype/values/values.js
+++ b/test/built-ins/Set/prototype/values/values.js
@@ -11,9 +11,9 @@ includes: [propertyHelper.js]
---*/
assert.sameValue(
- typeof Set.prototype.values,
- "function",
- "`typeof Set.prototype.values` is `'function'`"
+ typeof Set.prototype.values,
+ "function",
+ "`typeof Set.prototype.values` is `'function'`"
);
verifyNotEnumerable(Set.prototype, "values");
diff --git a/test/built-ins/Set/set-iterator-close-after-add-failure.js b/test/built-ins/Set/set-iterator-close-after-add-failure.js
index fa2c30b9d..ad077f633 100644
--- a/test/built-ins/Set/set-iterator-close-after-add-failure.js
+++ b/test/built-ins/Set/set-iterator-close-after-add-failure.js
@@ -25,14 +25,19 @@ var iterable = {};
iterable[Symbol.iterator] = function() {
return {
next: function() {
- return { value: null, done: false };
+ return {
+ value: null,
+ done: false
+ };
},
return: function() {
count += 1;
}
};
};
-Set.prototype.add = function() { throw new Error(); }
+Set.prototype.add = function() {
+ throw new Error();
+}
assert.throws(Error, function() {
new Set(iterable);
diff --git a/test/built-ins/Set/set-iterator-next-failure.js b/test/built-ins/Set/set-iterator-next-failure.js
index 9879baf9b..171abef9c 100644
--- a/test/built-ins/Set/set-iterator-next-failure.js
+++ b/test/built-ins/Set/set-iterator-next-failure.js
@@ -15,6 +15,7 @@ features: [Symbol.iterator]
---*/
var iterable = {};
+
function MyError() {};
iterable[Symbol.iterator] = function() {
return {
diff --git a/test/built-ins/Set/set-iterator-value-failure.js b/test/built-ins/Set/set-iterator-value-failure.js
index 04e943a41..ac45b116f 100644
--- a/test/built-ins/Set/set-iterator-value-failure.js
+++ b/test/built-ins/Set/set-iterator-value-failure.js
@@ -17,6 +17,7 @@ features: [Symbol.iterator]
var count = 0;
var iterable = {};
+
function MyError() {}
iterable[Symbol.iterator] = function() {
return {
diff --git a/test/built-ins/Set/set-newtarget.js b/test/built-ins/Set/set-newtarget.js
index fb7cd1d67..d5d9613e0 100644
--- a/test/built-ins/Set/set-newtarget.js
+++ b/test/built-ins/Set/set-newtarget.js
@@ -16,15 +16,15 @@ description: >
var s1 = new Set();
assert.sameValue(
- Object.getPrototypeOf(s1),
- Set.prototype,
- "`Object.getPrototypeOf(s1)` returns `Set.prototype`"
+ Object.getPrototypeOf(s1),
+ Set.prototype,
+ "`Object.getPrototypeOf(s1)` returns `Set.prototype`"
);
var s2 = new Set([1, 2]);
assert.sameValue(
- Object.getPrototypeOf(s2),
- Set.prototype,
- "`Object.getPrototypeOf(s2)` returns `Set.prototype`"
+ Object.getPrototypeOf(s2),
+ Set.prototype,
+ "`Object.getPrototypeOf(s2)` returns `Set.prototype`"
);
diff --git a/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-keys.js b/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-keys.js
index 6f1269bdb..8f2562fe9 100644
--- a/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-keys.js
+++ b/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-keys.js
@@ -17,7 +17,10 @@ features:
- Symbol.iterator
---*/
-var set = new Set([[1, 11], [2, 22]]);
+var set = new Set([
+ [1, 11],
+ [2, 22]
+]);
var iterator = set.keys();
assert.throws(TypeError, function() {
diff --git a/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-prototype-iterator.js b/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-prototype-iterator.js
index 1d589b0fe..1c622ba8d 100644
--- a/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-prototype-iterator.js
+++ b/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-prototype-iterator.js
@@ -17,7 +17,10 @@ features:
- Symbol.iterator
---*/
-var set = new Set([[1, 11], [2, 22]]);
+var set = new Set([
+ [1, 11],
+ [2, 22]
+]);
var iterator = set[Symbol.iterator]();
assert.throws(TypeError, function() {
diff --git a/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-values.js b/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-values.js
index 04e44f985..a5f0c47cf 100644
--- a/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-values.js
+++ b/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-values.js
@@ -17,7 +17,10 @@ features:
- Symbol.iterator
---*/
-var set = new Set([[1, 11], [2, 22]]);
+var set = new Set([
+ [1, 11],
+ [2, 22]
+]);
var iterator = set.values();
assert.throws(TypeError, function() {
diff --git a/test/built-ins/SharedArrayBuffer/data-allocation-after-object-creation.js b/test/built-ins/SharedArrayBuffer/data-allocation-after-object-creation.js
index 6e3055f6f..db067b0af 100644
--- a/test/built-ins/SharedArrayBuffer/data-allocation-after-object-creation.js
+++ b/test/built-ins/SharedArrayBuffer/data-allocation-after-object-creation.js
@@ -21,9 +21,9 @@ info: |
features: [Reflect.construct]
---*/
-function DummyError() { }
+function DummyError() {}
-var newTarget = function(){}.bind(null);
+var newTarget = function() {}.bind(null);
Object.defineProperty(newTarget, "prototype", {
get: function() {
throw new DummyError();
diff --git a/test/built-ins/SharedArrayBuffer/newtarget-prototype-is-not-object.js b/test/built-ins/SharedArrayBuffer/newtarget-prototype-is-not-object.js
index 5fe703335..9a744c30b 100644
--- a/test/built-ins/SharedArrayBuffer/newtarget-prototype-is-not-object.js
+++ b/test/built-ins/SharedArrayBuffer/newtarget-prototype-is-not-object.js
@@ -21,7 +21,7 @@ info: |
features: [Symbol, Reflect.construct]
---*/
-function newTarget() { }
+function newTarget() {}
newTarget.prototype = undefined;
var arrayBuffer = Reflect.construct(SharedArrayBuffer, [1], newTarget);
diff --git a/test/built-ins/SharedArrayBuffer/prototype-from-newtarget.js b/test/built-ins/SharedArrayBuffer/prototype-from-newtarget.js
index 3f0f40e49..57d025952 100644
--- a/test/built-ins/SharedArrayBuffer/prototype-from-newtarget.js
+++ b/test/built-ins/SharedArrayBuffer/prototype-from-newtarget.js
@@ -24,7 +24,7 @@ features: [Reflect.construct]
var arrayBuffer = Reflect.construct(SharedArrayBuffer, [8], Object);
assert.sameValue(Object.getPrototypeOf(arrayBuffer), Object.prototype, "NewTarget is built-in Object constructor");
-var newTarget = function(){}.bind(null);
+var newTarget = function() {}.bind(null);
Object.defineProperty(newTarget, "prototype", {
get: function() {
return Array.prototype;
diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/end-default-if-undefined.js b/test/built-ins/SharedArrayBuffer/prototype/slice/end-default-if-undefined.js
index f7ab35ebe..e9957b4a6 100644
--- a/test/built-ins/SharedArrayBuffer/prototype/slice/end-default-if-undefined.js
+++ b/test/built-ins/SharedArrayBuffer/prototype/slice/end-default-if-undefined.js
@@ -12,6 +12,7 @@ info: |
var arrayBuffer = new SharedArrayBuffer(8);
-var start = 6, end = undefined;
+var start = 6,
+ end = undefined;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 2);
diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/end-exceeds-length.js b/test/built-ins/SharedArrayBuffer/prototype/slice/end-exceeds-length.js
index 6c5fcb58e..65da03f28 100644
--- a/test/built-ins/SharedArrayBuffer/prototype/slice/end-exceeds-length.js
+++ b/test/built-ins/SharedArrayBuffer/prototype/slice/end-exceeds-length.js
@@ -12,14 +12,17 @@ info: |
var arrayBuffer = new SharedArrayBuffer(8);
-var start = 1, end = 12;
+var start = 1,
+ end = 12;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 7, "slice(1, 12)");
-var start = 2, end = 0x100000000;
+var start = 2,
+ end = 0x100000000;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 6, "slice(2, 0x100000000)");
-var start = 3, end = +Infinity;
+var start = 3,
+ end = +Infinity;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 5, "slice(3, Infinity)");
diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/negative-end.js b/test/built-ins/SharedArrayBuffer/prototype/slice/negative-end.js
index efdcbeec1..cfb7288ad 100644
--- a/test/built-ins/SharedArrayBuffer/prototype/slice/negative-end.js
+++ b/test/built-ins/SharedArrayBuffer/prototype/slice/negative-end.js
@@ -12,14 +12,17 @@ info: |
var arrayBuffer = new SharedArrayBuffer(8);
-var start = 2, end = -4;
+var start = 2,
+ end = -4;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 2, "slice(2, -4)");
-var start = 2, end = -10;
+var start = 2,
+ end = -10;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 0, "slice(2, -10)");
-var start = 2, end = -Infinity;
+var start = 2,
+ end = -Infinity;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 0, "slice(2, -Infinity)");
diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/negative-start.js b/test/built-ins/SharedArrayBuffer/prototype/slice/negative-start.js
index 9312d273d..19e276a65 100644
--- a/test/built-ins/SharedArrayBuffer/prototype/slice/negative-start.js
+++ b/test/built-ins/SharedArrayBuffer/prototype/slice/negative-start.js
@@ -12,14 +12,17 @@ info: |
var arrayBuffer = new SharedArrayBuffer(8);
-var start = -5, end = 6;
+var start = -5,
+ end = 6;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 3, "slice(-5, 6)");
-var start = -12, end = 6;
+var start = -12,
+ end = 6;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 6, "slice(-12, 6)");
-var start = -Infinity, end = 6;
+var start = -Infinity,
+ end = 6;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 6, "slice(-Infinity, 6)");
diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/nonconstructor.js b/test/built-ins/SharedArrayBuffer/prototype/slice/nonconstructor.js
index 98770045b..ca61abaa9 100644
--- a/test/built-ins/SharedArrayBuffer/prototype/slice/nonconstructor.js
+++ b/test/built-ins/SharedArrayBuffer/prototype/slice/nonconstructor.js
@@ -17,4 +17,6 @@ info: |
assert.sameValue(Object.prototype.hasOwnProperty.call(SharedArrayBuffer.prototype.slice, "prototype"), false);
var arrayBuffer = new SharedArrayBuffer(8);
-assert.throws(TypeError, function() { new arrayBuffer.slice(); });
+assert.throws(TypeError, function() {
+ new arrayBuffer.slice();
+});
diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/species-constructor-is-not-object.js b/test/built-ins/SharedArrayBuffer/prototype/slice/species-constructor-is-not-object.js
index b3f045652..ea4595dc0 100644
--- a/test/built-ins/SharedArrayBuffer/prototype/slice/species-constructor-is-not-object.js
+++ b/test/built-ins/SharedArrayBuffer/prototype/slice/species-constructor-is-not-object.js
@@ -13,7 +13,9 @@ features: [Symbol]
var arrayBuffer = new SharedArrayBuffer(8);
-function callSlice() { arrayBuffer.slice(); }
+function callSlice() {
+ arrayBuffer.slice();
+}
arrayBuffer.constructor = null;
assert.throws(TypeError, callSlice, "`constructor` value is null");
diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-constructor.js b/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-constructor.js
index e403a69a0..4e5e392fc 100644
--- a/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-constructor.js
+++ b/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-constructor.js
@@ -16,7 +16,9 @@ var speciesConstructor = {};
var arrayBuffer = new SharedArrayBuffer(8);
arrayBuffer.constructor = speciesConstructor;
-function callSlice() { arrayBuffer.slice(); }
+function callSlice() {
+ arrayBuffer.slice();
+}
speciesConstructor[Symbol.species] = {};
assert.throws(TypeError, callSlice, "`constructor[Symbol.species]` value is Object");
diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-object.js b/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-object.js
index 350ba71c4..9e1398108 100644
--- a/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-object.js
+++ b/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-object.js
@@ -16,7 +16,9 @@ var speciesConstructor = {};
var arrayBuffer = new SharedArrayBuffer(8);
arrayBuffer.constructor = speciesConstructor;
-function callSlice() { arrayBuffer.slice(); }
+function callSlice() {
+ arrayBuffer.slice();
+}
speciesConstructor[Symbol.species] = true;
assert.throws(TypeError, callSlice, "`constructor[Symbol.species]` value is Boolean");
diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/start-default-if-undefined.js b/test/built-ins/SharedArrayBuffer/prototype/slice/start-default-if-undefined.js
index 83ef93ec3..6a4809c21 100644
--- a/test/built-ins/SharedArrayBuffer/prototype/slice/start-default-if-undefined.js
+++ b/test/built-ins/SharedArrayBuffer/prototype/slice/start-default-if-undefined.js
@@ -11,6 +11,7 @@ info: |
var arrayBuffer = new SharedArrayBuffer(8);
-var start = undefined, end = 6;
+var start = undefined,
+ end = 6;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 6);
diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/start-exceeds-end.js b/test/built-ins/SharedArrayBuffer/prototype/slice/start-exceeds-end.js
index 2f2e3a47f..20b05d817 100644
--- a/test/built-ins/SharedArrayBuffer/prototype/slice/start-exceeds-end.js
+++ b/test/built-ins/SharedArrayBuffer/prototype/slice/start-exceeds-end.js
@@ -12,6 +12,7 @@ info: |
var arrayBuffer = new SharedArrayBuffer(8);
-var start = 5, end = 4;
+var start = 5,
+ end = 4;
var result = arrayBuffer.slice(start, end);
assert.sameValue(result.byteLength, 0);
diff --git a/test/built-ins/String/15.5.5.5.2-1-1.js b/test/built-ins/String/15.5.5.5.2-1-1.js
index acbb0c897..98c0f6eef 100644
--- a/test/built-ins/String/15.5.5.5.2-1-1.js
+++ b/test/built-ins/String/15.5.5.5.2-1-1.js
@@ -11,8 +11,8 @@ description: >
properties
---*/
- var s = new String("hello world");
- s.foo = 1;
-
+var s = new String("hello world");
+s.foo = 1;
+
assert.sameValue(s["foo"], 1, 's["foo"]');
diff --git a/test/built-ins/String/15.5.5.5.2-1-2.js b/test/built-ins/String/15.5.5.5.2-1-2.js
index 851636111..9efad2dcd 100644
--- a/test/built-ins/String/15.5.5.5.2-1-2.js
+++ b/test/built-ins/String/15.5.5.5.2-1-2.js
@@ -9,7 +9,7 @@ es5id: 15.5.5.5.2-1-2
description: String value supports bracket notation to lookup data properties
---*/
- var s = String("hello world");
-
+var s = String("hello world");
+
assert.sameValue(s["foo"], undefined, 's["foo"]');
diff --git a/test/built-ins/String/15.5.5.5.2-3-1.js b/test/built-ins/String/15.5.5.5.2-3-1.js
index 9b9f81b51..a493c5990 100644
--- a/test/built-ins/String/15.5.5.5.2-3-1.js
+++ b/test/built-ins/String/15.5.5.5.2-3-1.js
@@ -11,7 +11,7 @@ description: >
properties
---*/
- var s = new String("hello world");
-
+var s = new String("hello world");
+
assert.sameValue(s["foo"], undefined, 's["foo"]');
diff --git a/test/built-ins/String/15.5.5.5.2-3-2.js b/test/built-ins/String/15.5.5.5.2-3-2.js
index 5f67b04a2..dc6f98679 100644
--- a/test/built-ins/String/15.5.5.5.2-3-2.js
+++ b/test/built-ins/String/15.5.5.5.2-3-2.js
@@ -9,7 +9,7 @@ es5id: 15.5.5.5.2-3-2
description: String value indexing returns undefined for missing data properties
---*/
- var s = String("hello world");
-
+var s = String("hello world");
+
assert.sameValue(s["foo"], undefined, 's["foo"]');
diff --git a/test/built-ins/String/15.5.5.5.2-3-3.js b/test/built-ins/String/15.5.5.5.2-3-3.js
index 555772630..25546a0c4 100644
--- a/test/built-ins/String/15.5.5.5.2-3-3.js
+++ b/test/built-ins/String/15.5.5.5.2-3-3.js
@@ -11,6 +11,6 @@ description: >
(NaN) is not an array index
---*/
- var s = new String("hello world");
+var s = new String("hello world");
assert.sameValue(s[NaN], undefined, 's[NaN]');
diff --git a/test/built-ins/String/15.5.5.5.2-3-4.js b/test/built-ins/String/15.5.5.5.2-3-4.js
index e02a8931c..8ffbdbb7b 100644
--- a/test/built-ins/String/15.5.5.5.2-3-4.js
+++ b/test/built-ins/String/15.5.5.5.2-3-4.js
@@ -11,6 +11,6 @@ description: >
(Infinity) is not an array index
---*/
- var s = new String("hello world");
+var s = new String("hello world");
assert.sameValue(s[Infinity], undefined, 's[Infinity]');
diff --git a/test/built-ins/String/15.5.5.5.2-3-5.js b/test/built-ins/String/15.5.5.5.2-3-5.js
index 04818478c..fc2e535d7 100644
--- a/test/built-ins/String/15.5.5.5.2-3-5.js
+++ b/test/built-ins/String/15.5.5.5.2-3-5.js
@@ -11,6 +11,6 @@ description: >
2^32-1) is not an array index
---*/
- var s = new String("hello world");
+var s = new String("hello world");
-assert.sameValue(s[Math.pow(2, 32)-1], undefined, 's[Math.pow(2, 32)-1]');
+assert.sameValue(s[Math.pow(2, 32) - 1], undefined, 's[Math.pow(2, 32)-1]');
diff --git a/test/built-ins/String/15.5.5.5.2-3-6.js b/test/built-ins/String/15.5.5.5.2-3-6.js
index 7f0787391..3054072d8 100644
--- a/test/built-ins/String/15.5.5.5.2-3-6.js
+++ b/test/built-ins/String/15.5.5.5.2-3-6.js
@@ -11,6 +11,6 @@ description: >
is not an array index
---*/
- var s = String("hello world");
+var s = String("hello world");
assert.sameValue(s[NaN], undefined, 's[NaN]');
diff --git a/test/built-ins/String/15.5.5.5.2-3-7.js b/test/built-ins/String/15.5.5.5.2-3-7.js
index 6f974d61f..1b60af205 100644
--- a/test/built-ins/String/15.5.5.5.2-3-7.js
+++ b/test/built-ins/String/15.5.5.5.2-3-7.js
@@ -11,6 +11,6 @@ description: >
(Infinity) is not an array index
---*/
- var s = String("hello world");
+var s = String("hello world");
assert.sameValue(s[Infinity], undefined, 's[Infinity]');
diff --git a/test/built-ins/String/15.5.5.5.2-3-8.js b/test/built-ins/String/15.5.5.5.2-3-8.js
index 9243d4049..92d91bf23 100644
--- a/test/built-ins/String/15.5.5.5.2-3-8.js
+++ b/test/built-ins/String/15.5.5.5.2-3-8.js
@@ -11,6 +11,6 @@ description: >
2^32-1) is not an array index
---*/
- var s = String("hello world");
+var s = String("hello world");
-assert.sameValue(s[Math.pow(2, 32)-1], undefined, 's[Math.pow(2, 32)-1]');
+assert.sameValue(s[Math.pow(2, 32) - 1], undefined, 's[Math.pow(2, 32)-1]');
diff --git a/test/built-ins/String/15.5.5.5.2-7-1.js b/test/built-ins/String/15.5.5.5.2-7-1.js
index 6c19ec9e6..d9ecc4a7d 100644
--- a/test/built-ins/String/15.5.5.5.2-7-1.js
+++ b/test/built-ins/String/15.5.5.5.2-7-1.js
@@ -11,6 +11,6 @@ description: >
less than 0
---*/
- var s = new String("hello world");
+var s = new String("hello world");
assert.sameValue(s[-1], undefined, 's[-1]');
diff --git a/test/built-ins/String/15.5.5.5.2-7-2.js b/test/built-ins/String/15.5.5.5.2-7-2.js
index c1f7e04c0..3bbe6005f 100644
--- a/test/built-ins/String/15.5.5.5.2-7-2.js
+++ b/test/built-ins/String/15.5.5.5.2-7-2.js
@@ -11,6 +11,6 @@ description: >
less than 0
---*/
- var s = String("hello world");
+var s = String("hello world");
assert.sameValue(s[-1], undefined, 's[-1]');
diff --git a/test/built-ins/String/15.5.5.5.2-7-3.js b/test/built-ins/String/15.5.5.5.2-7-3.js
index 8d3cea0d6..f23c8f9fe 100644
--- a/test/built-ins/String/15.5.5.5.2-7-3.js
+++ b/test/built-ins/String/15.5.5.5.2-7-3.js
@@ -11,6 +11,6 @@ description: >
greater than the string length
---*/
- var s = new String("hello world");
+var s = new String("hello world");
assert.sameValue(s[11], undefined, 's[11]');
diff --git a/test/built-ins/String/15.5.5.5.2-7-4.js b/test/built-ins/String/15.5.5.5.2-7-4.js
index be718e79a..8cf1869b1 100644
--- a/test/built-ins/String/15.5.5.5.2-7-4.js
+++ b/test/built-ins/String/15.5.5.5.2-7-4.js
@@ -11,6 +11,6 @@ description: >
greater than the string length
---*/
- var s = String("hello world");
+var s = String("hello world");
assert.sameValue(s[11], undefined, 's[11]');
diff --git a/test/built-ins/String/S15.5.1.1_A1_T1.js b/test/built-ins/String/S15.5.1.1_A1_T1.js
index 65ae34d4c..85c920644 100644
--- a/test/built-ins/String/S15.5.1.1_A1_T1.js
+++ b/test/built-ins/String/S15.5.1.1_A1_T1.js
@@ -9,12 +9,12 @@ es5id: 15.5.1.1_A1_T1
description: Call String(function(){}())
---*/
-var __str = String(function(){}());
+var __str = String(function() {}());
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "string") {
- $ERROR('#1: __str = String(function(){}()); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = String(function(){}()); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,7 +22,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str !== "undefined") {
- $ERROR('#2: __str = String(function(){}()); __str === "undefined". Actual: __str ==='+__str );
+ $ERROR('#2: __str = String(function(){}()); __str === "undefined". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.1.1_A1_T10.js b/test/built-ins/String/S15.5.1.1_A1_T10.js
index 794b4f033..55598c4bc 100644
--- a/test/built-ins/String/S15.5.1.1_A1_T10.js
+++ b/test/built-ins/String/S15.5.1.1_A1_T10.js
@@ -14,7 +14,7 @@ var __str = String(1);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "string") {
- $ERROR('#1: __str = String(1); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = String(1); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,7 +22,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str !== "1") {
- $ERROR('#2: __str = String(1); __str === "1". Actual: __str ==='+__str );
+ $ERROR('#2: __str = String(1); __str === "1". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -32,7 +32,7 @@ __str = String(-1);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "string") {
- $ERROR('#3: __str = String(-1); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#3: __str = String(-1); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -40,7 +40,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str !== "-1") {
- $ERROR('#4: __str = String(-1); __str === "-1". Actual: __str ==='+__str );
+ $ERROR('#4: __str = String(-1); __str === "-1". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.1.1_A1_T11.js b/test/built-ins/String/S15.5.1.1_A1_T11.js
index 9543e370e..6ce2f8542 100644
--- a/test/built-ins/String/S15.5.1.1_A1_T11.js
+++ b/test/built-ins/String/S15.5.1.1_A1_T11.js
@@ -9,12 +9,12 @@ es5id: 15.5.1.1_A1_T11
description: Call String(1/0) and String(-1/0), and call with +/-Infinity
---*/
-var __str = String(1/0);
+var __str = String(1 / 0);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "string") {
- $ERROR('#1: __str = String(1/0); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = String(1/0); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,17 +22,17 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str !== "Infinity") {
- $ERROR('#2: __str = String(1/0); __str === "Infinity". Actual: __str ==='+__str );
+ $ERROR('#2: __str = String(1/0); __str === "Infinity". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
-__str = String(-1/0);
+__str = String(-1 / 0);
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (typeof __str !== "string") {
- $ERROR('#3: __str = String(-1/0); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#3: __str = String(-1/0); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -40,7 +40,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__str !== "-Infinity") {
- $ERROR('#4: __str = String(-1/0); __str === "-Infinity". Actual: __str ==='+__str );
+ $ERROR('#4: __str = String(-1/0); __str === "-Infinity". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -50,7 +50,7 @@ __str = String(Infinity);
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (typeof __str !== "string") {
- $ERROR('#5: __str = String(Infinity); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#5: __str = String(Infinity); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -58,7 +58,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#6
if (__str !== "Infinity") {
- $ERROR('#6: __str = String(Infinity); __str === "Infinity". Actual: __str ==='+__str );
+ $ERROR('#6: __str = String(Infinity); __str === "Infinity". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -68,7 +68,7 @@ __str = String(-Infinity);
//////////////////////////////////////////////////////////////////////////////
//CHECK#7
if (typeof __str !== "string") {
- $ERROR('#7: __str = String(-Infinity); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#7: __str = String(-Infinity); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -76,7 +76,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#8
if (__str !== "-Infinity") {
- $ERROR('#8: __str = String(-Infinity); __str === "-Infinity". Actual: __str ==='+__str );
+ $ERROR('#8: __str = String(-Infinity); __str === "-Infinity". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -86,7 +86,7 @@ __str = String(Number.POSITIVE_INFINITY);
//////////////////////////////////////////////////////////////////////////////
//CHECK#9
if (typeof __str !== "string") {
- $ERROR('#9: __str = String(Number.POSITIVE_INFINITY); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#9: __str = String(Number.POSITIVE_INFINITY); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -94,7 +94,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#10
if (__str !== "Infinity") {
- $ERROR('#10: __str = String(Number.POSITIVE_INFINITY); __str === "Infinity". Actual: __str ==='+__str );
+ $ERROR('#10: __str = String(Number.POSITIVE_INFINITY); __str === "Infinity". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -104,7 +104,7 @@ __str = String(Number.NEGATIVE_INFINITY);
//////////////////////////////////////////////////////////////////////////////
//CHECK#11
if (typeof __str !== "string") {
- $ERROR('#11: __str = String(Number.NEGATIVE_INFINITY); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#11: __str = String(Number.NEGATIVE_INFINITY); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -112,7 +112,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#12
if (__str !== "-Infinity") {
- $ERROR('#12: __str = String(Number.NEGATIVE_INFINITY); __str === "-Infinity". Actual: __str ==='+__str );
+ $ERROR('#12: __str = String(Number.NEGATIVE_INFINITY); __str === "-Infinity". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.1.1_A1_T12.js b/test/built-ins/String/S15.5.1.1_A1_T12.js
index 2a199ca72..dfb9def71 100644
--- a/test/built-ins/String/S15.5.1.1_A1_T12.js
+++ b/test/built-ins/String/S15.5.1.1_A1_T12.js
@@ -9,12 +9,12 @@ es5id: 15.5.1.1_A1_T12
description: Call String(1/"a"), String("b"* null) and String(Number.NaN)
---*/
-var __str = String(1/"a");
+var __str = String(1 / "a");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "string") {
- $ERROR('#1: __str = String(1/"a"); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = String(1/"a"); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,17 +22,17 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str !== "NaN") {
- $ERROR('#2: __str = String(1/"a"); __str === "NaN". Actual: __str ==='+__str );
+ $ERROR('#2: __str = String(1/"a"); __str === "NaN". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
-__str = String("b"*null);
+__str = String("b" * null);
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (typeof __str !== "string") {
- $ERROR('#3: __str = String("b"*null); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#3: __str = String("b"*null); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -40,7 +40,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__str !== "NaN") {
- $ERROR('#4: __str = String("b"*null); __str === "NaN". Actual: __str ==='+__str );
+ $ERROR('#4: __str = String("b"*null); __str === "NaN". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -50,7 +50,7 @@ __str = String(Number.NaN);
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (typeof __str !== "string") {
- $ERROR('#5: __str = String(Number.NaN); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#5: __str = String(Number.NaN); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -58,7 +58,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#6
if (__str !== "NaN") {
- $ERROR('#6: __str = String(Number.NaN); __str === "NaN". Actual: __str ==='+__str );
+ $ERROR('#6: __str = String(Number.NaN); __str === "NaN". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.1.1_A1_T13.js b/test/built-ins/String/S15.5.1.1_A1_T13.js
index 02253bd81..2d92a9509 100644
--- a/test/built-ins/String/S15.5.1.1_A1_T13.js
+++ b/test/built-ins/String/S15.5.1.1_A1_T13.js
@@ -14,7 +14,7 @@ var __str = String(true);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "string") {
- $ERROR('#1: __str = String(true); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = String(true); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,7 +22,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str !== "true") {
- $ERROR('#2: __str = String(true); __str === "true". Actual: __str ==='+__str );
+ $ERROR('#2: __str = String(true); __str === "true". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -32,7 +32,7 @@ __str = String(false);
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (typeof __str !== "string") {
- $ERROR('#3: __str = String(false); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#3: __str = String(false); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -40,7 +40,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__str !== "false") {
- $ERROR('#4: __str = String(false); __str === "false". Actual: __str ==='+__str );
+ $ERROR('#4: __str = String(false); __str === "false". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -50,7 +50,7 @@ __str = String(Boolean(true));
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (typeof __str !== "string") {
- $ERROR('#5: __str = String(Boolean(true)); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#5: __str = String(Boolean(true)); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -58,7 +58,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#6
if (__str !== "true") {
- $ERROR('#6: __str = String(Boolean(true)); __str === "true". Actual: __str ==='+__str );
+ $ERROR('#6: __str = String(Boolean(true)); __str === "true". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -68,7 +68,7 @@ __str = String(Boolean(false));
//////////////////////////////////////////////////////////////////////////////
//CHECK#7
if (typeof __str !== "string") {
- $ERROR('#7: __str = String(Boolean(false)); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#7: __str = String(Boolean(false)); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -76,7 +76,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#8
if (__str !== "false") {
- $ERROR('#8: __str = String(Boolean(false)); __str === "false". Actual: __str ==='+__str );
+ $ERROR('#8: __str = String(Boolean(false)); __str === "false". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.1.1_A1_T14.js b/test/built-ins/String/S15.5.1.1_A1_T14.js
index 415e69900..43d5585df 100644
--- a/test/built-ins/String/S15.5.1.1_A1_T14.js
+++ b/test/built-ins/String/S15.5.1.1_A1_T14.js
@@ -14,7 +14,7 @@ var __str = String(0);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "string") {
- $ERROR('#1: __str = String(0); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = String(0); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,7 +22,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str !== "0") {
- $ERROR('#2: __str = String(0); __str === "0". Actual: __str ==='+__str );
+ $ERROR('#2: __str = String(0); __str === "0". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -32,7 +32,7 @@ __str = String(-0);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "string") {
- $ERROR('#3: __str = String(-0); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#3: __str = String(-0); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -40,7 +40,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str !== "0") {
- $ERROR('#4: __str = String(-0); __str === "0". Actual: __str ==='+__str );
+ $ERROR('#4: __str = String(-0); __str === "0". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.1.1_A1_T15.js b/test/built-ins/String/S15.5.1.1_A1_T15.js
index 80e4b332f..dff5f4d4c 100644
--- a/test/built-ins/String/S15.5.1.1_A1_T15.js
+++ b/test/built-ins/String/S15.5.1.1_A1_T15.js
@@ -18,7 +18,7 @@ var __str = String(__obj__str);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__str !== __obj__str) {
- $ERROR('#1: __obj__str = "caps"; __str = String(__obj__str); __str === __obj__str. Actual: __str ==='+__str );
+ $ERROR('#1: __obj__str = "caps"; __str = String(__obj__str); __str === __obj__str. Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.1.1_A1_T16.js b/test/built-ins/String/S15.5.1.1_A1_T16.js
index fa12b41b4..69947b9bc 100644
--- a/test/built-ins/String/S15.5.1.1_A1_T16.js
+++ b/test/built-ins/String/S15.5.1.1_A1_T16.js
@@ -14,7 +14,7 @@ var __str = String(.12345);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "string") {
- $ERROR('#1: __str = String(.12345); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = String(.12345); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,7 +22,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str !== "0.12345") {
- $ERROR('#2: __str = String(.12345); __str === "0.12345". Actual: __str ==='+__str );
+ $ERROR('#2: __str = String(.12345); __str === "0.12345". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -32,7 +32,7 @@ __str = String(.012345);
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (typeof __str !== "string") {
- $ERROR('#3: __str = String(.012345); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#3: __str = String(.012345); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -40,7 +40,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__str !== "0.012345") {
- $ERROR('#4: __str = String(.012345); __str === "0.012345". Actual: __str ==='+__str );
+ $ERROR('#4: __str = String(.012345); __str === "0.012345". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -50,7 +50,7 @@ __str = String(.0012345);
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (typeof __str !== "string") {
- $ERROR('#5: __str = String(.0012345); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#5: __str = String(.0012345); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -58,7 +58,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#6
if (__str !== "0.0012345") {
- $ERROR('#6: __str = String(.0012345); __str === "0.0012345". Actual: __str ==='+__str );
+ $ERROR('#6: __str = String(.0012345); __str === "0.0012345". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -68,7 +68,7 @@ __str = String(.00000012345);
//////////////////////////////////////////////////////////////////////////////
//CHECK#7
if (typeof __str !== "string") {
- $ERROR('#7: __str = String(.00000012345); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#7: __str = String(.00000012345); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -76,7 +76,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#8
if (__str !== "1.2345e-7") {
- $ERROR('#8: __str = String(.00000012345); __str === "1.2345e-7". Actual: __str ==='+__str );
+ $ERROR('#8: __str = String(.00000012345); __str === "1.2345e-7". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.1.1_A1_T17.js b/test/built-ins/String/S15.5.1.1_A1_T17.js
index 408fb4bf6..85434eb86 100644
--- a/test/built-ins/String/S15.5.1.1_A1_T17.js
+++ b/test/built-ins/String/S15.5.1.1_A1_T17.js
@@ -16,7 +16,7 @@ var __str = String(1.2345);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "string") {
- $ERROR('#1: __str = String(1.2345); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = String(1.2345); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -24,7 +24,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str !== "1.2345") {
- $ERROR('#2: __str = String(1.2345); __str === "1.2345". Actual: __str ==='+__str );
+ $ERROR('#2: __str = String(1.2345); __str === "1.2345". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ __str = String(1.234567890);
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (typeof __str !== "string") {
- $ERROR('#3: __str = String(1.234567890); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#3: __str = String(1.234567890); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__str !== "1.23456789") {
- $ERROR('#4: __str = String(1.234567890); __str === "1.23456789". Actual: __str ==='+__str );
+ $ERROR('#4: __str = String(1.234567890); __str === "1.23456789". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -52,7 +52,7 @@ __str = String(1.234500000000000000000000000);
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (typeof __str !== "string") {
- $ERROR('#5: __str = String(1.234500000000000000000000000); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#5: __str = String(1.234500000000000000000000000); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -60,7 +60,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#6
if (__str !== "1.2345") {
- $ERROR('#6: __str = String(1.234500000000000000000000000); __str === "1.2345". Actual: __str ==='+__str );
+ $ERROR('#6: __str = String(1.234500000000000000000000000); __str === "1.2345". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.1.1_A1_T18.js b/test/built-ins/String/S15.5.1.1_A1_T18.js
index 0ef5d12d1..22a25a26a 100644
--- a/test/built-ins/String/S15.5.1.1_A1_T18.js
+++ b/test/built-ins/String/S15.5.1.1_A1_T18.js
@@ -10,11 +10,11 @@ description: Call String() with numbers that have more than 1 significant digit
---*/
var __str = String(1000000000000000000000);
-
+
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "string") {
- $ERROR('#1: __str = String(1000000000000000000000); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = String(1000000000000000000000); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,7 +22,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str !== "1e+21") {
- $ERROR('#2: __str = String(1000000000000000000000); __str === "1e+21". Actual: __str ==='+__str );
+ $ERROR('#2: __str = String(1000000000000000000000); __str === "1e+21". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -32,7 +32,7 @@ __str = String(10000000000000000000000);
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (typeof __str !== "string") {
- $ERROR('#3: __str = String(10000000000000000000000); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#3: __str = String(10000000000000000000000); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -40,7 +40,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__str !== "1e+22") {
- $ERROR('#4: __str = String(10000000000000000000000); __str === "1e+22". Actual: __str ==='+__str );
+ $ERROR('#4: __str = String(10000000000000000000000); __str === "1e+22". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.1.1_A1_T19.js b/test/built-ins/String/S15.5.1.1_A1_T19.js
index 4fee548c6..5e58d64fd 100644
--- a/test/built-ins/String/S15.5.1.1_A1_T19.js
+++ b/test/built-ins/String/S15.5.1.1_A1_T19.js
@@ -9,12 +9,12 @@ es5id: 15.5.1.1_A1_T19
description: Call String() with Array of numbers
---*/
-var __str = String(new Array(1,2,3));
+var __str = String(new Array(1, 2, 3));
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "string") {
- $ERROR('#1: __str = String(new Array(1,2,3)); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = String(new Array(1,2,3)); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,7 +22,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str !== "1,2,3") {
- $ERROR('#2: __str = String(new Array(1,2,3)); __str === "1,2,3". Actual: __str ==='+__str );
+ $ERROR('#2: __str = String(new Array(1,2,3)); __str === "1,2,3". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.1.1_A1_T2.js b/test/built-ins/String/S15.5.1.1_A1_T2.js
index 288a13b3c..6fd826c4c 100644
--- a/test/built-ins/String/S15.5.1.1_A1_T2.js
+++ b/test/built-ins/String/S15.5.1.1_A1_T2.js
@@ -14,7 +14,7 @@ var __str = String(null);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "string") {
- $ERROR('#1: __str = String(null); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = String(null); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,7 +22,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str !== "null") {
- $ERROR('#2: __str = String(null); __str === "null". Actual: __str ==='+__str );
+ $ERROR('#2: __str = String(null); __str === "null". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.1.1_A1_T3.js b/test/built-ins/String/S15.5.1.1_A1_T3.js
index 204d8e37b..b09319278 100644
--- a/test/built-ins/String/S15.5.1.1_A1_T3.js
+++ b/test/built-ins/String/S15.5.1.1_A1_T3.js
@@ -14,7 +14,7 @@ var __str = String(void 0);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "string") {
- $ERROR('#1: __str = String(void 0); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = String(void 0); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,7 +22,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str !== "undefined") {
- $ERROR('#2: __str = String(void 0); __str === "undefined". Actual: __str ==='+__str );
+ $ERROR('#2: __str = String(void 0); __str === "undefined". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.1.1_A1_T4.js b/test/built-ins/String/S15.5.1.1_A1_T4.js
index 95d0ea131..b85534d51 100644
--- a/test/built-ins/String/S15.5.1.1_A1_T4.js
+++ b/test/built-ins/String/S15.5.1.1_A1_T4.js
@@ -14,7 +14,7 @@ var __str = String(undefined);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "string") {
- $ERROR('#1: __str = String(undefined); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = String(undefined); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,7 +22,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str !== "undefined") {
- $ERROR('#2: __str = String(undefined); __str === "undefined". Actual: __str ==='+__str );
+ $ERROR('#2: __str = String(undefined); __str === "undefined". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.1.1_A1_T5.js b/test/built-ins/String/S15.5.1.1_A1_T5.js
index 19f7db066..9ec1596f1 100644
--- a/test/built-ins/String/S15.5.1.1_A1_T5.js
+++ b/test/built-ins/String/S15.5.1.1_A1_T5.js
@@ -14,7 +14,7 @@ var __str = String(x);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "string") {
- $ERROR('#1: var x; __str = String(x); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: var x; __str = String(x); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,7 +22,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str !== "undefined") {
- $ERROR('#2: var x; __str = String(x); __str === "undefined". Actual: __str ==='+__str );
+ $ERROR('#2: var x; __str = String(x); __str === "undefined". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.1.1_A1_T6.js b/test/built-ins/String/S15.5.1.1_A1_T6.js
index 75f049b4e..29d6ea6f4 100644
--- a/test/built-ins/String/S15.5.1.1_A1_T6.js
+++ b/test/built-ins/String/S15.5.1.1_A1_T6.js
@@ -14,7 +14,7 @@ var __str = String(eval());
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "string") {
- $ERROR('#1: __str = String(eval()); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = String(eval()); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,7 +22,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str !== "undefined") {
- $ERROR('#2: __str = String(eval()); __str === "undefined". Actual: __str ==='+__str );
+ $ERROR('#2: __str = String(eval()); __str === "undefined". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.1.1_A1_T7.js b/test/built-ins/String/S15.5.1.1_A1_T7.js
index a275bd9f6..6b0596e2b 100644
--- a/test/built-ins/String/S15.5.1.1_A1_T7.js
+++ b/test/built-ins/String/S15.5.1.1_A1_T7.js
@@ -14,15 +14,15 @@ var __str = String({});
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "string") {
- $ERROR('#1: __str = String({}); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = String({}); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__str !== "[object "+"Object"+"]") {
- $ERROR('#2: __str = String({}); __str === "[object Object]". Actual: __str ==='+__str );
+if (__str !== "[object " + "Object" + "]") {
+ $ERROR('#2: __str = String({}); __str === "[object Object]". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.1.1_A1_T8.js b/test/built-ins/String/S15.5.1.1_A1_T8.js
index f6c6e8a60..3df6c62b5 100644
--- a/test/built-ins/String/S15.5.1.1_A1_T8.js
+++ b/test/built-ins/String/S15.5.1.1_A1_T8.js
@@ -11,17 +11,19 @@ description: Call String(new Array)
var __old__Array__prototype__toString = Array.prototype.toString;
-Array.prototype.toString=function(){return "__ARRAY__";};
+Array.prototype.toString = function() {
+ return "__ARRAY__";
+};
var __str = String(new Array);
// restore old toString method just in case
-Array.prototype.toString=__old__Array__prototype__toString;
+Array.prototype.toString = __old__Array__prototype__toString;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "string") {
- $ERROR('#1: __str = String(new Array); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = String(new Array); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,7 +31,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str !== "__ARRAY__") {
- $ERROR('#2: Array.prototype.toString=function(){return "__ARRAY__";}; __str = String(new Array); __str === "__ARRAY__". Actual: __str ==='+__str );
+ $ERROR('#2: Array.prototype.toString=function(){return "__ARRAY__";}; __str = String(new Array); __str === "__ARRAY__". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.1.1_A1_T9.js b/test/built-ins/String/S15.5.1.1_A1_T9.js
index c6b05e738..5a8e58cc1 100644
--- a/test/built-ins/String/S15.5.1.1_A1_T9.js
+++ b/test/built-ins/String/S15.5.1.1_A1_T9.js
@@ -9,14 +9,16 @@ es5id: 15.5.1.1_A1_T9
description: Call String(this)
---*/
-var toString=function(){return "__THIS__";};
+var toString = function() {
+ return "__THIS__";
+};
var __str = String(this);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "string") {
- $ERROR('#1: __str = String(this); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = String(this); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -24,7 +26,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str !== "__THIS__") {
- $ERROR('#2: toString=function(){return "__THIS__";}; __str = String(this); __str === "__THIS__". Actual: __str ==='+__str );
+ $ERROR('#2: toString=function(){return "__THIS__";}; __str = String(this); __str === "__THIS__". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.1.1_A2_T1.js b/test/built-ins/String/S15.5.1.1_A2_T1.js
index 2c395acf3..2a8956433 100644
--- a/test/built-ins/String/S15.5.1.1_A2_T1.js
+++ b/test/built-ins/String/S15.5.1.1_A2_T1.js
@@ -12,7 +12,7 @@ var __str = String();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "string") {
- $ERROR('#1: __str = String(); typeof __str === "string". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = String(); typeof __str === "string". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -20,7 +20,7 @@ if (typeof __str !== "string") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str !== "") {
- $ERROR('#2: __str = String(); __str === "". Actual: __str ==='+__str );
+ $ERROR('#2: __str = String(); __str === "". Actual: __str ===' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.2.1_A1_T1.js b/test/built-ins/String/S15.5.2.1_A1_T1.js
index cff64fd34..2b7c835f7 100644
--- a/test/built-ins/String/S15.5.2.1_A1_T1.js
+++ b/test/built-ins/String/S15.5.2.1_A1_T1.js
@@ -14,7 +14,7 @@ var __str = new String;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "object") {
- $ERROR('#1: __str = new String; typeof __str === "object". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = new String; typeof __str === "object". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,7 +22,7 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#1.5
if (__str.constructor !== String) {
- $ERROR('#1.5: __str = new String; __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
+ $ERROR('#1.5: __str = new String; __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,14 +30,14 @@ if (__str.constructor !== String) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str != "") {
- $ERROR('#2: __str = new String; __str == "". Actual: __str =='+__str);
+ $ERROR('#2: __str = new String; __str == "". Actual: __str ==' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-if ( __str === "") {
+if (__str === "") {
$ERROR('#3: __str = new String; __str !== ""');
}
//
diff --git a/test/built-ins/String/S15.5.2.1_A1_T10.js b/test/built-ins/String/S15.5.2.1_A1_T10.js
index 46c0474f1..1b7950e2f 100644
--- a/test/built-ins/String/S15.5.2.1_A1_T10.js
+++ b/test/built-ins/String/S15.5.2.1_A1_T10.js
@@ -11,9 +11,11 @@ description: >
function object's prototype.toString property was changed
---*/
-function __FACTORY(){};
+function __FACTORY() {};
-__FACTORY.prototype.toString=function(){return "tostr"};
+__FACTORY.prototype.toString = function() {
+ return "tostr"
+};
var __obj = new __FACTORY;
@@ -22,7 +24,7 @@ var __str = new String(__obj);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "object") {
- $ERROR('#1: __str = new String(__obj); typeof __str === "object". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = new String(__obj); typeof __str === "object". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +32,7 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#1.5
if (__str.constructor !== String) {
- $ERROR('#1.5: __str = new String(__obj); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
+ $ERROR('#1.5: __str = new String(__obj); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -38,7 +40,7 @@ if (__str.constructor !== String) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str != "tostr") {
- $ERROR('#2: __str = new String(__obj); __str =="tostr". Actual: __str =='+__str );
+ $ERROR('#2: __str = new String(__obj); __str =="tostr". Actual: __str ==' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.2.1_A1_T11.js b/test/built-ins/String/S15.5.2.1_A1_T11.js
index b3eaf733b..f44791a9b 100644
--- a/test/built-ins/String/S15.5.2.1_A1_T11.js
+++ b/test/built-ins/String/S15.5.2.1_A1_T11.js
@@ -11,11 +11,15 @@ description: >
changing function object's valueOf and toString properties
---*/
-function __obj(){};
+function __obj() {};
-__obj.valueOf=function(){return true;};
+__obj.valueOf = function() {
+ return true;
+};
-__obj.toString=function(){return {};};
+__obj.toString = function() {
+ return {};
+};
var __str = new String(__obj);
@@ -24,7 +28,7 @@ var __str = new String(__obj);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "object") {
- $ERROR('#1: function __obj(){}; __str = new String(__obj); typeof __str === "object". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: function __obj(){}; __str = new String(__obj); typeof __str === "object". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -32,15 +36,15 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#1.5
if (__str.constructor !== String) {
- $ERROR('#1.5: __str = new String(__obj); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
+ $ERROR('#1.5: __str = new String(__obj); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__str !="true") {
- $ERROR('#2: function __obj(){}; __str = new String(__obj); __str =="true". Actual: __str =='+__str );
+if (__str != "true") {
+ $ERROR('#2: function __obj(){}; __str = new String(__obj); __str =="true". Actual: __str ==' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.2.1_A1_T12.js b/test/built-ins/String/S15.5.2.1_A1_T12.js
index 092aab239..76bb3c6eb 100644
--- a/test/built-ins/String/S15.5.2.1_A1_T12.js
+++ b/test/built-ins/String/S15.5.2.1_A1_T12.js
@@ -12,9 +12,15 @@ description: >
exception throw
---*/
-var __obj = {toString:function(){throw "intostr"}};
+var __obj = {
+ toString: function() {
+ throw "intostr"
+ }
+};
-__obj.valueOf=function(){return true};
+__obj.valueOf = function() {
+ return true
+};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -22,8 +28,8 @@ try {
var __str = new String(__obj);
$ERROR('#1: var __obj = {toString:function(){throw "intostr"}}; __str = new String(__obj) lead throwing exception');
} catch (e) {
- if (e!=="intostr") {
- $ERROR('#1.1: e==="intostr". Actual: e==='+e);
+ if (e !== "intostr") {
+ $ERROR('#1.1: e==="intostr". Actual: e===' + e);
}
}
//
diff --git a/test/built-ins/String/S15.5.2.1_A1_T13.js b/test/built-ins/String/S15.5.2.1_A1_T13.js
index dbda18dcf..45f064f13 100644
--- a/test/built-ins/String/S15.5.2.1_A1_T13.js
+++ b/test/built-ins/String/S15.5.2.1_A1_T13.js
@@ -12,9 +12,17 @@ description: >
exception throw
---*/
-var __obj = {toString:function(){return f; function f(){}}};
+var __obj = {
+ toString: function() {
+ return f;
-__obj.valueOf=function(){throw "invalueof"};
+ function f() {}
+ }
+};
+
+__obj.valueOf = function() {
+ throw "invalueof"
+};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -22,8 +30,8 @@ try {
var __str = new String(__obj);
$ERROR('#1: __obj.valueOf=function(){throw "invalueof"}; __str = new String(__obj) lead throwing exception');
} catch (e) {
- if (e!=="invalueof") {
- $ERROR('#1.1: e==="invalueof". Actual: e==='+e);
+ if (e !== "invalueof") {
+ $ERROR('#1.1: e==="invalueof". Actual: e===' + e);
}
}
//
diff --git a/test/built-ins/String/S15.5.2.1_A1_T16.js b/test/built-ins/String/S15.5.2.1_A1_T16.js
index 332769625..c5b6bc6d2 100644
--- a/test/built-ins/String/S15.5.2.1_A1_T16.js
+++ b/test/built-ins/String/S15.5.2.1_A1_T16.js
@@ -11,11 +11,11 @@ description: >
and other numbers
---*/
-var __str =new String(.12345);
+var __str = new String(.12345);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "object") {
- $ERROR('#1: __str =new String(.12345); typeof __str === "object". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str =new String(.12345); typeof __str === "object". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -23,24 +23,24 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#1.5
if (__str.constructor !== String) {
- $ERROR('#1.5: __str =new String(.12345); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
+ $ERROR('#1.5: __str =new String(.12345); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__str !="0.12345") {
- $ERROR('#2: __str =new String(.12345); __str =="0.12345". Actual: __str =='+__str );
+if (__str != "0.12345") {
+ $ERROR('#2: __str =new String(.12345); __str =="0.12345". Actual: __str ==' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
-__str =new String(.012345);
+__str = new String(.012345);
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (typeof __str !== "object") {
- $ERROR('#3: __str =new String(.012345); typeof __str === "object". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#3: __str =new String(.012345); typeof __str === "object". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -48,24 +48,24 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2.5
if (__str.constructor !== String) {
- $ERROR('#3.5: __str =new String(.012345); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
+ $ERROR('#3.5: __str =new String(.012345); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-if (__str !="0.012345") {
- $ERROR('#4: __str =new String(.012345); __str =="0.012345". Actual: __str =='+__str );
+if (__str != "0.012345") {
+ $ERROR('#4: __str =new String(.012345); __str =="0.012345". Actual: __str ==' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
-__str =new String(.0012345);
+__str = new String(.0012345);
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (typeof __str !== "object") {
- $ERROR('#5: __str =new String(.0012345); typeof __str === "object". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#5: __str =new String(.0012345); typeof __str === "object". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -73,24 +73,24 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5.5
if (__str.constructor !== String) {
- $ERROR('#5.5: __str =new String(.0012345); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
+ $ERROR('#5.5: __str =new String(.0012345); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#6
-if (__str !="0.0012345") {
- $ERROR('#6: __str =new String(.0012345); __str =="0.0012345". Actual: __str =='+__str );
+if (__str != "0.0012345") {
+ $ERROR('#6: __str =new String(.0012345); __str =="0.0012345". Actual: __str ==' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
-__str =new String(.00000012345);
+__str = new String(.00000012345);
//////////////////////////////////////////////////////////////////////////////
//CHECK#7
if (typeof __str !== "object") {
- $ERROR('#7: __str =new String(.00000012345); typeof __str === "object". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#7: __str =new String(.00000012345); typeof __str === "object". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -98,15 +98,15 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#7.5
if (__str.constructor !== String) {
- $ERROR('#7.5: __str =new String(.00000012345); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
+ $ERROR('#7.5: __str =new String(.00000012345); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#8
-if (__str !="1.2345e-7") {
- $ERROR('#8: __str =new String(.00000012345); __str =="1.2345e-7". Actual: __str =='+__str );
+if (__str != "1.2345e-7") {
+ $ERROR('#8: __str =new String(.00000012345); __str =="1.2345e-7". Actual: __str ==' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.2.1_A1_T17.js b/test/built-ins/String/S15.5.2.1_A1_T17.js
index 3e9248ebe..745ab818b 100644
--- a/test/built-ins/String/S15.5.2.1_A1_T17.js
+++ b/test/built-ins/String/S15.5.2.1_A1_T17.js
@@ -15,7 +15,7 @@ var __str = new String(1.2345);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "object") {
- $ERROR('#1: __str = new String(1.2345); typeof __str === "object". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = new String(1.2345); typeof __str === "object". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -23,15 +23,15 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#1.5
if (__str.constructor !== String) {
- $ERROR('#1.5: __str = new String(1.2345); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
+ $ERROR('#1.5: __str = new String(1.2345); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__str !="1.2345") {
- $ERROR('#2: __str = new String(1.2345); __str =="1.2345". Actual: __str =='+__str );
+if (__str != "1.2345") {
+ $ERROR('#2: __str = new String(1.2345); __str =="1.2345". Actual: __str ==' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -40,7 +40,7 @@ __str = new String(1.234567890);
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (typeof __str !== "object") {
- $ERROR('#3: __str = new String(1.234567890); typeof __str === "object". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#3: __str = new String(1.234567890); typeof __str === "object". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -48,15 +48,15 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3.5
if (__str.constructor !== String) {
- $ERROR('#3.5: __str = new String(1.234567890); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
+ $ERROR('#3.5: __str = new String(1.234567890); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-if (__str !="1.23456789") {
- $ERROR('#4: __str = new String(1.234567890); __str =="1.23456789". Actual: __str =='+__str );
+if (__str != "1.23456789") {
+ $ERROR('#4: __str = new String(1.234567890); __str =="1.23456789". Actual: __str ==' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -65,7 +65,7 @@ __str = new String(1.234500000000000000000000000);
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (typeof __str !== "object") {
- $ERROR('#5: __str = new String(1.234500000000000000000000000); typeof __str === "object". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#5: __str = new String(1.234500000000000000000000000); typeof __str === "object". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -73,15 +73,15 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5.5
if (__str.constructor !== String) {
- $ERROR('#5.5: __str = new String(1.234500000000000000000000000); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
+ $ERROR('#5.5: __str = new String(1.234500000000000000000000000); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#6
-if (__str !="1.2345") {
- $ERROR('#6: __str = new String(1.234500000000000000000000000); __str =="1.2345". Actual: __str =='+__str );
+if (__str != "1.2345") {
+ $ERROR('#6: __str = new String(1.234500000000000000000000000); __str =="1.2345". Actual: __str ==' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.2.1_A1_T18.js b/test/built-ins/String/S15.5.2.1_A1_T18.js
index 600c76266..e6d950545 100644
--- a/test/built-ins/String/S15.5.2.1_A1_T18.js
+++ b/test/built-ins/String/S15.5.2.1_A1_T18.js
@@ -15,7 +15,7 @@ var __str = new String(1000000000000000000000);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "object") {
- $ERROR('#1: __str = new String(1000000000000000000000); typeof __str === "object". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = new String(1000000000000000000000); typeof __str === "object". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -23,15 +23,15 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#1.5
if (__str.constructor !== String) {
- $ERROR('#1.5: __str = new String(1000000000000000000000); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
+ $ERROR('#1.5: __str = new String(1000000000000000000000); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__str !="1e+21") {
- $ERROR('#2: __str = new String(1000000000000000000000); __str =="1e+21". Actual: __str =='+__str );
+if (__str != "1e+21") {
+ $ERROR('#2: __str = new String(1000000000000000000000); __str =="1e+21". Actual: __str ==' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -40,7 +40,7 @@ __str = new String(10000000000000000000000);
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (typeof __str !== "object") {
- $ERROR('#3: __str = new String(10000000000000000000000); typeof __str === "object". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#3: __str = new String(10000000000000000000000); typeof __str === "object". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -48,15 +48,15 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3.5
if (__str.constructor !== String) {
- $ERROR('#3.5: __str = new String(10000000000000000000000); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
+ $ERROR('#3.5: __str = new String(10000000000000000000000); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-if (__str !="1e+22") {
- $ERROR('#4: __str = new String(10000000000000000000000); __str =="1e+22". Actual: __str =='+__str );
+if (__str != "1e+22") {
+ $ERROR('#4: __str = new String(10000000000000000000000); __str =="1e+22". Actual: __str ==' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.2.1_A1_T19.js b/test/built-ins/String/S15.5.2.1_A1_T19.js
index 8bef6916c..223aa2abf 100644
--- a/test/built-ins/String/S15.5.2.1_A1_T19.js
+++ b/test/built-ins/String/S15.5.2.1_A1_T19.js
@@ -11,11 +11,11 @@ description: >
of numbers
---*/
-var __str = new String(new Array(1,2,3));
+var __str = new String(new Array(1, 2, 3));
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "object") {
- $ERROR('#1: __str = new String(new Array(1,2,3)); typeof __str === "object". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = new String(new Array(1,2,3)); typeof __str === "object". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -23,15 +23,15 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#1.5
if (__str.constructor !== String) {
- $ERROR('#1.5: __str = new String(new Array(1,2,3)); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
+ $ERROR('#1.5: __str = new String(new Array(1,2,3)); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__str !="1,2,3") {
- $ERROR('#2: __str = new String(new Array(1,2,3)); __str =="1,2,3". Actual: __str =='+__str );
+if (__str != "1,2,3") {
+ $ERROR('#2: __str = new String(new Array(1,2,3)); __str =="1,2,3". Actual: __str ==' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.2.1_A1_T2.js b/test/built-ins/String/S15.5.2.1_A1_T2.js
index e9e3cd3ef..bb1bee390 100644
--- a/test/built-ins/String/S15.5.2.1_A1_T2.js
+++ b/test/built-ins/String/S15.5.2.1_A1_T2.js
@@ -14,7 +14,7 @@ var __str = new String();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "object") {
- $ERROR('#1: __str = new String(); typeof __str === "object". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = new String(); typeof __str === "object". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,23 +22,23 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#1.5
if (__str.constructor !== String) {
- $ERROR('#1.5: __str = new String(); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
+ $ERROR('#1.5: __str = new String(); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__str !="") {
- $ERROR('#2: __str = new String(); __str =="". Actual: __str =='+__str );
+if (__str != "") {
+ $ERROR('#2: __str = new String(); __str =="". Actual: __str ==' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-if ( __str === "") {
- $ERROR('#3: __str = new String(); __str !== ""');
+if (__str === "") {
+ $ERROR('#3: __str = new String(); __str !== ""');
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.2.1_A1_T3.js b/test/built-ins/String/S15.5.2.1_A1_T3.js
index b46ea66cb..b9716333c 100644
--- a/test/built-ins/String/S15.5.2.1_A1_T3.js
+++ b/test/built-ins/String/S15.5.2.1_A1_T3.js
@@ -14,7 +14,7 @@ var __str = new String("");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "object") {
- $ERROR('#1: __str = new String(""); typeof __str === "object". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = new String(""); typeof __str === "object". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,23 +22,23 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#1.5
if (__str.constructor !== String) {
- $ERROR('#1.5: __str = new String(""); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
+ $ERROR('#1.5: __str = new String(""); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__str !="") {
- $ERROR('#2: __str = new String(""); __str =="". Actual: __str =='+__str );
+if (__str != "") {
+ $ERROR('#2: __str = new String(""); __str =="". Actual: __str ==' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-if ( __str === "") {
- $ERROR('#3: __str = new String(""); __str !== ""');
+if (__str === "") {
+ $ERROR('#3: __str = new String(""); __str !== ""');
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.2.1_A1_T4.js b/test/built-ins/String/S15.5.2.1_A1_T4.js
index cc4687d03..3d268119b 100644
--- a/test/built-ins/String/S15.5.2.1_A1_T4.js
+++ b/test/built-ins/String/S15.5.2.1_A1_T4.js
@@ -14,7 +14,7 @@ var __str = new String(1.0);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "object") {
- $ERROR('#1: __str = new String(1.0); typeof __str === "object". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = new String(1.0); typeof __str === "object". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,15 +22,15 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#1.5
if (__str.constructor !== String) {
- $ERROR('#1.5: __str = new String(1.0); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
+ $ERROR('#1.5: __str = new String(1.0); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__str !=1.0+"") {
- $ERROR('#2: __str = new String(1.0); __str ==1.0+"". Actual: __str =='+__str );
+if (__str != 1.0 + "") {
+ $ERROR('#2: __str = new String(1.0); __str ==1.0+"". Actual: __str ==' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.2.1_A1_T5.js b/test/built-ins/String/S15.5.2.1_A1_T5.js
index 786ecadf7..34b722abd 100644
--- a/test/built-ins/String/S15.5.2.1_A1_T5.js
+++ b/test/built-ins/String/S15.5.2.1_A1_T5.js
@@ -14,7 +14,7 @@ var __str = new String(NaN);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "object") {
- $ERROR('#1: __str = new String(NaN); typeof __str === "object". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = new String(NaN); typeof __str === "object". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,15 +22,15 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#1.5
if (__str.constructor !== String) {
- $ERROR('#1.5: __str = new String(NaN); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
+ $ERROR('#1.5: __str = new String(NaN); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__str !=(1/"s")+"") {
- $ERROR('#2: __str = new String(NaN); __str ==(1/"s")+"". Actual: __str =='+__str );
+if (__str != (1 / "s") + "") {
+ $ERROR('#2: __str = new String(NaN); __str ==(1/"s")+"". Actual: __str ==' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.2.1_A1_T6.js b/test/built-ins/String/S15.5.2.1_A1_T6.js
index 50db9d851..c3b481fd6 100644
--- a/test/built-ins/String/S15.5.2.1_A1_T6.js
+++ b/test/built-ins/String/S15.5.2.1_A1_T6.js
@@ -14,7 +14,7 @@ var __str = new String(false);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "object") {
- $ERROR('#1: __str = new String(false); typeof __str === "object". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = new String(false); typeof __str === "object". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,15 +22,15 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#1.5
if (__str.constructor !== String) {
- $ERROR('#1.5: __str = new String(false); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
+ $ERROR('#1.5: __str = new String(false); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__str !=false+"") {
- $ERROR('#2: __str = new String(false); __str ==false+"". Actual: __str =='+__str );
+if (__str != false + "") {
+ $ERROR('#2: __str = new String(false); __str ==false+"". Actual: __str ==' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.2.1_A1_T7.js b/test/built-ins/String/S15.5.2.1_A1_T7.js
index 5ce2ae1ac..9ff917a50 100644
--- a/test/built-ins/String/S15.5.2.1_A1_T7.js
+++ b/test/built-ins/String/S15.5.2.1_A1_T7.js
@@ -11,7 +11,9 @@ description: Creating string object with "new String({})"
var __stored__Object__prototype__toString = Object.prototype.toString;
-Object.prototype.toString=function(){return "SHIFTED"};
+Object.prototype.toString = function() {
+ return "SHIFTED"
+};
var __str = new String({});
@@ -20,7 +22,7 @@ Object.prototype.toString = __stored__Object__prototype__toString;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "object") {
- $ERROR('#1: __str = new String({}); typeof __str === "object". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = new String({}); typeof __str === "object". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,15 +30,15 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#1.5
if (__str.constructor !== String) {
- $ERROR('#1.5: __str = new String({}); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
+ $ERROR('#1.5: __str = new String({}); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__str !="SHIFTED") {
- $ERROR('#2: Object.prototype.toString=function(){return "SHIFTED"}; __str = new String({}); __str =="SHIFTED". Actual: __str =='+__str );
+if (__str != "SHIFTED") {
+ $ERROR('#2: Object.prototype.toString=function(){return "SHIFTED"}; __str = new String({}); __str =="SHIFTED". Actual: __str ==' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.2.1_A1_T8.js b/test/built-ins/String/S15.5.2.1_A1_T8.js
index 35402bae1..c01b4bb1e 100644
--- a/test/built-ins/String/S15.5.2.1_A1_T8.js
+++ b/test/built-ins/String/S15.5.2.1_A1_T8.js
@@ -11,16 +11,18 @@ description: Creating string object with "new String(function(){})"
var __stored__Function__prototype__toString = Function.prototype.toString;
-Function.prototype.toString=function(){return "SHIFTED"};
+Function.prototype.toString = function() {
+ return "SHIFTED"
+};
-var __str = new String(function(){});
+var __str = new String(function() {});
Function.prototype.toString = __stored__Function__prototype__toString;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "object") {
- $ERROR('#1: __str = new String(function(){}); typeof __str === "object". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = new String(function(){}); typeof __str === "object". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,15 +30,15 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#1.5
if (__str.constructor !== String) {
- $ERROR('#1.5: __str = new String(function(){}); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
+ $ERROR('#1.5: __str = new String(function(){}); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__str !="SHIFTED") {
- $ERROR('#2: Function.prototype.toString=function(){return "SHIFTED"}; __str = new String(function(){}); __str =="SHIFTED". Actual: __str =='+__str );
+if (__str != "SHIFTED") {
+ $ERROR('#2: Function.prototype.toString=function(){return "SHIFTED"}; __str = new String(function(){}); __str =="SHIFTED". Actual: __str ==' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.2.1_A1_T9.js b/test/built-ins/String/S15.5.2.1_A1_T9.js
index 4a23ee97c..95b97e6b4 100644
--- a/test/built-ins/String/S15.5.2.1_A1_T9.js
+++ b/test/built-ins/String/S15.5.2.1_A1_T9.js
@@ -11,12 +11,14 @@ description: >
[1,2,3]}())"
---*/
-var __str = new String(function(){return [1,2,3]}());
+var __str = new String(function() {
+ return [1, 2, 3]
+}());
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __str !== "object") {
- $ERROR('#1: __str = new String(function(){return [1,2,3]}()); typeof __str === "object". Actual: typeof __str ==='+typeof __str );
+ $ERROR('#1: __str = new String(function(){return [1,2,3]}()); typeof __str === "object". Actual: typeof __str ===' + typeof __str);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -24,15 +26,15 @@ if (typeof __str !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#1.5
if (__str.constructor !== String) {
- $ERROR('#1.5: __str = new String(function(){return [1,2,3]}()); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor );
+ $ERROR('#1.5: __str = new String(function(){return [1,2,3]}()); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__str !="1,2,3") {
- $ERROR('#2: __str = new String(function(){return [1,2,3]}()); __str =="1,2,3". Actual: __str =='+__str );
+if (__str != "1,2,3") {
+ $ERROR('#2: __str = new String(function(){return [1,2,3]}()); __str =="1,2,3". Actual: __str ==' + __str);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.2.1_A2_T2.js b/test/built-ins/String/S15.5.2.1_A2_T2.js
index 63374d22e..35de60592 100644
--- a/test/built-ins/String/S15.5.2.1_A2_T2.js
+++ b/test/built-ins/String/S15.5.2.1_A2_T2.js
@@ -15,8 +15,8 @@ var __str__obj = new String("shocking blue");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str__obj["__custom__prop"]!==undefined) {
- $ERROR('#1: var __str__obj = new String("shocking blue"); __str__obj["__custom__prop"]===undefined. Actual: __str__obj["__custom__prop"]==='+__str__obj["__custom__prop"]);
+if (__str__obj["__custom__prop"] !== undefined) {
+ $ERROR('#1: var __str__obj = new String("shocking blue"); __str__obj["__custom__prop"]===undefined. Actual: __str__obj["__custom__prop"]===' + __str__obj["__custom__prop"]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -25,8 +25,8 @@ String.prototype.__custom__prop = "bor";
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__str__obj["__custom__prop"]!=="bor") {
- $ERROR('#2: var __str__obj = new String("shocking blue"); String.prototype.__custom__prop = "bor"; __str__obj["__custom__prop"]==="bor". Actual: __str__obj["__custom__prop"]==='+__str__obj["__custom__prop"]);
+if (__str__obj["__custom__prop"] !== "bor") {
+ $ERROR('#2: var __str__obj = new String("shocking blue"); String.prototype.__custom__prop = "bor"; __str__obj["__custom__prop"]==="bor". Actual: __str__obj["__custom__prop"]===' + __str__obj["__custom__prop"]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.2.1_A3.js b/test/built-ins/String/S15.5.2.1_A3.js
index fa3bdafb8..387bdf10a 100644
--- a/test/built-ins/String/S15.5.2.1_A3.js
+++ b/test/built-ins/String/S15.5.2.1_A3.js
@@ -15,8 +15,8 @@ __str__obj.toString = Object.prototype.toString;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str__obj.toString() !== "[object "+"String"+"]") {
- $ERROR('#1: var __str__obj = new String("seamaid"); __str__obj.toString = Object.prototype.toString; __str__obj.toString() === "[object String]". Actual: __str__obj.toString() ==='+__str__obj.toString() );
+if (__str__obj.toString() !== "[object " + "String" + "]") {
+ $ERROR('#1: var __str__obj = new String("seamaid"); __str__obj.toString = Object.prototype.toString; __str__obj.toString() === "[object String]". Actual: __str__obj.toString() ===' + __str__obj.toString());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.3_A1.js b/test/built-ins/String/S15.5.3_A1.js
index 7360cf3f1..de6499d46 100644
--- a/test/built-ins/String/S15.5.3_A1.js
+++ b/test/built-ins/String/S15.5.3_A1.js
@@ -10,7 +10,7 @@ description: Checking String.length
//////////////////////////////////////////////////////////////////////////////
// CHECK#
if (String.length !== 1) {
- $ERROR('String has length property whose value is 1. Actual: String.length==='+String.length);
+ $ERROR('String has length property whose value is 1. Actual: String.length===' + String.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.3_A2_T1.js b/test/built-ins/String/S15.5.3_A2_T1.js
index 584b4e29f..eb019eaf6 100644
--- a/test/built-ins/String/S15.5.3_A2_T1.js
+++ b/test/built-ins/String/S15.5.3_A2_T1.js
@@ -12,7 +12,7 @@ description: Checking Function.prototype.isPrototypeOf(String)
//////////////////////////////////////////////////////////////////////////////
// CHECK#
if (!(Function.prototype.isPrototypeOf(String))) {
- $ERROR('#1: Function.prototype.isPrototypeOf(String) return true. Actual: '+Function.prototype.isPrototypeOf(String));
+ $ERROR('#1: Function.prototype.isPrototypeOf(String) return true. Actual: ' + Function.prototype.isPrototypeOf(String));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.3_A2_T2.js b/test/built-ins/String/S15.5.3_A2_T2.js
index 42c6ad170..8fb4899cc 100644
--- a/test/built-ins/String/S15.5.3_A2_T2.js
+++ b/test/built-ins/String/S15.5.3_A2_T2.js
@@ -14,7 +14,7 @@ Function.prototype.indicator = 1;
//////////////////////////////////////////////////////////////////////////////
// CHECK#
if (String.indicator !== 1) {
- $ERROR('#1: Function.prototype.indicator = 1; String.indicator === 1. Actual: String.indicator ==='+String.indicator );
+ $ERROR('#1: Function.prototype.indicator = 1; String.indicator === 1. Actual: String.indicator ===' + String.indicator);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.5.1_A1.js b/test/built-ins/String/S15.5.5.1_A1.js
index 6537b2dd9..969b7c099 100644
--- a/test/built-ins/String/S15.5.5.1_A1.js
+++ b/test/built-ins/String/S15.5.5.1_A1.js
@@ -14,7 +14,7 @@ var __str__instance = new String("ABC\u0041\u0042\u0043");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__str__instance.length !== 6) {
- $ERROR('#1: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.length === 6, where __str__instance is new String("ABC\\u0041\\u0042\\u0043"). Actual: __str__instance.length ==='+__str__instance.length );
+ $ERROR('#1: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.length === 6, where __str__instance is new String("ABC\\u0041\\u0042\\u0043"). Actual: __str__instance.length ===' + __str__instance.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -24,7 +24,7 @@ __str__instance = new String;
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str__instance.length !== 0) {
- $ERROR('#2: __str__instance = new String; __str__instance.length === 0, where __str__instance is new String. Actual: __str__instance.length ==='+__str__instance.length );
+ $ERROR('#2: __str__instance = new String; __str__instance.length === 0, where __str__instance is new String. Actual: __str__instance.length ===' + __str__instance.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.5.1_A2.js b/test/built-ins/String/S15.5.5.1_A2.js
index 764e7bd01..9d039cba0 100644
--- a/test/built-ins/String/S15.5.5.1_A2.js
+++ b/test/built-ins/String/S15.5.5.1_A2.js
@@ -12,17 +12,17 @@ var __str__instance = new String("globglob");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(__str__instance.hasOwnProperty("length"))) {
- $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: '+__str__instance.hasOwnProperty("length"));
+ $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: ' + __str__instance.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-for(var prop in __str__instance){
- if (prop === "length") {
- $ERROR('#2: length property has the attributes {DontEnum}');
- }
+for (var prop in __str__instance) {
+ if (prop === "length") {
+ $ERROR('#2: length property has the attributes {DontEnum}');
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.5.1_A3.js b/test/built-ins/String/S15.5.5.1_A3.js
index 8cdd06221..8309818e3 100644
--- a/test/built-ins/String/S15.5.5.1_A3.js
+++ b/test/built-ins/String/S15.5.5.1_A3.js
@@ -13,7 +13,7 @@ var __str__instance = new String("globglob");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(__str__instance.hasOwnProperty("length"))) {
- $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: '+__str__instance.hasOwnProperty("length"));
+ $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: ' + __str__instance.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -36,7 +36,7 @@ try {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (!(__str__instance.hasOwnProperty("length"))) {
- $ERROR('#3: var __str__instance = new String("globglob"); delete __str__instance.length; __str__instance.hasOwnProperty("length") return true. Actual: '+__str__instance.hasOwnProperty("length"));
+ $ERROR('#3: var __str__instance = new String("globglob"); delete __str__instance.length; __str__instance.hasOwnProperty("length") return true. Actual: ' + __str__instance.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.5.1_A4_T1.js b/test/built-ins/String/S15.5.5.1_A4_T1.js
index 2df5f77c6..d41526fc8 100644
--- a/test/built-ins/String/S15.5.5.1_A4_T1.js
+++ b/test/built-ins/String/S15.5.5.1_A4_T1.js
@@ -13,7 +13,7 @@ var __str__instance = new String("globglob");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(__str__instance.hasOwnProperty("length"))) {
- $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: '+__str__instance.hasOwnProperty("length"));
+ $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: ' + __str__instance.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -21,28 +21,28 @@ if (!(__str__instance.hasOwnProperty("length"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str__instance.length !== 8) {
- $ERROR('#2: var __str__instance = new String("globglob"); __str__instance.length === 8. Actual: __str__instance.length ==='+__str__instance.length );
+ $ERROR('#2: var __str__instance = new String("globglob"); __str__instance.length === 8. Actual: __str__instance.length ===' + __str__instance.length);
}
//
//////////////////////////////////////////////////////////////////////////////
-__str__instance.length=-1;
+__str__instance.length = -1;
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__str__instance.length !== 8) {
- $ERROR('#3: var __str__instance = new String("globglob"); __str__instance.length=-1; __str__instance.length === 8(after redefine length property). Actual: __str__instance.length ==='+__str__instance.length );
+ $ERROR('#3: var __str__instance = new String("globglob"); __str__instance.length=-1; __str__instance.length === 8(after redefine length property). Actual: __str__instance.length ===' + __str__instance.length);
}
//
//////////////////////////////////////////////////////////////////////////////
with(__str__instance)
- length = 0;
+length = 0;
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__str__instance.length !== 8) {
- $ERROR('#4: var __str__instance = new String("globglob"); with(__str__instance) length = 0; __str__instance.length === 8(after redefine length property with using "with"). Actual: __str__instance.length ==='+__str__instance.length );
+ $ERROR('#4: var __str__instance = new String("globglob"); with(__str__instance) length = 0; __str__instance.length === 8(after redefine length property with using "with"). Actual: __str__instance.length ===' + __str__instance.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -52,7 +52,7 @@ __str__instance.length++;
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__str__instance.length !== 8) {
- $ERROR('#5: var __str__instance = new String("globglob"); __str__instance.length++; __str__instance.length === 8(after redefine length property with using "++"). Actual: __str__instance.length ==='+__str__instance.length );
+ $ERROR('#5: var __str__instance = new String("globglob"); __str__instance.length++; __str__instance.length === 8(after redefine length property with using "++"). Actual: __str__instance.length ===' + __str__instance.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.5.1_A4_T2.js b/test/built-ins/String/S15.5.5.1_A4_T2.js
index 08fb07240..67510ea00 100644
--- a/test/built-ins/String/S15.5.5.1_A4_T2.js
+++ b/test/built-ins/String/S15.5.5.1_A4_T2.js
@@ -13,7 +13,7 @@ var __str__instance = new String("globglob");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(__str__instance.hasOwnProperty("length"))) {
- $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: '+__str__instance.hasOwnProperty("length"));
+ $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: ' + __str__instance.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -21,7 +21,7 @@ if (!(__str__instance.hasOwnProperty("length"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__str__instance.length !== 8) {
- $ERROR('#2: var __str__instance = new String("globglob"); __str__instance.length === 8. Actual: __str__instance.length ==='+__str__instance.length );
+ $ERROR('#2: var __str__instance = new String("globglob"); __str__instance.length === 8. Actual: __str__instance.length ===' + __str__instance.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -31,7 +31,7 @@ verifyNotWritable(__str__instance, "length", null, -1);
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__str__instance.length !== 8) {
- $ERROR('#3: var __str__instance = new String("globglob"); __str__instance.length=-1; __str__instance.length === 8(after redefine length property). Actual: __str__instance.length ==='+__str__instance.length );
+ $ERROR('#3: var __str__instance = new String("globglob"); __str__instance.length=-1; __str__instance.length === 8(after redefine length property). Actual: __str__instance.length ===' + __str__instance.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.5.1_A5.js b/test/built-ins/String/S15.5.5.1_A5.js
index e169e1170..7aa4181a3 100644
--- a/test/built-ins/String/S15.5.5.1_A5.js
+++ b/test/built-ins/String/S15.5.5.1_A5.js
@@ -14,18 +14,22 @@ var __str__instance = new String("ABC\u0041\u0042\u0043");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__str__instance.length !== 6) {
- $ERROR('#1: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.length === 6. Actual: __str__instance.length ==='+__str__instance.length );
+ $ERROR('#1: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.length === 6. Actual: __str__instance.length ===' + __str__instance.length);
}
//
//////////////////////////////////////////////////////////////////////////////
-__str__instance.valueOf = function(){return "ed"};
-__str__instance.toString = function(){return "ed"};
+__str__instance.valueOf = function() {
+ return "ed"
+};
+__str__instance.toString = function() {
+ return "ed"
+};
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__str__instance !="ed") {
- $ERROR('#2: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.valueOf = function(){return "ed"}; __str__instance.toString = function(){return "ed"}; __str__instance =="ed". Actual: __str__instance =='+__str__instance );
+if (__str__instance != "ed") {
+ $ERROR('#2: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.valueOf = function(){return "ed"}; __str__instance.toString = function(){return "ed"}; __str__instance =="ed". Actual: __str__instance ==' + __str__instance);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -33,7 +37,7 @@ if (__str__instance !="ed") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__str__instance.length !== 6) {
- $ERROR('#3: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.valueOf = function(){return "ed"}; __str__instance.toString = function(){return "ed"}; __str__instance.length === 6. Actual: __str__instance.length ==='+__str__instance.length );
+ $ERROR('#3: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.valueOf = function(){return "ed"}; __str__instance.toString = function(){return "ed"}; __str__instance.length === 6. Actual: __str__instance.length ===' + __str__instance.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/S15.5.5_A1_T1.js b/test/built-ins/String/S15.5.5_A1_T1.js
index b5d7bdde3..883b4106b 100644
--- a/test/built-ins/String/S15.5.5_A1_T1.js
+++ b/test/built-ins/String/S15.5.5_A1_T1.js
@@ -16,7 +16,7 @@ try {
$ERROR('#1: __str = new String; __str() lead to throwing exception');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is '+e);
+ $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is ' + e);
}
}
//
diff --git a/test/built-ins/String/S15.5.5_A1_T2.js b/test/built-ins/String/S15.5.5_A1_T2.js
index f7c992b59..68ff2408c 100644
--- a/test/built-ins/String/S15.5.5_A1_T2.js
+++ b/test/built-ins/String/S15.5.5_A1_T2.js
@@ -14,7 +14,7 @@ try {
$ERROR('#1: String("a|b")() lead to throwing exception');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is '+e);
+ $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is ' + e);
}
}
//
diff --git a/test/built-ins/String/S15.5.5_A2_T1.js b/test/built-ins/String/S15.5.5_A2_T1.js
index ed236183a..3bc78fd2b 100644
--- a/test/built-ins/String/S15.5.5_A2_T1.js
+++ b/test/built-ins/String/S15.5.5_A2_T1.js
@@ -16,7 +16,7 @@ try {
$ERROR('#1: __str = new Object(""); "new __str" lead to throwing exception');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is '+e);
+ $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is ' + e);
}
}
//
diff --git a/test/built-ins/String/S15.5.5_A2_T2.js b/test/built-ins/String/S15.5.5_A2_T2.js
index 6281a6daf..cc5df5159 100644
--- a/test/built-ins/String/S15.5.5_A2_T2.js
+++ b/test/built-ins/String/S15.5.5_A2_T2.js
@@ -14,7 +14,7 @@ try {
$ERROR('#1: "new new String" lead to throwing exception');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is '+e);
+ $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is ' + e);
}
}
//
diff --git a/test/built-ins/String/S8.12.8_A1.js b/test/built-ins/String/S8.12.8_A1.js
index d4f2dd5c0..04250ab47 100644
--- a/test/built-ins/String/S8.12.8_A1.js
+++ b/test/built-ins/String/S8.12.8_A1.js
@@ -12,13 +12,17 @@ description: Try to overload toString method
try
{
- var __obj = {toString: function() {return new Object();}}
- String(__obj);
- $ERROR('#1.1: var __obj = {toString: function() {return new Object();}}; String(__obj) throw TypeError. Actual: ' + (String(__obj)));
+ var __obj = {
+ toString: function() {
+ return new Object();
+ }
+ }
+ String(__obj);
+ $ERROR('#1.1: var __obj = {toString: function() {return new Object();}}; String(__obj) throw TypeError. Actual: ' + (String(__obj)));
}
-catch(e)
+catch (e)
{
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: var __obj = {toString: function() {return new Object();}}; String(__obj) throw TypeError. Actual: ' + (e));
- }
+ if ((e instanceof TypeError) !== true) {
+ $ERROR('#1.2: var __obj = {toString: function() {return new Object();}}; String(__obj) throw TypeError. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/String/S8.12.8_A2.js b/test/built-ins/String/S8.12.8_A2.js
index 4ffda0d94..6618d2cdd 100644
--- a/test/built-ins/String/S8.12.8_A2.js
+++ b/test/built-ins/String/S8.12.8_A2.js
@@ -15,12 +15,19 @@ description: >
try
{
- var __obj = {toString: function() {return new Object();}, valueOf: function() {return 1;}}
- if (String(__obj) !== "1") {
- $ERROR('#1.1: var __obj = {toString: function() {return new Object();}, valueOf: function() {return 1;}}; String(__obj) === "1". Actual: ' + (String(__obj)));
- }
+ var __obj = {
+ toString: function() {
+ return new Object();
+ },
+ valueOf: function() {
+ return 1;
+ }
+ }
+ if (String(__obj) !== "1") {
+ $ERROR('#1.1: var __obj = {toString: function() {return new Object();}, valueOf: function() {return 1;}}; String(__obj) === "1". Actual: ' + (String(__obj)));
+ }
}
-catch(e)
+catch (e)
{
$ERROR('#1.2: var __obj = {toString: function() {return new Object();}, valueOf: function() {return 1;}}; String(__obj) === "1". Actual: ' + (e));
}
diff --git a/test/built-ins/String/S9.1_A1_T2.js b/test/built-ins/String/S9.1_A1_T2.js
index 7090e3234..4d92be3f0 100644
--- a/test/built-ins/String/S9.1_A1_T2.js
+++ b/test/built-ins/String/S9.1_A1_T2.js
@@ -12,13 +12,27 @@ description: >
---*/
// CHECK#1
-var object = {valueOf: function() {return 0}, toString: function() {return 1}};
+var object = {
+ valueOf: function() {
+ return 0
+ },
+ toString: function() {
+ return 1
+ }
+};
if (String(object) !== "1") {
$ERROR('#1: var object = {valueOf: function() {return 0}, toString: function() {return 1}}; String(object) === "1". Actual: ' + (String(object)));
}
// CHECK#2
-var object = {valueOf: function() {return 0}, toString: function() {return {}}};
+var object = {
+ valueOf: function() {
+ return 0
+ },
+ toString: function() {
+ return {}
+ }
+};
if (String(object) !== "0") {
$ERROR('#2: var object = {valueOf: function() {return 0}, toString: function() {return {}}}; String(object) === "0". Actual: ' + (String(object)));
}
diff --git a/test/built-ins/String/S9.8.1_A3.js b/test/built-ins/String/S9.8.1_A3.js
index f93fb59f1..13f63f7cc 100644
--- a/test/built-ins/String/S9.8.1_A3.js
+++ b/test/built-ins/String/S9.8.1_A3.js
@@ -15,6 +15,6 @@ if (String(-1234567890) !== "-1234567890") {
}
// CHECK#2
-if ("-"+String(-(-1234567890)) !== "-1234567890") {
- $ERROR('#2: "-"+String(-(-1234567890)) === "-1234567890". Actual: ' + ("-"+String(-(-1234567890))));
+if ("-" + String(-(-1234567890)) !== "-1234567890") {
+ $ERROR('#2: "-"+String(-(-1234567890)) === "-1234567890". Actual: ' + ("-" + String(-(-1234567890))));
}
diff --git a/test/built-ins/String/S9.8_A2_T1.js b/test/built-ins/String/S9.8_A2_T1.js
index 846d1ce46..147215751 100644
--- a/test/built-ins/String/S9.8_A2_T1.js
+++ b/test/built-ins/String/S9.8_A2_T1.js
@@ -9,5 +9,5 @@ description: null convert to String by explicit transformation
// CHECK#1
if (String(null) !== "null") {
- $ERROR('#1: String(null) === "null". Actual: ' + (String(null)));
+ $ERROR('#1: String(null) === "null". Actual: ' + (String(null)));
}
diff --git a/test/built-ins/String/S9.8_A3_T1.js b/test/built-ins/String/S9.8_A3_T1.js
index a6b798a3d..e9df51408 100644
--- a/test/built-ins/String/S9.8_A3_T1.js
+++ b/test/built-ins/String/S9.8_A3_T1.js
@@ -16,5 +16,5 @@ if (String(false) !== "false") {
// CHECK#2
if (String(true) !== "true") {
- $ERROR('#2: String(true) === "true". Actual: ' + (String(true)));
+ $ERROR('#2: String(true) === "true". Actual: ' + (String(true)));
}
diff --git a/test/built-ins/String/S9.8_A4_T1.js b/test/built-ins/String/S9.8_A4_T1.js
index 4f78283a6..4959ead61 100644
--- a/test/built-ins/String/S9.8_A4_T1.js
+++ b/test/built-ins/String/S9.8_A4_T1.js
@@ -17,6 +17,6 @@ if (String(x1) !== x1) {
// CHECK#2
var x2 = "abc";
-if (typeof String(x2) !== typeof x2) {
+if (typeof String(x2) !== typeof x2) {
$ERROR('#2: typeof String("abc") === "string". Actual: ' + (typeof String("abc")));
}
diff --git a/test/built-ins/String/S9.8_A5_T1.js b/test/built-ins/String/S9.8_A5_T1.js
index e6f969054..fbac3d864 100644
--- a/test/built-ins/String/S9.8_A5_T1.js
+++ b/test/built-ins/String/S9.8_A5_T1.js
@@ -26,7 +26,7 @@ if (String(new Number(Number.NaN)) !== "NaN") {
// CHECK#4
if (String(new Number(null)) !== "0") {
- $ERROR('#4: String(new Number(null)) === "0". Actual: ' + (String(new Number(null))));
+ $ERROR('#4: String(new Number(null)) === "0". Actual: ' + (String(new Number(null))));
}
// CHECK#5
@@ -55,38 +55,54 @@ if (String(new Boolean(false)) !== "false") {
}
// CHECK#10
-if (String(new Array(2,4,8,16,32)) !== "2,4,8,16,32") {
- $ERROR('#10: String(new Array(2,4,8,16,32)) === "2,4,8,16,32". Actual: ' + (String(new Array(2,4,8,16,32))));
+if (String(new Array(2, 4, 8, 16, 32)) !== "2,4,8,16,32") {
+ $ERROR('#10: String(new Array(2,4,8,16,32)) === "2,4,8,16,32". Actual: ' + (String(new Array(2, 4, 8, 16, 32))));
}
// CHECK#11
var myobj1 = {
- toNumber : function(){return 12345;},
- toString : function(){return 67890;},
- valueOf : function(){return "[object MyObj]";}
- };
-
-if (String(myobj1) !== "67890"){
+ toNumber: function() {
+ return 12345;
+ },
+ toString: function() {
+ return 67890;
+ },
+ valueOf: function() {
+ return "[object MyObj]";
+ }
+};
+
+if (String(myobj1) !== "67890") {
$ERROR("#11: String(myobj) calls ToPrimitive with hint String");
}
// CHECK#12
var myobj2 = {
- toNumber : function(){return 12345;},
- toString : function(){return {}},
- valueOf : function(){return "[object MyObj]";}
- };
-
-if (String(myobj2) !== "[object MyObj]"){
+ toNumber: function() {
+ return 12345;
+ },
+ toString: function() {
+ return {}
+ },
+ valueOf: function() {
+ return "[object MyObj]";
+ }
+};
+
+if (String(myobj2) !== "[object MyObj]") {
$ERROR("#12: String(myobj) calls ToPrimitive with hint String");
}
// CHECK#13
var myobj3 = {
- toNumber : function(){return 12345;},
- valueOf : function(){return "[object MyObj]";}
- };
-
-if (String(myobj3) !== "[object Object]"){
+ toNumber: function() {
+ return 12345;
+ },
+ valueOf: function() {
+ return "[object MyObj]";
+ }
+};
+
+if (String(myobj3) !== "[object Object]") {
$ERROR("#13: String(myobj) calls ToPrimitive with hint String");
}
diff --git a/test/built-ins/String/fromCharCode/S15.5.3.2_A1.js b/test/built-ins/String/fromCharCode/S15.5.3.2_A1.js
index 0b9edd0cc..1a1050b81 100644
--- a/test/built-ins/String/fromCharCode/S15.5.3.2_A1.js
+++ b/test/built-ins/String/fromCharCode/S15.5.3.2_A1.js
@@ -10,7 +10,7 @@ description: Checking String.fromCharCode.length
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof String.fromCharCode !== "function") {
- $ERROR('#1: typeof String.fromCharCode === "function". Actual: typeof String.fromCharCode ==='+typeof String.fromCharCode );
+ $ERROR('#1: typeof String.fromCharCode === "function". Actual: typeof String.fromCharCode ===' + typeof String.fromCharCode);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -18,7 +18,7 @@ if (typeof String.fromCharCode !== "function") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (!(String.hasOwnProperty("fromCharCode"))) {
- $ERROR('#2: String.hasOwnProperty("fromCharCode") return true. Actual: '+String.hasOwnProperty("fromCharCode"));
+ $ERROR('#2: String.hasOwnProperty("fromCharCode") return true. Actual: ' + String.hasOwnProperty("fromCharCode"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (!(String.hasOwnProperty("fromCharCode"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (String.fromCharCode.length !== 1) {
- $ERROR('#3: String.fromCharCode.length === 1. Actual: String.fromCharCode.length ==='+String.fromCharCode.length );
+ $ERROR('#3: String.fromCharCode.length === 1. Actual: String.fromCharCode.length ===' + String.fromCharCode.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/fromCharCode/S15.5.3.2_A2.js b/test/built-ins/String/fromCharCode/S15.5.3.2_A2.js
index 9fbae6ddc..30ac54bc7 100644
--- a/test/built-ins/String/fromCharCode/S15.5.3.2_A2.js
+++ b/test/built-ins/String/fromCharCode/S15.5.3.2_A2.js
@@ -10,7 +10,7 @@ description: Call String.fromCharCode()
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.fromCharCode() !== "") {
- $ERROR('#1: String.fromCharCode () returns empty string. Actual: '+String.fromCharCode());
+ $ERROR('#1: String.fromCharCode () returns empty string. Actual: ' + String.fromCharCode());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T1.js b/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T1.js
index 8c394c851..57d7aaa11 100644
--- a/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T1.js
+++ b/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T1.js
@@ -9,8 +9,8 @@ description: Call String.fromCharCode(65,66,66,65)
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (String.fromCharCode(65,66,66,65) !== "ABBA") {
- $ERROR('#1: String.fromCharCode(65,66,66,65) === "ABBA". Actual: String.fromCharCode(65,66,66,65) ==='+String.fromCharCode(65,66,66,65) );
+if (String.fromCharCode(65, 66, 66, 65) !== "ABBA") {
+ $ERROR('#1: String.fromCharCode(65,66,66,65) === "ABBA". Actual: String.fromCharCode(65,66,66,65) ===' + String.fromCharCode(65, 66, 66, 65));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T2.js b/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T2.js
index f13e04fe7..1e7d423a5 100644
--- a/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T2.js
+++ b/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T2.js
@@ -15,8 +15,8 @@ delete String.fromCharCode;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__fcc__func(65,66,66,65) !== "ABBA") {
- $ERROR('#1: __fcc__func = String.fromCharCode; delete String.fromCharCode; __fcc__func(65,66,66,65) === "ABBA". Actual: __fcc__func(65,66,66,65) ==='+__fcc__func(65,66,66,65) );
+if (__fcc__func(65, 66, 66, 65) !== "ABBA") {
+ $ERROR('#1: __fcc__func = String.fromCharCode; delete String.fromCharCode; __fcc__func(65,66,66,65) === "ABBA". Actual: __fcc__func(65,66,66,65) ===' + __fcc__func(65, 66, 66, 65));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/fromCharCode/S15.5.3.2_A4.js b/test/built-ins/String/fromCharCode/S15.5.3.2_A4.js
index b29a55043..b3489a479 100644
--- a/test/built-ins/String/fromCharCode/S15.5.3.2_A4.js
+++ b/test/built-ins/String/fromCharCode/S15.5.3.2_A4.js
@@ -14,10 +14,10 @@ delete String.fromCharCode;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try {
- var __obj = new __fcc__func(65,66,66,65);
+ var __obj = new __fcc__func(65, 66, 66, 65);
$ERROR('#1: __fcc__func = String.fromCharCode; var __obj = new __fcc__func(65,66,66,65) lead to throwing exception');
} catch (e) {
- if (e instanceof Test262Error) throw e;
+ if (e instanceof Test262Error) throw e;
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/fromCharCode/S9.7_A1.js b/test/built-ins/String/fromCharCode/S9.7_A1.js
index 513c563a5..935d50a57 100644
--- a/test/built-ins/String/fromCharCode/S9.7_A1.js
+++ b/test/built-ins/String/fromCharCode/S9.7_A1.js
@@ -12,41 +12,41 @@ description: >
// CHECK#1
if (String.fromCharCode(Number.NaN).charCodeAt(0) !== +0) {
$ERROR('#1.1: String.fromCharCode(Number.NaN).charCodeAt(0) === 0. Actual: ' + (String.fromCharCode(Number.NaN).charCodeAt(0)));
-} else if (1/String.fromCharCode(Number.NaN).charCodeAt(0) !== Number.POSITIVE_INFINITY) {
+} else if (1 / String.fromCharCode(Number.NaN).charCodeAt(0) !== Number.POSITIVE_INFINITY) {
$ERROR('#1.2: String.fromCharCode(Number.NaN).charCodeAt(0) === +0. Actual: -0');
}
// CHECK#2
if (String.fromCharCode(Number("abc")).charCodeAt(0) !== +0) {
$ERROR('#2.1: String.fromCharCode(Number("abc")).charCodeAt(0) === 0. Actual: ' + (String.fromCharCode(Number("abc")).charCodeAt(0)));
-} else if (1/String.fromCharCode(0).charCodeAt(0) !== Number.POSITIVE_INFINITY) {
+} else if (1 / String.fromCharCode(0).charCodeAt(0) !== Number.POSITIVE_INFINITY) {
$ERROR('#2.2: String.fromCharCode(0).charCodeAt(0) === +0. Actual: -0');
}
// CHECK#3
if (String.fromCharCode(0).charCodeAt(0) !== +0) {
$ERROR('#3.1: String.fromCharCode(0).charCodeAt(0) === 0. Actual: ' + (String.fromCharCode(0).charCodeAt(0)));
-} else if (1/String.fromCharCode(0).charCodeAt(0) !== Number.POSITIVE_INFINITY) {
+} else if (1 / String.fromCharCode(0).charCodeAt(0) !== Number.POSITIVE_INFINITY) {
$ERROR('#3.2: String.fromCharCode(0).charCodeAt(0) === +0. Actual: -0');
}
// CHECK#4
if (String.fromCharCode(-0).charCodeAt(0) !== +0) {
$ERROR("#4.1: String.fromCharCode(-0).charCodeAt(0) === +0");
-} else if (1/String.fromCharCode(-0).charCodeAt(0) !== Number.POSITIVE_INFINITY) {
+} else if (1 / String.fromCharCode(-0).charCodeAt(0) !== Number.POSITIVE_INFINITY) {
$ERROR("#4.2: String.fromCharCode(-0).charCodeAt(0) === +0. Actual: -0");
}
// CHECK#5
if (String.fromCharCode(Number.POSITIVE_INFINITY).charCodeAt(0) !== +0) {
$ERROR('#5.1: String.fromCharCode(Number.POSITIVE_INFINITY).charCodeAt(0) === 0. Actual: ' + (String.fromCharCode(Number.POSITIVE_INFINITY).charCodeAt(0)));
-} else if (1/String.fromCharCode(Number.POSITIVE_INFINITY).charCodeAt(0) !== Number.POSITIVE_INFINITY) {
+} else if (1 / String.fromCharCode(Number.POSITIVE_INFINITY).charCodeAt(0) !== Number.POSITIVE_INFINITY) {
$ERROR('#5.2: String.fromCharCode(Number.POSITIVE_INFINITY).charCodeAt(0) === +0. Actual: -0');
}
// CHECK#6
if (String.fromCharCode(Number.NEGATIVE_INFINITY).charCodeAt(0) !== +0) {
$ERROR("#6.1: String.fromCharCode(Number.NEGATIVE_INFINITY).charCodeAt(0) === +0");
-} else if (1/String.fromCharCode(Number.NEGATIVE_INFINITY).charCodeAt(0) !== Number.POSITIVE_INFINITY) {
+} else if (1 / String.fromCharCode(Number.NEGATIVE_INFINITY).charCodeAt(0) !== Number.POSITIVE_INFINITY) {
$ERROR("#6.2: String.fromCharCode(Number.NEGATIVE_INFINITY).charCodeAt(0) === +0. Actual: -0");
}
diff --git a/test/built-ins/String/fromCharCode/S9.7_A3.1_T4.js b/test/built-ins/String/fromCharCode/S9.7_A3.1_T4.js
index fd601b409..3af06a059 100644
--- a/test/built-ins/String/fromCharCode/S9.7_A3.1_T4.js
+++ b/test/built-ins/String/fromCharCode/S9.7_A3.1_T4.js
@@ -8,26 +8,51 @@ description: Type(x) is Object
---*/
//CHECK#1
-var object = {valueOf: function() {return 1}};
+var object = {
+ valueOf: function() {
+ return 1
+ }
+};
if (String.fromCharCode(object).charCodeAt(0) !== 1) {
$ERROR('#1: var object = {valueOf: function() {return 1}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0)));
}
//CHECK#2
-var object = {valueOf: function() {return 1}, toString: function() {return 0}};
+var object = {
+ valueOf: function() {
+ return 1
+ },
+ toString: function() {
+ return 0
+ }
+};
if (String.fromCharCode(object).charCodeAt(0) !== 1) {
$ERROR('#2: var object = {valueOf: function() {return 1}, toString: function() {return 0}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0)));
-}
+}
//CHECK#3
-var object = {valueOf: function() {return 1}, toString: function() {return {}}};
+var object = {
+ valueOf: function() {
+ return 1
+ },
+ toString: function() {
+ return {}
+ }
+};
if (String.fromCharCode(object).charCodeAt(0) !== 1) {
$ERROR('#3: var object = {valueOf: function() {return 1}, toString: function() {return {}}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0)));
}
//CHECK#4
try {
- var object = {valueOf: function() {return 1}, toString: function() {throw "error"}};
+ var object = {
+ valueOf: function() {
+ return 1
+ },
+ toString: function() {
+ throw "error"
+ }
+ };
if (String.fromCharCode(object).charCodeAt(0) !== 1) {
$ERROR('#4.1: var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0)));
}
@@ -41,37 +66,62 @@ catch (e) {
}
//CHECK#5
-var object = {toString: function() {return 1}};
+var object = {
+ toString: function() {
+ return 1
+ }
+};
if (String.fromCharCode(object).charCodeAt(0) !== 1) {
$ERROR('#5: var object = {toString: function() {return 1}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0)));
}
//CHECK#6
-var object = {valueOf: function() {return {}}, toString: function() {return 1}}
+var object = {
+ valueOf: function() {
+ return {}
+ },
+ toString: function() {
+ return 1
+ }
+}
if (String.fromCharCode(object).charCodeAt(0) !== 1) {
$ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return 1}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0)));
}
//CHECK#7
try {
- var object = {valueOf: function() {throw "error"}, toString: function() {return 1}};
+ var object = {
+ valueOf: function() {
+ throw "error"
+ },
+ toString: function() {
+ return 1
+ }
+ };
object >>> 0;
$ERROR('#7.1: var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; object throw "error". Actual: ' + (object >>> 0));
-}
+}
catch (e) {
if (e !== "error") {
$ERROR('#7.2: var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; object throw "error". Actual: ' + (e));
- }
+ }
}
//CHECK#8
try {
- var object = {valueOf: function() {return {}}, toString: function() {return {}}};
+ var object = {
+ valueOf: function() {
+ return {}
+ },
+ toString: function() {
+ return {}
+ }
+ };
object >>> 0;
$ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; object throw TypeError. Actual: ' + (object >>> 0));
-}
+}
catch (e) {
if ((e instanceof TypeError) !== true) {
$ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; object throw TypeError. Actual: ' + (e));
- }
+ }
}
diff --git a/test/built-ins/String/fromCodePoint/to-number-conversions.js b/test/built-ins/String/fromCodePoint/to-number-conversions.js
index da054bb2f..84dac44c2 100644
--- a/test/built-ins/String/fromCodePoint/to-number-conversions.js
+++ b/test/built-ins/String/fromCodePoint/to-number-conversions.js
@@ -25,6 +25,10 @@ assert.sameValue(String.fromCodePoint(true), '\x01');
assert.sameValue(String.fromCodePoint('42'), '\x2A');
assert.sameValue(String.fromCodePoint('042'), '\x2A');
assert.sameValue(
- String.fromCodePoint({ valueOf: function() { return 31; } }),
+ String.fromCodePoint({
+ valueOf: function() {
+ return 31;
+ }
+ }),
'\x1F'
);
diff --git a/test/built-ins/String/length.js b/test/built-ins/String/length.js
index 839a7cdf8..7b19a381c 100644
--- a/test/built-ins/String/length.js
+++ b/test/built-ins/String/length.js
@@ -26,4 +26,4 @@ str = new String(' \b ');
assert.sameValue(str.length, 3, 'character escape (U+008, "backspace")');
str = new String('\ud834\udf06');
-assert.sameValue(str.length, 2, 'Unicode escape (surrogate pair)');
+assert.sameValue(str.length, 2, 'Unicode escape (surrogate pair)');
diff --git a/test/built-ins/String/prototype/S15.5.3.1_A1.js b/test/built-ins/String/prototype/S15.5.3.1_A1.js
index 0c621f1e3..ae4163e2f 100644
--- a/test/built-ins/String/prototype/S15.5.3.1_A1.js
+++ b/test/built-ins/String/prototype/S15.5.3.1_A1.js
@@ -10,7 +10,7 @@ description: Checking String.hasOwnProperty('prototype')
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.hasOwnProperty('prototype'))) {
- $ERROR('#1: String.hasOwnProperty(\'prototype\') return true. Actual: '+String.hasOwnProperty('prototype'));
+ $ERROR('#1: String.hasOwnProperty(\'prototype\') return true. Actual: ' + String.hasOwnProperty('prototype'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/S15.5.3.1_A2.js b/test/built-ins/String/prototype/S15.5.3.1_A2.js
index fac9d45a5..160a7d3e0 100644
--- a/test/built-ins/String/prototype/S15.5.3.1_A2.js
+++ b/test/built-ins/String/prototype/S15.5.3.1_A2.js
@@ -10,7 +10,7 @@ description: Checking if enumerating the String.prototype property fails
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.hasOwnProperty('prototype'))) {
- $ERROR('#0: String.hasOwnProperty(\'prototype\') return true. Actual: '+String.hasOwnProperty('prototype'));
+ $ERROR('#0: String.hasOwnProperty(\'prototype\') return true. Actual: ' + String.hasOwnProperty('prototype'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -19,7 +19,7 @@ if (!(String.hasOwnProperty('prototype'))) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#1
if (String.propertyIsEnumerable('prototype')) {
- $ERROR('#1: String.propertyIsEnumerable(\'prototype\') return false. Actual: '+String.propertyIsEnumerable('prototype'));
+ $ERROR('#1: String.propertyIsEnumerable(\'prototype\') return false. Actual: ' + String.propertyIsEnumerable('prototype'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,14 +27,14 @@ if (String.propertyIsEnumerable('prototype')) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#2
-var count=0;
+var count = 0;
-for (var p in String){
- if (p==="prototype") count++;
+for (var p in String) {
+ if (p === "prototype") count++;
}
if (count !== 0) {
- $ERROR('#2: count=0; for (p in String){ if (p==="prototype") count++;}; count === 0. Actual: count ==='+count );
+ $ERROR('#2: count=0; for (p in String){ if (p==="prototype") count++;}; count === 0. Actual: count ===' + count);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/S15.5.3.1_A3.js b/test/built-ins/String/prototype/S15.5.3.1_A3.js
index ae4759657..5fecfb2c2 100644
--- a/test/built-ins/String/prototype/S15.5.3.1_A3.js
+++ b/test/built-ins/String/prototype/S15.5.3.1_A3.js
@@ -11,7 +11,7 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.hasOwnProperty('prototype'))) {
- $ERROR('#1: String.hasOwnProperty(\'prototype\') return true. Actual: '+String.hasOwnProperty('prototype'));
+ $ERROR('#1: String.hasOwnProperty(\'prototype\') return true. Actual: ' + String.hasOwnProperty('prototype'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ try {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (!(String.hasOwnProperty('prototype'))) {
- $ERROR('#3: delete String.prototype; String.hasOwnProperty(\'prototype\') return true. Actual: '+String.hasOwnProperty('prototype'));
+ $ERROR('#3: delete String.prototype; String.hasOwnProperty(\'prototype\') return true. Actual: ' + String.hasOwnProperty('prototype'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/S15.5.3.1_A4.js b/test/built-ins/String/prototype/S15.5.3.1_A4.js
index e94cfe27e..6f7a145fb 100644
--- a/test/built-ins/String/prototype/S15.5.3.1_A4.js
+++ b/test/built-ins/String/prototype/S15.5.3.1_A4.js
@@ -11,19 +11,21 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.hasOwnProperty('prototype'))) {
- $ERROR('#1: String.hasOwnProperty(\'prototype\') return true. Actual: '+String.hasOwnProperty('prototype'));
+ $ERROR('#1: String.hasOwnProperty(\'prototype\') return true. Actual: ' + String.hasOwnProperty('prototype'));
}
//
//////////////////////////////////////////////////////////////////////////////
var __obj = String.prototype;
-verifyNotWritable(String, "prototype", null, function(){return "shifted";});
+verifyNotWritable(String, "prototype", null, function() {
+ return "shifted";
+});
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype !== __obj) {
- $ERROR('#2: __obj = String.prototype; String.prototype = function(){return "shifted";}; String.prototype === __obj. Actual: String.prototype ==='+String.prototype );
+ $ERROR('#2: __obj = String.prototype; String.prototype = function(){return "shifted";}; String.prototype === __obj. Actual: String.prototype ===' + String.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/S15.5.4_A1.js b/test/built-ins/String/prototype/S15.5.4_A1.js
index 1b12c336f..44c686476 100644
--- a/test/built-ins/String/prototype/S15.5.4_A1.js
+++ b/test/built-ins/String/prototype/S15.5.4_A1.js
@@ -15,8 +15,8 @@ delete String.prototype.toString;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (String.prototype.toString() !== "[object "+"String"+"]") {
- $ERROR('#1: delete String.prototype.toString; String.prototype.toString() === "[object "+"String"+"]". Actual: String.prototype.toString() ==='+String.prototype.toString() );
+if (String.prototype.toString() !== "[object " + "String" + "]") {
+ $ERROR('#1: delete String.prototype.toString; String.prototype.toString() === "[object "+"String"+"]". Actual: String.prototype.toString() ===' + String.prototype.toString());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/S15.5.4_A2.js b/test/built-ins/String/prototype/S15.5.4_A2.js
index 227ed079c..b36246e30 100644
--- a/test/built-ins/String/prototype/S15.5.4_A2.js
+++ b/test/built-ins/String/prototype/S15.5.4_A2.js
@@ -9,8 +9,8 @@ description: Checking String.prototype
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (String.prototype !="") {
- $ERROR('#1: String.prototype =="". Actual: String.prototype =='+String.prototype );
+if (String.prototype != "") {
+ $ERROR('#1: String.prototype =="". Actual: String.prototype ==' + String.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/S15.5.4_A3.js b/test/built-ins/String/prototype/S15.5.4_A3.js
index c63a61dcf..bc5edd1c3 100644
--- a/test/built-ins/String/prototype/S15.5.4_A3.js
+++ b/test/built-ins/String/prototype/S15.5.4_A3.js
@@ -12,7 +12,7 @@ description: Checking Object.prototype.isPrototypeOf(String.prototype)
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(Object.prototype.isPrototypeOf(String.prototype))) {
- $ERROR('#1: Object.prototype.isPrototypeOf(String.prototype) return true. Actual: '+Object.prototype.isPrototypeOf(String.prototype));
+ $ERROR('#1: Object.prototype.isPrototypeOf(String.prototype) return true. Actual: ' + Object.prototype.isPrototypeOf(String.prototype));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -21,8 +21,8 @@ delete String.prototype.toString;
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (String.prototype.toString() != "[object "+"String"+"]") {
- $ERROR('#2: delete String.prototype.toString; String.prototype.toString() == "[object "+"String"+"]". Actual: String.prototype.toString() =='+String.prototype.toString() );
+if (String.prototype.toString() != "[object " + "String" + "]") {
+ $ERROR('#2: delete String.prototype.toString; String.prototype.toString() == "[object "+"String"+"]". Actual: String.prototype.toString() ==' + String.prototype.toString());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1.1.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1.1.js
index a89daec9b..79c9d0ec5 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1.1.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1.1.js
@@ -7,7 +7,11 @@ es5id: 15.5.4.4_A1.1
description: Checking by using eval
---*/
-function __FACTORY(){this.toString = function(){ return "wizard";};};
+function __FACTORY() {
+ this.toString = function() {
+ return "wizard";
+ };
+};
__FACTORY.prototype.charAt = String.prototype.charAt;
@@ -15,8 +19,8 @@ var __instance = new __FACTORY;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- if (__instance.charAt(eval("1"),true,null,{})!== "i") {
- $ERROR('#1: __instance.charAt(eval("1"),true,null,{})=== "i". Actual: '+__instance.charAt(eval("1"),true,null,{}));
- }
+if (__instance.charAt(eval("1"), true, null, {}) !== "i") {
+ $ERROR('#1: __instance.charAt(eval("1"),true,null,{})=== "i". Actual: ' + __instance.charAt(eval("1"), true, null, {}));
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A10.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A10.js
index ad3379461..21de5fc4c 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A10.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A10.js
@@ -13,19 +13,21 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.charAt.hasOwnProperty('length'))) {
- $ERROR('#1: String.prototype.charAt.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.charAt.hasOwnProperty('length'));
+ $ERROR('#1: String.prototype.charAt.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.charAt.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
var __obj = String.prototype.charAt.length;
-verifyNotWritable(String.prototype.charAt, "length", null, function(){return "shifted";});
+verifyNotWritable(String.prototype.charAt, "length", null, function() {
+ return "shifted";
+});
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.charAt.length !== __obj) {
- $ERROR('#2: __obj = String.prototype.charAt.length; String.prototype.charAt.length = function(){return "shifted";}; String.prototype.charAt.length === __obj. Actual: '+String.prototype.charAt.length );
+ $ERROR('#2: __obj = String.prototype.charAt.length; String.prototype.charAt.length = function(){return "shifted";}; String.prototype.charAt.length === __obj. Actual: ' + String.prototype.charAt.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A11.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A11.js
index bb5b5cb34..2d376a2dc 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A11.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A11.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.charAt.length
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.charAt.hasOwnProperty("length"))) {
- $ERROR('#1: String.prototype.charAt.hasOwnProperty("length") return true. Actual: '+String.prototype.charAt.hasOwnProperty("length"));
+ $ERROR('#1: String.prototype.charAt.hasOwnProperty("length") return true. Actual: ' + String.prototype.charAt.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -18,7 +18,7 @@ if (!(String.prototype.charAt.hasOwnProperty("length"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.charAt.length !== 1) {
- $ERROR('#2: String.prototype.charAt.length === 1. Actual: '+String.prototype.charAt.length );
+ $ERROR('#2: String.prototype.charAt.length === 1. Actual: ' + String.prototype.charAt.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T1.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T1.js
index d88cec69a..c47d9c5c5 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T1.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T1.js
@@ -13,8 +13,8 @@ __instance.charAt = String.prototype.charAt;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.charAt(false)+__instance.charAt(true) !== "42") {
- $ERROR('#1: __instance = new Object(42); __instance.charAt = String.prototype.charAt; __instance = new Object(42); __instance.charAt = String.prototype.charAt; __instance.charAt(false)+__instance.charAt(true) === "42". Actual: '+__instance.charAt(false)+__instance.charAt(true) );
+if (__instance.charAt(false) + __instance.charAt(true) !== "42") {
+ $ERROR('#1: __instance = new Object(42); __instance.charAt = String.prototype.charAt; __instance = new Object(42); __instance.charAt = String.prototype.charAt; __instance.charAt(false)+__instance.charAt(true) === "42". Actual: ' + __instance.charAt(false) + __instance.charAt(true));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T10.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T10.js
index b92349adc..10c5d32b2 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T10.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T10.js
@@ -7,13 +7,17 @@ es5id: 15.5.4.4_A1_T10
description: Call charAt() function with object argument
---*/
-var __obj = {toString:function(){return 1;}}
+var __obj = {
+ toString: function() {
+ return 1;
+ }
+}
var __str = "lego";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- if (__str.charAt(__obj) !== "e") {
- $ERROR('#1: var __obj = {toString:function(){return 1;}}; var __str = "lego"; __str.charAt(__obj) === "e". Actual: '+__str.charAt(__obj) );
- }
+if (__str.charAt(__obj) !== "e") {
+ $ERROR('#1: var __obj = {toString:function(){return 1;}}; var __str = "lego"; __str.charAt(__obj) === "e". Actual: ' + __str.charAt(__obj));
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T2.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T2.js
index 42ad5f81b..39930f228 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T2.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T2.js
@@ -13,8 +13,8 @@ __instance.charAt = String.prototype.charAt;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.charAt(false)+__instance.charAt(true)+__instance.charAt(true+1) !== "fal") {
- $ERROR('#1: __instance = new Boolean; __instance.charAt = String.prototype.charAt; __instance = new Boolean; __instance.charAt = String.prototype.charAt; __instance.charAt(false)+__instance.charAt(true)+__instance.charAt(true+1) === "fal". Actual: '+__instance.charAt(false)+__instance.charAt(true)+__instance.charAt(true+1) );
+if (__instance.charAt(false) + __instance.charAt(true) + __instance.charAt(true + 1) !== "fal") {
+ $ERROR('#1: __instance = new Boolean; __instance.charAt = String.prototype.charAt; __instance = new Boolean; __instance.charAt = String.prototype.charAt; __instance.charAt(false)+__instance.charAt(true)+__instance.charAt(true+1) === "fal". Actual: ' + __instance.charAt(false) + __instance.charAt(true) + __instance.charAt(true + 1));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T4.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T4.js
index 6296bb163..c69163edf 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T4.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T4.js
@@ -11,7 +11,7 @@ description: Call charAt() function without argument of string object
//CHECK#1
//since ToInteger() evaluates to 0 charAt() evaluates to charAt(0)
if ("lego".charAt() !== "l") {
- $ERROR('#1: "lego".charAt() === "l". Actual: "lego".charAt() ==='+("lego".charAt()) );
+ $ERROR('#1: "lego".charAt() === "l". Actual: "lego".charAt() ===' + ("lego".charAt()));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js
index f3d40ae7a..dcf127bde 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js
@@ -10,8 +10,12 @@ description: Call charAt() function with null argument of function object
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToInteger(null) evaluates to 0 charAt() evaluates to charAt(0)
-if (function(){return "lego"}().charAt(null) !== "l") {
- $ERROR('#1: function(){return "lego"}().charAt(null) === "l". Actual: function(){return "lego"}().charAt(null) ==='+function(){return "lego"}().charAt(null) );
+if (function() {
+ return "lego"
+ }().charAt(null) !== "l") {
+ $ERROR('#1: function(){return "lego"}().charAt(null) === "l". Actual: function(){return "lego"}().charAt(null) ===' + function() {
+ return "lego"
+ }().charAt(null));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T6.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T6.js
index 73d3ab390..e611efe88 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T6.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T6.js
@@ -13,7 +13,7 @@ description: >
//CHECK#1
//since ToInteger(undefined) evaluates to 0 charAt() evaluates to charAt(0)
if (new String("lego").charAt(x) !== "l") {
- $ERROR('#1: var x; new String("lego").charAt(x) === "l". Actual: new String("lego").charAt(x) ==='+new String("lego").charAt(x) );
+ $ERROR('#1: var x; new String("lego").charAt(x) === "l". Actual: new String("lego").charAt(x) ===' + new String("lego").charAt(x));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T7.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T7.js
index 067418236..ed0b9c4e5 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T7.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T7.js
@@ -11,7 +11,7 @@ description: Call charAt() function with undefined argument of string object
//CHECK#1
//since ToInteger(undefined) evaluates to 0 charAt() evaluates to charAt(0)
if (String("lego").charAt(undefined) !== "l") {
- $ERROR('#1: String("lego").charAt(undefined) === "l". Actual: String("lego").charAt(undefined) ==='+String("lego").charAt(undefined) );
+ $ERROR('#1: String("lego").charAt(undefined) === "l". Actual: String("lego").charAt(undefined) ===' + String("lego").charAt(undefined));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T8.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T8.js
index ef0d83882..cb5f85ffc 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T8.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T8.js
@@ -11,7 +11,7 @@ description: Call charAt() function with void 0 argument of string object
//CHECK#1
//since ToInteger(void 0) evaluates to 0 charAt() evaluates to charAt(0)
if (String(42).charAt(void 0) !== "4") {
- $ERROR('#1: String(42).charAt(void 0) === "4". Actual: String(42).charAt(void 0) ==='+String(42).charAt(void 0) );
+ $ERROR('#1: String(42).charAt(void 0) === "4". Actual: String(42).charAt(void 0) ===' + String(42).charAt(void 0));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T9.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T9.js
index 6137d3e04..46f5c6d60 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T9.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T9.js
@@ -12,8 +12,8 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToInteger(undefined) evaluates to 0 charAt() evaluates to charAt(0)
-if (new String(42).charAt(function(){}()) !== "4") {
- $ERROR('#1: new String(42).charAt(function(){}()) === "4". Actual: new String(42).charAt(function(){}()) ==='+new String(42).charAt(function(){}()) );
+if (new String(42).charAt(function() {}()) !== "4") {
+ $ERROR('#1: new String(42).charAt(function(){}()) === "4". Actual: new String(42).charAt(function(){}()) ===' + new String(42).charAt(function() {}()));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A2.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A2.js
index 9616be531..b83c11f8d 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A2.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A2.js
@@ -9,7 +9,7 @@ es5id: 15.5.4.4_A2
description: Call charAt(pos) with negative pos
---*/
-function __FACTORY(){};
+function __FACTORY() {};
__FACTORY.prototype.charAt = String.prototype.charAt;
@@ -18,7 +18,7 @@ var __instance = new __FACTORY;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.charAt(-1) !== "") {
- $ERROR('#1: __instance.charAt(-1) === "". Actual: __instance.charAt(-1) ==='+__instance.charAt(-1) );
+ $ERROR('#1: __instance.charAt(-1) === "". Actual: __instance.charAt(-1) ===' + __instance.charAt(-1));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A3.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A3.js
index 185d7950d..daf222d95 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A3.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A3.js
@@ -14,7 +14,7 @@ var __instance = new String("ABC");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.charAt(3) !== "") {
- $ERROR('#1: __instance = new String("ABC"); __instance.charAt(3) === "". Actual: __instance.charAt(3) ==='+__instance.charAt(3) );
+ $ERROR('#1: __instance = new String("ABC"); __instance.charAt(3) === "". Actual: __instance.charAt(3) ===' + __instance.charAt(3));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T1.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T1.js
index 5216b646e..bc71de8a5 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T1.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T1.js
@@ -11,11 +11,11 @@ description: Compare results of x.charAt(pos) and x.substring(pos, pos+1)
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-for(var i=0; i<6; i++) {
- if ("ABC\u0041\u0042\u0043".charAt(i) !== "\u0041\u0042\u0043ABC".substring(i, i+1)) {
- $ERROR('#'+i+': "ABC\\u0041\\u0042\\u0043".charAt('+i+') === "\\u0041\\u0042\\u0043ABC".substring('+i+', '+(i+1)+'). Actual: "ABC\\u0041\\u0042\\u0043".charAt('+i+') ==='+("ABC\u0041\u0042\u0043".charAt(i)) );
- }
+for (var i = 0; i < 6; i++) {
+ if ("ABC\u0041\u0042\u0043".charAt(i) !== "\u0041\u0042\u0043ABC".substring(i, i + 1)) {
+ $ERROR('#' + i + ': "ABC\\u0041\\u0042\\u0043".charAt(' + i + ') === "\\u0041\\u0042\\u0043ABC".substring(' + i + ', ' + (i + 1) + '). Actual: "ABC\\u0041\\u0042\\u0043".charAt(' + i + ') ===' + ("ABC\u0041\u0042\u0043".charAt(i)));
+ }
}
-
+
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T2.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T2.js
index 0771bc7f5..79556c519 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T2.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T2.js
@@ -13,11 +13,11 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-for(var i=-2; i<0; i++) {
- if ("ABC\u0041\u0042\u0043".charAt(i) !== "\u0041\u0042\u0043ABC".substring(i, i+1)) {
- $ERROR('#'+(i+2)+': "ABC\\u0041\\u0042\\u0043".charAt('+i+') === "\\u0041\\u0042\\u0043ABC".substring('+i+', '+(i+1)+'). Actual: "ABC\\u0041\\u0042\\u0043".charAt('+i+') ==='+("ABC\u0041\u0042\u0043".charAt(i)) );
- }
+for (var i = -2; i < 0; i++) {
+ if ("ABC\u0041\u0042\u0043".charAt(i) !== "\u0041\u0042\u0043ABC".substring(i, i + 1)) {
+ $ERROR('#' + (i + 2) + ': "ABC\\u0041\\u0042\\u0043".charAt(' + i + ') === "\\u0041\\u0042\\u0043ABC".substring(' + i + ', ' + (i + 1) + '). Actual: "ABC\\u0041\\u0042\\u0043".charAt(' + i + ') ===' + ("ABC\u0041\u0042\u0043".charAt(i)));
+ }
}
-
+
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T3.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T3.js
index ab0ddbffa..3f3665233 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T3.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T3.js
@@ -13,11 +13,11 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-for(var i=6; i<8; i++) {
- if ("ABC\u0041\u0042\u0043".charAt(i) !== "\u0041\u0042\u0043ABC".substring(i, i+1)) {
- $ERROR('#'+(i-5)+': "ABC\\u0041\\u0042\\u0043".charAt('+i+') === "\\u0041\\u0042\\u0043ABC".substring('+i+', '+(i+1)+'). Actual: "ABC\\u0041\\u0042\\u0043".charAt('+i+') ==='+("ABC\u0041\u0042\u0043".charAt(i)));
- }
+for (var i = 6; i < 8; i++) {
+ if ("ABC\u0041\u0042\u0043".charAt(i) !== "\u0041\u0042\u0043ABC".substring(i, i + 1)) {
+ $ERROR('#' + (i - 5) + ': "ABC\\u0041\\u0042\\u0043".charAt(' + i + ') === "\\u0041\\u0042\\u0043ABC".substring(' + i + ', ' + (i + 1) + '). Actual: "ABC\\u0041\\u0042\\u0043".charAt(' + i + ') ===' + ("ABC\u0041\u0042\u0043".charAt(i)));
+ }
}
-
+
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js
index 266fc6ae1..fadadc996 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js
@@ -9,10 +9,12 @@ es5id: 15.5.4.4_A5
description: Change toString function, it trow exception, and call charAt()
---*/
-var __obj={
- valueOf:1,
- toString:function(){throw 'intostring'},
- charAt:String.prototype.charAt
+var __obj = {
+ valueOf: 1,
+ toString: function() {
+ throw 'intostring'
+ },
+ charAt: String.prototype.charAt
}
//////////////////////////////////////////////////////////////////////////////
@@ -22,7 +24,7 @@ try {
$ERROR('#1: __obj={valueOf:1,toString:function(){throw \'intostring\'},charAt:String.prototype.charAt}; "var x = __obj.charAt()" lead to throwing exception');
} catch (e) {
if (e !== 'intostring') {
- $ERROR('#1.1: Exception === \'intostring\'. Actual: exception ==='+e );
+ $ERROR('#1.1: Exception === \'intostring\'. Actual: exception ===' + e);
}
}
//
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A6.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A6.js
index 1e3114e6a..a5a00a328 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A6.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A6.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.charAt.prototype
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.prototype.charAt.prototype !== undefined) {
- $ERROR('#1: String.prototype.charAt.prototype === undefined. Actual: '+String.prototype.charAt.prototype );
+ $ERROR('#1: String.prototype.charAt.prototype === undefined. Actual: ' + String.prototype.charAt.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A7.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A7.js
index 5afab205b..a43cc85f4 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A7.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A7.js
@@ -14,6 +14,6 @@ try {
$ERROR('#1: __FACTORY = String.prototype.charAt; "__instance = new __FACTORY" lead to throwing exception');
} catch (e) {
if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: undefined = 1 throw a TypeError. Actual: ' + (e));
+ $ERROR('#1.2: undefined = 1 throw a TypeError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A8.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A8.js
index 51dc2ca11..d18cf8044 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A8.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A8.js
@@ -12,7 +12,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.charAt.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.charAt.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.charAt.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.charAt.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.charAt.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -21,21 +21,21 @@ if (!(String.prototype.charAt.hasOwnProperty('length'))) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#1
if (String.prototype.charAt.propertyIsEnumerable('length')) {
- $ERROR('#1: String.prototype.charAt.propertyIsEnumerable(\'length\') return false. Actual: '+String.prototype.charAt.propertyIsEnumerable('length'));
+ $ERROR('#1: String.prototype.charAt.propertyIsEnumerable(\'length\') return false. Actual: ' + String.prototype.charAt.propertyIsEnumerable('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
// CHECK#2
-var count=0;
+var count = 0;
-for (var p in String.prototype.charAt){
- if (p==="length") count++;
+for (var p in String.prototype.charAt) {
+ if (p === "length") count++;
}
if (count !== 0) {
- $ERROR('#2: count=0; for (p in String.prototype.charAt){if (p==="length") count++;}; count === 0. Actual: count ==='+count );
+ $ERROR('#2: count=0; for (p in String.prototype.charAt){if (p==="length") count++;}; count === 0. Actual: count ===' + count);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A9.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A9.js
index 9e3d36bee..6414fbe44 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A9.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A9.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.charAt.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.charAt.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.charAt.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.charAt.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.charAt.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (!delete String.prototype.charAt.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.charAt.hasOwnProperty('length')) {
- $ERROR('#2: delete String.prototype.charAt.length; String.prototype.charAt.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.charAt.hasOwnProperty('length'));
+ $ERROR('#2: delete String.prototype.charAt.length; String.prototype.charAt.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.charAt.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1.1.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1.1.js
index 24ac13274..ea9c7dac9 100644
--- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1.1.js
+++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1.1.js
@@ -7,7 +7,11 @@ es5id: 15.5.4.5_A1.1
description: Checking by using eval
---*/
-function __FACTORY(){this.toString = function(){ return "wizard";};};
+function __FACTORY() {
+ this.toString = function() {
+ return "wizard";
+ };
+};
__FACTORY.prototype.charCodeAt = String.prototype.charCodeAt;
@@ -15,8 +19,8 @@ var __instance = new __FACTORY;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- if (__instance.charCodeAt(eval("1"),true,null,{})!== 0x69) {
- $ERROR('#1: __instance.charCodeAt(eval("1"),true,null,{})=== 0x69. Actual: __instance.charCodeAt(eval("1"),true,null,{})==='+__instance.charCodeAt(eval("1"),true,null,{}));
- }
+if (__instance.charCodeAt(eval("1"), true, null, {}) !== 0x69) {
+ $ERROR('#1: __instance.charCodeAt(eval("1"),true,null,{})=== 0x69. Actual: __instance.charCodeAt(eval("1"),true,null,{})===' + __instance.charCodeAt(eval("1"), true, null, {}));
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A10.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A10.js
index a22bf9d0e..39c531e38 100644
--- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A10.js
+++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A10.js
@@ -13,19 +13,21 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.charCodeAt.hasOwnProperty('length'))) {
- $ERROR('#1: String.prototype.charCodeAt.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.charCodeAt.hasOwnProperty('length'));
+ $ERROR('#1: String.prototype.charCodeAt.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.charCodeAt.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
var __obj = String.prototype.charCodeAt.length;
-verifyNotWritable(String.prototype.charCodeAt, "length", null, function(){return "shifted";});
+verifyNotWritable(String.prototype.charCodeAt, "length", null, function() {
+ return "shifted";
+});
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.charCodeAt.length !== __obj) {
- $ERROR('#2: __obj = String.prototype.charCodeAt.length; String.prototype.charCodeAt.length = function(){return "shifted";}; String.prototype.charCodeAt.length === __obj. Actual: '+String.prototype.charCodeAt.length );
+ $ERROR('#2: __obj = String.prototype.charCodeAt.length; String.prototype.charCodeAt.length = function(){return "shifted";}; String.prototype.charCodeAt.length === __obj. Actual: ' + String.prototype.charCodeAt.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A11.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A11.js
index 1137dff67..f35538135 100644
--- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A11.js
+++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A11.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.charCodeAt.length
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.charCodeAt.hasOwnProperty("length"))) {
- $ERROR('#1: String.prototype.charCodeAt.hasOwnProperty("length") return true. Actual: '+String.prototype.charCodeAt.hasOwnProperty("length"));
+ $ERROR('#1: String.prototype.charCodeAt.hasOwnProperty("length") return true. Actual: ' + String.prototype.charCodeAt.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -18,7 +18,7 @@ if (!(String.prototype.charCodeAt.hasOwnProperty("length"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.charCodeAt.length !== 1) {
- $ERROR('#2: String.prototype.charCodeAt.length === 1. Actual: '+String.prototype.charCodeAt.length );
+ $ERROR('#2: String.prototype.charCodeAt.length === 1. Actual: ' + String.prototype.charCodeAt.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T1.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T1.js
index 5cd5570ea..8c31caede 100644
--- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T1.js
+++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T1.js
@@ -13,8 +13,8 @@ __instance.charCodeAt = String.prototype.charCodeAt;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if ((__instance.charCodeAt(false) !== 52)||(__instance.charCodeAt(true) !== 50)) {
- $ERROR('#1: __instance = new Object(42); __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(false) === 52 and __instance.charCodeAt(true) === 50. Actual: __instance.charCodeAt(false) ==='+__instance.charCodeAt(false)+' and __instance.charCodeAt(true) ==='+__instance.charCodeAt(true) );
+if ((__instance.charCodeAt(false) !== 52) || (__instance.charCodeAt(true) !== 50)) {
+ $ERROR('#1: __instance = new Object(42); __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(false) === 52 and __instance.charCodeAt(true) === 50. Actual: __instance.charCodeAt(false) ===' + __instance.charCodeAt(false) + ' and __instance.charCodeAt(true) ===' + __instance.charCodeAt(true));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T10.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T10.js
index 74b3895c5..c1391358e 100644
--- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T10.js
+++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T10.js
@@ -7,13 +7,17 @@ es5id: 15.5.4.5_A1_T10
description: Call charCodeAt() function with object argument
---*/
-var __obj = {toString:function(){return 1;}}
+var __obj = {
+ toString: function() {
+ return 1;
+ }
+}
var __str = "lego";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- if (__str.charCodeAt(__obj) !== 0x65) {
- $ERROR('#1: var __obj = {toString:function(){return 1;}}; var __str = "lego"; __str.charCodeAt(__obj) === 0x65. Actual: '+__str.charCodeAt(__obj) );
- }
+if (__str.charCodeAt(__obj) !== 0x65) {
+ $ERROR('#1: var __obj = {toString:function(){return 1;}}; var __str = "lego"; __str.charCodeAt(__obj) === 0x65. Actual: ' + __str.charCodeAt(__obj));
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T2.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T2.js
index 547304029..1013fba88 100644
--- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T2.js
+++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T2.js
@@ -13,24 +13,24 @@ __instance.charCodeAt = String.prototype.charCodeAt;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.charCodeAt(false)!==0x66) {
- $ERROR('#1: __instance = new Boolean; __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(false)===0x66. Actual: '+__instance.charCodeAt(false));
+if (__instance.charCodeAt(false) !== 0x66) {
+ $ERROR('#1: __instance = new Boolean; __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(false)===0x66. Actual: ' + __instance.charCodeAt(false));
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__instance.charCodeAt(true)!==0x61) {
- $ERROR('#2: __instance = new Boolean; __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(true)===0x61. Actual: '+__instance.charCodeAt(true));
+if (__instance.charCodeAt(true) !== 0x61) {
+ $ERROR('#2: __instance = new Boolean; __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(true)===0x61. Actual: ' + __instance.charCodeAt(true));
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-if (__instance.charCodeAt(true+1) !== 0x6C) {
- $ERROR('#3: __instance = new Boolean; __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(true+1) === 0x6C. Actual: '+__instance.charCodeAt(true+1) );
+if (__instance.charCodeAt(true + 1) !== 0x6C) {
+ $ERROR('#3: __instance = new Boolean; __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(true+1) === 0x6C. Actual: ' + __instance.charCodeAt(true + 1));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T4.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T4.js
index 8b0b253dc..05ee919d8 100644
--- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T4.js
+++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T4.js
@@ -11,7 +11,7 @@ description: Call charCodeAt() function without argument of string object
//CHECK#1
//since Number() evaluates to 0 charCodeAt() evaluates to charCodeAt(0)
if ("smart".charCodeAt() !== 0x73) {
- $ERROR('#1: "smart".charCodeAt() === 0x73. Actual: "smart".charCodeAt() ==='+("smart".charCodeAt()) );
+ $ERROR('#1: "smart".charCodeAt() === 0x73. Actual: "smart".charCodeAt() ===' + ("smart".charCodeAt()));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T5.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T5.js
index a80b2b0ca..b3535ed20 100644
--- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T5.js
+++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T5.js
@@ -10,8 +10,12 @@ description: Call charCodeAt() function with null argument of function object
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToInteger(null) evaluates to 0 charCodeAt() evaluates to charCodeAt(0)
-if (function(){return "lego"}().charCodeAt(null) !== 0x6C) {
- $ERROR('#1: function(){return "lego"}().charCodeAt(null) === 0x6C. Actual: '+function(){return "lego"}().charCodeAt(null) );
+if (function() {
+ return "lego"
+ }().charCodeAt(null) !== 0x6C) {
+ $ERROR('#1: function(){return "lego"}().charCodeAt(null) === 0x6C. Actual: ' + function() {
+ return "lego"
+ }().charCodeAt(null));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T6.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T6.js
index 3ddf8b0e7..d09356f16 100644
--- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T6.js
+++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T6.js
@@ -13,7 +13,7 @@ description: >
//CHECK#1
//since ToInteger(undefined) evaluates to 0 charCodeAt() evaluates to charCodeAt(0)
if (new String("lego").charCodeAt(x) !== 0x6C) {
- $ERROR('#1: var x; new String("lego").charCodeAt(x) === 0x6C. Actual: new String("lego").charCodeAt(x) ==='+new String("lego").charCodeAt(x) );
+ $ERROR('#1: var x; new String("lego").charCodeAt(x) === 0x6C. Actual: new String("lego").charCodeAt(x) ===' + new String("lego").charCodeAt(x));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T7.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T7.js
index a59910356..e8f6d6410 100644
--- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T7.js
+++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T7.js
@@ -11,7 +11,7 @@ description: Call charCodeAt() function with undefined argument of string object
//CHECK#1
//since ToInteger(undefined) evaluates to 0 charCodeAt() evaluates to charCodeAt(0)
if (String("lego").charCodeAt(undefined) !== 0x6C) {
- $ERROR('#1: String("lego").charCodeAt(undefined) === 0x6C. Actual: String("lego").charCodeAt(undefined) ==='+String("lego").charCodeAt(undefined) );
+ $ERROR('#1: String("lego").charCodeAt(undefined) === 0x6C. Actual: String("lego").charCodeAt(undefined) ===' + String("lego").charCodeAt(undefined));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T8.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T8.js
index 8a6b06344..860c1d4ec 100644
--- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T8.js
+++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T8.js
@@ -11,7 +11,7 @@ description: Call charCodeAt() function with void 0 argument of string object
//CHECK#1
//since ToInteger(void 0) evaluates to 0 charCodeAt() evaluates to charCodeAt(0)
if (String(42).charCodeAt(void 0) !== 0x34) {
- $ERROR('#1: String(42).charCodeAt(void 0) === 0x34. Actual: String(42).charCodeAt(void 0) ==='+String(42).charCodeAt(void 0) );
+ $ERROR('#1: String(42).charCodeAt(void 0) === 0x34. Actual: String(42).charCodeAt(void 0) ===' + String(42).charCodeAt(void 0));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T9.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T9.js
index 9a336549c..e1f00f767 100644
--- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T9.js
+++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T9.js
@@ -12,8 +12,8 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToInteger(undefined) evaluates to 0 charCodeAt() evaluates to charCodeAt(0)
-if (new String(42).charCodeAt(function(){}()) !== 0x34) {
- $ERROR('#1: new String(42).charCodeAt(function(){}()) === 0x34. Actual: new String(42).charCodeAt(function(){}()) ==='+new String(42).charCodeAt(function(){}()) );
+if (new String(42).charCodeAt(function() {}()) !== 0x34) {
+ $ERROR('#1: new String(42).charCodeAt(function(){}()) === 0x34. Actual: new String(42).charCodeAt(function(){}()) ===' + new String(42).charCodeAt(function() {}()));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A2.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A2.js
index 290fad88b..3c06c1b08 100644
--- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A2.js
+++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A2.js
@@ -9,7 +9,7 @@ es5id: 15.5.4.5_A2
description: Call charCodeAt(pos) with negative pos
---*/
-function __FACTORY(){};
+function __FACTORY() {};
__FACTORY.prototype.charCodeAt = String.prototype.charCodeAt;
diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A4.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A4.js
index 29301ca72..c46f0f2b8 100644
--- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A4.js
+++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A4.js
@@ -9,10 +9,12 @@ es5id: 15.5.4.5_A4
description: Change toString function, it trow exception, and call charCodeAt()
---*/
-var __obj={
- valueOf:1,
- toString:function(){throw 'intostring'},
- charCodeAt:String.prototype.charCodeAt
+var __obj = {
+ valueOf: 1,
+ toString: function() {
+ throw 'intostring'
+ },
+ charCodeAt: String.prototype.charCodeAt
}
//////////////////////////////////////////////////////////////////////////////
@@ -22,7 +24,7 @@ try {
$ERROR('#1: "var x = __obj.charCodeAt()" lead to throwing exception');
} catch (e) {
if (e !== 'intostring') {
- $ERROR('#1.1: Exception === \'intostring\'. Actual: exception ==='+e );
+ $ERROR('#1.1: Exception === \'intostring\'. Actual: exception ===' + e);
}
}
//
diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A6.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A6.js
index 4098f04d2..97e0f9b83 100644
--- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A6.js
+++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A6.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.charCodeAt.prototype
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.prototype.charCodeAt.prototype !== undefined) {
- $ERROR('#1: String.prototype.charCodeAt.prototype === undefined. Actual: '+String.prototype.charCodeAt.prototype );
+ $ERROR('#1: String.prototype.charCodeAt.prototype === undefined. Actual: ' + String.prototype.charCodeAt.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A7.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A7.js
index 23aa00ba8..d21d56d81 100644
--- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A7.js
+++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A7.js
@@ -13,5 +13,5 @@ try {
var __instance = new __FACTORY;
$ERROR('#1: __FACTORY = String.prototype.charCodeAt; "__instance = new __FACTORY" lead to throwing exception');
} catch (e) {
- if (e instanceof Test262Error) throw e;
+ if (e instanceof Test262Error) throw e;
}
diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A8.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A8.js
index e70cadbd2..6c3fe2a90 100644
--- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A8.js
+++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A8.js
@@ -12,7 +12,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.charCodeAt.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.charCodeAt.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.charCodeAt.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.charCodeAt.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.charCodeAt.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -21,21 +21,21 @@ if (!(String.prototype.charCodeAt.hasOwnProperty('length'))) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#1
if (String.prototype.charCodeAt.propertyIsEnumerable('length')) {
- $ERROR('#1: String.prototype.charCodeAt.propertyIsEnumerable(\'length\') return false. Actual: '+String.prototype.charCodeAt.propertyIsEnumerable('length'));
+ $ERROR('#1: String.prototype.charCodeAt.propertyIsEnumerable(\'length\') return false. Actual: ' + String.prototype.charCodeAt.propertyIsEnumerable('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
// CHECK#2
-var count=0;
+var count = 0;
-for (var p in String.prototype.charCodeAt){
- if (p==="length") count++;
+for (var p in String.prototype.charCodeAt) {
+ if (p === "length") count++;
}
if (count !== 0) {
- $ERROR('#2: count=0; for (p in String.prototype.charCodeAt){if (p==="length") count++;} count === 0. Actual: count ==='+count );
+ $ERROR('#2: count=0; for (p in String.prototype.charCodeAt){if (p==="length") count++;} count === 0. Actual: count ===' + count);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A9.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A9.js
index 6c39315e2..b09375f23 100644
--- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A9.js
+++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A9.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.charCodeAt.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.charCodeAt.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.charCodeAt.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.charCodeAt.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.charCodeAt.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (!delete String.prototype.charCodeAt.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.charCodeAt.hasOwnProperty('length')) {
- $ERROR('#2: delete String.prototype.charCodeAt.length; String.prototype.charCodeAt.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.charCodeAt.hasOwnProperty('length'));
+ $ERROR('#2: delete String.prototype.charCodeAt.length; String.prototype.charCodeAt.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.charCodeAt.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A10.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A10.js
index 00258a5e5..599b763ab 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A10.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A10.js
@@ -13,19 +13,21 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.concat.hasOwnProperty('length'))) {
- $ERROR('#1: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.concat.hasOwnProperty('length'));
+ $ERROR('#1: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.concat.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
var __obj = String.prototype.concat.length;
-verifyNotWritable(String.prototype.concat, "length", null, function(){return "shifted";});
+verifyNotWritable(String.prototype.concat, "length", null, function() {
+ return "shifted";
+});
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.concat.length !== __obj) {
- $ERROR('#2: __obj = String.prototype.concat.length; String.prototype.concat.length = function(){return "shifted";}; String.prototype.concat.length === __obj. Actual: '+String.prototype.concat.length );
+ $ERROR('#2: __obj = String.prototype.concat.length; String.prototype.concat.length = function(){return "shifted";}; String.prototype.concat.length === __obj. Actual: ' + String.prototype.concat.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A11.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A11.js
index 69016d99a..1896234ed 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A11.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A11.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.concat.length
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.concat.hasOwnProperty("length"))) {
- $ERROR('#1: String.prototype.concat.hasOwnProperty("length") return true. Actual: '+String.prototype.concat.hasOwnProperty("length"));
+ $ERROR('#1: String.prototype.concat.hasOwnProperty("length") return true. Actual: ' + String.prototype.concat.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -18,7 +18,7 @@ if (!(String.prototype.concat.hasOwnProperty("length"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.concat.length !== 1) {
- $ERROR('#2: String.prototype.concat.length === 1. Actual: '+String.prototype.concat.length );
+ $ERROR('#2: String.prototype.concat.length === 1. Actual: ' + String.prototype.concat.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T1.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T1.js
index 647cb30b5..bec80ca92 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T1.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T1.js
@@ -13,8 +13,8 @@ __instance.concat = String.prototype.concat;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.concat(false,true) !== "42falsetrue") {
- $ERROR('#1: __instance = new Object(42); __instance.concat = String.prototype.concat; __instance.concat(false,true) === "42falsetrue". Actual: '+__instance.concat(false,true) );
+if (__instance.concat(false, true) !== "42falsetrue") {
+ $ERROR('#1: __instance = new Object(42); __instance.concat = String.prototype.concat; __instance.concat(false,true) === "42falsetrue". Actual: ' + __instance.concat(false, true));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T10.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T10.js
index 006d0b65d..fa908ae16 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T10.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T10.js
@@ -7,19 +7,34 @@ es5id: 15.5.4.6_A1_T10
description: Call concat([,[...]]) function with object arguments
---*/
-var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}
-var __obj2 = {toString:function(){return true;}}
-var __obj3 = {toString:function(){return 42;}}
+var __obj = {
+ toString: function() {
+ return "\u0041";
+ },
+ valueOf: function() {
+ return "_\u0041_";
+ }
+}
+var __obj2 = {
+ toString: function() {
+ return true;
+ }
+}
+var __obj3 = {
+ toString: function() {
+ return 42;
+ }
+}
var __str = "lego";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- if (__str.concat(__obj) !== "legoA") {
- $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}; var __str = "lego"; __str.concat(__obj) === "legoA". Actual: '+__str.concat(__obj) );
- }
- if (__str.concat(__obj, __obj2, __obj3, x) !== "legoAtrue42undefined") {
- $ERROR('#2: var x; var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}; var __obj2 = {toString:function(){return true;}}; var __obj3 = {toString:function(){return 42;}}; var __str = "lego"; __str.concat(__obj, __obj2, __obj3, x) === "legoAtrue42undefined". Actual: '+__str.concat(__obj, __obj2, __obj3, x) );
- }
+if (__str.concat(__obj) !== "legoA") {
+ $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}; var __str = "lego"; __str.concat(__obj) === "legoA". Actual: ' + __str.concat(__obj));
+}
+if (__str.concat(__obj, __obj2, __obj3, x) !== "legoAtrue42undefined") {
+ $ERROR('#2: var x; var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}; var __obj2 = {toString:function(){return true;}}; var __obj3 = {toString:function(){return 42;}}; var __str = "lego"; __str.concat(__obj, __obj2, __obj3, x) === "legoAtrue42undefined". Actual: ' + __str.concat(__obj, __obj2, __obj3, x));
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T2.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T2.js
index 974b29823..1b2b1a799 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T2.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T2.js
@@ -15,8 +15,8 @@ __instance.concat = String.prototype.concat;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.concat("\u0041",true,true+1) !== "falseAtrue2") {
- $ERROR('#1: __instance = new Boolean; __instance.concat = String.prototype.concat; __instance.concat("\\u0041",true,true+1) === "falseAtrue2". Actual: '+__instance.concat("\u0041",true,true+1) );
+if (__instance.concat("\u0041", true, true + 1) !== "falseAtrue2") {
+ $ERROR('#1: __instance = new Boolean; __instance.concat = String.prototype.concat; __instance.concat("\\u0041",true,true+1) === "falseAtrue2". Actual: ' + __instance.concat("\u0041", true, true + 1));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T4.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T4.js
index f243a077d..13b2e3793 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T4.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T4.js
@@ -11,7 +11,7 @@ description: Call concat([,[...]]) function without argument of string object
//CHECK#1
//since ToString() evaluates to "" concat() evaluates to concat("")
if ("lego".concat() !== "lego") {
- $ERROR('#1: "lego".concat() === "lego". Actual: '+("lego".concat()) );
+ $ERROR('#1: "lego".concat() === "lego". Actual: ' + ("lego".concat()));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T5.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T5.js
index 7bad9d2e0..a47b10436 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T5.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T5.js
@@ -12,8 +12,12 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToString(null) evaluates to "null" concat(null) evaluates to concat("null")
-if (function(){return "lego"}().concat(null) !== "legonull") {
- $ERROR('#1: function(){return "lego"}().concat(null) === "legonull". Actual: '+function(){return "lego"}().concat(null) );
+if (function() {
+ return "lego"
+ }().concat(null) !== "legonull") {
+ $ERROR('#1: function(){return "lego"}().concat(null) === "legonull". Actual: ' + function() {
+ return "lego"
+ }().concat(null));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T6.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T6.js
index e633a6afa..5d7824d60 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T6.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T6.js
@@ -13,7 +13,7 @@ description: >
//CHECK#1
//since ToString(undefined) evaluates to "undefined" concat(undefined) evaluates to concat("undefined")
if (new String("lego").concat(x) !== "legoundefined") {
- $ERROR('#1: var x; new String("lego").concat(x) === "legoundefined". Actual: '+new String("lego").concat(x) );
+ $ERROR('#1: var x; new String("lego").concat(x) === "legoundefined". Actual: ' + new String("lego").concat(x));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T7.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T7.js
index 10e915663..09f682933 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T7.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T7.js
@@ -13,7 +13,7 @@ description: >
//CHECK#1
//since ToString(undefined) evaluates to "undefined" concat(undefined) evaluates to concat("undefined")
if (String("lego").concat(undefined) !== "legoundefined") {
- $ERROR('#1: String("lego").concat(undefined) === "legoundefined". Actual: '+String("lego").concat(undefined) );
+ $ERROR('#1: String("lego").concat(undefined) === "legoundefined". Actual: ' + String("lego").concat(undefined));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T8.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T8.js
index 4ededc053..297fe08ae 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T8.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T8.js
@@ -13,7 +13,7 @@ description: >
//CHECK#1
//since ToString(void 0) evaluates to "undefined" concat(void 0) evaluates to concat("undefined")
if (String(42).concat(void 0) !== "42undefined") {
- $ERROR('#1: String(42).concat(void 0) === "42undefined". Actual: '+String(42).concat(void 0) );
+ $ERROR('#1: String(42).concat(void 0) === "42undefined". Actual: ' + String(42).concat(void 0));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T9.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T9.js
index 08d70fd86..bfd2bac54 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T9.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T9.js
@@ -12,8 +12,8 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToString(undefined) evaluates to "undefined" concat(undefined) evaluates to concat("undefined")
-if (new String(42).concat(function(){}()) !== "42undefined") {
- $ERROR('#1: new String(42).concat(function(){}()) === "42undefined". Actual: '+new String(42).concat(function(){}()) );
+if (new String(42).concat(function() {}()) !== "42undefined") {
+ $ERROR('#1: new String(42).concat(function(){}()) === "42undefined". Actual: ' + new String(42).concat(function() {}()));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A2.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A2.js
index b16030c88..d9acfba8c 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A2.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A2.js
@@ -14,15 +14,15 @@ __instance.concat = String.prototype.concat;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.concat(
-0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF,
-0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF,
-0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF,
-0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF,
-0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF,
-0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF,
-0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF,
-0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF
-) !== "001234567891011121314150123456789101112131415012345678910111213141501234567891011121314150123456789101112131415012345678910111213141501234567891011121314150123456789101112131415") {
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF
+ ) !== "001234567891011121314150123456789101112131415012345678910111213141501234567891011121314150123456789101112131415012345678910111213141501234567891011121314150123456789101112131415") {
$ERROR('#1: Call concat([,[...]]) function with 128 arguments does not lead to throwing any errors');
}
//
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A3.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A3.js
index 3b2301578..0c477fd9e 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A3.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A3.js
@@ -14,7 +14,7 @@ __instance.concat("two");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance != "one") {
- $ERROR('#1: __instance = new String("one"); __instance.concat("two"); __instance = new String("one"); __instance.concat("two"); __instance == "one". Actual: '+__instance);
+ $ERROR('#1: __instance = new String("one"); __instance.concat("two"); __instance = new String("one"); __instance.concat("two"); __instance == "one". Actual: ' + __instance);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T1.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T1.js
index 8d2167924..4fb246b17 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T1.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T1.js
@@ -9,14 +9,18 @@ es5id: 15.5.4.6_A4_T1
description: Override toString function
---*/
-var __instance = {toString:function(){return "one"}};
+var __instance = {
+ toString: function() {
+ return "one"
+ }
+};
__instance.concat = String.prototype.concat;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.concat("two",x) !== "onetwoundefined") {
- $ERROR('#1: var x; __instance = {toString:function(){return "one"}}; __instance.concat = String.prototype.concat; __instance.concat("two",x) === "onetwoundefined". Actual: '+__instance.concat("two",x) );
+if (__instance.concat("two", x) !== "onetwoundefined") {
+ $ERROR('#1: var x; __instance = {toString:function(){return "one"}}; __instance.concat = String.prototype.concat; __instance.concat("two",x) === "onetwoundefined". Actual: ' + __instance.concat("two", x));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js
index 1e326035f..d743b9a45 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js
@@ -9,21 +9,29 @@ es5id: 15.5.4.6_A4_T2
description: Override toString function onto function, that throw exception
---*/
-var __instance = {toString:function(){throw "intostring";}};
-var __obj = {toString:function(){throw "infirstarg";}};
+var __instance = {
+ toString: function() {
+ throw "intostring";
+ }
+};
+var __obj = {
+ toString: function() {
+ throw "infirstarg";
+ }
+};
__instance.concat = String.prototype.concat;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try {
- String.prototype.concat.call(__instance,__obj, notexist);
+ String.prototype.concat.call(__instance, __obj, notexist);
$ERROR('#1: "String.prototype.concat.call(__instance,__obj, notexist)" lead to throwing exception');
} catch (e) {
if (e !== "intostring") {
- $ERROR('#1: e === "intostring". Actual: '+e );
+ $ERROR('#1: e === "intostring". Actual: ' + e);
}
-}
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A6.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A6.js
index 4da0d1454..f52f1a31e 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A6.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A6.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.concat.prototype
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.prototype.concat.prototype !== undefined) {
- $ERROR('#1: String.prototype.concat.prototype === undefined. Actual: '+String.prototype.concat.prototype );
+ $ERROR('#1: String.prototype.concat.prototype === undefined. Actual: ' + String.prototype.concat.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A7.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A7.js
index bfb422a43..9ff301ab0 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A7.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A7.js
@@ -13,5 +13,5 @@ try {
var __instance = new __FACTORY;
$ERROR('#1: __FACTORY = String.prototype.concat; "__instance = new __FACTORY" lead throwing exception');
} catch (e) {
- if (e instanceof Test262Error) throw e;
+ if (e instanceof Test262Error) throw e;
}
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A8.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A8.js
index 51e74575b..c8613d934 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A8.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A8.js
@@ -12,7 +12,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.concat.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.concat.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.concat.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -21,7 +21,7 @@ if (!(String.prototype.concat.hasOwnProperty('length'))) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#1
if (String.prototype.concat.propertyIsEnumerable('length')) {
- $ERROR('#1: String.prototype.concat.propertyIsEnumerable(\'length\') return false. Actual: '+String.prototype.concat.propertyIsEnumerable('length'));
+ $ERROR('#1: String.prototype.concat.propertyIsEnumerable(\'length\') return false. Actual: ' + String.prototype.concat.propertyIsEnumerable('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,12 +30,12 @@ if (String.prototype.concat.propertyIsEnumerable('length')) {
// CHECK#2
var count = 0;
-for (var p in String.prototype.concat){
- if (p==="length") count++;
+for (var p in String.prototype.concat) {
+ if (p === "length") count++;
}
if (count !== 0) {
- $ERROR('#2: count = 0; for (p in String.prototype.concat){ if (p==="length") count++;}; count === 0. Actual: '+count);
+ $ERROR('#2: count = 0; for (p in String.prototype.concat){ if (p==="length") count++;}; count === 0. Actual: ' + count);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A9.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A9.js
index dbb079290..6e92461a8 100644
--- a/test/built-ins/String/prototype/concat/S15.5.4.6_A9.js
+++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A9.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.concat.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.concat.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.concat.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (!delete String.prototype.concat.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.concat.hasOwnProperty('length')) {
- $ERROR('#2: delete String.prototype.concat.length; String.prototype.concat.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.concat.hasOwnProperty('length'));
+ $ERROR('#2: delete String.prototype.concat.length; String.prototype.concat.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.concat.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T1.js b/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T1.js
index 3650972ed..1081b4e59 100644
--- a/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T1.js
+++ b/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T1.js
@@ -12,7 +12,7 @@ description: Checking String.prototype.constructor
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.prototype.constructor !== String) {
- $ERROR('#1: String.prototype.constructor === String. Actual: String.prototype.constructor ==='+String.prototype.constructor );
+ $ERROR('#1: String.prototype.constructor === String. Actual: String.prototype.constructor ===' + String.prototype.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T2.js b/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T2.js
index e3bf5290a..fbceb8735 100644
--- a/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T2.js
+++ b/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T2.js
@@ -15,8 +15,8 @@ var __instance = new __constr("choosing one");
//////////////////////////////////////////////////////////////////////////////
// CHECK#0
-if (__instance !="choosing one") {
- $ERROR('#0: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); __instance =="choosing one". Actual: __instance =='+__instance );
+if (__instance != "choosing one") {
+ $ERROR('#0: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); __instance =="choosing one". Actual: __instance ==' + __instance);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -24,7 +24,7 @@ if (__instance !="choosing one") {
//////////////////////////////////////////////////////////////////////////////
// CHECK#1
if (__instance.constructor !== String) {
- $ERROR('#1: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); __instance.constructor === String. Actual: __instance.constructor ==='+__instance.constructor );
+ $ERROR('#1: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); __instance.constructor === String. Actual: __instance.constructor ===' + __instance.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -32,19 +32,19 @@ if (__instance.constructor !== String) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#2
if (!(String.prototype.isPrototypeOf(__instance))) {
- $ERROR('#2: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); String.prototype.isPrototypeOf(__instance) return true. Actual: '+String.prototype.isPrototypeOf(__instance));
+ $ERROR('#2: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); String.prototype.isPrototypeOf(__instance) return true. Actual: ' + String.prototype.isPrototypeOf(__instance));
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
// CHECK#3
-var __to_string_result = '[object '+ 'String' +']';
+var __to_string_result = '[object ' + 'String' + ']';
delete String.prototype.toString;
if (__instance.toString() !== __to_string_result) {
- $ERROR('#3: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); delete String.prototype.toString; __instance.toString() === __to_string_result. Actual: __instance.toString() ==='+__instance.toString()+' __to_string_result ==='+__to_string_result );
+ $ERROR('#3: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); delete String.prototype.toString; __instance.toString() === __to_string_result. Actual: __instance.toString() ===' + __instance.toString() + ' __to_string_result ===' + __to_string_result);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A10.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A10.js
index a5725856e..7ce937b59 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A10.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A10.js
@@ -13,19 +13,21 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.indexOf.hasOwnProperty('length'))) {
- $ERROR('#1: String.prototype.indexOf.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.indexOf.hasOwnProperty('length'));
+ $ERROR('#1: String.prototype.indexOf.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.indexOf.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
var __obj = String.prototype.indexOf.length;
-verifyNotWritable(String.prototype.indexOf, "length", null, function(){return "shifted";});
+verifyNotWritable(String.prototype.indexOf, "length", null, function() {
+ return "shifted";
+});
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.indexOf.length !== __obj) {
- $ERROR('#2: __obj = String.prototype.indexOf.length; String.prototype.indexOf.length = function(){return "shifted";}; String.prototype.indexOf.length === __obj. Actual: '+String.prototype.indexOf.length );
+ $ERROR('#2: __obj = String.prototype.indexOf.length; String.prototype.indexOf.length = function(){return "shifted";}; String.prototype.indexOf.length === __obj. Actual: ' + String.prototype.indexOf.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A11.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A11.js
index db610fbe1..173f1b556 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A11.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A11.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.indexOf.length
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.indexOf.hasOwnProperty("length"))) {
- $ERROR('#1: String.prototype.indexOf.hasOwnProperty("length") return true. Actual: '+String.prototype.indexOf.hasOwnProperty("length"));
+ $ERROR('#1: String.prototype.indexOf.hasOwnProperty("length") return true. Actual: ' + String.prototype.indexOf.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -18,7 +18,7 @@ if (!(String.prototype.indexOf.hasOwnProperty("length"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.indexOf.length !== 1) {
- $ERROR('#2: String.prototype.indexOf.length === 1. Actual: '+String.prototype.indexOf.length );
+ $ERROR('#2: String.prototype.indexOf.length === 1. Actual: ' + String.prototype.indexOf.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T1.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T1.js
index f3bc0fb9b..ef3079ba4 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T1.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T1.js
@@ -14,7 +14,7 @@ __instance.indexOf = String.prototype.indexOf;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.indexOf(true, false) !== 0) {
- $ERROR('#1: __instance = new Object(true); __instance.indexOf = String.prototype.indexOf; __instance.indexOf(true, false) === 0. Actual: '+__instance.indexOf(true, false) );
+ $ERROR('#1: __instance = new Object(true); __instance.indexOf = String.prototype.indexOf; __instance.indexOf(true, false) === 0. Actual: ' + __instance.indexOf(true, false));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T10.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T10.js
index 16c1d275b..52c005605 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T10.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T10.js
@@ -7,15 +7,23 @@ es5id: 15.5.4.7_A1_T10
description: Call indexOf(searchString, position) function with object arguments
---*/
-var __obj = {toString:function(){return "\u0041B";}}
-var __obj2 = {valueOf:function(){return true;}}
+var __obj = {
+ toString: function() {
+ return "\u0041B";
+ }
+}
+var __obj2 = {
+ valueOf: function() {
+ return true;
+ }
+}
var __str = "ABB\u0041BABAB";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- if (__str.indexOf(__obj, __obj2) !== 3) {
- $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABB\u0041BABAB"; __str.indexOf(__obj, __obj2) === 3. Actual: '+__str.indexOf(__obj, __obj2) );
- }
+if (__str.indexOf(__obj, __obj2) !== 3) {
+ $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABB\u0041BABAB"; __str.indexOf(__obj, __obj2) === 3. Actual: ' + __str.indexOf(__obj, __obj2));
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T12.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T12.js
index b641ced38..145b6519c 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T12.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T12.js
@@ -7,12 +7,12 @@ es5id: 15.5.4.7_A1_T12
description: Argument is string, and instance is array of strings
---*/
-var __instance = new Array('new','zoo','revue');
+var __instance = new Array('new', 'zoo', 'revue');
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.indexOf('new') !== 0) {
- $ERROR('#1: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.indexOf(\'new\') === 0. Actual: '+__instance.indexOf('new') );
+ $ERROR('#1: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.indexOf(\'new\') === 0. Actual: ' + __instance.indexOf('new'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -20,7 +20,7 @@ if (__instance.indexOf('new') !== 0) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__instance.indexOf('zoo') !== 1) {
- $ERROR('#2: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.indexOf(\'zoo\') === 1. Actual: '+__instance.indexOf('zoo') );
+ $ERROR('#2: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.indexOf(\'zoo\') === 1. Actual: ' + __instance.indexOf('zoo'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T2.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T2.js
index c20692bb2..15645c345 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T2.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T2.js
@@ -15,8 +15,12 @@ __instance.indexOf = String.prototype.indexOf;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.indexOf("A"!=="\u0041", function(){return 0;}(),null) !== 0) {
- $ERROR('#1: __instance = new Boolean; __instance.indexOf = String.prototype.indexOf; __instance.indexOf("A"!=="\\u0041", function(){return 0;}(),null) === 0. Actual: '+__instance.indexOf("A"!=="\u0041", function(){return 0;}(),null) );
+if (__instance.indexOf("A" !== "\u0041", function() {
+ return 0;
+ }(), null) !== 0) {
+ $ERROR('#1: __instance = new Boolean; __instance.indexOf = String.prototype.indexOf; __instance.indexOf("A"!=="\\u0041", function(){return 0;}(),null) === 0. Actual: ' + __instance.indexOf("A" !== "\u0041", function() {
+ return 0;
+ }(), null));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T4.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T4.js
index d9f26b932..fc998a006 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T4.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T4.js
@@ -13,7 +13,7 @@ description: >
//CHECK#1
//since ToString() evaluates to "" indexOf() evaluates to indexOf("",0)
if ("".indexOf() !== -1) {
- $ERROR('#1: "".indexOf() === -1. Actual: '+("".indexOf()) );
+ $ERROR('#1: "".indexOf() === -1. Actual: ' + ("".indexOf()));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T5.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T5.js
index 61d8e7037..0a189320d 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T5.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T5.js
@@ -12,8 +12,12 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToString(null) evaluates to "null" indexOf(null) evaluates to indexOf("",0)
-if (function(){return "gnulluna"}().indexOf(null) !== 1) {
- $ERROR('#1: function(){return "gnulluna"}().indexOf(null) === 1. Actual: '+function(){return "gnulluna"}().indexOf(null) );
+if (function() {
+ return "gnulluna"
+ }().indexOf(null) !== 1) {
+ $ERROR('#1: function(){return "gnulluna"}().indexOf(null) === 1. Actual: ' + function() {
+ return "gnulluna"
+ }().indexOf(null));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T6.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T6.js
index 4279d8f7e..8e7b5e3e4 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T6.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T6.js
@@ -13,7 +13,7 @@ description: >
//CHECK#1
//since ToString(undefined) evaluates to "" indexOf(undefined) evaluates to indexOf("",0)
if (new String("undefined").indexOf(x) !== 0) {
- $ERROR('#1: var x; new String("undefined").indexOf(x) === 0. Actual: '+new String("undefined").indexOf(x) );
+ $ERROR('#1: var x; new String("undefined").indexOf(x) === 0. Actual: ' + new String("undefined").indexOf(x));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T7.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T7.js
index 485239896..4eee2242f 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T7.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T7.js
@@ -13,7 +13,7 @@ description: >
//CHECK#1
//since ToString(undefined) evaluates to "undefined" indexOf(undefined) evaluates to indexOf("undefined",0)
if (String("undefined").indexOf(undefined) !== 0) {
- $ERROR('#1: String("undefined").indexOf(undefined) === 0. Actual: '+String("undefined").indexOf(undefined) );
+ $ERROR('#1: String("undefined").indexOf(undefined) === 0. Actual: ' + String("undefined").indexOf(undefined));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T8.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T8.js
index 1232528e7..eae58fcbb 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T8.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T8.js
@@ -9,13 +9,15 @@ description: >
of string object
---*/
-var __obj = {toString:function(){}};
+var __obj = {
+ toString: function() {}
+};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToString(void 0) evaluates to "undefined" indexOf(void 0) evaluates to indexOf("undefined")
if (String(__obj).indexOf(void 0) !== 0) {
- $ERROR('#1: __obj = {toString:function(){}}; String(__obj).indexOf(void 0) === 0. Actual: '+String(__obj).indexOf(void 0) );
+ $ERROR('#1: __obj = {toString:function(){}}; String(__obj).indexOf(void 0) === 0. Actual: ' + String(__obj).indexOf(void 0));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T9.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T9.js
index 69dd4c039..49f56f4d8 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T9.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T9.js
@@ -10,15 +10,15 @@ description: >
---*/
var __obj = {
- valueOf:function(){},
- toString:void 0
+ valueOf: function() {},
+ toString: void 0
};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToString(undefined) evaluates to "undefined" indexOf(undefined) evaluates to indexOf("undefined")
-if (new String(__obj).indexOf(function(){}()) !== 0) {
- $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).indexOf(function(){}()) === 0. Actual: '+new String(__obj).indexOf(function(){}()) );
+if (new String(__obj).indexOf(function() {}()) !== 0) {
+ $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).indexOf(function(){}()) === 0. Actual: ' + new String(__obj).indexOf(function() {}()));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T1.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T1.js
index a2e046ce2..62aecd071 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T1.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T1.js
@@ -9,8 +9,8 @@ description: Call "abcd".indexOf("abcdab") and check result
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if ("abcd".indexOf("abcdab")!==-1) {
- $ERROR('#1: "abcd".indexOf("abcdab")===-1. Actual: '+("abcd".indexOf("abcdab")));
+if ("abcd".indexOf("abcdab") !== -1) {
+ $ERROR('#1: "abcd".indexOf("abcdab")===-1. Actual: ' + ("abcd".indexOf("abcdab")));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T2.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T2.js
index f342413d7..58362dbdd 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T2.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T2.js
@@ -9,8 +9,8 @@ description: Call "abcd".indexOf("abcdab",0) and check result
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if ("abcd".indexOf("abcdab",0)!==-1) {
- $ERROR('#1: "abcd".indexOf("abcdab",0)===-1. Actual: '+("abcd".indexOf("abcdab",0)));
+if ("abcd".indexOf("abcdab", 0) !== -1) {
+ $ERROR('#1: "abcd".indexOf("abcdab",0)===-1. Actual: ' + ("abcd".indexOf("abcdab", 0)));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T3.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T3.js
index f7e1100b8..cff1c33cb 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T3.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T3.js
@@ -9,8 +9,8 @@ description: Call "abcd".indexOf("abcdab",99) and check result
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if ("abcd".indexOf("abcdab",99)!==-1) {
- $ERROR('#1: "abcd".indexOf("abcdab",99)===-1. Actual: '+("abcd".indexOf("abcdab",99)));
+if ("abcd".indexOf("abcdab", 99) !== -1) {
+ $ERROR('#1: "abcd".indexOf("abcdab",99)===-1. Actual: ' + ("abcd".indexOf("abcdab", 99)));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T4.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T4.js
index bf82c55e6..f39afbeec 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T4.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T4.js
@@ -9,8 +9,8 @@ description: Call "abcd".indexOf("abcdab",NaN) and check result
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if ("abcd".indexOf("abcdab",NaN)!==-1) {
- $ERROR('#1: "abcd".indexOf("abcdab",NaN)===-1. Actual: '+("abcd".indexOf("abcdab",NaN)));
+if ("abcd".indexOf("abcdab", NaN) !== -1) {
+ $ERROR('#1: "abcd".indexOf("abcdab",NaN)===-1. Actual: ' + ("abcd".indexOf("abcdab", NaN)));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T1.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T1.js
index 3e59d66f6..133abbee3 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T1.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T1.js
@@ -11,8 +11,8 @@ description: Call "$$abcdabcd".indexOf("ab",NaN) and check result
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if ("$$abcdabcd".indexOf("ab",NaN)!==2) {
- $ERROR('#1: "$$abcdabcd".indexOf("ab",NaN)===2. Actual: '+("$$abcdabcd".indexOf("ab",NaN)));
+if ("$$abcdabcd".indexOf("ab", NaN) !== 2) {
+ $ERROR('#1: "$$abcdabcd".indexOf("ab",NaN)===2. Actual: ' + ("$$abcdabcd".indexOf("ab", NaN)));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T2.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T2.js
index 359661a10..b5921b250 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T2.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T2.js
@@ -11,8 +11,8 @@ description: Call "$$abcdabcd".indexOf("ab",eval("\"-99\"")) and check result
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if ("$$abcdabcd".indexOf("ab",eval("\"-99\""))!==2) {
- $ERROR('#1: "$$abcdabcd".indexOf("ab",eval("\\"-99\\""))===2. Actual: '+("$$abcdabcd".indexOf("ab",eval("\"-99\""))));
+if ("$$abcdabcd".indexOf("ab", eval("\"-99\"")) !== 2) {
+ $ERROR('#1: "$$abcdabcd".indexOf("ab",eval("\\"-99\\""))===2. Actual: ' + ("$$abcdabcd".indexOf("ab", eval("\"-99\""))));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T3.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T3.js
index 9a17c22de..192b7edc9 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T3.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T3.js
@@ -13,8 +13,12 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if ("$$abcdabcd".indexOf("ab", function(){return -Infinity;}())!==2) {
- $ERROR('#1: "$$abcdabcd".indexOf("ab", function(){return -Infinity;}())===2. Actual: '+("$$abcdabcd".indexOf("ab", function(){return -Infinity;}())));
+if ("$$abcdabcd".indexOf("ab", function() {
+ return -Infinity;
+ }()) !== 2) {
+ $ERROR('#1: "$$abcdabcd".indexOf("ab", function(){return -Infinity;}())===2. Actual: ' + ("$$abcdabcd".indexOf("ab", function() {
+ return -Infinity;
+ }())));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T1.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T1.js
index ae24f56f0..eca493a17 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T1.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T1.js
@@ -9,19 +9,27 @@ es5id: 15.5.4.7_A4_T1
description: Override toString and valueOf functions, valueOf throw exception
---*/
-var __obj = {toString:function(){return "\u0041B";}}
-var __obj2 = {valueOf:function(){throw "intointeger";}}
+var __obj = {
+ toString: function() {
+ return "\u0041B";
+ }
+}
+var __obj2 = {
+ valueOf: function() {
+ throw "intointeger";
+ }
+}
var __str = "ABB\u0041BABAB";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __str.indexOf(__obj, __obj2);
- $ERROR('#1: "var x = __str.indexOf(__obj, __obj2)" lead to throwing exception');
- } catch (e) {
- if (e!=="intointeger") {
- $ERROR('#1.1: Exception === "intointeger". Actual: '+e);
- }
- }
+try {
+ var x = __str.indexOf(__obj, __obj2);
+ $ERROR('#1: "var x = __str.indexOf(__obj, __obj2)" lead to throwing exception');
+} catch (e) {
+ if (e !== "intointeger") {
+ $ERROR('#1.1: Exception === "intointeger". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T2.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T2.js
index 85f5aa298..ee769a9ae 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T2.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T2.js
@@ -11,19 +11,30 @@ description: >
exception
---*/
-var __obj = {toString:function(){return "\u0041B";}}
-var __obj2 = {valueOf:function(){return {};},toString:function(){throw "intointeger";}}
+var __obj = {
+ toString: function() {
+ return "\u0041B";
+ }
+}
+var __obj2 = {
+ valueOf: function() {
+ return {};
+ },
+ toString: function() {
+ throw "intointeger";
+ }
+}
var __str = new String("ABB\u0041BABAB");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __str.indexOf(__obj, __obj2);
- $ERROR('#1: "var x = __str.indexOf(__obj, __obj2)" lead to throwing exception');
- } catch (e) {
- if (e!=="intointeger") {
- $ERROR('#1.1: Exception === "intointeger". Actual: '+e);
- }
- }
+try {
+ var x = __str.indexOf(__obj, __obj2);
+ $ERROR('#1: "var x = __str.indexOf(__obj, __obj2)" lead to throwing exception');
+} catch (e) {
+ if (e !== "intointeger") {
+ $ERROR('#1.1: Exception === "intointeger". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T3.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T3.js
index 2374c6792..6bf5f2046 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T3.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T3.js
@@ -9,13 +9,24 @@ es5id: 15.5.4.7_A4_T3
description: Override toString and valueOf functions
---*/
-var __obj = {toString:function(){return "\u0041B";}}
-var __obj2 = {valueOf:function(){return {};},toString:function(){return "1";}}
+var __obj = {
+ toString: function() {
+ return "\u0041B";
+ }
+}
+var __obj2 = {
+ valueOf: function() {
+ return {};
+ },
+ toString: function() {
+ return "1";
+ }
+}
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if ("ABB\u0041BABAB".indexOf(__obj, __obj2)!==3) {
- $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "1";}}; "ABB\\u0041BABAB".indexOf(__obj, __obj2)===3. Actual: '+("ABB\u0041BABAB".indexOf(__obj, __obj2)));
+if ("ABB\u0041BABAB".indexOf(__obj, __obj2) !== 3) {
+ $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "1";}}; "ABB\\u0041BABAB".indexOf(__obj, __obj2)===3. Actual: ' + ("ABB\u0041BABAB".indexOf(__obj, __obj2)));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T4.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T4.js
index 59a05c692..578eb5c09 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T4.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T4.js
@@ -9,20 +9,28 @@ es5id: 15.5.4.7_A4_T4
description: Override toString and valueOf functions, and they throw exceptions
---*/
-var __obj = {toString:function(){throw "intostr";}};
-var __obj2 = {valueOf:function(){throw "intoint";}};
+var __obj = {
+ toString: function() {
+ throw "intostr";
+ }
+};
+var __obj2 = {
+ valueOf: function() {
+ throw "intoint";
+ }
+};
var __instance = new Number(10001.10001);
-Number.prototype.indexOf=String.prototype.indexOf;
+Number.prototype.indexOf = String.prototype.indexOf;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __instance.indexOf(__obj, __obj2);
- $ERROR('#1: "var x = __instance.indexOf(__obj, __obj2)" lead to throwing exception');
- } catch (e) {
- if (e!=="intostr") {
- $ERROR('#1.1: Exception === "intostr". Actual: '+e);
- }
- }
+try {
+ var x = __instance.indexOf(__obj, __obj2);
+ $ERROR('#1: "var x = __instance.indexOf(__obj, __obj2)" lead to throwing exception');
+} catch (e) {
+ if (e !== "intostr") {
+ $ERROR('#1.1: Exception === "intostr". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T5.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T5.js
index 97ab2def6..d40f319ce 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T5.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T5.js
@@ -11,9 +11,20 @@ description: >
throw exception
---*/
-var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}};
+var __obj = {
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ throw "intostr";
+ }
+};
-var __obj2 = {valueOf:function(){throw "intointeger";}};
+var __obj2 = {
+ valueOf: function() {
+ throw "intointeger";
+ }
+};
__FACTORY.prototype.indexOf = String.prototype.indexOf;
@@ -25,15 +36,19 @@ try {
var x = __instance.indexOf(__obj, __obj2);
$ERROR('#1: "var x = __instance.indexOf(__obj, __obj2)" lead to throwing exception');
} catch (e) {
- if (e!=="intostr") {
- $ERROR('#1.1: Exception === "intostr". Actual: '+e);
+ if (e !== "intostr") {
+ $ERROR('#1.1: Exception === "intostr". Actual: ' + e);
}
}
//
//////////////////////////////////////////////////////////////////////////////
-function __FACTORY( value ) {
- this.value = value;
- this.toString = function() { return new Number; };
- this.valueOf=function(){return this.value+""};
+function __FACTORY(value) {
+ this.value = value;
+ this.toString = function() {
+ return new Number;
+ };
+ this.valueOf = function() {
+ return this.value + ""
+ };
}
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T1.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T1.js
index eef162fed..4823a08d1 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T1.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T1.js
@@ -7,14 +7,14 @@ es5id: 15.5.4.7_A5_T1
description: Search one symbol from begin of string
---*/
-var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" );
+var TEST_STRING = new String(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-for (var k = 0, i = 0x0020; i < 0x007e; i++, k++ ) {
- if (TEST_STRING.indexOf( String.fromCharCode(i), 0 )!==k) {
- $ERROR('#'+(i-0x0020)+': TEST_STRING.indexOf( String.fromCharCode('+i+'), 0 )==='+k+'. Actual: '+TEST_STRING.indexOf( String.fromCharCode(i), 0 ));
- }
+for (var k = 0, i = 0x0020; i < 0x007e; i++, k++) {
+ if (TEST_STRING.indexOf(String.fromCharCode(i), 0) !== k) {
+ $ERROR('#' + (i - 0x0020) + ': TEST_STRING.indexOf( String.fromCharCode(' + i + '), 0 )===' + k + '. Actual: ' + TEST_STRING.indexOf(String.fromCharCode(i), 0));
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T2.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T2.js
index b6f09b64c..a66021f9e 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T2.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T2.js
@@ -7,14 +7,14 @@ es5id: 15.5.4.7_A5_T2
description: Search one symbol from it`s position in the string
---*/
-var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" );
+var TEST_STRING = new String(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-for (var k = 0, i = 0x0020; i < 0x007e; i++, k++ ) {
- if (TEST_STRING.indexOf( String.fromCharCode(i), k )!==k) {
- $ERROR('#'+(i-0x0020)+': TEST_STRING.indexOf( String.fromCharCode('+i+'), '+k+' )==='+k+'. Actual: '+TEST_STRING.indexOf( String.fromCharCode(i), k ));
- }
+for (var k = 0, i = 0x0020; i < 0x007e; i++, k++) {
+ if (TEST_STRING.indexOf(String.fromCharCode(i), k) !== k) {
+ $ERROR('#' + (i - 0x0020) + ': TEST_STRING.indexOf( String.fromCharCode(' + i + '), ' + k + ' )===' + k + '. Actual: ' + TEST_STRING.indexOf(String.fromCharCode(i), k));
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T3.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T3.js
index f13ef4847..f5075e15c 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T3.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T3.js
@@ -7,14 +7,14 @@ es5id: 15.5.4.7_A5_T3
description: Search one symbol from it`s position+1 in the string
---*/
-var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" );
+var TEST_STRING = new String(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-for ( var k = 0, i = 0x0020; i < 0x007e; i++, k++ ) {
- if (TEST_STRING.indexOf( String.fromCharCode(i), k+1 ) !== -1) {
- $ERROR('#'+(i-0x0020)+': TEST_STRING.indexOf( String.fromCharCode('+i+'), '+(k+1)+' )===-1. Actual: '+TEST_STRING.indexOf( String.fromCharCode(i), k+1 ));
- }
+for (var k = 0, i = 0x0020; i < 0x007e; i++, k++) {
+ if (TEST_STRING.indexOf(String.fromCharCode(i), k + 1) !== -1) {
+ $ERROR('#' + (i - 0x0020) + ': TEST_STRING.indexOf( String.fromCharCode(' + i + '), ' + (k + 1) + ' )===-1. Actual: ' + TEST_STRING.indexOf(String.fromCharCode(i), k + 1));
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T4.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T4.js
index 1d89cb311..a7f3ceb92 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T4.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T4.js
@@ -7,14 +7,14 @@ es5id: 15.5.4.7_A5_T4
description: Search substring from begin of string
---*/
-var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" );
+var TEST_STRING = new String(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-for (var k = 0, i = 0x0020; i < 0x007d; i++, k++ ) {
- if (TEST_STRING.indexOf( (String.fromCharCode(i)+ String.fromCharCode(i+1) + String.fromCharCode(i+2)), 0 )!==k) {
- $ERROR('#'+(i-0x0020)+': TEST_STRING.indexOf( (String.fromCharCode('+i+')+ String.fromCharCode('+(i+1)+') + String.fromCharCode('+(i+2)+')), 0 )==='+k+'. Actual: '+TEST_STRING.indexOf( (String.fromCharCode(i)+ String.fromCharCode(i+1) + String.fromCharCode(i+2)), 0 ));
- }
+for (var k = 0, i = 0x0020; i < 0x007d; i++, k++) {
+ if (TEST_STRING.indexOf((String.fromCharCode(i) + String.fromCharCode(i + 1) + String.fromCharCode(i + 2)), 0) !== k) {
+ $ERROR('#' + (i - 0x0020) + ': TEST_STRING.indexOf( (String.fromCharCode(' + i + ')+ String.fromCharCode(' + (i + 1) + ') + String.fromCharCode(' + (i + 2) + ')), 0 )===' + k + '. Actual: ' + TEST_STRING.indexOf((String.fromCharCode(i) + String.fromCharCode(i + 1) + String.fromCharCode(i + 2)), 0));
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T5.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T5.js
index 95262eb4e..8ea838dc4 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T5.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T5.js
@@ -7,14 +7,14 @@ es5id: 15.5.4.7_A5_T5
description: Search substring from it`s position in the string
---*/
-var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" );
+var TEST_STRING = new String(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-for ( var k = 0, i = 0x0020; i < 0x007d; i++, k++ ) {
- if (TEST_STRING.indexOf( (String.fromCharCode(i)+ String.fromCharCode(i+1)+ String.fromCharCode(i+2)),k ) !==k) {
- $ERROR('#'+(i-0x0020)+': TEST_STRING.indexOf( (String.fromCharCode('+i+')+ String.fromCharCode('+(i+1)+') + String.fromCharCode('+(i+2)+')), '+k+' )==='+k+'. Actual: '+TEST_STRING.indexOf( (String.fromCharCode(i)+ String.fromCharCode(i+1) + String.fromCharCode(i+2)), k ));
- }
+for (var k = 0, i = 0x0020; i < 0x007d; i++, k++) {
+ if (TEST_STRING.indexOf((String.fromCharCode(i) + String.fromCharCode(i + 1) + String.fromCharCode(i + 2)), k) !== k) {
+ $ERROR('#' + (i - 0x0020) + ': TEST_STRING.indexOf( (String.fromCharCode(' + i + ')+ String.fromCharCode(' + (i + 1) + ') + String.fromCharCode(' + (i + 2) + ')), ' + k + ' )===' + k + '. Actual: ' + TEST_STRING.indexOf((String.fromCharCode(i) + String.fromCharCode(i + 1) + String.fromCharCode(i + 2)), k));
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T6.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T6.js
index c8456ed37..9e82edeab 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T6.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T6.js
@@ -7,14 +7,14 @@ es5id: 15.5.4.7_A5_T6
description: Search substring from it`s position+1 in the string
---*/
-var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" );
+var TEST_STRING = new String(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-for (var k = 0, i = 0x0020; i < 0x007d; i++, k++ ) {
- if (TEST_STRING.indexOf( (String.fromCharCode(i)+ String.fromCharCode(i+1)+ String.fromCharCode(i+2)), k+1 )!== -1) {
- $ERROR('#'+(i-0x0020)+': TEST_STRING.indexOf( (String.fromCharCode('+i+')+ String.fromCharCode('+(i+1)+') + String.fromCharCode('+(i+2)+')), '+(k+1)+' )=== -1. Actual: '+TEST_STRING.indexOf( (String.fromCharCode(i)+ String.fromCharCode(i+1) + String.fromCharCode(i+2)), k+1 ));
- }
+for (var k = 0, i = 0x0020; i < 0x007d; i++, k++) {
+ if (TEST_STRING.indexOf((String.fromCharCode(i) + String.fromCharCode(i + 1) + String.fromCharCode(i + 2)), k + 1) !== -1) {
+ $ERROR('#' + (i - 0x0020) + ': TEST_STRING.indexOf( (String.fromCharCode(' + i + ')+ String.fromCharCode(' + (i + 1) + ') + String.fromCharCode(' + (i + 2) + ')), ' + (k + 1) + ' )=== -1. Actual: ' + TEST_STRING.indexOf((String.fromCharCode(i) + String.fromCharCode(i + 1) + String.fromCharCode(i + 2)), k + 1));
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A6.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A6.js
index 406153de7..296e90732 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A6.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A6.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.indexOf.prototype
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.prototype.indexOf.prototype !== undefined) {
- $ERROR('#1: String.prototype.indexOf.prototype === undefined. Actual: '+String.prototype.indexOf.prototype );
+ $ERROR('#1: String.prototype.indexOf.prototype === undefined. Actual: ' + String.prototype.indexOf.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A7.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A7.js
index b1bdd51e0..11b58ce8e 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A7.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A7.js
@@ -14,6 +14,6 @@ try {
$ERROR('#1: var __FACTORY = String.prototype.indexOf; "__instance = new __FACTORY" lead to throwing exception');
} catch (e) {
if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: var __FACTORY = String.prototype.indexOf; "__instance = new __FACTORY" throw a TypeError. Actual: ' + (e));
+ $ERROR('#1.2: var __FACTORY = String.prototype.indexOf; "__instance = new __FACTORY" throw a TypeError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A8.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A8.js
index 4c5256a81..41c2e2d8d 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A8.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A8.js
@@ -12,7 +12,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.indexOf.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.indexOf.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.indexOf.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.indexOf.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.indexOf.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,14 +28,14 @@ if (String.prototype.indexOf.propertyIsEnumerable('length')) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#2
-var count=0;
+var count = 0;
-for (var p in String.prototype.indexOf){
- if (p==="length") count++;
+for (var p in String.prototype.indexOf) {
+ if (p === "length") count++;
}
if (count !== 0) {
- $ERROR('#2: count=0; for (p in String.prototype.indexOf){if (p==="length") count++;}; count === 0. Actual: '+count );
+ $ERROR('#2: count=0; for (p in String.prototype.indexOf){if (p==="length") count++;}; count === 0. Actual: ' + count);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A9.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A9.js
index 71a9ebd06..3ea088e2c 100644
--- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A9.js
+++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A9.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.indexOf.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.indexOf.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.indexOf.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.indexOf.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.indexOf.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (!delete String.prototype.indexOf.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.indexOf.hasOwnProperty('length')) {
- $ERROR('#2: delete String.prototype.indexOf.length; String.prototype.indexOf.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.indexOf.hasOwnProperty('length'));
+ $ERROR('#2: delete String.prototype.indexOf.length; String.prototype.indexOf.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.indexOf.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/indexOf/position-tointeger-bigint.js b/test/built-ins/String/prototype/indexOf/position-tointeger-bigint.js
index c4e98a007..9a0f3da50 100644
--- a/test/built-ins/String/prototype/indexOf/position-tointeger-bigint.js
+++ b/test/built-ins/String/prototype/indexOf/position-tointeger-bigint.js
@@ -11,29 +11,29 @@ features: [BigInt, Symbol.toPrimitive, computed-property-names]
---*/
assert.throws(TypeError, function() {
- "".indexOf("", 0n);
+ "".indexOf("", 0 n);
}, "ToInteger: BigInt => TypeError");
assert.throws(TypeError, function() {
- "".indexOf("", Object(0n));
+ "".indexOf("", Object(0 n));
}, "ToInteger: unbox object with internal slot => BigInt => TypeError");
assert.throws(TypeError, function() {
"".indexOf("", {
[Symbol.toPrimitive]: function() {
- return 0n;
+ return 0 n;
}
});
}, "ToInteger: @@toPrimitive => BigInt => TypeError");
assert.throws(TypeError, function() {
"".indexOf("", {
valueOf: function() {
- return 0n;
+ return 0 n;
}
});
}, "ToInteger: valueOf => BigInt => TypeError");
assert.throws(TypeError, function() {
"".indexOf("", {
toString: function() {
- return 0n;
+ return 0 n;
}
});
}, "ToInteger: toString => BigInt => TypeError");
diff --git a/test/built-ins/String/prototype/indexOf/searchstring-tostring-bigint.js b/test/built-ins/String/prototype/indexOf/searchstring-tostring-bigint.js
index ea0b4e2a5..29cab5f26 100644
--- a/test/built-ins/String/prototype/indexOf/searchstring-tostring-bigint.js
+++ b/test/built-ins/String/prototype/indexOf/searchstring-tostring-bigint.js
@@ -10,22 +10,22 @@ info: |
features: [BigInt, Symbol.toPrimitive, computed-property-names]
---*/
-assert.sameValue("__0__".indexOf(0n), 2, "ToString: BigInt to String");
-assert.sameValue("__0__".indexOf(Object(0n)), 2,
+assert.sameValue("__0__".indexOf(0 n), 2, "ToString: BigInt to String");
+assert.sameValue("__0__".indexOf(Object(0 n)), 2,
"ToString: unbox object with internal slot => BigInt to String");
assert.sameValue("__0__".indexOf({
[Symbol.toPrimitive]: function() {
- return 0n;
+ return 0 n;
}
}), 2, "ToString: @@toPrimitive => BigInt to String");
assert.sameValue("__0__".indexOf({
valueOf: function() {
- return 0n;
+ return 0 n;
},
toString: null
}), 2, "ToString: valueOf => BigInt to String");
assert.sameValue("__0__".indexOf({
toString: function() {
- return 0n;
+ return 0 n;
}
}), 2, "ToString: toString => BigInt to String");
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A10.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A10.js
index cf5a46c38..ea24cf5f2 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A10.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A10.js
@@ -15,19 +15,21 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.lastIndexOf.hasOwnProperty('length'))) {
- $ERROR('#1: String.prototype.lastIndexOf.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.lastIndexOf.hasOwnProperty('length'));
+ $ERROR('#1: String.prototype.lastIndexOf.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.lastIndexOf.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
var __obj = String.prototype.lastIndexOf.length;
-verifyNotWritable(String.prototype.lastIndexOf, "length", null, function(){return "shifted";});
+verifyNotWritable(String.prototype.lastIndexOf, "length", null, function() {
+ return "shifted";
+});
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.lastIndexOf.length !== __obj) {
- $ERROR('#2: __obj = String.prototype.lastIndexOf.length; String.prototype.lastIndexOf.length = function(){return "shifted";}; String.prototype.lastIndexOf.length === __obj. Actual: '+String.prototype.lastIndexOf.length );
+ $ERROR('#2: __obj = String.prototype.lastIndexOf.length; String.prototype.lastIndexOf.length = function(){return "shifted";}; String.prototype.lastIndexOf.length === __obj. Actual: ' + String.prototype.lastIndexOf.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A11.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A11.js
index 4ffaeb11f..e30042895 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A11.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A11.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.lastIndexOf.length
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.lastIndexOf.hasOwnProperty("length"))) {
- $ERROR('#1: String.prototype.lastIndexOf.hasOwnProperty("length") return true. Actual: '+String.prototype.lastIndexOf.hasOwnProperty("length"));
+ $ERROR('#1: String.prototype.lastIndexOf.hasOwnProperty("length") return true. Actual: ' + String.prototype.lastIndexOf.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -18,7 +18,7 @@ if (!(String.prototype.lastIndexOf.hasOwnProperty("length"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.lastIndexOf.length !== 1) {
- $ERROR('#2: String.prototype.lastIndexOf.length === 1. Actual: '+String.prototype.lastIndexOf.length );
+ $ERROR('#2: String.prototype.lastIndexOf.length === 1. Actual: ' + String.prototype.lastIndexOf.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T1.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T1.js
index 9c97a086e..43ef35657 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T1.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T1.js
@@ -14,7 +14,7 @@ __instance.lastIndexOf = String.prototype.lastIndexOf;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.lastIndexOf(true, false) !== 0) {
- $ERROR('#1: __instance = new Object(true); __instance.lastIndexOf = String.prototype.lastIndexOf; __instance.lastIndexOf(true, false) === 0. Actual: '+__instance.lastIndexOf(true, false) );
+ $ERROR('#1: __instance = new Object(true); __instance.lastIndexOf = String.prototype.lastIndexOf; __instance.lastIndexOf(true, false) === 0. Actual: ' + __instance.lastIndexOf(true, false));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T10.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T10.js
index afc3bc4b8..4ee4bf2d6 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T10.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T10.js
@@ -9,15 +9,23 @@ description: >
arguments
---*/
-var __obj = {toString:function(){return "\u0041B";}}
-var __obj2 = {valueOf:function(){return NaN;}}
+var __obj = {
+ toString: function() {
+ return "\u0041B";
+ }
+}
+var __obj2 = {
+ valueOf: function() {
+ return NaN;
+ }
+}
var __str = "ABB\u0041BABAB";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- if (__str.lastIndexOf(__obj, __obj2) !== 7) {
- $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return NaN;}}; var __str = "ABB\u0041BABAB";lastIndexOf(__obj, __obj2) === 7. Actual: '+__str.lastIndexOf(__obj, __obj2) );
- }
+if (__str.lastIndexOf(__obj, __obj2) !== 7) {
+ $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return NaN;}}; var __str = "ABB\u0041BABAB";lastIndexOf(__obj, __obj2) === 7. Actual: ' + __str.lastIndexOf(__obj, __obj2));
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T12.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T12.js
index 293237feb..ddb271087 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T12.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T12.js
@@ -7,12 +7,12 @@ es5id: 15.5.4.8_A1_T12
description: Argument is string, and instance is array of strings
---*/
-var __instance = new Array('new','zoo','revue');
+var __instance = new Array('new', 'zoo', 'revue');
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.lastIndexOf('new') !== 0) {
- $ERROR('#1: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.lastIndexOf(\'new\') === 0. Actual: '+__instance.lastIndexOf('new') );
+ $ERROR('#1: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.lastIndexOf(\'new\') === 0. Actual: ' + __instance.lastIndexOf('new'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -20,7 +20,7 @@ if (__instance.lastIndexOf('new') !== 0) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__instance.lastIndexOf('zoo') !== 1) {
- $ERROR('#2: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.lastIndexOf(\'zoo\') === 1. Actual: '+__instance.lastIndexOf('zoo') );
+ $ERROR('#2: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.lastIndexOf(\'zoo\') === 1. Actual: ' + __instance.lastIndexOf('zoo'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T2.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T2.js
index 27072b7b7..41a74156b 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T2.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T2.js
@@ -15,8 +15,12 @@ __instance.lastIndexOf = String.prototype.lastIndexOf;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.lastIndexOf("A"!=="\u0041", function(){return 0;}(),null) !== 0) {
- $ERROR('#1: __instance = new Boolean; __instance.lastIndexOf = String.prototype.lastIndexOf; __instance.lastIndexOf("A"!=="\\u0041", function(){return 0;}(),null) === 0. Actual: '+__instance.lastIndexOf("A"!=="\u0041", function(){return 0;}(),null) );
+if (__instance.lastIndexOf("A" !== "\u0041", function() {
+ return 0;
+ }(), null) !== 0) {
+ $ERROR('#1: __instance = new Boolean; __instance.lastIndexOf = String.prototype.lastIndexOf; __instance.lastIndexOf("A"!=="\\u0041", function(){return 0;}(),null) === 0. Actual: ' + __instance.lastIndexOf("A" !== "\u0041", function() {
+ return 0;
+ }(), null));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T4.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T4.js
index ebed93a09..0c91d1d25 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T4.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T4.js
@@ -13,7 +13,7 @@ description: >
//CHECK#1
//since ToString() evaluates to "" lastIndexOf() evaluates to lastIndexOf("",0)
if ("".lastIndexOf() !== -1) {
- $ERROR('#1: "".lastIndexOf() === -1. Actual: '+("".lastIndexOf()) );
+ $ERROR('#1: "".lastIndexOf() === -1. Actual: ' + ("".lastIndexOf()));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T5.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T5.js
index 69ab01061..42cd7e1b2 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T5.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T5.js
@@ -12,8 +12,12 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToString(null) evaluates to "null" lastIndexOf(null) evaluates to lastIndexOf("",0)
-if (function(){return "gnullunazzgnull"}().lastIndexOf(null) !== 11) {
- $ERROR('#1: function(){return "gnullunazzgnull"}().lastIndexOf(null) === 11. Actual: '+function(){return "gnullunazzgnull"}().lastIndexOf(null) );
+if (function() {
+ return "gnullunazzgnull"
+ }().lastIndexOf(null) !== 11) {
+ $ERROR('#1: function(){return "gnullunazzgnull"}().lastIndexOf(null) === 11. Actual: ' + function() {
+ return "gnullunazzgnull"
+ }().lastIndexOf(null));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T6.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T6.js
index 9517f5e65..d151e20e3 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T6.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T6.js
@@ -13,7 +13,7 @@ description: >
//CHECK#1
//since ToString(undefined) evaluates to "" lastIndexOf(undefined) evaluates to lastIndexOf("",0)
if (new String("undefined").lastIndexOf(x) !== 0) {
- $ERROR('#1: var x; new String("undefined").lastIndexOf(x) === 0. Actual: '+new String("undefined").lastIndexOf(x) );
+ $ERROR('#1: var x; new String("undefined").lastIndexOf(x) === 0. Actual: ' + new String("undefined").lastIndexOf(x));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T7.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T7.js
index a68a8d5ab..b7c047e15 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T7.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T7.js
@@ -13,7 +13,7 @@ description: >
//CHECK#1
//since ToString(undefined) evaluates to "undefined" lastIndexOf(undefined) evaluates to lastIndexOf("undefined",0)
if (String("undefined").lastIndexOf(undefined) !== 0) {
- $ERROR('#1: String("undefined").lastIndexOf(undefined) === 0. Actual: '+String("undefined").lastIndexOf(undefined) );
+ $ERROR('#1: String("undefined").lastIndexOf(undefined) === 0. Actual: ' + String("undefined").lastIndexOf(undefined));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T8.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T8.js
index 29068e54e..ffa75b06f 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T8.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T8.js
@@ -9,13 +9,15 @@ description: >
argument of string object
---*/
-var __obj = {toString:function(){}};
+var __obj = {
+ toString: function() {}
+};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToString(void 0) evaluates to "undefined" lastIndexOf(void 0) evaluates to lastIndexOf("undefined",0)
if (String(__obj).lastIndexOf(void 0) !== 0) {
- $ERROR('#1: __obj = {toString:function(){}}; String(__obj).lastIndexOf(void 0) === 0. Actual: '+String(__obj).lastIndexOf(void 0) );
+ $ERROR('#1: __obj = {toString:function(){}}; String(__obj).lastIndexOf(void 0) === 0. Actual: ' + String(__obj).lastIndexOf(void 0));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js
index ff3b8527c..0eec7b4ce 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js
@@ -10,15 +10,15 @@ description: >
---*/
var __obj = {
- valueOf:function(){},
- toString:void 0
+ valueOf: function() {},
+ toString: void 0
};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToString(undefined) evaluates to "undefined" indexOf(undefined) evaluates to indexOf("undefined")
-if (new String(__obj).lastIndexOf(function(){}()) !== 0) {
- $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).lastIndexOf(function(){}()) === 0. Actual: '+new String(__obj).lastIndexOf(function(){}()) );
+if (new String(__obj).lastIndexOf(function() {}()) !== 0) {
+ $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).lastIndexOf(function(){}()) === 0. Actual: ' + new String(__obj).lastIndexOf(function() {}()));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T1.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T1.js
index 5f71a0eaf..51e9c2a20 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T1.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T1.js
@@ -9,19 +9,27 @@ es5id: 15.5.4.8_A4_T1
description: Override toString and valueOf functions, valueOf throw exception
---*/
-var __obj = {toString:function(){return "\u0041B";}}
-var __obj2 = {valueOf:function(){throw "intointeger";}}
+var __obj = {
+ toString: function() {
+ return "\u0041B";
+ }
+}
+var __obj2 = {
+ valueOf: function() {
+ throw "intointeger";
+ }
+}
var __str = "ABB\u0041BABAB";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __str.lastIndexOf(__obj, __obj2);
- $ERROR('#1: var x = __str.lastIndexOf(__obj, __obj2) lead to throwing exception');
- } catch (e) {
- if (e!=="intointeger") {
- $ERROR('#1.1: Exception === "intointeger". Actual: '+e);
- }
- }
+try {
+ var x = __str.lastIndexOf(__obj, __obj2);
+ $ERROR('#1: var x = __str.lastIndexOf(__obj, __obj2) lead to throwing exception');
+} catch (e) {
+ if (e !== "intointeger") {
+ $ERROR('#1.1: Exception === "intointeger". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T2.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T2.js
index fec80696c..6df1e9860 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T2.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T2.js
@@ -11,19 +11,30 @@ description: >
exception
---*/
-var __obj = {toString:function(){return "\u0041B";}}
-var __obj2 = {valueOf:function(){return {};},toString:function(){throw "intointeger";}}
+var __obj = {
+ toString: function() {
+ return "\u0041B";
+ }
+}
+var __obj2 = {
+ valueOf: function() {
+ return {};
+ },
+ toString: function() {
+ throw "intointeger";
+ }
+}
var __str = new String("ABB\u0041BABAB");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __str.lastIndexOf(__obj, __obj2);
- $ERROR('#1: var x = __str.lastIndexOf(__obj, __obj2) lead to throwing exception');
- } catch (e) {
- if (e!=="intointeger") {
- $ERROR('#1.1: Exception === "intointeger". Actual: '+e);
- }
- }
+try {
+ var x = __str.lastIndexOf(__obj, __obj2);
+ $ERROR('#1: var x = __str.lastIndexOf(__obj, __obj2) lead to throwing exception');
+} catch (e) {
+ if (e !== "intointeger") {
+ $ERROR('#1.1: Exception === "intointeger". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T3.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T3.js
index 1d92ea6d1..39beb28b8 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T3.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T3.js
@@ -9,13 +9,22 @@ es5id: 15.5.4.8_A4_T3
description: Override toString and valueOf functions
---*/
-var __obj = {toString:function(){return "\u0041B";}}
-var __obj2 = {valueOf:function(){return {};},toString:function(){}}
+var __obj = {
+ toString: function() {
+ return "\u0041B";
+ }
+}
+var __obj2 = {
+ valueOf: function() {
+ return {};
+ },
+ toString: function() {}
+}
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if ("ABB\u0041BABAB".lastIndexOf(__obj, __obj2)!==7) {
- $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){}}; "ABB\\u0041BABAB".lastIndexOf(__obj, __obj2)===7. Actual: '+("ABB\u0041BABAB".lastIndexOf(__obj, __obj2)));
+if ("ABB\u0041BABAB".lastIndexOf(__obj, __obj2) !== 7) {
+ $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){}}; "ABB\\u0041BABAB".lastIndexOf(__obj, __obj2)===7. Actual: ' + ("ABB\u0041BABAB".lastIndexOf(__obj, __obj2)));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T4.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T4.js
index bd1e7613f..232fc191c 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T4.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T4.js
@@ -9,20 +9,28 @@ es5id: 15.5.4.8_A4_T4
description: Override toString and valueOf functions, and they throw exceptions
---*/
-var __obj = {toString:function(){throw "intostr";}};
-var __obj2 = {valueOf:function(){throw "intoint";}};
+var __obj = {
+ toString: function() {
+ throw "intostr";
+ }
+};
+var __obj2 = {
+ valueOf: function() {
+ throw "intoint";
+ }
+};
var __instance = new Number(10001.10001);
-Number.prototype.lastIndexOf=String.prototype.lastIndexOf;
+Number.prototype.lastIndexOf = String.prototype.lastIndexOf;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __instance.lastIndexOf(__obj, __obj2);
- $ERROR('#1: var x = __instance.lastIndexOf(__obj, __obj2) lead to throwing exception');
- } catch (e) {
- if (e!=="intostr") {
- $ERROR('#1.1: Exception === "intostr". Actual: '+e);
- }
- }
+try {
+ var x = __instance.lastIndexOf(__obj, __obj2);
+ $ERROR('#1: var x = __instance.lastIndexOf(__obj, __obj2) lead to throwing exception');
+} catch (e) {
+ if (e !== "intostr") {
+ $ERROR('#1.1: Exception === "intostr". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T5.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T5.js
index 08f5fed5b..b1ea6070f 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T5.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T5.js
@@ -11,9 +11,20 @@ description: >
throw exception
---*/
-var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}};
+var __obj = {
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ throw "intostr";
+ }
+};
-var __obj2 = {valueOf:function(){throw "intointeger";}};
+var __obj2 = {
+ valueOf: function() {
+ throw "intointeger";
+ }
+};
__FACTORY.prototype.lastIndexOf = String.prototype.lastIndexOf;
@@ -25,15 +36,19 @@ try {
var x = __instance.lastIndexOf(__obj, __obj2);
$ERROR('#1: var x = __instance.lastIndexOf(__obj, __obj2) lead to throwing exception');
} catch (e) {
- if (e!=="intostr") {
- $ERROR('#1.1: Exception === "intostr". Actual: '+e);
+ if (e !== "intostr") {
+ $ERROR('#1.1: Exception === "intostr". Actual: ' + e);
}
}
//
//////////////////////////////////////////////////////////////////////////////
-function __FACTORY( value ) {
- this.value = value;
- this.toString = function() { return new Number; };
- this.valueOf=function(){return this.value+""};
+function __FACTORY(value) {
+ this.value = value;
+ this.toString = function() {
+ return new Number;
+ };
+ this.valueOf = function() {
+ return this.value + ""
+ };
}
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A6.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A6.js
index 96170a0ca..49063652b 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A6.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A6.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.lastIndexOf.prototype
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.prototype.lastIndexOf.prototype !== undefined) {
- $ERROR('#1: String.prototype.lastIndexOf.prototype === undefined. Actual: '+String.prototype.lastIndexOf.prototype );
+ $ERROR('#1: String.prototype.lastIndexOf.prototype === undefined. Actual: ' + String.prototype.lastIndexOf.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A8.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A8.js
index 31aa5fcd8..bbe092d51 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A8.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A8.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.lastIndexOf.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.lastIndexOf.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.lastIndexOf.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.lastIndexOf.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.lastIndexOf.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -23,21 +23,21 @@ if (!(String.prototype.lastIndexOf.hasOwnProperty('length'))) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#1
if (String.prototype.lastIndexOf.propertyIsEnumerable('length')) {
- $ERROR('#1: String.prototype.lastIndexOf.propertyIsEnumerable(\'length\') return false. Actual: '+String.prototype.lastIndexOf.propertyIsEnumerable('length'));
+ $ERROR('#1: String.prototype.lastIndexOf.propertyIsEnumerable(\'length\') return false. Actual: ' + String.prototype.lastIndexOf.propertyIsEnumerable('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
// CHECK#2
-var count=0;
+var count = 0;
-for (var p in String.prototype.lastIndexOf){
- if (p==="length") count++;
+for (var p in String.prototype.lastIndexOf) {
+ if (p === "length") count++;
}
if (count !== 0) {
- $ERROR('#2: count=0; for (p in String.prototype.lastIndexOf){if (p==="length") count++;}; count === 0. Actual: '+count );
+ $ERROR('#2: count=0; for (p in String.prototype.lastIndexOf){if (p==="length") count++;}; count === 0. Actual: ' + count);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A9.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A9.js
index 61be576d1..44fb7852e 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A9.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A9.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.lastIndexOf.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.lastIndexOf.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.lastIndexOf.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.lastIndexOf.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.lastIndexOf.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (!delete String.prototype.lastIndexOf.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.lastIndexOf.hasOwnProperty('length')) {
- $ERROR('#2: delete String.prototype.lastIndexOf.length; String.prototype.lastIndexOf.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.lastIndexOf.hasOwnProperty('length'));
+ $ERROR('#2: delete String.prototype.lastIndexOf.length; String.prototype.lastIndexOf.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.lastIndexOf.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/localeCompare/15.5.4.9_3.js b/test/built-ins/String/prototype/localeCompare/15.5.4.9_3.js
index 06517ec3a..e1e5cdd26 100644
--- a/test/built-ins/String/prototype/localeCompare/15.5.4.9_3.js
+++ b/test/built-ins/String/prototype/localeCompare/15.5.4.9_3.js
@@ -13,11 +13,11 @@ var thisValues = ["a", "t", "u", "undefined", "UNDEFINED", "nicht definiert", "x
var i;
for (i = 0; i < thisValues.length; i++) {
- var thisValue = thisValues[i];
- if (thisValue.localeCompare() !== thisValue.localeCompare(undefined)) {
- $ERROR("String.prototype.localeCompare does not treat missing 'that' argument as undefined.");
- }
- if (thisValue.localeCompare(undefined) !== thisValue.localeCompare("undefined")) {
- $ERROR("String.prototype.localeCompare does not treat undefined 'that' argument as \"undefined\".");
- }
+ var thisValue = thisValues[i];
+ if (thisValue.localeCompare() !== thisValue.localeCompare(undefined)) {
+ $ERROR("String.prototype.localeCompare does not treat missing 'that' argument as undefined.");
+ }
+ if (thisValue.localeCompare(undefined) !== thisValue.localeCompare("undefined")) {
+ $ERROR("String.prototype.localeCompare does not treat undefined 'that' argument as \"undefined\".");
+ }
}
diff --git a/test/built-ins/String/prototype/localeCompare/15.5.4.9_CE.js b/test/built-ins/String/prototype/localeCompare/15.5.4.9_CE.js
index 365a80595..4123b624f 100644
--- a/test/built-ins/String/prototype/localeCompare/15.5.4.9_CE.js
+++ b/test/built-ins/String/prototype/localeCompare/15.5.4.9_CE.js
@@ -14,71 +14,71 @@ author: Norbert Lindenberg
// pairs with characters not in Unicode 3.0 are commented out
var pairs = [
- // example from Unicode 5.0, section 3.7, definition D70
- ["o\u0308", "ö"],
- // examples from Unicode 5.0, chapter 3.11
- ["ä\u0323", "a\u0323\u0308"],
- ["a\u0308\u0323", "a\u0323\u0308"],
- ["ạ\u0308", "a\u0323\u0308"],
- ["ä\u0306", "a\u0308\u0306"],
- ["ă\u0308", "a\u0306\u0308"],
- // example from Unicode 5.0, chapter 3.12
- ["\u1111\u1171\u11B6", "퓛"],
- // examples from UTS 10, Unicode Collation Algorithm
- ["Å", "Å"],
- ["Å", "A\u030A"],
- ["x\u031B\u0323", "x\u0323\u031B"],
- ["ự", "ụ\u031B"],
- ["ự", "u\u031B\u0323"],
- ["ự", "ư\u0323"],
- ["ự", "u\u0323\u031B"],
- // examples from UAX 15, Unicode Normalization Forms
- ["Ç", "C\u0327"],
- ["q\u0307\u0323", "q\u0323\u0307"],
- ["가", "\u1100\u1161"],
- ["Å", "A\u030A"],
- ["Ω", "Ω"],
- ["Å", "A\u030A"],
- ["ô", "o\u0302"],
- ["ṩ", "s\u0323\u0307"],
- ["ḋ\u0323", "d\u0323\u0307"],
- ["ḋ\u0323", "ḍ\u0307"],
- ["q\u0307\u0323", "q\u0323\u0307"],
- // examples involving supplementary characters from UCD NormalizationTest.txt
-// ["\uD834\uDD5E", "\uD834\uDD57\uD834\uDD65"],
-// ["\uD87E\uDC2B", "北"]
+ // example from Unicode 5.0, section 3.7, definition D70
+ ["o\u0308", "ö"],
+ // examples from Unicode 5.0, chapter 3.11
+ ["ä\u0323", "a\u0323\u0308"],
+ ["a\u0308\u0323", "a\u0323\u0308"],
+ ["ạ\u0308", "a\u0323\u0308"],
+ ["ä\u0306", "a\u0308\u0306"],
+ ["ă\u0308", "a\u0306\u0308"],
+ // example from Unicode 5.0, chapter 3.12
+ ["\u1111\u1171\u11B6", "퓛"],
+ // examples from UTS 10, Unicode Collation Algorithm
+ ["Å", "Å"],
+ ["Å", "A\u030A"],
+ ["x\u031B\u0323", "x\u0323\u031B"],
+ ["ự", "ụ\u031B"],
+ ["ự", "u\u031B\u0323"],
+ ["ự", "ư\u0323"],
+ ["ự", "u\u0323\u031B"],
+ // examples from UAX 15, Unicode Normalization Forms
+ ["Ç", "C\u0327"],
+ ["q\u0307\u0323", "q\u0323\u0307"],
+ ["가", "\u1100\u1161"],
+ ["Å", "A\u030A"],
+ ["Ω", "Ω"],
+ ["Å", "A\u030A"],
+ ["ô", "o\u0302"],
+ ["ṩ", "s\u0323\u0307"],
+ ["ḋ\u0323", "d\u0323\u0307"],
+ ["ḋ\u0323", "ḍ\u0307"],
+ ["q\u0307\u0323", "q\u0323\u0307"],
+ // examples involving supplementary characters from UCD NormalizationTest.txt
+ // ["\uD834\uDD5E", "\uD834\uDD57\uD834\uDD65"],
+ // ["\uD87E\uDC2B", "北"]
];
// Detect whether we are using locale-sensitive comparisons or a bitwise comparison
-if("a".localeCompare("Z") < 0) {
- // We are using locale-sensitive comparison, so all pairs should be canonically equivalent
- var i;
- for (i = 0; i < pairs.length; i++) {
- var pair = pairs[i];
- if (pair[0].localeCompare(pair[1]) !== 0) {
- $ERROR("String.prototype.localeCompare considers " + pair[0] + " (" + toU(pair[0]) +
- ") ≠ " + pair[1] + " (" + toU(pair[1]) + ").");
- }
+if ("a".localeCompare("Z") < 0) {
+ // We are using locale-sensitive comparison, so all pairs should be canonically equivalent
+ var i;
+ for (i = 0; i < pairs.length; i++) {
+ var pair = pairs[i];
+ if (pair[0].localeCompare(pair[1]) !== 0) {
+ $ERROR("String.prototype.localeCompare considers " + pair[0] + " (" + toU(pair[0]) +
+ ") ≠ " + pair[1] + " (" + toU(pair[1]) + ").");
}
+ }
} else {
- // We are using bitwise comparison, so all pairs should not be equivalent
- var i;
- for (i = 0; i < pairs.length; i++) {
- var pair = pairs[i];
- if (pair[0].localeCompare(pair[1]) === 0) {
- $ERROR("String.prototype.localeCompare considers " + pair[0] + " (" + toU(pair[0]) +
- ") = " + pair[1] + " (" + toU(pair[1]) + ").");
- }
+ // We are using bitwise comparison, so all pairs should not be equivalent
+ var i;
+ for (i = 0; i < pairs.length; i++) {
+ var pair = pairs[i];
+ if (pair[0].localeCompare(pair[1]) === 0) {
+ $ERROR("String.prototype.localeCompare considers " + pair[0] + " (" + toU(pair[0]) +
+ ") = " + pair[1] + " (" + toU(pair[1]) + ").");
}
+ }
}
function toU(s) {
- var result = "";
- var escape = "\\u0000";
- var i;
- for (i = 0; i < s.length; i++) {
- var hex = s.charCodeAt(i).toString(16);
- result += escape.substring(0, escape.length - hex.length) + hex;
- }
- return result;
+ var result = "";
+ var escape = "\\u0000";
+ var i;
+ for (i = 0; i < s.length; i++) {
+ var hex = s.charCodeAt(i).toString(16);
+ result += escape.substring(0, escape.length - hex.length) + hex;
+ }
+ return result;
}
diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A10.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A10.js
index 7af411b70..f50b0ff8d 100644
--- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A10.js
+++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A10.js
@@ -15,19 +15,21 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.localeCompare.hasOwnProperty('length'))) {
- $ERROR('#1: String.prototype.localeCompare.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.localeCompare.hasOwnProperty('length'));
+ $ERROR('#1: String.prototype.localeCompare.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.localeCompare.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
var __obj = String.prototype.localeCompare.length;
-verifyNotWritable(String.prototype.localeCompare, "length", null, function(){return "shifted";});
+verifyNotWritable(String.prototype.localeCompare, "length", null, function() {
+ return "shifted";
+});
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.localeCompare.length !== __obj) {
- $ERROR('#2: __obj = String.prototype.localeCompare.length; String.prototype.localeCompare.length = function(){return "shifted";}; String.prototype.localeCompare.length === __obj. Actual: '+String.prototype.localeCompare.length );
+ $ERROR('#2: __obj = String.prototype.localeCompare.length; String.prototype.localeCompare.length = function(){return "shifted";}; String.prototype.localeCompare.length === __obj. Actual: ' + String.prototype.localeCompare.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A11.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A11.js
index 4cd0b2bce..d2b382111 100644
--- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A11.js
+++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A11.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.localeCompare.length
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.localeCompare.hasOwnProperty("length"))) {
- $ERROR('#1: String.prototype.localeCompare.hasOwnProperty("length") return true. Actual: '+String.prototype.localeCompare.hasOwnProperty("length"));
+ $ERROR('#1: String.prototype.localeCompare.hasOwnProperty("length") return true. Actual: ' + String.prototype.localeCompare.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -18,7 +18,7 @@ if (!(String.prototype.localeCompare.hasOwnProperty("length"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.localeCompare.length !== 1) {
- $ERROR('#2: String.prototype.localeCompare.length === 1. Actual: '+String.prototype.localeCompare.length );
+ $ERROR('#2: String.prototype.localeCompare.length === 1. Actual: ' + String.prototype.localeCompare.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T1.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T1.js
index 36c1e7019..c1d231158 100644
--- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T1.js
+++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T1.js
@@ -7,21 +7,21 @@ es5id: 15.5.4.9_A1_T1
description: This string is symbol and arguments are symbols
---*/
-var str1 = new String("h");
+var str1 = new String("h");
//CHECK#1
-var str2 = new String ("\x68");
-if (str1.localeCompare(str2)!==0){
- $ERROR('#1: var str1 = new String("h"); var str2 = new String ("\\x68"); str1.localeCompare(str2)===0. Actual: '+str1.localeCompare(str2));
+var str2 = new String("\x68");
+if (str1.localeCompare(str2) !== 0) {
+ $ERROR('#1: var str1 = new String("h"); var str2 = new String ("\\x68"); str1.localeCompare(str2)===0. Actual: ' + str1.localeCompare(str2));
}
//CHECK#2
-var str2 = new String ("\u0068");
-if (str1.localeCompare(str2)!==0){
- $ERROR('#2: var str1 = new String("h"); var str2 = new String ("\\u0068"); str1.localeCompare(str2)===0. Actual: '+str1.localeCompare(str2));
+var str2 = new String("\u0068");
+if (str1.localeCompare(str2) !== 0) {
+ $ERROR('#2: var str1 = new String("h"); var str2 = new String ("\\u0068"); str1.localeCompare(str2)===0. Actual: ' + str1.localeCompare(str2));
}
//CHECK#3
-var str2 = new String ("h");
-if (str1.localeCompare(str2)!==0){
- $ERROR('#3: var str1 = new String("h"); var str2 = new String ("h"); str1.localeCompare(str2)===0. Actual: '+str1.localeCompare(str2));
+var str2 = new String("h");
+if (str1.localeCompare(str2) !== 0) {
+ $ERROR('#3: var str1 = new String("h"); var str2 = new String ("h"); str1.localeCompare(str2)===0. Actual: ' + str1.localeCompare(str2));
}
diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T2.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T2.js
index be41eeb44..65aa3fbf3 100644
--- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T2.js
+++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T2.js
@@ -12,6 +12,6 @@ description: >
//CHECK#1
var str1 = "h";
var str2 = "H";
-if (str1.localeCompare(str2)!==-str2.localeCompare(str1)){
- $ERROR('#1.1: var str1 = "h"; var str2 = "H"; str1.localeCompare(str2)===-str2.localeCompare(str1). Actual: '+str1.localeCompare(str2));
+if (str1.localeCompare(str2) !== -str2.localeCompare(str1)) {
+ $ERROR('#1.1: var str1 = "h"; var str2 = "H"; str1.localeCompare(str2)===-str2.localeCompare(str1). Actual: ' + str1.localeCompare(str2));
}
diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A6.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A6.js
index 19001efc7..01b7a4006 100644
--- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A6.js
+++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A6.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.localeCompare.prototype
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.prototype.localeCompare.prototype !== undefined) {
- $ERROR('#1: String.prototype.localeCompare.prototype === undefined. Actual: '+String.prototype.localeCompare.prototype );
+ $ERROR('#1: String.prototype.localeCompare.prototype === undefined. Actual: ' + String.prototype.localeCompare.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A7.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A7.js
index b70beafa0..b52cc3ba6 100644
--- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A7.js
+++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A7.js
@@ -15,5 +15,5 @@ try {
var __instance = new __FACTORY;
$ERROR('#1: __FACTORY = String.prototype.localeCompare; __instance = new __FACTORY lead to throwing exception');
} catch (e) {
- if (e instanceof Test262Error) throw e;
+ if (e instanceof Test262Error) throw e;
}
diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A8.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A8.js
index 137c85bb3..928d8f703 100644
--- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A8.js
+++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A8.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.localeCompare.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.localeCompare.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.localeCompare.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.localeCompare.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.localeCompare.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,14 +30,14 @@ if (String.prototype.localeCompare.propertyIsEnumerable('length')) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#2
-var count=0;
+var count = 0;
-for (var p in String.prototype.localeCompare){
- if (p==="length") count++;
+for (var p in String.prototype.localeCompare) {
+ if (p === "length") count++;
}
if (count !== 0) {
- $ERROR('#2: count=0; for (p in String.prototype.localeCompare){if (p==="length") count++;}; count === 0. Actual: '+count );
+ $ERROR('#2: count=0; for (p in String.prototype.localeCompare){if (p==="length") count++;}; count === 0. Actual: ' + count);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A9.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A9.js
index af1145e50..544ffe9d9 100644
--- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A9.js
+++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A9.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.localeCompare.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.localeCompare.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.localeCompare.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.localeCompare.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.localeCompare.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (!delete String.prototype.localeCompare.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.localeCompare.hasOwnProperty('length')) {
- $ERROR('#2: delete String.prototype.localeCompare.length; String.prototype.localeCompare.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.localeCompare.hasOwnProperty('length'));
+ $ERROR('#2: delete String.prototype.localeCompare.length; String.prototype.localeCompare.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.localeCompare.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T10.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T10.js
index 009ca6ab1..4b71f1900 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T10.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T10.js
@@ -7,14 +7,18 @@ es5id: 15.5.4.10_A1_T10
description: Call match (regexp) function with object argument
---*/
-var __obj = {toString:function(){return "\u0041B";}}
+var __obj = {
+ toString: function() {
+ return "\u0041B";
+ }
+}
var __str = "ABB\u0041BABAB";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- if (__str.match(__obj)[0] !=="AB") {
- $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __str = "ABB\u0041BABAB"; __str.match(__obj)[0] ==="AB". Actual: '+__str.match(__obj)[0] );
- }
+if (__str.match(__obj)[0] !== "AB") {
+ $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __str = "ABB\u0041BABAB"; __str.match(__obj)[0] ==="AB". Actual: ' + __str.match(__obj)[0]);
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T11.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T11.js
index 01c8767eb..ea732163a 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T11.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T11.js
@@ -9,18 +9,22 @@ description: >
match (regexp) function with this object as argument
---*/
-var __obj = {toString:function(){throw "intostr";}}
+var __obj = {
+ toString: function() {
+ throw "intostr";
+ }
+}
var __str = "ABB\u0041BABAB";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __str.match(__obj);
- $ERROR('#1: "var x = __str.match(__obj)" lead to throwing exception');
- } catch (e) {
- if (e!=="intostr") {
- $ERROR('#1.1: Exception === "intostr". Actual: '+e);
- }
- }
+try {
+ var x = __str.match(__obj);
+ $ERROR('#1: "var x = __str.match(__obj)" lead to throwing exception');
+} catch (e) {
+ if (e !== "intostr") {
+ $ERROR('#1.1: Exception === "intostr". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T12.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T12.js
index 9f6049a40..1acb9a21d 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T12.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T12.js
@@ -9,18 +9,25 @@ description: >
then call match (regexp) function with this object as argument
---*/
-var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}}
+var __obj = {
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ throw "intostr";
+ }
+}
var __str = new String("ABB\u0041BABAB");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __str.match(__obj);
- $ERROR('#1: "var x = __str.match(__obj)" lead to throwing exception');
- } catch (e) {
- if (e!=="intostr") {
- $ERROR('#1.1: Exception === "intostr". Actual: '+e);
- }
- }
+try {
+ var x = __str.match(__obj);
+ $ERROR('#1: "var x = __str.match(__obj)" lead to throwing exception');
+} catch (e) {
+ if (e !== "intostr") {
+ $ERROR('#1.1: Exception === "intostr". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T13.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T13.js
index 64e9be70b..8a9cb164f 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T13.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T13.js
@@ -9,12 +9,19 @@ description: >
function with this object as argument
---*/
-var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}
+var __obj = {
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ return 1;
+ }
+}
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj)[0] !=="1") {
- $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".match(__obj)[0] ==="1". Actual: '+("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj)[0]) );
+if ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj)[0] !== "1") {
+ $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".match(__obj)[0] ==="1". Actual: ' + ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj)[0]));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,7 +29,7 @@ if ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj)[0] !=="1") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj).length !== 1) {
- $ERROR('#3: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".match(__obj).length === 1. Actual: '+("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj).length) );
+ $ERROR('#3: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".match(__obj).length === 1. Actual: ' + ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj).length));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T14.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T14.js
index fb112c3fa..5ef04584d 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T14.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T14.js
@@ -14,7 +14,7 @@ var __reg = new RegExp("77");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if ("ABB\u0041BABAB\u0037\u0037BBAA".match(__reg)[0] !== "77") {
- $ERROR('#1: var __reg = new RegExp("77"); "ABB\\u0041BABAB\\u0037\\u0037BBAA".match(__reg)[0] === "77". Actual: '+("ABB\u0041BABAB\u0037\u0037BBAA".match(__reg)[0]) );
+ $ERROR('#1: var __reg = new RegExp("77"); "ABB\\u0041BABAB\\u0037\\u0037BBAA".match(__reg)[0] === "77". Actual: ' + ("ABB\u0041BABAB\u0037\u0037BBAA".match(__reg)[0]));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T3.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T3.js
index dd8713565..e657e1bf3 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T3.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T3.js
@@ -10,14 +10,15 @@ description: Checking by using eval
var match = String.prototype.match.bind(this);
try {
- this.toString = Object.prototype.toString;
-} catch (e) { ; }
+ this.toString = Object.prototype.toString;
+} catch (e) {;
+}
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if ((this.toString === Object.prototype.toString) && //Ensure we could overwrite global obj's toString
- (match(eval("\"bj\""))[0] !== "bj")) {
- $ERROR('#1: match = String.prototype.match.bind(this); match(eval("\\"bj\\""))[0] === "bj". Actual: '+match(eval("\"bj\""))[0] );
+if ((this.toString === Object.prototype.toString) && //Ensure we could overwrite global obj's toString
+ (match(eval("\"bj\""))[0] !== "bj")) {
+ $ERROR('#1: match = String.prototype.match.bind(this); match(eval("\\"bj\\""))[0] === "bj". Actual: ' + match(eval("\"bj\""))[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T4.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T4.js
index d81fcf57f..7d67a718b 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T4.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T4.js
@@ -9,12 +9,12 @@ description: Call match (regexp) function without arguments of string
var __matched = "".match();
-var __expected = RegExp().exec("");
+var __expected = RegExp().exec("");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__matched.length !== __expected.length) {
- $ERROR('#1: __matched = "".match(); __expected = RegExp().exec(""); __matched.length === __expected.length. Actual: '+__matched.length );
+ $ERROR('#1: __matched = "".match(); __expected = RegExp().exec(""); __matched.length === __expected.length. Actual: ' + __matched.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,7 +22,7 @@ if (__matched.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__matched.index !== __expected.index) {
- $ERROR('#2: __matched = "".match(); __expected = RegExp().exec(""); __matched.index === __expected.index. Actual: '+__matched.index );
+ $ERROR('#2: __matched = "".match(); __expected = RegExp().exec(""); __matched.index === __expected.index. Actual: ' + __matched.index);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,16 +30,16 @@ if (__matched.index !== __expected.index) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__matched.input !== __expected.input) {
- $ERROR('#3: __matched = "".match(); __expected = RegExp().exec(""); __matched.input === __expected.input. Actual: '+__matched.input );
+ $ERROR('#3: __matched = "".match(); __expected = RegExp().exec(""); __matched.input === __expected.input. Actual: ' + __matched.input);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__matched[index]!==__expected[index]) {
- $ERROR('#4.'+index+': __matched = "".match(); __expected = RegExp().exec(""); __matched['+index+']===__expected['+index+']. Actual: '+__matched[index]);
+for (var index = 0; index < __expected.length; index++) {
+ if (__matched[index] !== __expected[index]) {
+ $ERROR('#4.' + index + ': __matched = "".match(); __expected = RegExp().exec(""); __matched[' + index + ']===__expected[' + index + ']. Actual: ' + __matched[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T5.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T5.js
index f0a41f16f..a8ca7399d 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T5.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T5.js
@@ -10,8 +10,12 @@ description: Call match (regexp) function with null argument of function object
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToString(null) evaluates to "null" match(null) evaluates to match("null")
-if (function(){return "gnulluna"}().match(null)[0] !== "null") {
- $ERROR('#1: function(){return "gnulluna"}().match(null)[0] === "null". Actual: '+function(){return "gnulluna"}().match(null)[0] );
+if (function() {
+ return "gnulluna"
+ }().match(null)[0] !== "null") {
+ $ERROR('#1: function(){return "gnulluna"}().match(null)[0] === "null". Actual: ' + function() {
+ return "gnulluna"
+ }().match(null)[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T6.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T6.js
index 9fd224f52..f88921461 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T6.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T6.js
@@ -11,12 +11,12 @@ description: >
var __matched = new String("undefined").match(x);
-var __expected = RegExp(x).exec("undefined");
+var __expected = RegExp(x).exec("undefined");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__matched.length !== __expected.length) {
- $ERROR('#1: __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched.length === __expected.length. Actual: '+__matched.length );
+ $ERROR('#1: __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched.length === __expected.length. Actual: ' + __matched.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -24,7 +24,7 @@ if (__matched.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__matched.index !== __expected.index) {
- $ERROR('#2: __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched.index === __expected.index. Actual: '+__matched.index );
+ $ERROR('#2: __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched.index === __expected.index. Actual: ' + __matched.index);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -32,16 +32,16 @@ if (__matched.index !== __expected.index) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__matched.input !== __expected.input) {
- $ERROR('#3: __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched.input === __expected.input. Actual: '+__matched.input );
+ $ERROR('#3: __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched.input === __expected.input. Actual: ' + __matched.input);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__matched[index]!==__expected[index]) {
- $ERROR('#4.'+index+': __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched['+index+']===__expected['+index+']. Actual: '+__matched[index]);
+for (var index = 0; index < __expected.length; index++) {
+ if (__matched[index] !== __expected[index]) {
+ $ERROR('#4.' + index + ': __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched[' + index + ']===__expected[' + index + ']. Actual: ' + __matched[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T7.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T7.js
index b59c69173..a07e6f768 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T7.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T7.js
@@ -11,12 +11,12 @@ description: >
var __matched = String("undefined").match(undefined);
-var __expected = RegExp(undefined).exec("undefined");
+var __expected = RegExp(undefined).exec("undefined");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__matched.length !== __expected.length) {
- $ERROR('#1: __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched.length === __expected.length. Actual: '+__matched.length );
+ $ERROR('#1: __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched.length === __expected.length. Actual: ' + __matched.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -24,7 +24,7 @@ if (__matched.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__matched.index !== __expected.index) {
- $ERROR('#2: __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched.index === __expected.index. Actual: '+__matched.index );
+ $ERROR('#2: __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched.index === __expected.index. Actual: ' + __matched.index);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -32,16 +32,16 @@ if (__matched.index !== __expected.index) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__matched.input !== __expected.input) {
- $ERROR('#3: __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched.input === __expected.input. Actual: '+__matched.input );
+ $ERROR('#3: __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched.input === __expected.input. Actual: ' + __matched.input);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__matched[index]!==__expected[index]) {
- $ERROR('#4.'+index+': __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched['+index+']===__expected['+index+']. Actual: '+__matched[index]);
+for (var index = 0; index < __expected.length; index++) {
+ if (__matched[index] !== __expected[index]) {
+ $ERROR('#4.' + index + ': __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched[' + index + ']===__expected[' + index + ']. Actual: ' + __matched[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T8.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T8.js
index 13aa23e55..36f3d0802 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T8.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T8.js
@@ -7,16 +7,18 @@ es5id: 15.5.4.10_A1_T8
description: Call match (regexp) function with void 0 argument of string object;
---*/
-var __obj = {toString:function(){}};
+var __obj = {
+ toString: function() {}
+};
var __matched = String(__obj).match(void 0);
-var __expected = RegExp(void 0).exec("undefined");
+var __expected = RegExp(void 0).exec("undefined");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__matched.length !== __expected.length) {
- $ERROR('#1: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.length === __expected.length. Actual: '+__matched.length );
+ $ERROR('#1: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.length === __expected.length. Actual: ' + __matched.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -24,7 +26,7 @@ if (__matched.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__matched.index !== __expected.index) {
- $ERROR('#2: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.index === __expected.index. Actual: '+__matched.index );
+ $ERROR('#2: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.index === __expected.index. Actual: ' + __matched.index);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -32,16 +34,16 @@ if (__matched.index !== __expected.index) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__matched.input !== __expected.input) {
- $ERROR('#3: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.input === __expected.input. Actual: '+__matched.input );
+ $ERROR('#3: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.input === __expected.input. Actual: ' + __matched.input);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__matched[index]!==__expected[index]) {
- $ERROR('#4.'+index+': __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched['+index+']===__expected['+index+']. Actual: '+__matched[index]);
+for (var index = 0; index < __expected.length; index++) {
+ if (__matched[index] !== __expected[index]) {
+ $ERROR('#4.' + index + ': __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched[' + index + ']===__expected[' + index + ']. Actual: ' + __matched[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T9.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T9.js
index a9ce29da4..df8ab7b60 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T9.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T9.js
@@ -10,18 +10,18 @@ description: >
---*/
var __obj = {
- valueOf:function(){},
- toString:void 0
+ valueOf: function() {},
+ toString: void 0
};
-var __matched = new String(__obj).match(function(){}());
+var __matched = new String(__obj).match(function() {}());
-var __expected = RegExp(undefined).exec("undefined");
+var __expected = RegExp(undefined).exec("undefined");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__matched.length !== __expected.length) {
- $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched.length === __expected.length. Actual: '+__matched.length );
+ $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched.length === __expected.length. Actual: ' + __matched.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,7 +29,7 @@ if (__matched.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__matched.index !== __expected.index) {
- $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched.index === __expected.index. Actual: '+__matched.index );
+ $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched.index === __expected.index. Actual: ' + __matched.index);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -37,16 +37,16 @@ if (__matched.index !== __expected.index) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__matched.input !== __expected.input) {
- $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched.input === __expected.input. Actual: '+__matched.input );
+ $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched.input === __expected.input. Actual: ' + __matched.input);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__matched[index]!==__expected[index]) {
- $ERROR('#4.'+index+': __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched['+index+']===__expected['+index+']. Actual: '+__matched[index]);
+for (var index = 0; index < __expected.length; index++) {
+ if (__matched[index] !== __expected[index]) {
+ $ERROR('#4.' + index + ': __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched[' + index + ']===__expected[' + index + ']. Actual: ' + __matched[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T1.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T1.js
index 4f74b0689..d45e716aa 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T1.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T1.js
@@ -11,32 +11,32 @@ var __string = "1234567890";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.match(3)[0]!== "3") {
- $ERROR('#1: __string = "1234567890"; __string.match(3)[0]=== "3". Actual: '+__string.match(3)[0]);
+if (__string.match(3)[0] !== "3") {
+ $ERROR('#1: __string = "1234567890"; __string.match(3)[0]=== "3". Actual: ' + __string.match(3)[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__string.match(3).length !==1) {
- $ERROR('#2: __string = "1234567890"; __string.match(3).length ===1. Actual: '+__string.match(3).length );
+if (__string.match(3).length !== 1) {
+ $ERROR('#2: __string = "1234567890"; __string.match(3).length ===1. Actual: ' + __string.match(3).length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-if (__string.match(3).index !==2) {
- $ERROR('#3: __string = "1234567890"; __string.match(3).index ===2. Actual: '+__string.match(3).index );
+if (__string.match(3).index !== 2) {
+ $ERROR('#3: __string = "1234567890"; __string.match(3).index ===2. Actual: ' + __string.match(3).index);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-if (__string.match(3).input !==__string) {
- $ERROR('#4: __string = "1234567890"; __string.match(3).input ===__string. Actual: '+__string.match(3).input );
+if (__string.match(3).input !== __string) {
+ $ERROR('#4: __string = "1234567890"; __string.match(3).input ===__string. Actual: ' + __string.match(3).input);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T10.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T10.js
index 5a5c5f382..6a23ef54e 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T10.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T10.js
@@ -12,7 +12,7 @@ description: >
var __string = "Boston, MA 02134";
-var __matches=["02134", "02134", undefined];
+var __matches = ["02134", "02134", undefined];
var __re = /([\d]{5})([-\ ]?[\d]{4})?$/;
@@ -20,25 +20,25 @@ __re.lastIndex = __string.lastIndexOf("0");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.match(__re).length!== 3) {
- $ERROR('#1: __string.match(__re).length=== 3. Actual: '+__string.match(__re).length);
+if (__string.match(__re).length !== 3) {
+ $ERROR('#1: __string.match(__re).length=== 3. Actual: ' + __string.match(__re).length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__string.match(__re).index !==__string.lastIndexOf("0")) {
- $ERROR('#2: __string.match(__re).index ===__string.lastIndexOf("0"). Actual: '+__string.match(__re).index );
+if (__string.match(__re).index !== __string.lastIndexOf("0")) {
+ $ERROR('#2: __string.match(__re).index ===__string.lastIndexOf("0"). Actual: ' + __string.match(__re).index);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var mi=0; mi<__matches.length; mi++) {
- if (__string.match(__re)[mi]!==__matches[mi]) {
- $ERROR('#3.'+mi+': __string.match(__re)['+mi+']===__matches['+mi+']. Actual: '+__string.match(__re)[mi]);
+for (var mi = 0; mi < __matches.length; mi++) {
+ if (__string.match(__re)[mi] !== __matches[mi]) {
+ $ERROR('#3.' + mi + ': __string.match(__re)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(__re)[mi]);
}
}
//
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T11.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T11.js
index 8bf987ea9..c34a0c874 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T11.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T11.js
@@ -12,33 +12,33 @@ description: >
var __string = "Boston, MA 02134";
-var __matches=["02134", "02134", undefined];
+var __matches = ["02134", "02134", undefined];
var __re = /([\d]{5})([-\ ]?[\d]{4})?$/;
-__re.lastIndex = __string.lastIndexOf("0")+1;
+__re.lastIndex = __string.lastIndexOf("0") + 1;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.match(__re).length!== 3) {
- $ERROR('#1: __string.match(__re).length=== 3. Actual: '+__string.match(__re).length);
+if (__string.match(__re).length !== 3) {
+ $ERROR('#1: __string.match(__re).length=== 3. Actual: ' + __string.match(__re).length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__string.match(__re).index !==__string.lastIndexOf("0")) {
- $ERROR('#2: __string.match(__re).index ===__string.lastIndexOf("0"). Actual: '+__string.match(__re).index );
+if (__string.match(__re).index !== __string.lastIndexOf("0")) {
+ $ERROR('#2: __string.match(__re).index ===__string.lastIndexOf("0"). Actual: ' + __string.match(__re).index);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var mi=0; mi<__matches.length; mi++) {
- if (__string.match(__re)[mi]!==__matches[mi]) {
- $ERROR('#3.'+mi+': __string.match(__re)['+mi+']===__matches['+mi+']. Actual: '+__string.match(__re)[mi]);
+for (var mi = 0; mi < __matches.length; mi++) {
+ if (__string.match(__re)[mi] !== __matches[mi]) {
+ $ERROR('#3.' + mi + ': __string.match(__re)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(__re)[mi]);
}
}
//
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T12.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T12.js
index c89079514..760e6a107 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T12.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T12.js
@@ -9,7 +9,7 @@ description: >
]?[\d]{4})?$/g
---*/
-var __matches=["02134"];
+var __matches = ["02134"];
var __string = "Boston, MA 02134";
@@ -17,16 +17,16 @@ var __re = /([\d]{5})([-\ ]?[\d]{4})?$/g;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.match(__re).length!== __matches.length) {
- $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: '+__string.match(__re).length);
+if (__string.match(__re).length !== __matches.length) {
+ $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: ' + __string.match(__re).length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__string.match(__re)[0]!==__matches[0]) {
- $ERROR('#2: __string.match(__re)[0]===__matches[0]. Actual: '+__string.match(__re)[0]);
+if (__string.match(__re)[0] !== __matches[0]) {
+ $ERROR('#2: __string.match(__re)[0]===__matches[0]. Actual: ' + __string.match(__re)[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T13.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T13.js
index 4a6175599..3424023d2 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T13.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T13.js
@@ -9,7 +9,7 @@ description: >
expression object have property lastIndex = 0
---*/
-var __matches=["02134"];
+var __matches = ["02134"];
var __re = /([\d]{5})([-\ ]?[\d]{4})?$/g;
__re.lastIndex = 0;
@@ -18,16 +18,16 @@ var __string = "Boston, MA 02134";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.match(__re).length!== __matches.length) {
- $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: '+__string.match(__re).length);
+if (__string.match(__re).length !== __matches.length) {
+ $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: ' + __string.match(__re).length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-if (__string.match(__re)[0]!==__matches[0]) {
- $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: '+__string.match(__re)[0]);
+if (__string.match(__re)[0] !== __matches[0]) {
+ $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: ' + __string.match(__re)[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T14.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T14.js
index 92b559388..673f1fb0c 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T14.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T14.js
@@ -11,7 +11,7 @@ description: >
var __string = "Boston, MA 02134";
-var __matches=["02134"];
+var __matches = ["02134"];
var __re = /([\d]{5})([-\ ]?[\d]{4})?$/g;
@@ -19,16 +19,16 @@ __re.lastIndex = __string.length;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.match(__re).length!== __matches.length) {
- $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: '+__string.match(__re).length);
+if (__string.match(__re).length !== __matches.length) {
+ $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: ' + __string.match(__re).length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-if (__string.match(__re)[0]!==__matches[0]) {
- $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: '+__string.match(__re)[0]);
+if (__string.match(__re)[0] !== __matches[0]) {
+ $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: ' + __string.match(__re)[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T15.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T15.js
index b2101492c..1f222e684 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T15.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T15.js
@@ -12,7 +12,7 @@ description: >
var __string = "Boston, MA 02134";
-var __matches=["02134"];
+var __matches = ["02134"];
var __re = /([\d]{5})([-\ ]?[\d]{4})?$/g;
@@ -20,16 +20,16 @@ __re.lastIndex = __string.lastIndexOf("0");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.match(__re).length!== __matches.length) {
- $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: '+__string.match(__re).length);
+if (__string.match(__re).length !== __matches.length) {
+ $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: ' + __string.match(__re).length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-if (__string.match(__re)[0]!==__matches[0]) {
- $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: '+__string.match(__re)[0]);
+if (__string.match(__re)[0] !== __matches[0]) {
+ $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: ' + __string.match(__re)[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T16.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T16.js
index ac72b075f..6fb716b82 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T16.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T16.js
@@ -12,24 +12,24 @@ description: >
var __string = "Boston, MA 02134";
-var __matches=["02134"];
+var __matches = ["02134"];
var __re = /([\d]{5})([-\ ]?[\d]{4})?$/g;
-__re.lastIndex = __string.lastIndexOf("0")+1;
+__re.lastIndex = __string.lastIndexOf("0") + 1;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.match(__re).length!== __matches.length) {
- $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: '+__string.match(__re).length);
+if (__string.match(__re).length !== __matches.length) {
+ $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: ' + __string.match(__re).length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-if (__string.match(__re)[0]!==__matches[0]) {
- $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: '+__string.match(__re)[0]);
+if (__string.match(__re)[0] !== __matches[0]) {
+ $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: ' + __string.match(__re)[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T17.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T17.js
index 9cd4f7848..2721f7871 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T17.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T17.js
@@ -17,32 +17,32 @@ Number.prototype.match = String.prototype.match;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__num.match(__re)[0]!== "02") {
- $ERROR('#1: __num.match(__re)[0]=== "02". Actual: '+__num.match(__re)[0]);
+if (__num.match(__re)[0] !== "02") {
+ $ERROR('#1: __num.match(__re)[0]=== "02". Actual: ' + __num.match(__re)[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__num.match(__re).length !==1) {
- $ERROR('#2: __num.match(__re).length ===1. Actual: '+__num.match(__re).length );
+if (__num.match(__re).length !== 1) {
+ $ERROR('#2: __num.match(__re).length ===1. Actual: ' + __num.match(__re).length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-if (__num.match(__re).index !==1) {
- $ERROR('#3: __num.match(__re).index ===1. Actual: '+__num.match(__re).index );
+if (__num.match(__re).index !== 1) {
+ $ERROR('#3: __num.match(__re).index ===1. Actual: ' + __num.match(__re).index);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-if (__num.match(__re).input !==String(__num)) {
- $ERROR('#4: __num.match(__re).input ===String(__num). Actual: '+__num.match(__re).input );
+if (__num.match(__re).input !== String(__num)) {
+ $ERROR('#4: __num.match(__re).input ===String(__num). Actual: ' + __num.match(__re).input);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T18.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T18.js
index 9f8c8b30e..00ac312bc 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T18.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T18.js
@@ -19,32 +19,32 @@ Number.prototype.match = String.prototype.match;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__num.match(__re)[0]!== "02") {
- $ERROR('#1: __num.match(__re)[0]=== "02". Actual: '+__num.match(__re)[0]);
+if (__num.match(__re)[0] !== "02") {
+ $ERROR('#1: __num.match(__re)[0]=== "02". Actual: ' + __num.match(__re)[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__num.match(__re).length !==1) {
- $ERROR('#2: __num.match(__re).length ===1. Actual: '+__num.match(__re).length );
+if (__num.match(__re).length !== 1) {
+ $ERROR('#2: __num.match(__re).length ===1. Actual: ' + __num.match(__re).length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-if (__num.match(__re).index !==1) {
- $ERROR('#3: __num.match(__re).index ===1. Actual: '+__num.match(__re).index );
+if (__num.match(__re).index !== 1) {
+ $ERROR('#3: __num.match(__re).index ===1. Actual: ' + __num.match(__re).index);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-if (__num.match(__re).input !==String(__num)) {
- $ERROR('#4: __num.match(__re).input ===String(__num). Actual: '+__num.match(__re).input );
+if (__num.match(__re).input !== String(__num)) {
+ $ERROR('#4: __num.match(__re).input ===String(__num). Actual: ' + __num.match(__re).input);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T2.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T2.js
index 27e46bbb2..4d156a3c7 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T2.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T2.js
@@ -7,23 +7,23 @@ es5id: 15.5.4.10_A2_T2
description: Regular expression is /34/g
---*/
-var __matches=["34","34","34"];
+var __matches = ["34", "34", "34"];
var __string = "343443444";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.match(/34/g).length!== 3) {
- $ERROR('#1: __string = "343443444"; __string.match(/34/g).length=== 3. Actual: '+__string.match(/34/g).length);
+if (__string.match(/34/g).length !== 3) {
+ $ERROR('#1: __string = "343443444"; __string.match(/34/g).length=== 3. Actual: ' + __string.match(/34/g).length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-for(var mi=0; mi<__matches.length; mi++) {
- if (__string.match(/34/g)[mi]!==__matches[mi]) {
- $ERROR('#2.'+mi+': __matches=["34","34","34"]; __string = "343443444"; __string.match(/34/g)['+mi+']===__matches['+mi+']. Actual: '+__string.match(/34/g)[mi]);
+for (var mi = 0; mi < __matches.length; mi++) {
+ if (__string.match(/34/g)[mi] !== __matches[mi]) {
+ $ERROR('#2.' + mi + ': __matches=["34","34","34"]; __string = "343443444"; __string.match(/34/g)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(/34/g)[mi]);
}
}
//
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T3.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T3.js
index 26e6dd68e..3d42695ab 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T3.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T3.js
@@ -7,23 +7,23 @@ es5id: 15.5.4.10_A2_T3
description: Regular expression is /\d{1}/g
---*/
-var __matches=["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"];
+var __matches = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"];
var __string = "123456abcde7890";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.match(/\d{1}/g).length!== 10) {
- $ERROR('#1: __string = "123456abcde7890"; __string.match(/\\d{1}/g).length=== 10. Actual: '+__string.match(/\d{1}/g).length);
+if (__string.match(/\d{1}/g).length !== 10) {
+ $ERROR('#1: __string = "123456abcde7890"; __string.match(/\\d{1}/g).length=== 10. Actual: ' + __string.match(/\d{1}/g).length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-for(var mi=0; mi<__matches.length; mi++) {
- if (__string.match(/\d{1}/g)[mi]!==__matches[mi]) {
- $ERROR('#2.'+mi+': __matches=["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"]; __string = "123456abcde7890"; __string.match(/\\d{1}/g)['+mi+']===__matches['+mi+']. Actual: '+__string.match(/\d{1}/g)[mi]);
+for (var mi = 0; mi < __matches.length; mi++) {
+ if (__string.match(/\d{1}/g)[mi] !== __matches[mi]) {
+ $ERROR('#2.' + mi + ': __matches=["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"]; __string = "123456abcde7890"; __string.match(/\\d{1}/g)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(/\d{1}/g)[mi]);
}
}
//
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T4.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T4.js
index 37c6ec04e..bf143c5e3 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T4.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T4.js
@@ -7,23 +7,23 @@ es5id: 15.5.4.10_A2_T4
description: Regular expression is /\d{2}/g
---*/
-var __matches=["12", "34", "56", "78", "90"];
+var __matches = ["12", "34", "56", "78", "90"];
var __string = "123456abcde7890";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.match(/\d{2}/g).length!== 5) {
- $ERROR('#1: __string = "123456abcde7890"; __string.match(/\\d{2}/g).length=== 5. Actual: '+__string.match(/\d{2}/g).length);
+if (__string.match(/\d{2}/g).length !== 5) {
+ $ERROR('#1: __string = "123456abcde7890"; __string.match(/\\d{2}/g).length=== 5. Actual: ' + __string.match(/\d{2}/g).length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-for(var mi=0; mi<__matches.length; mi++) {
- if (__string.match(/\d{2}/g)[mi]!==__matches[mi]) {
- $ERROR('#2.'+mi+': __matches=["12", "34", "56", "78", "90"]; __string = "123456abcde7890"; __string.match(/\\d{2}/g)['+mi+']===__matches['+mi+']. Actual: '+__string.match(/\d{2}/g)[mi]);
+for (var mi = 0; mi < __matches.length; mi++) {
+ if (__string.match(/\d{2}/g)[mi] !== __matches[mi]) {
+ $ERROR('#2.' + mi + ': __matches=["12", "34", "56", "78", "90"]; __string = "123456abcde7890"; __string.match(/\\d{2}/g)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(/\d{2}/g)[mi]);
}
}
//
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T5.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T5.js
index 22044d86b..f2fc03437 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T5.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T5.js
@@ -7,23 +7,23 @@ es5id: 15.5.4.10_A2_T5
description: Regular expression is /\D{2}/g
---*/
-var __matches=["ab", "cd"];
+var __matches = ["ab", "cd"];
var __string = "123456abcde7890";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.match(/\D{2}/g).length!== 2) {
- $ERROR('#1: __string = "123456abcde7890"; __string.match(/\\D{2}/g).length=== 2. Actual: '+__string.match(/\D{2}/g).length);
+if (__string.match(/\D{2}/g).length !== 2) {
+ $ERROR('#1: __string = "123456abcde7890"; __string.match(/\\D{2}/g).length=== 2. Actual: ' + __string.match(/\D{2}/g).length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-for(var mi=0; mi<__matches.length; mi++) {
- if (__string.match(/\D{2}/g)[mi]!==__matches[mi]) {
- $ERROR('#2.'+mi+': __matches=["ab", "cd"]; __string = "123456abcde7890"; __string.match(/\\D{2}/g)['+mi+']===__matches['+mi+']. Actual: '+__string.match(/\D{2}/g)[mi]);
+for (var mi = 0; mi < __matches.length; mi++) {
+ if (__string.match(/\D{2}/g)[mi] !== __matches[mi]) {
+ $ERROR('#2.' + mi + ': __matches=["ab", "cd"]; __string = "123456abcde7890"; __string.match(/\\D{2}/g)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(/\D{2}/g)[mi]);
}
}
//
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T6.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T6.js
index 1be783adf..7a1422d91 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T6.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T6.js
@@ -13,48 +13,48 @@ var __string = "Boston, Mass. 02134";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[0]!== "02134") {
- $ERROR('#1: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/)[0]=== "02134". Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[0]);
+if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[0] !== "02134") {
+ $ERROR('#1: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/)[0]=== "02134". Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[1]!== "02134") {
- $ERROR('#2: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/)[1]=== "02134". Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[1]);
+if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[1] !== "02134") {
+ $ERROR('#2: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/)[1]=== "02134". Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[2]!== void 0) {
- $ERROR('#3: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/)[2]=== void 0. Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[2]);
+if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[2] !== void 0) {
+ $ERROR('#3: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/)[2]=== void 0. Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[2]);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).length !==3) {
- $ERROR('#4: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/).length ===3. Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).length );
+if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).length !== 3) {
+ $ERROR('#4: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/).length ===3. Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
-if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).index !==14) {
- $ERROR('#5: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/).index ===14. Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).index );
+if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).index !== 14) {
+ $ERROR('#5: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/).index ===14. Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).index);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#6
-if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).input !==__string) {
- $ERROR('#6: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/).input ===__string. Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).input );
+if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).input !== __string) {
+ $ERROR('#6: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/).input ===__string. Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).input);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T7.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T7.js
index 48a7ba461..18e1477be 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T7.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T7.js
@@ -7,22 +7,22 @@ es5id: 15.5.4.10_A2_T7
description: Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/g
---*/
-var __matches=["02134"];
+var __matches = ["02134"];
var __string = "Boston, Mass. 02134";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g).length!== 1) {
- $ERROR('#1: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/g).length=== 1. Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g).length);
+if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g).length !== 1) {
+ $ERROR('#1: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/g).length=== 1. Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g).length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g)[0]!==__matches[0]) {
- $ERROR('#2: __matches=["02134"]; __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/g)[0]===__matches[0]. Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g)[0]);
+if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g)[0] !== __matches[0]) {
+ $ERROR('#2: __matches=["02134"]; __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/g)[0]===__matches[0]. Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g)[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T8.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T8.js
index 27cf7c407..635952659 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T8.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T8.js
@@ -10,7 +10,7 @@ description: >
= 0
---*/
-var __matches=["02134", "02134", undefined];
+var __matches = ["02134", "02134", undefined];
var __re = /([\d]{5})([-\ ]?[\d]{4})?$/;
__re.lastIndex = 0;
@@ -19,25 +19,25 @@ var __string = "Boston, MA 02134";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.match(__re).length!== 3) {
- $ERROR('#1: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __string.match(__re).length=== 3. Actual: '+__string.match(__re).length);
+if (__string.match(__re).length !== 3) {
+ $ERROR('#1: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __string.match(__re).length=== 3. Actual: ' + __string.match(__re).length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__string.match(__re).index !==__string.lastIndexOf("0")) {
- $ERROR('#2: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __re.lastIndex = 0; __string.match(__re).index ===__string.lastIndexOf("0"). Actual: '+__string.match(__re).index );
+if (__string.match(__re).index !== __string.lastIndexOf("0")) {
+ $ERROR('#2: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __re.lastIndex = 0; __string.match(__re).index ===__string.lastIndexOf("0"). Actual: ' + __string.match(__re).index);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var mi=0; mi<__matches.length; mi++) {
- if (__string.match(__re)[mi]!==__matches[mi]) {
- $ERROR('#3.'+mi+': __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __matches=["02134", "02134", undefined]; __string.match(__re)['+mi+']===__matches['+mi+']. Actual: '+__string.match(__re)[mi]);
+for (var mi = 0; mi < __matches.length; mi++) {
+ if (__string.match(__re)[mi] !== __matches[mi]) {
+ $ERROR('#3.' + mi + ': __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __matches=["02134", "02134", undefined]; __string.match(__re)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(__re)[mi]);
}
}
//
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T9.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T9.js
index b37f8ec73..730494c45 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T9.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T9.js
@@ -12,7 +12,7 @@ description: >
var __string = "Boston, MA 02134";
-var __matches=["02134", "02134", undefined];
+var __matches = ["02134", "02134", undefined];
var __re = /([\d]{5})([-\ ]?[\d]{4})?$/;
@@ -20,25 +20,25 @@ __re.lastIndex = __string.length;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.match(__re).length!== 3) {
- $ERROR('#1: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __string.match(__re).length=== 3. Actual: '+__string.match(__re).length);
+if (__string.match(__re).length !== 3) {
+ $ERROR('#1: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __string.match(__re).length=== 3. Actual: ' + __string.match(__re).length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
-if (__string.match(__re).index !==__string.lastIndexOf("0")) {
- $ERROR('#2: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __re.lastIndex = __string.length; __string.match(__re).index ===__string.lastIndexOf("0"). Actual: '+__string.match(__re).index );
+if (__string.match(__re).index !== __string.lastIndexOf("0")) {
+ $ERROR('#2: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __re.lastIndex = __string.length; __string.match(__re).index ===__string.lastIndexOf("0"). Actual: ' + __string.match(__re).index);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var mi=0; mi<__matches.length; mi++) {
- if (__string.match(__re)[mi]!==__matches[mi]) {
- $ERROR('#3.'+mi+': __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __matches=["02134", "02134", undefined]; __string.match(__re)['+mi+']===__matches['+mi+']. Actual: '+__string.match(__re)[mi]);
+for (var mi = 0; mi < __matches.length; mi++) {
+ if (__string.match(__re)[mi] !== __matches[mi]) {
+ $ERROR('#3.' + mi + ': __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __matches=["02134", "02134", undefined]; __string.match(__re)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(__re)[mi]);
}
}
//
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A6.js b/test/built-ins/String/prototype/match/S15.5.4.10_A6.js
index e7b44f13f..e2f257c4b 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A6.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A6.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.match.prototype
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.prototype.match.prototype !== undefined) {
- $ERROR('#1: String.prototype.match.prototype === undefined. Actual: '+String.prototype.match.prototype );
+ $ERROR('#1: String.prototype.match.prototype === undefined. Actual: ' + String.prototype.match.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A7.js b/test/built-ins/String/prototype/match/S15.5.4.10_A7.js
index f3ab3f402..c1b66b3a6 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A7.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A7.js
@@ -13,5 +13,5 @@ try {
var __instance = new __FACTORY;
$ERROR('#1: __FACTORY = String.prototype.match; __FACTORY = String.prototype.match; __instance = new __FACTORY lead to throwing exception');
} catch (e) {
- if (e instanceof Test262Error) throw e;
+ if (e instanceof Test262Error) throw e;
}
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A8.js b/test/built-ins/String/prototype/match/S15.5.4.10_A8.js
index d07bced4d..dedeedfd4 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A8.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A8.js
@@ -12,7 +12,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.match.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.match.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.match.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.match.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.match.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,14 +28,14 @@ if (String.prototype.match.propertyIsEnumerable('length')) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#2
-var count=0;
+var count = 0;
-for (var p in String.prototype.match){
- if (p==="length") count++;
+for (var p in String.prototype.match) {
+ if (p === "length") count++;
}
if (count !== 0) {
- $ERROR('#2: count=0; for (p in String.prototype.match){if (p==="length") count++;}; count === 0. Actual: '+count );
+ $ERROR('#2: count=0; for (p in String.prototype.match){if (p==="length") count++;}; count === 0. Actual: ' + count);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A9.js b/test/built-ins/String/prototype/match/S15.5.4.10_A9.js
index e6c8b7d8a..71b5ba725 100644
--- a/test/built-ins/String/prototype/match/S15.5.4.10_A9.js
+++ b/test/built-ins/String/prototype/match/S15.5.4.10_A9.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.match.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.match.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.match.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.match.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.match.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (!delete String.prototype.match.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.match.hasOwnProperty('length')) {
- $ERROR('#2: delete String.prototype.match.length; String.prototype.match.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.match.hasOwnProperty('length'));
+ $ERROR('#2: delete String.prototype.match.length; String.prototype.match.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.match.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/length.js b/test/built-ins/String/prototype/match/length.js
index 674b25cad..89688b5da 100644
--- a/test/built-ins/String/prototype/match/length.js
+++ b/test/built-ins/String/prototype/match/length.js
@@ -25,7 +25,7 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.match.hasOwnProperty("length"))) {
- $ERROR('#1: String.prototype.match.hasOwnProperty("length") return true. Actual: '+String.prototype.match.hasOwnProperty("length"));
+ $ERROR('#1: String.prototype.match.hasOwnProperty("length") return true. Actual: ' + String.prototype.match.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -33,7 +33,7 @@ if (!(String.prototype.match.hasOwnProperty("length"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.match.length !== 1) {
- $ERROR('#2: String.prototype.match.length === 1. Actual: '+String.prototype.match.length );
+ $ERROR('#2: String.prototype.match.length === 1. Actual: ' + String.prototype.match.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/this-val-bool.js b/test/built-ins/String/prototype/match/this-val-bool.js
index 65488e526..47765c59f 100644
--- a/test/built-ins/String/prototype/match/this-val-bool.js
+++ b/test/built-ins/String/prototype/match/this-val-bool.js
@@ -15,8 +15,12 @@ __instance.match = String.prototype.match;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.match(function(){return false;}())[0] !== "false") {
- $ERROR('#1: __instance = new Boolean; __instance.match = String.prototype.match; __instance.match(function(){return false;}())[0] === "false". Actual: '+__instance.match(function(){return false;}())[0] );
+if (__instance.match(function() {
+ return false;
+ }())[0] !== "false") {
+ $ERROR('#1: __instance = new Boolean; __instance.match = String.prototype.match; __instance.match(function(){return false;}())[0] === "false". Actual: ' + __instance.match(function() {
+ return false;
+ }())[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/match/this-val-obj.js b/test/built-ins/String/prototype/match/this-val-obj.js
index 62c178186..65b477392 100644
--- a/test/built-ins/String/prototype/match/this-val-obj.js
+++ b/test/built-ins/String/prototype/match/this-val-obj.js
@@ -14,7 +14,7 @@ __instance.match = String.prototype.match;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.match(true)[0] !== "true") {
- $ERROR('#1: __instance = new Object(true); __instance.match = String.prototype.match; __instance.match(true)[0] === "true". Actual: '+__instance.match(true)[0] );
+ $ERROR('#1: __instance = new Object(true); __instance.match = String.prototype.match; __instance.match(true)[0] === "true". Actual: ' + __instance.match(true)[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/normalize/return-normalized-string-from-coerced-form.js b/test/built-ins/String/prototype/normalize/return-normalized-string-from-coerced-form.js
index 81ca29036..1efb22b12 100644
--- a/test/built-ins/String/prototype/normalize/return-normalized-string-from-coerced-form.js
+++ b/test/built-ins/String/prototype/normalize/return-normalized-string-from-coerced-form.js
@@ -23,14 +23,18 @@ var s = '\u00C5\u2ADC\u0958\u2126\u0344';
var nfc = '\xC5\u2ADD\u0338\u0915\u093C\u03A9\u0308\u0301';
var nfd = 'A\u030A\u2ADD\u0338\u0915\u093C\u03A9\u0308\u0301';
var o = {
- toString: function() { return 'NFC'; }
+ toString: function() {
+ return 'NFC';
+ }
};
assert.sameValue(s.normalize(['NFC']), nfc, 'coerced array - NFC');
assert.sameValue(s.normalize(o), nfc, 'coerced object - NFC');
o = {
- toString: function() { return 'NFD'; }
+ toString: function() {
+ return 'NFD';
+ }
};
assert.sameValue(s.normalize(['NFD']), nfd, 'coerced array - NFD');
diff --git a/test/built-ins/String/prototype/padEnd/exception-fill-string-symbol.js b/test/built-ins/String/prototype/padEnd/exception-fill-string-symbol.js
index 1bd167844..96d9d2859 100644
--- a/test/built-ins/String/prototype/padEnd/exception-fill-string-symbol.js
+++ b/test/built-ins/String/prototype/padEnd/exception-fill-string-symbol.js
@@ -8,6 +8,6 @@ author: Jordan Harband
features: [Symbol]
---*/
-assert.throws(TypeError, function () {
- 'abc'.padEnd(10, Symbol());
+assert.throws(TypeError, function() {
+ 'abc'.padEnd(10, Symbol());
});
diff --git a/test/built-ins/String/prototype/padEnd/exception-not-object-coercible.js b/test/built-ins/String/prototype/padEnd/exception-not-object-coercible.js
index ef89429a2..7736d7ff0 100644
--- a/test/built-ins/String/prototype/padEnd/exception-not-object-coercible.js
+++ b/test/built-ins/String/prototype/padEnd/exception-not-object-coercible.js
@@ -9,20 +9,20 @@ description: >
author: Jordan Harband
---*/
-assert.throws(TypeError, function () {
- String.prototype.padEnd.call(null);
+assert.throws(TypeError, function() {
+ String.prototype.padEnd.call(null);
});
-assert.throws(TypeError, function () {
- String.prototype.padEnd.call(undefined);
+assert.throws(TypeError, function() {
+ String.prototype.padEnd.call(undefined);
});
var notCoercible = {
- toString: function () {
- throw new Test262Error('attempted toString');
- }
+ toString: function() {
+ throw new Test262Error('attempted toString');
+ }
};
-assert.throws(Test262Error, function () {
- String.prototype.padEnd.call(notCoercible);
+assert.throws(Test262Error, function() {
+ String.prototype.padEnd.call(notCoercible);
});
diff --git a/test/built-ins/String/prototype/padEnd/exception-symbol.js b/test/built-ins/String/prototype/padEnd/exception-symbol.js
index 949d4d927..2c4b5ff0c 100644
--- a/test/built-ins/String/prototype/padEnd/exception-symbol.js
+++ b/test/built-ins/String/prototype/padEnd/exception-symbol.js
@@ -8,6 +8,6 @@ author: Jordan Harband
features: [Symbol]
---*/
-assert.throws(TypeError, function () {
- String.prototype.padEnd.call(Symbol());
+assert.throws(TypeError, function() {
+ String.prototype.padEnd.call(Symbol());
});
diff --git a/test/built-ins/String/prototype/padEnd/function-name.js b/test/built-ins/String/prototype/padEnd/function-name.js
index 0b6b7db74..d37b167d9 100644
--- a/test/built-ins/String/prototype/padEnd/function-name.js
+++ b/test/built-ins/String/prototype/padEnd/function-name.js
@@ -9,9 +9,9 @@ includes: [propertyHelper.js]
---*/
assert.sameValue(
- String.prototype.padEnd.name,
- 'padEnd',
- 'Expected String#padEnd.name to be "padEnd"'
+ String.prototype.padEnd.name,
+ 'padEnd',
+ 'Expected String#padEnd.name to be "padEnd"'
);
verifyNotEnumerable(String.prototype.padEnd, 'name');
diff --git a/test/built-ins/String/prototype/padEnd/observable-operations.js b/test/built-ins/String/prototype/padEnd/observable-operations.js
index 38315b3c4..ebfe78c89 100644
--- a/test/built-ins/String/prototype/padEnd/observable-operations.js
+++ b/test/built-ins/String/prototype/padEnd/observable-operations.js
@@ -11,11 +11,11 @@ var log = "";
function createPrimitiveObserver(name, string, value) {
return {
- toString: function () {
+ toString: function() {
log += '|toString:' + name;
return string;
},
- valueOf: function () {
+ valueOf: function() {
log += '|valueOf:' + name;
return value;
}
@@ -33,10 +33,10 @@ var result = String.prototype.padEnd.call(receiver, maxLength, fillString);
assert.sameValue(result, 'abcdefdefde');
assert.sameValue(log, '|' + [
- 'toString:receiver',
- 'valueOf:receiver',
- 'valueOf:maxLength',
- 'toString:maxLength',
- 'toString:fillString',
- 'valueOf:fillString'
+ 'toString:receiver',
+ 'valueOf:receiver',
+ 'valueOf:maxLength',
+ 'toString:maxLength',
+ 'toString:fillString',
+ 'valueOf:fillString'
].join('|'), log);
diff --git a/test/built-ins/String/prototype/padStart/exception-fill-string-symbol.js b/test/built-ins/String/prototype/padStart/exception-fill-string-symbol.js
index 73f543544..fbcb05454 100644
--- a/test/built-ins/String/prototype/padStart/exception-fill-string-symbol.js
+++ b/test/built-ins/String/prototype/padStart/exception-fill-string-symbol.js
@@ -8,6 +8,6 @@ author: Jordan Harband
features: [Symbol]
---*/
-assert.throws(TypeError, function () {
- 'abc'.padStart(10, Symbol());
+assert.throws(TypeError, function() {
+ 'abc'.padStart(10, Symbol());
});
diff --git a/test/built-ins/String/prototype/padStart/exception-not-object-coercible.js b/test/built-ins/String/prototype/padStart/exception-not-object-coercible.js
index 7d08deae0..c6ea23939 100644
--- a/test/built-ins/String/prototype/padStart/exception-not-object-coercible.js
+++ b/test/built-ins/String/prototype/padStart/exception-not-object-coercible.js
@@ -9,20 +9,20 @@ description: >
author: Jordan Harband
---*/
-assert.throws(TypeError, function () {
- String.prototype.padStart.call(null);
+assert.throws(TypeError, function() {
+ String.prototype.padStart.call(null);
});
-assert.throws(TypeError, function () {
- String.prototype.padStart.call(undefined);
+assert.throws(TypeError, function() {
+ String.prototype.padStart.call(undefined);
});
var notCoercible = {
- toString: function () {
- throw new Test262Error('attempted toString');
- }
+ toString: function() {
+ throw new Test262Error('attempted toString');
+ }
};
-assert.throws(Test262Error, function () {
- String.prototype.padStart.call(notCoercible);
+assert.throws(Test262Error, function() {
+ String.prototype.padStart.call(notCoercible);
});
diff --git a/test/built-ins/String/prototype/padStart/exception-symbol.js b/test/built-ins/String/prototype/padStart/exception-symbol.js
index 66521f28c..9f85fe4f6 100644
--- a/test/built-ins/String/prototype/padStart/exception-symbol.js
+++ b/test/built-ins/String/prototype/padStart/exception-symbol.js
@@ -8,6 +8,6 @@ author: Jordan Harband
features: [Symbol]
---*/
-assert.throws(TypeError, function () {
- String.prototype.padStart.call(Symbol());
+assert.throws(TypeError, function() {
+ String.prototype.padStart.call(Symbol());
});
diff --git a/test/built-ins/String/prototype/padStart/function-name.js b/test/built-ins/String/prototype/padStart/function-name.js
index 0b63be0e4..824978a80 100644
--- a/test/built-ins/String/prototype/padStart/function-name.js
+++ b/test/built-ins/String/prototype/padStart/function-name.js
@@ -9,9 +9,9 @@ includes: [propertyHelper.js]
---*/
assert.sameValue(
- String.prototype.padStart.name,
- 'padStart',
- 'Expected String#padStart.name to be "padStart"'
+ String.prototype.padStart.name,
+ 'padStart',
+ 'Expected String#padStart.name to be "padStart"'
);
verifyNotEnumerable(String.prototype.padStart, 'name');
diff --git a/test/built-ins/String/prototype/padStart/observable-operations.js b/test/built-ins/String/prototype/padStart/observable-operations.js
index dfb9a0f26..260ecda04 100644
--- a/test/built-ins/String/prototype/padStart/observable-operations.js
+++ b/test/built-ins/String/prototype/padStart/observable-operations.js
@@ -11,11 +11,11 @@ var log = "";
function createPrimitiveObserver(name, string, value) {
return {
- toString: function () {
+ toString: function() {
log += '|toString:' + name;
return string;
},
- valueOf: function () {
+ valueOf: function() {
log += '|valueOf:' + name;
return value;
}
@@ -33,10 +33,10 @@ var result = String.prototype.padStart.call(receiver, maxLength, fillString);
assert.sameValue(result, 'defdefdeabc');
assert.sameValue(log, '|' + [
- 'toString:receiver',
- 'valueOf:receiver',
- 'valueOf:maxLength',
- 'toString:maxLength',
- 'toString:fillString',
- 'valueOf:fillString'
+ 'toString:receiver',
+ 'valueOf:receiver',
+ 'valueOf:maxLength',
+ 'toString:maxLength',
+ 'toString:fillString',
+ 'valueOf:fillString'
].join('|'), log);
diff --git a/test/built-ins/String/prototype/replace/15.5.4.11-1.js b/test/built-ins/String/prototype/replace/15.5.4.11-1.js
index 5cc4a8ce9..c59125079 100644
--- a/test/built-ins/String/prototype/replace/15.5.4.11-1.js
+++ b/test/built-ins/String/prototype/replace/15.5.4.11-1.js
@@ -10,13 +10,13 @@ flags: [noStrict]
---*/
var global = this;
- var retVal = 'x'.replace(/x/,
- function() {
- if (this===global) {
- return 'y';
- } else {
- return 'z';
- }
- });
+var retVal = 'x'.replace(/x/,
+ function() {
+ if (this === global) {
+ return 'y';
+ } else {
+ return 'z';
+ }
+ });
assert.sameValue(retVal, 'y', 'retVal');
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A10.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A10.js
index 76846ee1f..a733aa05a 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A10.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A10.js
@@ -13,19 +13,21 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.replace.hasOwnProperty('length'))) {
- $ERROR('#1: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.replace.hasOwnProperty('length'));
+ $ERROR('#1: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.replace.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
var __obj = String.prototype.replace.length;
-verifyNotWritable(String.prototype.replace, "length", null, function(){return "shifted";});
+verifyNotWritable(String.prototype.replace, "length", null, function() {
+ return "shifted";
+});
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.replace.length !== __obj) {
- $ERROR('#2: __obj = String.prototype.replace.length; String.prototype.replace.length = function(){return "shifted";}; String.prototype.replace.length === __obj. Actual: '+String.prototype.replace.length );
+ $ERROR('#2: __obj = String.prototype.replace.length; String.prototype.replace.length = function(){return "shifted";}; String.prototype.replace.length === __obj. Actual: ' + String.prototype.replace.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A11.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A11.js
index 5b9af5f11..78b3472ae 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A11.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A11.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.replace.length
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.replace.hasOwnProperty("length"))) {
- $ERROR('#1: String.prototype.replace.hasOwnProperty("length") return true. Actual: '+String.prototype.replace.hasOwnProperty("length"));
+ $ERROR('#1: String.prototype.replace.hasOwnProperty("length") return true. Actual: ' + String.prototype.replace.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -18,7 +18,7 @@ if (!(String.prototype.replace.hasOwnProperty("length"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.replace.length !== 2) {
- $ERROR('#2: String.prototype.replace.length === 2. Actual: '+String.prototype.replace.length );
+ $ERROR('#2: String.prototype.replace.length === 2. Actual: ' + String.prototype.replace.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A12.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A12.js
index 66ba29f7f..0dea5dd0f 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A12.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A12.js
@@ -17,7 +17,7 @@ var global = this;
}
if (this !== undefined) {
$ERROR('#2: replaceValue should be called with this===undefined. ' +
- 'Actual: ' + this);
+ 'Actual: ' + this);
}
return 'y';
});
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T1.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T1.js
index 0ccd9a781..1e8384155 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T1.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T1.js
@@ -14,7 +14,7 @@ __instance.replace = String.prototype.replace;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.replace(true, 1) !== "1") {
- $ERROR('#1: __instance = new Object(true); __instance.replace = String.prototype.replace; __instance.replace(true, 1) === "1". Actual: '+__instance.replace(true, 1) );
+ $ERROR('#1: __instance = new Object(true); __instance.replace = String.prototype.replace; __instance.replace(true, 1) === "1". Actual: ' + __instance.replace(true, 1));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T10.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T10.js
index 552c478ff..c044c8515 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T10.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T10.js
@@ -10,15 +10,23 @@ description: >
function
---*/
-var __obj = {toString:function(){return "\u0041B";}};
+var __obj = {
+ toString: function() {
+ return "\u0041B";
+ }
+};
var __str = "ABB\u0041BABAB";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- if (__str.replace(__obj, function(){return x;}) !== "undefinedBABABAB") {
- $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __str = "ABB\u0041BABAB"; replace(__obj, function(){return x;}) === "undefinedBABABAB". Actual: '+__str.replace(__obj, function(){return x;}) );
- }
+if (__str.replace(__obj, function() {
+ return x;
+ }) !== "undefinedBABABAB") {
+ $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __str = "ABB\u0041BABAB"; replace(__obj, function(){return x;}) === "undefinedBABABAB". Actual: ' + __str.replace(__obj, function() {
+ return x;
+ }));
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js
index e6da57621..9957654db 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js
@@ -10,19 +10,27 @@ description: >
function, that throw exception
---*/
-var __obj = {toString:function(){throw "insearchValue";}};
-var __obj2 = {toString:function(){throw "inreplaceValue";}};
+var __obj = {
+ toString: function() {
+ throw "insearchValue";
+ }
+};
+var __obj2 = {
+ toString: function() {
+ throw "inreplaceValue";
+ }
+};
var __str = "ABB\u0041BABAB";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __str.replace(__obj,__obj2);
- $ERROR('#1: "var x = __str.replace(__obj,__obj2)" lead to throwing exception');
- } catch (e) {
- if (e!=="insearchValue") {
- $ERROR('#1.1: Exception === "insearchValue". Actual: '+e);
- }
- }
+try {
+ var x = __str.replace(__obj, __obj2);
+ $ERROR('#1: "var x = __str.replace(__obj,__obj2)" lead to throwing exception');
+} catch (e) {
+ if (e !== "insearchValue") {
+ $ERROR('#1.1: Exception === "insearchValue". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js
index d56fe57fd..b7fb48f1f 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js
@@ -11,19 +11,30 @@ description: >
have overrided toString function, that throw exception
---*/
-var __obj = {toString:function(){return {};}, valueOf:function(){throw "insearchValue";}};
-var __obj2 = {toString:function(){throw "inreplaceValue";}};
+var __obj = {
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ throw "insearchValue";
+ }
+};
+var __obj2 = {
+ toString: function() {
+ throw "inreplaceValue";
+ }
+};
var __str = new String("ABB\u0041BABAB");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __str.replace(__obj, __obj2);
- $ERROR('#1: "var x = __str.replace(__obj,__obj2)" lead to throwing exception');
- } catch (e) {
- if (e!=="insearchValue") {
- $ERROR('#1.1: Exception === "insearchValue". Actual: '+e);
- }
- }
+try {
+ var x = __str.replace(__obj, __obj2);
+ $ERROR('#1: "var x = __str.replace(__obj,__obj2)" lead to throwing exception');
+} catch (e) {
+ if (e !== "insearchValue") {
+ $ERROR('#1.1: Exception === "insearchValue". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js
index 0a3b6feff..47f4cd103 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js
@@ -11,18 +11,29 @@ description: >
function, that throw exception
---*/
-var __obj = {toString:function(){return {};}, valueOf:function(){return 1;}};
-var __obj2 = {toString:function(){throw "inreplaceValue";}};
+var __obj = {
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ return 1;
+ }
+};
+var __obj2 = {
+ toString: function() {
+ throw "inreplaceValue";
+ }
+};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try {
- var x = "ABB\u0041BABAB\u0031BBAA".replace(__obj, __obj2);
- $ERROR('#1: var x = "ABB\\u0041BABAB\\u0031BBAA".replace(__obj,__obj2) lead to throwing exception');
+ var x = "ABB\u0041BABAB\u0031BBAA".replace(__obj, __obj2);
+ $ERROR('#1: var x = "ABB\\u0041BABAB\\u0031BBAA".replace(__obj,__obj2) lead to throwing exception');
} catch (e) {
- if (e!=="inreplaceValue") {
- $ERROR('#1.1: Exception === "inreplaceValue". Actual: '+e);
- }
+ if (e !== "inreplaceValue") {
+ $ERROR('#1.1: Exception === "inreplaceValue". Actual: ' + e);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T14.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T14.js
index e37a5abec..0068bb2ff 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T14.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T14.js
@@ -12,7 +12,7 @@ var __reg = new RegExp("77");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if ("ABB\u0041BABAB\u0037\u0037BBAA".replace(__reg, 1) !== "ABBABABAB\u0031BBAA") {
- $ERROR('#1: var __reg = new RegExp("77"); "ABB\\u0041BABAB\\u0037\\u0037BBAA".replace(__reg, 1) === "ABBABABAB\\u0031BBAA". Actual: '+("ABB\u0041BABAB\u0037\u0037BBAA".replace(__reg, 1)) );
+ $ERROR('#1: var __reg = new RegExp("77"); "ABB\\u0041BABAB\\u0037\\u0037BBAA".replace(__reg, 1) === "ABBABABAB\\u0031BBAA". Actual: ' + ("ABB\u0041BABAB\u0037\u0037BBAA".replace(__reg, 1)));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T15.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T15.js
index 6156897ad..f6a6011c9 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T15.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T15.js
@@ -7,7 +7,11 @@ es5id: 15.5.4.11_A1_T15
description: Instance is Object, searchValue is regular expression
---*/
-var __obj = {toString:function(){return /77/}};
+var __obj = {
+ toString: function() {
+ return /77/
+ }
+};
var __instance = new Object(1100.00777001);
@@ -17,10 +21,10 @@ Object.prototype.replace = String.prototype.replace;
//CHECK#1
try {
var x = __instance.replace(__obj, 1) === "1100.0017001";
- $ERROR('#1.0: x = __instance.replace(__obj, 1) === "1100.0017001" lead to throwing exception');
+ $ERROR('#1.0: x = __instance.replace(__obj, 1) === "1100.0017001" lead to throwing exception');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#1.1: Exception is instance of TypeError. Actual: '+e);
+ $ERROR('#1.1: Exception is instance of TypeError. Actual: ' + e);
}
}
//
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js
index e29fe2002..7954b1f9a 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js
@@ -13,7 +13,13 @@ var __instance = new Number(1100.00777001);
Number.prototype.replace = String.prototype.replace;
-var __obj = {toString:function(){return function(a1,a2,a3){return a2+"z"};}}
+var __obj = {
+ toString: function() {
+ return function(a1, a2, a3) {
+ return a2 + "z"
+ };
+ }
+}
//__obj = function(a1,a2,a3){return a2+"z"};
@@ -24,7 +30,7 @@ try {
$ERROR('#1.0: x = __instance.replace(__obj, 1) === "1100.007z7001" lead to throwing exception');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#1.1: Exception is instance of TypeError. Actual: '+e);
+ $ERROR('#1.1: Exception is instance of TypeError. Actual: ' + e);
}
}
//
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T17.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T17.js
index 979101a3a..89a3a605e 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T17.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T17.js
@@ -7,7 +7,7 @@ es5id: 15.5.4.11_A1_T17
description: Instance is String object, searchValue is regular expression
---*/
-var __re = new RegExp(x,"g");
+var __re = new RegExp(x, "g");
var __instance = String("asdf");
@@ -15,7 +15,7 @@ var __str = "1";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.replace(__re, __str) !== "1a1s1d1f1") {
- $ERROR('#1: var x; var __re = new RegExp(x,"g"); __instance = String("asdf"); __str = "1"; __instance.replace(__re, __str) === "1a1s1d1f1". Actual: '+__instance.replace(__re, __str) );
+ $ERROR('#1: var x; var __re = new RegExp(x,"g"); __instance = String("asdf"); __str = "1"; __instance.replace(__re, __str) === "1a1s1d1f1". Actual: ' + __instance.replace(__re, __str));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T2.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T2.js
index b8c56f315..342007437 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T2.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T2.js
@@ -15,8 +15,12 @@ __instance.replace = String.prototype.replace;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.replace(function(){return false;}(),x) !== "undefined") {
- $ERROR('#1: var x; __instance = new Boolean; __instance.replace = String.prototype.replace; __instance.replace(function(){return false;}(),x) === "undefined". Actual: '+__instance.replace(function(){return false;}(),x) );
+if (__instance.replace(function() {
+ return false;
+ }(), x) !== "undefined") {
+ $ERROR('#1: var x; __instance = new Boolean; __instance.replace = String.prototype.replace; __instance.replace(function(){return false;}(),x) === "undefined". Actual: ' + __instance.replace(function() {
+ return false;
+ }(), x));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js
index e38a39444..f647a286e 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js
@@ -11,8 +11,16 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (function(){return "gnulluna"}().replace(null,function(a1,a2,a3){return a2+"";}) !== "g1una") {
- $ERROR('#1: function(){return "gnulluna"}().replace(null,function(a1,a2,a3){return a2+"";}) === "g1una". Actual: '+function(){return "gnulluna"}().replace(null,function(a1,a2,a3){return a2+"";}) );
+if (function() {
+ return "gnulluna"
+ }().replace(null, function(a1, a2, a3) {
+ return a2 + "";
+ }) !== "g1una") {
+ $ERROR('#1: function(){return "gnulluna"}().replace(null,function(a1,a2,a3){return a2+"";}) === "g1una". Actual: ' + function() {
+ return "gnulluna"
+ }().replace(null, function(a1, a2, a3) {
+ return a2 + "";
+ }));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js
index cbd9c74fe..1b285d190 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js
@@ -11,8 +11,12 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (function(){return "gnulluna"}().replace(null, Function()) !== "gundefineduna") {
- $ERROR('#1: function(){return "gnulluna"}().replace(null, Function()) === "gundefineduna". Actual: '+function(){return "gnulluna"}().replace(null, Function()) );
+if (function() {
+ return "gnulluna"
+ }().replace(null, Function()) !== "gundefineduna") {
+ $ERROR('#1: function(){return "gnulluna"}().replace(null, Function()) === "gundefineduna". Actual: ' + function() {
+ return "gnulluna"
+ }().replace(null, Function()));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T6.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T6.js
index b593f4f93..4bb87896c 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T6.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T6.js
@@ -12,8 +12,8 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (new String("undefined").replace(x,Function("return arguments[1]+42;")) !== "42") {
- $ERROR('#1: var x; new String("undefined").replace(x,Function("return arguments[1]+42;")) === "42". Actual: '+new String("undefined").replace(x,Function("return arguments[1]+42;")) );
+if (new String("undefined").replace(x, Function("return arguments[1]+42;")) !== "42") {
+ $ERROR('#1: var x; new String("undefined").replace(x,Function("return arguments[1]+42;")) === "42". Actual: ' + new String("undefined").replace(x, Function("return arguments[1]+42;")));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T7.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T7.js
index 8c2ec1311..aebeaffc2 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T7.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T7.js
@@ -11,8 +11,8 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (String(void 0).replace("e",undefined) !== "undundefinedfined") {
- $ERROR('#1: String(void 0).replace("e",undefined) === "undundefinedfined". Actual: '+String(void 0).replace("e",undefined) );
+if (String(void 0).replace("e", undefined) !== "undundefinedfined") {
+ $ERROR('#1: String(void 0).replace("e",undefined) === "undundefinedfined". Actual: ' + String(void 0).replace("e", undefined));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T8.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T8.js
index 81c9a9c4a..24bfc5d14 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T8.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T8.js
@@ -9,12 +9,14 @@ description: >
expression and void 0 arguments of String object
---*/
-var __obj = {toString:function(){}};
+var __obj = {
+ toString: function() {}
+};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (String(__obj).replace(/e/g,void 0) !== "undundefinedfinundefinedd") {
- $ERROR('#1: __obj = {toString:function(){}}; String(__obj).replace(/e/g,void 0) === "undundefinedfinundefinedd". Actual: '+String(__obj).replace(/e/g,void 0) );
+if (String(__obj).replace(/e/g, void 0) !== "undundefinedfinundefinedd") {
+ $ERROR('#1: __obj = {toString:function(){}}; String(__obj).replace(/e/g,void 0) === "undundefinedfinundefinedd". Actual: ' + String(__obj).replace(/e/g, void 0));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js
index 9c4ebe9e2..950aa347a 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js
@@ -10,16 +10,18 @@ description: >
---*/
var __obj = {
- valueOf:function(){},
- toString:void 0
+ valueOf: function() {},
+ toString: void 0
};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (new String(__obj).replace(function(){}(),__func) !== "undefined0undefined") {
- $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; function __func(a1,a2,a3){return a1+a2+a3;}; new String(__obj).replace(function(){}(),__func) === "undefined0undefined". Actual: '+new String(__obj).replace(function(){}(),__func) );
+if (new String(__obj).replace(function() {}(), __func) !== "undefined0undefined") {
+ $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; function __func(a1,a2,a3){return a1+a2+a3;}; new String(__obj).replace(function(){}(),__func) === "undefined0undefined". Actual: ' + new String(__obj).replace(function() {}(), __func));
}
//
//////////////////////////////////////////////////////////////////////////////
-function __func(a1,a2,a3){return a1+a2+a3;};
+function __func(a1, a2, a3) {
+ return a1 + a2 + a3;
+};
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T1.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T1.js
index faf12bdc5..14975453a 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T1.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T1.js
@@ -16,8 +16,8 @@ var __re = /sh/g;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re,'sch')!=='She sells seaschells by the seaschore.') {
- $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,\'sch\')===\'She sells seaschells by the seaschore.\'. Actual: '+__str.replace(__re,'sch'));
+if (__str.replace(__re, 'sch') !== 'She sells seaschells by the seaschore.') {
+ $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,\'sch\')===\'She sells seaschells by the seaschore.\'. Actual: ' + __str.replace(__re, 'sch'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T10.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T10.js
index aabe0d9ae..0a8d22f4c 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T10.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T10.js
@@ -14,8 +14,8 @@ var __re = /sh/;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re, "$'" + 'sch')!=='She sells seaells by the seashore.schells by the seashore.') {
- $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$\'" + \'sch\')===\'She sells seaells by the seashore.schells by the seashore.\'. Actual: '+__str.replace(__re, "$'" + 'sch'));
+if (__str.replace(__re, "$'" + 'sch') !== 'She sells seaells by the seashore.schells by the seashore.') {
+ $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$\'" + \'sch\')===\'She sells seaells by the seashore.schells by the seashore.\'. Actual: ' + __str.replace(__re, "$'" + 'sch'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T2.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T2.js
index b5290edf2..3c4026889 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T2.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T2.js
@@ -14,8 +14,8 @@ var __re = /sh/g;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re,"$$" + 'sch')!=='She sells sea$schells by the sea$schore.') {
- $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,"$$" + \'sch\')===\'She sells sea$schells by the sea$schore.\'. Actual: '+__str.replace(__re,"$$" + 'sch'));
+if (__str.replace(__re, "$$" + 'sch') !== 'She sells sea$schells by the sea$schore.') {
+ $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,"$$" + \'sch\')===\'She sells sea$schells by the sea$schore.\'. Actual: ' + __str.replace(__re, "$$" + 'sch'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T3.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T3.js
index ca30baccb..231fe1bca 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T3.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T3.js
@@ -14,8 +14,8 @@ var __re = /sh/g;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re,"$&" + 'sch')!=='She sells seashschells by the seashschore.') {
- $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,"$&" + \'sch\')===\'She sells seashschells by the seashschore.\'. Actual: '+__str.replace(__re,"$&" + 'sch'));
+if (__str.replace(__re, "$&" + 'sch') !== 'She sells seashschells by the seashschore.') {
+ $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,"$&" + \'sch\')===\'She sells seashschells by the seashschore.\'. Actual: ' + __str.replace(__re, "$&" + 'sch'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T4.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T4.js
index 3d6e58a3b..53b4143d0 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T4.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T4.js
@@ -14,8 +14,8 @@ var __re = /sh/g;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re, "$`" + 'sch')!=='She sells seaShe sells seaschells by the seaShe sells seashells by the seaschore.') {
- $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re, "$`" + \'sch\')===\'She sells seaShe sells seaschells by the seaShe sells seashells by the seaschore.\'. Actual: '+__str.replace(__re, "$`" + 'sch'));
+if (__str.replace(__re, "$`" + 'sch') !== 'She sells seaShe sells seaschells by the seaShe sells seashells by the seaschore.') {
+ $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re, "$`" + \'sch\')===\'She sells seaShe sells seaschells by the seaShe sells seashells by the seaschore.\'. Actual: ' + __str.replace(__re, "$`" + 'sch'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T5.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T5.js
index a3c907e2b..734dcb247 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T5.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T5.js
@@ -14,8 +14,8 @@ var __re = /sh/g;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re, "$'" + 'sch')!=='She sells seaells by the seashore.schells by the seaore.schore.') {
- $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re, "$\'" + \'sch\')===\'She sells seaells by the seashore.schells by the seaore.schore.\'. Actual: '+__str.replace(__re, "$'" + 'sch'));
+if (__str.replace(__re, "$'" + 'sch') !== 'She sells seaells by the seashore.schells by the seaore.schore.') {
+ $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re, "$\'" + \'sch\')===\'She sells seaells by the seashore.schells by the seaore.schore.\'. Actual: ' + __str.replace(__re, "$'" + 'sch'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T6.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T6.js
index c0811cbee..3ba195faf 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T6.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T6.js
@@ -14,8 +14,8 @@ var __re = /sh/;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re, 'sch')!=='She sells seaschells by the seashore.') {
- $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, \'sch\')===\'She sells seaschells by the seashore.\'. Actual: '+__str.replace(__re, 'sch'));
+if (__str.replace(__re, 'sch') !== 'She sells seaschells by the seashore.') {
+ $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, \'sch\')===\'She sells seaschells by the seashore.\'. Actual: ' + __str.replace(__re, 'sch'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T7.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T7.js
index 327071a44..3c475e5f1 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T7.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T7.js
@@ -14,8 +14,8 @@ var __re = /sh/;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re, "$$" + 'sch')!=='She sells sea$schells by the seashore.') {
- $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$$" + \'sch\')===\'She sells sea$schells by the seashore.\'. Actual: '+__str.replace(__re, "$$" + 'sch'));
+if (__str.replace(__re, "$$" + 'sch') !== 'She sells sea$schells by the seashore.') {
+ $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$$" + \'sch\')===\'She sells sea$schells by the seashore.\'. Actual: ' + __str.replace(__re, "$$" + 'sch'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js
index 45c09ddfd..38accef87 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js
@@ -14,8 +14,8 @@ var __re = /sh/;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re, "$&" + 'sch')!=='She sells seashschells by the seashore.') {
- $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$&" + \'sch\')===\'She sells seashschells by the seashore.\'. Actual: '+__str.replace(__re, "$&" + 'sch'));
+if (__str.replace(__re, "$&" + 'sch') !== 'She sells seashschells by the seashore.') {
+ $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$&" + \'sch\')===\'She sells seashschells by the seashore.\'. Actual: ' + __str.replace(__re, "$&" + 'sch'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T9.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T9.js
index 946f10372..175a4df67 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T9.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T9.js
@@ -14,8 +14,8 @@ var __re = /sh/;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re, "$`" + 'sch')!=='She sells seaShe sells seaschells by the seashore.') {
- $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$`" + \'sch\')===\'She sells seaShe sells seaschells by the seashore.\'. Actual: '+__str.replace(__re, "$`" + 'sch'));
+if (__str.replace(__re, "$`" + 'sch') !== 'She sells seaShe sells seaschells by the seashore.') {
+ $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$`" + \'sch\')===\'She sells seaShe sells seaschells by the seashore.\'. Actual: ' + __str.replace(__re, "$`" + 'sch'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T1.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T1.js
index 07cc9cc72..2bd1e5d2d 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T1.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T1.js
@@ -12,8 +12,8 @@ var __re = /(uid=)(\d+)/;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re, "$11" + 15)!=='uid=115') {
- $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + 15)===\'uid=115\'. Actual: '+__str.replace(__re, "$11" + 15));
+if (__str.replace(__re, "$11" + 15) !== 'uid=115') {
+ $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + 15)===\'uid=115\'. Actual: ' + __str.replace(__re, "$11" + 15));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T2.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T2.js
index 103dc9ec3..10b7df2c5 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T2.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T2.js
@@ -12,8 +12,8 @@ var __re = /(uid=)(\d+)/;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re, "$11" + '15')!=='uid=115') {
- $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + \'15\')===\'uid=115\'. Actual: '+__str.replace(__re, "$11" + '15'));
+if (__str.replace(__re, "$11" + '15') !== 'uid=115') {
+ $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + \'15\')===\'uid=115\'. Actual: ' + __str.replace(__re, "$11" + '15'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T3.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T3.js
index 3b1a30458..83060fd58 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T3.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T3.js
@@ -12,8 +12,8 @@ var __re = /(uid=)(\d+)/;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__re, "$11" + 'A15')!=='uid=1A15' ) {
- $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + \'A15\')===\'uid=1A15\' . Actual: '+__str.replace(__re, "$11" + 'A15'));
+if (__str.replace(__re, "$11" + 'A15') !== 'uid=1A15') {
+ $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + \'A15\')===\'uid=1A15\' . Actual: ' + __str.replace(__re, "$11" + 'A15'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T1.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T1.js
index e695fe572..99a1b6f3a 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T1.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T1.js
@@ -12,12 +12,12 @@ var __pattern = /([a-z]+)([0-9]+)/;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__pattern, __replFN)!=='12abc def34') {
- $ERROR('#1: var __str = "abc12 def34"; var __pattern = /([a-z]+)([0-9]+)/; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12abc def34\'. Actual: '+__str.replace(__pattern, __replFN));
+if (__str.replace(__pattern, __replFN) !== '12abc def34') {
+ $ERROR('#1: var __str = "abc12 def34"; var __pattern = /([a-z]+)([0-9]+)/; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12abc def34\'. Actual: ' + __str.replace(__pattern, __replFN));
}
//
//////////////////////////////////////////////////////////////////////////////
-
+
function __replFN() {
- return arguments[2] + arguments[1];
+ return arguments[2] + arguments[1];
}
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T2.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T2.js
index 141966c06..83489c51d 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T2.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T2.js
@@ -12,12 +12,12 @@ var __pattern = /([a-z]+)([0-9]+)/g;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__pattern, __replFN)!=='12abc 34def') {
- $ERROR('#1: var __str = "abc12 def34"; var __pattern = /([a-z]+)([0-9]+)/g; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12abc 34def\'. Actual: '+__str.replace(__pattern, __replFN));
+if (__str.replace(__pattern, __replFN) !== '12abc 34def') {
+ $ERROR('#1: var __str = "abc12 def34"; var __pattern = /([a-z]+)([0-9]+)/g; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12abc 34def\'. Actual: ' + __str.replace(__pattern, __replFN));
}
//
//////////////////////////////////////////////////////////////////////////////
-
+
function __replFN() {
- return arguments[2] + arguments[1];
+ return arguments[2] + arguments[1];
}
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T3.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T3.js
index fcd736f85..e60121203 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T3.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T3.js
@@ -12,12 +12,12 @@ var __pattern = /([a-z]+)([0-9]+)/i;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__pattern, __replFN)!=='12aBc def34') {
- $ERROR('#1: var __str = "aBc12 def34"; var __pattern = /([a-z]+)([0-9]+)/i; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12aBc def34\'. Actual: '+__str.replace(__pattern, __replFN));
+if (__str.replace(__pattern, __replFN) !== '12aBc def34') {
+ $ERROR('#1: var __str = "aBc12 def34"; var __pattern = /([a-z]+)([0-9]+)/i; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12aBc def34\'. Actual: ' + __str.replace(__pattern, __replFN));
}
//
//////////////////////////////////////////////////////////////////////////////
-
+
function __replFN() {
- return arguments[2] + arguments[1];
+ return arguments[2] + arguments[1];
}
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T4.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T4.js
index b272fa8d7..199688c6c 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T4.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T4.js
@@ -12,12 +12,12 @@ var __pattern = /([a-z]+)([0-9]+)/ig;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__pattern, __replFN)!=='12aBc 34dEf') {
- $ERROR('#1: var __str = "aBc12 dEf34"; var __pattern = /([a-z]+)([0-9]+)/ig; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12aBc 34dEf\'. Actual: '+__str.replace(__pattern, __replFN));
+if (__str.replace(__pattern, __replFN) !== '12aBc 34dEf') {
+ $ERROR('#1: var __str = "aBc12 dEf34"; var __pattern = /([a-z]+)([0-9]+)/ig; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12aBc 34dEf\'. Actual: ' + __str.replace(__pattern, __replFN));
}
//
//////////////////////////////////////////////////////////////////////////////
-
+
function __replFN() {
- return arguments[2] + arguments[1];
+ return arguments[2] + arguments[1];
}
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A5_T1.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A5_T1.js
index 22128bc6e..37a6bb1fb 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A5_T1.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A5_T1.js
@@ -13,8 +13,8 @@ var __repl = "$1";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__str.replace(__pattern, __repl)!=='aaaaa') {
- $ERROR('#1: var __str = "aaaaaaaaaa,aaaaaaaaaaaaaaa"; var __pattern = /^(a+)\\1*,\\1+$/; var __repl = "$1"; __str.replace(__pattern, __repl)===\'aaaaa\'. Actual: '+__str.replace(__pattern, __repl));
+if (__str.replace(__pattern, __repl) !== 'aaaaa') {
+ $ERROR('#1: var __str = "aaaaaaaaaa,aaaaaaaaaaaaaaa"; var __pattern = /^(a+)\\1*,\\1+$/; var __repl = "$1"; __str.replace(__pattern, __repl)===\'aaaaa\'. Actual: ' + __str.replace(__pattern, __repl));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A6.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A6.js
index 5ba2416ab..f71770ae6 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A6.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A6.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.replace.prototype;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.prototype.replace.prototype !== undefined) {
- $ERROR('#1: String.prototype.replace.prototype === undefined. Actual: '+String.prototype.replace.prototype );
+ $ERROR('#1: String.prototype.replace.prototype === undefined. Actual: ' + String.prototype.replace.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A7.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A7.js
index 848f6bd1e..e88a11ca1 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A7.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A7.js
@@ -13,5 +13,5 @@ try {
var __instance = new __FACTORY;
$ERROR('#1: __FACTORY = String.prototype.replace; "__instance = new __FACTORY" lead to throwing exception');
} catch (e) {
- if (e instanceof Test262Error) throw e;
+ if (e instanceof Test262Error) throw e;
}
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A8.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A8.js
index 3ad4ba953..536529b43 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A8.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A8.js
@@ -12,7 +12,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.replace.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.replace.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.replace.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,14 +28,14 @@ if (String.prototype.replace.propertyIsEnumerable('length')) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#2
-var count=0;
+var count = 0;
-for (var p in String.prototype.replace){
- if (p==="length") count++;
+for (var p in String.prototype.replace) {
+ if (p === "length") count++;
}
if (count !== 0) {
- $ERROR('#2: count=0; for (p in String.prototype.replace){if (p==="length") count++;} count === 0. Actual: '+count );
+ $ERROR('#2: count=0; for (p in String.prototype.replace){if (p==="length") count++;} count === 0. Actual: ' + count);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A9.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A9.js
index 55b188a5e..0d198db9e 100644
--- a/test/built-ins/String/prototype/replace/S15.5.4.11_A9.js
+++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A9.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.replace.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.replace.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.replace.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (!delete String.prototype.replace.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.replace.hasOwnProperty('length')) {
- $ERROR('#2: delete String.prototype.replace.length; String.prototype.replace.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.replace.hasOwnProperty('length'));
+ $ERROR('#2: delete String.prototype.replace.length; String.prototype.replace.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.replace.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A10.js b/test/built-ins/String/prototype/search/S15.5.4.12_A10.js
index 9b1186132..3a7a27f67 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A10.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A10.js
@@ -13,19 +13,21 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.search.hasOwnProperty('length'))) {
- $ERROR('#1: String.prototype.search.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.search.hasOwnProperty('length'));
+ $ERROR('#1: String.prototype.search.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.search.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
var __obj = String.prototype.search.length;
-verifyNotWritable(String.prototype.search, "length", null, function(){return "shifted";});
+verifyNotWritable(String.prototype.search, "length", null, function() {
+ return "shifted";
+});
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.search.length !== __obj) {
- $ERROR('#2: __obj = String.prototype.search.length; String.prototype.search.length = function(){return "shifted";}; String.prototype.search.length === __obj. Actual: '+String.prototype.search.length );
+ $ERROR('#2: __obj = String.prototype.search.length; String.prototype.search.length = function(){return "shifted";}; String.prototype.search.length === __obj. Actual: ' + String.prototype.search.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A11.js b/test/built-ins/String/prototype/search/S15.5.4.12_A11.js
index 3e71c196d..13e25ac57 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A11.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A11.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.search.length
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.search.hasOwnProperty("length"))) {
- $ERROR('#1: String.prototype.search.hasOwnProperty("length") return true. Actual: '+String.prototype.search.hasOwnProperty("length"));
+ $ERROR('#1: String.prototype.search.hasOwnProperty("length") return true. Actual: ' + String.prototype.search.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -18,7 +18,7 @@ if (!(String.prototype.search.hasOwnProperty("length"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.search.length !== 1) {
- $ERROR('#2: String.prototype.search.length === 1. Actual: '+String.prototype.search.length );
+ $ERROR('#2: String.prototype.search.length === 1. Actual: ' + String.prototype.search.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T1.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T1.js
index 1813eaac2..2ef942e49 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T1.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T1.js
@@ -14,7 +14,7 @@ __instance.search = String.prototype.search;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.search(true) !== 0) {
- $ERROR('#1: __instance = new Object(true); __instance.search = String.prototype.search; __instance.search(true) === 0. Actual: '+__instance.search(true) );
+ $ERROR('#1: __instance = new Object(true); __instance.search = String.prototype.search; __instance.search(true) === 0. Actual: ' + __instance.search(true));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T10.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T10.js
index 8e6a7efc5..02515864e 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T10.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T10.js
@@ -9,14 +9,18 @@ description: >
toString function
---*/
-var __obj = {toString:function(){return "\u0041B";}};
+var __obj = {
+ toString: function() {
+ return "\u0041B";
+ }
+};
var __str = "ssABB\u0041BABAB";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- if (__str.search(__obj) !==2) {
- $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __str = "ssABB\u0041BABAB"; __str.search(__obj) ===2. Actual: '+__str.search(__obj) );
- }
+if (__str.search(__obj) !== 2) {
+ $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __str = "ssABB\u0041BABAB"; __str.search(__obj) ===2. Actual: ' + __str.search(__obj));
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js
index 8367e9ae3..dec9e127e 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js
@@ -9,18 +9,22 @@ description: >
toString function, that throw exception
---*/
-var __obj = {toString:function(){throw "intostr";}}
+var __obj = {
+ toString: function() {
+ throw "intostr";
+ }
+}
var __str = "ABB\u0041BABAB";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __str.search(__obj);
- $ERROR('#1: var x = __str.search(__obj) lead to throwing exception');
- } catch (e) {
- if (e!=="intostr") {
- $ERROR('#1.1: Exception === "intostr". Actual: '+e);
- }
- }
+try {
+ var x = __str.search(__obj);
+ $ERROR('#1: var x = __str.search(__obj) lead to throwing exception');
+} catch (e) {
+ if (e !== "intostr") {
+ $ERROR('#1.1: Exception === "intostr". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T12.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T12.js
index b53f64452..09d8fcee6 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T12.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T12.js
@@ -9,18 +9,25 @@ description: >
toString and valueOf functions, valueOf throw exception
---*/
-var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}}
+var __obj = {
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ throw "intostr";
+ }
+}
var __str = new String("ABB\u0041BABAB");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __str.search(__obj);
- $ERROR('#1: var x = __str.search(__obj) lead to throwing exception');
- } catch (e) {
- if (e!=="intostr") {
- $ERROR('#1.1: Exception === "intostr". Actual: '+e);
- }
- }
+try {
+ var x = __str.search(__obj);
+ $ERROR('#1: var x = __str.search(__obj) lead to throwing exception');
+} catch (e) {
+ if (e !== "intostr") {
+ $ERROR('#1.1: Exception === "intostr". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T13.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T13.js
index edec536de..92c121f58 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T13.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T13.js
@@ -9,12 +9,19 @@ description: >
toString and valueOf functions
---*/
-var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}
+var __obj = {
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ return 1;
+ }
+}
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if ("ABB\u0041B\u0031ABAB\u0031BBAA".search(__obj) !==5) {
- $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".search(__obj) ===5. Actual: '+("ABB\u0041B\u0031ABAB\u0031BBAA".search(__obj)) );
+if ("ABB\u0041B\u0031ABAB\u0031BBAA".search(__obj) !== 5) {
+ $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".search(__obj) ===5. Actual: ' + ("ABB\u0041B\u0031ABAB\u0031BBAA".search(__obj)));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T14.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T14.js
index a8245be47..8a12d8fa8 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T14.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T14.js
@@ -12,7 +12,7 @@ var __reg = new RegExp("77");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if ("ABB\u0041BABAB\u0037\u0037BBAA".search(__reg) !== 9) {
- $ERROR('#1: var __reg = new RegExp("77"); "ABB\\u0041BABAB\\u0037\\u0037BBAA".search(__reg) === 9. Actual: '+("ABB\u0041BABAB\u0037\u0037BBAA".search(__reg)) );
+ $ERROR('#1: var __reg = new RegExp("77"); "ABB\\u0041BABAB\\u0037\\u0037BBAA".search(__reg) === 9. Actual: ' + ("ABB\u0041BABAB\u0037\u0037BBAA".search(__reg)));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T2.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T2.js
index 61d0ec886..103332f71 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T2.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T2.js
@@ -13,8 +13,12 @@ __instance.search = String.prototype.search;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.search(function(){return false;}()) !== 0) {
- $ERROR('#1: __instance = new Boolean; __instance.search = String.prototype.search; __instance.search(function(){return false;}()) === 0. Actual: '+__instance.search(function(){return false;}()) );
+if (__instance.search(function() {
+ return false;
+ }()) !== 0) {
+ $ERROR('#1: __instance = new Boolean; __instance.search = String.prototype.search; __instance.search(function(){return false;}()) === 0. Actual: ' + __instance.search(function() {
+ return false;
+ }()));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T4.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T4.js
index c3e0aa669..d7245d11e 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T4.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T4.js
@@ -11,11 +11,11 @@ description: Call search (regexp) without arguments
//CHECK#1
//since ToString() evaluates to "" search() evaluates to search("")
if ("".search() !== 0) {
- $ERROR('#1: "".search() === 0. Actual: '+("".search()) );
+ $ERROR('#1: "".search() === 0. Actual: ' + ("".search()));
}
if ("--undefined--".search() != 0) {
- $ERROR('#1: "--undefined--".search() === 0. Actual: '+("--undefined--".search()) );
+ $ERROR('#1: "--undefined--".search() === 0. Actual: ' + ("--undefined--".search()));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T5.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T5.js
index a1407792f..297c1719d 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T5.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T5.js
@@ -10,8 +10,12 @@ description: Argument is null, and instance is function call, that return string
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToString(null) evaluates to "null" search(null) evaluates to search("null")
-if (function(){return "gnulluna"}().search(null) !== 1) {
- $ERROR('#1: function(){return "gnulluna"}().search(null) === 1. Actual: '+function(){return "gnulluna"}().search(null) );
+if (function() {
+ return "gnulluna"
+ }().search(null) !== 1) {
+ $ERROR('#1: function(){return "gnulluna"}().search(null) === 1. Actual: ' + function() {
+ return "gnulluna"
+ }().search(null));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T6.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T6.js
index 074d2d68f..f2b4f7654 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T6.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T6.js
@@ -11,7 +11,7 @@ description: Argument is x, and instance is new String, x is undefined variable
//CHECK#1
//since ToString(undefined) evaluates to "undefined" search(undefined) evaluates to search("undefined")
if (new String("undefined").search(x) !== 0) {
- $ERROR('#1: var x; new String("undefined").search(x) === 0. Actual: '+new String("undefined").search(x) );
+ $ERROR('#1: var x; new String("undefined").search(x) === 0. Actual: ' + new String("undefined").search(x));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T7.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T7.js
index dc79e77e2..f4512a691 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T7.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T7.js
@@ -11,7 +11,7 @@ description: Argument is undefined, and instance is new String
//CHECK#1
//since ToString(undefined) evaluates to "undefined" search(undefined) evaluates to search("undefined")
if (String("undefined").search(undefined) !== 0) {
- $ERROR('#1: String("undefined").search(undefined) === 0. Actual: '+String("undefined").search(undefined) );
+ $ERROR('#1: String("undefined").search(undefined) === 0. Actual: ' + String("undefined").search(undefined));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T8.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T8.js
index 9686f918f..77a619c6a 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T8.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T8.js
@@ -9,13 +9,15 @@ description: >
toString function
---*/
-var __obj = {toString:function(){}};
+var __obj = {
+ toString: function() {}
+};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToString(void 0) evaluates to "undefined" search(void 0) evaluates to search("undefined")
if (String(__obj).search(void 0) !== 0) {
- $ERROR('#1: __obj = {toString:function(){}}; String(__obj).search(void 0) === 0. Actual: '+String(__obj).search(void 0) );
+ $ERROR('#1: __obj = {toString:function(){}}; String(__obj).search(void 0) === 0. Actual: ' + String(__obj).search(void 0));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T9.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T9.js
index d94e1307f..000e2f3d7 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T9.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T9.js
@@ -10,15 +10,15 @@ description: >
---*/
var __obj = {
- valueOf:function(){},
- toString:void 0
+ valueOf: function() {},
+ toString: void 0
};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToString(undefined) evaluates to "undefined" search(undefined) evaluates to search("undefined")
-if (new String(__obj).search(function(){}()) !== 0) {
- $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).search(function(){}()) === 0. Actual: '+new String(__obj).search(function(){}()) );
+if (new String(__obj).search(function() {}()) !== 0) {
+ $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).search(function(){}()) === 0. Actual: ' + new String(__obj).search(function() {}()));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T1.js b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T1.js
index 67cd389fc..3e7755ee4 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T1.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T1.js
@@ -11,8 +11,8 @@ var aString = new String("test string");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (aString.search("string")!== 5) {
- $ERROR('#1: var aString = new String("test string"); aString.search("string")=== 5. Actual: '+aString.search("string"));
+if (aString.search("string") !== 5) {
+ $ERROR('#1: var aString = new String("test string"); aString.search("string")=== 5. Actual: ' + aString.search("string"));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T2.js b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T2.js
index 31a6f4123..5e1946c29 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T2.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T2.js
@@ -11,8 +11,8 @@ var aString = new String("test string");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (aString.search("String")!== -1) {
- $ERROR('#1: var aString = new String("test string"); aString.search("String")=== -1. Actual: '+aString.search("String"));
+if (aString.search("String") !== -1) {
+ $ERROR('#1: var aString = new String("test string"); aString.search("String")=== -1. Actual: ' + aString.search("String"));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T3.js b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T3.js
index 221a60249..6d9640d7b 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T3.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T3.js
@@ -11,8 +11,8 @@ var aString = new String("test string");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (aString.search(/String/i)!== 5) {
- $ERROR('#1: var aString = new String("test string"); aString.search(/String/i)=== 5. Actual: '+aString.search(/String/i));
+if (aString.search(/String/i) !== 5) {
+ $ERROR('#1: var aString = new String("test string"); aString.search(/String/i)=== 5. Actual: ' + aString.search(/String/i));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T4.js b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T4.js
index 2edc13e4a..98e9ccd3f 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T4.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T4.js
@@ -14,8 +14,8 @@ var regExp = /Four/;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (bString.search(regExp)!== -1) {
- $ERROR('#1: var bString = new String("one two three four five"); var regExp = /Four/; bString.search(regExp)=== -1. Actual: '+bString.search(regExp));
+if (bString.search(regExp) !== -1) {
+ $ERROR('#1: var bString = new String("one two three four five"); var regExp = /Four/; bString.search(regExp)=== -1. Actual: ' + bString.search(regExp));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T5.js b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T5.js
index 40b750cc8..a2c4d80fd 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T5.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T5.js
@@ -14,8 +14,8 @@ var regExp = /four/;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (bString.search(regExp)!== 14) {
- $ERROR('#1: var bString = new String("one two three four five"); var regExp = /four/; bString.search(regExp)=== 14. Actual: '+bString.search(regExp));
+if (bString.search(regExp) !== 14) {
+ $ERROR('#1: var bString = new String("one two three four five"); var regExp = /four/; bString.search(regExp)=== 14. Actual: ' + bString.search(regExp));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T6.js b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T6.js
index b6787c22c..3acba0c77 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T6.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T6.js
@@ -11,8 +11,8 @@ var aString = new String("test string");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (aString.search("notexist")!== -1) {
- $ERROR('#1: var aString = new String("test string"); aString.search("notexist")=== -1. Actual: '+aString.search("notexist"));
+if (aString.search("notexist") !== -1) {
+ $ERROR('#1: var aString = new String("test string"); aString.search("notexist")=== -1. Actual: ' + aString.search("notexist"));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T7.js b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T7.js
index 4dad5ae95..7581a0a85 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T7.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T7.js
@@ -11,8 +11,8 @@ var aString = new String("test string probe");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (aString.search("string pro")!== 5) {
- $ERROR('#1: var aString = new String("test string probe"); aString.search("string pro")=== 5. Actual: '+aString.search("string pro"));
+if (aString.search("string pro") !== 5) {
+ $ERROR('#1: var aString = new String("test string probe"); aString.search("string pro")=== 5. Actual: ' + aString.search("string pro"));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A3_T1.js b/test/built-ins/String/prototype/search/S15.5.4.12_A3_T1.js
index 1481639f7..bc46040ef 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A3_T1.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A3_T1.js
@@ -13,8 +13,8 @@ var aString = new String("power of the power of the power of the power of the po
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (aString.search(/the/)!== aString.search(/the/g)) {
- $ERROR('#1: var aString = new String("power of the power of the power of the power of the power of the power of the great sword"); aString.search(/the/)=== aString.search(/the/g). Actual: '+aString.search(/the/));
+if (aString.search(/the/) !== aString.search(/the/g)) {
+ $ERROR('#1: var aString = new String("power of the power of the power of the power of the power of the power of the great sword"); aString.search(/the/)=== aString.search(/the/g). Actual: ' + aString.search(/the/));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A3_T2.js b/test/built-ins/String/prototype/search/S15.5.4.12_A3_T2.js
index 099e69e6f..af4e03407 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A3_T2.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A3_T2.js
@@ -13,8 +13,8 @@ var aString = new String("power \u006F\u0066 the power of the power \u006F\u0066
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (aString.search(/of/)!== aString.search(/of/g)) {
- $ERROR('#1: var aString = new String("power \\u006F\\u0066 the power of the power \\u006F\\u0066 the power of the power \\u006F\\u0066 the power of the great sword"); aString.search(/of/)=== aString.search(/of/g). Actual: '+aString.search(/of/));
+if (aString.search(/of/) !== aString.search(/of/g)) {
+ $ERROR('#1: var aString = new String("power \\u006F\\u0066 the power of the power \\u006F\\u0066 the power of the power \\u006F\\u0066 the power of the great sword"); aString.search(/of/)=== aString.search(/of/g). Actual: ' + aString.search(/of/));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A6.js b/test/built-ins/String/prototype/search/S15.5.4.12_A6.js
index 7b56f3270..8e6d1e94d 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A6.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A6.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.search.prototype
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.prototype.search.prototype !== undefined) {
- $ERROR('#1: String.prototype.search.prototype === undefined. Actual: '+String.prototype.search.prototype );
+ $ERROR('#1: String.prototype.search.prototype === undefined. Actual: ' + String.prototype.search.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A7.js b/test/built-ins/String/prototype/search/S15.5.4.12_A7.js
index e34449aac..d6e6f751c 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A7.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A7.js
@@ -14,6 +14,6 @@ try {
$ERROR('#1: __FACTORY = String.prototype.search; "__instance = new __FACTORY" lead to throwing exception');
} catch (e) {
if ((e instanceof TypeError) !== true) {
- $ERROR('#1.1: __FACTORY = String.prototype.search; "__instance = new __FACTORY" throw a TypeError. Actual: ' + (e));
+ $ERROR('#1.1: __FACTORY = String.prototype.search; "__instance = new __FACTORY" throw a TypeError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A8.js b/test/built-ins/String/prototype/search/S15.5.4.12_A8.js
index e51d88ad6..300413c01 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A8.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A8.js
@@ -12,7 +12,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.search.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.search.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.search.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.search.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.search.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,14 +28,14 @@ if (String.prototype.search.propertyIsEnumerable('length')) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#2
-var count=0;
+var count = 0;
-for (var p in String.prototype.search){
- if (p==="length") count++;
+for (var p in String.prototype.search) {
+ if (p === "length") count++;
}
if (count !== 0) {
- $ERROR('#2: count=0; for (p in String.prototype.search){if (p==="length") count++;}; count === 0. Actual: '+count );
+ $ERROR('#2: count=0; for (p in String.prototype.search){if (p==="length") count++;}; count === 0. Actual: ' + count);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A9.js b/test/built-ins/String/prototype/search/S15.5.4.12_A9.js
index 544791040..1abba4346 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A9.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A9.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.search.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.search.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.search.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.search.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.search.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (!delete String.prototype.search.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.search.hasOwnProperty('length')) {
- $ERROR('#2: delete String.prototype.search.length; String.prototype.search.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.search.hasOwnProperty('length'));
+ $ERROR('#2: delete String.prototype.search.length; String.prototype.search.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.search.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A10.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A10.js
index 190575259..b01969682 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A10.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A10.js
@@ -13,19 +13,21 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.slice.hasOwnProperty('length'))) {
- $ERROR('#1: String.prototype.slice.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.slice.hasOwnProperty('length'));
+ $ERROR('#1: String.prototype.slice.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.slice.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
var __obj = String.prototype.slice.length;
-verifyNotWritable(String.prototype.slice, "length", null, function(){return "shifted";});
+verifyNotWritable(String.prototype.slice, "length", null, function() {
+ return "shifted";
+});
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.slice.length !== __obj) {
- $ERROR('#2: __obj = String.prototype.slice.length; String.prototype.slice.length = function(){return "shifted";}; String.prototype.slice.length === __obj. Actual: '+String.prototype.slice.length );
+ $ERROR('#2: __obj = String.prototype.slice.length; String.prototype.slice.length = function(){return "shifted";}; String.prototype.slice.length === __obj. Actual: ' + String.prototype.slice.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A11.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A11.js
index df758f408..e5ea943ba 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A11.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A11.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.slice.length
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.slice.hasOwnProperty("length"))) {
- $ERROR('#1: String.prototype.slice.hasOwnProperty("length") return true. Actual: '+String.prototype.slice.hasOwnProperty("length"));
+ $ERROR('#1: String.prototype.slice.hasOwnProperty("length") return true. Actual: ' + String.prototype.slice.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -18,7 +18,7 @@ if (!(String.prototype.slice.hasOwnProperty("length"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.slice.length !== 2) {
- $ERROR('#2: String.prototype.slice.length === 2. Actual: '+String.prototype.slice.length );
+ $ERROR('#2: String.prototype.slice.length === 2. Actual: ' + String.prototype.slice.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T1.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T1.js
index 5158fdf5b..5ec85372c 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T1.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T1.js
@@ -14,7 +14,7 @@ __instance.slice = String.prototype.slice;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.slice(false, true) !== "t") {
- $ERROR('#1: __instance = new Object(true); __instance.slice = String.prototype.slice; __instance.slice(false, true) === "t". Actual: '+__instance.slice(false, true) );
+ $ERROR('#1: __instance = new Object(true); __instance.slice = String.prototype.slice; __instance.slice(false, true) === "t". Actual: ' + __instance.slice(false, true));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T10.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T10.js
index 6f6100e61..14dd4a2c0 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T10.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T10.js
@@ -9,15 +9,23 @@ description: >
object have overrided valueOf function
---*/
-var __obj = {valueOf:function(){return 2;}};
+var __obj = {
+ valueOf: function() {
+ return 2;
+ }
+};
var __str = "\u0035ABBBABAB";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- if (__str.slice(__obj, function(){return __str.slice(0,1);}()) !== "BBB") {
- $ERROR('#1: var x; var __obj = {valueOf:function(){return 2;}}; var __str = "\u0035ABBBABAB"; __str.slice(__obj, function(){return __str.slice(0,1);}()) === "BBB". Actual: '+__str.slice(__obj, function(){return __str.slice(0,1);}()) );
- }
+if (__str.slice(__obj, function() {
+ return __str.slice(0, 1);
+ }()) !== "BBB") {
+ $ERROR('#1: var x; var __obj = {valueOf:function(){return 2;}}; var __str = "\u0035ABBBABAB"; __str.slice(__obj, function(){return __str.slice(0,1);}()) === "BBB". Actual: ' + __str.slice(__obj, function() {
+ return __str.slice(0, 1);
+ }()));
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T11.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T11.js
index 1e5d7e9a7..5c45b1ceb 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T11.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T11.js
@@ -9,19 +9,27 @@ description: >
overrided valueOf function, that return exception
---*/
-var __obj = {valueOf:function(){throw "instart";}};
-var __obj2 = {valueOf:function(){throw "inend";}};
+var __obj = {
+ valueOf: function() {
+ throw "instart";
+ }
+};
+var __obj2 = {
+ valueOf: function() {
+ throw "inend";
+ }
+};
var __str = "ABB\u0041BABAB";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __str.slice(__obj,__obj2);
- $ERROR('#1: "var x = __str.slice(__obj,__obj2)" lead to throwing exception');
- } catch (e) {
- if (e!=="instart") {
- $ERROR('#1.1: Exception === "instart". Actual: '+e);
- }
- }
+try {
+ var x = __str.slice(__obj, __obj2);
+ $ERROR('#1: "var x = __str.slice(__obj,__obj2)" lead to throwing exception');
+} catch (e) {
+ if (e !== "instart") {
+ $ERROR('#1.1: Exception === "instart". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T12.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T12.js
index 351daa7f7..b111b08e5 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T12.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T12.js
@@ -11,19 +11,30 @@ description: >
return exception
---*/
-var __obj = {valueOf:function(){return {};}, toString:function(){throw "instart";}};
-var __obj2 = {valueOf:function(){throw "inend";}};
+var __obj = {
+ valueOf: function() {
+ return {};
+ },
+ toString: function() {
+ throw "instart";
+ }
+};
+var __obj2 = {
+ valueOf: function() {
+ throw "inend";
+ }
+};
var __str = new String("ABB\u0041BABAB");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __str.slice(__obj, __obj2);
- $ERROR('#1: "var x = __str.slice(__obj,__obj2)" lead to throwing exception');
- } catch (e) {
- if (e!=="instart") {
- $ERROR('#1.1: Exception === "instart". Actual: '+e);
- }
- }
+try {
+ var x = __str.slice(__obj, __obj2);
+ $ERROR('#1: "var x = __str.slice(__obj,__obj2)" lead to throwing exception');
+} catch (e) {
+ if (e !== "instart") {
+ $ERROR('#1.1: Exception === "instart". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T13.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T13.js
index 82799f1ab..50e38d195 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T13.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T13.js
@@ -10,18 +10,29 @@ description: >
overrided toString function, that return exception
---*/
-var __obj = {valueOf:function(){return {};}, toString:function(){return 1;}};
-var __obj2 = {toString:function(){throw "inend";}};
+var __obj = {
+ valueOf: function() {
+ return {};
+ },
+ toString: function() {
+ return 1;
+ }
+};
+var __obj2 = {
+ toString: function() {
+ throw "inend";
+ }
+};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try {
- var x = "ABB\u0041BABAB\u0031BBAA".slice(__obj, __obj2);
- $ERROR('#1: "var x = slice(__obj,__obj2)" lead to throwing exception');
+ var x = "ABB\u0041BABAB\u0031BBAA".slice(__obj, __obj2);
+ $ERROR('#1: "var x = slice(__obj,__obj2)" lead to throwing exception');
} catch (e) {
- if (e!=="inend") {
- $ERROR('#1.1: Exception === "inend". Actual: '+e);
- }
+ if (e !== "inend") {
+ $ERROR('#1.1: Exception === "inend". Actual: ' + e);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T14.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T14.js
index d7b718ac8..ab3b2dbbd 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T14.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T14.js
@@ -9,8 +9,8 @@ description: Used one argument, that is function(){}(). Instance is string
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if ("report".slice(function(){}()) !== "report") {
- $ERROR('#1: "report".slice(function(){}()) === "report". Actual: '+"report".slice(function(){}()) );
+if ("report".slice(function() {}()) !== "report") {
+ $ERROR('#1: "report".slice(function(){}()) === "report". Actual: ' + "report".slice(function() {}()));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T15.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T15.js
index b7017e4db..747902faa 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T15.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T15.js
@@ -16,8 +16,8 @@ Number.prototype.slice = String.prototype.slice;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__num.slice()!=="11.001002") {
- $ERROR('#1: var __num = 11.001002; Number.prototype.slice = String.prototype.slice; __num.slice()==="11.001002". Actual: '+__num.slice());
+if (__num.slice() !== "11.001002") {
+ $ERROR('#1: var __num = 11.001002; Number.prototype.slice = String.prototype.slice; __num.slice()==="11.001002". Actual: ' + __num.slice());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T2.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T2.js
index dd945f581..b2932ddb8 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T2.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T2.js
@@ -15,8 +15,12 @@ __instance.slice = String.prototype.slice;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.slice(function(){return true;}(),x) !== "alse") {
- $ERROR('#1: var x; __instance = new Boolean; __instance.slice = String.prototype.slice; __instance.slice(function(){return true;}(),x) === "alse". Actual: '+__instance.slice(function(){return true;}(),x) );
+if (__instance.slice(function() {
+ return true;
+ }(), x) !== "alse") {
+ $ERROR('#1: var x; __instance = new Boolean; __instance.slice = String.prototype.slice; __instance.slice(function(){return true;}(),x) === "alse". Actual: ' + __instance.slice(function() {
+ return true;
+ }(), x));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T4.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T4.js
index 1fda0a114..b3dd30a6d 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T4.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T4.js
@@ -12,8 +12,12 @@ description: >
//since ToInteger(null) yelds 0
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (function(){return "gnulluna"}().slice(null, -3) !== "gnull") {
- $ERROR('#1: function(){return "gnulluna"}().slice(null, -3) === "gnull". Actual: '+function(){return "gnulluna"}().slice(null, -3) );
+if (function() {
+ return "gnulluna"
+ }().slice(null, -3) !== "gnull") {
+ $ERROR('#1: function(){return "gnulluna"}().slice(null, -3) === "gnull". Actual: ' + function() {
+ return "gnulluna"
+ }().slice(null, -3));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T5.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T5.js
index d75481ec2..516aefbc9 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T5.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T5.js
@@ -10,18 +10,22 @@ description: >
functions
---*/
-__func.valueOf=function(){return "gnulluna"};
-__func.toString=function(){return __func;};
+__func.valueOf = function() {
+ return "gnulluna"
+};
+__func.toString = function() {
+ return __func;
+};
-Function.prototype.slice=String.prototype.slice;
+Function.prototype.slice = String.prototype.slice;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__func.slice(null, Function().slice(__func,5).length) !== "gnull") {
- $ERROR('#1: __func.slice(null, Function().slice(__func,5).length) === "gnull". Actual: '+__func.slice(null, Function().slice(__func,5).length) );
+if (__func.slice(null, Function().slice(__func, 5).length) !== "gnull") {
+ $ERROR('#1: __func.slice(null, Function().slice(__func,5).length) === "gnull". Actual: ' + __func.slice(null, Function().slice(__func, 5).length));
}
//
//////////////////////////////////////////////////////////////////////////////
-function __func(){};
+function __func() {};
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T6.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T6.js
index 38aa85042..a0e18491b 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T6.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T6.js
@@ -12,8 +12,8 @@ description: >
//since ToInteger(undefined yelds 0)
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (new String("undefined").slice(x,3) !== "und") {
- $ERROR('#1: var x; new String("undefined").slice(x,3) === "und". Actual: '+new String("undefined").slice(x,3) );
+if (new String("undefined").slice(x, 3) !== "und") {
+ $ERROR('#1: var x; new String("undefined").slice(x,3) === "und". Actual: ' + new String("undefined").slice(x, 3));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T7.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T7.js
index 3926ea9df..1ac08f088 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T7.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T7.js
@@ -10,8 +10,8 @@ description: Arguments are symbol and undefined, and instance is String
//since ToInteger("e") yelds 0
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (String(void 0).slice("e",undefined) !== "undefined") {
- $ERROR('#1: String(void 0).slice("e",undefined) === "undefined". Actual: '+String(void 0).slice("e",undefined) );
+if (String(void 0).slice("e", undefined) !== "undefined") {
+ $ERROR('#1: String(void 0).slice("e",undefined) === "undefined". Actual: ' + String(void 0).slice("e", undefined));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T8.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T8.js
index 106fd8a1e..9eb7c5b31 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T8.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T8.js
@@ -9,13 +9,15 @@ description: >
String(object), object have overrided toString function
---*/
-var __obj = {toString:function(){}};
+var __obj = {
+ toString: function() {}
+};
//since void 0 yelds 0
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (String(__obj).slice(-4,void 0) !== "ined") {
- $ERROR('#1: __obj = {toString:function(){}}; String(__obj).slice(-4,void 0) === "ined". Actual: '+String(__obj).slice(-4,void 0) );
+if (String(__obj).slice(-4, void 0) !== "ined") {
+ $ERROR('#1: __obj = {toString:function(){}}; String(__obj).slice(-4,void 0) === "ined". Actual: ' + String(__obj).slice(-4, void 0));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T9.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T9.js
index 9c927f1f2..e26a1a66d 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T9.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T9.js
@@ -11,15 +11,15 @@ description: >
---*/
var __obj = {
- valueOf:function(){},
- toString:void 0
+ valueOf: function() {},
+ toString: void 0
};
//since ToInteger(undefined) yelds 0
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (new String(__obj).slice(/*(function(){})()*/undefined,__obj) !== "") {
- $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).slice(//*(function(){})()*//undefined,__obj) === "". Actual: '+new String(__obj).slice(/*(function(){})()*/undefined,__obj) );
+if (new String(__obj).slice( /*(function(){})()*/ undefined, __obj) !== "") {
+ $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).slice(//*(function(){})()*//undefined,__obj) === "". Actual: ' + new String(__obj).slice( /*(function(){})()*/ undefined, __obj));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T1.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T1.js
index 88790f7e7..d691c9710 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T1.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T1.js
@@ -12,7 +12,7 @@ var __string = new String("this is a string object");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __string.slice() !== "string") {
- $ERROR('#1: __string = new String("this is a string object"); typeof __string.slice() === "string". Actual: '+typeof __string.slice() );
+ $ERROR('#1: __string = new String("this is a string object"); typeof __string.slice() === "string". Actual: ' + typeof __string.slice());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T2.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T2.js
index cadc98532..1dda10c23 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T2.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T2.js
@@ -12,7 +12,7 @@ var __string = new String('this is a string object');
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__string.slice(NaN, Infinity) !== "this is a string object") {
- $ERROR('#1: __string = new String(\'this is a string object\'); __string.slice(NaN, Infinity) === "this is a string object". Actual: '+__string.slice(NaN, Infinity) );
+ $ERROR('#1: __string = new String(\'this is a string object\'); __string.slice(NaN, Infinity) === "this is a string object". Actual: ' + __string.slice(NaN, Infinity));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T3.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T3.js
index 2cd542d17..3ca0043d5 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T3.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T3.js
@@ -11,8 +11,8 @@ var __string = new String("");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.slice(1,0) !== "") {
- $ERROR('#1: __string = new String(""); __string.slice(1,0) === "". Actual: '+__string.slice(1,0) );
+if (__string.slice(1, 0) !== "") {
+ $ERROR('#1: __string = new String(""); __string.slice(1,0) === "". Actual: ' + __string.slice(1, 0));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T4.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T4.js
index db80ad757..6a31bfee9 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T4.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T4.js
@@ -12,7 +12,7 @@ var __string = new String("this is a string object");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__string.slice(Infinity, NaN) !== "") {
- $ERROR('#1: __string = new String("this is a string object"); __string.slice(Infinity, NaN) === "". Actual: '+__string.slice(Infinity, NaN) );
+ $ERROR('#1: __string = new String("this is a string object"); __string.slice(Infinity, NaN) === "". Actual: ' + __string.slice(Infinity, NaN));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T5.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T5.js
index e889dedce..92ff1765a 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T5.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T5.js
@@ -12,7 +12,7 @@ var __string = new String("this is a string object");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__string.slice(Infinity, Infinity) !== "") {
- $ERROR('#1: __string = new String("this is a string object"); __string.slice(Infinity, Infinity) === "". Actual: '+__string.slice(Infinity, Infinity) );
+ $ERROR('#1: __string = new String("this is a string object"); __string.slice(Infinity, Infinity) === "". Actual: ' + __string.slice(Infinity, Infinity));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T6.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T6.js
index 73383aaeb..905fea791 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T6.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T6.js
@@ -11,8 +11,8 @@ var __string = new String("this is a string object");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.slice(-0.01,0) !== "") {
- $ERROR('#1: __string = new String("this is a string object"); __string.slice(-0.01,0) === "". Actual: '+__string.slice(-0.01,0) );
+if (__string.slice(-0.01, 0) !== "") {
+ $ERROR('#1: __string = new String("this is a string object"); __string.slice(-0.01,0) === "". Actual: ' + __string.slice(-0.01, 0));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T7.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T7.js
index 5a6e272b3..1badb971a 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T7.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T7.js
@@ -12,7 +12,7 @@ var __string = new String("this is a string object");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__string.slice(__string.length, __string.length) !== "") {
- $ERROR('#1: __string = new String("this is a string object"); __string.slice(__string.length, __string.length) === "". Actual: '+__string.slice(__string.length, __string.length) );
+ $ERROR('#1: __string = new String("this is a string object"); __string.slice(__string.length, __string.length) === "". Actual: ' + __string.slice(__string.length, __string.length));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T8.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T8.js
index 9559e7b75..ad8c991f2 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T8.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T8.js
@@ -11,8 +11,8 @@ var __string = new String("this is a string object");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.slice(__string.length+1, 0) !== "") {
- $ERROR('#1: __string = new String("this is a string object"); __string.slice(__string.length+1, 0) === "". Actual: '+__string.slice(__string.length+1, 0) );
+if (__string.slice(__string.length + 1, 0) !== "") {
+ $ERROR('#1: __string = new String("this is a string object"); __string.slice(__string.length+1, 0) === "". Actual: ' + __string.slice(__string.length + 1, 0));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T9.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T9.js
index 9b13cb8df..196575b08 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T9.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T9.js
@@ -12,7 +12,7 @@ var __string = new String("this is a string object");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__string.slice(-Infinity, -Infinity) !== "") {
- $ERROR('#1: __string = new String("this is a string object"); __string.slice(-Infinity, -Infinity) === "". Actual: '+__string.slice(-Infinity, -Infinity) );
+ $ERROR('#1: __string = new String("this is a string object"); __string.slice(-Infinity, -Infinity) === "". Actual: ' + __string.slice(-Infinity, -Infinity));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T1.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T1.js
index b60a25f06..1bfa9b1c0 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T1.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T1.js
@@ -13,8 +13,8 @@ __instance.slice = String.prototype.slice;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.slice(0,8) !== "[object ") {
- $ERROR('#1: __instance = new Object(); __instance.slice = String.prototype.slice; __instance.slice(0,8) === "[object ". Actual: '+__instance.slice(0,8) );
+if (__instance.slice(0, 8) !== "[object ") {
+ $ERROR('#1: __instance = new Object(); __instance.slice = String.prototype.slice; __instance.slice(0,8) === "[object ". Actual: ' + __instance.slice(0, 8));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T2.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T2.js
index 4335b1e82..5d1c65a58 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T2.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T2.js
@@ -15,8 +15,8 @@ __instance.slice = String.prototype.slice;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.slice(8,__instance.toString().length) !== "Object]") {
- $ERROR('#1: __instance = new Object(); __instance.slice = String.prototype.slice; __instance.slice(8,__instance.toString().length) === "Object]". Actual: '+__instance.slice(8,__instance.toString().length) );
+if (__instance.slice(8, __instance.toString().length) !== "Object]") {
+ $ERROR('#1: __instance = new Object(); __instance.slice = String.prototype.slice; __instance.slice(8,__instance.toString().length) === "Object]". Actual: ' + __instance.slice(8, __instance.toString().length));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T3.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T3.js
index 2ed9d7ff0..8092dd587 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T3.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T3.js
@@ -9,14 +9,18 @@ description: >
instance.slice(...).slice(...)
---*/
-var __instance = { toString: function() { return "function(){}";} };
+var __instance = {
+ toString: function() {
+ return "function(){}";
+ }
+};
__instance.slice = String.prototype.slice;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.slice(-Infinity,8).slice(1,Infinity) !== "unction") {
- $ERROR('#1: __instance = function(){}; __instance.slice = String.prototype.slice; __instance.slice(-Infinity,8).slice(1,Infinity) === "unction". Actual: '+__instance.slice(-Infinity,8).slice(1,Infinity) );
+if (__instance.slice(-Infinity, 8).slice(1, Infinity) !== "unction") {
+ $ERROR('#1: __instance = function(){}; __instance.slice = String.prototype.slice; __instance.slice(-Infinity,8).slice(1,Infinity) === "unction". Actual: ' + __instance.slice(-Infinity, 8).slice(1, Infinity));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T4.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T4.js
index e07c09aae..889019cfd 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T4.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T4.js
@@ -9,20 +9,22 @@ description: >
instance passes
---*/
-__FACTORY.prototype.toString = function() { return this.value+''; };
+__FACTORY.prototype.toString = function() {
+ return this.value + '';
+};
var __instance = new __FACTORY(void 0);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.slice(0,100) !== "undefined") {
- $ERROR('#1: __instance.slice(0,100) === "undefined". Actual: '+__instance.slice(0,100) );
+if (__instance.slice(0, 100) !== "undefined") {
+ $ERROR('#1: __instance.slice(0,100) === "undefined". Actual: ' + __instance.slice(0, 100));
}
//
//////////////////////////////////////////////////////////////////////////////
-function __FACTORY( value ) {
- this.value = value,
- this.slice= String.prototype.slice;
- //this.substring = String.prototype.substring;
+function __FACTORY(value) {
+ this.value = value,
+ this.slice = String.prototype.slice;
+ //this.substring = String.prototype.substring;
}
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A6.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A6.js
index 0e9643aa6..5c97de6aa 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A6.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A6.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.slice.prototype
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.prototype.slice.prototype !== undefined) {
- $ERROR('#1: String.prototype.slice.prototype === undefined. Actual: '+String.prototype.slice.prototype );
+ $ERROR('#1: String.prototype.slice.prototype === undefined. Actual: ' + String.prototype.slice.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A8.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A8.js
index 9e4042b08..d4f6b3fc7 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A8.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A8.js
@@ -12,7 +12,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.slice.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.slice.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.slice.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.slice.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.slice.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,14 +28,14 @@ if (String.prototype.slice.propertyIsEnumerable('length')) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#2
-var count=0;
+var count = 0;
-for (var p in String.prototype.slice){
- if (p==="length") count++;
+for (var p in String.prototype.slice) {
+ if (p === "length") count++;
}
if (count !== 0) {
- $ERROR('#2: count=0; for (p in String.prototype.slice){if (p==="length") count++;}; count === 0. Actual: '+count );
+ $ERROR('#2: count=0; for (p in String.prototype.slice){if (p==="length") count++;}; count === 0. Actual: ' + count);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A9.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A9.js
index f45ea3180..ce8ca68af 100644
--- a/test/built-ins/String/prototype/slice/S15.5.4.13_A9.js
+++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A9.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.slice.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.slice.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.slice.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.slice.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.slice.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (!delete String.prototype.slice.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.slice.hasOwnProperty('length')) {
- $ERROR('#2: delete String.prototype.slice.length; String.prototype.slice.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.slice.hasOwnProperty('length'));
+ $ERROR('#2: delete String.prototype.slice.length; String.prototype.slice.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.slice.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A10.js b/test/built-ins/String/prototype/split/S15.5.4.14_A10.js
index f4f331cb6..153a57b56 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A10.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A10.js
@@ -13,19 +13,21 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.split.hasOwnProperty('length'))) {
- $ERROR('#1: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.split.hasOwnProperty('length'));
+ $ERROR('#1: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.split.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
var __obj = String.prototype.split.length;
-verifyNotWritable(String.prototype.split, "length", null, function(){return "shifted";});
+verifyNotWritable(String.prototype.split, "length", null, function() {
+ return "shifted";
+});
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.split.length !== __obj) {
- $ERROR('#2: __obj = String.prototype.split.length; String.prototype.split.length = function(){return "shifted";}; String.prototype.split.length === __obj. Actual: '+String.prototype.split.length );
+ $ERROR('#2: __obj = String.prototype.split.length; String.prototype.split.length = function(){return "shifted";}; String.prototype.split.length === __obj. Actual: ' + String.prototype.split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A11.js
index b3a94684f..e5ca3139e 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A11.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A11.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.split.length
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.split.hasOwnProperty("length"))) {
- $ERROR('#1: String.prototype.split.hasOwnProperty("length") return true. Actual: '+String.prototype.split.hasOwnProperty("length"));
+ $ERROR('#1: String.prototype.split.hasOwnProperty("length") return true. Actual: ' + String.prototype.split.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -18,7 +18,7 @@ if (!(String.prototype.split.hasOwnProperty("length"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.split.length !== 2) {
- $ERROR('#2: String.prototype.split.length === 2. Actual: '+String.prototype.split.length );
+ $ERROR('#2: String.prototype.split.length === 2. Actual: ' + String.prototype.split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T1.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T1.js
index 9acfda6b3..69ca40343 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T1.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T1.js
@@ -21,7 +21,7 @@ var __split = __instance.split(true, false);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); typeof __split === "object". Actual: '+typeof __split );
+ $ERROR('#1: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); typeof __split === "object". Actual: ' + typeof __split);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,7 +29,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#2: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -37,7 +37,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 0) {
- $ERROR('#3: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); __split.length === 0. Actual: '+__split.length );
+ $ERROR('#3: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); __split.length === 0. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T10.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T10.js
index bc79057f8..c56b54de7 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T10.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T10.js
@@ -15,8 +15,16 @@ description: >
function
---*/
-var __obj = {toString:function(){return "\u0042B";}}
-var __obj2 = {valueOf:function(){return true;}}
+var __obj = {
+ toString: function() {
+ return "\u0042B";
+ }
+}
+var __obj2 = {
+ valueOf: function() {
+ return true;
+ }
+}
var __str = "ABB\u0041BABAB";
var __split = __str.split(__obj, __obj2);
@@ -24,7 +32,7 @@ var __split = __str.split(__obj, __obj2);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); typeof __split === "object". Actual: '+typeof __split );
+ $ERROR('#1: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); typeof __split === "object". Actual: ' + typeof __split);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -32,7 +40,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#2: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -40,7 +48,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 1) {
- $ERROR('#3: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#3: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -48,7 +56,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[0] !== "A") {
- $ERROR('#4: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split[0] === "A". Actual: '+__split[0] );
+ $ERROR('#4: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split[0] === "A". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js
index ddf8fe760..73d4917a7 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js
@@ -15,19 +15,27 @@ description: >
function, that throw exception
---*/
-var __obj = {toString:function(){return "\u0041B";}}
-var __obj2 = {valueOf:function(){throw "intointeger";}}
+var __obj = {
+ toString: function() {
+ return "\u0041B";
+ }
+}
+var __obj2 = {
+ valueOf: function() {
+ throw "intointeger";
+ }
+}
var __str = "ABB\u0041BABAB";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __str.split(__obj, __obj2);
- $ERROR('#1: "var x = __str.split(__obj, __obj2)" lead to throwing exception');
- } catch (e) {
- if (e!=="intointeger") {
- $ERROR('#1.1: Exception === "intointeger". Actual: '+e);
- }
- }
+try {
+ var x = __str.split(__obj, __obj2);
+ $ERROR('#1: "var x = __str.split(__obj, __obj2)" lead to throwing exception');
+} catch (e) {
+ if (e !== "intointeger") {
+ $ERROR('#1.1: Exception === "intointeger". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js
index ba6a0efed..5fe372049 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js
@@ -15,19 +15,30 @@ description: >
function and toString function, that throw exception
---*/
-var __obj = {toString:function(){return "\u0041B";}}
-var __obj2 = {valueOf:function(){return {};},toString:function(){throw "intointeger";}}
+var __obj = {
+ toString: function() {
+ return "\u0041B";
+ }
+}
+var __obj2 = {
+ valueOf: function() {
+ return {};
+ },
+ toString: function() {
+ throw "intointeger";
+ }
+}
var __str = new String("ABB\u0041BABAB");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __str.split(__obj, __obj2);
- $ERROR('#1: "var x = __str.split(__obj, __obj2)" lead to throwing exception');
- } catch (e) {
- if (e!=="intointeger") {
- $ERROR('#1.1: Exception === "intointeger". Actual: '+e);
- }
- }
+try {
+ var x = __str.split(__obj, __obj2);
+ $ERROR('#1: "var x = __str.split(__obj, __obj2)" lead to throwing exception');
+} catch (e) {
+ if (e !== "intointeger") {
+ $ERROR('#1.1: Exception === "intointeger". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js
index d97ac63db..eded7e4c0 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js
@@ -15,15 +15,26 @@ description: >
and toString functions
---*/
-var __obj = {toString:function(){return "\u0042\u0042";}}
-var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}
+var __obj = {
+ toString: function() {
+ return "\u0042\u0042";
+ }
+}
+var __obj2 = {
+ valueOf: function() {
+ return {};
+ },
+ toString: function() {
+ return "2";
+ }
+}
var __split = "ABB\u0041BABAB\u0042cc^^\u0042Bvv%%B\u0042xxx".split(__obj, __obj2);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); typeof __split === "object". Actual: '+typeof __split );
+ $ERROR('#1: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); typeof __split === "object". Actual: ' + typeof __split);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -31,7 +42,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#2: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -39,7 +50,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 2) {
- $ERROR('#3: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split.length === 2. Actual: '+__split.length );
+ $ERROR('#3: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split.length === 2. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -47,7 +58,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[0] !== "A") {
- $ERROR('#4: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split[0] === "A". Actual: '+__split[0] );
+ $ERROR('#4: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split[0] === "A". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -55,7 +66,7 @@ if (__split[0] !== "A") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[1] !== "ABABA") {
- $ERROR('#5: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split[1] === "ABABA". Actual: '+__split[1] );
+ $ERROR('#5: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split[1] === "ABABA". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js
index 412513ed5..df6ee1d69 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js
@@ -15,20 +15,28 @@ description: >
have overrided valueOf function, that throw exception
---*/
-var __obj = {toString:function(){throw "intostr";}};
-var __obj2 = {valueOf:function(){throw "intoint";}};
+var __obj = {
+ toString: function() {
+ throw "intostr";
+ }
+};
+var __obj2 = {
+ valueOf: function() {
+ throw "intoint";
+ }
+};
var __instance = new Number(10001.10001);
-Number.prototype.split=String.prototype.split;
+Number.prototype.split = String.prototype.split;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __instance.split(__obj, __obj2);
- $ERROR('#1: "var x = __instance.split(__obj, __obj2)" lead to throwing exception');
- } catch (e) {
- if (e!=="intoint") {
- $ERROR('#1.1: Exception === "intoint". Actual: '+e);
- }
- }
+try {
+ var x = __instance.split(__obj, __obj2);
+ $ERROR('#1: "var x = __instance.split(__obj, __obj2)" lead to throwing exception');
+} catch (e) {
+ if (e !== "intoint") {
+ $ERROR('#1.1: Exception === "intoint". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js
index 46cf12809..52c2fc9ca 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js
@@ -16,9 +16,20 @@ description: >
throw exception
---*/
-var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}};
+var __obj = {
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ throw "intostr";
+ }
+};
-var __obj2 = {valueOf:function(){throw "intointeger";}};
+var __obj2 = {
+ valueOf: function() {
+ throw "intointeger";
+ }
+};
__FACTORY.prototype.split = String.prototype.split;
@@ -30,15 +41,19 @@ try {
var x = __instance.split(__obj, __obj2);
$ERROR('#1: "var x = __instance.split(__obj, __obj2)" lead to throwing exception');
} catch (e) {
- if (e!=="intointeger") {
- $ERROR('#1.1: Exception === "intointeger". Actual: '+e);
+ if (e !== "intointeger") {
+ $ERROR('#1.1: Exception === "intointeger". Actual: ' + e);
}
}
//
//////////////////////////////////////////////////////////////////////////////
-function __FACTORY( value ) {
- this.value = value;
- this.toString = function() { return new Number; };
- this.valueOf=function(){return this.value+""};
+function __FACTORY(value) {
+ this.value = value;
+ this.toString = function() {
+ return new Number;
+ };
+ this.valueOf = function() {
+ return this.value + ""
+ };
}
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js
index ff3d9ef00..4fb875732 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js
@@ -14,15 +14,19 @@ description: >
toString function, that return regexp
---*/
-var __obj = {toString:function(){return /\u0037\u0037/g;}};
+var __obj = {
+ toString: function() {
+ return /\u0037\u0037/g;
+ }
+};
-Number.prototype.split=String.prototype.split;
+Number.prototype.split = String.prototype.split;
try {
var __split = 6776767677.006771122677555.split(__obj);
$ERROR('#1: "__split = 6776767677.006771122677555.split(__obj)" lead to throwing exception');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#1.1: Exception is instance of TypeError. Actual: '+e);
+ $ERROR('#1.1: Exception is instance of TypeError. Actual: ' + e);
}
}
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T17.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T17.js
index 9d7b34da2..95124d9cd 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T17.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T17.js
@@ -14,14 +14,14 @@ description: Argument is regexp, and instance is Number
var __re = /\u0037\u0037/g;
-Number.prototype.split=String.prototype.split;
+Number.prototype.split = String.prototype.split;
var __split = 6776767677.006771122677555.split(__re);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); typeof __split === "object". Actual: '+typeof __split );
+ $ERROR('#1: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); typeof __split === "object". Actual: ' + typeof __split);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,7 +29,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#2: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -37,7 +37,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 4) {
- $ERROR('#3: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split.length === 4. Actual: '+__split.length );
+ $ERROR('#3: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split.length === 4. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -45,7 +45,7 @@ if (__split.length !== 4) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[0] !== "6") {
- $ERROR('#4: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[0] === "6". Actual: '+__split[0] );
+ $ERROR('#4: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[0] === "6". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -53,7 +53,7 @@ if (__split[0] !== "6") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[1] !== "67676") {
- $ERROR('#5: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[1] === "67676". Actual: '+__split[1] );
+ $ERROR('#5: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[1] === "67676". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -61,7 +61,7 @@ if (__split[1] !== "67676") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#6
if (__split[2] !== ".006") {
- $ERROR('#6: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[2] === ".006". Actual: '+__split[2] );
+ $ERROR('#6: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[2] === ".006". Actual: ' + __split[2]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -69,7 +69,7 @@ if (__split[2] !== ".006") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#7
if (__split[3] !== "1") {
- $ERROR('#7: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[3] === "1". Actual: '+__split[3] );
+ $ERROR('#7: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[3] === "1". Actual: ' + __split[3]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T18.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T18.js
index 48bccb512..4c8fdbfb6 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T18.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T18.js
@@ -12,16 +12,16 @@ es5id: 15.5.4.14_A1_T18
description: Checking by using eval
---*/
-var __re = new RegExp("00");
+var __re = new RegExp("00");
-Number.prototype.split=String.prototype.split;
+Number.prototype.split = String.prototype.split;
var __split = 6776767677.006771122677555.split(__re, eval("\"1\""));
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); typeof __split === "object". Actual: '+typeof __split );
+ $ERROR('#1: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); typeof __split === "object". Actual: ' + typeof __split);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,7 +29,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#2: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -37,7 +37,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 1) {
- $ERROR('#3: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#3: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -45,7 +45,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "6776767677.") {
- $ERROR('#3: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split[0] === "6776767677.". Actual: '+__split[0] );
+ $ERROR('#3: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split[0] === "6776767677.". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T2.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T2.js
index e099b49fa..775ac3f56 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T2.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T2.js
@@ -18,12 +18,14 @@ var __instance = new Boolean;
__instance.split = String.prototype.split;
-var __split = __instance.split("A"!=="\u0041", function(){return 0;}(),null);
+var __split = __instance.split("A" !== "\u0041", function() {
+ return 0;
+}(), null);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); typeof __split === "object". Actual: '+typeof __split );
+ $ERROR('#1: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); typeof __split === "object". Actual: ' + typeof __split);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -31,7 +33,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#2: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -39,7 +41,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 0) {
- $ERROR('#3: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); __split.length === 0. Actual: '+__split.length );
+ $ERROR('#3: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); __split.length === 0. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js
index a7725324f..cb21c14a1 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js
@@ -14,48 +14,53 @@ description: Checking by using eval
var split = String.prototype.split.bind(this);
-var __obj__lim = {valueOf:function(){return 5;}};
+var __obj__lim = {
+ valueOf: function() {
+ return 5;
+ }
+};
try {
- toString = Object.prototype.toString;
-} catch(e) { ; }
+ toString = Object.prototype.toString;
+} catch (e) {;
+}
//Checks are only valid if we can overwrite the global object's toString method
//(which ES5 doesn't even require to exist)
-if (toString===Object.prototype.toString) {
- var __class__ = toString();
-
- var __split = split(eval("\"[\""),__obj__lim);
-
- //////////////////////////////////////////////////////////////////////////////
- //CHECK#1
- if (typeof __split !== "object") {
- $ERROR('#1: typeof __split === "object". Actual: '+typeof __split );
- }
- //
- //////////////////////////////////////////////////////////////////////////////
-
- //////////////////////////////////////////////////////////////////////////////
- //CHECK#2
- if (__split.constructor !== Array) {
- $ERROR('#2: __split.constructor === Array. Actual: '+__split.constructor );
- }
- //
- //////////////////////////////////////////////////////////////////////////////
-
- //////////////////////////////////////////////////////////////////////////////
- //CHECK#3
- if (__split.length !== 2) {
- $ERROR('#3: __split.length === 2. Actual: '+__split.length );
- }
- //
- //////////////////////////////////////////////////////////////////////////////
-
- //////////////////////////////////////////////////////////////////////////////
- //CHECK#3
- if (__split[1].substring(0,6) !== "object") {
- $ERROR('#4: __split[1].substring(0,6) === "object". Actual: '+__split[1].substring(0,6) );
- }
- //
- //////////////////////////////////////////////////////////////////////////////
+if (toString === Object.prototype.toString) {
+ var __class__ = toString();
+
+ var __split = split(eval("\"[\""), __obj__lim);
+
+ //////////////////////////////////////////////////////////////////////////////
+ //CHECK#1
+ if (typeof __split !== "object") {
+ $ERROR('#1: typeof __split === "object". Actual: ' + typeof __split);
+ }
+ //
+ //////////////////////////////////////////////////////////////////////////////
+
+ //////////////////////////////////////////////////////////////////////////////
+ //CHECK#2
+ if (__split.constructor !== Array) {
+ $ERROR('#2: __split.constructor === Array. Actual: ' + __split.constructor);
+ }
+ //
+ //////////////////////////////////////////////////////////////////////////////
+
+ //////////////////////////////////////////////////////////////////////////////
+ //CHECK#3
+ if (__split.length !== 2) {
+ $ERROR('#3: __split.length === 2. Actual: ' + __split.length);
+ }
+ //
+ //////////////////////////////////////////////////////////////////////////////
+
+ //////////////////////////////////////////////////////////////////////////////
+ //CHECK#3
+ if (__split[1].substring(0, 6) !== "object") {
+ $ERROR('#4: __split[1].substring(0,6) === "object". Actual: ' + __split[1].substring(0, 6));
+ }
+ //
+ //////////////////////////////////////////////////////////////////////////////
}
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T4.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T4.js
index e0f5e3294..f2931438d 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T4.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T4.js
@@ -18,7 +18,7 @@ var __split = "".split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: __split = "".split(); typeof __split === "object". Actual: '+typeof __split );
+ $ERROR('#1: __split = "".split(); typeof __split === "object". Actual: ' + typeof __split);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: __split = "".split(); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#2: __split = "".split(); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 1) {
- $ERROR('#3: __split = "".split(); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#3: __split = "".split(); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[0] !== "") {
- $ERROR('#4: __split = "".split(); __split[0] === "". Actual: '+__split[0] );
+ $ERROR('#4: __split = "".split(); __split[0] === "". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T5.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T5.js
index 5515c76a9..982309d1a 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T5.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T5.js
@@ -15,12 +15,14 @@ description: >
---*/
//since ToString(null) evaluates to "null" split(null) evaluates to split("null",0)
-var __split = function(){return "gnulluna"}().split(null);
+var __split = function() {
+ return "gnulluna"
+}().split(null);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: __split = function(){return "gnulluna"}().split(null); typeof __split === "object". Actual: '+typeof __split );
+ $ERROR('#1: __split = function(){return "gnulluna"}().split(null); typeof __split === "object". Actual: ' + typeof __split);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,7 +30,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: __split = function(){return "gnulluna"}().split(null); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#2: __split = function(){return "gnulluna"}().split(null); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -36,7 +38,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 2) {
- $ERROR('#3: __split = function(){return "gnulluna"}().split(null); __split.length === 2. Actual: '+__split.length );
+ $ERROR('#3: __split = function(){return "gnulluna"}().split(null); __split.length === 2. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -44,7 +46,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[0] !== "g") {
- $ERROR('#4: __split = function(){return "gnulluna"}().split(null); __split[0] === "g". Actual: '+__split[0] );
+ $ERROR('#4: __split = function(){return "gnulluna"}().split(null); __split[0] === "g". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -52,7 +54,7 @@ if (__split[0] !== "g") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[1] !== "una") {
- $ERROR('#5: __split = function(){return "gnulluna"}().split(null); __split[1] === "una". Actual: '+__split[1] );
+ $ERROR('#5: __split = function(){return "gnulluna"}().split(null); __split[1] === "una". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T6.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T6.js
index 74a9b6d77..815d13d19 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T6.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T6.js
@@ -18,7 +18,7 @@ var __split = new String("1undefined").split(x);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: var x; __split = new String("1undefined").split(x); typeof __split === "object". Actual: '+typeof __split );
+ $ERROR('#1: var x; __split = new String("1undefined").split(x); typeof __split === "object". Actual: ' + typeof __split);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: var x; __split = new String("1undefined").split(x); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#2: var x; __split = new String("1undefined").split(x); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 1) {
- $ERROR('#3: var x; __split = new String("1undefined").split(x); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#3: var x; __split = new String("1undefined").split(x); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[0] !== "1undefined") {
- $ERROR('#4: var x; __split = new String("1undefined").split(x); __split[0] === "1undefined". Actual: '+__split[0] );
+ $ERROR('#4: var x; __split = new String("1undefined").split(x); __split[0] === "1undefined". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T7.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T7.js
index bb030f4e2..02cfc0165 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T7.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T7.js
@@ -17,7 +17,7 @@ var __split = String("undefinedd").split(undefined);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: __split = String("undefinedd").split(undefined); typeof __split === "object". Actual: '+typeof __split );
+ $ERROR('#1: __split = String("undefinedd").split(undefined); typeof __split === "object". Actual: ' + typeof __split);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -25,7 +25,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: __split = String("undefinedd").split(undefined); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#2: __split = String("undefinedd").split(undefined); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -33,7 +33,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 1) {
- $ERROR('#3: __split = String("undefinedd").split(undefined); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#3: __split = String("undefinedd").split(undefined); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -41,7 +41,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[0] !== "undefinedd") {
- $ERROR('#4: __split = String("undefinedd").split(undefined); __split[0] === "undefinedd". Actual: '+__split[0] );
+ $ERROR('#4: __split = String("undefinedd").split(undefined); __split[0] === "undefinedd". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T8.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T8.js
index 3a7d671f3..05eb86148 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T8.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T8.js
@@ -14,14 +14,16 @@ description: >
overrided toString function
---*/
-var __obj = {toString:function(){}};
+var __obj = {
+ toString: function() {}
+};
var __split = String(__obj).split(void 0);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); typeof __split === "object". Actual: '+typeof __split );
+ $ERROR('#1: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); typeof __split === "object". Actual: ' + typeof __split);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,7 +31,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#2: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -37,7 +39,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 1) {
- $ERROR('#3: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#3: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -45,7 +47,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[0] !== "undefined") {
- $ERROR('#4: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split[0] !== "undefined". Actual: '+__split[0]);
+ $ERROR('#4: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split[0] !== "undefined". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T9.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T9.js
index e78ae20d0..eb545020d 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T9.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T9.js
@@ -15,17 +15,17 @@ description: >
---*/
var __obj = {
- valueOf:function(){},
- toString:void 0
+ valueOf: function() {},
+ toString: void 0
};
//since ToString(undefined) evaluates to "undefined"
-var __split = new String(__obj).split(function(){}());
+var __split = new String(__obj).split(function() {}());
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __split !== "object") {
- $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); typeof __split === "object". Actual: '+typeof __split );
+ $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); typeof __split === "object". Actual: ' + typeof __split);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -33,7 +33,7 @@ if (typeof __split !== "object") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.constructor !== Array) {
- $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -41,7 +41,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split.length !== 1) {
- $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -49,7 +49,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[0] !== "undefined") {
- $ERROR('#4: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split[0] !== "undefined". Actual: '+__split[0]);
+ $ERROR('#4: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split[0] !== "undefined". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T1.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T1.js
index 0674e6091..fdf968d87 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T1.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T1.js
@@ -18,7 +18,7 @@ var __split = __string.split(",");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 5) {
- $ERROR('#2: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split.length === 5. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split.length === 5. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 5) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "one") {
- $ERROR('#3: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[0] === "one". Actual: '+__split[0] );
+ $ERROR('#3: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[0] === "one". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "one") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "two") {
- $ERROR('#4: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[1] === "two". Actual: '+__split[1] );
+ $ERROR('#4: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[1] === "two". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -50,7 +50,7 @@ if (__split[1] !== "two") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[2] !== "three") {
- $ERROR('#5: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[2] === "three". Actual: '+__split[2] );
+ $ERROR('#5: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[2] === "three". Actual: ' + __split[2]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -58,7 +58,7 @@ if (__split[2] !== "three") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#6
if (__split[3] !== "four") {
- $ERROR('#6: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[3] === "four". Actual: '+__split[3] );
+ $ERROR('#6: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[3] === "four". Actual: ' + __split[3]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -66,7 +66,7 @@ if (__split[3] !== "four") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#7
if (__split[4] !== "five") {
- $ERROR('#7: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[4] === "five". Actual: '+__split[4] );
+ $ERROR('#7: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[4] === "five". Actual: ' + __split[4]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T10.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T10.js
index 64ad57b26..eff95ed19 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T10.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T10.js
@@ -19,7 +19,7 @@ var __split = __string.split(123);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,17 +27,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for ( var i = 0; i < __expected.length; i++ ) {
- if (__expected[i]!==__split[i]) {
- $ERROR('#3.'+i+': var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __expected['+i+']===__split['+i+']. Actual: '+__expected[i]);
- }
+for (var i = 0; i < __expected.length; i++) {
+ if (__expected[i] !== __split[i]) {
+ $ERROR('#3.' + i + ': var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __expected[' + i + ']===__split[' + i + ']. Actual: ' + __expected[i]);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T11.js
index 08951717a..b29dc9e0e 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T11.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T11.js
@@ -18,7 +18,7 @@ var __split = __string.split(":");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "one-1,two-2,four-4") {
- $ERROR('#3: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split[0] === "one-1,two-2,four-4". Actual: '+__split[0] );
+ $ERROR('#3: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split[0] === "one-1,two-2,four-4". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T12.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T12.js
index e3cde172c..7696dfa9e 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T12.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T12.js
@@ -18,7 +18,7 @@ var __split = __string.split("r-42");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "one-1 two-2 four-4") {
- $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split[0] === "one-1 two-2 four-4". Actual: '+__split[0] );
+ $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split[0] === "one-1 two-2 four-4". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T13.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T13.js
index 1dfd75e25..067bf5aeb 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T13.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T13.js
@@ -18,7 +18,7 @@ var __split = __string.split("-4");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 2) {
- $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split.length === 2. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split.length === 2. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "one-1 two-2 four") {
- $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split[0] === "one-1 two-2 four". Actual: '+__split[0]);
+ $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split[0] === "one-1 two-2 four". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "one-1 two-2 four") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split[1] === "". Actual: '+__split[1] );
+ $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split[1] === "". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T14.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T14.js
index 0ee0bd42d..ec0899acb 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T14.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T14.js
@@ -18,7 +18,7 @@ var __split = __string.split("on");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 2) {
- $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split.length === 2. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split.length === 2. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "") {
- $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split[0] === "". Actual: '+__split[0]);
+ $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split[0] === "". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "e-1 two-2 four-4") {
- $ERROR('#4: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split[1] === "e-1 two-2 four-4". Actual: '+__split[1] );
+ $ERROR('#4: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split[1] === "e-1 two-2 four-4". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T15.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T15.js
index dea226994..2a580f29e 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T15.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T15.js
@@ -18,7 +18,7 @@ var __split = __string.split("");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String(); __split = __string.split(""); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String(); __split = __string.split(""); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 0) {
- $ERROR('#2: var __string = new String(); __split = __string.split(""); __split.length === 0. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String(); __split = __string.split(""); __split.length === 0. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 0) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== undefined) {
- $ERROR('#3: var __string = new String(); __split = __string.split(""); __split[0] === undefined. Actual: '+__split[0] );
+ $ERROR('#3: var __string = new String(); __split = __string.split(""); __split[0] === undefined. Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T16.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T16.js
index a7664c43b..4a3bceb58 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T16.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T16.js
@@ -18,7 +18,7 @@ var __split = __string.split(" ");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String(); __split = __string.split(" "); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String(); __split = __string.split(" "); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String(); __split = __string.split(" "); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String(); __split = __string.split(" "); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "") {
- $ERROR('#3: var __string = new String(); __split = __string.split(" "); __split[0] === "". Actual: '+__split[0] );
+ $ERROR('#3: var __string = new String(); __split = __string.split(" "); __split[0] === "". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T17.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T17.js
index f21647307..e76f25688 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T17.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T17.js
@@ -18,7 +18,7 @@ var __split = __string.split("");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String(" "); __split = __string.split(""); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String(" "); __split = __string.split(""); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String(" "); __split = __string.split(""); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String(" "); __split = __string.split(""); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== " ") {
- $ERROR('#3: var __string = new String(" "); __split = __string.split(""); __split[0] === " ". Actual: '+__split[0] );
+ $ERROR('#3: var __string = new String(" "); __split = __string.split(""); __split[0] === " ". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T18.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T18.js
index 8e8f76073..65971fdd3 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T18.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T18.js
@@ -18,7 +18,7 @@ var __split = __string.split(" ");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String(" "); __split = __string.split(" "); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String(" "); __split = __string.split(" "); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 2) {
- $ERROR('#2: var __string = new String(" "); __split = __string.split(" "); __split.length === 2. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String(" "); __split = __string.split(" "); __split.length === 2. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "") {
- $ERROR('#3: var __string = new String(" "); __split = __string.split(" "); __split[0] === "". Actual: '+__split[0]);
+ $ERROR('#3: var __string = new String(" "); __split = __string.split(" "); __split[0] === "". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#4: var __string = new String(" "); __split = __string.split(" "); __split[1] === "". Actual: '+__split[1] );
+ $ERROR('#4: var __string = new String(" "); __split = __string.split(" "); __split[1] === "". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T19.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T19.js
index bfd2b88a6..b9a9b2a74 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T19.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T19.js
@@ -18,7 +18,7 @@ var __split = __string.split("x");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = ""; __split = __string.split("x"); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = ""; __split = __string.split("x"); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = ""; __split = __string.split("x"); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#2: var __string = ""; __split = __string.split("x"); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "") {
- $ERROR('#3: var __string = ""; __split = __string.split("x"); __split[0] === "". Actual: '+__split[0] );
+ $ERROR('#3: var __string = ""; __split = __string.split("x"); __split[0] === "". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T2.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T2.js
index ccf7ca484..bedfcf81b 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T2.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T2.js
@@ -18,7 +18,7 @@ var __split = __string.split(" ");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one two three four five"); __split = __string.split(" "); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("one two three four five"); __split = __string.split(" "); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 5) {
- $ERROR('#2: var __string = new String("one two three four five"); __split = __string.split(" "); __split.length === 5. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("one two three four five"); __split = __string.split(" "); __split.length === 5. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 5) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "one") {
- $ERROR('#3: var __string = new String("one two three four five"); __split = __string.split(" "); __split[0] === "one". Actual: '+__split[0] );
+ $ERROR('#3: var __string = new String("one two three four five"); __split = __string.split(" "); __split[0] === "one". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "one") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "two") {
- $ERROR('#4: var __string = new String("one two three four five"); __split = __string.split(" "); __split[1] === "two". Actual: '+__split[1] );
+ $ERROR('#4: var __string = new String("one two three four five"); __split = __string.split(" "); __split[1] === "two". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -50,7 +50,7 @@ if (__split[1] !== "two") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[2] !== "three") {
- $ERROR('#5: var __string = new String("one two three four five"); __split = __string.split(" "); __split[2] === "three". Actual: '+__split[2] );
+ $ERROR('#5: var __string = new String("one two three four five"); __split = __string.split(" "); __split[2] === "three". Actual: ' + __split[2]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -58,7 +58,7 @@ if (__split[2] !== "three") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#6
if (__split[3] !== "four") {
- $ERROR('#6: var __string = new String("one two three four five"); __split = __string.split(" "); __split[3] === "four". Actual: '+__split[3] );
+ $ERROR('#6: var __string = new String("one two three four five"); __split = __string.split(" "); __split[3] === "four". Actual: ' + __split[3]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -66,7 +66,7 @@ if (__split[3] !== "four") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#7
if (__split[4] !== "five") {
- $ERROR('#7: var __string = new String("one two three four five"); __split = __string.split(" "); __split[4] === "five". Actual: '+__split[4] );
+ $ERROR('#7: var __string = new String("one two three four five"); __split = __string.split(" "); __split[4] === "five". Actual: ' + __split[4]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T20.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T20.js
index dc5250fa8..b927eeb09 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T20.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T20.js
@@ -18,7 +18,7 @@ var __split = __string.split(new RegExp);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,17 +26,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __string.length) {
- $ERROR('#2: var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __split.length === __string.length. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __split.length === __string.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for ( var i = 0; i < __string.length; i++ ) {
- if (__string.charAt(i)!==__split[i]) {
- $ERROR('#3.'+i+': var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __string.charAt('+i+')===__split['+i+']. Actual: '+__string.charAt(i));
- }
+for (var i = 0; i < __string.length; i++) {
+ if (__string.charAt(i) !== __split[i]) {
+ $ERROR('#3.' + i + ': var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __string.charAt(' + i + ')===__split[' + i + ']. Actual: ' + __string.charAt(i));
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T21.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T21.js
index ea7759b72..dfe48ffd3 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T21.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T21.js
@@ -18,7 +18,7 @@ var __split = __string.split("ll");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); __split = __string.split("ll"); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("hello"); __split = __string.split("ll"); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 2) {
- $ERROR('#2: var __string = new String("hello"); __split = __string.split("ll"); __split.length === 2. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("hello"); __split = __string.split("ll"); __split.length === 2. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "he") {
- $ERROR('#3: var __string = new String("hello"); __split = __string.split("ll"); __split[0] === "he". Actual: '+__split[0]);
+ $ERROR('#3: var __string = new String("hello"); __split = __string.split("ll"); __split[0] === "he". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "he") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "o") {
- $ERROR('#4: var __string = new String("hello"); __split = __string.split("ll"); __split[1] === "o". Actual: '+__split[1] );
+ $ERROR('#4: var __string = new String("hello"); __split = __string.split("ll"); __split[1] === "o". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T22.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T22.js
index f57cd2035..2000c8067 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T22.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T22.js
@@ -18,7 +18,7 @@ var __split = __string.split("l");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); __split = __string.split("l"); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("hello"); __split = __string.split("l"); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 3) {
- $ERROR('#2: var __string = new String("hello"); __split = __string.split("l"); __split.length === 3. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("hello"); __split = __string.split("l"); __split.length === 3. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 3) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "he") {
- $ERROR('#3: var __string = new String("hello"); __split = __string.split("l"); __split[0] === "he". Actual: '+__split[0]);
+ $ERROR('#3: var __string = new String("hello"); __split = __string.split("l"); __split[0] === "he". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "he") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#4: var __string = new String("hello"); __split = __string.split("l"); __split[1] === "". Actual: '+__split[1]);
+ $ERROR('#4: var __string = new String("hello"); __split = __string.split("l"); __split[1] === "". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -50,7 +50,7 @@ if (__split[1] !== "") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[2] !== "o") {
- $ERROR('#5: var __string = new String("hello"); __split = __string.split("l"); __split[2] === "o". Actual: '+__split[2] );
+ $ERROR('#5: var __string = new String("hello"); __split = __string.split("l"); __split[2] === "o". Actual: ' + __split[2]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T23.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T23.js
index e50b1d847..495b83a60 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T23.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T23.js
@@ -18,7 +18,7 @@ var __split = __string.split("x");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); __split = __string.split("x"); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("hello"); __split = __string.split("x"); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String("hello"); __split = __string.split("x"); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("hello"); __split = __string.split("x"); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "hello") {
- $ERROR('#3: var __string = new String("hello"); __split = __string.split("x"); __split[0] === "hello". Actual: '+__split[0] );
+ $ERROR('#3: var __string = new String("hello"); __split = __string.split("x"); __split[0] === "hello". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T24.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T24.js
index 7efcab337..49c6a0f1c 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T24.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T24.js
@@ -18,7 +18,7 @@ var __split = __string.split("h");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); __split = __string.split("h"); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("hello"); __split = __string.split("h"); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 2) {
- $ERROR('#2: var __string = new String("hello"); __split = __string.split("h"); __split.length === 2. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("hello"); __split = __string.split("h"); __split.length === 2. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "") {
- $ERROR('#3: var __string = new String("hello"); __split = __string.split("h"); __split[0] === "". Actual: '+__split[0]);
+ $ERROR('#3: var __string = new String("hello"); __split = __string.split("h"); __split[0] === "". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "ello") {
- $ERROR('#4: var __string = new String("hello"); __split = __string.split("h"); __split[1] === "ello". Actual: '+__split[1] );
+ $ERROR('#4: var __string = new String("hello"); __split = __string.split("h"); __split[1] === "ello". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T25.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T25.js
index e8f450156..ae70cca74 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T25.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T25.js
@@ -18,7 +18,7 @@ var __split = __string.split("o");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); __split = __string.split("o"); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("hello"); __split = __string.split("o"); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 2) {
- $ERROR('#2: var __string = new String("hello"); __split = __string.split("o"); __split.length === 2. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("hello"); __split = __string.split("o"); __split.length === 2. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "hell") {
- $ERROR('#3: var __string = new String("hello"); __split = __string.split("o"); __split[0] === "hell". Actual: '+__split[0]);
+ $ERROR('#3: var __string = new String("hello"); __split = __string.split("o"); __split[0] === "hell". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "hell") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#4: var __string = new String("hello"); __split = __string.split("o"); __split[1] === "". Actual: '+__split[1]);
+ $ERROR('#4: var __string = new String("hello"); __split = __string.split("o"); __split[1] === "". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T26.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T26.js
index 27f6d41d6..3646139de 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T26.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T26.js
@@ -18,7 +18,7 @@ var __split = __string.split("hello");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); __split = __string.split("hello"); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("hello"); __split = __string.split("hello"); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 2) {
- $ERROR('#2: var __string = new String("hello"); __split = __string.split("hello"); __split.length === 2. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("hello"); __split = __string.split("hello"); __split.length === 2. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "") {
- $ERROR('#3: var __string = new String("hello"); __split = __string.split("hello"); __split[0] === "". Actual: '+__split[0]);
+ $ERROR('#3: var __string = new String("hello"); __split = __string.split("hello"); __split[0] === "". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#4: var __string = new String("hello"); __split = __string.split("hello"); __split[1] === "". Actual: '+__split[1] );
+ $ERROR('#4: var __string = new String("hello"); __split = __string.split("hello"); __split[1] === "". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T27.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T27.js
index 865c38c87..c7fd8c546 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T27.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T27.js
@@ -18,7 +18,7 @@ var __split = __string.split(undefined);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); __split = __string.split(undefined); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("hello"); __split = __string.split(undefined); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String("hello"); __split = __string.split(undefined); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("hello"); __split = __string.split(undefined); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "hello") {
- $ERROR('#3: var __string = new String("hello"); __split = __string.split(undefined); __split[0] === "hello". Actual: '+__split[0] );
+ $ERROR('#3: var __string = new String("hello"); __split = __string.split(undefined); __split[0] === "hello". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T28.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T28.js
index 634a2b4cb..6ef0a4657 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T28.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T28.js
@@ -18,7 +18,7 @@ var __split = __string.split("hellothere");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); __split = __string.split("hellothere"); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("hello"); __split = __string.split("hellothere"); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String("hello"); __split = __string.split("hellothere"); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("hello"); __split = __string.split("hellothere"); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "hello") {
- $ERROR('#3: var __string = new String("hello"); __split = __string.split("hellothere"); __split[0] === "hello". Actual: '+__split[0] );
+ $ERROR('#3: var __string = new String("hello"); __split = __string.split("hellothere"); __split[0] === "hello". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T29.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T29.js
index b93e14102..fa342d632 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T29.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T29.js
@@ -17,12 +17,12 @@ Number.prototype.split = String.prototype.split;
var __split = __instance.split(1);
-var __expected = ["","00","","","","22","33","44","60"];
+var __expected = ["", "00", "", "", "", "22", "33", "44", "60"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,17 +30,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
- }
+ $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js
index 0b16fee4d..6dd024d4a 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js
@@ -13,12 +13,12 @@ description: Call split(/ /,2), instance is String("one two three four five")
var __string = new String("one two three four five");
-var __split = __string.split(/ /,2);
+var __split = __string.split(/ /, 2);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 2) {
- $ERROR('#2: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split.length === 2. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split.length === 2. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "one") {
- $ERROR('#3: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split[0] === "one". Actual: '+__split[0] );
+ $ERROR('#3: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split[0] === "one". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "one") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "two") {
- $ERROR('#4: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split[1] === "two". Actual: '+__split[1] );
+ $ERROR('#4: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split[1] === "two". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T30.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T30.js
index 7f17c7f3d..5323ad072 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T30.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T30.js
@@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155);
Number.prototype.split = String.prototype.split;
-var __split = __instance.split(1,1);
+var __split = __instance.split(1, 1);
var __expected = [""];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -38,7 +38,7 @@ if (__split.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __expected[0]) {
- $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] );
+ $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T31.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T31.js
index 45fb07dc2..15adead0f 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T31.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T31.js
@@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155);
Number.prototype.split = String.prototype.split;
-var __split = __instance.split(1,2);
+var __split = __instance.split(1, 2);
-var __expected = ["","00"];
+var __expected = ["", "00"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,17 +30,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.'+index+': __split[index] === '+__expected[index]+'. Actual: '+__split[index] );
- }
+ $ERROR('#3.' + index + ': __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T32.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T32.js
index 926a61515..208852941 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T32.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T32.js
@@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155);
Number.prototype.split = String.prototype.split;
-var __split = __instance.split(1,0);
+var __split = __instance.split(1, 0);
var __expected = [];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -38,7 +38,7 @@ if (__split.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __expected[0]) {
- $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] );
+ $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js
index 3f6695e9b..3d1269637 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js
@@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155);
Number.prototype.split = String.prototype.split;
-var __split = __instance.split(1,100);
+var __split = __instance.split(1, 100);
-var __expected = ["","00","","","","22","33","44","60"];
+var __expected = ["", "00", "", "", "", "22", "33", "44", "60"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,17 +30,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.'+index+': __split[index] === '+__expected[index]+'. Actual: '+__split[index] );
- }
+ $ERROR('#3.' + index + ': __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T34.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T34.js
index 4132da25a..c40f3993a 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T34.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T34.js
@@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155);
Number.prototype.split = String.prototype.split;
-var __split = __instance.split(1,void 0);
+var __split = __instance.split(1, void 0);
-var __expected = ["","00","","","","22","33","44","60"];
+var __expected = ["", "00", "", "", "", "22", "33", "44", "60"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,17 +30,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3: __split[index] === __expected[index]. Actual: '+__split[index] );
- }
+ $ERROR('#3: __split[index] === __expected[index]. Actual: ' + __split[index]);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T35.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T35.js
index 22a23453c..c82748bf2 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T35.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T35.js
@@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155);
Number.prototype.split = String.prototype.split;
-var __split = __instance.split(1, Math.pow(2,32)-1);
+var __split = __instance.split(1, Math.pow(2, 32) - 1);
-var __expected = ["","00","","","","22","33","44","60"];
+var __expected = ["", "00", "", "", "", "22", "33", "44", "60"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,17 +30,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.'+index+': __split[index] === '+__expected[index]+'. Actual: '+__split[index] );
- }
+ $ERROR('#3.' + index + ': __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T36.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T36.js
index d79d2d72d..20e3e84f2 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T36.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T36.js
@@ -22,7 +22,7 @@ var __expected = [];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -38,7 +38,7 @@ if (__split.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __expected[0]) {
- $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] );
+ $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js
index 05850c859..1fa443388 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js
@@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155);
Number.prototype.split = String.prototype.split;
-var __split = __instance.split(1, -Math.pow(2,32)+1);
+var __split = __instance.split(1, -Math.pow(2, 32) + 1);
var __expected = [""];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -38,7 +38,7 @@ if (__split.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __expected[0]) {
- $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] );
+ $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T38.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T38.js
index 1ca64e502..fd0b4b97a 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T38.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T38.js
@@ -20,7 +20,7 @@ var __expected = [];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,7 +28,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -36,6 +36,6 @@ if (__split.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __expected[0]) {
- $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split[0] === '+__expected[0]+'. Actual: '+__split[index] );
+ $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]);
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T39.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T39.js
index c9e9569ca..ee012e98d 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T39.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T39.js
@@ -20,7 +20,7 @@ var __expected = [];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,7 +28,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -36,6 +36,6 @@ if (__split.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __expected[0]) {
- $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split[0] === '+__expected[0]+'. Actual: '+__split[index] );
+ $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]);
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T4.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T4.js
index 95f73fc13..69bed2044 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T4.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T4.js
@@ -18,7 +18,7 @@ var __split = __string.split("");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one two three"); __split = __string.split(""); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("one two three"); __split = __string.split(""); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __string.length) {
- $ERROR('#2: var __string = new String("one two three"); __split = __string.split(""); __split.length === __string.length. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("one two three"); __split = __string.split(""); __split.length === __string.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== __string.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "o") {
- $ERROR('#3: var __string = new String("one two three"); __split = __string.split(""); __split[0] === "o". Actual: '+__split[0] );
+ $ERROR('#3: var __string = new String("one two three"); __split = __string.split(""); __split[0] === "o". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "o") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "n") {
- $ERROR('#4: var __string = new String("one two three"); __split = __string.split(""); __split[1] === "n". Actual: '+__split[1] );
+ $ERROR('#4: var __string = new String("one two three"); __split = __string.split(""); __split[1] === "n". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -50,7 +50,7 @@ if (__split[1] !== "n") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[11] !== "e") {
- $ERROR('#5: var __string = new String("one two three"); __split = __string.split(""); __split[11] === "e". Actual: '+__split[11] );
+ $ERROR('#5: var __string = new String("one two three"); __split = __string.split(""); __split[11] === "e". Actual: ' + __split[11]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -58,7 +58,7 @@ if (__split[11] !== "e") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#6
if (__split[12] !== "e") {
- $ERROR('#6: var __string = new String("one two three"); __split = __string.split(""); __split[12] === "e". Actual: '+__split[12] );
+ $ERROR('#6: var __string = new String("one two three"); __split = __string.split(""); __split[12] === "e". Actual: ' + __split[12]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T40.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T40.js
index 8ae1dcfc9..2f11e0f0f 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T40.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T40.js
@@ -20,7 +20,7 @@ var __expected = ["he"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,7 +28,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -36,6 +36,6 @@ if (__split.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __expected[0]) {
- $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split[0] === '+__expected[0]+'. Actual: '+__split[index] );
+ $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]);
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T41.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T41.js
index 76940f644..d8e21db1e 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T41.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T41.js
@@ -15,12 +15,12 @@ var __instance = new String("hello");
var __split = __instance.split("l", 2);
-var __expected = ["he",""];
+var __expected = ["he", ""];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,17 +28,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.'+index+': var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split[index] === '+__expected[index]+'. Actual: '+__split[index] );
- }
+ $ERROR('#3.' + index + ': var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js
index 3998246a3..5b9b69fc8 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js
@@ -15,12 +15,12 @@ var __instance = new String("hello");
var __split = __instance.split("l", 3);
-var __expected = ["he","","o"];
+var __expected = ["he", "", "o"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,17 +28,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.'+index+': var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split[index] === '+__expected[index]+'. Actual: '+__split[index] );
- }
+ $ERROR('#3.' + index + ': var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T43.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T43.js
index 13a5d18ec..1ec04cfc4 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T43.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T43.js
@@ -15,12 +15,12 @@ var __instance = new String("hello");
var __split = __instance.split("l", 4);
-var __expected = ["he","","o"];
+var __expected = ["he", "", "o"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,17 +28,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.'+index+': var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split[index] === '+__expected[index]+'. Actual: '+__split[index] );
- }
+ $ERROR('#3.' + index + ': var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T5.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T5.js
index bced5a65c..1c8618b6d 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T5.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T5.js
@@ -18,7 +18,7 @@ var __split = __string.split(/,/);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +26,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 3) {
- $ERROR('#2: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split.length === 3. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split.length === 3. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ if (__split.length !== 3) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "one-1") {
- $ERROR('#3: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[0] === "one-1". Actual: '+__split[0] );
+ $ERROR('#3: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[0] === "one-1". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ if (__split[0] !== "one-1") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "two-2") {
- $ERROR('#4: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[1] === "two-2". Actual: '+__split[1] );
+ $ERROR('#4: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[1] === "two-2". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -50,7 +50,7 @@ if (__split[1] !== "two-2") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[2] !== "four-4") {
- $ERROR('#5: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[2] === "four-4". Actual: '+__split[2] );
+ $ERROR('#5: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[2] === "four-4". Actual: ' + __split[2]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T6.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T6.js
index b7c5dc2ad..e9d469d4a 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T6.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T6.js
@@ -18,7 +18,7 @@ var __split = __string.split('');
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,17 +26,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __string.length) {
- $ERROR('#2: var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split.length === __string.length. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split.length === __string.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for ( var i = 0; i < __string.length; i++ ) {
- if (__split[i]!==__string.charAt(i)) {
- $ERROR('#3.'+i+': var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split['+i+']===__string.charAt('+i+'). Actual: '+__split[i]);
- }
+for (var i = 0; i < __string.length; i++) {
+ if (__split[i] !== __string.charAt(i)) {
+ $ERROR('#3.' + i + ': var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split[' + i + ']===__string.charAt(' + i + '). Actual: ' + __split[i]);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T7.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T7.js
index 31a269a9c..e0e5f0ca3 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T7.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T7.js
@@ -21,7 +21,7 @@ var __split = __string.split(void 0);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,17 +29,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for ( var i = 0; i < __expected.length; i++ ) {
- if (__expected[i]!==__split[i]) {
- $ERROR('#3.'+i+': var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __expected['+i+']==='+__split[i]+'. Actual: '+__expected[i]);
- }
+for (var i = 0; i < __expected.length; i++) {
+ if (__expected[i] !== __split[i]) {
+ $ERROR('#3.' + i + ': var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __expected[' + i + ']===' + __split[i] + '. Actual: ' + __expected[i]);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T8.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T8.js
index 6f571dd08..ec0170f44 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T8.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T8.js
@@ -19,7 +19,7 @@ var __split = __string.split(null);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,17 +27,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for ( var i = 0; i < __expected.length; i++ ) {
- if (__expected[i]!==__split[i]) {
- $ERROR('#3.'+i+': var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __expected['+i+']==='+__split[i]+'. Actual: '+__expected[i]);
- }
+for (var i = 0; i < __expected.length; i++) {
+ if (__expected[i] !== __split[i]) {
+ $ERROR('#3.' + i + ': var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __expected[' + i + ']===' + __split[i] + '. Actual: ' + __expected[i]);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T9.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T9.js
index 47aed96ec..8d7da32de 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T9.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T9.js
@@ -19,7 +19,7 @@ var __split = __string.split(true);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,17 +27,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for ( var i = 0; i < __expected.length; i++ ) {
- if (__expected[i]!==__split[i]) {
- $ERROR('#3.'+i+': var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __expected['+i+']==='+__split[i]+'. Actual: '+__expected[i]);
- }
+for (var i = 0; i < __expected.length; i++) {
+ if (__expected[i] !== __split[i]) {
+ $ERROR('#3.' + i + ': var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __expected[' + i + ']===' + __split[i] + '. Actual: ' + __expected[i]);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T1.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T1.js
index 0b1cc3a24..f9494680c 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T1.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T1.js
@@ -17,7 +17,7 @@ var __split = __string.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -25,7 +25,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -33,7 +33,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "one,two,three,four,five") {
- $ERROR('#3: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split[0] === "one,two,three,four,five". Actual: '+__split[0] );
+ $ERROR('#3: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split[0] === "one,two,three,four,five". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T10.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T10.js
index 4193458cb..0958d37c5 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T10.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T10.js
@@ -17,7 +17,7 @@ var __split = __string.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String; __split = __string.split(); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String; __split = __string.split(); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -25,7 +25,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String; __split = __string.split(); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String; __split = __string.split(); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -33,7 +33,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "") {
- $ERROR('#3: var __string = new String; __split = __string.split(); __split[0] === "". Actual: '+__split[0] );
+ $ERROR('#3: var __string = new String; __split = __string.split(); __split[0] === "". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T11.js
index 57b559c75..07f2d68c3 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T11.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T11.js
@@ -17,7 +17,7 @@ var __split = __string.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String(" "); __split = __string.split(); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String(" "); __split = __string.split(); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -25,7 +25,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String(" "); __split = __string.split(); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String(" "); __split = __string.split(); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -33,7 +33,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== " ") {
- $ERROR('#3: var __string = new String(" "); __split = __string.split(); __split[0] === " ". Actual: '+__split[0] );
+ $ERROR('#3: var __string = new String(" "); __split = __string.split(); __split[0] === " ". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T2.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T2.js
index ae6a6f525..58670f6d0 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T2.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T2.js
@@ -19,7 +19,7 @@ var __split = __instance.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#2: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "[object Object]") {
- $ERROR('#3: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "[object Object]". Actual: '+__split[0] );
+ $ERROR('#3: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "[object Object]". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T3.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T3.js
index 4e4190bf0..137d8465a 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T3.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T3.js
@@ -10,7 +10,11 @@ es5id: 15.5.4.14_A3_T3
description: Instance is function(){}
---*/
-var __instance = { toString: function() { return "function(){}";} };
+var __instance = {
+ toString: function() {
+ return "function(){}";
+ }
+};
__instance.split = String.prototype.split;
@@ -19,7 +23,7 @@ var __split = __instance.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,15 +31,15 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#2: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-if (__split[0].substring(0,8) !== "function") {
- $ERROR('#3: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split[0].substring(0,8) === "function". Actual: '+__split[0].substring(0,8) );
+if (__split[0].substring(0, 8) !== "function") {
+ $ERROR('#3: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split[0].substring(0,8) === "function". Actual: ' + __split[0].substring(0, 8));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T4.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T4.js
index 4fdbc54d4..36f0fb2b2 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T4.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T4.js
@@ -19,7 +19,7 @@ var __split = __instance.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#2: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "NaN") {
- $ERROR('#3: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "NaN". Actual: '+__split[0] );
+ $ERROR('#3: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "NaN". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T5.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T5.js
index 5d59496dc..ad0cdda56 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T5.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T5.js
@@ -19,7 +19,7 @@ var __split = __instance.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#2: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "-1234567890") {
- $ERROR('#3: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "-1234567890". Actual: '+__split[0] );
+ $ERROR('#3: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "-1234567890". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T6.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T6.js
index 5e8882c5d..c68a29ee1 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T6.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T6.js
@@ -19,7 +19,7 @@ var __split = __instance.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#2: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __instance.toString()) {
- $ERROR('#3: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === __instance.toString(). Actual: '+__split[0] );
+ $ERROR('#3: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === __instance.toString(). Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T7.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T7.js
index da708173f..661bf4e36 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T7.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T7.js
@@ -19,7 +19,7 @@ var __split = __instance.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#2: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "[object Math]") {
- $ERROR('#3: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "[object Math]". Actual: '+__split[0] );
+ $ERROR('#3: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "[object Math]". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T8.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T8.js
index 197e89afd..e1a309ef2 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T8.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T8.js
@@ -10,7 +10,7 @@ es5id: 15.5.4.14_A3_T8
description: Instance is Array(1,2,3,4,5)
---*/
-var __instance = new Array(1,2,3,4,5);
+var __instance = new Array(1, 2, 3, 4, 5);
__instance.split = String.prototype.split;
@@ -19,7 +19,7 @@ var __split = __instance.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#2: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "1,2,3,4,5") {
- $ERROR('#3: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "1,2,3,4,5". Actual: '+__split[0] );
+ $ERROR('#3: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "1,2,3,4,5". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T9.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T9.js
index 4694e6d8f..b3bf706cf 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T9.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T9.js
@@ -19,7 +19,7 @@ var __split = __instance.split();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#2: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "false") {
- $ERROR('#3: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "false". Actual: '+__split[0] );
+ $ERROR('#3: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "false". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T1.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T1.js
index 3086e76b7..8306e88d7 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T1.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T1.js
@@ -19,7 +19,7 @@ var __split = __string.split(__re);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 3) {
- $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split.length === 3. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split.length === 3. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 3) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "he") {
- $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[0] === "he". Actual: '+__split[0]);
+ $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[0] === "he". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -43,7 +43,7 @@ if (__split[0] !== "he") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[1] === "". Actual: '+__split[1]);
+ $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[1] === "". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -51,7 +51,7 @@ if (__split[1] !== "") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[2] !== "o") {
- $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[2] === "o". Actual: '+__split[2] );
+ $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[2] === "o". Actual: ' + __split[2]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T10.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T10.js
index 26a49a0aa..296ac5ee5 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T10.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T10.js
@@ -16,12 +16,12 @@ var __re = new RegExp;
var __split = __string.split(__re);
-var __expected = ["h","e","l","l","o"];
+var __expected = ["h", "e", "l", "l", "o"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,16 +29,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
+ $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T11.js
index a23f5e726..32503116d 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T11.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T11.js
@@ -21,7 +21,7 @@ var __expected = [];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,7 +29,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -37,7 +37,7 @@ if (__split.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __expected[0]) {
- $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] );
+ $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T12.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T12.js
index 820d433fe..05cc593e5 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T12.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T12.js
@@ -21,7 +21,7 @@ var __expected = ["h"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,7 +29,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -37,7 +37,7 @@ if (__split.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __expected[0]) {
- $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[0] );
+ $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T13.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T13.js
index e9d93c574..72683da88 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T13.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T13.js
@@ -21,7 +21,7 @@ var __expected = ["h", "e"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,16 +29,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
+ $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T14.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T14.js
index 52ebdc475..a3e264a31 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T14.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T14.js
@@ -21,7 +21,7 @@ var __expected = ["h", "e", "l"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,16 +29,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
+ $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T15.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T15.js
index ecfd109af..88d744ae3 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T15.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T15.js
@@ -16,12 +16,12 @@ var __re = new RegExp;
var __split = __string.split(__re, 4);
-var __expected = ["h", "e", "l" ,"l"];
+var __expected = ["h", "e", "l", "l"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,16 +29,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
+ $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T16.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T16.js
index 5b669ab81..b97b9aa5d 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T16.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T16.js
@@ -23,7 +23,7 @@ var __expected = ["h", "e", "l", "l", "o"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -31,16 +31,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
+ $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T17.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T17.js
index fcea734ec..5fecb0dca 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T17.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T17.js
@@ -23,7 +23,7 @@ var __expected = ["h", "e", "l", "l", "o"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -31,16 +31,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
+ $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T18.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T18.js
index 8121de01b..68a70929c 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T18.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T18.js
@@ -21,7 +21,7 @@ var __expected = [];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,16 +29,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
+ $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T19.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T19.js
index f9de8ea34..3df56dacf 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T19.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T19.js
@@ -16,12 +16,12 @@ var __re = /\s/;
var __split = __string.split(__re);
-var __expected = ["a","b","c","de","f"];
+var __expected = ["a", "b", "c", "de", "f"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,16 +29,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
+ $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T2.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T2.js
index 5454f5281..b6d9396e8 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T2.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T2.js
@@ -14,12 +14,12 @@ var __string = new String("hello");
var __re = /l/;
-var __split = __string.split(__re,0);
+var __split = __string.split(__re, 0);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,0); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,0); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 0) {
- $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,0); __split.length === 0. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,0); __split.length === 0. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T20.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T20.js
index 5825800d0..cddd4f260 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T20.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T20.js
@@ -16,14 +16,14 @@ var __string = new String("a b c de f");
var __re = /\s/;
-var __split = __string.split(__re,3);
+var __split = __string.split(__re, 3);
-var __expected = ["a","b","c"];
+var __expected = ["a", "b", "c"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -31,16 +31,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
+ $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T21.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T21.js
index 8dbfb55ad..16485eb04 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T21.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T21.js
@@ -21,7 +21,7 @@ var __expected = ["a b c de f"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,7 +29,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -37,7 +37,7 @@ if (__split.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== __expected[0]) {
- $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] );
+ $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T22.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T22.js
index 1aed36c4a..8ab1e54bf 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T22.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T22.js
@@ -18,12 +18,12 @@ var __re = /\d+/;
var __split = __string.split(__re);
-var __expected = ["dfe","iu "," =+","--"];
+var __expected = ["dfe", "iu ", " =+", "--"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -31,16 +31,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
+ $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T23.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T23.js
index 6cfc3d655..2118c1e0e 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T23.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T23.js
@@ -18,12 +18,12 @@ var __re = new RegExp('\\d+');
var __split = __string.split(__re);
-var __expected = ["dfe","iu "," =+","--"];
+var __expected = ["dfe", "iu ", " =+", "--"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -31,16 +31,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
+ $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T24.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T24.js
index 5ea67cedc..e946d99b5 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T24.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T24.js
@@ -16,12 +16,12 @@ var __re = /[a-z]/;
var __split = __string.split(__re);
-var __expected = ["","","",""];
+var __expected = ["", "", "", ""];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,16 +29,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
+ $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T25.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T25.js
index 16f05e87a..59cc456a5 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T25.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T25.js
@@ -16,12 +16,12 @@ var __re = new RegExp('[a-z]');
var __split = __string.split(__re);
-var __expected = ["","","",""];
+var __expected = ["", "", "", ""];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,16 +29,16 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
+ $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T3.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T3.js
index 791426679..047e8d44e 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T3.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T3.js
@@ -14,12 +14,12 @@ var __string = new String("hello");
var __re = /l/;
-var __split = __string.split(__re,1);
+var __split = __string.split(__re, 1);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 1) {
- $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split.length === 1. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split.length === 1. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 1) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "he") {
- $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split[0] === "he". Actual: '+__split[0] );
+ $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split[0] === "he". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T4.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T4.js
index b57bc9bdb..4c713ecb8 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T4.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T4.js
@@ -14,12 +14,12 @@ var __string = new String("hello");
var __re = /l/;
-var __split = __string.split(__re,2);
+var __split = __string.split(__re, 2);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 2) {
- $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split.length === 2. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split.length === 2. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 2) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "he") {
- $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split[0] === "he". Actual: '+__split[0]);
+ $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split[0] === "he". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -43,7 +43,7 @@ if (__split[0] !== "he") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split[1] === "". Actual: '+__split[1] );
+ $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split[1] === "". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T5.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T5.js
index 0f1354a76..ed7869865 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T5.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T5.js
@@ -14,12 +14,12 @@ var __string = new String("hello");
var __re = /l/;
-var __split = __string.split(__re,3);
+var __split = __string.split(__re, 3);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 3) {
- $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split.length === 3. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split.length === 3. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 3) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "he") {
- $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[0] === "he". Actual: '+__split[0]);
+ $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[0] === "he". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -43,7 +43,7 @@ if (__split[0] !== "he") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[1] === "". Actual: '+__split[1]);
+ $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[1] === "". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -51,7 +51,7 @@ if (__split[1] !== "") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[2] !== "o") {
- $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[2] === "o". Actual: '+__split[2] );
+ $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[2] === "o". Actual: ' + __split[2]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T6.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T6.js
index cb69ee51e..0a8a68942 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T6.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T6.js
@@ -14,12 +14,12 @@ var __string = new String("hello");
var __re = /l/;
-var __split = __string.split(__re,4);
+var __split = __string.split(__re, 4);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 3) {
- $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split.length === 3. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split.length === 3. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ if (__split.length !== 3) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "he") {
- $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[0] === "he". Actual: '+__split[0]);
+ $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[0] === "he". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -43,7 +43,7 @@ if (__split[0] !== "he") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[1] === "". Actual: '+__split[1]);
+ $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[1] === "". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -51,7 +51,7 @@ if (__split[1] !== "") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[2] !== "o") {
- $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[2] === "o". Actual: '+__split[2] );
+ $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[2] === "o". Actual: ' + __split[2]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T7.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T7.js
index dc4d0275e..85a4f3b34 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T7.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T7.js
@@ -21,7 +21,7 @@ var __split = __string.split(__re, void 0);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,7 +29,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 3) {
- $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split.length === 3. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split.length === 3. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -37,7 +37,7 @@ if (__split.length !== 3) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "he") {
- $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[0] === "he". Actual: '+__split[0]);
+ $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[0] === "he". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -45,7 +45,7 @@ if (__split[0] !== "he") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[1] === "". Actual: '+__split[1]);
+ $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[1] === "". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -53,7 +53,7 @@ if (__split[1] !== "") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[2] !== "o") {
- $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[2] === "o". Actual: '+__split[2] );
+ $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[2] === "o". Actual: ' + __split[2]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T8.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T8.js
index 2f4d49ed8..4ecc5fac7 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T8.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T8.js
@@ -19,7 +19,7 @@ var __split = __string.split(__re, "hi");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, "hi"); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, "hi"); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 0) {
- $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, "hi"); __split.length === 0. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, "hi"); __split.length === 0. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T9.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T9.js
index 2d4ac920a..bea17ccf4 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T9.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T9.js
@@ -21,7 +21,7 @@ var __split = __string.split(__re, undefined);
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,7 +29,7 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== 3) {
- $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split.length === 3. Actual: '+__split.length );
+ $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split.length === 3. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -37,7 +37,7 @@ if (__split.length !== 3) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__split[0] !== "he") {
- $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[0] === "he". Actual: '+__split[0]);
+ $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[0] === "he". Actual: ' + __split[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -45,7 +45,7 @@ if (__split[0] !== "he") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (__split[1] !== "") {
- $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[1] === "". Actual: '+__split[1]);
+ $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[1] === "". Actual: ' + __split[1]);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -53,7 +53,7 @@ if (__split[1] !== "") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#5
if (__split[2] !== "o") {
- $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[2] === "o". Actual: '+__split[2] );
+ $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[2] === "o". Actual: ' + __split[2]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A6.js b/test/built-ins/String/prototype/split/S15.5.4.14_A6.js
index 8d714bf6d..85d6a2e7c 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A6.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A6.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.split.prototype
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.prototype.split.prototype !== undefined) {
- $ERROR('#1: String.prototype.split.prototype === undefined. Actual: '+String.prototype.split.prototype );
+ $ERROR('#1: String.prototype.split.prototype === undefined. Actual: ' + String.prototype.split.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A7.js b/test/built-ins/String/prototype/split/S15.5.4.14_A7.js
index 7aeac1323..13b7b1d0c 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A7.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A7.js
@@ -13,5 +13,5 @@ try {
var __instance = new __FACTORY;
$ERROR('#1: __FACTORY = String.prototype.split; "__instance = new __FACTORY" lead to throwing exception');
} catch (e) {
- if (e instanceof Test262Error) throw e;
+ if (e instanceof Test262Error) throw e;
}
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A8.js b/test/built-ins/String/prototype/split/S15.5.4.14_A8.js
index 640f04120..4f0cd2184 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A8.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A8.js
@@ -12,7 +12,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.split.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.split.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.split.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,14 +28,14 @@ if (String.prototype.split.propertyIsEnumerable('length')) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#2
-var count=0;
+var count = 0;
-for (var p in String.prototype.split){
- if (p==="length") count++;
+for (var p in String.prototype.split) {
+ if (p === "length") count++;
}
if (count !== 0) {
- $ERROR('#2: count=0; for (p in String.prototype.split){if (p==="length") count++;}; count === 0. Actual: '+count );
+ $ERROR('#2: count=0; for (p in String.prototype.split){if (p==="length") count++;}; count === 0. Actual: ' + count);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A9.js b/test/built-ins/String/prototype/split/S15.5.4.14_A9.js
index c63153264..131d8017e 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A9.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A9.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.split.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.split.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.split.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (!delete String.prototype.split.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.split.hasOwnProperty('length')) {
- $ERROR('#2: delete String.prototype.split.length; String.prototype.split.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.split.hasOwnProperty('length'));
+ $ERROR('#2: delete String.prototype.split.length; String.prototype.split.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.split.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/startsWith/return-true-if-searchstring-is-empty.js b/test/built-ins/String/prototype/startsWith/return-true-if-searchstring-is-empty.js
index 295687133..d588fd061 100644
--- a/test/built-ins/String/prototype/startsWith/return-true-if-searchstring-is-empty.js
+++ b/test/built-ins/String/prototype/startsWith/return-true-if-searchstring-is-empty.js
@@ -37,4 +37,4 @@ assert(
assert(
str.startsWith('', Infinity),
'str.startsWith("", Infinity) returns true'
-); \ No newline at end of file
+);
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A10.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A10.js
index 792a205e7..c59e390c1 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A10.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A10.js
@@ -13,19 +13,21 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.substring.hasOwnProperty('length'))) {
- $ERROR('#1: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.substring.hasOwnProperty('length'));
+ $ERROR('#1: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.substring.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
var __obj = String.prototype.substring.length;
-verifyNotWritable(String.prototype.substring, "length", null, function(){return "shifted";});
+verifyNotWritable(String.prototype.substring, "length", null, function() {
+ return "shifted";
+});
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.substring.length !== __obj) {
- $ERROR('#2: __obj = String.prototype.substring.length; String.prototype.substring.length = function(){return "shifted";}; String.prototype.substring.length === __obj. Actual: '+String.prototype.substring.length );
+ $ERROR('#2: __obj = String.prototype.substring.length; String.prototype.substring.length = function(){return "shifted";}; String.prototype.substring.length === __obj. Actual: ' + String.prototype.substring.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A11.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A11.js
index 020b8a0c5..b09a01d2d 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A11.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A11.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.substring.length
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.substring.hasOwnProperty("length"))) {
- $ERROR('#1: String.prototype.substring.hasOwnProperty("length") return true. Actual: '+String.prototype.substring.hasOwnProperty("length"));
+ $ERROR('#1: String.prototype.substring.hasOwnProperty("length") return true. Actual: ' + String.prototype.substring.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -18,7 +18,7 @@ if (!(String.prototype.substring.hasOwnProperty("length"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.substring.length !== 2) {
- $ERROR('#2: String.prototype.substring.length === 2. Actual: '+String.prototype.substring.length );
+ $ERROR('#2: String.prototype.substring.length === 2. Actual: ' + String.prototype.substring.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T1.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T1.js
index c737a2f30..a653a6ee5 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T1.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T1.js
@@ -14,7 +14,7 @@ __instance.substring = String.prototype.substring;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.substring(false, true) !== "t") {
- $ERROR('#1: __instance = new Object(true); __instance.substring = String.prototype.substring; __instance.substring(false, true) === "t". Actual: '+__instance.substring(false, true) );
+ $ERROR('#1: __instance = new Object(true); __instance.substring = String.prototype.substring; __instance.substring(false, true) === "t". Actual: ' + __instance.substring(false, true));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T10.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T10.js
index 2770321ed..355476880 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T10.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T10.js
@@ -9,15 +9,23 @@ description: >
object have overrided valueOf function
---*/
-var __obj = {valueOf:function(){return 2;}};
+var __obj = {
+ valueOf: function() {
+ return 2;
+ }
+};
var __str = "\u0035ABBBABAB";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- if (__str.substring(__obj, function(){return __str.substring(0,1);}()) !== "BBB") {
- $ERROR('#1: var __obj = {valueOf:function(){return 2;}}; var __str = "\u0035ABBBABAB"; __str.substring(__obj, function(){return __str.substring(0,1);}()) === "BBB". Actual: '+__str.substring(__obj, function(){return __str.substring(0,1);}()) );
- }
+if (__str.substring(__obj, function() {
+ return __str.substring(0, 1);
+ }()) !== "BBB") {
+ $ERROR('#1: var __obj = {valueOf:function(){return 2;}}; var __str = "\u0035ABBBABAB"; __str.substring(__obj, function(){return __str.substring(0,1);}()) === "BBB". Actual: ' + __str.substring(__obj, function() {
+ return __str.substring(0, 1);
+ }()));
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T11.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T11.js
index f17b396d9..e3b97ed32 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T11.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T11.js
@@ -9,19 +9,27 @@ description: >
overrided valueOf function, that return exception
---*/
-var __obj = {valueOf:function(){throw "instart";}};
-var __obj2 = {valueOf:function(){throw "inend";}};
+var __obj = {
+ valueOf: function() {
+ throw "instart";
+ }
+};
+var __obj2 = {
+ valueOf: function() {
+ throw "inend";
+ }
+};
var __str = "ABB\u0041BABAB";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __str.substring(__obj,__obj2);
- $ERROR('#1: "var x = __str.substring(__obj,__obj2)" lead to throw exception');
- } catch (e) {
- if (e!=="instart") {
- $ERROR('#1.1: Exception === "instart". Actual: '+e);
- }
- }
+try {
+ var x = __str.substring(__obj, __obj2);
+ $ERROR('#1: "var x = __str.substring(__obj,__obj2)" lead to throw exception');
+} catch (e) {
+ if (e !== "instart") {
+ $ERROR('#1.1: Exception === "instart". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T12.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T12.js
index b8f9af963..43ae7ac78 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T12.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T12.js
@@ -11,19 +11,30 @@ description: >
return exception
---*/
-var __obj = {valueOf:function(){return {};}, toString:function(){throw "instart";}};
-var __obj2 = {valueOf:function(){throw "inend";}};
+var __obj = {
+ valueOf: function() {
+ return {};
+ },
+ toString: function() {
+ throw "instart";
+ }
+};
+var __obj2 = {
+ valueOf: function() {
+ throw "inend";
+ }
+};
var __str = new String("ABB\u0041BABAB");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __str.substring(__obj, __obj2);
- $ERROR('#1: "var x = __str.substring(__obj,__obj2)" lead to throw exception');
- } catch (e) {
- if (e!=="instart") {
- $ERROR('#1.1: Exception ==="instart". Actual: '+e);
- }
- }
+try {
+ var x = __str.substring(__obj, __obj2);
+ $ERROR('#1: "var x = __str.substring(__obj,__obj2)" lead to throw exception');
+} catch (e) {
+ if (e !== "instart") {
+ $ERROR('#1.1: Exception ==="instart". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T13.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T13.js
index f74970094..8efdfb328 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T13.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T13.js
@@ -10,18 +10,29 @@ description: >
overrided toString function, that return exception
---*/
-var __obj = {valueOf:function(){return {};}, toString:function(){return 1;}};
-var __obj2 = {toString:function(){throw "inend";}};
+var __obj = {
+ valueOf: function() {
+ return {};
+ },
+ toString: function() {
+ return 1;
+ }
+};
+var __obj2 = {
+ toString: function() {
+ throw "inend";
+ }
+};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try {
- var x = "ABB\u0041BABAB\u0031BBAA".substring(__obj, __obj2);
- $ERROR('#1: var x = "ABB\\u0041BABAB\\u0031BBAA".substring(__obj,__obj2) lead to throw exception');
+ var x = "ABB\u0041BABAB\u0031BBAA".substring(__obj, __obj2);
+ $ERROR('#1: var x = "ABB\\u0041BABAB\\u0031BBAA".substring(__obj,__obj2) lead to throw exception');
} catch (e) {
- if (e!=="inend") {
- $ERROR('#1.1: Exception === "inend". Actual: '+e);
- }
+ if (e !== "inend") {
+ $ERROR('#1.1: Exception === "inend". Actual: ' + e);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T14.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T14.js
index e9e4d0750..4f85a9e09 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T14.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T14.js
@@ -9,8 +9,8 @@ description: Used one argument, that is function(){}(). Instance is string
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if ("report".substring(function(){}()) !== "report") {
- $ERROR('#1: "report".substring(function(){}()) === "report". Actual: '+"report".substring(function(){}()) );
+if ("report".substring(function() {}()) !== "report") {
+ $ERROR('#1: "report".substring(function(){}()) === "report". Actual: ' + "report".substring(function() {}()));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T15.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T15.js
index 50af2e9d8..37c4bc704 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T15.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T15.js
@@ -16,8 +16,8 @@ Number.prototype.substring = String.prototype.substring;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__num.substring()!=="11.001002") {
- $ERROR('#1: var __num = 11.001002; Number.prototype.substring = String.prototype.substring; __num.substring()==="11.001002". Actual: '+__num.substring());
+if (__num.substring() !== "11.001002") {
+ $ERROR('#1: var __num = 11.001002; Number.prototype.substring = String.prototype.substring; __num.substring()==="11.001002". Actual: ' + __num.substring());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T2.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T2.js
index 21abf6d49..658ce9d2b 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T2.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T2.js
@@ -15,8 +15,12 @@ __instance.substring = String.prototype.substring;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.substring(function(){return true;}(),x) !== "alse") {
- $ERROR('#1: var x; __instance = new Boolean; __instance.substring = String.prototype.substring; __instance.substring(function(){return true;}(),x) === "alse". Actual: '+__instance.substring(function(){return true;}(),x) );
+if (__instance.substring(function() {
+ return true;
+ }(), x) !== "alse") {
+ $ERROR('#1: var x; __instance = new Boolean; __instance.substring = String.prototype.substring; __instance.substring(function(){return true;}(),x) === "alse". Actual: ' + __instance.substring(function() {
+ return true;
+ }(), x));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T4.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T4.js
index 8e5be04b6..aaf8f7e24 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T4.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T4.js
@@ -11,8 +11,12 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (function(){return "gnulluna"}().substring(null, -3) !== "") {
- $ERROR('#1: function(){return "gnulluna"}().substring(null, -3) === "". Actual: '+function(){return "gnulluna"}().substring(null, -3) );
+if (function() {
+ return "gnulluna"
+ }().substring(null, -3) !== "") {
+ $ERROR('#1: function(){return "gnulluna"}().substring(null, -3) === "". Actual: ' + function() {
+ return "gnulluna"
+ }().substring(null, -3));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T5.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T5.js
index 2f716f58a..9efb6cc77 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T5.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T5.js
@@ -9,17 +9,19 @@ description: >
object, that have overrided valueOf function
---*/
-__func.valueOf=function(){return "gnulluna"};
+__func.valueOf = function() {
+ return "gnulluna"
+};
-Function.prototype.substring=String.prototype.substring;
+Function.prototype.substring = String.prototype.substring;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__func.substring(null, Function()) !== "") {
- $ERROR('#1: __func.valueOf=function(){return "gnulluna"}; Function.prototype.substring=String.prototype.substring; function __func(){}; __func.substring(null, Function()) === "". Actual: '+__func.substring(null, Function()) );
+ $ERROR('#1: __func.valueOf=function(){return "gnulluna"}; Function.prototype.substring=String.prototype.substring; function __func(){}; __func.substring(null, Function()) === "". Actual: ' + __func.substring(null, Function()));
}
//
//////////////////////////////////////////////////////////////////////////////
-function __func(){};
+function __func() {};
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T6.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T6.js
index d41f4b1c2..d9538d5f6 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T6.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T6.js
@@ -11,8 +11,8 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (new String("undefined").substring(x,3) !== "und") {
- $ERROR('#1: var x; new String("undefined").substring(x,3) === "und". Actual: '+new String("undefined").substring(x,3) );
+if (new String("undefined").substring(x, 3) !== "und") {
+ $ERROR('#1: var x; new String("undefined").substring(x,3) === "und". Actual: ' + new String("undefined").substring(x, 3));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T7.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T7.js
index eecbb5da7..fa599a546 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T7.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T7.js
@@ -9,8 +9,8 @@ description: Arguments are symbol and undefined, and instance is String
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (String(void 0).substring("e",undefined) !== "undefined") {
- $ERROR('#1: String(void 0).substring("e",undefined) === "undefined". Actual: '+String(void 0).substring("e",undefined) );
+if (String(void 0).substring("e", undefined) !== "undefined") {
+ $ERROR('#1: String(void 0).substring("e",undefined) === "undefined". Actual: ' + String(void 0).substring("e", undefined));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T8.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T8.js
index c7e0a5953..1279d0ebe 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T8.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T8.js
@@ -9,12 +9,14 @@ description: >
String(object), object have overrided toString function
---*/
-var __obj = {toString:function(){}};
+var __obj = {
+ toString: function() {}
+};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (String(__obj).substring(-4,void 0) !== "undefined") {
- $ERROR('#1: __obj = {toString:function(){}}; String(__obj).substring(-4,void 0) === "undefined". Actual: '+String(__obj).substring(-4,void 0) );
+if (String(__obj).substring(-4, void 0) !== "undefined") {
+ $ERROR('#1: __obj = {toString:function(){}}; String(__obj).substring(-4,void 0) === "undefined". Actual: ' + String(__obj).substring(-4, void 0));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T9.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T9.js
index b4b0053b9..1720c35f4 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T9.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T9.js
@@ -11,14 +11,14 @@ description: >
---*/
var __obj = {
- valueOf:function(){},
- toString:void 0
+ valueOf: function() {},
+ toString: void 0
};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (new String(__obj).substring(/*(function(){})()*/undefined,undefined) !== "undefined") {
- $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).substring(/*(function(){})()*/undefined,undefined) === "undefined". Actual: '+new String(__obj).substring(/*(function(){})()*/undefined,undefined) );
+if (new String(__obj).substring( /*(function(){})()*/ undefined, undefined) !== "undefined") {
+ $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).substring(/*(function(){})()*/undefined,undefined) === "undefined". Actual: ' + new String(__obj).substring( /*(function(){})()*/ undefined, undefined));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T1.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T1.js
index a87e1b4e5..499a890e7 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T1.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T1.js
@@ -12,7 +12,7 @@ var __string = new String("this is a string object");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __string.substring() !== "string") {
- $ERROR('#1: __string = new String("this is a string object"); typeof __string.substring() === "string". Actual: '+typeof __string.substring() );
+ $ERROR('#1: __string = new String("this is a string object"); typeof __string.substring() === "string". Actual: ' + typeof __string.substring());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T10.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T10.js
index 44c719d2e..c98235acd 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T10.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T10.js
@@ -11,8 +11,8 @@ var __string = new String("this_is_a_string object");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.substring(0,8) !== "this_is_") {
- $ERROR('#1: __string = new String("this_is_a_string object"); __string.substring(0,8) === "this_is_". Actual: '+__string.substring(0,8) );
+if (__string.substring(0, 8) !== "this_is_") {
+ $ERROR('#1: __string = new String("this_is_a_string object"); __string.substring(0,8) === "this_is_". Actual: ' + __string.substring(0, 8));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T2.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T2.js
index 179af831e..3fec5dfee 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T2.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T2.js
@@ -12,7 +12,7 @@ var __string = new String('this is a string object');
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__string.substring(NaN, Infinity) !== "this is a string object") {
- $ERROR('#1: __string = new String(\'this is a string object\'); __string.substring(NaN, Infinity) === "this is a string object". Actual: '+__string.substring(NaN, Infinity) );
+ $ERROR('#1: __string = new String(\'this is a string object\'); __string.substring(NaN, Infinity) === "this is a string object". Actual: ' + __string.substring(NaN, Infinity));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T3.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T3.js
index 18201d070..3fab39c9b 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T3.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T3.js
@@ -11,8 +11,8 @@ var __string = new String("");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.substring(1,0) !== "") {
- $ERROR('#1: __string = new String(""); __string.substring(1,0) === "". Actual: '+__string.substring(1,0) );
+if (__string.substring(1, 0) !== "") {
+ $ERROR('#1: __string = new String(""); __string.substring(1,0) === "". Actual: ' + __string.substring(1, 0));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T4.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T4.js
index d10dc05a3..95095d5e1 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T4.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T4.js
@@ -12,7 +12,7 @@ var __string = new String("this is a string object");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__string.substring(Infinity, NaN) !== "this is a string object") {
- $ERROR('#1: __string = new String("this is a string object"); __string.substring(Infinity, NaN) === "this is a string object". Actual: '+__string.substring(Infinity, NaN) );
+ $ERROR('#1: __string = new String("this is a string object"); __string.substring(Infinity, NaN) === "this is a string object". Actual: ' + __string.substring(Infinity, NaN));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T5.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T5.js
index 6d5d0a849..15c49967a 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T5.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T5.js
@@ -12,7 +12,7 @@ var __string = new String("this is a string object");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__string.substring(Infinity, Infinity) !== "") {
- $ERROR('#1: __string = new String("this is a string object"); __string.substring(Infinity, Infinity) === "". Actual: '+__string.substring(Infinity, Infinity) );
+ $ERROR('#1: __string = new String("this is a string object"); __string.substring(Infinity, Infinity) === "". Actual: ' + __string.substring(Infinity, Infinity));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T6.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T6.js
index aec40ce40..9e78388c9 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T6.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T6.js
@@ -11,8 +11,8 @@ var __string = new String("this is a string object");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.substring(-0.01,0) !== "") {
- $ERROR('#1: __string = new String("this is a string object"); __string.substring(-0.01,0) === "". Actual: '+__string.substring(-0.01,0) );
+if (__string.substring(-0.01, 0) !== "") {
+ $ERROR('#1: __string = new String("this is a string object"); __string.substring(-0.01,0) === "". Actual: ' + __string.substring(-0.01, 0));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T7.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T7.js
index 4ce872828..d510a6481 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T7.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T7.js
@@ -12,7 +12,7 @@ var __string = new String("this is a string object");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__string.substring(__string.length, __string.length) !== "") {
- $ERROR('#1: __string = new String("this is a string object"); __string.substring(__string.length, __string.length) === "". Actual: '+__string.substring(__string.length, __string.length) );
+ $ERROR('#1: __string = new String("this is a string object"); __string.substring(__string.length, __string.length) === "". Actual: ' + __string.substring(__string.length, __string.length));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T8.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T8.js
index e73ef3e64..41618595e 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T8.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T8.js
@@ -11,8 +11,8 @@ var __string = new String("this is a string object");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__string.substring(__string.length+1, 0) !== "this is a string object") {
- $ERROR('#1: __string = new String("this is a string object"); __string.substring(__string.length+1, 0) === "this is a string object". Actual: '+__string.substring(__string.length+1, 0) );
+if (__string.substring(__string.length + 1, 0) !== "this is a string object") {
+ $ERROR('#1: __string = new String("this is a string object"); __string.substring(__string.length+1, 0) === "this is a string object". Actual: ' + __string.substring(__string.length + 1, 0));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T9.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T9.js
index 4ba78e6d7..3f5dbcad5 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T9.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T9.js
@@ -12,7 +12,7 @@ var __string = new String("this is a string object");
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__string.substring(-Infinity, -Infinity) !== "") {
- $ERROR('#1: __string = new String("this is a string object"); __string.substring(-Infinity, -Infinity) === "". Actual: '+__string.substring(-Infinity, -Infinity) );
+ $ERROR('#1: __string = new String("this is a string object"); __string.substring(-Infinity, -Infinity) === "". Actual: ' + __string.substring(-Infinity, -Infinity));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T1.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T1.js
index feff7d77e..2a26bc88d 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T1.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T1.js
@@ -11,13 +11,13 @@ description: >
Infinity, end is -Infinity
---*/
-var __instance = new Array(1,2,3,4,5);
+var __instance = new Array(1, 2, 3, 4, 5);
__instance.substring = String.prototype.substring;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.substring(Infinity,-Infinity) !== "1,2,3,4,5") {
- $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(Infinity,-Infinity) === "1,2,3,4,5". Actual: '+__instance.substring(Infinity,-Infinity) );
+if (__instance.substring(Infinity, -Infinity) !== "1,2,3,4,5") {
+ $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(Infinity,-Infinity) === "1,2,3,4,5". Actual: ' + __instance.substring(Infinity, -Infinity));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T10.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T10.js
index e2920aafb..4a7fd0ac3 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T10.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T10.js
@@ -14,16 +14,18 @@ description: >
__FACTORY.prototype.substring = String.prototype.substring;
var __instance = new __FACTORY(void 0);
-
+
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.substring(0, 100) !== "undefined") {
- $ERROR('#1: __instance.substring(0, 100) === "undefined". Actual: '+__instance.substring(0, 100) );
+ $ERROR('#1: __instance.substring(0, 100) === "undefined". Actual: ' + __instance.substring(0, 100));
}
//
//////////////////////////////////////////////////////////////////////////////
-function __FACTORY( value ) {
- this.value = value;
- this.toString = function() { return this.value+''; }
+function __FACTORY(value) {
+ this.value = value;
+ this.toString = function() {
+ return this.value + '';
+ }
}
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T11.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T11.js
index a55770141..e4238cc57 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T11.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T11.js
@@ -12,13 +12,13 @@ description: >
---*/
var __instance = new Boolean();
-
+
__instance.substring = String.prototype.substring;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.substring(new Array(), new Boolean(1)) !== "f") {
- $ERROR('#1: __instance = new Boolean(); __instance.substring = String.prototype.substring; __instance.substring(new Array(), new Boolean(1)) === "f". Actual: '+__instance.substring(new Array(), new Boolean(1)) );
+ $ERROR('#1: __instance = new Boolean(); __instance.substring = String.prototype.substring; __instance.substring(new Array(), new Boolean(1)) === "f". Actual: ' + __instance.substring(new Array(), new Boolean(1)));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T2.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T2.js
index dd187638f..e03694767 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T2.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T2.js
@@ -11,13 +11,13 @@ description: >
end is -Infinity
---*/
-var __instance = new Array(1,2,3,4,5);
+var __instance = new Array(1, 2, 3, 4, 5);
__instance.substring = String.prototype.substring;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.substring(9,-Infinity) !== "1,2,3,4,5") {
- $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(9,-Infinity) === "1,2,3,4,5". Actual: '+__instance.substring(9,-Infinity) );
+if (__instance.substring(9, -Infinity) !== "1,2,3,4,5") {
+ $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(9,-Infinity) === "1,2,3,4,5". Actual: ' + __instance.substring(9, -Infinity));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T3.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T3.js
index 4d93dfb75..6cfa98872 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T3.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T3.js
@@ -11,13 +11,13 @@ description: >
end is false
---*/
-var __instance = new Array(1,2,3,4,5);
+var __instance = new Array(1, 2, 3, 4, 5);
__instance.substring = String.prototype.substring;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.substring(true, false) !== "1") {
- $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(true, false) === "1". Actual: '+__instance.substring(true, false) );
+ $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(true, false) === "1". Actual: ' + __instance.substring(true, false));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T4.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T4.js
index 064d643fc..12b14f241 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T4.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T4.js
@@ -11,13 +11,13 @@ description: >
end is '5'
---*/
-var __instance = new Array(1,2,3,4,5);
+var __instance = new Array(1, 2, 3, 4, 5);
__instance.substring = String.prototype.substring;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.substring('4', '5') !== "3") {
- $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(\'4\', \'5\') === "3". Actual: '+__instance.substring('4', '5') );
+ $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(\'4\', \'5\') === "3". Actual: ' + __instance.substring('4', '5'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T5.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T5.js
index 95eb172cc..1405841b4 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T5.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T5.js
@@ -11,13 +11,13 @@ description: >
end is 0
---*/
-var __instance = new Object();
+var __instance = new Object();
__instance.substring = String.prototype.substring;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.substring(8,0) !== "[object ") {
- $ERROR('#1: __instance = new Object(); __instance.substring = String.prototype.substring; __instance.substring(8,0) === "[object ". Actual: '+__instance.substring(8,0) );
+if (__instance.substring(8, 0) !== "[object ") {
+ $ERROR('#1: __instance = new Object(); __instance.substring = String.prototype.substring; __instance.substring(8,0) === "[object ". Actual: ' + __instance.substring(8, 0));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T6.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T6.js
index 0ee3e9695..29bba1594 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T6.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T6.js
@@ -11,13 +11,13 @@ description: >
end is length of object.toString
---*/
-var __instance = new Object();
+var __instance = new Object();
__instance.substring = String.prototype.substring;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.substring(8, __instance.toString().length) !== "Object]") {
- $ERROR('#1: __instance = new Object(); __instance.substring = String.prototype.substring; __instance.substring(8, __instance.toString().length) === "Object]". Actual: '+__instance.substring(8, __instance.toString().length) );
+ $ERROR('#1: __instance = new Object(); __instance.substring = String.prototype.substring; __instance.substring(8, __instance.toString().length) === "Object]". Actual: ' + __instance.substring(8, __instance.toString().length));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T7.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T7.js
index 8305324ec..d8d84a122 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T7.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T7.js
@@ -11,14 +11,18 @@ description: >
instance.substring(...).substring(...)
---*/
-var __instance = { toString: function() { return "function(){}";} };
-
+var __instance = {
+ toString: function() {
+ return "function(){}";
+ }
+};
+
__instance.substring = String.prototype.substring;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__instance.substring(-Infinity,8) !== "function") {
- $ERROR('#1: __instance = function(){}; __instance.substring = String.prototype.substring; __instance.substring(-Infinity,8) === "function". Actual: '+__instance.substring(8,Infinity).substring(-Infinity,1) );
+if (__instance.substring(-Infinity, 8) !== "function") {
+ $ERROR('#1: __instance = function(){}; __instance.substring = String.prototype.substring; __instance.substring(-Infinity,8) === "function". Actual: ' + __instance.substring(8, Infinity).substring(-Infinity, 1));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T8.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T8.js
index ca339a846..60729b827 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T8.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T8.js
@@ -12,13 +12,13 @@ description: >
---*/
var __instance = new Number(NaN);
-
+
__instance.substring = String.prototype.substring;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.substring(Infinity, NaN) !== "NaN") {
- $ERROR('#1: __instance = new Number(NaN); __instance.substring = String.prototype.substring; __instance.substring(Infinity, NaN) === "NaN". Actual: '+__instance.substring(Infinity, NaN) );
+ $ERROR('#1: __instance = new Number(NaN); __instance.substring = String.prototype.substring; __instance.substring(Infinity, NaN) === "NaN". Actual: ' + __instance.substring(Infinity, NaN));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T9.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T9.js
index 75623a9ee..1fc65965c 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T9.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T9.js
@@ -12,13 +12,13 @@ description: >
---*/
var __instance = Math;
-
+
__instance.substring = String.prototype.substring;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.substring(Math.PI, -10) !== "[ob") {
- $ERROR('#1: __instance = Math; __instance.substring = String.prototype.substring; __instance.substring(Math.PI, -10) === "[ob". Actual: '+__instance.substring(Math.PI, -10) );
+ $ERROR('#1: __instance = Math; __instance.substring = String.prototype.substring; __instance.substring(Math.PI, -10) === "[ob". Actual: ' + __instance.substring(Math.PI, -10));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A6.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A6.js
index bc4cccb70..f16156445 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A6.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A6.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.substring.prototype
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.prototype.substring.prototype !== undefined) {
- $ERROR('#1: String.prototype.substring.prototype === undefined. Actual: '+String.prototype.substring.prototype );
+ $ERROR('#1: String.prototype.substring.prototype === undefined. Actual: ' + String.prototype.substring.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A7.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A7.js
index 14440737f..9cf25cfb1 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A7.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A7.js
@@ -14,6 +14,6 @@ try {
$ERROR('#1: __FACTORY = String.prototype.substring; "__instance = new __FACTORY" lead to throwing exception');
} catch (e) {
if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: undefined = 1 throw a TypeError. Actual: ' + (e));
+ $ERROR('#1.2: undefined = 1 throw a TypeError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A8.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A8.js
index b48d4db02..36af36356 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A8.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A8.js
@@ -12,7 +12,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.substring.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.substring.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.substring.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,14 +28,14 @@ if (String.prototype.substring.propertyIsEnumerable('length')) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#2
-var count=0;
+var count = 0;
-for (var p in String.prototype.substring){
- if (p==="length") count++;
+for (var p in String.prototype.substring) {
+ if (p === "length") count++;
}
if (count !== 0) {
- $ERROR('#2: count=0; for (p in String.prototype.substring){if (p==="length") count++;} count === 0. Actual: '+count );
+ $ERROR('#2: count=0; for (p in String.prototype.substring){if (p==="length") count++;} count === 0. Actual: ' + count);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A9.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A9.js
index 26e1c976a..803b98b5e 100644
--- a/test/built-ins/String/prototype/substring/S15.5.4.15_A9.js
+++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A9.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.substring.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.substring.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.substring.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (!delete String.prototype.substring.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.substring.hasOwnProperty('length')) {
- $ERROR('#2: delete String.prototype.substring.length; String.prototype.substring.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.substring.hasOwnProperty('length'));
+ $ERROR('#2: delete String.prototype.substring.length; String.prototype.substring.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.substring.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A10.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A10.js
index 399651837..3168e925a 100644
--- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A10.js
+++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A10.js
@@ -15,19 +15,21 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.toLocaleLowerCase.hasOwnProperty('length'))) {
- $ERROR('#1: String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLocaleLowerCase.hasOwnProperty('length'));
+ $ERROR('#1: String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleLowerCase.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
var __obj = String.prototype.toLocaleLowerCase.length;
-verifyNotWritable(String.prototype.toLocaleLowerCase, "length", null, function(){return "shifted";});
+verifyNotWritable(String.prototype.toLocaleLowerCase, "length", null, function() {
+ return "shifted";
+});
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.toLocaleLowerCase.length !== __obj) {
- $ERROR('#2: __obj = String.prototype.toLocaleLowerCase.length; String.prototype.toLocaleLowerCase.length = function(){return "shifted";}; String.prototype.toLocaleLowerCase.length === __obj. Actual: '+String.prototype.toLocaleLowerCase.length );
+ $ERROR('#2: __obj = String.prototype.toLocaleLowerCase.length; String.prototype.toLocaleLowerCase.length = function(){return "shifted";}; String.prototype.toLocaleLowerCase.length === __obj. Actual: ' + String.prototype.toLocaleLowerCase.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A11.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A11.js
index c6ca64f03..28a5f7aab 100644
--- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A11.js
+++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A11.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.toLocaleLowerCase.length
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.toLocaleLowerCase.hasOwnProperty("length"))) {
- $ERROR('#1: String.prototype.toLocaleLowerCase.hasOwnProperty("length") return true. Actual: '+String.prototype.toLocaleLowerCase.hasOwnProperty("length"));
+ $ERROR('#1: String.prototype.toLocaleLowerCase.hasOwnProperty("length") return true. Actual: ' + String.prototype.toLocaleLowerCase.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -18,7 +18,7 @@ if (!(String.prototype.toLocaleLowerCase.hasOwnProperty("length"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.toLocaleLowerCase.length !== 0) {
- $ERROR('#2: String.prototype.toLocaleLowerCase.length === 0. Actual: '+String.prototype.toLocaleLowerCase.length );
+ $ERROR('#2: String.prototype.toLocaleLowerCase.length === 0. Actual: ' + String.prototype.toLocaleLowerCase.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T1.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T1.js
index b929ade1d..181691a71 100644
--- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T1.js
+++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T1.js
@@ -14,7 +14,7 @@ __instance.toLocaleLowerCase = String.prototype.toLocaleLowerCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.toLocaleLowerCase() !== "true") {
- $ERROR('#1: __instance = new Object(true); __instance.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __instance.toLocaleLowerCase() === "true". Actual: '+__instance.toLocaleLowerCase() );
+ $ERROR('#1: __instance = new Object(true); __instance.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __instance.toLocaleLowerCase() === "true". Actual: ' + __instance.toLocaleLowerCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T10.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T10.js
index cfdc535d8..afc5510af 100644
--- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T10.js
+++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T10.js
@@ -9,13 +9,17 @@ description: >
function
---*/
-var __obj = {toString:function(){return "\u0041B";}}
+var __obj = {
+ toString: function() {
+ return "\u0041B";
+ }
+}
__obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__obj.toLocaleLowerCase() !=="ab") {
- $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase() ==="ab". Actual: '+__obj.toLocaleLowerCase() );
+if (__obj.toLocaleLowerCase() !== "ab") {
+ $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase() ==="ab". Actual: ' + __obj.toLocaleLowerCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T11.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T11.js
index 10c4df6a2..802f832ee 100644
--- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T11.js
+++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T11.js
@@ -9,17 +9,21 @@ description: >
toLocaleLowerCase() function for this object
---*/
-var __obj = {toString:function(){throw "intostr";}}
+var __obj = {
+ toString: function() {
+ throw "intostr";
+ }
+}
__obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try {
var x = __obj.toLocaleLowerCase();
- $ERROR('#1: "var x = __obj.toLocaleLowerCase()" lead to throwing exception');
+ $ERROR('#1: "var x = __obj.toLocaleLowerCase()" lead to throwing exception');
} catch (e) {
- if (e!=="intostr") {
- $ERROR('#1.1: Exception === "intostr". Actual: '+e);
+ if (e !== "intostr") {
+ $ERROR('#1.1: Exception === "intostr". Actual: ' + e);
}
}
//
diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T12.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T12.js
index 716a6d917..6754da40c 100644
--- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T12.js
+++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T12.js
@@ -9,17 +9,24 @@ description: >
then call toLocaleLowerCase() function for this object
---*/
-var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}}
+var __obj = {
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ throw "intostr";
+ }
+}
__obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try {
var x = __obj.toLocaleLowerCase();
- $ERROR('#1: "var x = __obj.toLocaleLowerCase()" lead to throwing exception');
+ $ERROR('#1: "var x = __obj.toLocaleLowerCase()" lead to throwing exception');
} catch (e) {
- if (e!=="intostr") {
- $ERROR('#1.1: Exception === "intostr". Actual: '+e);
+ if (e !== "intostr") {
+ $ERROR('#1.1: Exception === "intostr". Actual: ' + e);
}
}
//
diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T13.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T13.js
index eb19ac07c..11d49736b 100644
--- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T13.js
+++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T13.js
@@ -9,13 +9,20 @@ description: >
toLocaleLowerCase() function for this object
---*/
-var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}
+var __obj = {
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ return 1;
+ }
+}
__obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__obj.toLocaleLowerCase() !=="1") {
- $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase() ==="1". Actual: '+__obj.toLocaleLowerCase() );
+if (__obj.toLocaleLowerCase() !== "1") {
+ $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase() ==="1". Actual: ' + __obj.toLocaleLowerCase());
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -23,7 +30,7 @@ if (__obj.toLocaleLowerCase() !=="1") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__obj.toLocaleLowerCase().length !== 1) {
- $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase().length === 1. Actual: '+__obj.toLocaleLowerCase().length );
+ $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase().length === 1. Actual: ' + __obj.toLocaleLowerCase().length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T14.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T14.js
index 95da90ec3..978a4932b 100644
--- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T14.js
+++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T14.js
@@ -13,7 +13,7 @@ __reg.toLocaleLowerCase = String.prototype.toLocaleLowerCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__reg.toLocaleLowerCase() !== "/abc/") {
- $ERROR('#1: var __reg = new RegExp("ABC"); __reg.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __reg.toLocaleLowerCase() === "/abc/". Actual: '+__reg.toLocaleLowerCase() );
+ $ERROR('#1: var __reg = new RegExp("ABC"); __reg.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __reg.toLocaleLowerCase() === "/abc/". Actual: ' + __reg.toLocaleLowerCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T2.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T2.js
index d20cef4b2..fe95c5cd6 100644
--- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T2.js
+++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T2.js
@@ -14,7 +14,7 @@ __instance.toLocaleLowerCase = String.prototype.toLocaleLowerCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.toLocaleLowerCase() !== "false") {
- $ERROR('#1: __instance = new Boolean; __instance.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __instance.toLocaleLowerCase() === "false". Actual: '+__instance.toLocaleLowerCase() );
+ $ERROR('#1: __instance = new Boolean; __instance.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __instance.toLocaleLowerCase() === "false". Actual: ' + __instance.toLocaleLowerCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T3.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T3.js
index 00eca997a..a4aee2c5e 100644
--- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T3.js
+++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T3.js
@@ -10,7 +10,7 @@ description: Checking by using eval
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (eval("\"BJ\"").toLocaleLowerCase() !== "bj") {
- $ERROR('#1: eval("\\"BJ\\"").toLocaleLowerCase() === "bj". Actual: '+eval("\"BJ\"").toLocaleLowerCase() );
+ $ERROR('#1: eval("\\"BJ\\"").toLocaleLowerCase() === "bj". Actual: ' + eval("\"BJ\"").toLocaleLowerCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T4.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T4.js
index 04b36119a..7336d0cd3 100644
--- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T4.js
+++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T4.js
@@ -11,12 +11,12 @@ description: >
var __lowerCase = "".toLocaleLowerCase();
-var __expected = "";
+var __expected = "";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__lowerCase.length !== __expected.length) {
- $ERROR('#1: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: '+__lowerCase.length );
+ $ERROR('#1: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: ' + __lowerCase.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -24,7 +24,7 @@ if (__lowerCase.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__lowerCase.index !== __expected.index) {
- $ERROR('#2: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: '+__lowerCase.index );
+ $ERROR('#2: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: ' + __lowerCase.index);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -32,15 +32,15 @@ if (__lowerCase.index !== __expected.index) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__lowerCase.input !== __expected.input) {
- $ERROR('#3: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: '+__lowerCase.input );
+ $ERROR('#3: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: ' + __lowerCase.input);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-if (__lowerCase[0]!==__expected[0]) {
- $ERROR('#4: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase[0]===__expected[0]. Actual: '+__lowerCase[0]);
+if (__lowerCase[0] !== __expected[0]) {
+ $ERROR('#4: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase[0]===__expected[0]. Actual: ' + __lowerCase[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T5.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T5.js
index fb3d25143..d97884e82 100644
--- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T5.js
+++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T5.js
@@ -10,8 +10,12 @@ description: Call toLocaleLowerCase() function for function call
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToString(null) evaluates to "null" match(null) evaluates to match("null")
-if (function(){return "GnulLuNa"}().toLocaleLowerCase() !== "gnulluna") {
- $ERROR('#1: function(){return "GnulLuNa"}().toLocaleLowerCase() === "gnulluna". Actual: '+function(){return "GnulLuNa"}().toLocaleLowerCase() );
+if (function() {
+ return "GnulLuNa"
+ }().toLocaleLowerCase() !== "gnulluna") {
+ $ERROR('#1: function(){return "GnulLuNa"}().toLocaleLowerCase() === "gnulluna". Actual: ' + function() {
+ return "GnulLuNa"
+ }().toLocaleLowerCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T6.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T6.js
index 6339d0011..93cfe7ed4 100644
--- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T6.js
+++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T6.js
@@ -12,7 +12,7 @@ Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if ((Number.NEGATIVE_INFINITY).toLocaleLowerCase() !== "-infinity") {
- $ERROR('#1: Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; (Number.NEGATIVE_INFINITY).toLocaleLowerCase() === "-infinity". Actual: '+(Number.NEGATIVE_INFINITY).toLocaleLowerCase() );
+ $ERROR('#1: Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; (Number.NEGATIVE_INFINITY).toLocaleLowerCase() === "-infinity". Actual: ' + (Number.NEGATIVE_INFINITY).toLocaleLowerCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T7.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T7.js
index fcd3a61e2..01751fa42 100644
--- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T7.js
+++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T7.js
@@ -11,8 +11,8 @@ Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (NaN.toLocaleLowerCase()!== "nan") {
- $ERROR('#1: Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; NaN.toLocaleLowerCase()=== "nan". Actual: '+NaN.toLocaleLowerCase());
+if (NaN.toLocaleLowerCase() !== "nan") {
+ $ERROR('#1: Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; NaN.toLocaleLowerCase()=== "nan". Actual: ' + NaN.toLocaleLowerCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T8.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T8.js
index 17ccebbee..b9219740a 100644
--- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T8.js
+++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T8.js
@@ -9,6 +9,6 @@ description: Call toLocaleLowerCase() function of Infinity
Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase;
-if (Infinity.toLocaleLowerCase()!== "infinity") {
- $ERROR('#1: Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; Infinity.toLocaleLowerCase()=== "infinity". Actual: '+Infinity.toLocaleLowerCase());
+if (Infinity.toLocaleLowerCase() !== "infinity") {
+ $ERROR('#1: Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; Infinity.toLocaleLowerCase()=== "infinity". Actual: ' + Infinity.toLocaleLowerCase());
}
diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T9.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T9.js
index 94129acfc..3c122f6d6 100644
--- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T9.js
+++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T9.js
@@ -8,19 +8,19 @@ description: Call toLocaleLowerCase() function of string object
---*/
var __obj = {
- valueOf:function(){},
- toString:void 0
+ valueOf: function() {},
+ toString: void 0
};
var __lowerCase = new String(__obj).toLocaleLowerCase();
-var __expected ="undefined";
+var __expected = "undefined";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__lowerCase.length !== __expected.length) {
- $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase.length === __expected.length. Actual: '+__lowerCase.length );
+ $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase.length === __expected.length. Actual: ' + __lowerCase.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,7 +28,7 @@ if (__lowerCase.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__lowerCase.index !== __expected.index) {
- $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase.index === __expected.index. Actual: '+__lowerCase.index );
+ $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase.index === __expected.index. Actual: ' + __lowerCase.index);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -36,16 +36,16 @@ if (__lowerCase.index !== __expected.index) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__lowerCase.input !== __expected.input) {
- $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase.input === __expected.input. Actual: '+__lowerCase.input );
+ $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase.input === __expected.input. Actual: ' + __lowerCase.input);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__lowerCase[index]!==__expected[index]) {
- $ERROR('#4.'+index+': __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase['+index+']=== '+__expected[index]+'. Actual: '+__lowerCase[index]);
+for (var index = 0; index < __expected.length; index++) {
+ if (__lowerCase[index] !== __expected[index]) {
+ $ERROR('#4.' + index + ': __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase[' + index + ']=== ' + __expected[index] + '. Actual: ' + __lowerCase[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A2_T1.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A2_T1.js
index 715dee843..0fa680559 100644
--- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A2_T1.js
+++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A2_T1.js
@@ -12,7 +12,7 @@ description: Checking returned result
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if ("Hello, WoRlD!".toLocaleLowerCase() !== "hello, world!") {
- $ERROR('#1: "Hello, WoRlD!".toLocaleLowerCase() === "hello, world!". Actual: '+("Hello, WoRlD!".toLocaleLowerCase()) );
+ $ERROR('#1: "Hello, WoRlD!".toLocaleLowerCase() === "hello, world!". Actual: ' + ("Hello, WoRlD!".toLocaleLowerCase()));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -20,7 +20,7 @@ if ("Hello, WoRlD!".toLocaleLowerCase() !== "hello, world!") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if ("Hello, WoRlD!".toLocaleLowerCase() !== String("hello, world!")) {
- $ERROR('#2: "Hello, WoRlD!".toLocaleLowerCase() === String("hello, world!"). Actual: '+("Hello, WoRlD!".toLocaleLowerCase()) );
+ $ERROR('#2: "Hello, WoRlD!".toLocaleLowerCase() === String("hello, world!"). Actual: ' + ("Hello, WoRlD!".toLocaleLowerCase()));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A6.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A6.js
index de23fd2e5..7ee83f78f 100644
--- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A6.js
+++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A6.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.toLocaleLowerCase.prototype
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.prototype.toLocaleLowerCase.prototype !== undefined) {
- $ERROR('#1: String.prototype.toLocaleLowerCase.prototype === undefined. Actual: '+String.prototype.toLocaleLowerCase.prototype );
+ $ERROR('#1: String.prototype.toLocaleLowerCase.prototype === undefined. Actual: ' + String.prototype.toLocaleLowerCase.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A7.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A7.js
index 03faefe86..408d0e59e 100644
--- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A7.js
+++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A7.js
@@ -16,6 +16,6 @@ try {
$ERROR('#1: var __FACTORY = String.prototype.toLocaleLowerCase; "__instance = new __FACTORY" lead to throwing exception');
} catch (e) {
if ((e instanceof TypeError) !== true) {
- $ERROR('#1.1: var __FACTORY = String.prototype.toLocaleLowerCase; "var __instance = new __FACTORY" throw a TypeError. Actual: ' + (e));
+ $ERROR('#1.1: var __FACTORY = String.prototype.toLocaleLowerCase; "var __instance = new __FACTORY" throw a TypeError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A8.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A8.js
index 8699a7657..e421581f6 100644
--- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A8.js
+++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A8.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.toLocaleLowerCase.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLocaleLowerCase.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleLowerCase.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,14 +30,14 @@ if (String.prototype.toLocaleLowerCase.propertyIsEnumerable('length')) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#2
-var count=0;
+var count = 0;
-for (var p in String.prototype.toLocaleLowerCase){
- if (p==="length") count++;
+for (var p in String.prototype.toLocaleLowerCase) {
+ if (p === "length") count++;
}
if (count !== 0) {
- $ERROR('#2: count=0; for (p in String.prototype.toLocaleLowerCase){if (p==="length") count++;}; count === 0. Actual: '+count );
+ $ERROR('#2: count=0; for (p in String.prototype.toLocaleLowerCase){if (p==="length") count++;}; count === 0. Actual: ' + count);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A9.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A9.js
index a4c0873dc..42dbf02a7 100644
--- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A9.js
+++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A9.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.toLocaleLowerCase.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLocaleLowerCase.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleLowerCase.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (!delete String.prototype.toLocaleLowerCase.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.toLocaleLowerCase.hasOwnProperty('length')) {
- $ERROR('#2: delete String.prototype.toLocaleLowerCase.length; String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.toLocaleLowerCase.hasOwnProperty('length'));
+ $ERROR('#2: delete String.prototype.toLocaleLowerCase.length; String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.toLocaleLowerCase.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A10.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A10.js
index 34289893b..9ee03545e 100644
--- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A10.js
+++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A10.js
@@ -15,19 +15,21 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.toLocaleUpperCase.hasOwnProperty('length'))) {
- $ERROR('#1: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLocaleUpperCase.hasOwnProperty('length'));
+ $ERROR('#1: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleUpperCase.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
var __obj = String.prototype.toLocaleUpperCase.length;
-verifyNotWritable(String.prototype.toLocaleUpperCase, "length", null, function(){return "shifted";});
+verifyNotWritable(String.prototype.toLocaleUpperCase, "length", null, function() {
+ return "shifted";
+});
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.toLocaleUpperCase.length !== __obj) {
- $ERROR('#2: __obj = String.prototype.toLocaleUpperCase.length; String.prototype.toLocaleUpperCase.length = function(){return "shifted";}; String.prototype.toLocaleUpperCase.length === __obj. Actual: '+String.prototype.toLocaleUpperCase.length );
+ $ERROR('#2: __obj = String.prototype.toLocaleUpperCase.length; String.prototype.toLocaleUpperCase.length = function(){return "shifted";}; String.prototype.toLocaleUpperCase.length === __obj. Actual: ' + String.prototype.toLocaleUpperCase.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A11.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A11.js
index da53d2892..c55ed8da0 100644
--- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A11.js
+++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A11.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.toLocaleUpperCase.length
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.toLocaleUpperCase.hasOwnProperty("length"))) {
- $ERROR('#1: String.prototype.toLocaleUpperCase.hasOwnProperty("length") return true. Actual: '+String.prototype.toLocaleUpperCase.hasOwnProperty("length"));
+ $ERROR('#1: String.prototype.toLocaleUpperCase.hasOwnProperty("length") return true. Actual: ' + String.prototype.toLocaleUpperCase.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -18,7 +18,7 @@ if (!(String.prototype.toLocaleUpperCase.hasOwnProperty("length"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.toLocaleUpperCase.length !== 0) {
- $ERROR('#2: String.prototype.toLocaleUpperCase.length === 0. Actual: '+String.prototype.toLocaleUpperCase.length );
+ $ERROR('#2: String.prototype.toLocaleUpperCase.length === 0. Actual: ' + String.prototype.toLocaleUpperCase.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T1.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T1.js
index e58f9b38a..128481712 100644
--- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T1.js
+++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T1.js
@@ -14,7 +14,7 @@ __instance.toLocaleUpperCase = String.prototype.toLocaleUpperCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.toLocaleUpperCase() !== "TRUE") {
- $ERROR('#1: __instance = new Object(true); __instance.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __instance.toLocaleUpperCase() === "TRUE". Actual: '+__instance.toLocaleUpperCase() );
+ $ERROR('#1: __instance = new Object(true); __instance.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __instance.toLocaleUpperCase() === "TRUE". Actual: ' + __instance.toLocaleUpperCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T10.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T10.js
index 6bcc86f58..0e0bd3fbe 100644
--- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T10.js
+++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T10.js
@@ -9,13 +9,17 @@ description: >
function
---*/
-var __obj = {toString:function(){return "\u0041b";}}
+var __obj = {
+ toString: function() {
+ return "\u0041b";
+ }
+}
__obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__obj.toLocaleUpperCase() !=="AB") {
- $ERROR('#1: var __obj = {toString:function(){return "\u0041b";}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase() ==="AB". Actual: '+__obj.toLocaleUpperCase() );
+if (__obj.toLocaleUpperCase() !== "AB") {
+ $ERROR('#1: var __obj = {toString:function(){return "\u0041b";}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase() ==="AB". Actual: ' + __obj.toLocaleUpperCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T11.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T11.js
index 45a9a2087..ba8ef4900 100644
--- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T11.js
+++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T11.js
@@ -9,7 +9,11 @@ description: >
toLocaleUpperCase() function for this object
---*/
-var __obj = {toString:function(){throw "intostr";}}
+var __obj = {
+ toString: function() {
+ throw "intostr";
+ }
+}
__obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -17,8 +21,8 @@ try {
var x = __obj.toLocaleUpperCase();
$ERROR('#1: "var x = __obj.toLocaleUpperCase()" lead to throwing exception');
} catch (e) {
- if (e!=="intostr") {
- $ERROR('#1.1: Exception === "intostr". Actual: '+e);
+ if (e !== "intostr") {
+ $ERROR('#1.1: Exception === "intostr". Actual: ' + e);
}
}
//
diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T12.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T12.js
index 185ea8fcb..a473a9bb4 100644
--- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T12.js
+++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T12.js
@@ -9,16 +9,23 @@ description: >
then call toLocaleUpperCase() function for this object
---*/
-var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}}
+var __obj = {
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ throw "intostr";
+ }
+}
__obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try {
var x = __obj.toLocaleUpperCase();
- $ERROR('#1: "var x = __obj.toLocaleUpperCase()" lead to throwing exception');
+ $ERROR('#1: "var x = __obj.toLocaleUpperCase()" lead to throwing exception');
} catch (e) {
- if (e!=="intostr") {
- $ERROR('#1.1: Exception === "intostr". Actual: '+e);
+ if (e !== "intostr") {
+ $ERROR('#1.1: Exception === "intostr". Actual: ' + e);
}
}
//
diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T13.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T13.js
index 3b1b61817..a73b5c9d5 100644
--- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T13.js
+++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T13.js
@@ -9,12 +9,19 @@ description: >
toLocaleUpperCase() function for this object
---*/
-var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}
+var __obj = {
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ return 1;
+ }
+}
__obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__obj.toLocaleUpperCase() !=="1") {
- $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase() ==="1". Actual: '+__obj.toLocaleUpperCase() );
+if (__obj.toLocaleUpperCase() !== "1") {
+ $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase() ==="1". Actual: ' + __obj.toLocaleUpperCase());
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -22,7 +29,7 @@ if (__obj.toLocaleUpperCase() !=="1") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__obj.toLocaleUpperCase().length !== 1) {
- $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase().length === 1. Actual: '+__obj.toLocaleUpperCase().length );
+ $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase().length === 1. Actual: ' + __obj.toLocaleUpperCase().length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T14.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T14.js
index 8c2104cc7..71d330aaa 100644
--- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T14.js
+++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T14.js
@@ -12,7 +12,7 @@ __reg.toLocaleUpperCase = String.prototype.toLocaleUpperCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__reg.toLocaleUpperCase() !== "/ABC/") {
- $ERROR('#1: var __reg = new RegExp("abc"); __reg.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __reg.toLocaleUpperCase() === "/ABC/". Actual: '+__reg.toLocaleUpperCase() );
+ $ERROR('#1: var __reg = new RegExp("abc"); __reg.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __reg.toLocaleUpperCase() === "/ABC/". Actual: ' + __reg.toLocaleUpperCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T2.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T2.js
index 425c58fc1..533a4294d 100644
--- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T2.js
+++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T2.js
@@ -14,7 +14,7 @@ __instance.toLocaleUpperCase = String.prototype.toLocaleUpperCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.toLocaleUpperCase() !== "FALSE") {
- $ERROR('#1: __instance = new Boolean; __instance.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __instance.toLocaleUpperCase() === "FALSE". Actual: '+__instance.toLocaleUpperCase() );
+ $ERROR('#1: __instance = new Boolean; __instance.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __instance.toLocaleUpperCase() === "FALSE". Actual: ' + __instance.toLocaleUpperCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T3.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T3.js
index 1de801a89..04432731a 100644
--- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T3.js
+++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T3.js
@@ -10,7 +10,7 @@ description: Checking by using eval
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (eval("\"bj\"").toLocaleUpperCase() !== "BJ") {
- $ERROR('#1: eval("\\"bj\\"").toLocaleUpperCase() === "BJ". Actual: '+eval("\"bj\"").toLocaleUpperCase() );
+ $ERROR('#1: eval("\\"bj\\"").toLocaleUpperCase() === "BJ". Actual: ' + eval("\"bj\"").toLocaleUpperCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T4.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T4.js
index 3cea1ebf0..1b144d679 100644
--- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T4.js
+++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T4.js
@@ -10,12 +10,12 @@ description: >
---*/
var __lowerCase = "".toLocaleUpperCase();
-var __expected = "";
+var __expected = "";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__lowerCase.length !== __expected.length) {
- $ERROR('#1: __lowerCase = "".toLocaleUpperCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: '+__lowerCase.length );
+ $ERROR('#1: __lowerCase = "".toLocaleUpperCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: ' + __lowerCase.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -23,7 +23,7 @@ if (__lowerCase.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__lowerCase.index !== __expected.index) {
- $ERROR('#2: __lowerCase = "".toLocaleUpperCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: '+__lowerCase.index );
+ $ERROR('#2: __lowerCase = "".toLocaleUpperCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: ' + __lowerCase.index);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -31,15 +31,15 @@ if (__lowerCase.index !== __expected.index) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__lowerCase.input !== __expected.input) {
- $ERROR('#3: __lowerCase = "".toLocaleUpperCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: '+__lowerCase.input );
+ $ERROR('#3: __lowerCase = "".toLocaleUpperCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: ' + __lowerCase.input);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-if (__lowerCase[0]!==__expected[0]) {
- $ERROR('#4: __lowerCase = "".toLocaleUpperCase(); __lowerCase[0]==='+__expected[0]+'. Actual: '+__lowerCase[0]);
+if (__lowerCase[0] !== __expected[0]) {
+ $ERROR('#4: __lowerCase = "".toLocaleUpperCase(); __lowerCase[0]===' + __expected[0] + '. Actual: ' + __lowerCase[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T5.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T5.js
index f1da20120..d28e77888 100644
--- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T5.js
+++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T5.js
@@ -10,8 +10,12 @@ description: Call toLocaleUpperCase() function of function call
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToString(null) evaluates to "null" match(null) evaluates to match("null")
-if (function(){return "GnulLuNa"}().toLocaleUpperCase() !== "GNULLUNA") {
- $ERROR('#1: function(){return "GnulLuNa"}().toLocaleUpperCase() === "GNULLUNA". Actual: '+function(){return "GnulLuNa"}().toLocaleUpperCase() );
+if (function() {
+ return "GnulLuNa"
+ }().toLocaleUpperCase() !== "GNULLUNA") {
+ $ERROR('#1: function(){return "GnulLuNa"}().toLocaleUpperCase() === "GNULLUNA". Actual: ' + function() {
+ return "GnulLuNa"
+ }().toLocaleUpperCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T6.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T6.js
index 5088fcb8d..6d69d494d 100644
--- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T6.js
+++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T6.js
@@ -12,7 +12,7 @@ Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if ((Number.NEGATIVE_INFINITY).toLocaleUpperCase() !== "-INFINITY") {
- $ERROR('#1: Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; (Number.NEGATIVE_INFINITY).toLocaleUpperCase() === "-INFINITY". Actual: '+(Number.NEGATIVE_INFINITY).toLocaleUpperCase() );
+ $ERROR('#1: Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; (Number.NEGATIVE_INFINITY).toLocaleUpperCase() === "-INFINITY". Actual: ' + (Number.NEGATIVE_INFINITY).toLocaleUpperCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T7.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T7.js
index 0c710d629..1a24a8824 100644
--- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T7.js
+++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T7.js
@@ -11,8 +11,8 @@ Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (NaN.toLocaleUpperCase()!== "NAN") {
- $ERROR('#1: Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; NaN.toLocaleUpperCase()=== "NAN". Actual: '+NaN.toLocaleUpperCase());
+if (NaN.toLocaleUpperCase() !== "NAN") {
+ $ERROR('#1: Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; NaN.toLocaleUpperCase()=== "NAN". Actual: ' + NaN.toLocaleUpperCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T8.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T8.js
index 968e66738..ef2c7b26c 100644
--- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T8.js
+++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T8.js
@@ -9,6 +9,6 @@ description: Call toLocaleUpperCase() function of Infinity
Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase;
-if (Infinity.toLocaleUpperCase()!== "INFINITY") {
- $ERROR('#1: Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; Infinity.toLocaleUpperCase()=== "INFINITY". Actual: '+Infinity.toLocaleUpperCase());
+if (Infinity.toLocaleUpperCase() !== "INFINITY") {
+ $ERROR('#1: Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; Infinity.toLocaleUpperCase()=== "INFINITY". Actual: ' + Infinity.toLocaleUpperCase());
}
diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T9.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T9.js
index debdee1dd..ff1ea5933 100644
--- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T9.js
+++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T9.js
@@ -8,18 +8,18 @@ description: Call toLocaleUpperCase() function of string object
---*/
var __obj = {
- valueOf:function(){},
- toString:void 0
+ valueOf: function() {},
+ toString: void 0
};
var __lowerCase = new String(__obj).toLocaleUpperCase();
-var __expected ="UNDEFINED";
+var __expected = "UNDEFINED";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__lowerCase.length !== __expected.length) {
- $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase.length === __expected.length. Actual: '+__lowerCase.length );
+ $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase.length === __expected.length. Actual: ' + __lowerCase.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__lowerCase.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__lowerCase.index !== __expected.index) {
- $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase.index === __expected.index. Actual: '+__lowerCase.index );
+ $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase.index === __expected.index. Actual: ' + __lowerCase.index);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,16 +35,16 @@ if (__lowerCase.index !== __expected.index) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__lowerCase.input !== __expected.input) {
- $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase.input === __expected.input. Actual: '+__lowerCase.input );
+ $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase.input === __expected.input. Actual: ' + __lowerCase.input);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__lowerCase[index]!==__expected[index]) {
- $ERROR('#4.'+index+': __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase['+index+']==='+__expected[index]+'. Actual: '+__lowerCase[index]);
+for (var index = 0; index < __expected.length; index++) {
+ if (__lowerCase[index] !== __expected[index]) {
+ $ERROR('#4.' + index + ': __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase[' + index + ']===' + __expected[index] + '. Actual: ' + __lowerCase[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A2_T1.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A2_T1.js
index 39cf66d2c..32986be8b 100644
--- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A2_T1.js
+++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A2_T1.js
@@ -12,7 +12,7 @@ description: Checking returned result
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if ("Hello, WoRlD!".toLocaleUpperCase() !== "HELLO, WORLD!") {
- $ERROR('#1: "Hello, WoRlD!".toLocaleUpperCase() === "HELLO, WORLD!". Actual: '+("Hello, WoRlD!".toLocaleUpperCase()) );
+ $ERROR('#1: "Hello, WoRlD!".toLocaleUpperCase() === "HELLO, WORLD!". Actual: ' + ("Hello, WoRlD!".toLocaleUpperCase()));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -20,14 +20,14 @@ if ("Hello, WoRlD!".toLocaleUpperCase() !== "HELLO, WORLD!") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if ("Hello, WoRlD!".toLocaleUpperCase() !== String("HELLO, WORLD!")) {
- $ERROR('#2: "Hello, WoRlD!".toLocaleUpperCase() === String("HELLO, WORLD!"). Actual: '+("Hello, WoRlD!".toLocaleUpperCase()) );
+ $ERROR('#2: "Hello, WoRlD!".toLocaleUpperCase() === String("HELLO, WORLD!"). Actual: ' + ("Hello, WoRlD!".toLocaleUpperCase()));
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-if ("Hello, WoRlD!".toLocaleUpperCase() ===new String("HELLO, WORLD!")) {
+if ("Hello, WoRlD!".toLocaleUpperCase() === new String("HELLO, WORLD!")) {
$ERROR('#3: "Hello, WoRlD!".toLocaleUpperCase() !== new String("HELLO, WORLD!"');
}
//
diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A6.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A6.js
index 498dbfaa5..ba3d6e8f2 100644
--- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A6.js
+++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A6.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.toLocaleUpperCase.prototype
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.prototype.toLocaleUpperCase.prototype !== undefined) {
- $ERROR('#1: String.prototype.toLocaleUpperCase.prototype === undefined. Actual: '+String.prototype.toLocaleUpperCase.prototype );
+ $ERROR('#1: String.prototype.toLocaleUpperCase.prototype === undefined. Actual: ' + String.prototype.toLocaleUpperCase.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A7.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A7.js
index 3f57102ee..75f8ac013 100644
--- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A7.js
+++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A7.js
@@ -16,6 +16,6 @@ try {
$ERROR('#1: __FACTORY = String.prototype.toLocaleUpperCase; "__instance = new __FACTORY" lead to throwing exception');
} catch (e) {
if ((e instanceof TypeError) !== true) {
- $ERROR('#1.1: var __instance = new __FACTORY; Object has no construct lead a TypeError. Actual: ' + (e));
+ $ERROR('#1.1: var __instance = new __FACTORY; Object has no construct lead a TypeError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A8.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A8.js
index c1f69036c..0043fa412 100644
--- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A8.js
+++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A8.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.toLocaleUpperCase.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLocaleUpperCase.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleUpperCase.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,14 +30,14 @@ if (String.prototype.toLocaleUpperCase.propertyIsEnumerable('length')) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#2
-var count=0;
+var count = 0;
-for (var p in String.prototype.toLocaleUpperCase){
- if (p==="length") count++;
+for (var p in String.prototype.toLocaleUpperCase) {
+ if (p === "length") count++;
}
if (count !== 0) {
- $ERROR('#2: count=0; for (p in String.prototype.toLocaleUpperCase){if (p==="length") count++;}; count === 0. Actual: '+count );
+ $ERROR('#2: count=0; for (p in String.prototype.toLocaleUpperCase){if (p==="length") count++;}; count === 0. Actual: ' + count);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A9.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A9.js
index 36c4c6c82..ec9102e6d 100644
--- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A9.js
+++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A9.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.toLocaleUpperCase.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLocaleUpperCase.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleUpperCase.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (!delete String.prototype.toLocaleUpperCase.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.toLocaleUpperCase.hasOwnProperty('length')) {
- $ERROR('#2: delete String.prototype.toLocaleUpperCase.length; String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.toLocaleUpperCase.hasOwnProperty('length'));
+ $ERROR('#2: delete String.prototype.toLocaleUpperCase.length; String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.toLocaleUpperCase.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A10.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A10.js
index 37b044c1e..6cc53960b 100644
--- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A10.js
+++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A10.js
@@ -15,19 +15,21 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.toLowerCase.hasOwnProperty('length'))) {
- $ERROR('#1: String.prototype.toLowerCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLowerCase.hasOwnProperty('length'));
+ $ERROR('#1: String.prototype.toLowerCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLowerCase.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
var __obj = String.prototype.toLowerCase.length;
-verifyNotWritable(String.prototype.toLowerCase, "length", null, function(){return "shifted";});
+verifyNotWritable(String.prototype.toLowerCase, "length", null, function() {
+ return "shifted";
+});
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.toLowerCase.length !== __obj) {
- $ERROR('#2: __obj = String.prototype.toLowerCase.length; String.prototype.toLowerCase.length = function(){return "shifted";}; String.prototype.toLowerCase.length === __obj. Actual: '+String.prototype.toLowerCase.length );
+ $ERROR('#2: __obj = String.prototype.toLowerCase.length; String.prototype.toLowerCase.length = function(){return "shifted";}; String.prototype.toLowerCase.length === __obj. Actual: ' + String.prototype.toLowerCase.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A11.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A11.js
index f05e554ca..6f4f7e826 100644
--- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A11.js
+++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A11.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.toLowerCase.length
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.toLowerCase.hasOwnProperty("length"))) {
- $ERROR('#1: String.prototype.toLowerCase.hasOwnProperty("length") return true. Actual: '+String.prototype.toLowerCase.hasOwnProperty("length"));
+ $ERROR('#1: String.prototype.toLowerCase.hasOwnProperty("length") return true. Actual: ' + String.prototype.toLowerCase.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -18,7 +18,7 @@ if (!(String.prototype.toLowerCase.hasOwnProperty("length"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.toLowerCase.length !== 0) {
- $ERROR('#2: String.prototype.toLowerCase.length === 0. Actual: '+String.prototype.toLowerCase.length );
+ $ERROR('#2: String.prototype.toLowerCase.length === 0. Actual: ' + String.prototype.toLowerCase.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T1.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T1.js
index 62a744bc9..467141034 100644
--- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T1.js
+++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T1.js
@@ -14,7 +14,7 @@ __instance.toLowerCase = String.prototype.toLowerCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.toLowerCase() !== "true") {
- $ERROR('#1: __instance = new Object(true); __instance.toLowerCase = String.prototype.toLowerCase; __instance.toLowerCase() === "true". Actual: '+__instance.toLowerCase() );
+ $ERROR('#1: __instance = new Object(true); __instance.toLowerCase = String.prototype.toLowerCase; __instance.toLowerCase() === "true". Actual: ' + __instance.toLowerCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T10.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T10.js
index 8e5b25c86..6c36aa0ea 100644
--- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T10.js
+++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T10.js
@@ -9,14 +9,18 @@ description: >
function
---*/
-var __obj = {toString:function(){return "\u0041B";}}
+var __obj = {
+ toString: function() {
+ return "\u0041B";
+ }
+}
__obj.toLowerCase = String.prototype.toLowerCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__obj.toLowerCase() !=="ab") {
- $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase() ==="ab". Actual: '+__obj.toLowerCase() );
+if (__obj.toLowerCase() !== "ab") {
+ $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase() ==="ab". Actual: ' + __obj.toLowerCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T11.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T11.js
index 1e47da862..922da6901 100644
--- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T11.js
+++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T11.js
@@ -9,17 +9,21 @@ description: >
toLowerCase() function for this object
---*/
-var __obj = {toString:function(){throw "intostr";}}
+var __obj = {
+ toString: function() {
+ throw "intostr";
+ }
+}
__obj.toLowerCase = String.prototype.toLowerCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try {
var x = __obj.toLowerCase();
- $ERROR('#1: "var x = __obj.toLowerCase()" lead to throwing exception');
+ $ERROR('#1: "var x = __obj.toLowerCase()" lead to throwing exception');
} catch (e) {
- if (e!=="intostr") {
- $ERROR('#1.1: Exception === "intostr". Actual: '+e);
+ if (e !== "intostr") {
+ $ERROR('#1.1: Exception === "intostr". Actual: ' + e);
}
}
//
diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T12.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T12.js
index df60a2502..38427815e 100644
--- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T12.js
+++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T12.js
@@ -9,17 +9,24 @@ description: >
then call toLowerCase() function for this object
---*/
-var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}}
+var __obj = {
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ throw "intostr";
+ }
+}
__obj.toLowerCase = String.prototype.toLowerCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try {
var x = __obj.toLowerCase();
- $ERROR('#1: "var x = __obj.toLowerCase()" lead to throwing exception');
+ $ERROR('#1: "var x = __obj.toLowerCase()" lead to throwing exception');
} catch (e) {
- if (e!=="intostr") {
- $ERROR('#1.1: Exception === "intostr". Actual: '+e);
+ if (e !== "intostr") {
+ $ERROR('#1.1: Exception === "intostr". Actual: ' + e);
}
}
//
diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T13.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T13.js
index 2b3e12789..f3d3b396b 100644
--- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T13.js
+++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T13.js
@@ -9,13 +9,20 @@ description: >
function for this object
---*/
-var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}
+var __obj = {
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ return 1;
+ }
+}
__obj.toLowerCase = String.prototype.toLowerCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__obj.toLowerCase() !=="1") {
- $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase() ==="1". Actual: '+__obj.toLowerCase() );
+if (__obj.toLowerCase() !== "1") {
+ $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase() ==="1". Actual: ' + __obj.toLowerCase());
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -23,7 +30,7 @@ if (__obj.toLowerCase() !=="1") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__obj.toLowerCase().length !== 1) {
- $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase().length === 1. Actual: '+__obj.toLowerCase().length );
+ $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase().length === 1. Actual: ' + __obj.toLowerCase().length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T14.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T14.js
index 5693649fa..0c3e21058 100644
--- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T14.js
+++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T14.js
@@ -13,7 +13,7 @@ __reg.toLowerCase = String.prototype.toLowerCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__reg.toLowerCase() !== "/abc/") {
- $ERROR('#1: var __reg = new RegExp("ABC"); __reg.toLowerCase = String.prototype.toLowerCase; __reg.toLowerCase() === "/abc/". Actual: '+__reg.toLowerCase() );
+ $ERROR('#1: var __reg = new RegExp("ABC"); __reg.toLowerCase = String.prototype.toLowerCase; __reg.toLowerCase() === "/abc/". Actual: ' + __reg.toLowerCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T2.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T2.js
index d5ed914c9..b54c9754c 100644
--- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T2.js
+++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T2.js
@@ -14,7 +14,7 @@ __instance.toLowerCase = String.prototype.toLowerCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.toLowerCase() !== "false") {
- $ERROR('#1: __instance = new Boolean; __instance.toLowerCase = String.prototype.toLowerCase; __instance.toLowerCase() === "false". Actual: '+__instance.toLowerCase() );
+ $ERROR('#1: __instance = new Boolean; __instance.toLowerCase = String.prototype.toLowerCase; __instance.toLowerCase() === "false". Actual: ' + __instance.toLowerCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T3.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T3.js
index 35a215e6f..39b4a54ec 100644
--- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T3.js
+++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T3.js
@@ -10,7 +10,7 @@ description: Checking by using eval
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (eval("\"BJ\"").toLowerCase() !== "bj") {
- $ERROR('#1: eval("\\"BJ\\"").toLowerCase() === "bj". Actual: '+eval("\"BJ\"").toLowerCase() );
+ $ERROR('#1: eval("\\"BJ\\"").toLowerCase() === "bj". Actual: ' + eval("\"BJ\"").toLowerCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T4.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T4.js
index 145ad95bd..7a9da2162 100644
--- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T4.js
+++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T4.js
@@ -11,12 +11,12 @@ description: >
var __lowerCase = "".toLowerCase();
-var __expected = "";
+var __expected = "";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__lowerCase.length !== __expected.length) {
- $ERROR('#1: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: '+__lowerCase.length );
+ $ERROR('#1: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: ' + __lowerCase.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -24,7 +24,7 @@ if (__lowerCase.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__lowerCase.index !== __expected.index) {
- $ERROR('#2: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: '+__lowerCase.index );
+ $ERROR('#2: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: ' + __lowerCase.index);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -32,15 +32,15 @@ if (__lowerCase.index !== __expected.index) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__lowerCase.input !== __expected.input) {
- $ERROR('#3: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: '+__lowerCase.input );
+ $ERROR('#3: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: ' + __lowerCase.input);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-if (__lowerCase[0]!==__expected[0]) {
- $ERROR('#4: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase[0]==='+__expected[0]+'. Actual: '+__lowerCase[0]);
+if (__lowerCase[0] !== __expected[0]) {
+ $ERROR('#4: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase[0]===' + __expected[0] + '. Actual: ' + __lowerCase[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T5.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T5.js
index 0082c8caf..7b1e62c44 100644
--- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T5.js
+++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T5.js
@@ -10,8 +10,12 @@ description: Call toLowerCase() function for function call
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToString(null) evaluates to "null" match(null) evaluates to match("null")
-if (function(){return "GnulLuNa"}().toLowerCase() !== "gnulluna") {
- $ERROR('#1: function(){return "GnulLuNa"}().toLowerCase() === "gnulluna". Actual: '+function(){return "GnulLuNa"}().toLowerCase() );
+if (function() {
+ return "GnulLuNa"
+ }().toLowerCase() !== "gnulluna") {
+ $ERROR('#1: function(){return "GnulLuNa"}().toLowerCase() === "gnulluna". Actual: ' + function() {
+ return "GnulLuNa"
+ }().toLowerCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T6.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T6.js
index 915b9bc6a..961534476 100644
--- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T6.js
+++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T6.js
@@ -12,7 +12,7 @@ Number.prototype.toLowerCase = String.prototype.toLowerCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if ((Number.NEGATIVE_INFINITY).toLowerCase() !== "-infinity") {
- $ERROR('#1: Number.prototype.toLowerCase = String.prototype.toLowerCase; (Number.NEGATIVE_INFINITY).toLowerCase() === "-infinity". Actual: '+(Number.NEGATIVE_INFINITY).toLowerCase() );
+ $ERROR('#1: Number.prototype.toLowerCase = String.prototype.toLowerCase; (Number.NEGATIVE_INFINITY).toLowerCase() === "-infinity". Actual: ' + (Number.NEGATIVE_INFINITY).toLowerCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T7.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T7.js
index efb0be3d4..ac4ac806a 100644
--- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T7.js
+++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T7.js
@@ -11,8 +11,8 @@ Number.prototype.toLowerCase = String.prototype.toLowerCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (NaN.toLowerCase()!== "nan") {
- $ERROR('#1: Number.prototype.toLowerCase = String.prototype.toLowerCase; NaN.toLowerCase()=== "nan". Actual: '+NaN.toLowerCase());
+if (NaN.toLowerCase() !== "nan") {
+ $ERROR('#1: Number.prototype.toLowerCase = String.prototype.toLowerCase; NaN.toLowerCase()=== "nan". Actual: ' + NaN.toLowerCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T8.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T8.js
index 12d8e4982..bf1daa0e1 100644
--- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T8.js
+++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T8.js
@@ -9,6 +9,6 @@ description: Call toLowerCase() function of Infinity
Number.prototype.toLowerCase = String.prototype.toLowerCase;
-if (Infinity.toLowerCase()!== "infinity") {
- $ERROR('#1: Number.prototype.toLowerCase = String.prototype.toLowerCase; Infinity.toLowerCase()=== "infinity". Actual: '+Infinity.toLowerCase());
+if (Infinity.toLowerCase() !== "infinity") {
+ $ERROR('#1: Number.prototype.toLowerCase = String.prototype.toLowerCase; Infinity.toLowerCase()=== "infinity". Actual: ' + Infinity.toLowerCase());
}
diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T9.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T9.js
index 713b5ced9..823e01128 100644
--- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T9.js
+++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T9.js
@@ -8,18 +8,18 @@ description: Call toLowerCase() function of string object
---*/
var __obj = {
- valueOf:function(){},
- toString:void 0
+ valueOf: function() {},
+ toString: void 0
};
var __lowerCase = new String(__obj).toLowerCase();
-var __expected ="undefined";
+var __expected = "undefined";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__lowerCase.length !== __expected.length) {
- $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase.length === __expected.length. Actual: '+__lowerCase.length );
+ $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase.length === __expected.length. Actual: ' + __lowerCase.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__lowerCase.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__lowerCase.index !== __expected.index) {
- $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase.index === __expected.index. Actual: '+__lowerCase.index );
+ $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase.index === __expected.index. Actual: ' + __lowerCase.index);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,16 +35,16 @@ if (__lowerCase.index !== __expected.index) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__lowerCase.input !== __expected.input) {
- $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase.input === __expected.input. Actual: '+__lowerCase.input );
+ $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase.input === __expected.input. Actual: ' + __lowerCase.input);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__lowerCase[index]!==__expected[index]) {
- $ERROR('#4.'+index+': __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase['+index+']==='+__expected[index]+'. Actual: '+__lowerCase[index]);
+for (var index = 0; index < __expected.length; index++) {
+ if (__lowerCase[index] !== __expected[index]) {
+ $ERROR('#4.' + index + ': __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase[' + index + ']===' + __expected[index] + '. Actual: ' + __lowerCase[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A2_T1.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A2_T1.js
index 23824d463..472f9a243 100644
--- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A2_T1.js
+++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A2_T1.js
@@ -10,7 +10,7 @@ description: Checking returned result
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if ("Hello, WoRlD!".toLowerCase() !== "hello, world!") {
- $ERROR('#1: "Hello, WoRlD!".toLowerCase() === "hello, world!". Actual: '+("Hello, WoRlD!".toLowerCase()) );
+ $ERROR('#1: "Hello, WoRlD!".toLowerCase() === "hello, world!". Actual: ' + ("Hello, WoRlD!".toLowerCase()));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -18,14 +18,14 @@ if ("Hello, WoRlD!".toLowerCase() !== "hello, world!") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if ("Hello, WoRlD!".toLowerCase() !== String("hello, world!")) {
- $ERROR('#2: "Hello, WoRlD!".toLowerCase() === String("hello, world!"). Actual: '+("Hello, WoRlD!".toLowerCase()) );
+ $ERROR('#2: "Hello, WoRlD!".toLowerCase() === String("hello, world!"). Actual: ' + ("Hello, WoRlD!".toLowerCase()));
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-if ("Hello, WoRlD!".toLowerCase() ===new String("hello, world!")) {
+if ("Hello, WoRlD!".toLowerCase() === new String("hello, world!")) {
$ERROR('#3: "Hello, WoRlD!".toLowerCase() !== new String("hello, world!")');
}
//
diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A6.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A6.js
index 4504be730..056ad2ca1 100644
--- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A6.js
+++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A6.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.toLowerCase.prototype
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.prototype.toLowerCase.prototype !== undefined) {
- $ERROR('#1: String.prototype.toLowerCase.prototype === undefined. Actual: '+String.prototype.toLowerCase.prototype );
+ $ERROR('#1: String.prototype.toLowerCase.prototype === undefined. Actual: ' + String.prototype.toLowerCase.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A7.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A7.js
index 4d8c14efe..4e800e64b 100644
--- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A7.js
+++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A7.js
@@ -14,6 +14,6 @@ try {
$ERROR('#1: var __FACTORY = String.prototype.toLowerCase; "__instance = new __FACTORY" lead to throwing exception');
} catch (e) {
if ((e instanceof TypeError) !== true) {
- $ERROR('#1.1: var __FACTORY = String.prototype.toLowerCase; "__instance = new __FACTORY" throws a TypeError. Actual: ' + (e));
+ $ERROR('#1.1: var __FACTORY = String.prototype.toLowerCase; "__instance = new __FACTORY" throws a TypeError. Actual: ' + (e));
}
};
diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A8.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A8.js
index 779e3d2b0..0681d09cf 100644
--- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A8.js
+++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A8.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.toLowerCase.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.toLowerCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLowerCase.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.toLowerCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLowerCase.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,14 +30,14 @@ if (String.prototype.toLowerCase.propertyIsEnumerable('length')) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#2
-var count=0;
+var count = 0;
-for (var p in String.prototype.toLowerCase){
- if (p==="length") count++;
+for (var p in String.prototype.toLowerCase) {
+ if (p === "length") count++;
}
if (count !== 0) {
- $ERROR('#2: count=0; for (p in String.prototype.toLowerCase){if (p==="length") count++;}; count === 0. Actual: '+count );
+ $ERROR('#2: count=0; for (p in String.prototype.toLowerCase){if (p==="length") count++;}; count === 0. Actual: ' + count);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A9.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A9.js
index 2b680311f..4d3bc2aef 100644
--- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A9.js
+++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A9.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.toLowerCase.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.toLowerCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLowerCase.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.toLowerCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLowerCase.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (!delete String.prototype.toLowerCase.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.toLowerCase.hasOwnProperty('length')) {
- $ERROR('#2: delete String.prototype.toLowerCase.length; String.prototype.toLowerCase.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.toLowerCase.hasOwnProperty('length'));
+ $ERROR('#2: delete String.prototype.toLowerCase.length; String.prototype.toLowerCase.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.toLowerCase.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T1.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T1.js
index b83c5b183..9b397fe4b 100644
--- a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T1.js
+++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T1.js
@@ -11,8 +11,8 @@ var __string__obj = new String(1);
//////////////////////////////////////////////////////////////////////////////
//CHECK#
-if (__string__obj.toString() !== ""+1) {
- $ERROR('#1: __string__obj = new String(1); __string__obj.toString() === ""+1. Actual: __string__obj.toString() ==='+__string__obj.toString() );
+if (__string__obj.toString() !== "" + 1) {
+ $ERROR('#1: __string__obj = new String(1); __string__obj.toString() === ""+1. Actual: __string__obj.toString() ===' + __string__obj.toString());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T2.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T2.js
index 568f1a93f..328e8c177 100644
--- a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T2.js
+++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T2.js
@@ -11,8 +11,8 @@ var __string__obj = new String(true);
//////////////////////////////////////////////////////////////////////////////
//CHECK#
-if (__string__obj.toString() !== ""+true) {
- $ERROR('#1: __string__obj = new String(true); __string__obj.toString() === ""+true. Actual: __string__obj.toString() ==='+__string__obj.toString() );
+if (__string__obj.toString() !== "" + true) {
+ $ERROR('#1: __string__obj = new String(true); __string__obj.toString() === ""+true. Actual: __string__obj.toString() ===' + __string__obj.toString());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T3.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T3.js
index 2720ba435..ddeb249a6 100644
--- a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T3.js
+++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T3.js
@@ -12,7 +12,7 @@ var __string__obj = new String("metal");
//////////////////////////////////////////////////////////////////////////////
//CHECK#
if (__string__obj.toString() !== "metal") {
- $ERROR('#1: __string__obj = new String("metal"); __string__obj.toString() === "metal". Actual: __string__obj.toString() ==='+__string__obj.toString() );
+ $ERROR('#1: __string__obj = new String("metal"); __string__obj.toString() === "metal". Actual: __string__obj.toString() ===' + __string__obj.toString());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T4.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T4.js
index 933030ef5..73a7b7529 100644
--- a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T4.js
+++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T4.js
@@ -7,12 +7,12 @@ es5id: 15.5.4.2_A1_T4
description: Create new String(function(){}()) and check it`s method toString()
---*/
-var __string__obj = new String(function(){}());
+var __string__obj = new String(function() {}());
//////////////////////////////////////////////////////////////////////////////
//CHECK#
if (__string__obj.toString() !== "undefined") {
- $ERROR('#1: __string__obj = new String(function(){}()); __string__obj.toString() === "undefined". Actual: __string__obj.toString() ==='+__string__obj.toString() );
+ $ERROR('#1: __string__obj = new String(function(){}()); __string__obj.toString() === "undefined". Actual: __string__obj.toString() ===' + __string__obj.toString());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T1.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T1.js
index 8f1721db5..ba121d025 100644
--- a/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T1.js
+++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T1.js
@@ -15,7 +15,7 @@ var __toString = String.prototype.toString;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __toString !== "function") {
- $ERROR('#1: __toString = String.prototype.toString; typeof __toString === "function". Actual: typeof __toString ==='+typeof __toString );
+ $ERROR('#1: __toString = String.prototype.toString; typeof __toString === "function". Actual: typeof __toString ===' + typeof __toString);
}
//
@@ -28,7 +28,7 @@ try {
$ERROR('#2: "__toString = String.prototype.toString; var x = __toString();" lead to throwing exception');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#2.1: "__toString = String.prototype.toString; var x = __toString();" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e);
+ $ERROR('#2.1: "__toString = String.prototype.toString; var x = __toString();" lead to throwing exception. Exception is instance of TypeError. Actual: exception is ' + e);
}
}
//
diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T2.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T2.js
index 56896801c..8862f4fe8 100644
--- a/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T2.js
+++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T2.js
@@ -10,12 +10,14 @@ es5id: 15.5.4.2_A2_T2
description: Checking if creating the object String.prototype.toString fails
---*/
-var __obj={toString : String.prototype.toString};
+var __obj = {
+ toString: String.prototype.toString
+};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __obj["toString"] !== "function") {
- $ERROR('#1: var __obj={toString : String.prototype.toString}; typeof __obj["toString"] === "function". Actual: typeof __obj["toString"] ==='+typeof __obj["toString"] );
+ $ERROR('#1: var __obj={toString : String.prototype.toString}; typeof __obj["toString"] === "function". Actual: typeof __obj["toString"] ===' + typeof __obj["toString"]);
}
//
@@ -28,7 +30,7 @@ try {
$ERROR('#2: "var x = (__obj == 1)" lead to throwing exception');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is '+e);
+ $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is ' + e);
}
}
//
diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A3_T1.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A3_T1.js
index 51b235fe1..dfa848162 100644
--- a/test/built-ins/String/prototype/toString/S15.5.4.2_A3_T1.js
+++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A3_T1.js
@@ -11,20 +11,20 @@ description: >
//CHECK#1
var str = new String();
-if(!(str.valueOf() == str.toString()))
+if (!(str.valueOf() == str.toString()))
$ERROR('#1: str = new String(),str.valueOf() == str.toString()');
//CHECK#2
str = new String(true);
-if(!(str.valueOf() == str.toString()))
+if (!(str.valueOf() == str.toString()))
$ERROR('#2: str = new String(true),str.valueOf() == str.toString()');
//CHECK#3
str = new String(false);
-if(!(str.valueOf() == str.toString()))
+if (!(str.valueOf() == str.toString()))
$ERROR('#3: str = new String(false),str.valueOf() == str.toString()');
//CHECK#4
str = new String(Math.PI);
-if(!(str.valueOf() == str.toString()))
+if (!(str.valueOf() == str.toString()))
$ERROR('#4: str = new String(Math.PI),str.valueOf() == str.toString()');
diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A4_T1.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A4_T1.js
index f4b51a90a..01356cb51 100644
--- a/test/built-ins/String/prototype/toString/S15.5.4.2_A4_T1.js
+++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A4_T1.js
@@ -8,11 +8,11 @@ description: Checking String.prototype.toString.length property
---*/
//CHECK#1
-if (String.prototype.toString.hasOwnProperty('length')!==true){
- $ERROR('#1: String.prototype.toString.hasOwnProperty(\'length\')===true. Actual: '+String.prototype.toString.hasOwnProperty('length'));
+if (String.prototype.toString.hasOwnProperty('length') !== true) {
+ $ERROR('#1: String.prototype.toString.hasOwnProperty(\'length\')===true. Actual: ' + String.prototype.toString.hasOwnProperty('length'));
}
-else{
-//CHECK#2
-if (String.prototype.toString.length!==0)
- $ERROR('#2: String.prototype.toString.length===0. Actual: String.prototype.toString.length==='+String.prototype.toString.length);
+else {
+ //CHECK#2
+ if (String.prototype.toString.length !== 0)
+ $ERROR('#2: String.prototype.toString.length===0. Actual: String.prototype.toString.length===' + String.prototype.toString.length);
}
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A10.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A10.js
index b88e37c58..b1b96a0d0 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A10.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A10.js
@@ -15,19 +15,21 @@ includes: [propertyHelper.js]
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.toUpperCase.hasOwnProperty('length'))) {
- $ERROR('#1: String.prototype.toUpperCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toUpperCase.hasOwnProperty('length'));
+ $ERROR('#1: String.prototype.toUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toUpperCase.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
var __obj = String.prototype.toUpperCase.length;
-verifyNotWritable(String.prototype.toUpperCase, "length", null, function(){return "shifted";});
+verifyNotWritable(String.prototype.toUpperCase, "length", null, function() {
+ return "shifted";
+});
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.toUpperCase.length !== __obj) {
- $ERROR('#2: __obj = String.prototype.toUpperCase.length; String.prototype.toUpperCase.length = function(){return "shifted";}; String.prototype.toUpperCase.length === __obj. Actual: '+String.prototype.toUpperCase.length );
+ $ERROR('#2: __obj = String.prototype.toUpperCase.length; String.prototype.toUpperCase.length = function(){return "shifted";}; String.prototype.toUpperCase.length === __obj. Actual: ' + String.prototype.toUpperCase.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A11.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A11.js
index 3747a63f4..fb9baed90 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A11.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A11.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.toUpperCase.length
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!(String.prototype.toUpperCase.hasOwnProperty("length"))) {
- $ERROR('#1: String.prototype.toUpperCase.hasOwnProperty("length") return true. Actual: '+String.prototype.toUpperCase.hasOwnProperty("length"));
+ $ERROR('#1: String.prototype.toUpperCase.hasOwnProperty("length") return true. Actual: ' + String.prototype.toUpperCase.hasOwnProperty("length"));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -18,7 +18,7 @@ if (!(String.prototype.toUpperCase.hasOwnProperty("length"))) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.toUpperCase.length !== 0) {
- $ERROR('#2: String.prototype.toUpperCase.length === 0. Actual: '+String.prototype.toUpperCase.length );
+ $ERROR('#2: String.prototype.toUpperCase.length === 0. Actual: ' + String.prototype.toUpperCase.length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T1.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T1.js
index 951eafd2c..c5093c5a5 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T1.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T1.js
@@ -14,7 +14,7 @@ __instance.toUpperCase = String.prototype.toUpperCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.toUpperCase() !== "TRUE") {
- $ERROR('#1: __instance = new Object(true); __instance.toUpperCase = String.prototype.toUpperCase; __instance.toUpperCase() === "TRUE". Actual: '+__instance.toUpperCase() );
+ $ERROR('#1: __instance = new Object(true); __instance.toUpperCase = String.prototype.toUpperCase; __instance.toUpperCase() === "TRUE". Actual: ' + __instance.toUpperCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T10.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T10.js
index 0da16d896..505d785b8 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T10.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T10.js
@@ -9,13 +9,17 @@ description: >
function
---*/
-var __obj = {toString:function(){return "\u0041b";}}
+var __obj = {
+ toString: function() {
+ return "\u0041b";
+ }
+}
__obj.toUpperCase = String.prototype.toUpperCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__obj.toUpperCase() !=="AB") {
- $ERROR('#1: var __obj = {toString:function(){return "\u0041b";}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase() ==="AB". Actual: '+__obj.toUpperCase() );
+if (__obj.toUpperCase() !== "AB") {
+ $ERROR('#1: var __obj = {toString:function(){return "\u0041b";}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase() ==="AB". Actual: ' + __obj.toUpperCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js
index 63a68975a..4eccc3afc 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js
@@ -9,16 +9,20 @@ description: >
toUpperCase() function for this object
---*/
-var __obj = {toString:function(){throw "intostr";}}
+var __obj = {
+ toString: function() {
+ throw "intostr";
+ }
+}
__obj.toUpperCase = String.prototype.toUpperCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try {
var x = __obj.toUpperCase();
- $ERROR('#1: "var x = __obj.toUpperCase()" lead to throwing exception');
+ $ERROR('#1: "var x = __obj.toUpperCase()" lead to throwing exception');
} catch (e) {
- if (e!=="intostr") {
- $ERROR('#1.1: Exception === "intostr". Actual: '+e);
+ if (e !== "intostr") {
+ $ERROR('#1.1: Exception === "intostr". Actual: ' + e);
}
}
//
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T12.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T12.js
index 7ec6f11d7..6695033cd 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T12.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T12.js
@@ -9,16 +9,23 @@ description: >
then call toUpperCase() function for this object
---*/
-var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}}
+var __obj = {
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ throw "intostr";
+ }
+}
__obj.toUpperCase = String.prototype.toUpperCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try {
var x = __obj.toUpperCase();
- $ERROR('#1: "var x = __obj.toUpperCase()" lead to throwing exception');
+ $ERROR('#1: "var x = __obj.toUpperCase()" lead to throwing exception');
} catch (e) {
- if (e!=="intostr") {
- $ERROR('#1.1: Exception === "intostr". Actual: '+e);
+ if (e !== "intostr") {
+ $ERROR('#1.1: Exception === "intostr". Actual: ' + e);
}
}
//
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T13.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T13.js
index f3c9080f8..a4f0e26f3 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T13.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T13.js
@@ -9,13 +9,20 @@ description: >
function for this object
---*/
-var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}
+var __obj = {
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ return 1;
+ }
+}
__obj.toUpperCase = String.prototype.toUpperCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (__obj.toUpperCase() !=="1") {
- $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase() ==="1". Actual: '+__obj.toUpperCase() );
+if (__obj.toUpperCase() !== "1") {
+ $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase() ==="1". Actual: ' + __obj.toUpperCase());
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -23,7 +30,7 @@ if (__obj.toUpperCase() !=="1") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__obj.toUpperCase().length !== 1) {
- $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase().length === 1. Actual: '+__obj.toUpperCase().length );
+ $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase().length === 1. Actual: ' + __obj.toUpperCase().length);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T14.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T14.js
index 38d64db46..0c13deac2 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T14.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T14.js
@@ -12,7 +12,7 @@ __reg.toUpperCase = String.prototype.toUpperCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__reg.toUpperCase() !== "/ABC/") {
- $ERROR('#1: var __reg = new RegExp("abc"); __reg.toUpperCase = String.prototype.toUpperCase; __reg.toUpperCase() === "/ABC/". Actual: '+__reg.toUpperCase() );
+ $ERROR('#1: var __reg = new RegExp("abc"); __reg.toUpperCase = String.prototype.toUpperCase; __reg.toUpperCase() === "/ABC/". Actual: ' + __reg.toUpperCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T2.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T2.js
index e07861a9e..fda139b74 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T2.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T2.js
@@ -14,7 +14,7 @@ __instance.toUpperCase = String.prototype.toUpperCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__instance.toUpperCase() !== "FALSE") {
- $ERROR('#1: __instance = new Boolean; __instance.toUpperCase = String.prototype.toUpperCase; __instance.toUpperCase() === "FALSE". Actual: '+__instance.toUpperCase() );
+ $ERROR('#1: __instance = new Boolean; __instance.toUpperCase = String.prototype.toUpperCase; __instance.toUpperCase() === "FALSE". Actual: ' + __instance.toUpperCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T3.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T3.js
index 127023d0d..c095aa910 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T3.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T3.js
@@ -10,7 +10,7 @@ description: Checking by using eval
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (eval("\"bj\"").toUpperCase() !== "BJ") {
- $ERROR('#1: eval("\\"bj\\"").toUpperCase() === "BJ". Actual: '+eval("\"bj\"").toUpperCase() );
+ $ERROR('#1: eval("\\"bj\\"").toUpperCase() === "BJ". Actual: ' + eval("\"bj\"").toUpperCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T4.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T4.js
index a0f71334a..752d08837 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T4.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T4.js
@@ -11,12 +11,12 @@ description: >
var __lowerCase = "".toUpperCase();
-var __expected = "";
+var __expected = "";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__lowerCase.length !== __expected.length) {
- $ERROR('#1: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: '+__lowerCase.length );
+ $ERROR('#1: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: ' + __lowerCase.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -24,7 +24,7 @@ if (__lowerCase.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__lowerCase.index !== __expected.index) {
- $ERROR('#2: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: '+__lowerCase.index );
+ $ERROR('#2: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: ' + __lowerCase.index);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -32,15 +32,15 @@ if (__lowerCase.index !== __expected.index) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__lowerCase.input !== __expected.input) {
- $ERROR('#3: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: '+__lowerCase.input );
+ $ERROR('#3: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: ' + __lowerCase.input);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-if (__lowerCase[0]!==__expected[0]) {
- $ERROR('#4: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase[0]==='+__expected[0]+'. Actual: '+__lowerCase[0]);
+if (__lowerCase[0] !== __expected[0]) {
+ $ERROR('#4: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase[0]===' + __expected[0] + '. Actual: ' + __lowerCase[0]);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js
index 1e179135b..e9dbfcaf3 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js
@@ -10,8 +10,12 @@ description: Call toUpperCase() function of function call
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToString(null) evaluates to "null" match(null) evaluates to match("null")
-if (function(){return "GnulLuNa"}().toUpperCase() !== "GNULLUNA") {
- $ERROR('#1: function(){return "GnulLuNa"}().toUpperCase() === "GNULLUNA". Actual: '+function(){return "GnulLuNa"}().toUpperCase() );
+if (function() {
+ return "GnulLuNa"
+ }().toUpperCase() !== "GNULLUNA") {
+ $ERROR('#1: function(){return "GnulLuNa"}().toUpperCase() === "GNULLUNA". Actual: ' + function() {
+ return "GnulLuNa"
+ }().toUpperCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T6.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T6.js
index 85fc4f0e3..43fb1fc12 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T6.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T6.js
@@ -12,7 +12,7 @@ Number.prototype.toUpperCase = String.prototype.toUpperCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if ((Number.NEGATIVE_INFINITY).toUpperCase() !== "-INFINITY") {
- $ERROR('#1: Number.prototype.toUpperCase = String.prototype.toUpperCase; (Number.NEGATIVE_INFINITY).toUpperCase() === "-INFINITY". Actual: '+(Number.NEGATIVE_INFINITY).toUpperCase() );
+ $ERROR('#1: Number.prototype.toUpperCase = String.prototype.toUpperCase; (Number.NEGATIVE_INFINITY).toUpperCase() === "-INFINITY". Actual: ' + (Number.NEGATIVE_INFINITY).toUpperCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T7.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T7.js
index d5ea87140..2c94d95cc 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T7.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T7.js
@@ -11,8 +11,8 @@ Number.prototype.toUpperCase = String.prototype.toUpperCase;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if (NaN.toUpperCase()!== "NAN") {
- $ERROR('#1: Number.prototype.toUpperCase = String.prototype.toUpperCase; NaN.toUpperCase()=== "NAN". Actual: '+NaN.toUpperCase());
+if (NaN.toUpperCase() !== "NAN") {
+ $ERROR('#1: Number.prototype.toUpperCase = String.prototype.toUpperCase; NaN.toUpperCase()=== "NAN". Actual: ' + NaN.toUpperCase());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T8.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T8.js
index 289d7d1d7..d4297d85f 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T8.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T8.js
@@ -9,6 +9,6 @@ description: Call toUpperCase() function of Infinity;
Number.prototype.toUpperCase = String.prototype.toUpperCase;
-if (Infinity.toUpperCase()!== "INFINITY") {
- $ERROR('#1: Number.prototype.toUpperCase = String.prototype.toUpperCase; Infinity.toUpperCase()=== "INFINITY". Actual: '+Infinity.toUpperCase());
+if (Infinity.toUpperCase() !== "INFINITY") {
+ $ERROR('#1: Number.prototype.toUpperCase = String.prototype.toUpperCase; Infinity.toUpperCase()=== "INFINITY". Actual: ' + Infinity.toUpperCase());
}
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T9.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T9.js
index 10a3f1b23..4a5327174 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T9.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T9.js
@@ -8,18 +8,18 @@ description: Call toUpperCase() function of string object
---*/
var __obj = {
- valueOf:function(){},
- toString:void 0
+ valueOf: function() {},
+ toString: void 0
};
var __upperCase = new String(__obj).toUpperCase();
-var __expected ="UNDEFINED";
+var __expected = "UNDEFINED";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__upperCase.length !== __expected.length) {
- $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase.length === __expected.length. Actual: '+__upperCase.length );
+ $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase.length === __expected.length. Actual: ' + __upperCase.length);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@ if (__upperCase.length !== __expected.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__upperCase.index !== __expected.index) {
- $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase.index === __expected.index. Actual: '+__upperCase.index );
+ $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase.index === __expected.index. Actual: ' + __upperCase.index);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -35,16 +35,16 @@ if (__upperCase.index !== __expected.index) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (__upperCase.input !== __expected.input) {
- $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase.input === __expected.input. Actual: '+__upperCase.input );
+ $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase.input === __expected.input. Actual: ' + __upperCase.input);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__upperCase[index]!==__expected[index]) {
- $ERROR('#4.'+index+': __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase['+index+']==='+__expected[index]+'. Actual: '+__upperCase[index]);
+for (var index = 0; index < __expected.length; index++) {
+ if (__upperCase[index] !== __expected[index]) {
+ $ERROR('#4.' + index + ': __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase[' + index + ']===' + __expected[index] + '. Actual: ' + __upperCase[index]);
}
}
//
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A2_T1.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A2_T1.js
index b6b76ea34..7ed0d7de9 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A2_T1.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A2_T1.js
@@ -10,7 +10,7 @@ description: Checking returned result
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if ("Hello, WoRlD!".toUpperCase() !== "HELLO, WORLD!") {
- $ERROR('#1: "Hello, WoRlD!".toUpperCase() === "HELLO, WORLD!". Actual: '+("Hello, WoRlD!".toUpperCase()) );
+ $ERROR('#1: "Hello, WoRlD!".toUpperCase() === "HELLO, WORLD!". Actual: ' + ("Hello, WoRlD!".toUpperCase()));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -18,14 +18,14 @@ if ("Hello, WoRlD!".toUpperCase() !== "HELLO, WORLD!") {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if ("Hello, WoRlD!".toUpperCase() !== String("HELLO, WORLD!")) {
- $ERROR('#2: "Hello, WoRlD!".toUpperCase() === String("HELLO, WORLD!"). Actual: '+("Hello, WoRlD!".toUpperCase()) );
+ $ERROR('#2: "Hello, WoRlD!".toUpperCase() === String("HELLO, WORLD!"). Actual: ' + ("Hello, WoRlD!".toUpperCase()));
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-if ("Hello, WoRlD!".toUpperCase() ===new String("HELLO, WORLD!")) {
+if ("Hello, WoRlD!".toUpperCase() === new String("HELLO, WORLD!")) {
$ERROR('#3: "Hello, WoRlD!".toUpperCase() !== new String("HELLO, WORLD!")');
}
//
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A6.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A6.js
index e870a1a9b..7d1512f5a 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A6.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A6.js
@@ -10,7 +10,7 @@ description: Checking String.prototype.toUpperCase.prototype
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (String.prototype.toUpperCase.prototype !== undefined) {
- $ERROR('#1: String.prototype.toUpperCase.prototype === undefined. Actual: '+String.prototype.toUpperCase.prototype );
+ $ERROR('#1: String.prototype.toUpperCase.prototype === undefined. Actual: ' + String.prototype.toUpperCase.prototype);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A7.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A7.js
index bd2d26e8a..b11b32063 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A7.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A7.js
@@ -14,6 +14,6 @@ try {
$ERROR('#1: var __FACTORY = String.prototype.toUpperCase; "__instance = new __FACTORY" lead to throwing exception');
} catch (e) {
if ((e instanceof TypeError) !== true) {
- $ERROR('#1.1: var __FACTORY = String.prototype.toUpperCase; "__instance = new __FACTORY" throw a TypeError. Actual: ' + (e));
+ $ERROR('#1.1: var __FACTORY = String.prototype.toUpperCase; "__instance = new __FACTORY" throw a TypeError. Actual: ' + (e));
}
}
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A8.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A8.js
index d5deefd6d..b388e38a6 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A8.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A8.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.toUpperCase.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.toUpperCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toUpperCase.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.toUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toUpperCase.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,14 +30,14 @@ if (String.prototype.toUpperCase.propertyIsEnumerable('length')) {
//////////////////////////////////////////////////////////////////////////////
// CHECK#2
-var count=0;
+var count = 0;
-for (var p in String.prototype.toUpperCase){
- if (p==="length") count++;
+for (var p in String.prototype.toUpperCase) {
+ if (p === "length") count++;
}
if (count !== 0) {
- $ERROR('#2: count=0; for (p in String.prototype.toUpperCase){if (p==="length") count++;}; count === 0. Actual: '+count );
+ $ERROR('#2: count=0; for (p in String.prototype.toUpperCase){if (p==="length") count++;}; count === 0. Actual: ' + count);
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A9.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A9.js
index 9e33d4b01..5cf505e07 100644
--- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A9.js
+++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A9.js
@@ -14,7 +14,7 @@ description: >
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
if (!(String.prototype.toUpperCase.hasOwnProperty('length'))) {
- $ERROR('#0: String.prototype.toUpperCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toUpperCase.hasOwnProperty('length'));
+ $ERROR('#0: String.prototype.toUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toUpperCase.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +30,7 @@ if (!delete String.prototype.toUpperCase.length) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (String.prototype.toUpperCase.hasOwnProperty('length')) {
- $ERROR('#2: delete String.prototype.toUpperCase.length; String.prototype.toUpperCase.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.toUpperCase.hasOwnProperty('length'));
+ $ERROR('#2: delete String.prototype.toUpperCase.length; String.prototype.toUpperCase.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.toUpperCase.hasOwnProperty('length'));
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-0-1.js b/test/built-ins/String/prototype/trim/15.5.4.20-0-1.js
index 429a17b07..cd7a756f4 100644
--- a/test/built-ins/String/prototype/trim/15.5.4.20-0-1.js
+++ b/test/built-ins/String/prototype/trim/15.5.4.20-0-1.js
@@ -6,6 +6,6 @@ es5id: 15.5.4.20-0-1
description: String.prototype.trim must exist as a function
---*/
- var f = String.prototype.trim;
+var f = String.prototype.trim;
assert.sameValue(typeof(f), "function", 'typeof(f)');
diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-1-1.js b/test/built-ins/String/prototype/trim/15.5.4.20-1-1.js
index bd0bcaa1f..d44536ab5 100644
--- a/test/built-ins/String/prototype/trim/15.5.4.20-1-1.js
+++ b/test/built-ins/String/prototype/trim/15.5.4.20-1-1.js
@@ -8,5 +8,5 @@ description: String.prototype.trim throws TypeError when string is undefined
assert.throws(TypeError, function() {
- String.prototype.trim.call(undefined);
+ String.prototype.trim.call(undefined);
});
diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-1-2.js b/test/built-ins/String/prototype/trim/15.5.4.20-1-2.js
index d91241da2..728d40f5a 100644
--- a/test/built-ins/String/prototype/trim/15.5.4.20-1-2.js
+++ b/test/built-ins/String/prototype/trim/15.5.4.20-1-2.js
@@ -8,5 +8,5 @@ description: String.prototype.trim throws TypeError when string is null
assert.throws(TypeError, function() {
- String.prototype.trim.call(null);
+ String.prototype.trim.call(null);
});
diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-1-8.js b/test/built-ins/String/prototype/trim/15.5.4.20-1-8.js
index 3b93eb173..874f8110d 100644
--- a/test/built-ins/String/prototype/trim/15.5.4.20-1-8.js
+++ b/test/built-ins/String/prototype/trim/15.5.4.20-1-8.js
@@ -8,7 +8,7 @@ description: >
abc')
---*/
- var strObj = String(" abc");
+var strObj = String(" abc");
assert.sameValue(strObj.trim(), "abc", 'strObj.trim()');
assert.sameValue(strObj.toString(), " abc", 'strObj.toString()');
diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-1-9.js b/test/built-ins/String/prototype/trim/15.5.4.20-1-9.js
index cd09927dd..69ada3281 100644
--- a/test/built-ins/String/prototype/trim/15.5.4.20-1-9.js
+++ b/test/built-ins/String/prototype/trim/15.5.4.20-1-9.js
@@ -8,6 +8,6 @@ description: >
undefined
---*/
- var strObj = new String(undefined);
+var strObj = new String(undefined);
assert.sameValue(strObj.trim(), "undefined", 'strObj.trim()');
diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-38.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-38.js
index 163254129..925c82e1e 100644
--- a/test/built-ins/String/prototype/trim/15.5.4.20-2-38.js
+++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-38.js
@@ -8,10 +8,10 @@ description: >
toString method
---*/
- var obj = {
- toString: function () {
- return "abc";
- }
- };
+var obj = {
+ toString: function() {
+ return "abc";
+ }
+};
assert.sameValue(String.prototype.trim.call(obj), "abc", 'String.prototype.trim.call(obj)');
diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-39.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-39.js
index 2536716de..6d93265b0 100644
--- a/test/built-ins/String/prototype/trim/15.5.4.20-2-39.js
+++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-39.js
@@ -8,10 +8,10 @@ description: >
valueOf method
---*/
- var obj = {
- valueOf: function () {
- return "abc";
- }
- };
+var obj = {
+ valueOf: function() {
+ return "abc";
+ }
+};
assert.sameValue(String.prototype.trim.call(obj), "[object Object]", 'String.prototype.trim.call(obj)');
diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-40.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-40.js
index 4edb83c72..d3e91e5f1 100644
--- a/test/built-ins/String/prototype/trim/15.5.4.20-2-40.js
+++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-40.js
@@ -9,18 +9,18 @@ description: >
returns a primitive value
---*/
- var toStringAccessed = false;
- var valueOfAccessed = false;
- var obj = {
- toString: function () {
- toStringAccessed = true;
- return {};
- },
- valueOf: function () {
- valueOfAccessed = true;
- return "abc";
- }
- };
+var toStringAccessed = false;
+var valueOfAccessed = false;
+var obj = {
+ toString: function() {
+ toStringAccessed = true;
+ return {};
+ },
+ valueOf: function() {
+ valueOfAccessed = true;
+ return "abc";
+ }
+};
assert.sameValue(String.prototype.trim.call(obj), "abc", 'String.prototype.trim.call(obj)');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-41.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-41.js
index a9233a47d..260eb88cc 100644
--- a/test/built-ins/String/prototype/trim/15.5.4.20-2-41.js
+++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-41.js
@@ -8,18 +8,18 @@ description: >
toString and valueOf method.
---*/
- var toStringAccessed = false;
- var valueOfAccessed = false;
- var obj = {
- toString: function () {
- toStringAccessed = true;
- return "abc";
- },
- valueOf: function () {
- valueOfAccessed = true;
- return "cef";
- }
- };
+var toStringAccessed = false;
+var valueOfAccessed = false;
+var obj = {
+ toString: function() {
+ toStringAccessed = true;
+ return "abc";
+ },
+ valueOf: function() {
+ valueOfAccessed = true;
+ return "cef";
+ }
+};
assert.sameValue(String.prototype.trim.call(obj), "abc", 'String.prototype.trim.call(obj)');
assert.sameValue(valueOfAccessed, false, 'valueOfAccessed');
diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-42.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-42.js
index 393625ce0..2c7faa8ec 100644
--- a/test/built-ins/String/prototype/trim/15.5.4.20-2-42.js
+++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-42.js
@@ -9,20 +9,20 @@ description: >
primitive value.
---*/
- var toStringAccessed = false;
- var valueOfAccessed = false;
- var obj = {
- toString: function () {
- toStringAccessed = true;
- return {};
- },
- valueOf: function () {
- valueOfAccessed = true;
- return {};
- }
- };
+var toStringAccessed = false;
+var valueOfAccessed = false;
+var obj = {
+ toString: function() {
+ toStringAccessed = true;
+ return {};
+ },
+ valueOf: function() {
+ valueOfAccessed = true;
+ return {};
+ }
+};
assert.throws(TypeError, function() {
- String.prototype.trim.call(obj);
+ String.prototype.trim.call(obj);
});
assert(valueOfAccessed, 'valueOfAccessed !== true');
assert(toStringAccessed, 'toStringAccessed !== true');
diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-43.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-43.js
index 1c9446bdc..0bad8928f 100644
--- a/test/built-ins/String/prototype/trim/15.5.4.20-2-43.js
+++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-43.js
@@ -9,24 +9,24 @@ description: >
toString method will be called first
---*/
- var toStringAccessed = false;
- var valueOfAccessed = false;
+var toStringAccessed = false;
+var valueOfAccessed = false;
- var proto = {
- toString: function () {
- toStringAccessed = true;
- return "abc";
- }
- };
+var proto = {
+ toString: function() {
+ toStringAccessed = true;
+ return "abc";
+ }
+};
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var child = new Con();
- child.valueOf = function () {
- valueOfAccessed = true;
- return "efg";
- };
+var child = new Con();
+child.valueOf = function() {
+ valueOfAccessed = true;
+ return "efg";
+};
assert.sameValue(String.prototype.trim.call(child), "abc", 'String.prototype.trim.call(child)');
assert(toStringAccessed, 'toStringAccessed !== true');
diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-44.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-44.js
index 3dbead788..9da700970 100644
--- a/test/built-ins/String/prototype/trim/15.5.4.20-2-44.js
+++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-44.js
@@ -8,6 +8,6 @@ description: >
Asian characters (value is 'SD咕噜')
---*/
- var str = "SD咕噜";
+var str = "SD咕噜";
assert.sameValue(str.trim(), str, 'str.trim()');
diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-45.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-45.js
index c8c99d70a..82d31dc33 100644
--- a/test/built-ins/String/prototype/trim/15.5.4.20-2-45.js
+++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-45.js
@@ -8,7 +8,7 @@ description: >
space, character, number, object and null characters
---*/
- var str = "abc" + " " + 123 + " " + {} + " " + "\u0000";
- var str1 = " " + str + " ";
+var str = "abc" + " " + 123 + " " + {} + " " + "\u0000";
+var str1 = " " + str + " ";
assert.sameValue(str1.trim(), str, 'str1.trim()');
diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-46.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-46.js
index f68088fa3..a01462f13 100644
--- a/test/built-ins/String/prototype/trim/15.5.4.20-2-46.js
+++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-46.js
@@ -8,6 +8,8 @@ description: >
to a string
---*/
- var funObj = function () { return arguments; };
+var funObj = function() {
+ return arguments;
+};
assert.sameValue(typeof(String.prototype.trim.call(funObj)), "string", 'typeof(String.prototype.trim.call(funObj))');
diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-49.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-49.js
index 7eb3a04b3..88e71dcb9 100644
--- a/test/built-ins/String/prototype/trim/15.5.4.20-2-49.js
+++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-49.js
@@ -8,6 +8,6 @@ description: >
a string
---*/
- var regObj = new RegExp(/test/);
+var regObj = new RegExp(/test/);
assert.sameValue(String.prototype.trim.call(regObj), "/test/", 'String.prototype.trim.call(regObj)');
diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-50.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-50.js
index 7dff7b940..a59a845ca 100644
--- a/test/built-ins/String/prototype/trim/15.5.4.20-2-50.js
+++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-50.js
@@ -8,6 +8,6 @@ description: >
a string
---*/
- var errObj = new Error("test");
+var errObj = new Error("test");
assert.sameValue(String.prototype.trim.call(errObj), "Error: test", 'String.prototype.trim.call(errObj)');
diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-51.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-51.js
index d47c31beb..525f8e8e8 100644
--- a/test/built-ins/String/prototype/trim/15.5.4.20-2-51.js
+++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-51.js
@@ -8,6 +8,8 @@ description: >
to a string
---*/
- var argObj = function () { return arguments; } (1, 2, true);
+var argObj = function() {
+ return arguments;
+}(1, 2, true);
assert.sameValue(String.prototype.trim.call(argObj), "[object Arguments]", 'String.prototype.trim.call(argObj)');
diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-3-1.js b/test/built-ins/String/prototype/trim/15.5.4.20-3-1.js
index 0d7794575..b2fae943c 100644
--- a/test/built-ins/String/prototype/trim/15.5.4.20-3-1.js
+++ b/test/built-ins/String/prototype/trim/15.5.4.20-3-1.js
@@ -6,6 +6,6 @@ es5id: 15.5.4.20-3-1
description: String.prototype.trim - 'S' is a string with all LineTerminator
---*/
- var lineTerminatorsStr = "\u000A\u000D\u2028\u2029";
+var lineTerminatorsStr = "\u000A\u000D\u2028\u2029";
assert.sameValue(lineTerminatorsStr.trim(), "", 'lineTerminatorsStr.trim()');
diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-3-5.js b/test/built-ins/String/prototype/trim/15.5.4.20-3-5.js
index c488c91ee..1c2c946b6 100644
--- a/test/built-ins/String/prototype/trim/15.5.4.20-3-5.js
+++ b/test/built-ins/String/prototype/trim/15.5.4.20-3-5.js
@@ -10,6 +10,6 @@ description: >
var lineTerminatorsStr = "\u000A\u000D\u2028\u2029";
var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
-var str = "abc" + whiteSpacesStr + lineTerminatorsStr ;
+var str = "abc" + whiteSpacesStr + lineTerminatorsStr;
assert.sameValue(str.trim(), "abc", 'str.trim()');
diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-4-1.js b/test/built-ins/String/prototype/trim/15.5.4.20-4-1.js
index 9abc0fdfa..33666c924 100644
--- a/test/built-ins/String/prototype/trim/15.5.4.20-4-1.js
+++ b/test/built-ins/String/prototype/trim/15.5.4.20-4-1.js
@@ -11,6 +11,6 @@ description: >
var s = "\u0009a b\
c \u0009"
-
+
assert.sameValue(s.trim(), "a bc", 's.trim()');
diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-4-59.js b/test/built-ins/String/prototype/trim/15.5.4.20-4-59.js
index 13a98eb6c..209698561 100644
--- a/test/built-ins/String/prototype/trim/15.5.4.20-4-59.js
+++ b/test/built-ins/String/prototype/trim/15.5.4.20-4-59.js
@@ -8,7 +8,7 @@ description: >
(\u2029abc as a multiline string)
---*/
- var s = "\u2029\
+var s = "\u2029\
abc";
assert.sameValue(s.trim(), "abc", 's.trim()');
diff --git a/test/built-ins/String/prototype/trimEnd/this-value-number.js b/test/built-ins/String/prototype/trimEnd/this-value-number.js
index 2affe2261..1f331ee47 100644
--- a/test/built-ins/String/prototype/trimEnd/this-value-number.js
+++ b/test/built-ins/String/prototype/trimEnd/this-value-number.js
@@ -45,4 +45,3 @@ assert.sameValue(
'-1',
'String.prototype.trimEnd.call(-1)'
);
-
diff --git a/test/built-ins/String/prototype/trimEnd/this-value-object-cannot-convert-to-primitive-err.js b/test/built-ins/String/prototype/trimEnd/this-value-object-cannot-convert-to-primitive-err.js
index 3a85af554..77170a1c7 100644
--- a/test/built-ins/String/prototype/trimEnd/this-value-object-cannot-convert-to-primitive-err.js
+++ b/test/built-ins/String/prototype/trimEnd/this-value-object-cannot-convert-to-primitive-err.js
@@ -53,5 +53,7 @@ var thisVal = {
// nor valueOf defined, then a TypeError exception should be thrown.
assert.throws(
TypeError,
- function() { String.prototype.trimEnd.call(thisVal); },
+ function() {
+ String.prototype.trimEnd.call(thisVal);
+ },
);
diff --git a/test/built-ins/String/prototype/trimEnd/this-value-object-toprimitive-meth-priority.js b/test/built-ins/String/prototype/trimEnd/this-value-object-toprimitive-meth-priority.js
index f7bdb4e5e..127dc03f9 100644
--- a/test/built-ins/String/prototype/trimEnd/this-value-object-toprimitive-meth-priority.js
+++ b/test/built-ins/String/prototype/trimEnd/this-value-object-toprimitive-meth-priority.js
@@ -33,15 +33,21 @@ var valueOfAccessed = 0;
var thisVal = {
get [Symbol.toPrimitive]() {
toPrimitiveAccessed += 1;
- return function() { return '42 '; };
+ return function() {
+ return '42 ';
+ };
},
get toString() {
toStringAccessed += 1;
- return function() { return ''; };
+ return function() {
+ return '';
+ };
},
get valueOf() {
valueOfAccessed += 1;
- return function() { return ''; };
+ return function() {
+ return '';
+ };
},
};
diff --git a/test/built-ins/String/prototype/trimEnd/this-value-object-tostring-meth-priority.js b/test/built-ins/String/prototype/trimEnd/this-value-object-tostring-meth-priority.js
index 50e78cb60..3c65454e0 100644
--- a/test/built-ins/String/prototype/trimEnd/this-value-object-tostring-meth-priority.js
+++ b/test/built-ins/String/prototype/trimEnd/this-value-object-tostring-meth-priority.js
@@ -48,16 +48,20 @@ var toStringAccessed = 0;
var valueOfAccessed = 0;
var thisVal = {
get [Symbol.toPrimitive]() {
- toPrimitiveAccessed +=1;
+ toPrimitiveAccessed += 1;
return undefined;
},
get toString() {
toStringAccessed += 1;
- return function() { return '42 '; };
+ return function() {
+ return '42 ';
+ };
},
get valueOf() {
valueOfAccessed += 1;
- return function() { return ''; };
+ return function() {
+ return '';
+ };
},
};
diff --git a/test/built-ins/String/prototype/trimEnd/this-value-object-valueof-meth-priority.js b/test/built-ins/String/prototype/trimEnd/this-value-object-valueof-meth-priority.js
index fe327468e..b2a16798c 100644
--- a/test/built-ins/String/prototype/trimEnd/this-value-object-valueof-meth-priority.js
+++ b/test/built-ins/String/prototype/trimEnd/this-value-object-valueof-meth-priority.js
@@ -57,7 +57,9 @@ var thisVal = {
},
get valueOf() {
valueOfAccessed += 1;
- return function() { return '42 '; };
+ return function() {
+ return '42 ';
+ };
},
};
diff --git a/test/built-ins/String/prototype/trimEnd/this-value-symbol-typeerror.js b/test/built-ins/String/prototype/trimEnd/this-value-symbol-typeerror.js
index e53131a6a..d043708aa 100644
--- a/test/built-ins/String/prototype/trimEnd/this-value-symbol-typeerror.js
+++ b/test/built-ins/String/prototype/trimEnd/this-value-symbol-typeerror.js
@@ -19,6 +19,8 @@ var symbol = Symbol();
assert.throws(
TypeError,
- function() { trimEnd.call(symbol); },
+ function() {
+ trimEnd.call(symbol);
+ },
'String.prototype.trimEnd.call(Symbol())'
);
diff --git a/test/built-ins/String/prototype/trimStart/this-value-number.js b/test/built-ins/String/prototype/trimStart/this-value-number.js
index 2a4a518ea..c187cbad9 100644
--- a/test/built-ins/String/prototype/trimStart/this-value-number.js
+++ b/test/built-ins/String/prototype/trimStart/this-value-number.js
@@ -45,4 +45,3 @@ assert.sameValue(
'-1',
'String.prototype.trimStart.call(-1)'
);
-
diff --git a/test/built-ins/String/prototype/trimStart/this-value-object-cannot-convert-to-primitive-err.js b/test/built-ins/String/prototype/trimStart/this-value-object-cannot-convert-to-primitive-err.js
index 15de7e415..e74d0569b 100644
--- a/test/built-ins/String/prototype/trimStart/this-value-object-cannot-convert-to-primitive-err.js
+++ b/test/built-ins/String/prototype/trimStart/this-value-object-cannot-convert-to-primitive-err.js
@@ -53,5 +53,7 @@ var thisVal = {
// nor valueOf defined, then a TypeError exception should be thrown.
assert.throws(
TypeError,
- function() { String.prototype.trimStart.call(thisVal); },
+ function() {
+ String.prototype.trimStart.call(thisVal);
+ },
);
diff --git a/test/built-ins/String/prototype/trimStart/this-value-object-toprimitive-meth-priority.js b/test/built-ins/String/prototype/trimStart/this-value-object-toprimitive-meth-priority.js
index b6db92121..f16a325f8 100644
--- a/test/built-ins/String/prototype/trimStart/this-value-object-toprimitive-meth-priority.js
+++ b/test/built-ins/String/prototype/trimStart/this-value-object-toprimitive-meth-priority.js
@@ -33,15 +33,21 @@ var valueOfAccessed = 0;
var thisVal = {
get [Symbol.toPrimitive]() {
toPrimitiveAccessed += 1;
- return function() { return ' 42'; };
+ return function() {
+ return ' 42';
+ };
},
get toString() {
toStringAccessed += 1;
- return function() { return ''; };
+ return function() {
+ return '';
+ };
},
get valueOf() {
valueOfAccessed += 1;
- return function() { return ''; };
+ return function() {
+ return '';
+ };
},
};
diff --git a/test/built-ins/String/prototype/trimStart/this-value-object-tostring-meth-priority.js b/test/built-ins/String/prototype/trimStart/this-value-object-tostring-meth-priority.js
index af3d34873..f4fb1f201 100644
--- a/test/built-ins/String/prototype/trimStart/this-value-object-tostring-meth-priority.js
+++ b/test/built-ins/String/prototype/trimStart/this-value-object-tostring-meth-priority.js
@@ -48,16 +48,20 @@ var toStringAccessed = 0;
var valueOfAccessed = 0;
var thisVal = {
get [Symbol.toPrimitive]() {
- toPrimitiveAccessed +=1;
+ toPrimitiveAccessed += 1;
return undefined;
},
get toString() {
toStringAccessed += 1;
- return function() { return ' 42'; };
+ return function() {
+ return ' 42';
+ };
},
get valueOf() {
valueOfAccessed += 1;
- return function() { return ''; };
+ return function() {
+ return '';
+ };
},
};
diff --git a/test/built-ins/String/prototype/trimStart/this-value-object-valueof-meth-priority.js b/test/built-ins/String/prototype/trimStart/this-value-object-valueof-meth-priority.js
index 6ebbda736..1f4e67cea 100644
--- a/test/built-ins/String/prototype/trimStart/this-value-object-valueof-meth-priority.js
+++ b/test/built-ins/String/prototype/trimStart/this-value-object-valueof-meth-priority.js
@@ -57,7 +57,9 @@ var thisVal = {
},
get valueOf() {
valueOfAccessed += 1;
- return function() { return ' 42'; };
+ return function() {
+ return ' 42';
+ };
},
};
diff --git a/test/built-ins/String/prototype/trimStart/this-value-symbol-typeerror.js b/test/built-ins/String/prototype/trimStart/this-value-symbol-typeerror.js
index e66f2e85d..f49280759 100644
--- a/test/built-ins/String/prototype/trimStart/this-value-symbol-typeerror.js
+++ b/test/built-ins/String/prototype/trimStart/this-value-symbol-typeerror.js
@@ -19,6 +19,8 @@ var symbol = Symbol();
assert.throws(
TypeError,
- function() { trimStart.call(symbol); },
+ function() {
+ trimStart.call(symbol);
+ },
'String.prototype.trimStart.call(Symbol())'
);
diff --git a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T1.js b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T1.js
index a3080da71..6e42dcfbf 100644
--- a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T1.js
+++ b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T1.js
@@ -11,8 +11,8 @@ var __string__obj = new String(1);
//////////////////////////////////////////////////////////////////////////////
//CHECK#
-if (__string__obj.valueOf() !== ""+1) {
- $ERROR('#1: __string__obj = new String(1); __string__obj.valueOf() === ""+1. Actual: __string__obj.valueOf() ==='+__string__obj.valueOf() );
+if (__string__obj.valueOf() !== "" + 1) {
+ $ERROR('#1: __string__obj = new String(1); __string__obj.valueOf() === ""+1. Actual: __string__obj.valueOf() ===' + __string__obj.valueOf());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T2.js b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T2.js
index 553ccf768..88a5de7e4 100644
--- a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T2.js
+++ b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T2.js
@@ -11,8 +11,8 @@ var __string__obj = new String(true);
//////////////////////////////////////////////////////////////////////////////
//CHECK#
-if (__string__obj.valueOf() !== ""+true) {
- $ERROR('#1: __string__obj = new String(true); __string__obj.valueOf() === ""+true. Actual: __string__obj.valueOf() ==='+__string__obj.valueOf() );
+if (__string__obj.valueOf() !== "" + true) {
+ $ERROR('#1: __string__obj = new String(true); __string__obj.valueOf() === ""+true. Actual: __string__obj.valueOf() ===' + __string__obj.valueOf());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T3.js b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T3.js
index cbeb4dd01..20f48c09b 100644
--- a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T3.js
+++ b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T3.js
@@ -12,7 +12,7 @@ var __string__obj = new String("metal");
//////////////////////////////////////////////////////////////////////////////
//CHECK#
if (__string__obj.valueOf() !== "metal") {
- $ERROR('#1: __string__obj = new String("metal"); __string__obj.valueOf() === "metal". Actual: __string__obj.valueOf() ==='+__string__obj.valueOf() );
+ $ERROR('#1: __string__obj = new String("metal"); __string__obj.valueOf() === "metal". Actual: __string__obj.valueOf() ===' + __string__obj.valueOf());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T4.js b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T4.js
index e7beb039a..495b720c5 100644
--- a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T4.js
+++ b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T4.js
@@ -9,12 +9,12 @@ description: >
valueOf()
---*/
-var __string__obj = new String(function(){}());
+var __string__obj = new String(function() {}());
//////////////////////////////////////////////////////////////////////////////
//CHECK#
if (__string__obj.valueOf() !== "undefined") {
- $ERROR('#1: __string__obj = new String(function(){}()); __string__obj.valueOf() === "undefined". Actual: __string__obj.valueOf() ==='+__string__obj.valueOf() );
+ $ERROR('#1: __string__obj = new String(function(){}()); __string__obj.valueOf() === "undefined". Actual: __string__obj.valueOf() ===' + __string__obj.valueOf());
}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T1.js b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T1.js
index 4e4613a5e..4c8cf8269 100644
--- a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T1.js
+++ b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T1.js
@@ -14,7 +14,7 @@ var __valueOf = String.prototype.valueOf;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __valueOf !== "function") {
- $ERROR('#1: __valueOf = String.prototype.valueOf; typeof __valueOf === "function". Actual: typeof __valueOf ==='+typeof __valueOf );
+ $ERROR('#1: __valueOf = String.prototype.valueOf; typeof __valueOf === "function". Actual: typeof __valueOf ===' + typeof __valueOf);
}
//
@@ -27,7 +27,7 @@ try {
$ERROR('#2: "__valueOf = String.prototype.valueOf; var x = __valueOf()" lead to throwing exception');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is '+e);
+ $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is ' + e);
}
}
//
diff --git a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T2.js b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T2.js
index efaa7ef5d..ec48d9f96 100644
--- a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T2.js
+++ b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T2.js
@@ -9,12 +9,14 @@ es5id: 15.5.4.3_A2_T2
description: Checking if creating the object String.prototype.valueOf fails
---*/
-var __obj={valueOf : String.prototype.valueOf};
+var __obj = {
+ valueOf: String.prototype.valueOf
+};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (typeof __obj["valueOf"] !== "function") {
- $ERROR('#1: var __obj={valueOf : String.prototype.valueOf}; typeof __obj["valueOf"] === "function". Actual: typeof __obj["valueOf"] ==='+typeof __obj["valueOf"] );
+ $ERROR('#1: var __obj={valueOf : String.prototype.valueOf}; typeof __obj["valueOf"] === "function". Actual: typeof __obj["valueOf"] ===' + typeof __obj["valueOf"]);
}
//
@@ -27,7 +29,7 @@ try {
$ERROR('#2: "var __obj={valueOf : String.prototype.valueOf}; var x = (__obj == 1)" lead to throwing exception');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is '+e);
+ $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is ' + e);
}
}
//
diff --git a/test/built-ins/String/raw/return-the-string-value-from-template.js b/test/built-ins/String/raw/return-the-string-value-from-template.js
index 8c130ffe0..2c360832d 100644
--- a/test/built-ins/String/raw/return-the-string-value-from-template.js
+++ b/test/built-ins/String/raw/return-the-string-value-from-template.js
@@ -23,4 +23,4 @@ info: |
...
---*/
-assert.sameValue(String.raw`123\u0065`, '123\\u0065');
+assert.sameValue(String.raw `123\u0065`, '123\\u0065');
diff --git a/test/built-ins/String/raw/special-characters.js b/test/built-ins/String/raw/special-characters.js
index 1d1c5f270..09181e3b9 100644
--- a/test/built-ins/String/raw/special-characters.js
+++ b/test/built-ins/String/raw/special-characters.js
@@ -8,12 +8,13 @@ description: >
---*/
assert.sameValue(
- String.raw`\u0065\`\r\r\n\n${'test'}check`,
+ String.raw `\u0065\`\r\r\n\n${'test'}check`,
'\\u0065\\`\\r\\r\\n\\ntestcheck',
'Unicode escape sequences'
);
assert.sameValue(
- String.raw`\ \
+ String.raw `\
+\
\
`,
'\\\n\\\n\\\n',
diff --git a/test/built-ins/String/raw/template-substitutions-are-appended-on-same-index.js b/test/built-ins/String/raw/template-substitutions-are-appended-on-same-index.js
index 509bce29d..343894724 100644
--- a/test/built-ins/String/raw/template-substitutions-are-appended-on-same-index.js
+++ b/test/built-ins/String/raw/template-substitutions-are-appended-on-same-index.js
@@ -29,4 +29,4 @@ info: |
k. Let nextIndex be nextIndex + 1.
---*/
-assert.sameValue(String.raw`1${2}3${4}5`, '12345');
+assert.sameValue(String.raw `1${2}3${4}5`, '12345');
diff --git a/test/built-ins/String/raw/zero-literal-segments.js b/test/built-ins/String/raw/zero-literal-segments.js
index 8ed98172b..73fd41cb1 100644
--- a/test/built-ins/String/raw/zero-literal-segments.js
+++ b/test/built-ins/String/raw/zero-literal-segments.js
@@ -6,4 +6,4 @@ description: >
If literalSegments ≤ 0, return the empty string.
---*/
-assert.sameValue(String.raw``, '');
+assert.sameValue(String.raw ``, '');
diff --git a/test/built-ins/StringIteratorPrototype/Symbol.toStringTag.js b/test/built-ins/StringIteratorPrototype/Symbol.toStringTag.js
index 4e13ddd00..cfae79396 100644
--- a/test/built-ins/StringIteratorPrototype/Symbol.toStringTag.js
+++ b/test/built-ins/StringIteratorPrototype/Symbol.toStringTag.js
@@ -14,7 +14,7 @@ features: [Symbol.iterator, Symbol.toStringTag]
includes: [propertyHelper.js]
---*/
-var StringIteratorProto = Object.getPrototypeOf(''[Symbol.iterator]());
+var StringIteratorProto = Object.getPrototypeOf('' [Symbol.iterator]());
assert.sameValue(StringIteratorProto[Symbol.toStringTag], 'String Iterator');
diff --git a/test/built-ins/StringIteratorPrototype/ancestry.js b/test/built-ins/StringIteratorPrototype/ancestry.js
index aee000995..137486df6 100644
--- a/test/built-ins/StringIteratorPrototype/ancestry.js
+++ b/test/built-ins/StringIteratorPrototype/ancestry.js
@@ -8,7 +8,7 @@ description: >
features: [Symbol.iterator]
---*/
-var strItrProto = Object.getPrototypeOf(''[Symbol.iterator]());
+var strItrProto = Object.getPrototypeOf('' [Symbol.iterator]());
var itrProto = Object.getPrototypeOf(
Object.getPrototypeOf([][Symbol.iterator]())
);
diff --git a/test/built-ins/StringIteratorPrototype/next/next-missing-internal-slots.js b/test/built-ins/StringIteratorPrototype/next/next-missing-internal-slots.js
index 41c0703cf..d61f85227 100644
--- a/test/built-ins/StringIteratorPrototype/next/next-missing-internal-slots.js
+++ b/test/built-ins/StringIteratorPrototype/next/next-missing-internal-slots.js
@@ -14,7 +14,7 @@ info: |
features: [Symbol.iterator]
---*/
-var iterator = ''[Symbol.iterator]();
+var iterator = '' [Symbol.iterator]();
var object = Object.create(iterator);
assert.throws(TypeError, function() {
diff --git a/test/built-ins/Symbol/constructor.js b/test/built-ins/Symbol/constructor.js
index e62f06c8f..936f05416 100644
--- a/test/built-ins/Symbol/constructor.js
+++ b/test/built-ins/Symbol/constructor.js
@@ -7,12 +7,12 @@ description: >
features: [Symbol]
---*/
assert.sameValue(
- Object.getPrototypeOf(Symbol('66')).constructor,
- Symbol,
- "The value of `Object.getPrototypeOf(Symbol('66')).constructor` is `Symbol`"
+ Object.getPrototypeOf(Symbol('66')).constructor,
+ Symbol,
+ "The value of `Object.getPrototypeOf(Symbol('66')).constructor` is `Symbol`"
);
assert.sameValue(
- Object.getPrototypeOf(Object(Symbol('66'))).constructor,
- Symbol,
- "The value of `Object.getPrototypeOf(Object(Symbol('66'))).constructor` is `Symbol`"
+ Object.getPrototypeOf(Object(Symbol('66'))).constructor,
+ Symbol,
+ "The value of `Object.getPrototypeOf(Object(Symbol('66'))).constructor` is `Symbol`"
);
diff --git a/test/built-ins/Symbol/prototype/intrinsic.js b/test/built-ins/Symbol/prototype/intrinsic.js
index 2059f7b84..e4493006c 100644
--- a/test/built-ins/Symbol/prototype/intrinsic.js
+++ b/test/built-ins/Symbol/prototype/intrinsic.js
@@ -7,7 +7,7 @@ description: >
features: [Symbol]
---*/
assert.sameValue(
- Object.getPrototypeOf(Symbol('66')),
- Symbol.prototype,
- "`Object.getPrototypeOf(Symbol('66'))` returns `Symbol.prototype`"
+ Object.getPrototypeOf(Symbol('66')),
+ Symbol.prototype,
+ "`Object.getPrototypeOf(Symbol('66'))` returns `Symbol.prototype`"
);
diff --git a/test/built-ins/Symbol/species/builtin-getter-name.js b/test/built-ins/Symbol/species/builtin-getter-name.js
index b0e1dcb4c..74512b6ba 100644
--- a/test/built-ins/Symbol/species/builtin-getter-name.js
+++ b/test/built-ins/Symbol/species/builtin-getter-name.js
@@ -11,8 +11,8 @@ features: [Symbol.species]
---*/
function getGetterName(obj, name) {
- var getter = Object.getOwnPropertyDescriptor(obj, Symbol.species).get;
- return getter && getter.name;
+ var getter = Object.getOwnPropertyDescriptor(obj, Symbol.species).get;
+ return getter && getter.name;
}
assert.sameValue(getGetterName(Array, Symbol.species), "get [Symbol.species]");
@@ -20,4 +20,3 @@ assert.sameValue(getGetterName(Map, Symbol.species), "get [Symbol.species]");
assert.sameValue(getGetterName(Promise, Symbol.species), "get [Symbol.species]");
assert.sameValue(getGetterName(RegExp, Symbol.species), "get [Symbol.species]");
assert.sameValue(getGetterName(Set, Symbol.species), "get [Symbol.species]");
-
diff --git a/test/built-ins/Symbol/species/subclassing.js b/test/built-ins/Symbol/species/subclassing.js
index d6a13d498..5264f2437 100644
--- a/test/built-ins/Symbol/species/subclassing.js
+++ b/test/built-ins/Symbol/species/subclassing.js
@@ -9,8 +9,6 @@ description: Symbol.species is retained on subclassing
features: [Symbol.species]
---*/
-class MyRegExp extends RegExp {
-};
+class MyRegExp extends RegExp {};
assert.sameValue(MyRegExp[Symbol.species], MyRegExp);
-
diff --git a/test/built-ins/ThrowTypeError/distinct-cross-realm.js b/test/built-ins/ThrowTypeError/distinct-cross-realm.js
index 3fb412296..b25660179 100644
--- a/test/built-ins/ThrowTypeError/distinct-cross-realm.js
+++ b/test/built-ins/ThrowTypeError/distinct-cross-realm.js
@@ -13,7 +13,10 @@ features: [cross-realm]
---*/
var other = $262.createRealm().global;
-var localArgs = function(){ "use strict"; return arguments; }();
+var localArgs = function() {
+ "use strict";
+ return arguments;
+}();
var otherArgs = (new other.Function('return arguments;'))();
var localThrowTypeError = Object.getOwnPropertyDescriptor(localArgs, "callee").get;
var otherThrowTypeError = Object.getOwnPropertyDescriptor(otherArgs, "callee").get;
diff --git a/test/built-ins/ThrowTypeError/extensible.js b/test/built-ins/ThrowTypeError/extensible.js
index c6c93ae28..ac42dadf9 100644
--- a/test/built-ins/ThrowTypeError/extensible.js
+++ b/test/built-ins/ThrowTypeError/extensible.js
@@ -12,6 +12,9 @@ info: |
function is false.
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
assert.sameValue(Object.isExtensible(ThrowTypeError), false);
diff --git a/test/built-ins/ThrowTypeError/forbidden-arguments.js b/test/built-ins/ThrowTypeError/forbidden-arguments.js
index d4d8cbda9..7532de505 100644
--- a/test/built-ins/ThrowTypeError/forbidden-arguments.js
+++ b/test/built-ins/ThrowTypeError/forbidden-arguments.js
@@ -25,6 +25,9 @@ info: |
properties.
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
assert.sameValue(Object.prototype.hasOwnProperty.call(ThrowTypeError, "arguments"), false);
diff --git a/test/built-ins/ThrowTypeError/forbidden-caller.js b/test/built-ins/ThrowTypeError/forbidden-caller.js
index e2d7bece1..6aa2fb62c 100644
--- a/test/built-ins/ThrowTypeError/forbidden-caller.js
+++ b/test/built-ins/ThrowTypeError/forbidden-caller.js
@@ -25,6 +25,9 @@ info: |
properties.
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
assert.sameValue(Object.prototype.hasOwnProperty.call(ThrowTypeError, "caller"), false);
diff --git a/test/built-ins/ThrowTypeError/frozen.js b/test/built-ins/ThrowTypeError/frozen.js
index 011f62f8c..76c9b6ec7 100644
--- a/test/built-ins/ThrowTypeError/frozen.js
+++ b/test/built-ins/ThrowTypeError/frozen.js
@@ -14,6 +14,9 @@ info: |
{ [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }.
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
assert.sameValue(Object.isFrozen(ThrowTypeError), true);
diff --git a/test/built-ins/ThrowTypeError/is-function.js b/test/built-ins/ThrowTypeError/is-function.js
index 553a8fe41..b3d15916d 100644
--- a/test/built-ins/ThrowTypeError/is-function.js
+++ b/test/built-ins/ThrowTypeError/is-function.js
@@ -12,6 +12,9 @@ info: |
object that is defined once for each realm.
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
assert.sameValue(typeof ThrowTypeError, "function");
diff --git a/test/built-ins/ThrowTypeError/length.js b/test/built-ins/ThrowTypeError/length.js
index 5e74e1745..5a14e231b 100644
--- a/test/built-ins/ThrowTypeError/length.js
+++ b/test/built-ins/ThrowTypeError/length.js
@@ -13,7 +13,10 @@ info: |
includes: [propertyHelper.js]
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
assert.sameValue(ThrowTypeError.length, 0);
diff --git a/test/built-ins/ThrowTypeError/name.js b/test/built-ins/ThrowTypeError/name.js
index d2cb287c3..d894ee12f 100644
--- a/test/built-ins/ThrowTypeError/name.js
+++ b/test/built-ins/ThrowTypeError/name.js
@@ -12,6 +12,9 @@ info: |
object that is defined once for each Realm.
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
assert.sameValue(Object.prototype.hasOwnProperty.call(ThrowTypeError, "name"), false);
diff --git a/test/built-ins/ThrowTypeError/prototype.js b/test/built-ins/ThrowTypeError/prototype.js
index 4ad20323b..fcb92f431 100644
--- a/test/built-ins/ThrowTypeError/prototype.js
+++ b/test/built-ins/ThrowTypeError/prototype.js
@@ -19,6 +19,9 @@ info: |
...
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
assert.sameValue(Object.getPrototypeOf(ThrowTypeError), Function.prototype);
diff --git a/test/built-ins/ThrowTypeError/throws-type-error.js b/test/built-ins/ThrowTypeError/throws-type-error.js
index 577dc4560..b2df50ca1 100644
--- a/test/built-ins/ThrowTypeError/throws-type-error.js
+++ b/test/built-ins/ThrowTypeError/throws-type-error.js
@@ -13,7 +13,10 @@ info: |
1. Throw a TypeError exception.
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
assert.throws(TypeError, function() {
ThrowTypeError();
diff --git a/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js b/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js
index a5235f1c3..47fdb00d1 100644
--- a/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js
+++ b/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js
@@ -12,7 +12,10 @@ info: |
object that is defined once for each realm.
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
// Test with Function.prototype.arguments and Function.prototype.caller properties.
var argumentsDesc = Object.getOwnPropertyDescriptor(Function.prototype, "arguments");
diff --git a/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js b/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js
index a69be6bf4..f30052e0b 100644
--- a/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js
+++ b/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js
@@ -12,7 +12,10 @@ info: |
object that is defined once for each realm.
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
// Test with unmapped arguments object from function with non-simple parameters list.
function nonSimple(a = 0) {
diff --git a/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js b/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js
index 66dee2bd4..057225298 100644
--- a/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js
+++ b/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js
@@ -12,7 +12,10 @@ info: |
object that is defined once for each realm.
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
// Test with unmapped arguments object from strict-mode function.
function strictFn() {
diff --git a/test/built-ins/TypedArray/from/arylk-to-length-error.js b/test/built-ins/TypedArray/from/arylk-to-length-error.js
index 1cc2bd738..87599eb3b 100644
--- a/test/built-ins/TypedArray/from/arylk-to-length-error.js
+++ b/test/built-ins/TypedArray/from/arylk-to-length-error.js
@@ -13,7 +13,9 @@ includes: [testTypedArray.js]
features: [TypedArray]
---*/
-var arrayLike = { length: {} };
+var arrayLike = {
+ length: {}
+};
arrayLike.length = {
valueOf: function() {
diff --git a/test/built-ins/TypedArray/from/mapfn-is-not-callable.js b/test/built-ins/TypedArray/from/mapfn-is-not-callable.js
index 906ec4746..f5831d833 100644
--- a/test/built-ins/TypedArray/from/mapfn-is-not-callable.js
+++ b/test/built-ins/TypedArray/from/mapfn-is-not-callable.js
@@ -54,4 +54,4 @@ assert.throws(TypeError, function() {
assert.sameValue(
getIterator, 0,
"IsCallable(mapfn) check occurs before getting source[@@iterator]"
-); \ No newline at end of file
+);
diff --git a/test/built-ins/TypedArray/from/this-is-not-constructor.js b/test/built-ins/TypedArray/from/this-is-not-constructor.js
index ac7d1cc9e..589665226 100644
--- a/test/built-ins/TypedArray/from/this-is-not-constructor.js
+++ b/test/built-ins/TypedArray/from/this-is-not-constructor.js
@@ -15,7 +15,9 @@ features: [TypedArray]
---*/
var from = TypedArray.from;
-var m = { m() {} }.m;
+var m = {
+ m() {}
+}.m;
assert.throws(TypeError, function() {
from.call(m, []);
diff --git a/test/built-ins/TypedArray/of/invoked-as-func.js b/test/built-ins/TypedArray/of/invoked-as-func.js
index af8f8c8b6..29ee64382 100644
--- a/test/built-ins/TypedArray/of/invoked-as-func.js
+++ b/test/built-ins/TypedArray/of/invoked-as-func.js
@@ -17,6 +17,5 @@ features: [TypedArray]
var of = TypedArray.of;
-assert.throws(TypeError, function() {
- of();
+assert.throws(TypeError, function() { of ();
});
diff --git a/test/built-ins/TypedArray/of/this-is-not-constructor.js b/test/built-ins/TypedArray/of/this-is-not-constructor.js
index eb91d74a3..264e2e5b1 100644
--- a/test/built-ins/TypedArray/of/this-is-not-constructor.js
+++ b/test/built-ins/TypedArray/of/this-is-not-constructor.js
@@ -15,7 +15,9 @@ includes: [testTypedArray.js]
features: [TypedArray]
---*/
-var m = { m() {} }.m;
+var m = {
+ m() {}
+}.m;
assert.throws(TypeError, function() {
TypedArray.of.call(m, []);
diff --git a/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.js b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.js
index 1cd62be56..7e8489831 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.js
@@ -29,48 +29,42 @@ includes: [compareArray.js, testTypedArray.js]
testWithTypedArrayConstructors(function(TA) {
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(1, 0, null),
- [0, 1, 2, 3]
+ new TA([0, 1, 2, 3]).copyWithin(1, 0, null), [0, 1, 2, 3]
),
'null value coerced to 0'
);
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(1, 0, NaN),
- [0, 1, 2, 3]
+ new TA([0, 1, 2, 3]).copyWithin(1, 0, NaN), [0, 1, 2, 3]
),
'NaN value coerced to 0'
);
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(1, 0, false),
- [0, 1, 2, 3]
+ new TA([0, 1, 2, 3]).copyWithin(1, 0, false), [0, 1, 2, 3]
),
'false value coerced to 0'
);
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(1, 0, true),
- [0, 0, 2, 3]
+ new TA([0, 1, 2, 3]).copyWithin(1, 0, true), [0, 0, 2, 3]
),
'true value coerced to 1'
);
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(1, 0, '-2'),
- [0, 0, 1, 3]
+ new TA([0, 1, 2, 3]).copyWithin(1, 0, '-2'), [0, 0, 1, 3]
),
'string "-2" value coerced to integer -2'
);
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(1, 0, -2.5),
- [0, 0, 1, 3]
+ new TA([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/TypedArray/prototype/copyWithin/coerced-values-start.js b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-start.js
index 96819e395..c6f766c08 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-start.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-start.js
@@ -28,64 +28,56 @@ includes: [compareArray.js, testTypedArray.js]
testWithTypedArrayConstructors(function(TA) {
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(1, undefined),
- [0, 0, 1, 2]
+ new TA([0, 1, 2, 3]).copyWithin(1, undefined), [0, 0, 1, 2]
),
'undefined value coerced to 0'
);
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(1, false),
- [0, 0, 1, 2]
+ new TA([0, 1, 2, 3]).copyWithin(1, false), [0, 0, 1, 2]
),
'false value coerced to 0'
);
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(1, NaN),
- [0, 0, 1, 2]
+ new TA([0, 1, 2, 3]).copyWithin(1, NaN), [0, 0, 1, 2]
),
'NaN value coerced to 0'
);
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(1, null),
- [0, 0, 1, 2]
+ new TA([0, 1, 2, 3]).copyWithin(1, null), [0, 0, 1, 2]
),
'null value coerced to 0'
);
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(0, true),
- [1, 2, 3, 3]
+ new TA([0, 1, 2, 3]).copyWithin(0, true), [1, 2, 3, 3]
),
'true value coerced to 1'
);
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(0, '1'),
- [1, 2, 3, 3]
+ new TA([0, 1, 2, 3]).copyWithin(0, '1'), [1, 2, 3, 3]
),
'string "1" value coerced to 1'
);
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(1, 0.5),
- [0, 0, 1, 2]
+ new TA([0, 1, 2, 3]).copyWithin(1, 0.5), [0, 0, 1, 2]
),
'0.5 float value coerced to integer 0'
);
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(0, 1.5),
- [1, 2, 3, 3]
+ new TA([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/TypedArray/prototype/copyWithin/coerced-values-target.js b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-target.js
index 8d0c2816d..44348b90f 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-target.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-target.js
@@ -28,64 +28,56 @@ includes: [compareArray.js, testTypedArray.js]
testWithTypedArrayConstructors(function(TA) {
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(undefined, 1),
- [1, 2, 3, 3]
+ new TA([0, 1, 2, 3]).copyWithin(undefined, 1), [1, 2, 3, 3]
),
'undefined value coerced to 0'
);
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(false, 1),
- [1, 2, 3, 3]
+ new TA([0, 1, 2, 3]).copyWithin(false, 1), [1, 2, 3, 3]
),
'false value coerced to 0'
);
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(NaN, 1),
- [1, 2, 3, 3]
+ new TA([0, 1, 2, 3]).copyWithin(NaN, 1), [1, 2, 3, 3]
),
'NaN value coerced to 0'
);
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(null, 1),
- [1, 2, 3, 3]
+ new TA([0, 1, 2, 3]).copyWithin(null, 1), [1, 2, 3, 3]
),
'null value coerced to 0'
);
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(true, 0),
- [0, 0, 1, 2]
+ new TA([0, 1, 2, 3]).copyWithin(true, 0), [0, 0, 1, 2]
),
'true value coerced to 1'
);
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin('1', 0),
- [0, 0, 1, 2]
+ new TA([0, 1, 2, 3]).copyWithin('1', 0), [0, 0, 1, 2]
),
'string "1" value coerced to 1'
);
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(0.5, 1),
- [1, 2, 3, 3]
+ new TA([0, 1, 2, 3]).copyWithin(0.5, 1), [1, 2, 3, 3]
),
'0.5 float value coerced to integer 0'
);
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(1.5, 0),
- [0, 0, 1, 2]
+ new TA([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/TypedArray/prototype/copyWithin/negative-end.js b/test/built-ins/TypedArray/prototype/copyWithin/negative-end.js
index 96c9823f8..5e90c95bc 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/negative-end.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-end.js
@@ -31,64 +31,56 @@ includes: [compareArray.js, testTypedArray.js]
testWithTypedArrayConstructors(function(TA) {
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(0, 1, -1),
- [1, 2, 2, 3]
+ new TA([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(
- new TA([0, 1, 2, 3, 4]).copyWithin(2, 0, -1),
- [0, 1, 0, 1, 2]
+ new TA([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(
- new TA([0, 1, 2, 3, 4]).copyWithin(1, 2, -2),
- [0, 2, 2, 3, 4]
+ new TA([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(
- new TA([0, 1, 2, 3]).copyWithin(0, -2, -1),
- [2, 1, 2, 3]
+ new TA([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(
- new TA([0, 1, 2, 3, 4]).copyWithin(2, -2, -1),
- [0, 1, 3, 3, 4]
+ new TA([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(
- new TA([0, 1, 2, 3]).copyWithin(-3, -2, -1),
- [0, 2, 2, 3]
+ new TA([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(
- new TA([0, 1, 2, 3, 4]).copyWithin(-2, -3, -1),
- [0, 1, 2, 2, 3]
+ new TA([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(
- new TA([0, 1, 2, 3, 4]).copyWithin(-5, -2, -1),
- [3, 1, 2, 3, 4]
+ new TA([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/TypedArray/prototype/copyWithin/negative-out-of-bounds-end.js b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-end.js
index 7c55118aa..cfd1c71b4 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-end.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-end.js
@@ -31,80 +31,70 @@ includes: [compareArray.js, testTypedArray.js]
testWithTypedArrayConstructors(function(TA) {
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(0, 1, -10),
- [0, 1, 2, 3]
+ new TA([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(
- new TA([1, 2, 3, 4, 5]).copyWithin(0, 1, -Infinity),
- [1, 2, 3, 4, 5]
+ new TA([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(
- new TA([0, 1, 2, 3]).copyWithin(0, -2, -10),
- [0, 1, 2, 3]
+ new TA([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(
- new TA([1, 2, 3, 4, 5]).copyWithin(0, -2, -Infinity),
- [1, 2, 3, 4, 5]
+ new TA([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(
- new TA([0, 1, 2, 3]).copyWithin(0, -9, -10),
- [0, 1, 2, 3]
+ new TA([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(
- new TA([1, 2, 3, 4, 5]).copyWithin(0, -9, -Infinity),
- [1, 2, 3, 4, 5]
+ new TA([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(
- new TA([0, 1, 2, 3]).copyWithin(-3, -2, -10),
- [0, 1, 2, 3]
+ new TA([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(
- new TA([1, 2, 3, 4, 5]).copyWithin(-3, -2, -Infinity),
- [1, 2, 3, 4, 5]
+ new TA([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(
- new TA([0, 1, 2, 3]).copyWithin(-7, -8, -9),
- [0, 1, 2, 3]
+ new TA([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(
- new TA([1, 2, 3, 4, 5]).copyWithin(-7, -8, -Infinity),
- [1, 2, 3, 4, 5]
+ new TA([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/TypedArray/prototype/copyWithin/negative-out-of-bounds-start.js b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-start.js
index 4fdc4eb12..ead2f737e 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-start.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-start.js
@@ -29,64 +29,56 @@ includes: [compareArray.js, testTypedArray.js]
testWithTypedArrayConstructors(function(TA) {
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(0, -10),
- [0, 1, 2, 3]
+ new TA([0, 1, 2, 3]).copyWithin(0, -10), [0, 1, 2, 3]
),
'[0, 1, 2, 3]).copyWithin(0, -10) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- new TA([1, 2, 3, 4, 5]).copyWithin(0, -Infinity),
- [1, 2, 3, 4, 5]
+ new TA([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(
- new TA([0, 1, 2, 3, 4]).copyWithin(2, -10),
- [0, 1, 0, 1, 2]
+ new TA([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(
- new TA([1, 2, 3, 4, 5]).copyWithin(2, -Infinity),
- [1, 2, 1, 2, 3]
+ new TA([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]'
);
assert(
compareArray(
- new TA([0, 1, 2, 3, 4]).copyWithin(10, -10),
- [0, 1, 2, 3, 4]
+ new TA([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(
- new TA([1, 2, 3, 4, 5]).copyWithin(10, -Infinity),
- [1, 2, 3, 4, 5]
+ new TA([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]'
);
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(-9, -10),
- [0, 1, 2, 3]
+ new TA([0, 1, 2, 3]).copyWithin(-9, -10), [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(-9, -10) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- new TA([1, 2, 3, 4, 5]).copyWithin(-9, -Infinity),
- [1, 2, 3, 4, 5]
+ new TA([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/TypedArray/prototype/copyWithin/negative-out-of-bounds-target.js b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-target.js
index dc46906d3..32b4818ad 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-target.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-target.js
@@ -29,32 +29,28 @@ includes: [compareArray.js, testTypedArray.js]
testWithTypedArrayConstructors(function(TA) {
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(-10, 0),
- [0, 1, 2, 3]
+ new TA([0, 1, 2, 3]).copyWithin(-10, 0), [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(-10, 0) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- new TA([1, 2, 3, 4, 5]).copyWithin(-Infinity, 0),
- [1, 2, 3, 4, 5]
+ new TA([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(
- new TA([0, 1, 2, 3, 4]).copyWithin(-10, 2),
- [2, 3, 4, 3, 4]
+ new TA([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(
- new TA([1, 2, 3, 4, 5]).copyWithin(-Infinity, 2),
- [3, 4, 5, 4, 5]
+ new TA([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/TypedArray/prototype/copyWithin/negative-start.js b/test/built-ins/TypedArray/prototype/copyWithin/negative-start.js
index df73879d4..4552cab64 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/negative-start.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-start.js
@@ -29,48 +29,42 @@ includes: [compareArray.js, testTypedArray.js]
testWithTypedArrayConstructors(function(TA) {
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(0, -1),
- [3, 1, 2, 3]
+ new TA([0, 1, 2, 3]).copyWithin(0, -1), [3, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, -1) -> [3, 1, 2, 3]'
);
assert(
compareArray(
- new TA([0, 1, 2, 3, 4]).copyWithin(2, -2),
- [0, 1, 3, 4, 4]
+ new TA([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(
- new TA([0, 1, 2, 3, 4]).copyWithin(1, -2),
- [0, 3, 4, 3, 4]
+ new TA([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(
- new TA([0, 1, 2, 3]).copyWithin(-1, -2),
- [0, 1, 2, 2]
+ new TA([0, 1, 2, 3]).copyWithin(-1, -2), [0, 1, 2, 2]
),
'[0, 1, 2, 3].copyWithin(-1, -2) -> [ 0, 1, 2, 2 ]'
);
assert(
compareArray(
- new TA([0, 1, 2, 3, 4]).copyWithin(-2, -3),
- [0, 1, 2, 2, 3]
+ new TA([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(
- new TA([0, 1, 2, 3, 4]).copyWithin(-5, -2),
- [3, 4, 2, 3, 4]
+ new TA([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/TypedArray/prototype/copyWithin/negative-target.js b/test/built-ins/TypedArray/prototype/copyWithin/negative-target.js
index dfc252b1e..ad290241d 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/negative-target.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-target.js
@@ -29,24 +29,21 @@ includes: [compareArray.js, testTypedArray.js]
testWithTypedArrayConstructors(function(TA) {
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(-1, 0),
- [0, 1, 2, 0]
+ new TA([0, 1, 2, 3]).copyWithin(-1, 0), [0, 1, 2, 0]
),
'[0, 1, 2, 3].copyWithin(-1, 0) -> [0, 1, 2, 0]'
);
assert(
compareArray(
- new TA([0, 1, 2, 3, 4]).copyWithin(-2, 2),
- [0, 1, 2, 2, 3]
+ new TA([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(
- new TA([0, 1, 2, 3]).copyWithin(-1, 2),
- [0, 1, 2, 2]
+ new TA([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/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-end.js b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-end.js
index 9767106c0..9a71f2a7d 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-end.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-end.js
@@ -22,32 +22,28 @@ includes: [compareArray.js, testTypedArray.js]
testWithTypedArrayConstructors(function(TA) {
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(0, 1, 6),
- [1, 2, 3, 3]
+ new TA([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(
- new TA([1, 2, 3, 4, 5]).copyWithin(0, 1, Infinity),
- [2, 3, 4, 5, 5]
+ new TA([1, 2, 3, 4, 5]).copyWithin(0, 1, Infinity), [2, 3, 4, 5, 5]
),
'[1, 2, 3, 4, 5].copyWithin(0, 1, Infinity) -> [2, 3, 4, 5, 5]'
);
assert(
compareArray(
- new TA([0, 1, 2, 3, 4, 5]).copyWithin(1, 3, 6),
- [0, 3, 4, 5, 4, 5]
+ new TA([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(
- new TA([1, 2, 3, 4, 5]).copyWithin(1, 3, Infinity),
- [1, 4, 5, 4, 5]
+ new TA([1, 2, 3, 4, 5]).copyWithin(1, 3, Infinity), [1, 4, 5, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(1, 3, Infinity) -> [1, 4, 5, 4, 5]'
);
diff --git a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js
index f1cc0504a..4dfbf4f4d 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js
@@ -22,52 +22,45 @@ includes: [compareArray.js, testTypedArray.js]
testWithTypedArrayConstructors(function(TA) {
assert(
compareArray(
- new TA([0, 1, 2, 3, 4, 5]).copyWithin(6, 0),
- [0, 1, 2, 3, 4, 5]
+ new TA([0, 1, 2, 3, 4, 5]).copyWithin(6, 0), [0, 1, 2, 3, 4, 5]
)
);
assert(
compareArray(
- new TA([1, 2, 3, 4, 5]).copyWithin(Infinity, 0),
- [1, 2, 3, 4, 5]
+ new TA([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(
- new TA([0, 1, 2, 3, 4, 5]).copyWithin(0, 6),
- [0, 1, 2, 3, 4, 5]
+ new TA([0, 1, 2, 3, 4, 5]).copyWithin(0, 6), [0, 1, 2, 3, 4, 5]
)
);
assert(
compareArray(
- new TA([1, 2, 3, 4, 5]).copyWithin(0, Infinity),
- [1, 2, 3, 4, 5]
+ new TA([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(
- new TA([0, 1, 2, 3, 4, 5]).copyWithin(6, 6),
- [0, 1, 2, 3, 4, 5]
+ new TA([0, 1, 2, 3, 4, 5]).copyWithin(6, 6), [0, 1, 2, 3, 4, 5]
)
);
assert(
compareArray(
- new TA([0, 1, 2, 3, 4, 5]).copyWithin(10, 10),
- [0, 1, 2, 3, 4, 5]
+ new TA([0, 1, 2, 3, 4, 5]).copyWithin(10, 10), [0, 1, 2, 3, 4, 5]
)
);
assert(
compareArray(
- new TA([1, 2, 3, 4, 5]).copyWithin(Infinity, Infinity),
- [1, 2, 3, 4, 5]
+ new TA([1, 2, 3, 4, 5]).copyWithin(Infinity, Infinity), [1, 2, 3, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(Infinity, Infinity) -> [1, 2, 3, 4, 5]'
);
diff --git a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-and-start.js b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-and-start.js
index 4dec6eff8..f237de5a4 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-and-start.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-and-start.js
@@ -22,29 +22,25 @@ includes: [compareArray.js, testTypedArray.js]
testWithTypedArrayConstructors(function(TA) {
assert(
compareArray(
- new TA([1, 2, 3, 4, 5, 6]).copyWithin(0, 0),
- [1, 2, 3, 4, 5, 6]
+ new TA([1, 2, 3, 4, 5, 6]).copyWithin(0, 0), [1, 2, 3, 4, 5, 6]
)
);
assert(
compareArray(
- new TA([1, 2, 3, 4, 5, 6]).copyWithin(0, 2),
- [3, 4, 5, 6, 5, 6]
+ new TA([1, 2, 3, 4, 5, 6]).copyWithin(0, 2), [3, 4, 5, 6, 5, 6]
)
);
assert(
compareArray(
- new TA([1, 2, 3, 4, 5, 6]).copyWithin(3, 0),
- [1, 2, 3, 1, 2, 3]
+ new TA([1, 2, 3, 4, 5, 6]).copyWithin(3, 0), [1, 2, 3, 1, 2, 3]
)
);
assert(
compareArray(
- new TA([0, 1, 2, 3, 4, 5]).copyWithin(1, 4),
- [0, 4, 5, 3, 4, 5]
+ new TA([0, 1, 2, 3, 4, 5]).copyWithin(1, 4), [0, 4, 5, 3, 4, 5]
)
);
});
diff --git a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-start-and-end.js b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-start-and-end.js
index c8cd09f17..21d0ec476 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-start-and-end.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-start-and-end.js
@@ -22,24 +22,21 @@ includes: [compareArray.js, testTypedArray.js]
testWithTypedArrayConstructors(function(TA) {
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(0, 0, 0),
- [0, 1, 2, 3]
+ new TA([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(
- new TA([0, 1, 2, 3]).copyWithin(0, 0, 2),
- [0, 1, 2, 3]
+ new TA([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(
- new TA([0, 1, 2, 3]).copyWithin(0, 1, 2),
- [1, 1, 2, 3]
+ new TA([0, 1, 2, 3]).copyWithin(0, 1, 2), [1, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, 1, 2) -> [1, 1, 2, 3]'
);
@@ -57,16 +54,14 @@ testWithTypedArrayConstructors(function(TA) {
*/
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(1, 0, 2),
- [0, 0, 1, 3]
+ new TA([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(
- new TA([0, 1, 2, 3, 4, 5]).copyWithin(1, 3, 5),
- [0, 3, 4, 3, 4, 5]
+ new TA([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/TypedArray/prototype/copyWithin/undefined-end.js b/test/built-ins/TypedArray/prototype/copyWithin/undefined-end.js
index bd011026f..fe03f4332 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/undefined-end.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/undefined-end.js
@@ -29,16 +29,14 @@ includes: [compareArray.js, testTypedArray.js]
testWithTypedArrayConstructors(function(TA) {
assert(
compareArray(
- new TA([0, 1, 2, 3]).copyWithin(0, 1, undefined),
- [1, 2, 3, 3]
+ new TA([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(
- new TA([0, 1, 2, 3]).copyWithin(0, 1),
- [1, 2, 3, 3]
+ new TA([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/TypedArray/prototype/every/callbackfn-this.js b/test/built-ins/TypedArray/prototype/every/callbackfn-this.js
index a3e62feb8..2e944bb49 100644
--- a/test/built-ins/TypedArray/prototype/every/callbackfn-this.js
+++ b/test/built-ins/TypedArray/prototype/every/callbackfn-this.js
@@ -27,7 +27,9 @@ includes: [testTypedArray.js]
features: [TypedArray]
---*/
-var expected = (function() { return this; })();
+var expected = (function() {
+ return this;
+})();
var thisArg = {};
testWithTypedArrayConstructors(function(TA) {
diff --git a/test/built-ins/TypedArray/prototype/every/returns-false-if-any-cb-returns-false.js b/test/built-ins/TypedArray/prototype/every/returns-false-if-any-cb-returns-false.js
index 63cbe4d6b..e45dd0aac 100644
--- a/test/built-ins/TypedArray/prototype/every/returns-false-if-any-cb-returns-false.js
+++ b/test/built-ins/TypedArray/prototype/every/returns-false-if-any-cb-returns-false.js
@@ -26,8 +26,7 @@ testWithTypedArrayConstructors(function(TA) {
[
false,
"",
- 0,
- -0,
+ 0, -0,
NaN,
undefined,
null
diff --git a/test/built-ins/TypedArray/prototype/every/returns-true-if-every-cb-returns-true.js b/test/built-ins/TypedArray/prototype/every/returns-true-if-every-cb-returns-true.js
index 84bdfc8ce..eaf69d7fb 100644
--- a/test/built-ins/TypedArray/prototype/every/returns-true-if-every-cb-returns-true.js
+++ b/test/built-ins/TypedArray/prototype/every/returns-true-if-every-cb-returns-true.js
@@ -28,12 +28,9 @@ testWithTypedArrayConstructors(function(TA) {
"test262",
Symbol("1"),
{},
- [],
- -1,
- Infinity,
- -Infinity,
- 0.1,
- -0.1
+ [], -1,
+ Infinity, -Infinity,
+ 0.1, -0.1
];
var sample = new TA(values.length);
var result = sample.every(function() {
diff --git a/test/built-ins/TypedArray/prototype/every/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/every/values-are-not-cached.js
index d9afa33bb..a4f6bf9c4 100644
--- a/test/built-ins/TypedArray/prototype/every/values-are-not-cached.js
+++ b/test/built-ins/TypedArray/prototype/every/values-are-not-cached.js
@@ -31,7 +31,7 @@ testWithTypedArrayConstructors(function(TA) {
sample.every(function(v, i) {
if (i < sample.length - 1) {
- sample[i+1] = 42;
+ sample[i + 1] = 42;
}
assert.sameValue(
diff --git a/test/built-ins/TypedArray/prototype/fill/fill-values-conversion-once.js b/test/built-ins/TypedArray/prototype/fill/fill-values-conversion-once.js
index f5e1bd6b7..a681825e4 100644
--- a/test/built-ins/TypedArray/prototype/fill/fill-values-conversion-once.js
+++ b/test/built-ins/TypedArray/prototype/fill/fill-values-conversion-once.js
@@ -18,10 +18,13 @@ testWithTypedArrayConstructors(function(TA) {
var sample = new TA(2);
var n = 1;
- sample.fill({ valueOf() { return n++; } });
+ sample.fill({
+ valueOf() {
+ return n++;
+ }
+ });
assert.sameValue(n, 2, "additional unexpected ToNumber() calls");
assert.sameValue(sample[0], 1, "incorrect ToNumber result in index 0");
assert.sameValue(sample[1], 1, "incorrect ToNumber result in index 1");
});
-
diff --git a/test/built-ins/TypedArray/prototype/fill/fill-values-non-numeric.js b/test/built-ins/TypedArray/prototype/fill/fill-values-non-numeric.js
index 1d8cd4b6a..2bd3f1716 100644
--- a/test/built-ins/TypedArray/prototype/fill/fill-values-non-numeric.js
+++ b/test/built-ins/TypedArray/prototype/fill/fill-values-non-numeric.js
@@ -62,7 +62,7 @@ testWithTypedArrayConstructors(function(TA) {
return 1;
},
valueOf: function() {
- return 7;
+ return 7;
}
});
assert.sameValue(sample[0], 7, "object valueOf conversion before toString");
diff --git a/test/built-ins/TypedArray/prototype/fill/fill-values.js b/test/built-ins/TypedArray/prototype/fill/fill-values.js
index 70da31da6..53774de8a 100644
--- a/test/built-ins/TypedArray/prototype/fill/fill-values.js
+++ b/test/built-ins/TypedArray/prototype/fill/fill-values.js
@@ -31,8 +31,7 @@ includes: [compareArray.js, testTypedArray.js]
testWithTypedArrayConstructors(function(TA) {
assert(
compareArray(
- new TA().fill(8),
- []
+ new TA().fill(8), []
),
"does not fill an empty instance"
);
diff --git a/test/built-ins/TypedArray/prototype/filter/callbackfn-this.js b/test/built-ins/TypedArray/prototype/filter/callbackfn-this.js
index 1fc599c7c..183bea070 100644
--- a/test/built-ins/TypedArray/prototype/filter/callbackfn-this.js
+++ b/test/built-ins/TypedArray/prototype/filter/callbackfn-this.js
@@ -18,7 +18,9 @@ includes: [testTypedArray.js]
features: [TypedArray]
---*/
-var expected = (function() { return this; })();
+var expected = (function() {
+ return this;
+})();
var thisArg = {};
testWithTypedArrayConstructors(function(TA) {
diff --git a/test/built-ins/TypedArray/prototype/filter/result-does-not-share-buffer.js b/test/built-ins/TypedArray/prototype/filter/result-does-not-share-buffer.js
index bbd292d14..b716641ec 100644
--- a/test/built-ins/TypedArray/prototype/filter/result-does-not-share-buffer.js
+++ b/test/built-ins/TypedArray/prototype/filter/result-does-not-share-buffer.js
@@ -19,9 +19,13 @@ testWithTypedArrayConstructors(function(TA) {
var sample = new TA([40, 41, 42]);
var result;
- result = sample.filter(function() { return true; });
+ result = sample.filter(function() {
+ return true;
+ });
assert.notSameValue(result.buffer, sample.buffer);
- result = sample.filter(function() { return false; });
+ result = sample.filter(function() {
+ return false;
+ });
assert.notSameValue(result.buffer, sample.buffer);
});
diff --git a/test/built-ins/TypedArray/prototype/filter/result-empty-callbackfn-returns-false.js b/test/built-ins/TypedArray/prototype/filter/result-empty-callbackfn-returns-false.js
index de558f97e..c1b0ac9af 100644
--- a/test/built-ins/TypedArray/prototype/filter/result-empty-callbackfn-returns-false.js
+++ b/test/built-ins/TypedArray/prototype/filter/result-empty-callbackfn-returns-false.js
@@ -22,8 +22,7 @@ testWithTypedArrayConstructors(function(TA) {
[
false,
"",
- 0,
- -0,
+ 0, -0,
NaN,
undefined,
null
diff --git a/test/built-ins/TypedArray/prototype/filter/result-full-callbackfn-returns-true.js b/test/built-ins/TypedArray/prototype/filter/result-full-callbackfn-returns-true.js
index f46bf483d..6ae2811eb 100644
--- a/test/built-ins/TypedArray/prototype/filter/result-full-callbackfn-returns-true.js
+++ b/test/built-ins/TypedArray/prototype/filter/result-full-callbackfn-returns-true.js
@@ -25,14 +25,13 @@ testWithTypedArrayConstructors(function(TA) {
"test262",
Symbol("1"),
{},
- [],
- -1,
- Infinity,
- -Infinity,
- 0.1,
- -0.1
+ [], -1,
+ Infinity, -Infinity,
+ 0.1, -0.1
].forEach(function(val) {
- var result = sample.filter(function() { return val; });
+ var result = sample.filter(function() {
+ return val;
+ });
assert(compareArray(result, sample), val);
});
});
diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor-returns-throws.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor-returns-throws.js
index a63bd2e53..bb501ccf4 100644
--- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor-returns-throws.js
+++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor-returns-throws.js
@@ -28,7 +28,9 @@ includes: [testTypedArray.js]
features: [Symbol, TypedArray]
---*/
-var callbackfn = function() { return true; };
+var callbackfn = function() {
+ return true;
+};
testWithTypedArrayConstructors(function(TA) {
var sample = new TA([40, 41, 42, 43]);
diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor.js
index 6308fe92f..565da5179 100644
--- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor.js
+++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor.js
@@ -37,7 +37,9 @@ testWithTypedArrayConstructors(function(TA) {
}
});
- result = sample.filter(function() { return true; });
+ result = sample.filter(function() {
+ return true;
+ });
assert.sameValue(calls, 1, "called custom ctor get accessor once");
diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-abrupt.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-abrupt.js
index 858dd0fa7..8e2256efa 100644
--- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-abrupt.js
+++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-abrupt.js
@@ -40,6 +40,8 @@ testWithTypedArrayConstructors(function(TA) {
});
assert.throws(Test262Error, function() {
- sample.filter(function() { return true; });
+ sample.filter(function() {
+ return true;
+ });
});
});
diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-invocation.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-invocation.js
index ad8313a26..2cfb9bcb8 100644
--- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-invocation.js
+++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-invocation.js
@@ -47,7 +47,9 @@ testWithTypedArrayConstructors(function(TA) {
return new TA(count);
};
- sample.filter(function(v) { return v === 42; });
+ sample.filter(function(v) {
+ return v === 42;
+ });
assert.sameValue(result.length, 1, "called with 1 argument");
assert.sameValue(result[0], 2, "[0] is the new captured length");
diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length-throws.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length-throws.js
index 35f48124c..abf9ef13e 100644
--- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length-throws.js
+++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length-throws.js
@@ -36,6 +36,8 @@ testWithTypedArrayConstructors(function(TA) {
};
assert.throws(TypeError, function() {
- sample.filter(function() { return true; });
+ sample.filter(function() {
+ return true;
+ });
});
});
diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length.js
index 35228670d..fcf4bb693 100644
--- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length.js
+++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length.js
@@ -37,10 +37,14 @@ testWithTypedArrayConstructors(function(TA) {
};
customCount = 2;
- result = sample.filter(function() { return true; });
+ result = sample.filter(function() {
+ return true;
+ });
assert.sameValue(result.length, customCount, "length == count");
customCount = 5;
- result = sample.filter(function() { return true; });
+ result = sample.filter(function() {
+ return true;
+ });
assert.sameValue(result.length, customCount, "length > count");
});
diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor.js
index 28e12b135..00836dd75 100644
--- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor.js
+++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor.js
@@ -48,7 +48,9 @@ testWithTypedArrayConstructors(function(TA) {
return other;
};
- result = sample.filter(function() { return true; });
+ result = sample.filter(function() {
+ return true;
+ });
assert.sameValue(calls, 1, "ctor called once");
assert.sameValue(result, other, "return is instance of custom constructor");
diff --git a/test/built-ins/TypedArray/prototype/filter/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/filter/values-are-not-cached.js
index 1b24d310e..22b227163 100644
--- a/test/built-ins/TypedArray/prototype/filter/values-are-not-cached.js
+++ b/test/built-ins/TypedArray/prototype/filter/values-are-not-cached.js
@@ -21,7 +21,7 @@ testWithTypedArrayConstructors(function(TA) {
sample.filter(function(v, i) {
if (i < sample.length - 1) {
- sample[i+1] = 42;
+ sample[i + 1] = 42;
}
assert.sameValue(
diff --git a/test/built-ins/TypedArray/prototype/filter/values-are-set.js b/test/built-ins/TypedArray/prototype/filter/values-are-set.js
index c9f16b8df..7ef152f17 100644
--- a/test/built-ins/TypedArray/prototype/filter/values-are-set.js
+++ b/test/built-ins/TypedArray/prototype/filter/values-are-set.js
@@ -20,7 +20,9 @@ testWithTypedArrayConstructors(function(TA) {
var sample = new TA([41, 1, 42, 7]);
var result;
- result = sample.filter(function() { return true; });
+ result = sample.filter(function() {
+ return true;
+ });
assert(compareArray(result, [41, 1, 42, 7]), "values are set #1");
result = sample.filter(function(v) {
diff --git a/test/built-ins/TypedArray/prototype/find/get-length-ignores-length-prop.js b/test/built-ins/TypedArray/prototype/find/get-length-ignores-length-prop.js
index b62f9170f..ee2332f31 100644
--- a/test/built-ins/TypedArray/prototype/find/get-length-ignores-length-prop.js
+++ b/test/built-ins/TypedArray/prototype/find/get-length-ignores-length-prop.js
@@ -49,7 +49,9 @@ testWithTypedArrayConstructors(function(TA) {
});
assert.sameValue(
- sample.find(function() { return true; }),
+ sample.find(function() {
+ return true;
+ }),
42
);
});
diff --git a/test/built-ins/TypedArray/prototype/find/predicate-call-changes-value.js b/test/built-ins/TypedArray/prototype/find/predicate-call-changes-value.js
index 556fb9851..129eed845 100644
--- a/test/built-ins/TypedArray/prototype/find/predicate-call-changes-value.js
+++ b/test/built-ins/TypedArray/prototype/find/predicate-call-changes-value.js
@@ -44,7 +44,7 @@ testWithTypedArrayConstructors(function(TA) {
sample = new TA(arr);
result = sample.find(function(val, i) {
- if ( i === 0 ) {
+ if (i === 0) {
sample[2] = 7;
}
return val === 7;
@@ -53,7 +53,7 @@ testWithTypedArrayConstructors(function(TA) {
sample = new TA(arr);
result = sample.find(function(val, i) {
- if ( i === 0 ) {
+ if (i === 0) {
sample[2] = 7;
}
return val === 3;
@@ -62,7 +62,7 @@ testWithTypedArrayConstructors(function(TA) {
sample = new TA(arr);
result = sample.find(function(val, i) {
- if ( i > 0 ) {
+ if (i > 0) {
sample[0] = 7;
}
return val === 7;
diff --git a/test/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.js b/test/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.js
index a2d0302c6..1feb9da2f 100644
--- a/test/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.js
+++ b/test/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.js
@@ -49,18 +49,28 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(called, 3, "predicate was called three times");
assert.sameValue(result, 62, "returned true on sample[3]");
- result = sample.find(function() { return "string"; });
+ result = sample.find(function() {
+ return "string";
+ });
assert.sameValue(result, 39, "ToBoolean(string)");
- result = sample.find(function() { return {}; });
+ result = sample.find(function() {
+ return {};
+ });
assert.sameValue(result, 39, "ToBoolean(object)");
- result = sample.find(function() { return Symbol(""); });
+ result = sample.find(function() {
+ return Symbol("");
+ });
assert.sameValue(result, 39, "ToBoolean(symbol)");
- result = sample.find(function() { return 1; });
+ result = sample.find(function() {
+ return 1;
+ });
assert.sameValue(result, 39, "ToBoolean(number)");
- result = sample.find(function() { return -1; });
+ result = sample.find(function() {
+ return -1;
+ });
assert.sameValue(result, 39, "ToBoolean(negative number)");
});
diff --git a/test/built-ins/TypedArray/prototype/find/return-undefined-if-predicate-returns-false-value.js b/test/built-ins/TypedArray/prototype/find/return-undefined-if-predicate-returns-false-value.js
index 0133a6948..2206d72aa 100644
--- a/test/built-ins/TypedArray/prototype/find/return-undefined-if-predicate-returns-false-value.js
+++ b/test/built-ins/TypedArray/prototype/find/return-undefined-if-predicate-returns-false-value.js
@@ -41,21 +41,33 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(called, 3, "predicate was called three times");
assert.sameValue(result, undefined);
- result = sample.find(function() { return ""; });
+ result = sample.find(function() {
+ return "";
+ });
assert.sameValue(result, undefined, "ToBoolean(empty string)");
- result = sample.find(function() { return undefined; });
+ result = sample.find(function() {
+ return undefined;
+ });
assert.sameValue(result, undefined, "ToBoolean(undefined)");
- result = sample.find(function() { return null; });
+ result = sample.find(function() {
+ return null;
+ });
assert.sameValue(result, undefined, "ToBoolean(null)");
- result = sample.find(function() { return 0; });
+ result = sample.find(function() {
+ return 0;
+ });
assert.sameValue(result, undefined, "ToBoolean(0)");
- result = sample.find(function() { return -0; });
+ result = sample.find(function() {
+ return -0;
+ });
assert.sameValue(result, undefined, "ToBoolean(-0)");
- result = sample.find(function() { return NaN; });
+ result = sample.find(function() {
+ return NaN;
+ });
assert.sameValue(result, undefined, "ToBoolean(NaN)");
});
diff --git a/test/built-ins/TypedArray/prototype/findIndex/get-length-ignores-length-prop.js b/test/built-ins/TypedArray/prototype/findIndex/get-length-ignores-length-prop.js
index 99566c3d5..98d22f449 100644
--- a/test/built-ins/TypedArray/prototype/findIndex/get-length-ignores-length-prop.js
+++ b/test/built-ins/TypedArray/prototype/findIndex/get-length-ignores-length-prop.js
@@ -47,7 +47,9 @@ testWithTypedArrayConstructors(function(TA) {
});
assert.sameValue(
- sample.findIndex(function() { return true; }),
+ sample.findIndex(function() {
+ return true;
+ }),
0
);
});
diff --git a/test/built-ins/TypedArray/prototype/findIndex/predicate-call-changes-value.js b/test/built-ins/TypedArray/prototype/findIndex/predicate-call-changes-value.js
index 84efabc26..97652222c 100644
--- a/test/built-ins/TypedArray/prototype/findIndex/predicate-call-changes-value.js
+++ b/test/built-ins/TypedArray/prototype/findIndex/predicate-call-changes-value.js
@@ -40,7 +40,7 @@ testWithTypedArrayConstructors(function(TA) {
sample = new TA(arr);
result = sample.findIndex(function(val, i) {
- if ( i === 0 ) {
+ if (i === 0) {
sample[2] = 7;
}
return val === 7;
@@ -49,7 +49,7 @@ testWithTypedArrayConstructors(function(TA) {
sample = new TA(arr);
result = sample.findIndex(function(val, i) {
- if ( i === 0 ) {
+ if (i === 0) {
sample[2] = 7;
}
return val === 30;
@@ -58,10 +58,10 @@ testWithTypedArrayConstructors(function(TA) {
sample = new TA(arr);
result = sample.findIndex(function(val, i) {
- if ( i > 0 ) {
+ if (i > 0) {
sample[0] = 7;
}
return val === 7;
});
assert.sameValue(result, -1, "value not found - changed after call");
-}); \ No newline at end of file
+});
diff --git a/test/built-ins/TypedArray/prototype/findIndex/predicate-call-this-non-strict.js b/test/built-ins/TypedArray/prototype/findIndex/predicate-call-this-non-strict.js
index 68175c781..31c43d21f 100644
--- a/test/built-ins/TypedArray/prototype/findIndex/predicate-call-this-non-strict.js
+++ b/test/built-ins/TypedArray/prototype/findIndex/predicate-call-this-non-strict.js
@@ -41,7 +41,7 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(result, T, "without thisArg, predicate this is the global");
- result = null;
+ result = null;
sample.findIndex(function() {
result = this;
}, undefined);
diff --git a/test/built-ins/TypedArray/prototype/findIndex/predicate-is-not-callable-throws.js b/test/built-ins/TypedArray/prototype/findIndex/predicate-is-not-callable-throws.js
index 5b97bf74a..18fdf425f 100644
--- a/test/built-ins/TypedArray/prototype/findIndex/predicate-is-not-callable-throws.js
+++ b/test/built-ins/TypedArray/prototype/findIndex/predicate-is-not-callable-throws.js
@@ -62,4 +62,3 @@ testWithTypedArrayConstructors(function(TA) {
sample.findIndex(/./);
}, "/./");
});
-
diff --git a/test/built-ins/TypedArray/prototype/findIndex/return-index-predicate-result-is-true.js b/test/built-ins/TypedArray/prototype/findIndex/return-index-predicate-result-is-true.js
index 9e4880f22..c1e0ce751 100644
--- a/test/built-ins/TypedArray/prototype/findIndex/return-index-predicate-result-is-true.js
+++ b/test/built-ins/TypedArray/prototype/findIndex/return-index-predicate-result-is-true.js
@@ -49,18 +49,28 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(called, 3, "predicate was called three times");
assert.sameValue(result, 2, "returned true on sample[3]");
- result = sample.findIndex(function() { return "string"; });
+ result = sample.findIndex(function() {
+ return "string";
+ });
assert.sameValue(result, 0, "ToBoolean(string)");
- result = sample.findIndex(function() { return {}; });
+ result = sample.findIndex(function() {
+ return {};
+ });
assert.sameValue(result, 0, "ToBoolean(object)");
- result = sample.findIndex(function() { return Symbol(""); });
+ result = sample.findIndex(function() {
+ return Symbol("");
+ });
assert.sameValue(result, 0, "ToBoolean(symbol)");
- result = sample.findIndex(function() { return 1; });
+ result = sample.findIndex(function() {
+ return 1;
+ });
assert.sameValue(result, 0, "ToBoolean(number)");
- result = sample.findIndex(function() { return -1; });
+ result = sample.findIndex(function() {
+ return -1;
+ });
assert.sameValue(result, 0, "ToBoolean(negative number)");
});
diff --git a/test/built-ins/TypedArray/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js b/test/built-ins/TypedArray/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js
index f3367fbfa..69f204717 100644
--- a/test/built-ins/TypedArray/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js
+++ b/test/built-ins/TypedArray/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js
@@ -39,21 +39,33 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(called, 3, "predicate was called three times");
assert.sameValue(result, -1, "result is -1 when predicate returns are false");
- result = sample.findIndex(function() { return ""; });
+ result = sample.findIndex(function() {
+ return "";
+ });
assert.sameValue(result, -1, "ToBoolean(string)");
- result = sample.findIndex(function() { return undefined; });
+ result = sample.findIndex(function() {
+ return undefined;
+ });
assert.sameValue(result, -1, "ToBoolean(undefined)");
- result = sample.findIndex(function() { return null; });
+ result = sample.findIndex(function() {
+ return null;
+ });
assert.sameValue(result, -1, "ToBoolean(null)");
- result = sample.findIndex(function() { return 0; });
+ result = sample.findIndex(function() {
+ return 0;
+ });
assert.sameValue(result, -1, "ToBoolean(0)");
- result = sample.findIndex(function() { return -0; });
+ result = sample.findIndex(function() {
+ return -0;
+ });
assert.sameValue(result, -1, "ToBoolean(-0)");
- result = sample.findIndex(function() { return NaN; });
+ result = sample.findIndex(function() {
+ return NaN;
+ });
assert.sameValue(result, -1, "ToBoolean(NaN)");
});
diff --git a/test/built-ins/TypedArray/prototype/forEach/arraylength-internal.js b/test/built-ins/TypedArray/prototype/forEach/arraylength-internal.js
index d387ae038..97b5ec91e 100644
--- a/test/built-ins/TypedArray/prototype/forEach/arraylength-internal.js
+++ b/test/built-ins/TypedArray/prototype/forEach/arraylength-internal.js
@@ -19,7 +19,9 @@ testWithTypedArrayConstructors(function(TA) {
var sample1 = new TA(42);
var loop = 0;
- Object.defineProperty(sample1, "length", {value: 1});
+ Object.defineProperty(sample1, "length", {
+ value: 1
+ });
sample1.forEach(function() {
loop++;
@@ -44,4 +46,3 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(loop, 7, "accessor descriptor");
});
-
diff --git a/test/built-ins/TypedArray/prototype/forEach/callbackfn-this.js b/test/built-ins/TypedArray/prototype/forEach/callbackfn-this.js
index 926a219bc..e3595b538 100644
--- a/test/built-ins/TypedArray/prototype/forEach/callbackfn-this.js
+++ b/test/built-ins/TypedArray/prototype/forEach/callbackfn-this.js
@@ -27,7 +27,9 @@ includes: [testTypedArray.js]
features: [TypedArray]
---*/
-var expected = (function() { return this; })();
+var expected = (function() {
+ return this;
+})();
var thisArg = {};
testWithTypedArrayConstructors(function(TA) {
diff --git a/test/built-ins/TypedArray/prototype/forEach/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/forEach/values-are-not-cached.js
index 10b311356..125923bb5 100644
--- a/test/built-ins/TypedArray/prototype/forEach/values-are-not-cached.js
+++ b/test/built-ins/TypedArray/prototype/forEach/values-are-not-cached.js
@@ -21,7 +21,7 @@ testWithTypedArrayConstructors(function(TA) {
sample.forEach(function(v, i) {
if (i < sample.length - 1) {
- sample[i+1] = 42;
+ sample[i + 1] = 42;
}
assert.sameValue(
diff --git a/test/built-ins/TypedArray/prototype/includes/get-length-uses-internal-arraylength.js b/test/built-ins/TypedArray/prototype/includes/get-length-uses-internal-arraylength.js
index eb10a80bd..8f317131a 100644
--- a/test/built-ins/TypedArray/prototype/includes/get-length-uses-internal-arraylength.js
+++ b/test/built-ins/TypedArray/prototype/includes/get-length-uses-internal-arraylength.js
@@ -21,13 +21,19 @@ includes: [testTypedArray.js]
features: [TypedArray]
---*/
-Object.defineProperty(TypedArray.prototype, "length", {value: 0});
+Object.defineProperty(TypedArray.prototype, "length", {
+ value: 0
+});
testWithTypedArrayConstructors(function(TA) {
var sample = new TA([7]);
- Object.defineProperty(TA.prototype, "length", {value: 0});
- Object.defineProperty(sample, "length", {value: 0});
+ Object.defineProperty(TA.prototype, "length", {
+ value: 0
+ });
+ Object.defineProperty(sample, "length", {
+ value: 0
+ });
assert.sameValue(sample.includes(7), true);
});
diff --git a/test/built-ins/TypedArray/prototype/indexOf/get-length-uses-internal-arraylength.js b/test/built-ins/TypedArray/prototype/indexOf/get-length-uses-internal-arraylength.js
index 2703a0519..9fd299266 100644
--- a/test/built-ins/TypedArray/prototype/indexOf/get-length-uses-internal-arraylength.js
+++ b/test/built-ins/TypedArray/prototype/indexOf/get-length-uses-internal-arraylength.js
@@ -20,13 +20,19 @@ includes: [testTypedArray.js]
features: [TypedArray]
---*/
-Object.defineProperty(TypedArray.prototype, "length", {value: 0});
+Object.defineProperty(TypedArray.prototype, "length", {
+ value: 0
+});
testWithTypedArrayConstructors(function(TA) {
var sample = new TA([7]);
- Object.defineProperty(TA.prototype, "length", {value: 0});
- Object.defineProperty(sample, "length", {value: 0});
+ Object.defineProperty(TA.prototype, "length", {
+ value: 0
+ });
+ Object.defineProperty(sample, "length", {
+ value: 0
+ });
assert.sameValue(sample.indexOf(7), 0);
});
diff --git a/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-simple-value.js b/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-simple-value.js
index 694f81db0..edb4b0e8f 100644
--- a/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-simple-value.js
+++ b/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-simple-value.js
@@ -61,10 +61,19 @@ testWithTypedArrayConstructors(function(TA) {
result = sample.join(true);
assert.sameValue(result, "1true0true2true3true42true127");
- result = sample.join({ toString: function() { return "foo"; }});
+ result = sample.join({
+ toString: function() {
+ return "foo";
+ }
+ });
assert.sameValue(result, "1foo0foo2foo3foo42foo127");
- result = sample.join({ toString: undefined, valueOf: function() { return "bar"; }});
+ result = sample.join({
+ toString: undefined,
+ valueOf: function() {
+ return "bar";
+ }
+ });
assert.sameValue(result, "1bar0bar2bar3bar42bar127");
result = sample.join(false);
diff --git a/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-value.js b/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-value.js
index 94caedf65..7cdbdddd2 100644
--- a/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-value.js
+++ b/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-value.js
@@ -91,14 +91,23 @@ testWithTypedArrayConstructors(function(TA) {
result = sample.join(separator);
assert.sameValue(result, expected, "using: " + separator);
- separator = { toString: function() { return "foo"; }};
+ separator = {
+ toString: function() {
+ return "foo";
+ }
+ };
expected = arr.map(function(_, i) {
return sample[i].toString();
}).join(separator);
result = sample.join(separator);
assert.sameValue(result, expected, "using: " + separator);
- separator = { toString: undefined, valueOf: function() { return "bar"; }};
+ separator = {
+ toString: undefined,
+ valueOf: function() {
+ return "bar";
+ }
+ };
expected = arr.map(function(_, i) {
return sample[i].toString();
}).join(separator);
diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/get-length-uses-internal-arraylength.js b/test/built-ins/TypedArray/prototype/lastIndexOf/get-length-uses-internal-arraylength.js
index 076d0b8d8..6b51c26e4 100644
--- a/test/built-ins/TypedArray/prototype/lastIndexOf/get-length-uses-internal-arraylength.js
+++ b/test/built-ins/TypedArray/prototype/lastIndexOf/get-length-uses-internal-arraylength.js
@@ -20,13 +20,19 @@ includes: [testTypedArray.js]
features: [TypedArray]
---*/
-Object.defineProperty(TypedArray.prototype, "length", {value: 0});
+Object.defineProperty(TypedArray.prototype, "length", {
+ value: 0
+});
testWithTypedArrayConstructors(function(TA) {
var sample = new TA([7]);
- Object.defineProperty(TA.prototype, "length", {value: 0});
- Object.defineProperty(sample, "length", {value: 0});
+ Object.defineProperty(TA.prototype, "length", {
+ value: 0
+ });
+ Object.defineProperty(sample, "length", {
+ value: 0
+ });
assert.sameValue(sample.lastIndexOf(7), 0);
});
diff --git a/test/built-ins/TypedArray/prototype/map/arraylength-internal.js b/test/built-ins/TypedArray/prototype/map/arraylength-internal.js
index 0f9ec0807..7d23a4e1a 100644
--- a/test/built-ins/TypedArray/prototype/map/arraylength-internal.js
+++ b/test/built-ins/TypedArray/prototype/map/arraylength-internal.js
@@ -18,7 +18,9 @@ testWithTypedArrayConstructors(function(TA) {
var sample1 = new TA(42);
var loop = 0;
- Object.defineProperty(sample1, "length", {value: 1});
+ Object.defineProperty(sample1, "length", {
+ value: 1
+ });
sample1.map(function() {
loop++;
@@ -40,4 +42,3 @@ testWithTypedArrayConstructors(function(TA) {
});
assert.sameValue(loop, 4, "accessor descriptor");
});
-
diff --git a/test/built-ins/TypedArray/prototype/map/callbackfn-this.js b/test/built-ins/TypedArray/prototype/map/callbackfn-this.js
index 43d3159bc..525de88e3 100644
--- a/test/built-ins/TypedArray/prototype/map/callbackfn-this.js
+++ b/test/built-ins/TypedArray/prototype/map/callbackfn-this.js
@@ -18,7 +18,9 @@ includes: [testTypedArray.js]
features: [TypedArray]
---*/
-var expected = (function() { return this; })();
+var expected = (function() {
+ return this;
+})();
var thisArg = {};
testWithTypedArrayConstructors(function(TA) {
diff --git a/test/built-ins/TypedArray/prototype/map/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/map/values-are-not-cached.js
index d2345b13c..329faaffe 100644
--- a/test/built-ins/TypedArray/prototype/map/values-are-not-cached.js
+++ b/test/built-ins/TypedArray/prototype/map/values-are-not-cached.js
@@ -16,7 +16,7 @@ testWithTypedArrayConstructors(function(TA) {
sample.map(function(v, i) {
if (i < sample.length - 1) {
- sample[i+1] = 42;
+ sample[i + 1] = 42;
}
assert.sameValue(
diff --git a/test/built-ins/TypedArray/prototype/reduce/callbackfn-this.js b/test/built-ins/TypedArray/prototype/reduce/callbackfn-this.js
index 8c56605bc..356e94943 100644
--- a/test/built-ins/TypedArray/prototype/reduce/callbackfn-this.js
+++ b/test/built-ins/TypedArray/prototype/reduce/callbackfn-this.js
@@ -26,7 +26,9 @@ includes: [testTypedArray.js]
features: [TypedArray]
---*/
-var expected = (function() { return this; })();
+var expected = (function() {
+ return this;
+})();
testWithTypedArrayConstructors(function(TA) {
var sample = new TA(3);
diff --git a/test/built-ins/TypedArray/prototype/reduce/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/reduce/values-are-not-cached.js
index e091df1f9..af963b379 100644
--- a/test/built-ins/TypedArray/prototype/reduce/values-are-not-cached.js
+++ b/test/built-ins/TypedArray/prototype/reduce/values-are-not-cached.js
@@ -31,7 +31,7 @@ testWithTypedArrayConstructors(function(TA) {
sample.reduce(function(a, v, i) {
if (i < sample.length - 1) {
- sample[i+1] = 42;
+ sample[i + 1] = 42;
}
assert.sameValue(
diff --git a/test/built-ins/TypedArray/prototype/reduceRight/callbackfn-this.js b/test/built-ins/TypedArray/prototype/reduceRight/callbackfn-this.js
index acddf6dd3..56752442a 100644
--- a/test/built-ins/TypedArray/prototype/reduceRight/callbackfn-this.js
+++ b/test/built-ins/TypedArray/prototype/reduceRight/callbackfn-this.js
@@ -27,7 +27,9 @@ includes: [testTypedArray.js]
features: [TypedArray]
---*/
-var expected = (function() { return this; })();
+var expected = (function() {
+ return this;
+})();
testWithTypedArrayConstructors(function(TA) {
var sample = new TA(3);
diff --git a/test/built-ins/TypedArray/prototype/reduceRight/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/reduceRight/values-are-not-cached.js
index fb93d3e20..b4e720ca7 100644
--- a/test/built-ins/TypedArray/prototype/reduceRight/values-are-not-cached.js
+++ b/test/built-ins/TypedArray/prototype/reduceRight/values-are-not-cached.js
@@ -32,7 +32,7 @@ testWithTypedArrayConstructors(function(TA) {
sample.reduceRight(function(a, v, i) {
if (i > 0) {
- sample[i-1] = 42;
+ sample[i - 1] = 42;
}
assert.sameValue(
diff --git a/test/built-ins/TypedArray/prototype/set/array-arg-offset-tointeger.js b/test/built-ins/TypedArray/prototype/set/array-arg-offset-tointeger.js
index a5ab52773..529006e21 100644
--- a/test/built-ins/TypedArray/prototype/set/array-arg-offset-tointeger.js
+++ b/test/built-ins/TypedArray/prototype/set/array-arg-offset-tointeger.js
@@ -86,10 +86,18 @@ testWithTypedArrayConstructors(function(TA) {
assert(compareArray(sample, [1, 42]), "[1]");
sample = new TA([1, 2]);
- sample.set([42], { valueOf: function() {return 1;} });
+ sample.set([42], {
+ valueOf: function() {
+ return 1;
+ }
+ });
assert(compareArray(sample, [1, 42]), "valueOf");
sample = new TA([1, 2]);
- sample.set([42], { toString: function() {return 1;} });
+ sample.set([42], {
+ toString: function() {
+ return 1;
+ }
+ });
assert(compareArray(sample, [1, 42]), "toString");
});
diff --git a/test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-conversions.js b/test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-conversions.js
index d5e346f11..5cd1fe72e 100644
--- a/test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-conversions.js
+++ b/test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-conversions.js
@@ -26,5 +26,5 @@ testTypedArrayConversions(byteConversionValues, function(TA, value, expected, in
sample.set([value]);
- assert.sameValue(sample[0], expected, "["+value+"] => ["+expected +"]");
+ assert.sameValue(sample[0], expected, "[" + value + "] => [" + expected + "]");
});
diff --git a/test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-type-conversions.js b/test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-type-conversions.js
index 0256df84e..c7e54c720 100644
--- a/test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-type-conversions.js
+++ b/test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-type-conversions.js
@@ -35,7 +35,9 @@ var obj2 = {
};
// undefined and NaN covered on typedArrayConversions
-var arr = ["1", "", false, true, null, obj1, obj2, [], [1]];
+var arr = ["1", "", false, true, null, obj1, obj2, [],
+ [1]
+];
testWithTypedArrayConstructors(function(TA) {
var sample = new TA(arr.length);
diff --git a/test/built-ins/TypedArray/prototype/set/typedarray-arg-offset-tointeger.js b/test/built-ins/TypedArray/prototype/set/typedarray-arg-offset-tointeger.js
index 7f63cb996..a32337c72 100644
--- a/test/built-ins/TypedArray/prototype/set/typedarray-arg-offset-tointeger.js
+++ b/test/built-ins/TypedArray/prototype/set/typedarray-arg-offset-tointeger.js
@@ -84,10 +84,18 @@ testWithTypedArrayConstructors(function(TA) {
assert(compareArray(sample, [1, 42]), "[1]");
sample = new TA([1, 2]);
- sample.set(src, { valueOf: function() {return 1;} });
+ sample.set(src, {
+ valueOf: function() {
+ return 1;
+ }
+ });
assert(compareArray(sample, [1, 42]), "valueOf");
sample = new TA([1, 2]);
- sample.set(src, { toString: function() {return 1;} });
+ sample.set(src, {
+ toString: function() {
+ return 1;
+ }
+ });
assert(compareArray(sample, [1, 42]), "toString");
});
diff --git a/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length-throws.js b/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length-throws.js
index 8d572f230..7ff46d746 100644
--- a/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length-throws.js
+++ b/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length-throws.js
@@ -38,4 +38,4 @@ testWithTypedArrayConstructors(function(TA) {
assert.throws(TypeError, function() {
sample.slice();
});
-}); \ No newline at end of file
+});
diff --git a/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length.js b/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length.js
index 537b423a2..a4d33b2a9 100644
--- a/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length.js
+++ b/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length.js
@@ -43,4 +43,4 @@ testWithTypedArrayConstructors(function(TA) {
customCount = 5;
result = sample.slice();
assert.sameValue(result.length, customCount, "length > count");
-}); \ No newline at end of file
+});
diff --git a/test/built-ins/TypedArray/prototype/slice/tointeger-end.js b/test/built-ins/TypedArray/prototype/slice/tointeger-end.js
index 2a9be9406..13d68874d 100644
--- a/test/built-ins/TypedArray/prototype/slice/tointeger-end.js
+++ b/test/built-ins/TypedArray/prototype/slice/tointeger-end.js
@@ -40,8 +40,7 @@ testWithTypedArrayConstructors(function(TA) {
assert(compareArray(sample.slice(0, "3"), [40, 41, 42]), "string");
assert(
compareArray(
- sample.slice(0, obj),
- [40, 41]
+ sample.slice(0, obj), [40, 41]
),
"object"
);
diff --git a/test/built-ins/TypedArray/prototype/slice/tointeger-start.js b/test/built-ins/TypedArray/prototype/slice/tointeger-start.js
index f67ee090c..2f6c2d7cb 100644
--- a/test/built-ins/TypedArray/prototype/slice/tointeger-start.js
+++ b/test/built-ins/TypedArray/prototype/slice/tointeger-start.js
@@ -40,8 +40,7 @@ testWithTypedArrayConstructors(function(TA) {
assert(compareArray(sample.slice("3"), [43]), "string");
assert(
compareArray(
- sample.slice(obj),
- [42, 43]
+ sample.slice(obj), [42, 43]
),
"object"
);
diff --git a/test/built-ins/TypedArray/prototype/some/callbackfn-this.js b/test/built-ins/TypedArray/prototype/some/callbackfn-this.js
index d15699b80..92cc10ad4 100644
--- a/test/built-ins/TypedArray/prototype/some/callbackfn-this.js
+++ b/test/built-ins/TypedArray/prototype/some/callbackfn-this.js
@@ -27,7 +27,9 @@ includes: [testTypedArray.js]
features: [TypedArray]
---*/
-var expected = (function() { return this; })();
+var expected = (function() {
+ return this;
+})();
var thisArg = {};
testWithTypedArrayConstructors(function(TA) {
diff --git a/test/built-ins/TypedArray/prototype/some/returns-false-if-every-cb-returns-false.js b/test/built-ins/TypedArray/prototype/some/returns-false-if-every-cb-returns-false.js
index 00741adbe..bf61d170e 100644
--- a/test/built-ins/TypedArray/prototype/some/returns-false-if-every-cb-returns-false.js
+++ b/test/built-ins/TypedArray/prototype/some/returns-false-if-every-cb-returns-false.js
@@ -26,8 +26,7 @@ testWithTypedArrayConstructors(function(TA) {
[
false,
"",
- 0,
- -0,
+ 0, -0,
NaN,
undefined,
null
diff --git a/test/built-ins/TypedArray/prototype/some/returns-true-if-any-cb-returns-true.js b/test/built-ins/TypedArray/prototype/some/returns-true-if-any-cb-returns-true.js
index c11fdae90..113f53f83 100644
--- a/test/built-ins/TypedArray/prototype/some/returns-true-if-any-cb-returns-true.js
+++ b/test/built-ins/TypedArray/prototype/some/returns-true-if-any-cb-returns-true.js
@@ -36,12 +36,9 @@ testWithTypedArrayConstructors(function(TA) {
"test262",
s,
{},
- [],
- -1,
- Infinity,
- -Infinity,
- 0.1,
- -0.1
+ [], -1,
+ Infinity, -Infinity,
+ 0.1, -0.1
].forEach(function(val) {
var called = 0;
var result = sample.some(function() {
diff --git a/test/built-ins/TypedArray/prototype/some/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/some/this-is-not-typedarray-instance.js
index acfbe6dbb..c31d93fc5 100644
--- a/test/built-ins/TypedArray/prototype/some/this-is-not-typedarray-instance.js
+++ b/test/built-ins/TypedArray/prototype/some/this-is-not-typedarray-instance.js
@@ -22,7 +22,7 @@ features: [TypedArray]
---*/
var some = TypedArray.prototype.some;
-var callbackfn = function () {};
+var callbackfn = function() {};
assert.throws(TypeError, function() {
some.call({}, callbackfn);
diff --git a/test/built-ins/TypedArray/prototype/some/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/some/values-are-not-cached.js
index c8a3c2cde..2c2afb573 100644
--- a/test/built-ins/TypedArray/prototype/some/values-are-not-cached.js
+++ b/test/built-ins/TypedArray/prototype/some/values-are-not-cached.js
@@ -30,7 +30,7 @@ testWithTypedArrayConstructors(function(TA) {
sample.some(function(v, i) {
if (i < sample.length - 1) {
- sample[i+1] = 42;
+ sample[i + 1] = 42;
}
assert.sameValue(
diff --git a/test/built-ins/TypedArray/prototype/sort/return-same-instance.js b/test/built-ins/TypedArray/prototype/sort/return-same-instance.js
index f95885080..23a4312d7 100644
--- a/test/built-ins/TypedArray/prototype/sort/return-same-instance.js
+++ b/test/built-ins/TypedArray/prototype/sort/return-same-instance.js
@@ -20,6 +20,8 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(sample, result, "without comparefn");
- result = sample.sort(function() { return 0; });
+ result = sample.sort(function() {
+ return 0;
+ });
assert.sameValue(sample, result, "with comparefn");
});
diff --git a/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-begin-symbol.js b/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-begin-symbol.js
index 6da5dd1ba..8b9f5a50e 100644
--- a/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-begin-symbol.js
+++ b/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-begin-symbol.js
@@ -17,7 +17,7 @@ var s = Symbol("1");
testWithTypedArrayConstructors(function(TA) {
var sample = new TA();
-
+
assert.throws(TypeError, function() {
sample.subarray(s);
});
diff --git a/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-begin.js b/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-begin.js
index 6e1ac2f64..a3343cd46 100644
--- a/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-begin.js
+++ b/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-begin.js
@@ -27,11 +27,11 @@ var o2 = {
testWithTypedArrayConstructors(function(TA) {
var sample = new TA();
-
+
assert.throws(Test262Error, function() {
sample.subarray(o1);
});
-
+
assert.throws(Test262Error, function() {
sample.subarray(o2);
});
diff --git a/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-end.js b/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-end.js
index eaa4e9ddd..4ef1daf2a 100644
--- a/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-end.js
+++ b/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-end.js
@@ -28,11 +28,11 @@ var o2 = {
testWithTypedArrayConstructors(function(TA) {
var sample = new TA();
-
+
assert.throws(Test262Error, function() {
sample.subarray(0, o1);
});
-
+
assert.throws(Test262Error, function() {
sample.subarray(0, o2);
});
diff --git a/test/built-ins/TypedArray/prototype/subarray/tointeger-begin.js b/test/built-ins/TypedArray/prototype/subarray/tointeger-begin.js
index abf503cb8..3d38c2080 100644
--- a/test/built-ins/TypedArray/prototype/subarray/tointeger-begin.js
+++ b/test/built-ins/TypedArray/prototype/subarray/tointeger-begin.js
@@ -40,8 +40,7 @@ testWithTypedArrayConstructors(function(TA) {
assert(compareArray(sample.subarray("3"), [43]), "string");
assert(
compareArray(
- sample.subarray(obj),
- [42, 43]
+ sample.subarray(obj), [42, 43]
),
"object"
);
diff --git a/test/built-ins/TypedArray/prototype/subarray/tointeger-end.js b/test/built-ins/TypedArray/prototype/subarray/tointeger-end.js
index 4797bf5b2..b59ee07d3 100644
--- a/test/built-ins/TypedArray/prototype/subarray/tointeger-end.js
+++ b/test/built-ins/TypedArray/prototype/subarray/tointeger-end.js
@@ -40,8 +40,7 @@ testWithTypedArrayConstructors(function(TA) {
assert(compareArray(sample.subarray(0, "3"), [40, 41, 42]), "string");
assert(
compareArray(
- sample.subarray(0, obj),
- [40, 41]
+ sample.subarray(0, obj), [40, 41]
),
"object"
);
diff --git a/test/built-ins/TypedArrays/BigInt64Array/prototype/not-typedarray-object.js b/test/built-ins/TypedArrays/BigInt64Array/prototype/not-typedarray-object.js
index 0e3269c48..334f9a363 100644
--- a/test/built-ins/TypedArrays/BigInt64Array/prototype/not-typedarray-object.js
+++ b/test/built-ins/TypedArrays/BigInt64Array/prototype/not-typedarray-object.js
@@ -13,6 +13,6 @@ info: |
features: [BigInt]
---*/
-assert.throws(TypeError, function () {
+assert.throws(TypeError, function() {
BigInt64Array.prototype.buffer;
});
diff --git a/test/built-ins/TypedArrays/BigInt64Array/prototype/proto.js b/test/built-ins/TypedArrays/BigInt64Array/prototype/proto.js
index b16c2d205..edb4ffc9e 100644
--- a/test/built-ins/TypedArrays/BigInt64Array/prototype/proto.js
+++ b/test/built-ins/TypedArrays/BigInt64Array/prototype/proto.js
@@ -14,4 +14,4 @@ features: [BigInt, TypedArray]
---*/
assert.sameValue(Object.getPrototypeOf(BigInt64Array.prototype),
- TypedArray.prototype);
+ TypedArray.prototype);
diff --git a/test/built-ins/TypedArrays/BigUint64Array/prototype/not-typedarray-object.js b/test/built-ins/TypedArrays/BigUint64Array/prototype/not-typedarray-object.js
index aabe797e7..b1d032690 100644
--- a/test/built-ins/TypedArrays/BigUint64Array/prototype/not-typedarray-object.js
+++ b/test/built-ins/TypedArrays/BigUint64Array/prototype/not-typedarray-object.js
@@ -13,6 +13,6 @@ info: |
features: [BigInt]
---*/
-assert.throws(TypeError, function () {
+assert.throws(TypeError, function() {
BigUint64Array.prototype.buffer;
});
diff --git a/test/built-ins/TypedArrays/BigUint64Array/prototype/proto.js b/test/built-ins/TypedArrays/BigUint64Array/prototype/proto.js
index 4ff4f19f5..b68697556 100644
--- a/test/built-ins/TypedArrays/BigUint64Array/prototype/proto.js
+++ b/test/built-ins/TypedArrays/BigUint64Array/prototype/proto.js
@@ -14,4 +14,4 @@ features: [BigInt, TypedArray]
---*/
assert.sameValue(Object.getPrototypeOf(BigUint64Array.prototype),
- TypedArray.prototype);
+ TypedArray.prototype);
diff --git a/test/built-ins/TypedArrays/buffer-arg-byteoffset-to-number-detachbuffer.js b/test/built-ins/TypedArrays/buffer-arg-byteoffset-to-number-detachbuffer.js
index b8936e8cd..73331d125 100644
--- a/test/built-ins/TypedArrays/buffer-arg-byteoffset-to-number-detachbuffer.js
+++ b/test/built-ins/TypedArrays/buffer-arg-byteoffset-to-number-detachbuffer.js
@@ -16,6 +16,11 @@ features: [TypedArray]
testWithTypedArrayConstructors(function(TA) {
var offset = TA.BYTES_PER_ELEMENT;
var buffer = new ArrayBuffer(3 * offset);
- var byteOffset = { valueOf() { $DETACHBUFFER(buffer); return offset; } };
+ var byteOffset = {
+ valueOf() {
+ $DETACHBUFFER(buffer);
+ return offset;
+ }
+ };
assert.throws(TypeError, () => new TA(buffer, byteOffset));
});
diff --git a/test/built-ins/TypedArrays/buffer-arg-length-to-number-detachbuffer.js b/test/built-ins/TypedArrays/buffer-arg-length-to-number-detachbuffer.js
index c8c3eb34b..570ef171f 100644
--- a/test/built-ins/TypedArrays/buffer-arg-length-to-number-detachbuffer.js
+++ b/test/built-ins/TypedArrays/buffer-arg-length-to-number-detachbuffer.js
@@ -16,6 +16,11 @@ features: [TypedArray]
testWithTypedArrayConstructors(function(TA) {
var offset = TA.BYTES_PER_ELEMENT;
var buffer = new ArrayBuffer(3 * offset);
- var length = { valueOf() { $DETACHBUFFER(buffer); return 1; } };
+ var length = {
+ valueOf() {
+ $DETACHBUFFER(buffer);
+ return 1;
+ }
+ };
assert.throws(TypeError, () => new TA(buffer, 0, length));
});
diff --git a/test/built-ins/TypedArrays/buffer-arg-typedarray-backed-by-sharedarraybuffer.js b/test/built-ins/TypedArrays/buffer-arg-typedarray-backed-by-sharedarraybuffer.js
index 739d1cdd2..f01ec911b 100644
--- a/test/built-ins/TypedArrays/buffer-arg-typedarray-backed-by-sharedarraybuffer.js
+++ b/test/built-ins/TypedArrays/buffer-arg-typedarray-backed-by-sharedarraybuffer.js
@@ -18,6 +18,6 @@ testWithTypedArrayConstructors(function(View1) {
testWithTypedArrayConstructors(function(View2) {
var ta2 = new View2(ta1);
assert.sameValue(ta2.buffer.constructor, ArrayBuffer,
- "TypedArray of SharedArrayBuffer-backed TypedArray is ArrayBuffer-backed");
+ "TypedArray of SharedArrayBuffer-backed TypedArray is ArrayBuffer-backed");
}, int_views);
}, int_views);
diff --git a/test/built-ins/TypedArrays/from/arylk-to-length-error.js b/test/built-ins/TypedArrays/from/arylk-to-length-error.js
index 269bc2de0..20c363748 100644
--- a/test/built-ins/TypedArrays/from/arylk-to-length-error.js
+++ b/test/built-ins/TypedArrays/from/arylk-to-length-error.js
@@ -13,7 +13,9 @@ includes: [testTypedArray.js]
features: [TypedArray]
---*/
-var arrayLike = { length: {} };
+var arrayLike = {
+ length: {}
+};
arrayLike.length = {
valueOf: function() {
diff --git a/test/built-ins/TypedArrays/from/nan-conversion.js b/test/built-ins/TypedArrays/from/nan-conversion.js
index df90a868a..ec2cfb112 100644
--- a/test/built-ins/TypedArrays/from/nan-conversion.js
+++ b/test/built-ins/TypedArrays/from/nan-conversion.js
@@ -24,8 +24,7 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(result[1], NaN);
assert.sameValue(result.constructor, TA);
assert.sameValue(Object.getPrototypeOf(result), TA.prototype);
-},
-[
+}, [
Float32Array,
Float64Array
]);
@@ -37,8 +36,7 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(result[1], 0);
assert.sameValue(result.constructor, TA);
assert.sameValue(Object.getPrototypeOf(result), TA.prototype);
-},
-[
+}, [
Int8Array,
Int32Array,
Int16Array,
@@ -47,4 +45,4 @@ testWithTypedArrayConstructors(function(TA) {
Uint16Array,
Uint8Array,
Uint8ClampedArray
-]); \ No newline at end of file
+]);
diff --git a/test/built-ins/TypedArrays/from/new-instance-from-ordinary-object.js b/test/built-ins/TypedArrays/from/new-instance-from-ordinary-object.js
index b29d4de6f..100d0049d 100644
--- a/test/built-ins/TypedArrays/from/new-instance-from-ordinary-object.js
+++ b/test/built-ins/TypedArrays/from/new-instance-from-ordinary-object.js
@@ -24,8 +24,7 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(result[3], NaN);
assert.sameValue(result.constructor, TA);
assert.sameValue(Object.getPrototypeOf(result), TA.prototype);
-},
-[
+}, [
Float32Array,
Float64Array
]);
@@ -40,8 +39,7 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(result[3], 0);
assert.sameValue(result.constructor, TA);
assert.sameValue(Object.getPrototypeOf(result), TA.prototype);
-},
-[
+}, [
Int8Array,
Int32Array,
Int16Array,
diff --git a/test/built-ins/TypedArrays/from/new-instance-from-sparse-array.js b/test/built-ins/TypedArrays/from/new-instance-from-sparse-array.js
index 2eef7a2a8..8b8bc9d27 100644
--- a/test/built-ins/TypedArrays/from/new-instance-from-sparse-array.js
+++ b/test/built-ins/TypedArrays/from/new-instance-from-sparse-array.js
@@ -8,7 +8,7 @@ includes: [testTypedArray.js]
features: [Array.prototype.values, TypedArray]
---*/
-var source = [,,42,,44,,];
+var source = [, , 42, , 44, , ];
testWithTypedArrayConstructors(function(TA) {
var result = TA.from(source);
@@ -22,8 +22,7 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(result[5], NaN);
assert.sameValue(result.constructor, TA);
assert.sameValue(Object.getPrototypeOf(result), TA.prototype);
-},
-[
+}, [
Float32Array,
Float64Array
]);
@@ -40,8 +39,7 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(result[5], 0);
assert.sameValue(result.constructor, TA);
assert.sameValue(Object.getPrototypeOf(result), TA.prototype);
-},
-[
+}, [
Int8Array,
Int32Array,
Int16Array,
diff --git a/test/built-ins/TypedArrays/from/new-instance-from-zero.js b/test/built-ins/TypedArrays/from/new-instance-from-zero.js
index ef06c4b93..a8bb4a850 100644
--- a/test/built-ins/TypedArrays/from/new-instance-from-zero.js
+++ b/test/built-ins/TypedArrays/from/new-instance-from-zero.js
@@ -15,8 +15,7 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(result[1], 0, "+0 => 0");
assert.sameValue(result.constructor, TA);
assert.sameValue(Object.getPrototypeOf(result), TA.prototype);
-},
-[
+}, [
Float32Array,
Float64Array
]);
@@ -28,8 +27,7 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(result[1], 0, "+0 => 0");
assert.sameValue(result.constructor, TA);
assert.sameValue(Object.getPrototypeOf(result), TA.prototype);
-},
-[
+}, [
Int16Array,
Int32Array,
Int8Array,
@@ -37,4 +35,4 @@ testWithTypedArrayConstructors(function(TA) {
Uint32Array,
Uint8Array,
Uint8ClampedArray
-]); \ No newline at end of file
+]);
diff --git a/test/built-ins/TypedArrays/from/this-is-not-constructor.js b/test/built-ins/TypedArrays/from/this-is-not-constructor.js
index 1dab90235..83ecbaa3b 100644
--- a/test/built-ins/TypedArrays/from/this-is-not-constructor.js
+++ b/test/built-ins/TypedArrays/from/this-is-not-constructor.js
@@ -14,7 +14,9 @@ includes: [testTypedArray.js]
features: [TypedArray]
---*/
-var m = { m() {} }.m;
+var m = {
+ m() {}
+}.m;
testWithTypedArrayConstructors(function(TA) {
assert.throws(TypeError, function() {
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation-consistent-nan.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation-consistent-nan.js
index 19323c66d..39a11f109 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation-consistent-nan.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation-consistent-nan.js
@@ -55,7 +55,9 @@ function body(FloatArray) {
someNaN = distinctNaNs[idx];
control = new FloatArray([someNaN]);
- Object.defineProperty(sample, '0', { value: someNaN });
+ Object.defineProperty(sample, '0', {
+ value: someNaN
+ });
sampleBytes = new Uint8Array(sample.buffer);
controlBytes = new Uint8Array(control.buffer);
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation.js
index f78228c5b..26cb90caa 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation.js
@@ -47,7 +47,9 @@ includes: [byteConversionValues.js, testTypedArray.js]
testTypedArrayConversions(byteConversionValues, function(TA, value, expected, initial) {
var sample = new TA([initial]);
- Object.defineProperty(sample, "0", {value: value});
+ Object.defineProperty(sample, "0", {
+ value: value
+ });
assert.sameValue(sample[0], expected, value + " converts to " + expected);
});
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/desc-value-throws.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/desc-value-throws.js
index 6572c1f94..c6c8dd156 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/desc-value-throws.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/desc-value-throws.js
@@ -35,6 +35,8 @@ testWithTypedArrayConstructors(function(TA) {
var sample = new TA([42]);
assert.throws(Test262Error, function() {
- Object.defineProperty(sample, "0", {value: obj});
+ Object.defineProperty(sample, "0", {
+ value: obj
+ });
});
});
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer.js
index a1039636f..e413ab78d 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer.js
@@ -129,6 +129,8 @@ testWithTypedArrayConstructors(function(TA) {
);
assert.throws(Test262Error, function() {
- Reflect.defineProperty(sample, "7", {value: obj});
+ Reflect.defineProperty(sample, "7", {
+ value: obj
+ });
}, "Return Abrupt before Detached Buffer check from ToNumber(desc.value)");
});
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-canonical-index.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-canonical-index.js
index 193d91665..b51c1b602 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-canonical-index.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-canonical-index.js
@@ -72,7 +72,7 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(desc.set, fnset, "accessor's set [" + key + "]");
verifyNotConfigurable(sample2, key);
- assert.sameValue(sample2[0], undefined,"no value is set on sample2[0]");
+ assert.sameValue(sample2[0], undefined, "no value is set on sample2[0]");
assert.sameValue(sample2.length, 0, "length is still 0");
var sample3 = new TA();
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-numeric-index.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-numeric-index.js
index 845a9afbe..4d498e45f 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-numeric-index.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-numeric-index.js
@@ -21,7 +21,9 @@ testWithTypedArrayConstructors(function(TA) {
var sample = new TA([42, 43]);
assert.sameValue(
- Reflect.defineProperty(sample, "foo", {value:42}),
+ Reflect.defineProperty(sample, "foo", {
+ value: 42
+ }),
true,
"return true after defining property"
);
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-new-key.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-new-key.js
index e74c95f12..20bfb67ca 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-new-key.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-new-key.js
@@ -22,7 +22,9 @@ testWithTypedArrayConstructors(function(TA) {
Object.preventExtensions(sample);
assert.sameValue(
- Reflect.defineProperty(sample, "foo", {value:42}),
+ Reflect.defineProperty(sample, "foo", {
+ value: 42
+ }),
false,
"return false on a non-extensible object - data descriptor"
);
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-redefine-key.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-redefine-key.js
index a0baaf57e..5b3005e86 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-redefine-key.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-redefine-key.js
@@ -25,7 +25,9 @@ testWithTypedArrayConstructors(function(TA) {
Object.preventExtensions(sample);
assert.sameValue(
- Reflect.defineProperty(sample, "foo", {value:42}),
+ Reflect.defineProperty(sample, "foo", {
+ value: 42
+ }),
true,
"data descriptor"
);
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/set-value.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/set-value.js
index ff71bee90..8768f035a 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/set-value.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/set-value.js
@@ -29,13 +29,17 @@ testWithTypedArrayConstructors(function(TA) {
var sample = new TA([0, 0]);
assert.sameValue(
- Reflect.defineProperty(sample, "0", {value: 1}),
+ Reflect.defineProperty(sample, "0", {
+ value: 1
+ }),
true,
"set value for sample[0] returns true"
);
assert.sameValue(
- Reflect.defineProperty(sample, "1", {value: 2}),
+ Reflect.defineProperty(sample, "1", {
+ value: 2
+ }),
true,
"set value for sample[1] returns true"
);
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/this-is-not-extensible.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/this-is-not-extensible.js
index 5e586c775..63ff80219 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/this-is-not-extensible.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/this-is-not-extensible.js
@@ -22,10 +22,14 @@ testWithTypedArrayConstructors(function(TA) {
Object.preventExtensions(sample);
- assert.sameValue(Reflect.defineProperty(sample, "foo", {value:42}), false);
+ assert.sameValue(Reflect.defineProperty(sample, "foo", {
+ value: 42
+ }), false);
assert.sameValue(Reflect.getOwnPropertyDescriptor(sample, "foo"), undefined);
var s = Symbol("1");
- assert.sameValue(Reflect.defineProperty(sample, s, {value:42}), false);
+ assert.sameValue(Reflect.defineProperty(sample, s, {
+ value: 42
+ }), false);
assert.sameValue(Reflect.getOwnPropertyDescriptor(sample, s), undefined);
});
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/tonumber-value-detached-buffer.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/tonumber-value-detached-buffer.js
index d1975ee63..af6468946 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/tonumber-value-detached-buffer.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/tonumber-value-detached-buffer.js
@@ -32,24 +32,22 @@ features: [Reflect, TypedArray]
testWithTypedArrayConstructors(function(TA) {
var ta = new TA([17]);
- var desc =
- {
- value: {
- valueOf: function() {
- $262.detachArrayBuffer(ta.buffer);
- return 42;
- }
+ var desc = {
+ value: {
+ valueOf: function() {
+ $262.detachArrayBuffer(ta.buffer);
+ return 42;
}
- };
+ }
+ };
assert.throws(TypeError, function() {
- Reflect.defineProperty(ta, 0, desc);
- },
- "detaching a ArrayBuffer during defining an element of a typed array " +
- "viewing it should throw");
+ Reflect.defineProperty(ta, 0, desc);
+ },
+ "detaching a ArrayBuffer during defining an element of a typed array " +
+ "viewing it should throw");
assert.throws(TypeError, function() {
ta[0];
});
});
-
diff --git a/test/built-ins/TypedArrays/internals/Get/key-is-not-canonical-index.js b/test/built-ins/TypedArrays/internals/Get/key-is-not-canonical-index.js
index 21293026c..24d118ed6 100644
--- a/test/built-ins/TypedArrays/internals/Get/key-is-not-canonical-index.js
+++ b/test/built-ins/TypedArrays/internals/Get/key-is-not-canonical-index.js
@@ -48,7 +48,9 @@ testWithTypedArrayConstructors(function(TA) {
);
Object.defineProperty(sample, key, {
- get: function() { return "baz"; }
+ get: function() {
+ return "baz";
+ }
});
assert.sameValue(
diff --git a/test/built-ins/TypedArrays/internals/Get/key-is-not-numeric-index.js b/test/built-ins/TypedArrays/internals/Get/key-is-not-numeric-index.js
index 53824ad34..271716483 100644
--- a/test/built-ins/TypedArrays/internals/Get/key-is-not-numeric-index.js
+++ b/test/built-ins/TypedArrays/internals/Get/key-is-not-numeric-index.js
@@ -31,7 +31,9 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(sample.foo, "bar", "return value");
Object.defineProperty(sample, "bar", {
- get: function() { return "baz"; }
+ get: function() {
+ return "baz";
+ }
});
assert.sameValue(sample.bar, "baz", "return value from get accessor");
diff --git a/test/built-ins/TypedArrays/internals/Get/key-is-symbol.js b/test/built-ins/TypedArrays/internals/Get/key-is-symbol.js
index 1d05d06bc..0a585a99a 100644
--- a/test/built-ins/TypedArrays/internals/Get/key-is-symbol.js
+++ b/test/built-ins/TypedArrays/internals/Get/key-is-symbol.js
@@ -32,7 +32,9 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(sample[s1], "foo", "return value");
Object.defineProperty(sample, s1, {
- get: function() { return "bar"; }
+ get: function() {
+ return "bar";
+ }
});
assert.sameValue(sample[s1], "bar", "return value from get accessor");
diff --git a/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-not-number.js b/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-not-number.js
index 81b274361..3683a6f55 100644
--- a/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-not-number.js
+++ b/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-not-number.js
@@ -29,7 +29,9 @@ testWithTypedArrayConstructors(function(TA) {
// Tests for the property descriptor are defined on the tests for
// [[DefineOwnProperty]] calls
- Object.defineProperty(sample, "foo", { value: "bar" });
+ Object.defineProperty(sample, "foo", {
+ value: "bar"
+ });
assert.sameValue(
Object.getOwnPropertyDescriptor(sample, "foo").value,
"bar",
diff --git a/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-symbol.js b/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-symbol.js
index 308a2973f..5605b8d5b 100644
--- a/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-symbol.js
+++ b/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-symbol.js
@@ -22,7 +22,9 @@ testWithTypedArrayConstructors(function(TA) {
$DETACHBUFFER(sample.buffer);
var s = Symbol("foo");
- Object.defineProperty(sample, s, { value: "baz" });
+ Object.defineProperty(sample, s, {
+ value: "baz"
+ });
assert.sameValue(
Object.getOwnPropertyDescriptor(sample, s).value,
"baz",
diff --git a/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-canonical-index.js b/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-canonical-index.js
index 35b6fa01c..8344b203f 100644
--- a/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-canonical-index.js
+++ b/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-canonical-index.js
@@ -38,7 +38,9 @@ testWithTypedArrayConstructors(function(TA) {
// Tests for the property descriptor are defined on the tests for
// [[DefineOwnProperty]] calls
- Object.defineProperty(sample, key, {value: "bar"});
+ Object.defineProperty(sample, key, {
+ value: "bar"
+ });
assert.sameValue(
Object.getOwnPropertyDescriptor(sample, key).value,
"bar",
diff --git a/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-numeric-index.js b/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-numeric-index.js
index 57fd606ae..1d008d21f 100644
--- a/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-numeric-index.js
+++ b/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-numeric-index.js
@@ -29,7 +29,9 @@ testWithTypedArrayConstructors(function(TA) {
// Tests for the property descriptor are defined on the tests for
// [[DefineOwnProperty]] calls
- Object.defineProperty(sample, "foo", { value: "bar" });
+ Object.defineProperty(sample, "foo", {
+ value: "bar"
+ });
assert.sameValue(
Object.getOwnPropertyDescriptor(sample, "foo").value,
"bar",
diff --git a/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-symbol.js b/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-symbol.js
index 6b440e119..d0e3b1f0d 100644
--- a/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-symbol.js
+++ b/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-symbol.js
@@ -22,7 +22,9 @@ testWithTypedArrayConstructors(function(TA) {
var sample = new TA([42, 43]);
var s = Symbol("foo");
- Object.defineProperty(sample, s, { value: "baz" });
+ Object.defineProperty(sample, s, {
+ value: "baz"
+ });
assert.sameValue(
Object.getOwnPropertyDescriptor(sample, s).value,
"baz",
diff --git a/test/built-ins/TypedArrays/internals/HasProperty/abrupt-from-ordinary-has-parent-hasproperty.js b/test/built-ins/TypedArrays/internals/HasProperty/abrupt-from-ordinary-has-parent-hasproperty.js
index 1c235fa81..3eddf77c7 100644
--- a/test/built-ins/TypedArrays/internals/HasProperty/abrupt-from-ordinary-has-parent-hasproperty.js
+++ b/test/built-ins/TypedArrays/internals/HasProperty/abrupt-from-ordinary-has-parent-hasproperty.js
@@ -53,7 +53,9 @@ testWithTypedArrayConstructors(function(TA) {
Reflect.has(sample, "foo");
}, "Return abrupt from parent's [[HasProperty]] 'foo'");
- Object.defineProperty(sample, "foo", { value: 42 });
+ Object.defineProperty(sample, "foo", {
+ value: 42
+ });
assert.sameValue(
Reflect.has(sample, "foo"),
diff --git a/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-not-number.js b/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-not-number.js
index 011e80c0b..d7662252d 100644
--- a/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-not-number.js
+++ b/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-not-number.js
@@ -20,7 +20,9 @@ features: [Reflect, TypedArray]
testWithTypedArrayConstructors(function(TA) {
var sample = new TA([42, 43]);
- Object.defineProperty(sample, "bar", { value: 42 });
+ Object.defineProperty(sample, "bar", {
+ value: 42
+ });
$DETACHBUFFER(sample.buffer);
diff --git a/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-symbol.js b/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-symbol.js
index 2c34c3caa..10f0c84d9 100644
--- a/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-symbol.js
+++ b/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-symbol.js
@@ -22,7 +22,9 @@ var s2 = Symbol("bar");
testWithTypedArrayConstructors(function(TA) {
var sample = new TA([42, 43]);
- Object.defineProperty(sample, s1, { value: "baz" });
+ Object.defineProperty(sample, s1, {
+ value: "baz"
+ });
$DETACHBUFFER(sample.buffer);
diff --git a/test/built-ins/TypedArrays/internals/HasProperty/infinity-with-detached-buffer.js b/test/built-ins/TypedArrays/internals/HasProperty/infinity-with-detached-buffer.js
index 7a79bec7b..9e79d90cc 100644
--- a/test/built-ins/TypedArrays/internals/HasProperty/infinity-with-detached-buffer.js
+++ b/test/built-ins/TypedArrays/internals/HasProperty/infinity-with-detached-buffer.js
@@ -31,6 +31,6 @@ testWithTypedArrayConstructors(function(TA) {
$DETACHBUFFER(sample.buffer);
assert.throws(TypeError, function() {
- with (sample) Infinity;
+ with(sample) Infinity;
});
});
diff --git a/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-canonical-index.js b/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-canonical-index.js
index 7e20c5b24..673aec6d8 100644
--- a/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-canonical-index.js
+++ b/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-canonical-index.js
@@ -43,7 +43,9 @@ testWithTypedArrayConstructors(function(TA) {
delete TypedArray.prototype[key];
- Object.defineProperty(sample, key, {value: 42});
+ Object.defineProperty(sample, key, {
+ value: 42
+ });
assert.sameValue(
Reflect.has(sample, key), true,
diff --git a/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-numeric-index.js b/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-numeric-index.js
index 53cfc5768..e6e187a56 100644
--- a/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-numeric-index.js
+++ b/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-numeric-index.js
@@ -23,7 +23,9 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(Reflect.has(sample, "foo"), false);
- Object.defineProperty(sample, "foo", { value: 42 });
+ Object.defineProperty(sample, "foo", {
+ value: 42
+ });
assert.sameValue(Reflect.has(sample, "foo"), true);
});
diff --git a/test/built-ins/TypedArrays/internals/HasProperty/key-is-symbol.js b/test/built-ins/TypedArrays/internals/HasProperty/key-is-symbol.js
index f3b6e6758..f6d1a1bfb 100644
--- a/test/built-ins/TypedArrays/internals/HasProperty/key-is-symbol.js
+++ b/test/built-ins/TypedArrays/internals/HasProperty/key-is-symbol.js
@@ -22,7 +22,9 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(Reflect.has(sample, s), false);
- Object.defineProperty(sample, s, { value: 42 });
+ Object.defineProperty(sample, s, {
+ value: 42
+ });
assert.sameValue(Reflect.has(sample, s), true);
});
diff --git a/test/built-ins/TypedArrays/internals/Set/tonumber-value-detached-buffer.js b/test/built-ins/TypedArrays/internals/Set/tonumber-value-detached-buffer.js
index 86a4b867b..45e9c76af 100644
--- a/test/built-ins/TypedArrays/internals/Set/tonumber-value-detached-buffer.js
+++ b/test/built-ins/TypedArrays/internals/Set/tonumber-value-detached-buffer.js
@@ -30,15 +30,15 @@ testWithTypedArrayConstructors(function(TA) {
var ta = new TA([17]);
assert.throws(TypeError, function() {
- Reflect.set(ta, 0, {
- valueOf: function() {
- $262.detachArrayBuffer(ta.buffer);
- return 42;
- }
- });
- },
- "detaching a ArrayBuffer during setting an element of a typed array " +
- "viewing it should throw");
+ Reflect.set(ta, 0, {
+ valueOf: function() {
+ $262.detachArrayBuffer(ta.buffer);
+ return 42;
+ }
+ });
+ },
+ "detaching a ArrayBuffer during setting an element of a typed array " +
+ "viewing it should throw");
assert.throws(TypeError, function() {
ta[0];
diff --git a/test/built-ins/TypedArrays/object-arg-as-generator-iterable-returns.js b/test/built-ins/TypedArrays/object-arg-as-generator-iterable-returns.js
index f9af0defe..ecc1b08e8 100644
--- a/test/built-ins/TypedArrays/object-arg-as-generator-iterable-returns.js
+++ b/test/built-ins/TypedArrays/object-arg-as-generator-iterable-returns.js
@@ -17,8 +17,9 @@ features: [TypedArray]
---*/
testWithTypedArrayConstructors(function(TA) {
- var obj = (function *() {
- yield 7; yield 42;
+ var obj = (function*() {
+ yield 7;
+ yield 42;
})();
var typedArray = new TA(obj);
diff --git a/test/built-ins/TypedArrays/object-arg-iterating-throws.js b/test/built-ins/TypedArrays/object-arg-iterating-throws.js
index 41fc55509..764447eab 100644
--- a/test/built-ins/TypedArrays/object-arg-iterating-throws.js
+++ b/test/built-ins/TypedArrays/object-arg-iterating-throws.js
@@ -20,7 +20,7 @@ features: [TypedArray]
---*/
testWithTypedArrayConstructors(function(TA) {
- var obj = (function *() {
+ var obj = (function*() {
yield 0;
throw new Test262Error();
})();
diff --git a/test/built-ins/TypedArrays/object-arg-iterator-not-callable-throws.js b/test/built-ins/TypedArrays/object-arg-iterator-not-callable-throws.js
index ad6db0877..e9b548230 100644
--- a/test/built-ins/TypedArrays/object-arg-iterator-not-callable-throws.js
+++ b/test/built-ins/TypedArrays/object-arg-iterator-not-callable-throws.js
@@ -19,7 +19,7 @@ includes: [testTypedArray.js]
features: [Symbol.iterator, TypedArray]
---*/
-var obj = function () {};
+var obj = function() {};
testWithTypedArrayConstructors(function(TA) {
obj[Symbol.iterator] = {};
diff --git a/test/built-ins/TypedArrays/object-arg-iterator-throws.js b/test/built-ins/TypedArrays/object-arg-iterator-throws.js
index 571ad77ad..63122f682 100644
--- a/test/built-ins/TypedArrays/object-arg-iterator-throws.js
+++ b/test/built-ins/TypedArrays/object-arg-iterator-throws.js
@@ -19,7 +19,7 @@ includes: [testTypedArray.js]
features: [Symbol.iterator, TypedArray]
---*/
-var obj = function () {};
+var obj = function() {};
Object.defineProperty(obj, Symbol.iterator, {
get() {
diff --git a/test/built-ins/TypedArrays/of/argument-number-value-throws.js b/test/built-ins/TypedArrays/of/argument-number-value-throws.js
index bda57f8cd..019cbb79c 100644
--- a/test/built-ins/TypedArrays/of/argument-number-value-throws.js
+++ b/test/built-ins/TypedArrays/of/argument-number-value-throws.js
@@ -40,4 +40,3 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(lastValue, "obj2");
});
-
diff --git a/test/built-ins/TypedArrays/of/inherited.js b/test/built-ins/TypedArrays/of/inherited.js
index 4f040e4e9..6a7ee304b 100644
--- a/test/built-ins/TypedArrays/of/inherited.js
+++ b/test/built-ins/TypedArrays/of/inherited.js
@@ -22,4 +22,4 @@ testWithTypedArrayConstructors(function(TA) {
TA.hasOwnProperty("of"), false,
"constructor does not define an own property named 'of'"
);
-}); \ No newline at end of file
+});
diff --git a/test/built-ins/TypedArrays/of/invoked-as-func.js b/test/built-ins/TypedArrays/of/invoked-as-func.js
index 382bf1cd9..e16dfe286 100644
--- a/test/built-ins/TypedArrays/of/invoked-as-func.js
+++ b/test/built-ins/TypedArrays/of/invoked-as-func.js
@@ -19,7 +19,6 @@ features: [TypedArray]
testWithTypedArrayConstructors(function(TA) {
var of = TA.of;
- assert.throws(TypeError, function() {
- of();
+ assert.throws(TypeError, function() { of ();
});
});
diff --git a/test/built-ins/TypedArrays/of/nan-conversion.js b/test/built-ins/TypedArrays/of/nan-conversion.js
index 4444f1286..8e3ca40ae 100644
--- a/test/built-ins/TypedArrays/of/nan-conversion.js
+++ b/test/built-ins/TypedArrays/of/nan-conversion.js
@@ -24,8 +24,7 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(result[1], NaN);
assert.sameValue(result.constructor, TA);
assert.sameValue(Object.getPrototypeOf(result), TA.prototype);
-},
-[
+}, [
Float32Array,
Float64Array
]);
@@ -37,8 +36,7 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(result[1], 0);
assert.sameValue(result.constructor, TA);
assert.sameValue(Object.getPrototypeOf(result), TA.prototype);
-},
-[
+}, [
Int8Array,
Int32Array,
Int16Array,
diff --git a/test/built-ins/TypedArrays/of/new-instance-from-zero.js b/test/built-ins/TypedArrays/of/new-instance-from-zero.js
index ecffd9c36..783e5b3b2 100644
--- a/test/built-ins/TypedArrays/of/new-instance-from-zero.js
+++ b/test/built-ins/TypedArrays/of/new-instance-from-zero.js
@@ -15,8 +15,7 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(result[1], 0, "+0 => 0");
assert.sameValue(result.constructor, TA);
assert.sameValue(Object.getPrototypeOf(result), TA.prototype);
-},
-[
+}, [
Float32Array,
Float64Array
]);
@@ -28,8 +27,7 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(result[1], 0, "+0 => 0");
assert.sameValue(result.constructor, TA);
assert.sameValue(Object.getPrototypeOf(result), TA.prototype);
-},
-[
+}, [
Int16Array,
Int32Array,
Int8Array,
diff --git a/test/built-ins/TypedArrays/of/this-is-not-constructor.js b/test/built-ins/TypedArrays/of/this-is-not-constructor.js
index be5b3b65a..dedf72bce 100644
--- a/test/built-ins/TypedArrays/of/this-is-not-constructor.js
+++ b/test/built-ins/TypedArrays/of/this-is-not-constructor.js
@@ -15,7 +15,9 @@ includes: [testTypedArray.js]
features: [TypedArray]
---*/
-var m = { m() {} }.m;
+var m = {
+ m() {}
+}.m;
testWithTypedArrayConstructors(function(TA) {
assert.throws(TypeError, function() {
diff --git a/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-different-type.js b/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-different-type.js
index 8ee2fba54..b2716b242 100644
--- a/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-different-type.js
+++ b/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-different-type.js
@@ -31,31 +31,31 @@ features: [TypedArray, Symbol.species]
---*/
testWithTypedArrayConstructors(function(TA) {
- var speciesCallCount = 0;
- var bufferConstructor = Object.defineProperty({}, Symbol.species, {
- get: function() {
- speciesCallCount += 1;
- $DETACHBUFFER(ta.buffer);
- return speciesConstructor;
- }
- });
-
- var prototypeCallCount = 0;
- var speciesConstructor = Object.defineProperty(function(){}.bind(), "prototype", {
- get: function() {
- prototypeCallCount += 1;
- return null;
- }
- });
-
- var ta = new TA(0);
- ta.buffer.constructor = bufferConstructor;
-
- assert.throws(TypeError, function() {
- var targetType = TA !== Int32Array ? Int32Array : Uint32Array;
- new targetType(ta);
- }, "TypeError thrown for detached source buffer");
-
- assert.sameValue(speciesCallCount, 1, "@@species getter called once");
- assert.sameValue(prototypeCallCount, 1, "prototype getter called once");
+ var speciesCallCount = 0;
+ var bufferConstructor = Object.defineProperty({}, Symbol.species, {
+ get: function() {
+ speciesCallCount += 1;
+ $DETACHBUFFER(ta.buffer);
+ return speciesConstructor;
+ }
+ });
+
+ var prototypeCallCount = 0;
+ var speciesConstructor = Object.defineProperty(function() {}.bind(), "prototype", {
+ get: function() {
+ prototypeCallCount += 1;
+ return null;
+ }
+ });
+
+ var ta = new TA(0);
+ ta.buffer.constructor = bufferConstructor;
+
+ assert.throws(TypeError, function() {
+ var targetType = TA !== Int32Array ? Int32Array : Uint32Array;
+ new targetType(ta);
+ }, "TypeError thrown for detached source buffer");
+
+ assert.sameValue(speciesCallCount, 1, "@@species getter called once");
+ assert.sameValue(prototypeCallCount, 1, "prototype getter called once");
});
diff --git a/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-same-type.js b/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-same-type.js
index 978f42af6..37484659b 100644
--- a/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-same-type.js
+++ b/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-same-type.js
@@ -35,30 +35,30 @@ features: [TypedArray, Symbol.species]
---*/
testWithTypedArrayConstructors(function(TA) {
- var speciesCallCount = 0;
- var bufferConstructor = Object.defineProperty({}, Symbol.species, {
- get: function() {
- speciesCallCount += 1;
- $DETACHBUFFER(ta.buffer);
- return speciesConstructor;
- }
- });
+ var speciesCallCount = 0;
+ var bufferConstructor = Object.defineProperty({}, Symbol.species, {
+ get: function() {
+ speciesCallCount += 1;
+ $DETACHBUFFER(ta.buffer);
+ return speciesConstructor;
+ }
+ });
- var prototypeCallCount = 0;
- var speciesConstructor = Object.defineProperty(function(){}.bind(), "prototype", {
- get: function() {
- prototypeCallCount += 1;
- return null;
- }
- });
+ var prototypeCallCount = 0;
+ var speciesConstructor = Object.defineProperty(function() {}.bind(), "prototype", {
+ get: function() {
+ prototypeCallCount += 1;
+ return null;
+ }
+ });
- var ta = new TA(0);
- ta.buffer.constructor = bufferConstructor;
+ var ta = new TA(0);
+ ta.buffer.constructor = bufferConstructor;
- assert.throws(TypeError, function() {
- new TA(ta);
- }, "TypeError thrown for detached source buffer");
+ assert.throws(TypeError, function() {
+ new TA(ta);
+ }, "TypeError thrown for detached source buffer");
- assert.sameValue(speciesCallCount, 1, "@@species getter called once");
- assert.sameValue(prototypeCallCount, 1, "prototype getter called once");
+ assert.sameValue(speciesCallCount, 1, "@@species getter called once");
+ assert.sameValue(prototypeCallCount, 1, "prototype getter called once");
});
diff --git a/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-not-ctor-throws.js b/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-not-ctor-throws.js
index c485cae13..8a656718f 100644
--- a/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-not-ctor-throws.js
+++ b/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-not-ctor-throws.js
@@ -33,7 +33,9 @@ var sample2 = new Int16Array();
var ctor = function() {
throw new Test262Error();
};
-var m = { m() {} }.m;
+var m = {
+ m() {}
+}.m;
ctor[Symbol.species] = m;
testWithTypedArrayConstructors(function(TA) {
diff --git a/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-prototype-throws.js b/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-prototype-throws.js
index 135634646..ad7dfa659 100644
--- a/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-prototype-throws.js
+++ b/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-prototype-throws.js
@@ -45,7 +45,9 @@ testWithTypedArrayConstructors(function(TA) {
sample.buffer.constructor = ctor;
- ctor[Symbol.species] = function() {called++;}.bind(null);
+ ctor[Symbol.species] = function() {
+ called++;
+ }.bind(null);
Object.defineProperty(ctor[Symbol.species], "prototype", {
get: function() {
throw new Test262Error();
diff --git a/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-not-ctor.js b/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-not-ctor.js
index 2072aa96d..6c0d590d2 100644
--- a/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-not-ctor.js
+++ b/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-not-ctor.js
@@ -37,7 +37,9 @@ features: [Symbol.species, TypedArray]
testWithTypedArrayConstructors(function(TA) {
var sample = new TA();
var ctor = {};
- var m = { m() {} };
+ var m = {
+ m() {}
+ };
sample.buffer.constructor = ctor;
diff --git a/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-prototype-throws.js b/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-prototype-throws.js
index b171826cf..cd0cc0c25 100644
--- a/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-prototype-throws.js
+++ b/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-prototype-throws.js
@@ -49,7 +49,7 @@ testWithTypedArrayConstructors(function(TA) {
sample.buffer.constructor = ctor;
- ctor[Symbol.species] = function(){}.bind(null);
+ ctor[Symbol.species] = function() {}.bind(null);
Object.defineProperty(ctor[Symbol.species], "prototype", {
get() {
throw new Test262Error();
diff --git a/test/built-ins/WeakMap/iterable.js b/test/built-ins/WeakMap/iterable.js
index e7bbc1d10..4125eee93 100644
--- a/test/built-ins/WeakMap/iterable.js
+++ b/test/built-ins/WeakMap/iterable.js
@@ -27,7 +27,10 @@ WeakMap.prototype.set = function(key, value) {
});
return set.call(this, key, value);
};
-var map = new WeakMap([[first, 42], [second, 43]]);
+var map = new WeakMap([
+ [first, 42],
+ [second, 43]
+]);
assert.sameValue(results.length, 2, 'Called WeakMap#set for each object');
assert.sameValue(results[0].key, first, 'Adds object in order - first key');
diff --git a/test/built-ins/WeakMap/iterator-close-after-set-failure.js b/test/built-ins/WeakMap/iterator-close-after-set-failure.js
index e2abc9479..57a0d05d5 100644
--- a/test/built-ins/WeakMap/iterator-close-after-set-failure.js
+++ b/test/built-ins/WeakMap/iterator-close-after-set-failure.js
@@ -20,14 +20,19 @@ var iterable = {};
iterable[Symbol.iterator] = function() {
return {
next: function() {
- return { value: [], done: false };
+ return {
+ value: [],
+ done: false
+ };
},
return: function() {
count += 1;
}
};
};
-WeakMap.prototype.set = function() { throw new Test262Error(); };
+WeakMap.prototype.set = function() {
+ throw new Test262Error();
+};
assert.throws(Test262Error, function() {
new WeakMap(iterable);
diff --git a/test/built-ins/WeakMap/iterator-items-are-not-object-close-iterator.js b/test/built-ins/WeakMap/iterator-items-are-not-object-close-iterator.js
index ebec4f91b..bc8c4d059 100644
--- a/test/built-ins/WeakMap/iterator-items-are-not-object-close-iterator.js
+++ b/test/built-ins/WeakMap/iterator-items-are-not-object-close-iterator.js
@@ -28,7 +28,10 @@ var iterable = {};
iterable[Symbol.iterator] = function() {
return {
next: function() {
- return { value: nextItem, done: false };
+ return {
+ value: nextItem,
+ done: false
+ };
},
return: function() {
count += 1;
diff --git a/test/built-ins/WeakMap/iterator-items-are-not-object.js b/test/built-ins/WeakMap/iterator-items-are-not-object.js
index 1af895570..5cb3959d5 100644
--- a/test/built-ins/WeakMap/iterator-items-are-not-object.js
+++ b/test/built-ins/WeakMap/iterator-items-are-not-object.js
@@ -45,5 +45,7 @@ assert.throws(TypeError, function() {
});
assert.throws(TypeError, function() {
- new WeakMap([['a', 1], 2]);
+ new WeakMap([
+ ['a', 1], 2
+ ]);
});
diff --git a/test/built-ins/WeakMap/name.js b/test/built-ins/WeakMap/name.js
index 7aafce494..baa4d1014 100644
--- a/test/built-ins/WeakMap/name.js
+++ b/test/built-ins/WeakMap/name.js
@@ -12,8 +12,8 @@ includes: [propertyHelper.js]
---*/
assert.sameValue(
- WeakMap.name, 'WeakMap',
- 'The value of `WeakMap.name` is "WeakMap"'
+ WeakMap.name, 'WeakMap',
+ 'The value of `WeakMap.name` is "WeakMap"'
);
verifyNotEnumerable(WeakMap, 'name');
diff --git a/test/built-ins/WeakMap/prototype/delete/delete-entry-initial-iterable.js b/test/built-ins/WeakMap/prototype/delete/delete-entry-initial-iterable.js
index 6768aba52..1927f697b 100644
--- a/test/built-ins/WeakMap/prototype/delete/delete-entry-initial-iterable.js
+++ b/test/built-ins/WeakMap/prototype/delete/delete-entry-initial-iterable.js
@@ -22,7 +22,9 @@ info: |
---*/
var foo = {};
-var map = new WeakMap([[foo, 42]]);
+var map = new WeakMap([
+ [foo, 42]
+]);
var result = map.delete(foo);
diff --git a/test/built-ins/WeakMap/prototype/get/returns-undefined.js b/test/built-ins/WeakMap/prototype/get/returns-undefined.js
index 77eddd8ba..76d7ef16d 100644
--- a/test/built-ins/WeakMap/prototype/get/returns-undefined.js
+++ b/test/built-ins/WeakMap/prototype/get/returns-undefined.js
@@ -24,7 +24,7 @@ var key = {};
assert.sameValue(
map.get(key), undefined,
- 'returns undefined if key is not on the weakmap'
+ 'returns undefined if key is not on the weakmap'
);
map.set(key, 1);
diff --git a/test/built-ins/WeakMap/prototype/get/returns-value.js b/test/built-ins/WeakMap/prototype/get/returns-value.js
index 2afc923dc..47990a97d 100644
--- a/test/built-ins/WeakMap/prototype/get/returns-value.js
+++ b/test/built-ins/WeakMap/prototype/get/returns-value.js
@@ -21,7 +21,9 @@ info: |
var foo = {};
var bar = {};
var baz = [];
-var map = new WeakMap([[foo,0]]);
+var map = new WeakMap([
+ [foo, 0]
+]);
assert.sameValue(map.get(foo), 0);
diff --git a/test/built-ins/WeakMap/prototype/set/returns-this-when-ignoring-duplicate.js b/test/built-ins/WeakMap/prototype/set/returns-this-when-ignoring-duplicate.js
index 81e8f36ae..e4eea0129 100644
--- a/test/built-ins/WeakMap/prototype/set/returns-this-when-ignoring-duplicate.js
+++ b/test/built-ins/WeakMap/prototype/set/returns-this-when-ignoring-duplicate.js
@@ -18,6 +18,8 @@ info: |
---*/
var foo = {};
-var map = new WeakMap([[foo, 1]]);
+var map = new WeakMap([
+ [foo, 1]
+]);
assert.sameValue(map.set(foo, 1), map, '`map.set(foo, 1)` returns `map`');
diff --git a/test/built-ins/WeakSet/iterator-close-after-add-failure.js b/test/built-ins/WeakSet/iterator-close-after-add-failure.js
index dcd971380..fed192c8c 100644
--- a/test/built-ins/WeakSet/iterator-close-after-add-failure.js
+++ b/test/built-ins/WeakSet/iterator-close-after-add-failure.js
@@ -20,14 +20,19 @@ var iterable = {};
iterable[Symbol.iterator] = function() {
return {
next: function() {
- return { value: null, done: false };
+ return {
+ value: null,
+ done: false
+ };
},
return: function() {
count += 1;
}
};
};
-WeakSet.prototype.add = function() { throw new Test262Error(); };
+WeakSet.prototype.add = function() {
+ throw new Test262Error();
+};
assert.throws(Test262Error, function() {
new WeakSet(iterable);
diff --git a/test/built-ins/WeakSet/name.js b/test/built-ins/WeakSet/name.js
index 9febed308..1fbaa8409 100644
--- a/test/built-ins/WeakSet/name.js
+++ b/test/built-ins/WeakSet/name.js
@@ -12,8 +12,8 @@ includes: [propertyHelper.js]
---*/
assert.sameValue(
- WeakSet.name, 'WeakSet',
- 'The value of `WeakSet.name` is "WeakSet"'
+ WeakSet.name, 'WeakSet',
+ 'The value of `WeakSet.name` is "WeakSet"'
);
verifyNotEnumerable(WeakSet, 'name');
diff --git a/test/built-ins/WeakSet/undefined-newtarget.js b/test/built-ins/WeakSet/undefined-newtarget.js
index 0a3363e2d..eacb101f7 100644
--- a/test/built-ins/WeakSet/undefined-newtarget.js
+++ b/test/built-ins/WeakSet/undefined-newtarget.js
@@ -13,9 +13,9 @@ info: |
---*/
assert.throws(TypeError, function() {
- WeakSet();
+ WeakSet();
});
assert.throws(TypeError, function() {
- WeakSet([]);
+ WeakSet([]);
});
diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.10_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.10_T1.js
index fcd724045..60e1a4bd8 100644
--- a/test/built-ins/decodeURI/S15.1.3.1_A1.10_T1.js
+++ b/test/built-ins/decodeURI/S15.1.3.1_A1.10_T1.js
@@ -13,7 +13,12 @@ description: Complex tests
//CHECK
var result = true;
-var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]];
+var interval = [
+ [0x00, 0x29],
+ [0x40, 0x40],
+ [0x47, 0x60],
+ [0x67, 0xFFFF]
+];
for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.11_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.11_T1.js
index 33fa65d21..fe8b1522c 100644
--- a/test/built-ins/decodeURI/S15.1.3.1_A1.11_T1.js
+++ b/test/built-ins/decodeURI/S15.1.3.1_A1.11_T1.js
@@ -16,7 +16,12 @@ description: >
//CHECK
var result = true;
-var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]];
+var interval = [
+ [0x00, 0x29],
+ [0x40, 0x40],
+ [0x47, 0x60],
+ [0x67, 0xFFFF]
+];
for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.11_T2.js b/test/built-ins/decodeURI/S15.1.3.1_A1.11_T2.js
index 9752e4298..20ed6651e 100644
--- a/test/built-ins/decodeURI/S15.1.3.1_A1.11_T2.js
+++ b/test/built-ins/decodeURI/S15.1.3.1_A1.11_T2.js
@@ -16,7 +16,12 @@ description: >
//CHECK
var result = true;
-var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]];
+var interval = [
+ [0x00, 0x29],
+ [0x40, 0x40],
+ [0x47, 0x60],
+ [0x67, 0xFFFF]
+];
for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T1.js
index 8c8e4e824..ef1bd2624 100644
--- a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T1.js
+++ b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T1.js
@@ -17,7 +17,12 @@ description: >
//CHECK
var result = true;
-var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]];
+var interval = [
+ [0x00, 0x29],
+ [0x40, 0x40],
+ [0x47, 0x60],
+ [0x67, 0xFFFF]
+];
for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T2.js b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T2.js
index acb718faf..ffc0a9814 100644
--- a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T2.js
+++ b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T2.js
@@ -17,7 +17,12 @@ description: >
//CHECK
var result = true;
-var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]];
+var interval = [
+ [0x00, 0x29],
+ [0x40, 0x40],
+ [0x47, 0x60],
+ [0x67, 0xFFFF]
+];
for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T3.js b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T3.js
index 226bdb476..f7f0f8d51 100644
--- a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T3.js
+++ b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T3.js
@@ -17,7 +17,12 @@ description: >
//CHECK
var result = true;
-var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]];
+var interval = [
+ [0x00, 0x29],
+ [0x40, 0x40],
+ [0x47, 0x60],
+ [0x67, 0xFFFF]
+];
for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.1_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.1_T1.js
index 2ee47854c..6905a3853 100644
--- a/test/built-ins/decodeURI/S15.1.3.1_A1.1_T1.js
+++ b/test/built-ins/decodeURI/S15.1.3.1_A1.1_T1.js
@@ -15,7 +15,7 @@ var result = true;
try {
decodeURI("%");
result = false;
-} catch(e) {
+} catch (e) {
if ((e instanceof URIError) !== true) {
result = false;
}
@@ -25,7 +25,7 @@ try {
try {
decodeURI("%A");
result = false;
-} catch(e) {
+} catch (e) {
if ((e instanceof URIError) !== true) {
result = false;
}
@@ -35,7 +35,7 @@ try {
try {
decodeURI("%1");
result = false;
-} catch(e) {
+} catch (e) {
if ((e instanceof URIError) !== true) {
result = false;
}
@@ -45,7 +45,7 @@ try {
try {
decodeURI("% ");
result = false;
-} catch(e) {
+} catch (e) {
if ((e instanceof URIError) !== true) {
result = false;
}
diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.2_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.2_T1.js
index 5a30805bb..5f6354bf6 100644
--- a/test/built-ins/decodeURI/S15.1.3.1_A1.2_T1.js
+++ b/test/built-ins/decodeURI/S15.1.3.1_A1.2_T1.js
@@ -13,7 +13,12 @@ description: Complex tests
//CHECK
var result = true;
-var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]];
+var interval = [
+ [0x00, 0x29],
+ [0x40, 0x40],
+ [0x47, 0x60],
+ [0x67, 0xFFFF]
+];
for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.2_T2.js b/test/built-ins/decodeURI/S15.1.3.1_A1.2_T2.js
index 5944e67bf..234066125 100644
--- a/test/built-ins/decodeURI/S15.1.3.1_A1.2_T2.js
+++ b/test/built-ins/decodeURI/S15.1.3.1_A1.2_T2.js
@@ -13,7 +13,12 @@ description: Complex tests
//CHECK
var result = true;
-var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]];
+var interval = [
+ [0x00, 0x29],
+ [0x40, 0x40],
+ [0x47, 0x60],
+ [0x67, 0xFFFF]
+];
for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
diff --git a/test/built-ins/decodeURI/S15.1.3.1_A2.1_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A2.1_T1.js
index 477ef8460..642313140 100644
--- a/test/built-ins/decodeURI/S15.1.3.1_A2.1_T1.js
+++ b/test/built-ins/decodeURI/S15.1.3.1_A2.1_T1.js
@@ -22,7 +22,7 @@ for (var indexI = 0; indexI <= 65535; indexI++) {
$ERROR('#' + hex + ' ');
errorCount++;
}
- } catch (e){
+ } catch (e) {
$ERROR('#' + hex + ' ');
errorCount++;
}
diff --git a/test/built-ins/decodeURI/S15.1.3.1_A2.2_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A2.2_T1.js
index 71e8c31d4..a609d0114 100644
--- a/test/built-ins/decodeURI/S15.1.3.1_A2.2_T1.js
+++ b/test/built-ins/decodeURI/S15.1.3.1_A2.2_T1.js
@@ -16,36 +16,36 @@ var indexP;
var indexO = 0;
var uriReserved = [";", "/", "?", ":", "@", "&", "=", "+", "$", ","];
l:
-for (var indexB1 = 0x00; indexB1 <= 0x7F; indexB1++) {
- count++;
- var hexB1 = decimalToPercentHexString(indexB1);
- var index = indexB1;
- var hex = String.fromCharCode(index);
- for (var indexC = 0; indexC < uriReserved.length; indexC++) {
- if (hex === uriReserved[indexC]) continue l;
- }
- if (hex === "#") continue;
- if (decodeURI(hexB1) === hex) continue;
+ for (var indexB1 = 0x00; indexB1 <= 0x7F; indexB1++) {
+ count++;
+ var hexB1 = decimalToPercentHexString(indexB1);
+ var index = indexB1;
+ var hex = String.fromCharCode(index);
+ for (var indexC = 0; indexC < uriReserved.length; indexC++) {
+ if (hex === uriReserved[indexC]) continue l;
+ }
+ if (hex === "#") continue;
+ if (decodeURI(hexB1) === hex) continue;
- if (indexO === 0) {
- indexO = index;
- } else {
- if ((index - indexP) !== 1) {
- if ((indexP - indexO) !== 0) {
- var hexP = decimalToHexString(indexP);
- var hexO = decimalToHexString(indexO);
- $ERROR('#' + hexO + '-' + hexP + ' ');
- }
- else {
- var hexP = decimalToHexString(indexP);
- $ERROR('#' + hexP + ' ');
- }
+ if (indexO === 0) {
indexO = index;
+ } else {
+ if ((index - indexP) !== 1) {
+ if ((indexP - indexO) !== 0) {
+ var hexP = decimalToHexString(indexP);
+ var hexO = decimalToHexString(indexO);
+ $ERROR('#' + hexO + '-' + hexP + ' ');
+ }
+ else {
+ var hexP = decimalToHexString(indexP);
+ $ERROR('#' + hexP + ' ');
+ }
+ indexO = index;
+ }
}
+ indexP = index;
+ errorCount++;
}
- indexP = index;
- errorCount++;
-}
if (errorCount > 0) {
if ((indexP - indexO) !== 0) {
diff --git a/test/built-ins/decodeURI/S15.1.3.1_A5.1.js b/test/built-ins/decodeURI/S15.1.3.1_A5.1.js
index a5517ed7e..ccc2da700 100644
--- a/test/built-ins/decodeURI/S15.1.3.1_A5.1.js
+++ b/test/built-ins/decodeURI/S15.1.3.1_A5.1.js
@@ -16,7 +16,7 @@ if (decodeURI.propertyIsEnumerable('length') !== false) {
//CHECK#2
var result = true;
-for (var p in decodeURI){
+for (var p in decodeURI) {
if (p === "length") {
result = false;
}
diff --git a/test/built-ins/decodeURI/S15.1.3.1_A5.5.js b/test/built-ins/decodeURI/S15.1.3.1_A5.5.js
index c088525b2..3d64f22d1 100644
--- a/test/built-ins/decodeURI/S15.1.3.1_A5.5.js
+++ b/test/built-ins/decodeURI/S15.1.3.1_A5.5.js
@@ -16,7 +16,7 @@ if (this.propertyIsEnumerable('decodeURI') !== false) {
//CHECK#2
var result = true;
-for (var p in this){
+for (var p in this) {
if (p === "decodeURI") {
result = false;
}
diff --git a/test/built-ins/decodeURI/S15.1.3.1_A6_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A6_T1.js
index e3789fbdf..216de1349 100644
--- a/test/built-ins/decodeURI/S15.1.3.1_A6_T1.js
+++ b/test/built-ins/decodeURI/S15.1.3.1_A6_T1.js
@@ -10,26 +10,51 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String)
---*/
//CHECK#1
-var object = {valueOf: function() {return "%5E"}};
+var object = {
+ valueOf: function() {
+ return "%5E"
+ }
+};
if (decodeURI(object) !== "[object Object]") {
$ERROR('#1: var object = {valueOf: function() {return "%5E"}}; decodeURI(object) === [object Object]. Actual: ' + (decodeURI(object)));
}
//CHECK#2
-var object = {valueOf: function() {return ""}, toString: function() {return "%5E"}};
+var object = {
+ valueOf: function() {
+ return ""
+ },
+ toString: function() {
+ return "%5E"
+ }
+};
if (decodeURI(object) !== "^") {
$ERROR('#2: var object = {valueOf: function() {return ""}, toString: function() {return "%5E"}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object)));
}
//CHECK#3
-var object = {valueOf: function() {return "%5E"}, toString: function() {return {}}};
+var object = {
+ valueOf: function() {
+ return "%5E"
+ },
+ toString: function() {
+ return {}
+ }
+};
if (decodeURI(object) !== "^") {
$ERROR('#3: var object = {valueOf: function() {return "%5E"}, toString: function() {return {}}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object)));
}
//CHECK#4
try {
- var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}};
+ var object = {
+ valueOf: function() {
+ throw "error"
+ },
+ toString: function() {
+ return "%5E"
+ }
+ };
if (decodeURI(object) !== "^") {
$ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object)));
}
@@ -43,20 +68,38 @@ catch (e) {
}
//CHECK#5
-var object = {toString: function() {return "%5E"}};
+var object = {
+ toString: function() {
+ return "%5E"
+ }
+};
if (decodeURI(object) !== "^") {
$ERROR('#5: var object = {toString: function() {return "%5E"}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object)));
}
//CHECK#6
-var object = {valueOf: function() {return {}}, toString: function() {return "%5E"}}
+var object = {
+ valueOf: function() {
+ return {}
+ },
+ toString: function() {
+ return "%5E"
+ }
+}
if (decodeURI(object) !== "^") {
$ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "%5E"}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object)));
}
//CHECK#7
try {
- var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}};
+ var object = {
+ valueOf: function() {
+ return "%5E"
+ },
+ toString: function() {
+ throw "error"
+ }
+ };
decodeURI(object);
$ERROR('#7.1: var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}}; decodeURI(object) throw "error". Actual: ' + (decodeURI(object)));
}
@@ -68,7 +111,14 @@ catch (e) {
//CHECK#8
try {
- var object = {valueOf: function() {return {}}, toString: function() {return {}}};
+ var object = {
+ valueOf: function() {
+ return {}
+ },
+ toString: function() {
+ return {}
+ }
+ };
decodeURI(object);
$ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; decodeURI(object) throw TypeError. Actual: ' + (decodeURI(object)));
}
diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.10_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.10_T1.js
index a46be4f62..18a31ed6c 100644
--- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.10_T1.js
+++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.10_T1.js
@@ -13,7 +13,12 @@ description: Complex tests
//CHECK
var result = true;
-var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]];
+var interval = [
+ [0x00, 0x29],
+ [0x40, 0x40],
+ [0x47, 0x60],
+ [0x67, 0xFFFF]
+];
for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T1.js
index da331c911..523333d22 100644
--- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T1.js
+++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T1.js
@@ -16,7 +16,12 @@ description: >
//CHECK
var result = true;
-var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]];
+var interval = [
+ [0x00, 0x29],
+ [0x40, 0x40],
+ [0x47, 0x60],
+ [0x67, 0xFFFF]
+];
for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T2.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T2.js
index 1a0c176a4..a28d0d88f 100644
--- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T2.js
+++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T2.js
@@ -16,7 +16,12 @@ description: >
//CHECK
var result = true;
-var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]];
+var interval = [
+ [0x00, 0x29],
+ [0x40, 0x40],
+ [0x47, 0x60],
+ [0x67, 0xFFFF]
+];
for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T1.js
index 4fabab2a7..6cebbac3e 100644
--- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T1.js
+++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T1.js
@@ -17,7 +17,12 @@ description: >
//CHECK
var result = true;
-var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]];
+var interval = [
+ [0x00, 0x29],
+ [0x40, 0x40],
+ [0x47, 0x60],
+ [0x67, 0xFFFF]
+];
for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T2.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T2.js
index dfe26fb48..d0584a7c1 100644
--- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T2.js
+++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T2.js
@@ -17,7 +17,12 @@ description: >
//CHECK
var result = true;
-var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]];
+var interval = [
+ [0x00, 0x29],
+ [0x40, 0x40],
+ [0x47, 0x60],
+ [0x67, 0xFFFF]
+];
for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T3.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T3.js
index 91c59946a..524b484c0 100644
--- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T3.js
+++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T3.js
@@ -17,7 +17,12 @@ description: >
//CHECK
var result = true;
-var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]];
+var interval = [
+ [0x00, 0x29],
+ [0x40, 0x40],
+ [0x47, 0x60],
+ [0x67, 0xFFFF]
+];
for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.1_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.1_T1.js
index 6a072c6ba..8f7812a52 100644
--- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.1_T1.js
+++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.1_T1.js
@@ -15,7 +15,7 @@ var result = true;
try {
decodeURIComponent("%");
result = false;
-} catch(e) {
+} catch (e) {
if ((e instanceof URIError) !== true) {
result = false;
}
@@ -25,7 +25,7 @@ try {
try {
decodeURIComponent("%A");
result = false;
-} catch(e) {
+} catch (e) {
if ((e instanceof URIError) !== true) {
result = false;
}
@@ -35,7 +35,7 @@ try {
try {
decodeURIComponent("%1");
result = false;
-} catch(e) {
+} catch (e) {
if ((e instanceof URIError) !== true) {
result = false;
}
@@ -45,7 +45,7 @@ try {
try {
decodeURIComponent("% ");
result = false;
-} catch(e) {
+} catch (e) {
if ((e instanceof URIError) !== true) {
result = false;
}
diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T1.js
index 32d2f4564..9f02d80e7 100644
--- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T1.js
+++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T1.js
@@ -13,7 +13,12 @@ description: Complex tests
//CHECK
var result = true;
-var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]];
+var interval = [
+ [0x00, 0x29],
+ [0x40, 0x40],
+ [0x47, 0x60],
+ [0x67, 0xFFFF]
+];
for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T2.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T2.js
index f12e15c84..a8710a8c8 100644
--- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T2.js
+++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T2.js
@@ -13,7 +13,12 @@ description: Complex tests
//CHECK
var result = true;
-var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]];
+var interval = [
+ [0x00, 0x29],
+ [0x40, 0x40],
+ [0x47, 0x60],
+ [0x67, 0xFFFF]
+];
for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A2.1_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A2.1_T1.js
index 5ffde47cf..a84fa9b91 100644
--- a/test/built-ins/decodeURIComponent/S15.1.3.2_A2.1_T1.js
+++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A2.1_T1.js
@@ -22,7 +22,7 @@ for (var indexI = 0; indexI <= 65535; indexI++) {
$ERROR('#' + hex + ' ');
errorCount++;
}
- } catch (e){
+ } catch (e) {
$ERROR('#' + hex + ' ');
errorCount++;
}
diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.1.js
index e8d46165b..e2412648c 100644
--- a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.1.js
+++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.1.js
@@ -16,7 +16,7 @@ if (decodeURIComponent.propertyIsEnumerable('length') !== false) {
//CHECK#2
var result = true;
-for (var p in decodeURIComponent){
+for (var p in decodeURIComponent) {
if (p === "length") {
result = false;
}
diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.5.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.5.js
index e01cd5502..376bff510 100644
--- a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.5.js
+++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.5.js
@@ -16,7 +16,7 @@ if (this.propertyIsEnumerable('decodeURIComponent') !== false) {
//CHECK#2
var result = true;
-for (var p in this){
+for (var p in this) {
if (p === "decodeURIComponent") {
result = false;
}
diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A6_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A6_T1.js
index cb27193eb..5717f3f82 100644
--- a/test/built-ins/decodeURIComponent/S15.1.3.2_A6_T1.js
+++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A6_T1.js
@@ -10,26 +10,51 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String)
---*/
//CHECK#1
-var object = {valueOf: function() {return "%5E"}};
+var object = {
+ valueOf: function() {
+ return "%5E"
+ }
+};
if (decodeURIComponent(object) !== "[object Object]") {
$ERROR('#1: var object = {valueOf: function() {return "%5E"}}; decodeURIComponent(object) === [object Object]. Actual: ' + (decodeURIComponent(object)));
}
//CHECK#2
-var object = {valueOf: function() {return ""}, toString: function() {return "%5E"}};
+var object = {
+ valueOf: function() {
+ return ""
+ },
+ toString: function() {
+ return "%5E"
+ }
+};
if (decodeURIComponent(object) !== "^") {
$ERROR('#2: var object = {valueOf: function() {return ""}, toString: function() {return "%5E"}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object)));
}
//CHECK#3
-var object = {valueOf: function() {return "%5E"}, toString: function() {return {}}};
+var object = {
+ valueOf: function() {
+ return "%5E"
+ },
+ toString: function() {
+ return {}
+ }
+};
if (decodeURIComponent(object) !== "^") {
$ERROR('#3: var object = {valueOf: function() {return "%5E"}, toString: function() {return {}}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object)));
}
//CHECK#4
try {
- var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}};
+ var object = {
+ valueOf: function() {
+ throw "error"
+ },
+ toString: function() {
+ return "%5E"
+ }
+ };
if (decodeURIComponent(object) !== "^") {
$ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object)));
}
@@ -43,20 +68,38 @@ catch (e) {
}
//CHECK#5
-var object = {toString: function() {return "%5E"}};
+var object = {
+ toString: function() {
+ return "%5E"
+ }
+};
if (decodeURIComponent(object) !== "^") {
$ERROR('#5: var object = {toString: function() {return "%5E"}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object)));
}
//CHECK#6
-var object = {valueOf: function() {return {}}, toString: function() {return "%5E"}}
+var object = {
+ valueOf: function() {
+ return {}
+ },
+ toString: function() {
+ return "%5E"
+ }
+}
if (decodeURIComponent(object) !== "^") {
$ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "%5E"}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object)));
}
//CHECK#7
try {
- var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}};
+ var object = {
+ valueOf: function() {
+ return "%5E"
+ },
+ toString: function() {
+ throw "error"
+ }
+ };
decodeURIComponent(object);
$ERROR('#7.1: var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}}; decodeURIComponent(object) throw "error". Actual: ' + (decodeURIComponent(object)));
}
@@ -68,7 +111,14 @@ catch (e) {
//CHECK#8
try {
- var object = {valueOf: function() {return {}}, toString: function() {return {}}};
+ var object = {
+ valueOf: function() {
+ return {}
+ },
+ toString: function() {
+ return {}
+ }
+ };
decodeURIComponent(object);
$ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; decodeURIComponent(object) throw TypeError. Actual: ' + (decodeURIComponent(object)));
}
diff --git a/test/built-ins/encodeURI/S15.1.3.3_A2.1_T1.js b/test/built-ins/encodeURI/S15.1.3.3_A2.1_T1.js
index 4b8dbcca1..adc678581 100644
--- a/test/built-ins/encodeURI/S15.1.3.3_A2.1_T1.js
+++ b/test/built-ins/encodeURI/S15.1.3.3_A2.1_T1.js
@@ -19,38 +19,38 @@ var count = 0;
var indexP;
var indexO = 0;
-l :
-for (var index = 0x0000; index <= 0x007F; index++) {
- count++;
- var str = String.fromCharCode(index);
- for (var indexC = 0; indexC < uriReserved.length; indexC++) {
- if (uriReserved[indexC] === str) continue l;
- }
- for (indexC = 0; indexC < uriUnescaped.length; indexC++) {
- if (uriUnescaped[indexC] === str) continue l;
- }
- if ("#" === str) continue l;
- if (encodeURI(str).toUpperCase() === decimalToPercentHexString(index)) continue l;
+l:
+ for (var index = 0x0000; index <= 0x007F; index++) {
+ count++;
+ var str = String.fromCharCode(index);
+ for (var indexC = 0; indexC < uriReserved.length; indexC++) {
+ if (uriReserved[indexC] === str) continue l;
+ }
+ for (indexC = 0; indexC < uriUnescaped.length; indexC++) {
+ if (uriUnescaped[indexC] === str) continue l;
+ }
+ if ("#" === str) continue l;
+ if (encodeURI(str).toUpperCase() === decimalToPercentHexString(index)) continue l;
- if (indexO === 0) {
- indexO = index;
- } else {
- if ((index - indexP) !== 1) {
- if ((indexP - indexO) !== 0) {
- var hexP = decimalToHexString(indexP);
- var hexO = decimalToHexString(indexO);
- $ERROR('#' + hexO + '-' + hexP + ' ');
- }
- else {
- var hexP = decimalToHexString(indexP);
- $ERROR('#' + hexP + ' ');
- }
+ if (indexO === 0) {
indexO = index;
+ } else {
+ if ((index - indexP) !== 1) {
+ if ((indexP - indexO) !== 0) {
+ var hexP = decimalToHexString(indexP);
+ var hexO = decimalToHexString(indexO);
+ $ERROR('#' + hexO + '-' + hexP + ' ');
+ }
+ else {
+ var hexP = decimalToHexString(indexP);
+ $ERROR('#' + hexP + ' ');
+ }
+ indexO = index;
+ }
}
+ indexP = index;
+ errorCount++;
}
- indexP = index;
- errorCount++;
-}
if (errorCount > 0) {
if ((indexP - indexO) !== 0) {
diff --git a/test/built-ins/encodeURI/S15.1.3.3_A2.2_T1.js b/test/built-ins/encodeURI/S15.1.3.3_A2.2_T1.js
index 95460bf13..7dfba5982 100644
--- a/test/built-ins/encodeURI/S15.1.3.3_A2.2_T1.js
+++ b/test/built-ins/encodeURI/S15.1.3.3_A2.2_T1.js
@@ -17,32 +17,32 @@ var count = 0;
var indexP;
var indexO = 0;
l:
-for (var index = 0x0080; index <= 0x07FF; index++) {
- count++;
- var hex1 = decimalToPercentHexString(0x0080 + (index & 0x003F));
- var hex2 = decimalToPercentHexString(0x00C0 + (index & 0x07C0) / 0x0040);
- var str = String.fromCharCode(index);
- if (encodeURI(str).toUpperCase() === hex2 + hex1) continue;
+ for (var index = 0x0080; index <= 0x07FF; index++) {
+ count++;
+ var hex1 = decimalToPercentHexString(0x0080 + (index & 0x003F));
+ var hex2 = decimalToPercentHexString(0x00C0 + (index & 0x07C0) / 0x0040);
+ var str = String.fromCharCode(index);
+ if (encodeURI(str).toUpperCase() === hex2 + hex1) continue;
- if (indexO === 0) {
- indexO = index;
- } else {
- if ((index - indexP) !== 1) {
- if ((indexP - indexO) !== 0) {
- var hexP = decimalToHexString(indexP);
- var hexO = decimalToHexString(indexO);
- $ERROR('#' + hexO + '-' + hexP + ' ');
- }
- else {
- var hexP = decimalToHexString(indexP);
- $ERROR('#' + hexP + ' ');
- }
+ if (indexO === 0) {
indexO = index;
+ } else {
+ if ((index - indexP) !== 1) {
+ if ((indexP - indexO) !== 0) {
+ var hexP = decimalToHexString(indexP);
+ var hexO = decimalToHexString(indexO);
+ $ERROR('#' + hexO + '-' + hexP + ' ');
+ }
+ else {
+ var hexP = decimalToHexString(indexP);
+ $ERROR('#' + hexP + ' ');
+ }
+ indexO = index;
+ }
}
+ indexP = index;
+ errorCount++;
}
- indexP = index;
- errorCount++;
-}
if (errorCount > 0) {
if ((indexP - indexO) !== 0) {
diff --git a/test/built-ins/encodeURI/S15.1.3.3_A5.1.js b/test/built-ins/encodeURI/S15.1.3.3_A5.1.js
index 5dad9e2d7..57fdbecfa 100644
--- a/test/built-ins/encodeURI/S15.1.3.3_A5.1.js
+++ b/test/built-ins/encodeURI/S15.1.3.3_A5.1.js
@@ -16,7 +16,7 @@ if (encodeURI.propertyIsEnumerable('length') !== false) {
//CHECK#2
var result = true;
-for (var p in encodeURI){
+for (var p in encodeURI) {
if (p === "length") {
result = false;
}
diff --git a/test/built-ins/encodeURI/S15.1.3.3_A5.5.js b/test/built-ins/encodeURI/S15.1.3.3_A5.5.js
index 6a99e8337..196f9bab0 100644
--- a/test/built-ins/encodeURI/S15.1.3.3_A5.5.js
+++ b/test/built-ins/encodeURI/S15.1.3.3_A5.5.js
@@ -16,7 +16,7 @@ if (this.propertyIsEnumerable('encodeURI') !== false) {
//CHECK#2
var result = true;
-for (var p in this){
+for (var p in this) {
if (p === "encodeURI") {
result = false;
}
diff --git a/test/built-ins/encodeURI/S15.1.3.3_A6_T1.js b/test/built-ins/encodeURI/S15.1.3.3_A6_T1.js
index 955a4038b..bc7c7fc8e 100644
--- a/test/built-ins/encodeURI/S15.1.3.3_A6_T1.js
+++ b/test/built-ins/encodeURI/S15.1.3.3_A6_T1.js
@@ -10,26 +10,51 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String)
---*/
//CHECK#1
-var object = {valueOf: function() {return "^"}};
+var object = {
+ valueOf: function() {
+ return "^"
+ }
+};
if (encodeURI(object) !== "%5Bobject%20Object%5D") {
$ERROR('#1: var object = {valueOf: function() {return "^"}}; encodeURI(object) === %5Bobject%20Object%5D. Actual: ' + (encodeURI(object)));
}
//CHECK#2
-var object = {valueOf: function() {return ""}, toString: function() {return "^"}};
+var object = {
+ valueOf: function() {
+ return ""
+ },
+ toString: function() {
+ return "^"
+ }
+};
if (encodeURI(object) !== "%5E") {
$ERROR('#2: var object = {valueOf: function() {return ""}, toString: function() {return "^"}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object)));
}
//CHECK#3
-var object = {valueOf: function() {return "^"}, toString: function() {return {}}};
+var object = {
+ valueOf: function() {
+ return "^"
+ },
+ toString: function() {
+ return {}
+ }
+};
if (encodeURI(object) !== "%5E") {
$ERROR('#3: var object = {valueOf: function() {return "^"}, toString: function() {return {}}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object)));
}
//CHECK#4
try {
- var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}};
+ var object = {
+ valueOf: function() {
+ throw "error"
+ },
+ toString: function() {
+ return "^"
+ }
+ };
if (encodeURI(object) !== "%5E") {
$ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object)));
}
@@ -43,20 +68,38 @@ catch (e) {
}
//CHECK#5
-var object = {toString: function() {return "^"}};
+var object = {
+ toString: function() {
+ return "^"
+ }
+};
if (encodeURI(object) !== "%5E") {
$ERROR('#5: var object = {toString: function() {return "^"}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object)));
}
//CHECK#6
-var object = {valueOf: function() {return {}}, toString: function() {return "^"}}
+var object = {
+ valueOf: function() {
+ return {}
+ },
+ toString: function() {
+ return "^"
+ }
+}
if (encodeURI(object) !== "%5E") {
$ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "^"}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object)));
}
//CHECK#7
try {
- var object = {valueOf: function() {return "^"}, toString: function() {throw "error"}};
+ var object = {
+ valueOf: function() {
+ return "^"
+ },
+ toString: function() {
+ throw "error"
+ }
+ };
encodeURI(object);
$ERROR('#7.1: var object = {valueOf: function() {return "^"}, toString: function() {throw "error"}}; encodeURI(object) throw "error". Actual: ' + (encodeURI(object)));
}
@@ -68,7 +111,14 @@ catch (e) {
//CHECK#8
try {
- var object = {valueOf: function() {return {}}, toString: function() {return {}}};
+ var object = {
+ valueOf: function() {
+ return {}
+ },
+ toString: function() {
+ return {}
+ }
+ };
encodeURI(object);
$ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; encodeURI(object) throw TypeError. Actual: ' + (encodeURI(object)));
}
diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.1_T1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.1_T1.js
index 49b3f0d91..1920d60ae 100644
--- a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.1_T1.js
+++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.1_T1.js
@@ -18,34 +18,34 @@ var count = 0;
var indexP;
var indexO = 0;
-l :
-for (var index = 0x0000; index <= 0x007F; index++) {
- count++;
- var str = String.fromCharCode(index);
+l:
+ for (var index = 0x0000; index <= 0x007F; index++) {
+ count++;
+ var str = String.fromCharCode(index);
for (var indexC = 0; indexC < uriUnescaped.length; indexC++) {
- if (uriUnescaped[indexC] === str) continue l;
- }
- if (encodeURIComponent(str).toUpperCase() === decimalToPercentHexString(index)) continue l;
+ if (uriUnescaped[indexC] === str) continue l;
+ }
+ if (encodeURIComponent(str).toUpperCase() === decimalToPercentHexString(index)) continue l;
- if (indexO === 0) {
- indexO = index;
- } else {
- if ((index - indexP) !== 1) {
- if ((indexP - indexO) !== 0) {
- var hexP = decimalToHexString(indexP);
- var hexO = decimalToHexString(indexO);
- $ERROR('#' + hexO + '-' + hexP + ' ');
- }
- else {
- var hexP = decimalToHexString(indexP);
- $ERROR('#' + hexP + ' ');
- }
+ if (indexO === 0) {
indexO = index;
+ } else {
+ if ((index - indexP) !== 1) {
+ if ((indexP - indexO) !== 0) {
+ var hexP = decimalToHexString(indexP);
+ var hexO = decimalToHexString(indexO);
+ $ERROR('#' + hexO + '-' + hexP + ' ');
+ }
+ else {
+ var hexP = decimalToHexString(indexP);
+ $ERROR('#' + hexP + ' ');
+ }
+ indexO = index;
+ }
}
+ indexP = index;
+ errorCount++;
}
- indexP = index;
- errorCount++;
-}
if (errorCount > 0) {
if ((indexP - indexO) !== 0) {
diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.2_T1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.2_T1.js
index fa95eb034..beb7a06df 100644
--- a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.2_T1.js
+++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.2_T1.js
@@ -17,32 +17,32 @@ var count = 0;
var indexP;
var indexO = 0;
l:
-for (var index = 0x0080; index <= 0x07FF; index++) {
- count++;
- var hex1 = decimalToPercentHexString(0x0080 + (index & 0x003F));
- var hex2 = decimalToPercentHexString(0x00C0 + (index & 0x07C0) / 0x0040);
- var str = String.fromCharCode(index);
- if (encodeURIComponent(str).toUpperCase() === hex2 + hex1) continue;
+ for (var index = 0x0080; index <= 0x07FF; index++) {
+ count++;
+ var hex1 = decimalToPercentHexString(0x0080 + (index & 0x003F));
+ var hex2 = decimalToPercentHexString(0x00C0 + (index & 0x07C0) / 0x0040);
+ var str = String.fromCharCode(index);
+ if (encodeURIComponent(str).toUpperCase() === hex2 + hex1) continue;
- if (indexO === 0) {
- indexO = index;
- } else {
- if ((index - indexP) !== 1) {
- if ((indexP - indexO) !== 0) {
- var hexP = decimalToHexString(indexP);
- var hexO = decimalToHexString(indexO);
- $ERROR('#' + hexO + '-' + hexP + ' ');
- }
- else {
- var hexP = decimalToHexString(indexP);
- $ERROR('#' + hexP + ' ');
- }
+ if (indexO === 0) {
indexO = index;
+ } else {
+ if ((index - indexP) !== 1) {
+ if ((indexP - indexO) !== 0) {
+ var hexP = decimalToHexString(indexP);
+ var hexO = decimalToHexString(indexO);
+ $ERROR('#' + hexO + '-' + hexP + ' ');
+ }
+ else {
+ var hexP = decimalToHexString(indexP);
+ $ERROR('#' + hexP + ' ');
+ }
+ indexO = index;
+ }
}
+ indexP = index;
+ errorCount++;
}
- indexP = index;
- errorCount++;
-}
if (errorCount > 0) {
if ((indexP - indexO) !== 0) {
diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.1.js
index 505232e05..04fa7a5f2 100644
--- a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.1.js
+++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.1.js
@@ -16,7 +16,7 @@ if (encodeURIComponent.propertyIsEnumerable('length') !== false) {
//CHECK#2
var result = true;
-for (var p in encodeURIComponent){
+for (var p in encodeURIComponent) {
if (p === "length") {
result = false;
}
diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.5.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.5.js
index 94c2dc87a..c00a36b94 100644
--- a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.5.js
+++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.5.js
@@ -16,7 +16,7 @@ if (this.propertyIsEnumerable('encodeURIComponent') !== false) {
//CHECK#2
var result = true;
-for (var p in this){
+for (var p in this) {
if (p === "encodeURIComponent") {
result = false;
}
diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A6_T1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A6_T1.js
index 2011de0a0..3dca74696 100644
--- a/test/built-ins/encodeURIComponent/S15.1.3.4_A6_T1.js
+++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A6_T1.js
@@ -10,26 +10,51 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String)
---*/
//CHECK#1
-var object = {valueOf: function() {return "^"}};
+var object = {
+ valueOf: function() {
+ return "^"
+ }
+};
if (encodeURIComponent(object) !== "%5Bobject%20Object%5D") {
$ERROR('#1: var object = {valueOf: function() {return "^"}}; encodeURIComponent(object) === %5Bobject%20Object%5D. Actual: ' + (encodeURIComponent(object)));
}
//CHECK#2
-var object = {valueOf: function() {return ""}, toString: function() {return "^"}};
+var object = {
+ valueOf: function() {
+ return ""
+ },
+ toString: function() {
+ return "^"
+ }
+};
if (encodeURIComponent(object) !== "%5E") {
$ERROR('#2: var object = {valueOf: function() {return ""}, toString: function() {return "^"}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object)));
}
//CHECK#3
-var object = {valueOf: function() {return "^"}, toString: function() {return {}}};
+var object = {
+ valueOf: function() {
+ return "^"
+ },
+ toString: function() {
+ return {}
+ }
+};
if (encodeURIComponent(object) !== "%5E") {
$ERROR('#3: var object = {valueOf: function() {return "^"}, toString: function() {return {}}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object)));
}
//CHECK#4
try {
- var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}};
+ var object = {
+ valueOf: function() {
+ throw "error"
+ },
+ toString: function() {
+ return "^"
+ }
+ };
if (encodeURIComponent(object) !== "%5E") {
$ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object)));
}
@@ -43,20 +68,38 @@ catch (e) {
}
//CHECK#5
-var object = {toString: function() {return "^"}};
+var object = {
+ toString: function() {
+ return "^"
+ }
+};
if (encodeURIComponent(object) !== "%5E") {
$ERROR('#5: var object = {toString: function() {return "^"}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object)));
}
//CHECK#6
-var object = {valueOf: function() {return {}}, toString: function() {return "^"}}
+var object = {
+ valueOf: function() {
+ return {}
+ },
+ toString: function() {
+ return "^"
+ }
+}
if (encodeURIComponent(object) !== "%5E") {
$ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "^"}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object)));
}
//CHECK#7
try {
- var object = {valueOf: function() {return "^"}, toString: function() {throw "error"}};
+ var object = {
+ valueOf: function() {
+ return "^"
+ },
+ toString: function() {
+ throw "error"
+ }
+ };
encodeURIComponent(object);
$ERROR('#7.1: var object = {valueOf: function() {return "^"}, toString: function() {throw "error"}}; encodeURIComponent(object) throw "error". Actual: ' + (encodeURIComponent(object)));
}
@@ -68,7 +111,14 @@ catch (e) {
//CHECK#8
try {
- var object = {valueOf: function() {return {}}, toString: function() {return {}}};
+ var object = {
+ valueOf: function() {
+ return {}
+ },
+ toString: function() {
+ return {}
+ }
+ };
encodeURIComponent(object);
$ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; encodeURIComponent(object) throw TypeError. Actual: ' + (encodeURIComponent(object)));
}
diff --git a/test/built-ins/eval/length-enumerable.js b/test/built-ins/eval/length-enumerable.js
index 4cc4fb6a8..97ac7252c 100644
--- a/test/built-ins/eval/length-enumerable.js
+++ b/test/built-ins/eval/length-enumerable.js
@@ -16,7 +16,7 @@ if (eval.propertyIsEnumerable('length') !== false) {
//CHECK#2
var result = true;
-for (p in eval){
+for (p in eval) {
if (p === "length") {
result = false;
}
diff --git a/test/built-ins/eval/prop-desc-enumerable.js b/test/built-ins/eval/prop-desc-enumerable.js
index 6e93567b3..c1748605b 100644
--- a/test/built-ins/eval/prop-desc-enumerable.js
+++ b/test/built-ins/eval/prop-desc-enumerable.js
@@ -16,7 +16,7 @@ if (this.propertyIsEnumerable('eval') !== false) {
//CHECK#2
var result = true;
-for (var p in this){
+for (var p in this) {
if (p === "eval") {
result = false;
}
diff --git a/test/built-ins/global/10.2.1.1.3-4-16-s.js b/test/built-ins/global/10.2.1.1.3-4-16-s.js
index b5cf69ff5..0ef1eb17f 100644
--- a/test/built-ins/global/10.2.1.1.3-4-16-s.js
+++ b/test/built-ins/global/10.2.1.1.3-4-16-s.js
@@ -11,5 +11,5 @@ flags: [onlyStrict]
assert.throws(TypeError, function() {
- NaN = 12;
+ NaN = 12;
});
diff --git a/test/built-ins/global/10.2.1.1.3-4-18-s.js b/test/built-ins/global/10.2.1.1.3-4-18-s.js
index 6a3e87eaa..507e07e5f 100644
--- a/test/built-ins/global/10.2.1.1.3-4-18-s.js
+++ b/test/built-ins/global/10.2.1.1.3-4-18-s.js
@@ -11,5 +11,5 @@ flags: [onlyStrict]
assert.throws(TypeError, function() {
- undefined = 12;
+ undefined = 12;
});
diff --git a/test/built-ins/global/10.2.1.1.3-4-22-s.js b/test/built-ins/global/10.2.1.1.3-4-22-s.js
index bda9016fd..6bcae2396 100644
--- a/test/built-ins/global/10.2.1.1.3-4-22-s.js
+++ b/test/built-ins/global/10.2.1.1.3-4-22-s.js
@@ -10,10 +10,10 @@ description: >
flags: [onlyStrict]
---*/
- var objBak = Object;
+var objBak = Object;
- try {
- Object = 12;
- } finally {
- Object = objBak;
- }
+try {
+ Object = 12;
+} finally {
+ Object = objBak;
+}
diff --git a/test/built-ins/global/10.2.1.1.3-4-27-s.js b/test/built-ins/global/10.2.1.1.3-4-27-s.js
index ec1bc94e7..cb8f60ae4 100644
--- a/test/built-ins/global/10.2.1.1.3-4-27-s.js
+++ b/test/built-ins/global/10.2.1.1.3-4-27-s.js
@@ -10,9 +10,9 @@ description: >
flags: [onlyStrict]
---*/
- var numBak = Number;
- try {
- Number = 12;
- } finally {
- Number = numBak;
- }
+var numBak = Number;
+try {
+ Number = 12;
+} finally {
+ Number = numBak;
+}
diff --git a/test/built-ins/global/S10.2.3_A1.1_T1.js b/test/built-ins/global/S10.2.3_A1.1_T1.js
index 51359c334..44d2fc16c 100644
--- a/test/built-ins/global/S10.2.3_A1.1_T1.js
+++ b/test/built-ins/global/S10.2.3_A1.1_T1.js
@@ -10,16 +10,16 @@ description: Global execution context - Value Properties
---*/
//CHECK#1
-if ( NaN === null ) {
+if (NaN === null) {
$ERROR("#1: NaN === null");
}
//CHECK#2
-if ( Infinity === null ) {
+if (Infinity === null) {
$ERROR("#2: Infinity === null");
}
//CHECK#3
-if ( undefined === null ) {
+if (undefined === null) {
$ERROR("#3: undefined === null");
}
diff --git a/test/built-ins/global/S10.2.3_A1.1_T2.js b/test/built-ins/global/S10.2.3_A1.1_T2.js
index 4e24b9d46..2717f918e 100644
--- a/test/built-ins/global/S10.2.3_A1.1_T2.js
+++ b/test/built-ins/global/S10.2.3_A1.1_T2.js
@@ -10,46 +10,46 @@ description: Global execution context - Function Properties
---*/
//CHECK#4
-if ( eval === null ) {
+if (eval === null) {
$ERROR("#4: eval === null");
}
//CHECK#5
-if ( parseInt === null ) {
+if (parseInt === null) {
$ERROR("#5: parseInt === null");
}
//CHECK#6
-if ( parseFloat === null ) {
+if (parseFloat === null) {
$ERROR("#6: parseFloat === null");
}
//CHECK#7
-if ( isNaN === null ) {
+if (isNaN === null) {
$ERROR("#7: isNaN === null");
}
//CHECK#8
-if ( isFinite === null ) {
+if (isFinite === null) {
$ERROR("#8: isFinite === null");
}
//CHECK#9
-if ( decodeURI === null ) {
+if (decodeURI === null) {
$ERROR("#9: decodeURI === null");
}
//CHECK#10
-if ( decodeURIComponent === null ) {
+if (decodeURIComponent === null) {
$ERROR("#10: decodeURIComponent === null");
}
//CHECK#11
-if ( encodeURI === null ) {
+if (encodeURI === null) {
$ERROR("#11: encodeURI === null");
}
//CHECK#12
-if ( encodeURIComponent === null ) {
+if (encodeURIComponent === null) {
$ERROR("#12: encodeURIComponent === null");
}
diff --git a/test/built-ins/global/S10.2.3_A1.1_T3.js b/test/built-ins/global/S10.2.3_A1.1_T3.js
index 0497a078c..16de4c0eb 100644
--- a/test/built-ins/global/S10.2.3_A1.1_T3.js
+++ b/test/built-ins/global/S10.2.3_A1.1_T3.js
@@ -10,76 +10,76 @@ description: Global execution context - Constructor Properties
---*/
//CHECK#13
-if ( Object === null ) {
+if (Object === null) {
$ERROR("#13: Object === null");
}
//CHECK#14
-if ( Function === null ) {
+if (Function === null) {
$ERROR("#14: Function === null");
}
//CHECK#15
-if ( String === null ) {
+if (String === null) {
$ERROR("#15: String === null");
}
//CHECK#16
-if ( Number === null ) {
+if (Number === null) {
$ERROR("#16: Number === null");
}
//CHECK#17
-if ( Array === null ) {
+if (Array === null) {
$ERROR("#17: Array === null");
}
//CHECK#18
-if ( Boolean === null ) {
+if (Boolean === null) {
$ERROR("#20: Boolean === null");
}
//CHECK#18
-if ( Date === null ) {
+if (Date === null) {
$ERROR("#18: Date === null");
}
//CHECK#19
-if ( RegExp === null ) {
+if (RegExp === null) {
$ERROR("#19: RegExp === null");
}
//CHECK#20
-if ( Error === null ) {
+if (Error === null) {
$ERROR("#20: Error === null");
}
//CHECK#21
-if ( EvalError === null ) {
+if (EvalError === null) {
$ERROR("#21: EvalError === null");
}
//CHECK#22
-if ( RangeError === null ) {
+if (RangeError === null) {
$ERROR("#22: RangeError === null");
}
//CHECK#23
-if ( ReferenceError === null ) {
+if (ReferenceError === null) {
$ERROR("#23: ReferenceError === null");
}
//CHECK#24
-if ( SyntaxError === null ) {
+if (SyntaxError === null) {
$ERROR("#24: SyntaxError === null");
}
//CHECK#25
-if ( TypeError === null ) {
+if (TypeError === null) {
$ERROR("#25: TypeError === null");
}
//CHECK#26
-if ( URIError === null ) {
+if (URIError === null) {
$ERROR("#26: URIError === null");
}
diff --git a/test/built-ins/global/S10.2.3_A1.1_T4.js b/test/built-ins/global/S10.2.3_A1.1_T4.js
index 5f8940512..92f8258e1 100644
--- a/test/built-ins/global/S10.2.3_A1.1_T4.js
+++ b/test/built-ins/global/S10.2.3_A1.1_T4.js
@@ -10,6 +10,6 @@ description: Global execution context - Other Properties
---*/
//CHECK#27
-if ( Math === null ) {
+if (Math === null) {
$ERROR("#27: Math === null");
}
diff --git a/test/built-ins/global/S10.2.3_A1.2_T1.js b/test/built-ins/global/S10.2.3_A1.2_T1.js
index 5652ac2d0..6eac1483d 100644
--- a/test/built-ins/global/S10.2.3_A1.2_T1.js
+++ b/test/built-ins/global/S10.2.3_A1.2_T1.js
@@ -11,17 +11,17 @@ description: Function execution context - Value Properties
function test() {
//CHECK#1
- if ( NaN === null ) {
+ if (NaN === null) {
$ERROR("#1: NaN === null");
}
//CHECK#2
- if ( Infinity === null ) {
+ if (Infinity === null) {
$ERROR("#2: Infinity === null");
}
//CHECK#3
- if ( undefined === null ) {
+ if (undefined === null) {
$ERROR("#3: undefined === null");
}
}
diff --git a/test/built-ins/global/S10.2.3_A1.2_T2.js b/test/built-ins/global/S10.2.3_A1.2_T2.js
index 690f44913..758529a92 100644
--- a/test/built-ins/global/S10.2.3_A1.2_T2.js
+++ b/test/built-ins/global/S10.2.3_A1.2_T2.js
@@ -11,47 +11,47 @@ description: Function execution context - Function Properties
function test() {
//CHECK#4
- if ( eval === null ) {
+ if (eval === null) {
$ERROR("#4: eval === null");
}
//CHECK#5
- if ( parseInt === null ) {
+ if (parseInt === null) {
$ERROR("#5: parseInt === null");
}
//CHECK#6
- if ( parseFloat === null ) {
+ if (parseFloat === null) {
$ERROR("#6: parseFloat === null");
}
//CHECK#7
- if ( isNaN === null ) {
+ if (isNaN === null) {
$ERROR("#7: isNaN === null");
}
//CHECK#8
- if ( isFinite === null ) {
+ if (isFinite === null) {
$ERROR("#8: isFinite === null");
}
//CHECK#9
- if ( decodeURI === null ) {
+ if (decodeURI === null) {
$ERROR("#9: decodeURI === null");
}
//CHECK#10
- if ( decodeURIComponent === null ) {
+ if (decodeURIComponent === null) {
$ERROR("#10: decodeURIComponent === null");
}
//CHECK#11
- if ( encodeURI === null ) {
+ if (encodeURI === null) {
$ERROR("#11: encodeURI === null");
}
//CHECK#12
- if ( encodeURIComponent === null ) {
+ if (encodeURIComponent === null) {
$ERROR("#12: encodeURIComponent === null");
}
}
diff --git a/test/built-ins/global/S10.2.3_A1.2_T3.js b/test/built-ins/global/S10.2.3_A1.2_T3.js
index 2d0c18861..4dce306c2 100644
--- a/test/built-ins/global/S10.2.3_A1.2_T3.js
+++ b/test/built-ins/global/S10.2.3_A1.2_T3.js
@@ -11,77 +11,77 @@ description: Function execution context - Constructor Properties
function test() {
//CHECK#13
- if ( Object === null ) {
+ if (Object === null) {
$ERROR("#13: Object === null");
}
//CHECK#14
- if ( Function === null ) {
+ if (Function === null) {
$ERROR("#14: Function === null");
}
//CHECK#15
- if ( String === null ) {
+ if (String === null) {
$ERROR("#15: String === null");
}
//CHECK#16
- if ( Number === null ) {
+ if (Number === null) {
$ERROR("#16: Function === null");
}
//CHECK#17
- if ( Array === null ) {
+ if (Array === null) {
$ERROR("#17: Array === null");
}
//CHECK#18
- if ( Boolean === null ) {
+ if (Boolean === null) {
$ERROR("#20: Boolean === null");
}
//CHECK#18
- if ( Date === null ) {
+ if (Date === null) {
$ERROR("#18: Date === null");
}
//CHECK#19
- if ( RegExp === null ) {
+ if (RegExp === null) {
$ERROR("#19: RegExp === null");
}
//CHECK#20
- if ( Error === null ) {
+ if (Error === null) {
$ERROR("#20: Error === null");
}
//CHECK#21
- if ( EvalError === null ) {
+ if (EvalError === null) {
$ERROR("#21: EvalError === null");
}
//CHECK#22
- if ( RangeError === null ) {
+ if (RangeError === null) {
$ERROR("#22: RangeError === null");
}
//CHECK#23
- if ( ReferenceError === null ) {
+ if (ReferenceError === null) {
$ERROR("#23: ReferenceError === null");
}
//CHECK#24
- if ( SyntaxError === null ) {
+ if (SyntaxError === null) {
$ERROR("#24: SyntaxError === null");
}
//CHECK#25
- if ( TypeError === null ) {
+ if (TypeError === null) {
$ERROR("#25: TypeError === null");
}
//CHECK#26
- if ( URIError === null ) {
+ if (URIError === null) {
$ERROR("#26: URIError === null");
}
}
diff --git a/test/built-ins/global/S10.2.3_A1.2_T4.js b/test/built-ins/global/S10.2.3_A1.2_T4.js
index 6ee2522bf..3abffff7c 100644
--- a/test/built-ins/global/S10.2.3_A1.2_T4.js
+++ b/test/built-ins/global/S10.2.3_A1.2_T4.js
@@ -11,7 +11,7 @@ description: Function execution context - Other Properties
function test() {
//CHECK#27
- if ( Math === null ) {
+ if (Math === null) {
$ERROR("#27: Math === null");
}
}
diff --git a/test/built-ins/global/S10.2.3_A1.3_T1.js b/test/built-ins/global/S10.2.3_A1.3_T1.js
index 27c8da5cc..366759ceb 100644
--- a/test/built-ins/global/S10.2.3_A1.3_T1.js
+++ b/test/built-ins/global/S10.2.3_A1.3_T1.js
@@ -9,21 +9,21 @@ es5id: 10.2.3_A1.3_T1
description: Eval execution context - Value Properties
---*/
-var evalStr =
-'//CHECK#1\n'+
-'if ( NaN === null ) {\n'+
-' $ERROR("#1: NaN === null");\n'+
-'}\n'+
+var evalStr =
+ '//CHECK#1\n' +
+ 'if ( NaN === null ) {\n' +
+ ' $ERROR("#1: NaN === null");\n' +
+ '}\n' +
-'//CHECK#2\n'+
-'if ( Infinity === null ) {\n'+
-' $ERROR("#2: Infinity === null");\n'+
-'}\n'+
+ '//CHECK#2\n' +
+ 'if ( Infinity === null ) {\n' +
+ ' $ERROR("#2: Infinity === null");\n' +
+ '}\n' +
-'//CHECK#3\n'+
-'if ( undefined === null ) {\n'+
-' $ERROR("#3: undefined === null");\n'+
-'}\n'+
-';\n';
+ '//CHECK#3\n' +
+ 'if ( undefined === null ) {\n' +
+ ' $ERROR("#3: undefined === null");\n' +
+ '}\n' +
+ ';\n';
eval(evalStr);
diff --git a/test/built-ins/global/S10.2.3_A1.3_T2.js b/test/built-ins/global/S10.2.3_A1.3_T2.js
index 80f2386eb..2fbeaf9c0 100644
--- a/test/built-ins/global/S10.2.3_A1.3_T2.js
+++ b/test/built-ins/global/S10.2.3_A1.3_T2.js
@@ -9,51 +9,51 @@ es5id: 10.2.3_A1.3_T2
description: Eval execution context - Function Properties
---*/
-var evalStr =
-'//CHECK#4\n'+
-'if ( eval === null ) {\n'+
-' $ERROR("#4: eval === null");\n'+
-'}\n'+
-
-'//CHECK#5\n'+
-'if ( parseInt === null ) {\n'+
-' $ERROR("#5: parseInt === null");\n'+
-'}\n'+
-
-'//CHECK#6\n'+
-'if ( parseFloat === null ) {\n'+
-' $ERROR("#6: parseFloat === null");\n'+
-'}\n'+
-
-'//CHECK#7\n'+
-'if ( isNaN === null ) {\n'+
-' $ERROR("#7: isNaN === null");\n'+
-'}\n'+
-
-'//CHECK#8\n'+
-'if ( isFinite === null ) {\n'+
-' $ERROR("#8: isFinite === null");\n'+
-'}\n'+
-
-'//CHECK#9\n'+
-'if ( decodeURI === null ) {\n'+
-' $ERROR("#9: decodeURI === null");\n'+
-'}\n'+
-
-'//CHECK#10\n'+
-'if ( decodeURIComponent === null ) {\n'+
-' $ERROR("#10: decodeURIComponent === null");\n'+
-'}\n'+
-
-'//CHECK#11\n'+
-'if ( encodeURI === null ) {\n'+
-' $ERROR("#11: encodeURI === null");\n'+
-'}\n'+
-
-'//CHECK#12\n'+
-'if ( encodeURIComponent === null ) {\n'+
-' $ERROR("#12: encodeURIComponent === null");\n'+
-'}\n'+
-';\n';
+var evalStr =
+ '//CHECK#4\n' +
+ 'if ( eval === null ) {\n' +
+ ' $ERROR("#4: eval === null");\n' +
+ '}\n' +
+
+ '//CHECK#5\n' +
+ 'if ( parseInt === null ) {\n' +
+ ' $ERROR("#5: parseInt === null");\n' +
+ '}\n' +
+
+ '//CHECK#6\n' +
+ 'if ( parseFloat === null ) {\n' +
+ ' $ERROR("#6: parseFloat === null");\n' +
+ '}\n' +
+
+ '//CHECK#7\n' +
+ 'if ( isNaN === null ) {\n' +
+ ' $ERROR("#7: isNaN === null");\n' +
+ '}\n' +
+
+ '//CHECK#8\n' +
+ 'if ( isFinite === null ) {\n' +
+ ' $ERROR("#8: isFinite === null");\n' +
+ '}\n' +
+
+ '//CHECK#9\n' +
+ 'if ( decodeURI === null ) {\n' +
+ ' $ERROR("#9: decodeURI === null");\n' +
+ '}\n' +
+
+ '//CHECK#10\n' +
+ 'if ( decodeURIComponent === null ) {\n' +
+ ' $ERROR("#10: decodeURIComponent === null");\n' +
+ '}\n' +
+
+ '//CHECK#11\n' +
+ 'if ( encodeURI === null ) {\n' +
+ ' $ERROR("#11: encodeURI === null");\n' +
+ '}\n' +
+
+ '//CHECK#12\n' +
+ 'if ( encodeURIComponent === null ) {\n' +
+ ' $ERROR("#12: encodeURIComponent === null");\n' +
+ '}\n' +
+ ';\n';
eval(evalStr);
diff --git a/test/built-ins/global/S10.2.3_A1.3_T3.js b/test/built-ins/global/S10.2.3_A1.3_T3.js
index f52c65f62..b5fdc2cb2 100644
--- a/test/built-ins/global/S10.2.3_A1.3_T3.js
+++ b/test/built-ins/global/S10.2.3_A1.3_T3.js
@@ -9,81 +9,81 @@ es5id: 10.2.3_A1.3_T3
description: Eval execution context - Constructor Properties
---*/
-var evalStr =
-'//CHECK#13\n'+
-'if ( Object === null ) {\n'+
-' $ERROR("#13: Object === null");\n'+
-'}\n'+
-
-'//CHECK#14\n'+
-'if ( Function === null ) {\n'+
-' $ERROR("#14: Function === null");\n'+
-'}\n'+
-
-'//CHECK#15\n'+
-'if ( String === null ) {\n'+
-' $ERROR("#15: String === null");\n'+
-'}\n'+
-
-'//CHECK#16\n'+
-'if ( Number === null ) {\n'+
-' $ERROR("#16: Function === null");\n'+
-'}\n'+
-
-'//CHECK#17\n'+
-'if ( Array === null ) {\n'+
-' $ERROR("#17: Array === null");\n'+
-'}\n'+
-
-'//CHECK#18\n'+
-'if ( Boolean === null ) {\n'+
-' $ERROR("#20: Boolean === null");\n'+
-'}\n'+
-
-'//CHECK#18\n'+
-'if ( Date === null ) {\n'+
-' $ERROR("#18: Date === null");\n'+
-'}\n'+
-
-'//CHECK#19\n'+
-'if ( RegExp === null ) {\n'+
-' $ERROR("#19: RegExp === null");\n'+
-'}\n'+
-
-'//CHECK#20\n'+
-'if ( Error === null ) {\n'+
-' $ERROR("#20: Error === null");\n'+
-'}\n'+
-
-'//CHECK#21\n'+
-'if ( EvalError === null ) {\n'+
-' $ERROR("#21: EvalError === null");\n'+
-'}\n'+
-
-'//CHECK#22\n'+
-'if ( RangeError === null ) {\n'+
-' $ERROR("#22: RangeError === null");\n'+
-'}\n'+
-
-'//CHECK#23\n'+
-'if ( ReferenceError === null ) {\n'+
-' $ERROR("#23: ReferenceError === null");\n'+
-'}\n'+
-
-'//CHECK#24\n'+
-'if ( SyntaxError === null ) {\n'+
-' $ERROR("#24: SyntaxError === null");\n'+
-'}\n'+
-
-'//CHECK#25\n'+
-'if ( TypeError === null ) {\n'+
-' $ERROR("#25: TypeError === null");\n'+
-'}\n'+
-
-'//CHECK#26\n'+
-'if ( URIError === null ) {\n'+
-' $ERROR("#26: URIError === null");\n'+
-'}\n'+
-';\n';
+var evalStr =
+ '//CHECK#13\n' +
+ 'if ( Object === null ) {\n' +
+ ' $ERROR("#13: Object === null");\n' +
+ '}\n' +
+
+ '//CHECK#14\n' +
+ 'if ( Function === null ) {\n' +
+ ' $ERROR("#14: Function === null");\n' +
+ '}\n' +
+
+ '//CHECK#15\n' +
+ 'if ( String === null ) {\n' +
+ ' $ERROR("#15: String === null");\n' +
+ '}\n' +
+
+ '//CHECK#16\n' +
+ 'if ( Number === null ) {\n' +
+ ' $ERROR("#16: Function === null");\n' +
+ '}\n' +
+
+ '//CHECK#17\n' +
+ 'if ( Array === null ) {\n' +
+ ' $ERROR("#17: Array === null");\n' +
+ '}\n' +
+
+ '//CHECK#18\n' +
+ 'if ( Boolean === null ) {\n' +
+ ' $ERROR("#20: Boolean === null");\n' +
+ '}\n' +
+
+ '//CHECK#18\n' +
+ 'if ( Date === null ) {\n' +
+ ' $ERROR("#18: Date === null");\n' +
+ '}\n' +
+
+ '//CHECK#19\n' +
+ 'if ( RegExp === null ) {\n' +
+ ' $ERROR("#19: RegExp === null");\n' +
+ '}\n' +
+
+ '//CHECK#20\n' +
+ 'if ( Error === null ) {\n' +
+ ' $ERROR("#20: Error === null");\n' +
+ '}\n' +
+
+ '//CHECK#21\n' +
+ 'if ( EvalError === null ) {\n' +
+ ' $ERROR("#21: EvalError === null");\n' +
+ '}\n' +
+
+ '//CHECK#22\n' +
+ 'if ( RangeError === null ) {\n' +
+ ' $ERROR("#22: RangeError === null");\n' +
+ '}\n' +
+
+ '//CHECK#23\n' +
+ 'if ( ReferenceError === null ) {\n' +
+ ' $ERROR("#23: ReferenceError === null");\n' +
+ '}\n' +
+
+ '//CHECK#24\n' +
+ 'if ( SyntaxError === null ) {\n' +
+ ' $ERROR("#24: SyntaxError === null");\n' +
+ '}\n' +
+
+ '//CHECK#25\n' +
+ 'if ( TypeError === null ) {\n' +
+ ' $ERROR("#25: TypeError === null");\n' +
+ '}\n' +
+
+ '//CHECK#26\n' +
+ 'if ( URIError === null ) {\n' +
+ ' $ERROR("#26: URIError === null");\n' +
+ '}\n' +
+ ';\n';
eval(evalStr);
diff --git a/test/built-ins/global/S10.2.3_A1.3_T4.js b/test/built-ins/global/S10.2.3_A1.3_T4.js
index bdfb2dcfd..9dc8843d5 100644
--- a/test/built-ins/global/S10.2.3_A1.3_T4.js
+++ b/test/built-ins/global/S10.2.3_A1.3_T4.js
@@ -9,11 +9,11 @@ es5id: 10.2.3_A1.3_T4
description: Eval execution context - Other Properties
---*/
-var evalStr =
-'//CHECK#27\n'+
-'if ( Math === null ) {\n'+
-' $ERROR("#27: Math === null");\n'+
-'}\n'+
-';\n';
+var evalStr =
+ '//CHECK#27\n' +
+ 'if ( Math === null ) {\n' +
+ ' $ERROR("#27: Math === null");\n' +
+ '}\n' +
+ ';\n';
eval(evalStr);
diff --git a/test/built-ins/global/S10.2.3_A2.1_T1.js b/test/built-ins/global/S10.2.3_A2.1_T1.js
index 195ca44b7..ccde02b7f 100644
--- a/test/built-ins/global/S10.2.3_A2.1_T1.js
+++ b/test/built-ins/global/S10.2.3_A2.1_T1.js
@@ -9,11 +9,11 @@ description: Global execution context - Value Properties
//CHECK#1
for (var x in this) {
- if ( x === 'NaN' ) {
+ if (x === 'NaN') {
$ERROR("#1: 'NaN' have attribute DontEnum");
- } else if ( x === 'Infinity' ) {
+ } else if (x === 'Infinity') {
$ERROR("#1: 'Infinity' have attribute DontEnum");
- } else if ( x === 'undefined' ) {
+ } else if (x === 'undefined') {
$ERROR("#1: 'undefined' have attribute DontEnum");
- }
+ }
}
diff --git a/test/built-ins/global/S10.2.3_A2.1_T2.js b/test/built-ins/global/S10.2.3_A2.1_T2.js
index c2d4f98a4..07c20cb74 100644
--- a/test/built-ins/global/S10.2.3_A2.1_T2.js
+++ b/test/built-ins/global/S10.2.3_A2.1_T2.js
@@ -9,23 +9,23 @@ description: Global execution context - Function Properties
//CHECK#1
for (var x in this) {
- if ( x === 'eval' ) {
+ if (x === 'eval') {
$ERROR("#1: 'eval' have attribute DontEnum");
- } else if ( x === 'parseInt' ) {
+ } else if (x === 'parseInt') {
$ERROR("#1: 'parseInt' have attribute DontEnum");
- } else if ( x === 'parseFloat' ) {
+ } else if (x === 'parseFloat') {
$ERROR("#1: 'parseFloat' have attribute DontEnum");
- } else if ( x === 'isNaN' ) {
+ } else if (x === 'isNaN') {
$ERROR("#1: 'isNaN' have attribute DontEnum");
- } else if ( x === 'isFinite' ) {
+ } else if (x === 'isFinite') {
$ERROR("#1: 'isFinite' have attribute DontEnum");
- } else if ( x === 'decodeURI' ) {
+ } else if (x === 'decodeURI') {
$ERROR("#1: 'decodeURI' have attribute DontEnum");
- } else if ( x === 'decodeURIComponent' ) {
+ } else if (x === 'decodeURIComponent') {
$ERROR("#1: 'decodeURIComponent' have attribute DontEnum");
- } else if ( x === 'encodeURI' ) {
+ } else if (x === 'encodeURI') {
$ERROR("#1: 'encodeURI' have attribute DontEnum");
- } else if ( x === 'encodeURIComponent' ) {
+ } else if (x === 'encodeURIComponent') {
$ERROR("#1: 'encodeURIComponent' have attribute DontEnum");
- }
+ }
}
diff --git a/test/built-ins/global/S10.2.3_A2.1_T3.js b/test/built-ins/global/S10.2.3_A2.1_T3.js
index d011b2a39..9cc1fa88f 100644
--- a/test/built-ins/global/S10.2.3_A2.1_T3.js
+++ b/test/built-ins/global/S10.2.3_A2.1_T3.js
@@ -9,35 +9,35 @@ description: Global execution context - Constructor Properties
//CHECK#1
for (var x in this) {
- if ( x === 'Object' ) {
+ if (x === 'Object') {
$ERROR("#1: 'property 'Object' have attribute DontEnum");
- } else if ( x === 'Function') {
+ } else if (x === 'Function') {
$ERROR("#1: 'Function' have attribute DontEnum");
- } else if ( x === 'String' ) {
+ } else if (x === 'String') {
$ERROR("#1: 'String' have attribute DontEnum");
- } else if ( x === 'Number' ) {
+ } else if (x === 'Number') {
$ERROR("#1: 'Number' have attribute DontEnum");
- } else if ( x === 'Array' ) {
+ } else if (x === 'Array') {
$ERROR("#1: 'Array' have attribute DontEnum");
- } else if ( x === 'Boolean' ) {
+ } else if (x === 'Boolean') {
$ERROR("#1: 'Boolean' have attribute DontEnum");
- } else if ( x === 'Date' ) {
+ } else if (x === 'Date') {
$ERROR("#1: 'Date' have attribute DontEnum");
- } else if ( x === 'RegExp' ) {
+ } else if (x === 'RegExp') {
$ERROR("#1: 'RegExp' have attribute DontEnum");
- } else if ( x === 'Error' ) {
+ } else if (x === 'Error') {
$ERROR("#1: 'Error' have attribute DontEnum");
- } else if ( x === 'EvalError' ) {
+ } else if (x === 'EvalError') {
$ERROR("#1: 'EvalError' have attribute DontEnum");
- } else if ( x === 'RangeError' ) {
+ } else if (x === 'RangeError') {
$ERROR("#1: 'RangeError' have attribute DontEnum");
- } else if ( x === 'ReferenceError' ) {
+ } else if (x === 'ReferenceError') {
$ERROR("#1: 'ReferenceError' have attribute DontEnum");
- } else if ( x === 'SyntaxError' ) {
+ } else if (x === 'SyntaxError') {
$ERROR("#1: 'SyntaxError' have attribute DontEnum");
- } else if ( x === 'TypeError' ) {
+ } else if (x === 'TypeError') {
$ERROR("#1: 'TypeError' have attribute DontEnum");
- } else if ( x === 'URIError' ) {
+ } else if (x === 'URIError') {
$ERROR("#1: 'URIError' have attribute DontEnum");
}
}
diff --git a/test/built-ins/global/S10.2.3_A2.1_T4.js b/test/built-ins/global/S10.2.3_A2.1_T4.js
index 9dbb49b35..e14c7b111 100644
--- a/test/built-ins/global/S10.2.3_A2.1_T4.js
+++ b/test/built-ins/global/S10.2.3_A2.1_T4.js
@@ -9,7 +9,7 @@ description: Global execution context - Other Properties
//CHECK#1
for (var x in this) {
- if ( x === 'Math' ) {
+ if (x === 'Math') {
$ERROR("#1: 'Math' have attribute DontEnum");
}
}
diff --git a/test/built-ins/global/S10.2.3_A2.2_T1.js b/test/built-ins/global/S10.2.3_A2.2_T1.js
index 7de8a86ae..427a4bcf5 100644
--- a/test/built-ins/global/S10.2.3_A2.2_T1.js
+++ b/test/built-ins/global/S10.2.3_A2.2_T1.js
@@ -11,13 +11,13 @@ flags: [noStrict]
function test() {
//CHECK#1
for (var x in this) {
- if ( x === 'NaN' ) {
+ if (x === 'NaN') {
$ERROR("#1: 'NaN' have attribute DontEnum");
- } else if ( x === 'Infinity' ) {
+ } else if (x === 'Infinity') {
$ERROR("#1: 'Infinity' have attribute DontEnum");
- } else if ( x === 'undefined' ) {
+ } else if (x === 'undefined') {
$ERROR("#1: 'undefined' have attribute DontEnum");
- }
+ }
}
}
diff --git a/test/built-ins/global/S10.2.3_A2.2_T2.js b/test/built-ins/global/S10.2.3_A2.2_T2.js
index ee07c7359..1a7ca5862 100644
--- a/test/built-ins/global/S10.2.3_A2.2_T2.js
+++ b/test/built-ins/global/S10.2.3_A2.2_T2.js
@@ -11,25 +11,25 @@ flags: [noStrict]
function test() {
//CHECK#1
for (var x in this) {
- if ( x === 'eval' ) {
+ if (x === 'eval') {
$ERROR("#1: 'eval' have attribute DontEnum");
- } else if ( x === 'parseInt' ) {
+ } else if (x === 'parseInt') {
$ERROR("#1: 'parseInt' have attribute DontEnum");
- } else if ( x === 'parseFloat' ) {
+ } else if (x === 'parseFloat') {
$ERROR("#1: 'parseFloat' have attribute DontEnum");
- } else if ( x === 'isNaN' ) {
+ } else if (x === 'isNaN') {
$ERROR("#1: 'isNaN' have attribute DontEnum");
- } else if ( x === 'isFinite' ) {
+ } else if (x === 'isFinite') {
$ERROR("#1: 'isFinite' have attribute DontEnum");
- } else if ( x === 'decodeURI' ) {
+ } else if (x === 'decodeURI') {
$ERROR("#1: 'decodeURI' have attribute DontEnum");
- } else if ( x === 'decodeURIComponent' ) {
+ } else if (x === 'decodeURIComponent') {
$ERROR("#1: 'decodeURIComponent' have attribute DontEnum");
- } else if ( x === 'encodeURI' ) {
+ } else if (x === 'encodeURI') {
$ERROR("#1: 'encodeURI' have attribute DontEnum");
- } else if ( x === 'encodeURIComponent' ) {
+ } else if (x === 'encodeURIComponent') {
$ERROR("#1: 'encodeURIComponent' have attribute DontEnum");
- }
+ }
}
}
diff --git a/test/built-ins/global/S10.2.3_A2.2_T3.js b/test/built-ins/global/S10.2.3_A2.2_T3.js
index ec0482d2a..ee17f77c4 100644
--- a/test/built-ins/global/S10.2.3_A2.2_T3.js
+++ b/test/built-ins/global/S10.2.3_A2.2_T3.js
@@ -11,37 +11,37 @@ flags: [noStrict]
function test() {
//CHECK#1
for (var x in this) {
- if ( x === 'Object' ) {
+ if (x === 'Object') {
$ERROR("#1: 'property 'Object' have attribute DontEnum");
- } else if ( x === 'Function') {
+ } else if (x === 'Function') {
$ERROR("#1: 'Function' have attribute DontEnum");
- } else if ( x === 'String' ) {
+ } else if (x === 'String') {
$ERROR("#1: 'String' have attribute DontEnum");
- } else if ( x === 'Number' ) {
+ } else if (x === 'Number') {
$ERROR("#1: 'Number' have attribute DontEnum");
- } else if ( x === 'Array' ) {
+ } else if (x === 'Array') {
$ERROR("#1: 'Array' have attribute DontEnum");
- } else if ( x === 'Boolean' ) {
+ } else if (x === 'Boolean') {
$ERROR("#1: 'Boolean' have attribute DontEnum");
- } else if ( x === 'Date' ) {
+ } else if (x === 'Date') {
$ERROR("#1: 'Date' have attribute DontEnum");
- } else if ( x === 'RegExp' ) {
+ } else if (x === 'RegExp') {
$ERROR("#1: 'RegExp' have attribute DontEnum");
- } else if ( x === 'Error' ) {
+ } else if (x === 'Error') {
$ERROR("#1: 'Error' have attribute DontEnum");
- } else if ( x === 'EvalError' ) {
+ } else if (x === 'EvalError') {
$ERROR("#1: 'EvalError' have attribute DontEnum");
- } else if ( x === 'RangeError' ) {
+ } else if (x === 'RangeError') {
$ERROR("#1: 'RangeError' have attribute DontEnum");
- } else if ( x === 'ReferenceError' ) {
+ } else if (x === 'ReferenceError') {
$ERROR("#1: 'ReferenceError' have attribute DontEnum");
- } else if ( x === 'SyntaxError' ) {
+ } else if (x === 'SyntaxError') {
$ERROR("#1: 'SyntaxError' have attribute DontEnum");
- } else if ( x === 'TypeError' ) {
+ } else if (x === 'TypeError') {
$ERROR("#1: 'TypeError' have attribute DontEnum");
- } else if ( x === 'URIError' ) {
+ } else if (x === 'URIError') {
$ERROR("#1: 'URIError' have attribute DontEnum");
- }
+ }
}
}
diff --git a/test/built-ins/global/S10.2.3_A2.2_T4.js b/test/built-ins/global/S10.2.3_A2.2_T4.js
index 4a3c5517f..4c61acec8 100644
--- a/test/built-ins/global/S10.2.3_A2.2_T4.js
+++ b/test/built-ins/global/S10.2.3_A2.2_T4.js
@@ -11,7 +11,7 @@ flags: [noStrict]
function test() {
//CHECK#1
for (var x in this) {
- if ( x === 'Math' ) {
+ if (x === 'Math') {
$ERROR("#1: 'Math' have attribute DontEnum");
}
}
diff --git a/test/built-ins/global/S10.2.3_A2.3_T1.js b/test/built-ins/global/S10.2.3_A2.3_T1.js
index 1bdf92179..aa5078240 100644
--- a/test/built-ins/global/S10.2.3_A2.3_T1.js
+++ b/test/built-ins/global/S10.2.3_A2.3_T1.js
@@ -7,16 +7,16 @@ es5id: 10.2.3_A2.3_T1
description: Global execution context - Value Properties
---*/
-var evalStr =
-'//CHECK#1\n'+
-'for (var x in this) {\n'+
-' if ( x === \'NaN\' ) {\n'+
-' $ERROR("#1: \'NaN\' have attribute DontEnum");\n'+
-' } else if ( x === \'Infinity\' ) {\n'+
-' $ERROR("#1: \'Infinity\' have attribute DontEnum");\n'+
-' } else if ( x === \'undefined\' ) {\n'+
-' $ERROR("#1: \'undefined\' have attribute DontEnum");\n'+
-' }\n'+
-'}\n';
+var evalStr =
+ '//CHECK#1\n' +
+ 'for (var x in this) {\n' +
+ ' if ( x === \'NaN\' ) {\n' +
+ ' $ERROR("#1: \'NaN\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'Infinity\' ) {\n' +
+ ' $ERROR("#1: \'Infinity\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'undefined\' ) {\n' +
+ ' $ERROR("#1: \'undefined\' have attribute DontEnum");\n' +
+ ' }\n' +
+ '}\n';
eval(evalStr);
diff --git a/test/built-ins/global/S10.2.3_A2.3_T2.js b/test/built-ins/global/S10.2.3_A2.3_T2.js
index 276818897..dd52eb829 100644
--- a/test/built-ins/global/S10.2.3_A2.3_T2.js
+++ b/test/built-ins/global/S10.2.3_A2.3_T2.js
@@ -7,28 +7,28 @@ es5id: 10.2.3_A2.3_T2
description: Global execution context - Function Properties
---*/
-var evalStr =
-'//CHECK#1\n'+
-'for (var x in this) {\n'+
-' if ( x === \'eval\' ) {\n'+
-' $ERROR("#1: \'eval\' have attribute DontEnum");\n'+
-' } else if ( x === \'parseInt\' ) {\n'+
-' $ERROR("#1: \'parseInt\' have attribute DontEnum");\n'+
-' } else if ( x === \'parseFloat\' ) {\n'+
-' $ERROR("#1: \'parseFloat\' have attribute DontEnum");\n'+
-' } else if ( x === \'isNaN\' ) {\n'+
-' $ERROR("#1: \'isNaN\' have attribute DontEnum");\n'+
-' } else if ( x === \'isFinite\' ) {\n'+
-' $ERROR("#1: \'isFinite\' have attribute DontEnum");\n'+
-' } else if ( x === \'decodeURI\' ) {\n'+
-' $ERROR("#1: \'decodeURI\' have attribute DontEnum");\n'+
-' } else if ( x === \'decodeURIComponent\' ) {\n'+
-' $ERROR("#1: \'decodeURIComponent\' have attribute DontEnum");\n'+
-' } else if ( x === \'encodeURI\' ) {\n'+
-' $ERROR("#1: \'encodeURI\' have attribute DontEnum");\n'+
-' } else if ( x === \'encodeURIComponent\' ) {\n'+
-' $ERROR("#1: \'encodeURIComponent\' have attribute DontEnum");\n'+
-' }\n'+
-'}\n';
+var evalStr =
+ '//CHECK#1\n' +
+ 'for (var x in this) {\n' +
+ ' if ( x === \'eval\' ) {\n' +
+ ' $ERROR("#1: \'eval\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'parseInt\' ) {\n' +
+ ' $ERROR("#1: \'parseInt\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'parseFloat\' ) {\n' +
+ ' $ERROR("#1: \'parseFloat\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'isNaN\' ) {\n' +
+ ' $ERROR("#1: \'isNaN\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'isFinite\' ) {\n' +
+ ' $ERROR("#1: \'isFinite\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'decodeURI\' ) {\n' +
+ ' $ERROR("#1: \'decodeURI\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'decodeURIComponent\' ) {\n' +
+ ' $ERROR("#1: \'decodeURIComponent\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'encodeURI\' ) {\n' +
+ ' $ERROR("#1: \'encodeURI\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'encodeURIComponent\' ) {\n' +
+ ' $ERROR("#1: \'encodeURIComponent\' have attribute DontEnum");\n' +
+ ' }\n' +
+ '}\n';
eval(evalStr);
diff --git a/test/built-ins/global/S10.2.3_A2.3_T3.js b/test/built-ins/global/S10.2.3_A2.3_T3.js
index ecbbd49c5..4aa1326a2 100644
--- a/test/built-ins/global/S10.2.3_A2.3_T3.js
+++ b/test/built-ins/global/S10.2.3_A2.3_T3.js
@@ -7,40 +7,40 @@ es5id: 10.2.3_A2.3_T3
description: Global execution context - Constructor Properties
---*/
-var evalStr =
-'//CHECK#1\n'+
-'for (var x in this) {\n'+
-' if ( x === \'Object\' ) {\n'+
-' $ERROR("#1: \'Object\' have attribute DontEnum");\n'+
-' } else if ( x === \'Function\') {\n'+
-' $ERROR("#1: \'Function\' have attribute DontEnum");\n'+
-' } else if ( x === \'String\' ) {\n'+
-' $ERROR("#1: \'String\' have attribute DontEnum");\n'+
-' } else if ( x === \'Number\' ) {\n'+
-' $ERROR("#1: \'Number\' have attribute DontEnum");\n'+
-' } else if ( x === \'Array\' ) {\n'+
-' $ERROR("#1: \'Array\' have attribute DontEnum");\n'+
-' } else if ( x === \'Boolean\' ) {\n'+
-' $ERROR("#1: \'Boolean\' have attribute DontEnum");\n'+
-' } else if ( x === \'Date\' ) {\n'+
-' $ERROR("#1: \'Date\' have attribute DontEnum");\n'+
-' } else if ( x === \'RegExp\' ) {\n'+
-' $ERROR("#1: \'RegExp\' have attribute DontEnum");\n'+
-' } else if ( x === \'Error\' ) {\n'+
-' $ERROR("#1: \'Error\' have attribute DontEnum");\n'+
-' } else if ( x === \'EvalError\' ) {\n'+
-' $ERROR("#1: \'EvalError\' have attribute DontEnum");\n'+
-' } else if ( x === \'RangeError\' ) {\n'+
-' $ERROR("#1: \'RangeError\' have attribute DontEnum");\n'+
-' } else if ( x === \'ReferenceError\' ) {\n'+
-' $ERROR("#1: \'ReferenceError\' have attribute DontEnum");\n'+
-' } else if ( x === \'SyntaxError\' ) {\n'+
-' $ERROR("#1: \'SyntaxError\' have attribute DontEnum");\n'+
-' } else if ( x === \'TypeError\' ) {\n'+
-' $ERROR("#1: \'TypeError\' have attribute DontEnum");\n'+
-' } else if ( x === \'URIError\' ) {\n'+
-' $ERROR("#1: \'URIError\' have attribute DontEnum");\n'+
-' }\n'+
-'}\n';
+var evalStr =
+ '//CHECK#1\n' +
+ 'for (var x in this) {\n' +
+ ' if ( x === \'Object\' ) {\n' +
+ ' $ERROR("#1: \'Object\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'Function\') {\n' +
+ ' $ERROR("#1: \'Function\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'String\' ) {\n' +
+ ' $ERROR("#1: \'String\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'Number\' ) {\n' +
+ ' $ERROR("#1: \'Number\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'Array\' ) {\n' +
+ ' $ERROR("#1: \'Array\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'Boolean\' ) {\n' +
+ ' $ERROR("#1: \'Boolean\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'Date\' ) {\n' +
+ ' $ERROR("#1: \'Date\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'RegExp\' ) {\n' +
+ ' $ERROR("#1: \'RegExp\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'Error\' ) {\n' +
+ ' $ERROR("#1: \'Error\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'EvalError\' ) {\n' +
+ ' $ERROR("#1: \'EvalError\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'RangeError\' ) {\n' +
+ ' $ERROR("#1: \'RangeError\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'ReferenceError\' ) {\n' +
+ ' $ERROR("#1: \'ReferenceError\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'SyntaxError\' ) {\n' +
+ ' $ERROR("#1: \'SyntaxError\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'TypeError\' ) {\n' +
+ ' $ERROR("#1: \'TypeError\' have attribute DontEnum");\n' +
+ ' } else if ( x === \'URIError\' ) {\n' +
+ ' $ERROR("#1: \'URIError\' have attribute DontEnum");\n' +
+ ' }\n' +
+ '}\n';
eval(evalStr);
diff --git a/test/built-ins/global/S10.2.3_A2.3_T4.js b/test/built-ins/global/S10.2.3_A2.3_T4.js
index 6bb61a7ef..68a3dfbf9 100644
--- a/test/built-ins/global/S10.2.3_A2.3_T4.js
+++ b/test/built-ins/global/S10.2.3_A2.3_T4.js
@@ -7,12 +7,12 @@ es5id: 10.2.3_A2.3_T4
description: Global execution context - Other Properties
---*/
-var evalStr =
-'//CHECK#1\n'+
-'for (var x in this) {\n'+
-' if ( x === \'Math\' ) {\n'+
-' $ERROR("#1: \'Math\' have attribute DontEnum");\n'+
-' }\n'+
-'}\n';
+var evalStr =
+ '//CHECK#1\n' +
+ 'for (var x in this) {\n' +
+ ' if ( x === \'Math\' ) {\n' +
+ ' $ERROR("#1: \'Math\' have attribute DontEnum");\n' +
+ ' }\n' +
+ '}\n';
eval(evalStr);
diff --git a/test/built-ins/global/S15.1_A1_T1.js b/test/built-ins/global/S15.1_A1_T1.js
index 18d89f5b4..83f2868f0 100644
--- a/test/built-ins/global/S15.1_A1_T1.js
+++ b/test/built-ins/global/S15.1_A1_T1.js
@@ -12,5 +12,5 @@ description: >
var global = this;
assert.throws(TypeError, function() {
- new global;
+ new global;
});
diff --git a/test/built-ins/global/S15.1_A1_T2.js b/test/built-ins/global/S15.1_A1_T2.js
index 796612aca..aed814768 100644
--- a/test/built-ins/global/S15.1_A1_T2.js
+++ b/test/built-ins/global/S15.1_A1_T2.js
@@ -12,5 +12,5 @@ description: >
var global = this;
assert.throws(TypeError, function() {
- new global();
+ new global();
});
diff --git a/test/built-ins/global/S15.1_A2_T1.js b/test/built-ins/global/S15.1_A2_T1.js
index e2a730aaa..3fbdfd1ae 100644
--- a/test/built-ins/global/S15.1_A2_T1.js
+++ b/test/built-ins/global/S15.1_A2_T1.js
@@ -10,5 +10,5 @@ description: It is not possible to invoke the global object as a function
var global = this;
assert.throws(TypeError, function() {
- global();
+ global();
});
diff --git a/test/built-ins/parseFloat/S15.1.2.3_A1_T7.js b/test/built-ins/parseFloat/S15.1.2.3_A1_T7.js
index fd3ab6b66..d135fcde6 100644
--- a/test/built-ins/parseFloat/S15.1.2.3_A1_T7.js
+++ b/test/built-ins/parseFloat/S15.1.2.3_A1_T7.js
@@ -10,24 +10,49 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String)
---*/
//CHECK#1
-var object = {valueOf: function() {return 1}};
+var object = {
+ valueOf: function() {
+ return 1
+ }
+};
assert.sameValue(parseFloat(object), NaN, "{valueOf: function() {return 1}}");
//CHECK#2
-var object = {valueOf: function() {return 1}, toString: function() {return 0}};
+var object = {
+ valueOf: function() {
+ return 1
+ },
+ toString: function() {
+ return 0
+ }
+};
if (parseFloat(object) !== 0) {
$ERROR('#2: var object = {valueOf: function() {return 1}, toString: function() {return 0}}; parseFloat(object) === 0. Actual: ' + (parseFloat(object)));
}
//CHECK#3
-var object = {valueOf: function() {return 1}, toString: function() {return {}}};
+var object = {
+ valueOf: function() {
+ return 1
+ },
+ toString: function() {
+ return {}
+ }
+};
if (parseFloat(object) !== 1) {
$ERROR('#3: var object = {valueOf: function() {return 1}, toString: function() {return {}}}; parseFloat(object) === 1. Actual: ' + (parseFloat(object)));
}
//CHECK#4
try {
- var object = {valueOf: function() {throw "error"}, toString: function() {return 1}};
+ var object = {
+ valueOf: function() {
+ throw "error"
+ },
+ toString: function() {
+ return 1
+ }
+ };
if (parseFloat(object) !== 1) {
$ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; parseFloat(object) === 1. Actual: ' + (parseFloat(object)));
}
@@ -41,20 +66,38 @@ catch (e) {
}
//CHECK#5
-var object = {toString: function() {return 1}};
+var object = {
+ toString: function() {
+ return 1
+ }
+};
if (parseFloat(object) !== 1) {
$ERROR('#5: var object = {toString: function() {return 1}}; parseFloat(object) === 1. Actual: ' + (parseFloat(object)));
}
//CHECK#6
-var object = {valueOf: function() {return {}}, toString: function() {return 1}}
+var object = {
+ valueOf: function() {
+ return {}
+ },
+ toString: function() {
+ return 1
+ }
+}
if (parseFloat(object) !== 1) {
$ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return 1}}; parseFloat(object) === 1. Actual: ' + (parseFloat(object)));
}
//CHECK#7
try {
- var object = {valueOf: function() {return 1}, toString: function() {throw "error"}};
+ var object = {
+ valueOf: function() {
+ return 1
+ },
+ toString: function() {
+ throw "error"
+ }
+ };
parseFloat(object);
$ERROR('#7.1: var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; parseFloat(object) throw "error". Actual: ' + (parseFloat(object)));
}
@@ -66,7 +109,14 @@ catch (e) {
//CHECK#8
try {
- var object = {valueOf: function() {return {}}, toString: function() {return {}}};
+ var object = {
+ valueOf: function() {
+ return {}
+ },
+ toString: function() {
+ return {}
+ }
+ };
parseFloat(object);
$ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; parseFloat(object) throw TypeError. Actual: ' + (parseFloat(object)));
}
diff --git a/test/built-ins/parseFloat/S15.1.2.3_A2_T10.js b/test/built-ins/parseFloat/S15.1.2.3_A2_T10.js
index d17cbca4b..5e38fc4fa 100644
--- a/test/built-ins/parseFloat/S15.1.2.3_A2_T10.js
+++ b/test/built-ins/parseFloat/S15.1.2.3_A2_T10.js
@@ -19,20 +19,20 @@ for (var index = 0; index < uspU.length; index++) {
var result = true;
n = false;
if (parseFloat(uspU[index] + "1.1") !== parseFloat("1.1")) {
- $ERROR('#1.' + uspS[index] + ' ');
+ $ERROR('#1.' + uspS[index] + ' ');
result = false;
}
- if (parseFloat(uspU[index] + uspU[index] + uspU[index] + "1.1") !== parseFloat("1.1")) {
- $ERROR('#2.' + uspS[index] + ' ');
+ if (parseFloat(uspU[index] + uspU[index] + uspU[index] + "1.1") !== parseFloat("1.1")) {
+ $ERROR('#2.' + uspS[index] + ' ');
result = false;
}
n = parseFloat(uspU[index]);
if (!(n !== n)) {
- $ERROR('#3.' + uspS[index] + ' ');
+ $ERROR('#3.' + uspS[index] + ' ');
result = false;
}
if (result !== true) {
- errorCount++;
+ errorCount++;
}
count++;
}
diff --git a/test/built-ins/parseFloat/S15.1.2.3_A7.1.js b/test/built-ins/parseFloat/S15.1.2.3_A7.1.js
index 5013eea27..4d39ca400 100644
--- a/test/built-ins/parseFloat/S15.1.2.3_A7.1.js
+++ b/test/built-ins/parseFloat/S15.1.2.3_A7.1.js
@@ -16,7 +16,7 @@ if (parseFloat.propertyIsEnumerable('length') !== false) {
//CHECK#2
var result = true;
-for (var p in parseFloat){
+for (var p in parseFloat) {
if (p === "length") {
result = false;
}
diff --git a/test/built-ins/parseFloat/S15.1.2.3_A7.5.js b/test/built-ins/parseFloat/S15.1.2.3_A7.5.js
index 19984b429..66902d7fa 100644
--- a/test/built-ins/parseFloat/S15.1.2.3_A7.5.js
+++ b/test/built-ins/parseFloat/S15.1.2.3_A7.5.js
@@ -16,7 +16,7 @@ if (this.propertyIsEnumerable('parseFloat') !== false) {
//CHECK#2
var result = true;
-for (var p in this){
+for (var p in this) {
if (p === "parseFloat") {
result = false;
}
diff --git a/test/built-ins/parseFloat/tonumber-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js b/test/built-ins/parseFloat/tonumber-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js
index bc2d2a590..6665d34be 100644
--- a/test/built-ins/parseFloat/tonumber-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js
+++ b/test/built-ins/parseFloat/tonumber-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js
@@ -19,4 +19,3 @@ features: [numeric-separator-literal]
---*/
assert.sameValue(parseFloat("1.0e+10_0"), 1.0e+10);
-
diff --git a/test/built-ins/parseInt/S15.1.2.2_A1_T7.js b/test/built-ins/parseInt/S15.1.2.2_A1_T7.js
index f5655726d..617db6cd9 100644
--- a/test/built-ins/parseInt/S15.1.2.2_A1_T7.js
+++ b/test/built-ins/parseInt/S15.1.2.2_A1_T7.js
@@ -10,24 +10,49 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String)
---*/
//CHECK#1
-var object = {valueOf: function() {return 1}};
+var object = {
+ valueOf: function() {
+ return 1
+ }
+};
assert.sameValue(parseInt(object), NaN, "{valueOf: function() {return 1}}");
//CHECK#2
-var object = {valueOf: function() {return 1}, toString: function() {return 0}};
+var object = {
+ valueOf: function() {
+ return 1
+ },
+ toString: function() {
+ return 0
+ }
+};
if (parseInt(object) !== 0) {
$ERROR('#2: var object = {valueOf: function() {return 1}, toString: function() {return 0}}; parseInt(object) === 0. Actual: ' + (parseInt(object)));
}
//CHECK#3
-var object = {valueOf: function() {return 1}, toString: function() {return {}}};
+var object = {
+ valueOf: function() {
+ return 1
+ },
+ toString: function() {
+ return {}
+ }
+};
if (parseInt(object) !== 1) {
$ERROR('#3: var object = {valueOf: function() {return 1}, toString: function() {return {}}}; parseInt(object) === 1. Actual: ' + (parseInt(object)));
}
//CHECK#4
try {
- var object = {valueOf: function() {throw "error"}, toString: function() {return 1}};
+ var object = {
+ valueOf: function() {
+ throw "error"
+ },
+ toString: function() {
+ return 1
+ }
+ };
if (parseInt(object) !== 1) {
$ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; parseInt(object) === 1. Actual: ' + (parseInt(object)));
}
@@ -41,20 +66,38 @@ catch (e) {
}
//CHECK#5
-var object = {toString: function() {return 1}};
+var object = {
+ toString: function() {
+ return 1
+ }
+};
if (parseInt(object) !== 1) {
$ERROR('#5: var object = {toString: function() {return 1}}; parseInt(object) === 1. Actual: ' + (parseInt(object)));
}
//CHECK#6
-var object = {valueOf: function() {return {}}, toString: function() {return 1}}
+var object = {
+ valueOf: function() {
+ return {}
+ },
+ toString: function() {
+ return 1
+ }
+}
if (parseInt(object) !== 1) {
$ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return 1}}; parseInt(object) === 1. Actual: ' + (parseInt(object)));
}
//CHECK#7
try {
- var object = {valueOf: function() {return 1}, toString: function() {throw "error"}};
+ var object = {
+ valueOf: function() {
+ return 1
+ },
+ toString: function() {
+ throw "error"
+ }
+ };
parseInt(object);
$ERROR('#7.1: var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; parseInt(object) throw "error". Actual: ' + (parseInt(object)));
}
@@ -66,7 +109,14 @@ catch (e) {
//CHECK#8
try {
- var object = {valueOf: function() {return {}}, toString: function() {return {}}};
+ var object = {
+ valueOf: function() {
+ return {}
+ },
+ toString: function() {
+ return {}
+ }
+ };
parseInt(object);
$ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; parseInt(object) throw TypeError. Actual: ' + (parseInt(object)));
}
diff --git a/test/built-ins/parseInt/S15.1.2.2_A2_T10.js b/test/built-ins/parseInt/S15.1.2.2_A2_T10.js
index 7d4c6c7aa..359035302 100644
--- a/test/built-ins/parseInt/S15.1.2.2_A2_T10.js
+++ b/test/built-ins/parseInt/S15.1.2.2_A2_T10.js
@@ -20,20 +20,20 @@ for (var index = 0; index < uspU.length; index++) {
var result = true;
n = false;
if (parseInt(uspU[index] + "1") !== parseInt("1")) {
- $ERROR('#1.' + uspS[index] + ' ');
+ $ERROR('#1.' + uspS[index] + ' ');
result = false;
}
- if (parseInt(uspU[index] + uspU[index] + uspU[index] + "1") !== parseInt("1")) {
- $ERROR('#2.' + uspS[index] + ' ');
+ if (parseInt(uspU[index] + uspU[index] + uspU[index] + "1") !== parseInt("1")) {
+ $ERROR('#2.' + uspS[index] + ' ');
result = false;
}
n = parseInt(uspU[index]);
if (!(n !== n)) {
- $ERROR('#3.' + uspS[index] + ' ');
+ $ERROR('#3.' + uspS[index] + ' ');
result = false;
}
if (result !== true) {
- errorCount++;
+ errorCount++;
}
count++;
}
diff --git a/test/built-ins/parseInt/S15.1.2.2_A3.1_T7.js b/test/built-ins/parseInt/S15.1.2.2_A3.1_T7.js
index 0dc23b6fa..1eeaec01f 100644
--- a/test/built-ins/parseInt/S15.1.2.2_A3.1_T7.js
+++ b/test/built-ins/parseInt/S15.1.2.2_A3.1_T7.js
@@ -10,26 +10,51 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, Number)
---*/
//CHECK#1
-var object = {valueOf: function() {return 2}};
+var object = {
+ valueOf: function() {
+ return 2
+ }
+};
if (parseInt("11", object) !== parseInt("11", 2)) {
$ERROR('#1: var object = {valueOf: function() {return 2}}; parseInt("11", object) === parseInt("11", 2). Actual: ' + (parseInt("11", object)));
}
//CHECK#2
-var object = {valueOf: function() {return 2}, toString: function() {return 1}};
+var object = {
+ valueOf: function() {
+ return 2
+ },
+ toString: function() {
+ return 1
+ }
+};
if (parseInt("11", object) !== parseInt("11", 2)) {
$ERROR('#2: var object = {valueOf: function() {return 2}, toString: function() {return 1}}; parseInt("11", object) === parseInt("11", 2). Actual: ' + (parseInt("11", object)));
}
//CHECK#3
-var object = {valueOf: function() {return 2}, toString: function() {return {}}};
+var object = {
+ valueOf: function() {
+ return 2
+ },
+ toString: function() {
+ return {}
+ }
+};
if (parseInt("11", object) !== parseInt("11", 2)) {
$ERROR('#3: var object = {valueOf: function() {return 2}, toString: function() {return {}}}; parseInt("11", object) === parseInt("11", 2). Actual: ' + (parseInt("11", object)));
}
//CHECK#4
try {
- var object = {valueOf: function() {return 2}, toString: function() {throw "error"}};
+ var object = {
+ valueOf: function() {
+ return 2
+ },
+ toString: function() {
+ throw "error"
+ }
+ };
if (parseInt("11", object) !== parseInt("11", 2)) {
$ERROR('#4.1: var object = {valueOf: function() {return 2}, toString: function() {throw "error"}}; parseInt("11", object) === parseInt("11", 2). Actual: ' + (parseInt("11", object)));
}
@@ -43,20 +68,38 @@ catch (e) {
}
//CHECK#5
-var object = {toString: function() {return 2}};
+var object = {
+ toString: function() {
+ return 2
+ }
+};
if (parseInt("11", object) !== parseInt("11", 2)) {
$ERROR('#5: var object = {toString: function() {return 2}}; parseInt("11", object) === parseInt("11", 2). Actual: ' + (parseInt("11", object)));
}
//CHECK#6
-var object = {valueOf: function() {return {}}, toString: function() {return 2}}
+var object = {
+ valueOf: function() {
+ return {}
+ },
+ toString: function() {
+ return 2
+ }
+}
if (parseInt("11", object) !== parseInt("11", 2)) {
$ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return 2}}; parseInt("11", object) === parseInt("11", 2). Actual: ' + (parseInt("11", object)));
}
//CHECK#7
try {
- var object = {valueOf: function() {throw "error"}, toString: function() {return 2}};
+ var object = {
+ valueOf: function() {
+ throw "error"
+ },
+ toString: function() {
+ return 2
+ }
+ };
parseInt("11", object);
$ERROR('#7.1: var object = {valueOf: function() {throw "error"}, toString: function() {return 2}}; parseInt("11", object) throw "error". Actual: ' + (parseInt("11", object)));
}
@@ -68,7 +111,14 @@ catch (e) {
//CHECK#8
try {
- var object = {valueOf: function() {return {}}, toString: function() {return {}}};
+ var object = {
+ valueOf: function() {
+ return {}
+ },
+ toString: function() {
+ return {}
+ }
+ };
parseInt("11", object);
$ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; parseInt("11", object) throw TypeError. Actual: ' + (parseInt("11", object)));
}
diff --git a/test/built-ins/parseInt/S15.1.2.2_A5.2_T1.js b/test/built-ins/parseInt/S15.1.2.2_A5.2_T1.js
index a4b58e9f9..cbb1b7733 100644
--- a/test/built-ins/parseInt/S15.1.2.2_A5.2_T1.js
+++ b/test/built-ins/parseInt/S15.1.2.2_A5.2_T1.js
@@ -12,91 +12,91 @@ description: ": 0x"
---*/
//CHECK#0
-if (parseInt("0x0", 0) !== parseInt("0", 16)) {
+if (parseInt("0x0", 0) !== parseInt("0", 16)) {
$ERROR('#0: parseInt("0x0", 0) === parseInt("0", 16). Actual: ' + (parseInt("0x0", 0)));
}
//CHECK#1
-if (parseInt("0x1", 0) !== parseInt("1", 16)) {
+if (parseInt("0x1", 0) !== parseInt("1", 16)) {
$ERROR('#1: parseInt("0x1", 0) === parseInt("1", 16). Actual: ' + (parseInt("0x1", 0)));
}
//CHECK#2
-if (parseInt("0x2", 0) !== parseInt("2", 16)) {
+if (parseInt("0x2", 0) !== parseInt("2", 16)) {
$ERROR('#2: parseInt("0x2", 0) === parseInt("2", 16). Actual: ' + (parseInt("0x2", 0)));
}
//CHECK#3
-if (parseInt("0x3", 0) !== parseInt("3", 16)) {
+if (parseInt("0x3", 0) !== parseInt("3", 16)) {
$ERROR('#3: parseInt("0x3", 0) === parseInt("3", 16). Actual: ' + (parseInt("0x3", 0)));
}
//CHECK#4
-if (parseInt("0x4", 0) !== parseInt("4", 16)) {
+if (parseInt("0x4", 0) !== parseInt("4", 16)) {
$ERROR('#4: parseInt("0x4", 0) === parseInt("4", 16). Actual: ' + (parseInt("0x4", 0)));
}
//CHECK#5
-if (parseInt("0x5", 0) !== parseInt("5", 16)) {
+if (parseInt("0x5", 0) !== parseInt("5", 16)) {
$ERROR('#5: parseInt("0x5", 0) === parseInt("5", 16). Actual: ' + (parseInt("0x5", 0)));
}
//CHECK#6
-if (parseInt("0x6", 0) !== parseInt("6", 16)) {
+if (parseInt("0x6", 0) !== parseInt("6", 16)) {
$ERROR('#6: parseInt("0x6", 0) === parseInt("6", 16). Actual: ' + (parseInt("0x6", 0)));
}
//CHECK#7
-if (parseInt("0x7", 0) !== parseInt("7", 16)) {
+if (parseInt("0x7", 0) !== parseInt("7", 16)) {
$ERROR('#7: parseInt("0x7", 0) === parseInt("7", 16). Actual: ' + (parseInt("0x7", 0)));
}
//CHECK#8
-if (parseInt("0x8", 0) !== parseInt("8", 16)) {
+if (parseInt("0x8", 0) !== parseInt("8", 16)) {
$ERROR('#8: parseInt("0x8", 0) === parseInt("8", 16). Actual: ' + (parseInt("0x8", 0)));
}
//CHECK#9
-if (parseInt("0x9", 0) !== parseInt("9", 16)) {
+if (parseInt("0x9", 0) !== parseInt("9", 16)) {
$ERROR('#9: parseInt("0x9", 0) === parseInt("9", 16). Actual: ' + (parseInt("0x9", 0)));
}
//CHECK#A
-if (parseInt("0xA", 0) !== parseInt("A", 16)) {
+if (parseInt("0xA", 0) !== parseInt("A", 16)) {
$ERROR('#A: parseInt("0xA", 0) === parseInt("A", 16). Actual: ' + (parseInt("0xA", 0)));
}
//CHECK#B
-if (parseInt("0xB", 0) !== parseInt("B", 16)) {
+if (parseInt("0xB", 0) !== parseInt("B", 16)) {
$ERROR('#B: parseInt("0xB", 0) === parseInt("B", 16). Actual: ' + (parseInt("0xB", 0)));
}
//CHECK#C
-if (parseInt("0xC", 0) !== parseInt("C", 16)) {
+if (parseInt("0xC", 0) !== parseInt("C", 16)) {
$ERROR('#C: parseInt("0xC", 0) === parseInt("C", 16). Actual: ' + (parseInt("0xC", 0)));
}
//CHECK#D
-if (parseInt("0xD", 0) !== parseInt("D", 16)) {
+if (parseInt("0xD", 0) !== parseInt("D", 16)) {
$ERROR('#D: parseInt("0xD", 0) === parseInt("D", 16). Actual: ' + (parseInt("0xD", 0)));
}
//CHECK#E
-if (parseInt("0xE", 0) !== parseInt("E", 16)) {
+if (parseInt("0xE", 0) !== parseInt("E", 16)) {
$ERROR('#E: parseInt("0xE", 0) === parseInt("E", 16). Actual: ' + (parseInt("0xE", 0)));
}
//CHECK#F
-if (parseInt("0xF", 0) !== parseInt("F", 16)) {
+if (parseInt("0xF", 0) !== parseInt("F", 16)) {
$ERROR('#F: parseInt("0xF", 0) === parseInt("F", 16). Actual: ' + (parseInt("0xF", 0)));
}
//CHECK#E
-if (parseInt("0xE", 0) !== parseInt("E", 16)) {
+if (parseInt("0xE", 0) !== parseInt("E", 16)) {
$ERROR('#E: parseInt("0xE", 0) === parseInt("E", 16). Actual: ' + (parseInt("0xE", 0)));
}
//CHECK#ABCDEF
-if (parseInt("0xABCDEF", 0) !== parseInt("ABCDEF", 16)) {
+if (parseInt("0xABCDEF", 0) !== parseInt("ABCDEF", 16)) {
$ERROR('#ABCDEF: parseInt("0xABCDEF", 0) === parseInt("ABCDEF", 16). Actual: ' + (parseInt("0xABCDEF", 0)));
}
diff --git a/test/built-ins/parseInt/S15.1.2.2_A5.2_T2.js b/test/built-ins/parseInt/S15.1.2.2_A5.2_T2.js
index 7be4f90d5..d644f3604 100644
--- a/test/built-ins/parseInt/S15.1.2.2_A5.2_T2.js
+++ b/test/built-ins/parseInt/S15.1.2.2_A5.2_T2.js
@@ -12,91 +12,91 @@ description: ": 0X"
---*/
//CHECK#0
-if (parseInt("0X0", 0) !== parseInt("0", 16)) {
+if (parseInt("0X0", 0) !== parseInt("0", 16)) {
$ERROR('#0: parseInt("0X0", 0) === parseInt("0", 16). Actual: ' + (parseInt("0X0", 0)));
}
//CHECK#1
-if (parseInt("0X1") !== parseInt("1", 16)) {
+if (parseInt("0X1") !== parseInt("1", 16)) {
$ERROR('#1: parseInt("0X1") === parseInt("1", 16). Actual: ' + (parseInt("0X1")));
}
//CHECK#2
-if (parseInt("0X2") !== parseInt("2", 16)) {
+if (parseInt("0X2") !== parseInt("2", 16)) {
$ERROR('#2: parseInt("0X2") === parseInt("2", 16). Actual: ' + (parseInt("0X2")));
}
//CHECK#3
-if (parseInt("0X3") !== parseInt("3", 16)) {
+if (parseInt("0X3") !== parseInt("3", 16)) {
$ERROR('#3: parseInt("0X3") === parseInt("3", 16). Actual: ' + (parseInt("0X3")));
}
//CHECK#4
-if (parseInt("0X4") !== parseInt("4", 16)) {
+if (parseInt("0X4") !== parseInt("4", 16)) {
$ERROR('#4: parseInt("0X4") === parseInt("4", 16). Actual: ' + (parseInt("0X4")));
}
//CHECK#5
-if (parseInt("0X5") !== parseInt("5", 16)) {
+if (parseInt("0X5") !== parseInt("5", 16)) {
$ERROR('#5: parseInt("0X5") === parseInt("5", 16). Actual: ' + (parseInt("0X5")));
}
//CHECK#6
-if (parseInt("0X6") !== parseInt("6", 16)) {
+if (parseInt("0X6") !== parseInt("6", 16)) {
$ERROR('#6: parseInt("0X6") === parseInt("6", 16). Actual: ' + (parseInt("0X6")));
}
//CHECK#7
-if (parseInt("0X7") !== parseInt("7", 16)) {
+if (parseInt("0X7") !== parseInt("7", 16)) {
$ERROR('#7: parseInt("0X7") === parseInt("7", 16). Actual: ' + (parseInt("0X7")));
}
//CHECK#8
-if (parseInt("0X8") !== parseInt("8", 16)) {
+if (parseInt("0X8") !== parseInt("8", 16)) {
$ERROR('#8: parseInt("0X8") === parseInt("8", 16). Actual: ' + (parseInt("0X8")));
}
//CHECK#9
-if (parseInt("0X9") !== parseInt("9", 16)) {
+if (parseInt("0X9") !== parseInt("9", 16)) {
$ERROR('#9: parseInt("0X9") === parseInt("9", 16). Actual: ' + (parseInt("0X9")));
}
//CHECK#A
-if (parseInt("0XA") !== parseInt("A", 16)) {
+if (parseInt("0XA") !== parseInt("A", 16)) {
$ERROR('#A: parseInt("0XA") === parseInt("A", 16). Actual: ' + (parseInt("0XA")));
}
//CHECK#B
-if (parseInt("0XB") !== parseInt("B", 16)) {
+if (parseInt("0XB") !== parseInt("B", 16)) {
$ERROR('#B: parseInt("0XB") === parseInt("B", 16). Actual: ' + (parseInt("0XB")));
}
//CHECK#C
-if (parseInt("0XC") !== parseInt("C", 16)) {
+if (parseInt("0XC") !== parseInt("C", 16)) {
$ERROR('#C: parseInt("0XC") === parseInt("C", 16). Actual: ' + (parseInt("0XC")));
}
//CHECK#D
-if (parseInt("0XD") !== parseInt("D", 16)) {
+if (parseInt("0XD") !== parseInt("D", 16)) {
$ERROR('#D: parseInt("0XD") === parseInt("D", 16). Actual: ' + (parseInt("0XD")));
}
//CHECK#E
-if (parseInt("0XE") !== parseInt("E", 16)) {
+if (parseInt("0XE") !== parseInt("E", 16)) {
$ERROR('#E: parseInt("0XE") === parseInt("E", 16). Actual: ' + (parseInt("0XE")));
}
//CHECK#F
-if (parseInt("0XF") !== parseInt("F", 16)) {
+if (parseInt("0XF") !== parseInt("F", 16)) {
$ERROR('#F: parseInt("0XF") === parseInt("F", 16). Actual: ' + (parseInt("0XF")));
}
//CHECK#E
-if (parseInt("0XE") !== parseInt("E", 16)) {
+if (parseInt("0XE") !== parseInt("E", 16)) {
$ERROR('#E: parseInt("0XE") === parseInt("E", 16). Actual: ' + (parseInt("0XE")));
}
//CHECK#ABCDEF
-if (parseInt("0XABCDEF") !== parseInt("ABCDEF", 16)) {
+if (parseInt("0XABCDEF") !== parseInt("ABCDEF", 16)) {
$ERROR('#ABCDEF: parseInt("0XABCDEF") === parseInt("ABCDEF", 16). Actual: ' + (parseInt("0XABCDEF")));
}
diff --git a/test/built-ins/parseInt/S15.1.2.2_A6.1_T1.js b/test/built-ins/parseInt/S15.1.2.2_A6.1_T1.js
index 9f0148669..980f9dc9a 100644
--- a/test/built-ins/parseInt/S15.1.2.2_A6.1_T1.js
+++ b/test/built-ins/parseInt/S15.1.2.2_A6.1_T1.js
@@ -15,6 +15,6 @@ description: Complex test. R in [2, 36]
//CHECK#
for (var i = 2; i <= 36; i++) {
if (parseInt("10$1", i) !== i) {
- $ERROR('#' + i +': i = ' + i + 'parseInt("10$1", i) === i. Actual: ' + (parseInt("10$1", i)));
+ $ERROR('#' + i + ': i = ' + i + 'parseInt("10$1", i) === i. Actual: ' + (parseInt("10$1", i)));
}
}
diff --git a/test/built-ins/parseInt/S15.1.2.2_A7.2_T2.js b/test/built-ins/parseInt/S15.1.2.2_A7.2_T2.js
index 90c7ddbe4..81b667e8c 100644
--- a/test/built-ins/parseInt/S15.1.2.2_A7.2_T2.js
+++ b/test/built-ins/parseInt/S15.1.2.2_A7.2_T2.js
@@ -14,101 +14,101 @@ description: Checking algorithm for R = 2
---*/
//CHECK#1
-if (parseInt("1", 2) !== 1) {
+if (parseInt("1", 2) !== 1) {
$ERROR('#1: parseInt("1", 2) === 1. Actual: ' + (parseInt("1", 2)));
}
//CHECK#2
-if (parseInt("11", 2) !== 3) {
+if (parseInt("11", 2) !== 3) {
$ERROR('#2: parseInt("11", 2) === 3. Actual: ' + (parseInt("11", 2)));
}
//CHECK#3
-if (parseInt("111", 2) !== 7) {
+if (parseInt("111", 2) !== 7) {
$ERROR('#3: parseInt("111", 2) === 7. Actual: ' + (parseInt("111", 2)));
}
//CHECK#4
-if (parseInt("1111", 2) !== 15) {
+if (parseInt("1111", 2) !== 15) {
$ERROR('#4: parseInt("1111", 2) === 15. Actual: ' + (parseInt("1111", 2)));
}
//CHECK#5
-if (parseInt("11111", 2) !== 31) {
+if (parseInt("11111", 2) !== 31) {
$ERROR('#5: parseInt("11111", 2) === 31. Actual: ' + (parseInt("11111", 2)));
}
//CHECK#6
-if (parseInt("111111", 2) !== 63) {
+if (parseInt("111111", 2) !== 63) {
$ERROR('#6: parseInt("111111", 2) === 63. Actual: ' + (parseInt("111111", 2)));
}
//CHECK#7
-if (parseInt("1111111", 2) !== 127) {
+if (parseInt("1111111", 2) !== 127) {
$ERROR('#7: parseInt("1111111", 2) === 127. Actual: ' + (parseInt("1111111", 2)));
}
//CHECK#8
-if (parseInt("11111111", 2) !== 255) {
+if (parseInt("11111111", 2) !== 255) {
$ERROR('#8: parseInt("11111111", 2) === 255. Actual: ' + (parseInt("11111111", 2)));
}
//CHECK#9
-if (parseInt("111111111", 2) !== 511) {
+if (parseInt("111111111", 2) !== 511) {
$ERROR('#9: parseInt("111111111", 2) === 511. Actual: ' + (parseInt("111111111", 2)));
}
//CHECK#10
-if (parseInt("1111111111", 2) !== 1023) {
+if (parseInt("1111111111", 2) !== 1023) {
$ERROR('#10: parseInt("1111111111", 2) === 1023. Actual: ' + (parseInt("1111111111", 2)));
}
//CHECK#11
-if (parseInt("11111111111", 2) !== 2047) {
+if (parseInt("11111111111", 2) !== 2047) {
$ERROR('#11: parseInt("11111111111", 2) === 2047. Actual: ' + (parseInt("11111111111", 2)));
}
//CHECK#12
-if (parseInt("111111111111", 2) !== 4095) {
+if (parseInt("111111111111", 2) !== 4095) {
$ERROR('#12: parseInt("111111111111", 2) === 4095. Actual: ' + (parseInt("111111111111", 2)));
}
//CHECK#13
-if (parseInt("1111111111111", 2) !== 8191) {
+if (parseInt("1111111111111", 2) !== 8191) {
$ERROR('#13: parseInt("1111111111111", 2) === 8191. Actual: ' + (parseInt("1111111111111", 2)));
}
//CHECK#14
-if (parseInt("11111111111111", 2) !== 16383) {
+if (parseInt("11111111111111", 2) !== 16383) {
$ERROR('#14: parseInt("11111111111111", 2) === 16383. Actual: ' + (parseInt("11111111111111", 2)));
}
//CHECK#15
-if (parseInt("111111111111111", 2) !== 32767) {
+if (parseInt("111111111111111", 2) !== 32767) {
$ERROR('#15: parseInt("111111111111111", 2) === 32767. Actual: ' + (parseInt("111111111111111", 2)));
}
//CHECK#16
-if (parseInt("1111111111111111", 2) !== 65535) {
+if (parseInt("1111111111111111", 2) !== 65535) {
$ERROR('#16: parseInt("1111111111111111", 2) === 65535. Actual: ' + (parseInt("1111111111111111", 2)));
}
//CHECK#17
-if (parseInt("11111111111111111", 2) !== 131071) {
+if (parseInt("11111111111111111", 2) !== 131071) {
$ERROR('#17: parseInt("11111111111111111", 2) === 131071. Actual: ' + (parseInt("11111111111111111", 2)));
}
//CHECK#18
-if (parseInt("111111111111111111", 2) !== 262143) {
+if (parseInt("111111111111111111", 2) !== 262143) {
$ERROR('#18: parseInt("111111111111111111", 2) === 262143. Actual: ' + (parseInt("111111111111111111", 2)));
}
//CHECK#19
-if (parseInt("1111111111111111111", 2) !== 524287) {
+if (parseInt("1111111111111111111", 2) !== 524287) {
$ERROR('#19: parseInt("1111111111111111111", 2) === 524287. Actual: ' + (parseInt("1111111111111111111", 2)));
}
//CHECK#20
-if (parseInt("11111111111111111111", 2) !== 1048575) {
+if (parseInt("11111111111111111111", 2) !== 1048575) {
$ERROR('#20: parseInt("11111111111111111111", 2) === 1048575. Actual: ' + (parseInt("11111111111111111111", 2)));
}
diff --git a/test/built-ins/parseInt/S15.1.2.2_A7.3_T1.js b/test/built-ins/parseInt/S15.1.2.2_A7.3_T1.js
index bf5ed5294..5b8fdfcbf 100644
--- a/test/built-ins/parseInt/S15.1.2.2_A7.3_T1.js
+++ b/test/built-ins/parseInt/S15.1.2.2_A7.3_T1.js
@@ -17,8 +17,8 @@ for (var i = 2; i <= 36; i++) {
var str = "+";
var sign = 1;
if (j % 2 !== 0) {
- str = "-";
- sign= -1;
+ str = "-";
+ sign = -1;
}
var num = 0;
var pow = 1;
diff --git a/test/built-ins/parseInt/S15.1.2.2_A7.3_T2.js b/test/built-ins/parseInt/S15.1.2.2_A7.3_T2.js
index 070ffbc4d..d6becd026 100644
--- a/test/built-ins/parseInt/S15.1.2.2_A7.3_T2.js
+++ b/test/built-ins/parseInt/S15.1.2.2_A7.3_T2.js
@@ -10,101 +10,101 @@ description: Checking algorithm for R = 2
---*/
//CHECK#1
-if (parseInt("-1", 2) !== -1) {
+if (parseInt("-1", 2) !== -1) {
$ERROR('#1: parseInt("-1", 2) === -1. Actual: ' + (parseInt("-1", 2)));
}
//CHECK#2
-if (parseInt("-11", 2) !== -3) {
+if (parseInt("-11", 2) !== -3) {
$ERROR('#2: parseInt("-11", 2) === -3. Actual: ' + (parseInt("-11", 2)));
}
//CHECK#3
-if (parseInt("-111", 2) !== -7) {
+if (parseInt("-111", 2) !== -7) {
$ERROR('#3: parseInt("-111", 2) === -7. Actual: ' + (parseInt("-111", 2)));
}
//CHECK#4
-if (parseInt("-1111", 2) !== -15) {
+if (parseInt("-1111", 2) !== -15) {
$ERROR('#4: parseInt("-1111", 2) === -15. Actual: ' + (parseInt("-1111", 2)));
}
//CHECK#5
-if (parseInt("-11111", 2) !== -31) {
+if (parseInt("-11111", 2) !== -31) {
$ERROR('#5: parseInt("-11111", 2) === -31. Actual: ' + (parseInt("-11111", 2)));
}
//CHECK#6
-if (parseInt("-111111", 2) !== -63) {
+if (parseInt("-111111", 2) !== -63) {
$ERROR('#6: parseInt("-111111", 2) === -63. Actual: ' + (parseInt("-111111", 2)));
}
//CHECK#7
-if (parseInt("-1111111", 2) !== -127) {
+if (parseInt("-1111111", 2) !== -127) {
$ERROR('#7: parseInt("-1111111", 2) === -127. Actual: ' + (parseInt("-1111111", 2)));
}
//CHECK#8
-if (parseInt("-11111111", 2) !== -255) {
+if (parseInt("-11111111", 2) !== -255) {
$ERROR('#8: parseInt("-11111111", 2) === -255. Actual: ' + (parseInt("-11111111", 2)));
}
//CHECK#9
-if (parseInt("-111111111", 2) !== -511) {
+if (parseInt("-111111111", 2) !== -511) {
$ERROR('#9: parseInt("-111111111", 2) === -511. Actual: ' + (parseInt("-111111111", 2)));
}
//CHECK#10
-if (parseInt("-1111111111", 2) !== -1023) {
+if (parseInt("-1111111111", 2) !== -1023) {
$ERROR('#10: parseInt("-1111111111", 2) === -1023. Actual: ' + (parseInt("-1111111111", 2)));
}
//CHECK#11
-if (parseInt("-11111111111", 2) !== -2047) {
+if (parseInt("-11111111111", 2) !== -2047) {
$ERROR('#11: parseInt("-11111111111", 2) === -2047. Actual: ' + (parseInt("-11111111111", 2)));
}
//CHECK#12
-if (parseInt("-111111111111", 2) !== -4095) {
+if (parseInt("-111111111111", 2) !== -4095) {
$ERROR('#12: parseInt("-111111111111", 2) === -4095. Actual: ' + (parseInt("-111111111111", 2)));
}
//CHECK#13
-if (parseInt("-1111111111111", 2) !== -8191) {
+if (parseInt("-1111111111111", 2) !== -8191) {
$ERROR('#13: parseInt("-1111111111111", 2) === -8191. Actual: ' + (parseInt("-1111111111111", 2)));
}
//CHECK#14
-if (parseInt("-11111111111111", 2) !== -16383) {
+if (parseInt("-11111111111111", 2) !== -16383) {
$ERROR('#14: parseInt("-11111111111111", 2) === -16383. Actual: ' + (parseInt("-11111111111111", 2)));
}
//CHECK#15
-if (parseInt("-111111111111111", 2) !== -32767) {
+if (parseInt("-111111111111111", 2) !== -32767) {
$ERROR('#15: parseInt("-111111111111111", 2) === -32767. Actual: ' + (parseInt("-111111111111111", 2)));
}
//CHECK#16
-if (parseInt("-1111111111111111", 2) !== -65535) {
+if (parseInt("-1111111111111111", 2) !== -65535) {
$ERROR('#16: parseInt("-1111111111111111", 2) === -65535. Actual: ' + (parseInt("-1111111111111111", 2)));
}
//CHECK#17
-if (parseInt("-11111111111111111", 2) !== -131071) {
+if (parseInt("-11111111111111111", 2) !== -131071) {
$ERROR('#17: parseInt("-11111111111111111", 2) === -131071. Actual: ' + (parseInt("-11111111111111111", 2)));
}
//CHECK#18
-if (parseInt("-111111111111111111", 2) !== -262143) {
+if (parseInt("-111111111111111111", 2) !== -262143) {
$ERROR('#18: parseInt("-111111111111111111", 2) === -262143. Actual: ' + (parseInt("-111111111111111111", 2)));
}
//CHECK#19
-if (parseInt("-1111111111111111111", 2) !== -524287) {
+if (parseInt("-1111111111111111111", 2) !== -524287) {
$ERROR('#19: parseInt("-1111111111111111111", 2) === -524287. Actual: ' + (parseInt("-1111111111111111111", 2)));
}
//CHECK#20
-if (parseInt("-11111111111111111111", 2) !== -1048575) {
+if (parseInt("-11111111111111111111", 2) !== -1048575) {
$ERROR('#20: parseInt("-11111111111111111111", 2) === -1048575. Actual: ' + (parseInt("-11111111111111111111", 2)));
}
diff --git a/test/built-ins/parseInt/S15.1.2.2_A8.js b/test/built-ins/parseInt/S15.1.2.2_A8.js
index 960783ecc..8a0ee2974 100644
--- a/test/built-ins/parseInt/S15.1.2.2_A8.js
+++ b/test/built-ins/parseInt/S15.1.2.2_A8.js
@@ -21,8 +21,8 @@ var indexP;
var indexO = 0;
for (var index = 0; index <= 65535; index++) {
if ((index < 0x0030) || (index > 0x0039) &&
- (index < 0x0041) || (index > 0x005A) &&
- (index < 0x0061) || (index > 0x007A)) {
+ (index < 0x0041) || (index > 0x005A) &&
+ (index < 0x0061) || (index > 0x007A)) {
var hex = decimalToHexString(index);
if (parseInt("1Z" + String.fromCharCode(index), 36) !== 71) {
if (indexO === 0) {
diff --git a/test/built-ins/parseInt/S15.1.2.2_A9.1.js b/test/built-ins/parseInt/S15.1.2.2_A9.1.js
index 4140b2036..b29cc4267 100644
--- a/test/built-ins/parseInt/S15.1.2.2_A9.1.js
+++ b/test/built-ins/parseInt/S15.1.2.2_A9.1.js
@@ -16,7 +16,7 @@ if (parseInt.propertyIsEnumerable('length') !== false) {
//CHECK#2
var result = true;
-for (var p in parseInt){
+for (var p in parseInt) {
if (p === "length") {
result = false;
}
diff --git a/test/built-ins/parseInt/S15.1.2.2_A9.5.js b/test/built-ins/parseInt/S15.1.2.2_A9.5.js
index e03da48ec..61510e57a 100644
--- a/test/built-ins/parseInt/S15.1.2.2_A9.5.js
+++ b/test/built-ins/parseInt/S15.1.2.2_A9.5.js
@@ -16,7 +16,7 @@ if (this.propertyIsEnumerable('parseInt') !== false) {
//CHECK#2
var result = true;
-for (var p in this){
+for (var p in this) {
if (p === "parseInt") {
result = false;
}
diff --git a/test/built-ins/undefined/15.1.1.3-2.js b/test/built-ins/undefined/15.1.1.3-2.js
index 2c3a24308..78ab60a76 100644
--- a/test/built-ins/undefined/15.1.1.3-2.js
+++ b/test/built-ins/undefined/15.1.1.3-2.js
@@ -12,7 +12,7 @@ flags: [onlyStrict]
var global = this;
assert.throws(TypeError, function() {
- global["undefined"] = 5; // Should throw a TypeError as per 8.12.5
+ global["undefined"] = 5; // Should throw a TypeError as per 8.12.5
});
assert.sameValue(global["undefined"], void 0);
assert.sameValue(undefined, void 0);
diff --git a/test/built-ins/undefined/S15.1.1.3_A1.js b/test/built-ins/undefined/S15.1.1.3_A1.js
index 5f13f195f..c5159d7e1 100644
--- a/test/built-ins/undefined/S15.1.1.3_A1.js
+++ b/test/built-ins/undefined/S15.1.1.3_A1.js
@@ -11,15 +11,15 @@ description: Use typeof, isNaN, isFinite
// CHECK#1
if (typeof(undefined) !== "undefined") {
- $ERROR('#1: typeof(undefined) === "undefined". Actual: ' + (typeof(undefined)));
+ $ERROR('#1: typeof(undefined) === "undefined". Actual: ' + (typeof(undefined)));
}
// CHECK#2
if (undefined !== void 0) {
- $ERROR('#2: undefined === void 0. Actual: ' + (undefined));
+ $ERROR('#2: undefined === void 0. Actual: ' + (undefined));
}
// CHECK#3
if (undefined !== eval("var x")) {
- $ERROR('#3: undefined === eval("var x"). Actual: ' + (undefined));
+ $ERROR('#3: undefined === eval("var x"). Actual: ' + (undefined));
}
diff --git a/test/built-ins/undefined/S15.1.1.3_A3_T2.js b/test/built-ins/undefined/S15.1.1.3_A3_T2.js
index d57747088..12282235e 100644
--- a/test/built-ins/undefined/S15.1.1.3_A3_T2.js
+++ b/test/built-ins/undefined/S15.1.1.3_A3_T2.js
@@ -12,5 +12,5 @@ flags: [noStrict]
// CHECK#1
if (delete undefined !== false) {
- $ERROR('#1: delete undefined === false. Actual: ' + (delete undefined));
+ $ERROR('#1: delete undefined === false. Actual: ' + (delete undefined));
}
diff --git a/test/built-ins/undefined/S15.1.1.3_A4.js b/test/built-ins/undefined/S15.1.1.3_A4.js
index f49d5ca8c..49918799e 100644
--- a/test/built-ins/undefined/S15.1.1.3_A4.js
+++ b/test/built-ins/undefined/S15.1.1.3_A4.js
@@ -12,6 +12,6 @@ description: Use for-in statement
// CHECK#1
for (var prop in this) {
if (prop === "undefined") {
- $ERROR('#1: The undefined is DontEnum');
+ $ERROR('#1: The undefined is DontEnum');
}
}